You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by John Muhlestein <jm...@i-link.net> on 2002/09/04 00:47:33 UTC
Unexpected Exception launching through Ant
I am attempting to launch an application using Ant that I just added logging
to and I am getting an unexpected error.
Buildfile: build.xml
launchGUI:
[java] java.lang.VerifyError: (class:
org/apache/log4j/LogManager, method: <clinit> signature: ()V) Incompatible
argument to function
[java] at org.apache.log4j.Logger.getLogger(Logger.java:85)
[java] at
com.ilink.noc.routemanager.gui.MainAppFrame.<clinit>(MainAppFrame.java:28)
[java] Exception in thread "main"
BUILD SUCCESSFUL
Total time: 3 seconds
Here is a snippet of the code to instantiate the Logger (which is line 28
from the above error)
static Logger logger =
Logger.getLogger("com.ilink.noc.routemanager.gui.MainAppFrame");
And the <target> info from my build.xml
<target name="launchGUI">
<java classname="com.ilink.noc.routemanager.gui.MainAppFrame"
fork="yes">
<classpath>
<pathelement path="${env.CLASSPATH}" />
<pathelement location="${JavaClasses}" />
<pathelement location="${JavaLib}/xercelImpl.jar" />
<pathelement location="${JavaLib}/xmlParserAPIs.jar" />
<pathelement location="${JavaLib}/oraclejdbc.jar" />
<pathelement location="${JavaLib}/log4j-1.2.5.jar" />
</classpath>
</java>
</target>
Has anyone encountered this before or have any ideas?
thanks,
John
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>