Hmmm... that sounds a little strange. J2EE 1.3 classloading changed from 1.2. The EJBs are all loaded in 1 classloader, then each WAR is loaded in its own that is a child of the EJB classloader. So, the classes that use your EJBs shouldn't need any additional jars, like a client JAR w/ homes and remotes.
If you have helper/utility JARs that the EJBs and WARs both need to access, then put them in the root of the EAR or myEar.ear/lib and add a Class-Path entry to the manifest file of each EJB JAR and each webapp WAR, not the EAR manifest. Like this: Class-Path: Butler-1.0.90.jar CommonsTypes.jar CommonsUtil.jar DomainFacade.jar i2o_commons.jar log4j.jar tibco.jar tibjms.jar -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 09:54 To: Struts Users Mailing List Subject: RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts Thank you Mark, I tried it too but it still does not work. Maybe the problem is that we had to duplicate some classes bewteen the .jar and the .war (I put them in the WEB-INF/lib directory) because they are the classes that use the ejbs and there apprently was no other way to have the war 'see' the ejbs. And deploying the entire ear as a directory does not work too, and I dont' think the manifest.mf file has any use in all this. Thanks anyway, Marco. "Mark, Scott" <[EMAIL PROTECTED]> il 03/10/2003 15.08.57 Per favore, rispondere per "Struts Users Mailing List" <[EMAIL PROTECTED]> Per: "Struts Users Mailing List" <[EMAIL PROTECTED]> Cc: Oggetto: RE: Deploying web app (.ear = .jar + .war) under Weblogic with Struts We are using Struts 1.1 in a WL 7.0 SP2 application, deployed as a .ear and everything seems to be working fine. The only difference between our app and your app that I can identify so far is that we are deploying our web app inside the .ear as an expanded directory versus as a .war file. So, for example, our app is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar |--WEB-INF |--lib |--classes and our application.xml is: <application> <display-name>webapp</display-name> <description>webapp</description> <module> <ejb>webapp.jar</ejb> </module> <module> <web> <web-uri>webapp</web-uri> <context-root>webapp</context-root> </web> </module> It not supposed to make a difference, but perhaps expanding your web app would make a difference? Scott -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 11:00 To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Deploying web app (.ear = .jar + .war) under Weblogic with Struts Hello everyone, this looks pretty like the mail posted by Navneet Saraogi a couple of months ago. I am trying to deploy a .ear application under Bea Weblogic 7.0 using Struts 1.1. What happens (funny) is that if I deploy my webapp.war (containing the web module and Struts library) and webapp.jar (containing ejbs) at the same time, everything works properly and the web application integrates happily with ejbs. But if I merge the two files into a .ear, it deploys correctly, but when I launch the application I get the following error message: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm since apparently it isn't able to find the path to the library struts.jar, and of course the application does not work. Our directory structure is apparently the correct one, and that is: theEar.ear |-- META-INF |-- theEjb.jar |-- theWar.war inside the .ear I have a META-INF directory with application.xml that looks like this: <application> <display-name>webapp</display-name> <description>webapp</description> <module> <ejb>webapp.jar</ejb> </module> <module> <web> <web-uri>webapp.war</web-uri> <context-root>webapp</context-root> </web> </module> and the file struts.jar is inside the webapp.war file at the path \WEB-INF\lib, while the other developed classes are at the path \WEB-INF\classes. I also tried inserting Class-Path: webapp.jar inside \META-INF\MANIFEST.MF in the webapp.war file, to make it see the ejbs, but it still does not work. Anyone has any idea of what I am missing ? Thank you, Marco Piana Rome, Italy. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

