Hi, I'm trying to write some jelly code in my maven.xml file that uses
the Axis ant tasks. Whenever I run it, it has classpath issues. But, I
believe I correctly defined the xml jars in my project.xml files. The
problem is this. When I run the ant task from ant with the same
classpath, it works. But, through maven with the same jars, it doesn't.
I'm using Maven HEAD.
If anyone has any insights into what I'm missing here, I'd appreciate them.
Thanks,
Dan Diephouse
My xml dependencies:
<!-- XML Jars -->
<dependency>
<id>xerces</id>
<version>2.0.2</version>
</dependency>
<dependency>
<id>xml-apis</id>
<version>1.0.b2</version>
</dependency>
My Maven.xml goal:
<goal name="java2wsdl">
<attainGoal name="java:compile"/>
<echo>Creating WSDL file from java sources</echo>
<taskdef name="java2wsdl" classname="org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask">
<classpath>
<fileset dir="${maven.repo.local}">
<j:forEach var="dep" items="${pom.dependencies}">
<include
name="${dep.getProjectId()}/jars/${dep.getArtifact()}"/>
</j:forEach>
<include
</fileset>
<!-- path refid="maven.dependency.classpath"/ -->
<pathelement path="${maven.build.dest}"/>
</classpath>
</taskdef>
<java2wsdl>
<ant:setProperty name="classname" value="com.moveitthere.webapp.soap.MIT"/>
<ant:setProperty name="output" value="test.wsdl"/>
<ant:setProperty name="namespace" value="com.moveitthere.webapp.soap"/>
</java2wsdl>
</goal>
and the output:
java2wsdl:
java:prepare-filesystem:
java:compile:
[echo] Creating WSDL file from java sources
[java2wsdl] Java2WSDL com.moveitthere.webapp.soap.MIT
[java2wsdl] [ERROR] javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found
at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
at org.apache.axis.utils.XMLUtils.getDOMFactory(XMLUtils.java:224)
at org.apache.axis.utils.XMLUtils.<clinit>(XMLUtils.java:107)
at
at org.apache.axis.wsdl.fromJava.Types.<init>(Types.java:138)
at org.apache.axis.wsdl.fromJava.Emitter.createTypes(Emitter.java:537)
at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:329)
at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:235)
at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:289)
at org.apache.axis.tools.ant.wsdl.Java2WsdlAntTask.execute(Unknown Source)
at org.apache.tools.ant.Task.perform(Task.java:317)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:208)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:277)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134)
at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:193)
at org.apache.commons.jelly.tags.werkz.GoalTag$1.performAction(GoalTag.java:119)
at com.werken.werkz.Goal.fire(Goal.java:632)
at com.werken.werkz.Goal.attain(Goal.java:568)
at org.apache.maven.app.Maven.runGoals(Maven.java:865)
at org.apache.maven.app.Maven.attainGoals(Maven.java:783)
at org.apache.maven.app.App.doMain(App.java:460)
at org.apache.maven.app.App.main(App.java:1041)
at java.lang.reflect.Method.invoke(Native Method)
at com.werken.forehead.Forehead.run(Forehead.java:543)
at com.werken.forehead.Forehead.main(Forehead.java:573)
--
To unsubscribe, e-mail: <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>
- Re: Maven.xml and classpath issues Dan Diephouse
- Re: Maven.xml and classpath issues dion
- Re: Maven.xml and classpath issues Dan Diephouse
