• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Unable to deploy titan.jar - Section 4.2,OReilly Enterprise JavaBeans.3.0

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Just started preparing for SCBCD and new to EJB, deployment.
I am following "OReilly Enterprise JavaBeans.3.0.5th.Edition May.2006" to prepare for SCBCD.
As given in Section 4.2, titan.jar is created with the following contents



contents of persistence.xml


It is given in the book, to deploy titan.jar and access through a client java code.
To deploy, I have copied titan.jar to jboss deployment directory. But when the server is started, it gives lot of erros.
If someone had followed the book and was able to deploy and start the server. Please inform me what I am doing wrong. Also note that I am beginner in the course.

Thanks,
Jeevan
 
Creator of Enthuware JWS+ V6
Posts: 3412
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeevan,

What version of Jboss did you download? Are you also using Jdk5.0 as there is a problem with jdk6.0?

Regards,
Frits
 
Ranch Hand
Posts: 310
1
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Jeevan, Please check whether your JBoss is up and running fine. I am using ver 4.2.3 and as Frits mentioned, use J2EE5.

You can download all code examples in OReilly book from the oreilly web site. Try to configure "ant" and use "build.xml" for compiling and deployment, it will make life more easier. For development you can either use Notepad++ or Eclipse , both of which are free. Once you download the code, compare it with your code, configuration etc and see where you are getting issues. I was able to run pretty much all code samples in the book.

Good luck!
 
Jeevan Reddy
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Frits Walraven wrote:Hi Jeevan,

What version of Jboss did you download? Are you also using Jdk5.0 as there is a problem with jdk6.0?

Regards,
Frits



I am using jboss-eap-4.3 with JDK6.0. Is that an issue? Should I use JDK5.0 instead?
 
Jeevan Reddy
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajeev Rnair wrote:Hello Jeevan, Please check whether your JBoss is up and running fine. I am using ver 4.2.3 and as Frits mentioned, use J2EE5.

You can download all code examples in OReilly book from the oreilly web site. Try to configure "ant" and use "build.xml" for compiling and deployment, it will make life more easier. For development you can either use Notepad++ or Eclipse , both of which are free. Once you download the code, compare it with your code, configuration etc and see where you are getting issues. I was able to run pretty much all code samples in the book.

Good luck!



Hi Rajeev, thanks for the info. I will download and attempt with that.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Posts: 3412
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am using jboss-eap-4.3 with JDK6.0. Is that an issue? Should I use JDK5.0 instead?



Yes, I am setting the JAVA_HOME explicitely to C:\dev\jdk1.5.0_06 (as I have jdk6 also installed on my comp)
I am using the old jboss-4.0.4.GA_2 (I used the installer as mentioned in the workbook)

Regards,
Frits
 
Jeevan Reddy
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot guys.
I had not seen the workbook towards the end of the book. Following your replies I checked, and now I was able to deploy it on Jboss application server.

Resolution:
copy oracle jar to the jboss server lib directory
create datasource file and deploy it in the deploy directory
copy titan.jar and start the application server.

Now application server started, without issues.
reply
    Bookmark Topic Watch Topic
  • New Topic