File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Unable to deploy titan.jar - Section 4.2,OReilly Enterprise JavaBeans.3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Unable to deploy titan.jar - Section 4.2,OReilly Enterprise JavaBeans.3.0" Watch "Unable to deploy titan.jar - Section 4.2,OReilly Enterprise JavaBeans.3.0" New topic
Author

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

Jeevan Reddy
Ranch Hand

Joined: Nov 10, 2009
Posts: 142
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


SCJP 1.6 (94%)
http://faq.javaranch.com/java/JspFaq
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1647
    
  25

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
Rajeev Rnair
Ranch Hand

Joined: Mar 22, 2010
Posts: 308

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!


SCJP6, SCWCD5, OCP-JBCD5, OCE-JWSD6 OCE-JPAD6 , OCM-JEA5 1,OCM-JEA5 2,3 - Brainbench certifications: J2EE, Java2, Java2-NonGUI, JSP, SQL2000 Admin, SQL2000 Programming , Brainbench certified Java Programmer, Computer Programmer, Web Developer, Database Administrator
Jeevan Reddy
Ranch Hand

Joined: Nov 10, 2009
Posts: 142
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

Joined: Nov 10, 2009
Posts: 142
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
Bartender

Joined: Apr 07, 2010
Posts: 1647
    
  25

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

Joined: Nov 10, 2009
Posts: 142
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to deploy titan.jar - Section 4.2,OReilly Enterprise JavaBeans.3.0
 
Similar Threads
javax.ejb.EJBException
Exception while deploying the bean
Problem javax.persistence.NoResultException: No entity found for query
A question about "persistence.xml" by Weblogic
EJB 3 deployment Error