axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject [axis2] Can't build from source
Date Wed, 05 Mar 2008 17:03:27 GMT
Hey devs,

I just checked out the latest svn today, and got this:

mvn clean install -U -Dtest=false
...
Embedded error: The following error occurred while executing this line:
java.io.FileNotFoundException:
/home/iksrazal/workspace/axis2/modules/jaxbri/target/wsdl/Test01/build.xml
(No such file or directory)

Here's the problem area with JAXB-RI, any hints on how to get around this?

[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Axis 2.0 - JAXB-RI Data Binding
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/iksrazal/workspace/axis2/modules/jaxbri/target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 3 source files to
/home/iksrazal/workspace/axis2/modules/jaxbri/target/classes
[INFO] [antrun:run {execution: gen-ts}]
[INFO] Executing tasks
    [mkdir] Created dir:
/home/iksrazal/workspace/axis2/modules/jaxbri/target/schema
    [mkdir] Created dir:
/home/iksrazal/workspace/axis2/modules/jaxbri/target/schema/src
    [mkdir] Created dir:
/home/iksrazal/workspace/axis2/modules/jaxbri/target/schema/classes
     [echo] Generating JAX-B classes for DocLitBareService test
     [echo] Generating Service / Service Client for Test01 test
     [java] Retrieving document at 'test-resources/wsdl/Test01.wsdl'.
     [java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
     [java]     at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:278)
     [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
     [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
     [java] Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
     [java]     at
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:112)
     [java]     at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:231)
     [java]     ... 2 more
     [java] Caused by: java.lang.reflect.InvocationTargetException
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at
org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRIExtension.java:101)
     [java]     ... 3 more
     [java] Caused by: java.lang.LinkageError: JAXB 2.0 API is being
loaded from the bootstrap classloader, but this RI (from
jar:file:/home/iksrazal/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
needs 2.1 API. Use the endorsed directory mechanism to place
jaxb-api.jar in the bootstrap classloader. (See
http://java.sun.com/j2se/1.5.0/docs/guide/standards/)
     [java]     at
com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:173)
     [java]     at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
     [java]     at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
     [java]     at
com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext(BindInfo.java:332)
     [java]     at
com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1.<init>(AnnotationParserFactoryImpl.java:80)
     [java]     at
com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl.create(AnnotationParserFactoryImpl.java:79)
     [java]     at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.createAnnotationParser(NGCCRuntimeEx.java:323)
     [java]     at
com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:48)
     [java]     at
com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:73)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
     [java]     at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:294)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromEnterElement(NGCCHandler.java:111)
     [java]     at
com.sun.xml.xsom.impl.parser.state.foreignAttributes.enterElement(foreignAttributes.java:50)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement(NGCCHandler.java:74)
     [java]     at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:200)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:250)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:238)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:226)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:262)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement(NGCCRuntime.java:378)
     [java]     at
com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:270)
     [java]     at
com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:219)
     [java]     at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
     [java]     at
com.sun.tools.xjc.util.SubtreeCutter.startElement(SubtreeCutter.java:104)
     [java]     at
com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement(ExtensionBindingChecker.java:144)
     [java]     at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
     [java]     at
com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:113)
     [java]     at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
     [java]     at
com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement(CustomizationContextChecker.java:188)
     [java]     at
org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
     [java]     at
com.sun.tools.xjc.reader.internalizer.DOMForestScanner$LocationResolver.startElement(DOMForestScanner.java:141)
     [java]     at
com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:240)
     [java]     at
com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:277)
     [java]     at
com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:246)
     [java]     at
com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:123)
     [java]     at
com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:89)
     [java]     at
com.sun.tools.xjc.reader.internalizer.DOMForestScanner.scan(DOMForestScanner.java:97)
     [java]     at
com.sun.tools.xjc.reader.internalizer.DOMForestParser.parse(DOMForestParser.java:99)
     [java]     at
com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse(ModelLoader.java:262)
     [java]     at
com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:301)
     [java]     at
com.sun.xml.xsom.impl.parser.ParserContext.parse(ParserContext.java:88)
     [java]     at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147)
     [java]     at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:136)
     [java]     at
com.sun.tools.xjc.ModelLoader.createXSOM(ModelLoader.java:516)
     [java]     at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:232)
     [java]     at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)
     [java]     at
org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:192)
     [java]     ... 8 more
     [java] Java Result: 1
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
java.io.FileNotFoundException:
/home/iksrazal/workspace/axis2/modules/jaxbri/target/wsdl/Test01/build.xml
(No such file or directory)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message