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 EP...@upstate.com on 2002/07/15 20:55:15 UTC

How to run lf5 from ant?

Hi all,

I am trying to get LF5 to run from an ant task..  I took out the log4j from
my classpath, and want to reference directly the right jars:

<target name="lf5">
		<java classname="org.apache.log4j.net.SimpleSocketServer"
fork="false" 
					>	
				<classpath>
					<pathelement
location="c:/java/lib.repo/log4j-1.2.4.jar"/>
					<pathelement
location="c:/java/ant/lib2/xerces.jar"/>
					<pathelement
location="c:/java/ant/lib2/xalan.jar"/>
					
					
					<pathelement
location="C:/java/jakarta-log4j-1.2.4/jakarta-log4j-1.2.4/dist/classes"/>
	

			</classpath>
			<arg value="8887"/>
			<arg
value="${basedir}/src/conf/socketserver.properties"/>
		</java>
	</target>


However, I keep getting linkage errors:

C:\kinaseprofiler>ant log4j
Buildfile: build.xml

log4j:
     [java] java.lang.LinkageError: loader constraints violated when linking
org
/w3c/dom/Document class

What exact XML type jars do I need?

Thanks,
Eric

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>