I did as you suggested but I'm still receiving the same exception. I will attempt to isolate the problem further.

Thanks for the input.



"Scott M Stark" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

03/19/2001 12:52 PM
Please respond to jboss-user

       
        To:        <[EMAIL PROTECTED]>
        cc:        
        Subject:        Re: [JBoss-user] Autodeployer classpath changes in Version 2.1



The feature is still there and works. The issue is most likely that the log4j.jar that comes
with jboss is an older version that uses the original org.log4j.* packages rather than
the newer org.apache.log4j.* packages. Rename the existing log4j.jar and add your
version.

ext 547>jar -tf log4j.jar
META-INF/
META-INF/MANIFEST.MF
org/log4j/OptionHandler.class
org/log4j/Appender.class
org/log4j/Layout.class

----- Original Message -----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 19, 2001 6:25 AM
Subject: [JBoss-user] Autodeployer classpath changes in Version 2.1



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)


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


Reply via email to