In general you cannot put a jar in an ear and get those classes loaded. The application.xml file is responsible for dictating what gets loaded. If you add a <java> element to application.xml for that jar file it might work but that really should be used for proper applications versus libraries. Putting the jar in deploy is not reliable because you have a chicken-egg problem. Putting it in your [jboss]/server/[config]/lib directory will definitely work as will the base lib directory. If that fails check your [jboss]/server/[config]/tmp directory because it is probably still sitting there. I could swear that if you move from deploy to lib it does not always undeploy but then that's not something you will do very often. That will definitely work but a SAR might be more appropriate than ...[config]/lib.
----- Original Message ----- From: "otisg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 2:51 PM Subject: [JBoss-user] JB 3.0.4, loading classes from JAR in EAR > Hello, > > I am trying to use JBoss 3.0.4 and have a > small problem. > My EAR contains a WAR and a JAR. I am > deploying this EAR to server/default/deploy. > > In my application I try to load a class from > the JAR by doing Class.forName(<class name > here>). > > This works fine under JBoss 2.4.4, but > doesn't seem to work under JBoss 3.0.4. > > I suspect that it's something to do with the > new Classloader in JBoss3. > I have checked the FAQ and this entry looked > promising: > http://jboss.org/faq.jsp#FAQ-BEANDEV-NORMALJARS > However, that didn't seem to solve the problem. > > I tried sticking the JAR in <jboss root>/lib > and server/default/lib/ but nether of those > two worked, and the latter actually gave > additional errors at boot time > (javax.management.InstanceAlreadyExistsException: > jboss.j2ee:jndiName=wgen/CommandShell,service=EJB > already registered.) > > The error actually may be a good sign, > signaling that JBoss did pick up the JAR, > but that I need to repackage things....maybe? > > > Any help would be very appreciated. > Thanks, > Otis > > > > ________________________________________________ > Get your own "800" number > Voicemail, fax, email, and a lot more > http://www.ureach.com/reg/tag > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user