Hi!

Humphrey Sheil wrote:
> 
> I'm running into a (basic?) problem trying to deploy an EJB to jBoss.
> 
> Platform:  Windows 2000, JDK1.3 +hotspot, jBoss version pr4-beta
> 
> Problem:
> 
> I'm using log4j as my logging package with a stateless session (not using a
> jboss.xml - accepting server defaults for anything not in the ejb-jar.xml).
> I'm not using the jBoss logging package because I want to run the same
> logging service across multiple app. servers  -the same EJB runs on WL 5.1
> with no errors.
> 
> When I try to run the EJB, I get the following stack trace:
> 
> [frameworkTester] Exception occurred; nested exception is:
>         java.lang.ClassCastException: java.lang.NoClassDefFoundError
> 
> If I take out the code accessing log4j, the bean runs just fine, so it's
> definitely the culprit (although the logging doesn't tell me anything).
> I've tried putting the log4j jar file in the <<jboss_home>>\lib\ext
> directory and adding it to the classpath variable in the run.bat file but no
> luck.  Any ideas why this jar file isn't available to my EJB?  Does it need
> to get loaded somewhere else?  If so, can someone tell me where I need to
> add this entry to?

I am guessing a bug in log4j! It probably isn't well enough coded to be
used in such an advanced classloader framwork as jBoss is. Had the same
kind of problem with Castor. :-(

/Rickard

-- 
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to