I am using JBoss 2.1 (or at least attempting to) on Window 2000. I have been using JBoss 2.0 without any problems for several months. However, if I take the ejb-jar file that works under version 2.0 and attempt to use in JBoss 2.1 I receive a java.lang.NoClassDefFoundError when the JBoss verifier attempts to load my jar file containing the EJB beans.
In version 2.0 of JBoss I was able to add additional JAR files (like bsf.jar or log4j.jar) to the JBoss/lib/ext directory. The class loader would then be able to find these classes when I imported them from within my EJB classes. It seems that feature has either been removed from version 2.1 or is broken.
Could someone please tell if this feature is have removed or is simply broken. If the feature has been removed could you please let me know how to get the classloader to find classes in another JAR file (such as log4j.jar) so that I can get my code working again.
Thanks,
Jon Harvie
InSession Technologies
Here is the complete exception:
[Verifier] java.lang.NoClassDefFoundError: org/apache/log4j/Category
[Verifier] at com.workpoint.server.ejb.GenericBean.<clinit>(com/workpoint/server/ejb/GenericBean)
[Verifier] at java.lang.Class.newInstance0(Native Method)
[Verifier] at java.lang.Class.newInstance(Unknown Source)
[Verifier] at org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor(AbstractVerifier.java:334)
[Verifier] at org.jboss.verifier.strategy.EJBVerifier11.verifySessionBean(EJBVerifier11.java:625)
[Verifier] at org.jboss.verifier.strategy.EJBVerifier11.checkSession(EJBVerifier11.java:92)
[Verifier] at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:134)
[Verifier] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:416)
[Verifier] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:333)
[Verifier] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:274)
[Verifier] at java.lang.reflect.Method.invoke(Native Method)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:430)
[Verifier] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Verifier] at java.lang.reflect.Method.invoke(Native Method)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Verifier] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Verifier] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332)
[Verifier] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[Verifier] at java.lang.reflect.Method.invoke(Native Method)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier] at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[Verifier] at java.lang.reflect.Method.invoke(Native Method)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier] at org.jboss.Main.<init>(Main.java:190)
[Verifier] at org.jboss.Main$1.run(Main.java:94)
[Verifier] at java.security.AccessController.doPrivileged(Native Method)
[Verifier] at org.jboss.Main.main(Main.java:90)
