Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

classpath in weblogic 6.1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi all,

How can I add a classpath in Weblogic 6.1, so that that classpath can be achieved by both EJB jar and war file? I have deployed a .ear file having the jar and war files. Now the EJBs inside the jar file are not reaching the class files of the war file and the class files in the war file are not reaching to the EJBs. Please let me know at the earliest.

Atanu
 
Ejbs will not be able to use the classes that are deployed in the war. The war classloader is a decendent of the ejb classloader, so the war classes can use the ejbs but not the other way around. Any classes that must be used by both the ejbs and the war must either be put on the weblogic classpath or defined in a separate jar and a dependency be placed in the manifest of the ejb jars that use it. This will ensure proper order of classloading (dependent classes, ejbs, then war). This is also mean the the war classes will have access to the dependent classes. Does this all make sense?
 
when I develop EJB with JBuilder 6.0,and the Application server is weblogic server 6.1,and I create an EJB test client by the wizard in JBuilder.when I specify EJBC to create stub files,the EJB moudle can't pass complication.The error message is as follows:
"Untitled1.ejbgrpx": ERROR: Error from ejbc: ERROR: The classes which ejbc generated from your home and remote interfaces cannot be loaded. Please ensure that you have set the -d option to a writeable directory.
"Untitled1.ejbgrpx": ERROR: ejbc found errors
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top