I have the ejb's and the war working without making the duplicate jar files.
Basically put in a MANIFEST.MF file with the classpath in three places and it works for me. Basically move all the common jars to the root of the ear. Root of the ear looks like ejb.jar app.war struts.jar etc.jar META-INF - MANIFEST.MF And put the MANIFEST.MF in both the ejb.jar and also the app.war. IN ejb.jar it goes at the root, just like the ear com META-INF -MANIFEST.MF -ejb-jar.xml And in the war file WEB-INF/classes/com WEB-INF/classes/META-INF WEB-INF/classes/META-INF - MANIFEST.MF This works great for me, no class duplication. --- [EMAIL PROTECTED] wrote: > We have pretty similar ear file for our application > and it works fine. check if > your struts.jar is in WEB-INF\lib folder. > > > -----Original Message----- > From: David.Karr [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 01, 2003 11:28 AM > To: struts-user > Subject: RE: Deploying web app (.ear = .jar + .war) > under Weblogic with > Struts > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > > > > 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 > > I'm assuming you're pursuing this with BEA Support? > > You might turn on "-verbose:class" on the JVM. It > might give you a > clue. > > Check to see what other jars are in the EAR > classpath (like in the > appserver). > > --------------------------------------------------------------------- > 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] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

