Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Log4J problem in exportated JAR in WSAD 5.1.2

Reply
Thread Tools

Log4J problem in exportated JAR in WSAD 5.1.2

 
 
Etienne
Guest
Posts: n/a
 
      04-21-2005
Hi,

I have a strange problem. I am doing a small librairie for another
projet. I have made a JAR using WSAD 5.1.2. When the other projet try
to use the JAR it trows this exception:

org.apache.commons.logging.LogConfigurationExcepti on:
java.lang.NoSuchFieldError: org.apache.log4j.Category: field level not
found (Caused by java.lang.NoSuchFieldError:
org.apache.log4j.Category: field level not found)
at org.apache.commons.logging.impl.LogFactoryImpl.new Instance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.get Instance(LogFactoryImpl.java:23
at org.apache.commons.logging.impl.LogFactoryImpl.get Instance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFa ctory.java:351)
at org.springframework.context.support.AbstractApplic ationContext.<init>(AbstractApplicationContext.jav a:171)
at org.springframework.context.support.AbstractApplic ationContext.<init>(AbstractApplicationContext.jav a:162)
at org.springframework.context.support.AbstractRefres hableApplicationContext.<init>(AbstractRefreshable ApplicationContext.java:67)
at org.springframework.context.support.AbstractXmlApp licationContext.<init>(AbstractXmlApplicationConte xt.java:49)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:82)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:66)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:167)
Any idea?

Thanks.

Etienne.
 
Reply With Quote
 
 
 
 
Daniel Dyer
Guest
Posts: n/a
 
      04-21-2005
On Thu, 21 Apr 2005 21:42:44 +0100, Etienne <(E-Mail Removed)> wrote:

> Hi,
>
> I have a strange problem. I am doing a small librairie for another
> projet. I have made a JAR using WSAD 5.1.2. When the other projet try
> to use the JAR it trows this exception:
>
> org.apache.commons.logging.LogConfigurationExcepti on:
> java.lang.NoSuchFieldError: org.apache.log4j.Category: field level not
> found (Caused by java.lang.NoSuchFieldError:


Looks like the version of Log4J that you are compiling against is not the
same version that you are running with. Check your classpath settings for
both projects.

Dan.


--
Daniel Dyer
http://www.footballpredictions.net
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Jar file generated by WSAD Mahesh S Java 0 01-18-2007 04:39 PM
jaas.jar, jta.jar jdbc-stdext.jar missing from jdk1.5 RPM muttley Java 0 10-20-2005 02:40 PM
Differences of xercesImpl.jar, xercesImpl-J.jar, dom3-xercesImpl.jar ? Arnold Peters Java 0 01-05-2005 10:59 PM
log4j: locating log4j.proprties in same folder as jar Alex Hunsley Java 2 05-28-2004 09:57 PM
WSAD 5.x and log4j Jufo Java 1 09-18-2003 08:24 PM



Advertisments