Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Cocoon - MVC web framework based on XML/XSL
Lucene - Full-featured text search engine APIs
Log4J - A log library
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Problems with log4j and WebLogic

Problems with log4j and WebLogic

2003-06-14       - By Jerry Cattell

 Back
Reply:     1     2     3     4     5  

I am trying to get log4j working with a very simple
session bean in weblogic 7.0.  The bean works fine if
I comment out all of the logging code.  If I leave the
logging code in I get this exception:

java.lang.NoClassDefFoundError Source code of java.lang.NoClassDefFoundError:
org/apache/log4j/Category
at java.lang.Class Source code of java.lang.Class(Native Method)
at java.lang.Class Source code of java.lang.Class(Class.java:737)
at
weblogic.ejb20.ejbc.EJBCompiler.computeCRC(EJBCompiler.java:626)
at
weblogic.ejb20.ejbc.EJBCompiler.makeFileHash(EJBCompiler.java:539)
at
weblogic.ejb20.ejbc.EJBCompiler.setupEJB(EJBCompiler.java:160)
at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:332)
at
weblogic.ejb20.deployer.EJBDeployer.runEJBC(EJBDeployer.java:489)
at
weblogic.ejb20.deployer.EJBDeployer.compileEJB(EJBDeployer.java:819)
at
weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1268)
at
weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:232)
at
weblogic.j2ee.J2EEApplicationContainer.prepareModule(J2EEApplicationContainer
.java:1570)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
:737)
at
weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java
:555)
at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:1062)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:730)
at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java
:24)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
-- ---- ---- -- nested within: -- ---- ---- -----
weblogic.management.ManagementException: 149233 - with
nested exception:
[java.lang.NoClassDefFoundError:
org/apache/log4j/Category]
at
weblogic.management.deploy.slave.SlaveDeployer.convertThrowable(SlaveDeployer
.java:834)
at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer
.java:1180)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java
:730)
at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java
:24)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)



Here is all of the pertinent information I can think
of:

The manifest for the EJB JAR:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: 1.3.1_07-b02 (Sun Microsystems Inc.)
Built-By: Jerry Cattell
Built-On: 2003-06-14T06:13:20
Class-Path: log4j-1.2.8.jar

The files in the EAR:
META-INF/MANIFEST.MF
test-ejb.jar
log4j-1.2.8.jar
log4j.properties
META-INF/application.xml

The files in the JAR:
META-INF/MANIFEST.MF
test/ejb/NetworkServerBean.class
test/ejb/NetworkServerSession.class
test/interfaces/NetworkServerLocal.class
test/interfaces/NetworkServerLocalHome.class
test/interfaces/NetworkServerRemote.class
test/interfaces/NetworkServerRemoteHome.class
test/util/NetworkServerUtil.class
META-INF/ejb-jar.xml
META-INF/weblogic-ejb-jar.xml

If someone can see what I'm doing wrong, I would
greatly appreciate it.

Thanks,
Jerry

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: log4j-user-unsubscribe@(protected)
For additional commands, e-mail: log4j-user-help@(protected)



Earn $52 per hosting referral at Lunarpages.