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 and other Java EE Technologies and the fly likes Problem During Compilation of EJB Jar with Weblogic.ejbc tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem During Compilation of EJB Jar with Weblogic.ejbc tool" Watch "Problem During Compilation of EJB Jar with Weblogic.ejbc tool" New topic
Author

Problem During Compilation of EJB Jar with Weblogic.ejbc tool

Sreedhar mar
Ranch Hand

Joined: Sep 15, 2003
Posts: 34
Dear All,
I had written a sample EJB program and complied all the java files to class files. I had even written an XML file and created a .jar file which consists of .class files and .xml files. Now i am trying to compile, this .jar file by using the tool weblogic.ejbc tool. During this process, the complier is raising an error stating that "Exception in thread main java.lang.NoClassDefFoundError : weblogic/ejbc". I searched in my system, for this tool and i didn't find it. Where from i can get this tool on website. Is it any third party tool? kindly feel free to give solution for this problem.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

You need to put the weblogic jar files in the classpath. The weblogic.ejbc is a class which generates the container specific class files for EJBs.


Groovy
Sreedhar mar
Ranch Hand

Joined: Sep 15, 2003
Posts: 34
hi pradeep

i put weblogic.jar file in classpath.but it was not worked
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

What is the command line used?
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Please post, your error message.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
kalpak pillai
Greenhorn

Joined: Jul 27, 2004
Posts: 4
Put the weblogicaux.jar & weblogicclasses.jar in ur classpath
 
wood burning stoves
 
subject: Problem During Compilation of EJB Jar with Weblogic.ejbc tool