Your problem is that log4j is not in the classpath.

Look at the documentation for weblogic and ejbc to find how to set the 
classpath for ejbc.

Cheers,
Scott


Shimon Atias wrote:

> Hi,
> 
> log4j version: 1.1.3
> weblogic version: 6.1.1.0
> 
> I'm experiencing problem during the implementation of Log4j in my component,
> The error occurs when I'm trying to build a jar file, below error occurs at
> the point 
> of adding the log4j usees during the build command that make ejbc
> compilation:
> 
> the error: 
> 
> Buildfile: build.xml
> 
> init:
>     [mkdir] Created dir: /d10/home/itayp/PpvProj/cls/build
>     [mkdir] Created dir: /d10/home/itayp/PpvProj/cls/build/META-INF
>     [mkdir] Created dir: /d10/home/itayp/PpvProj/cls/dist
>      [copy] Copying 3 files to /d10/home/itayp/PpvProj/cls/build/META-INF
> 
> javac:
>     [javac] Compiling 106 source files to /d10/home/itayp/PpvProj/cls/build
> 
> jar_ejb:
>       [jar] Building jar: /d10/home/itayp/PpvProj/cls/dist/ppv.jar
> 
> ejbc:
>      [java] 
>      [java] ERROR: Error from ejbc: java.lang.NoClassDefFoundError:
> Lorg/apache/log4j/Category;
>      [java]     at java.lang.Class.getFields0(Native Method)
>      [java]     at java.lang.Class.getDeclaredFields(Class.java:998)
>      [java]     at
> weblogic.ejb20.compliance.SessionBeanClassChecker.checkEJBContextIsNotTransi
> ent(SessionBeanClassChecker.java:61)
>      [java]     at java.lang.reflect.Method.invoke(Native Method)
>      [java]     at
> weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.ja
> va:266)
>      [java]     at
> weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBCompli
> anceChecker.java:220)
>      [java]     at
> weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:453)
>      [java]     at
> weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:410)
>      [java]     at
> weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:203)
>      [java]     at weblogic.ejbc20.runBody(ejbc20.java:360)
>      [java]     at weblogic.utils.compiler.Tool.run(Tool.java:79)
>      [java]     at weblogic.ejbc.main(ejbc.java:21)
>      [java] 
>      [java] ERROR: ejbc found errors
> 
> 
> 
> please let me know what could be the problem and 
> what should be the CLASSPATH for the log4j,
> 
> 
> Thanks
> Atias Shimon
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
      Supporting YOUR J2EE World



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to