What JDK are you using ? On Mon, Mar 17, 2008 at 9:42 PM, Thilina Buddhika <[EMAIL PROTECTED]> wrote: > *Hi, > I was trying to build tuscany SCA and it keeps on failing. I downloaded the > source archive and tried to build it. But it failed. Then i took a svn > checkout from http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/and > tried to build it. It ends up with the following error. > > Need your help to fix this. > > thanks in advance. > > regards, > Thilina > * > > ------------------------------------------------------------------------------------------------------------------------------------------------ > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building Apache Tuscany SCA Data Binding for JAXB > [INFO] task-segment: [clean, install] > [INFO] > ---------------------------------------------------------------------------- > [INFO] [clean:clean] > [INFO] Deleting directory > /home/buddhika/tuscany/tuscany_source/sca/modules/databinding-jaxb/target > [INFO] [dependency:copy {execution: copy}] > [INFO] Configured Artifact: javax.xml.bind:jaxb-api:2.1:jar > [INFO] Copying jaxb-api-2.1.jar to > > /home/buddhika/tuscany/tuscany_source/sca/modules/databinding-jaxb/target/endorsed/jaxb- > api-2.1.jar > [INFO] [build-helper:add-test-source {execution: add-test-source}] > [INFO] Test Source directory: > > /home/buddhika/tuscany/tuscany_source/sca/modules/databinding-jaxb/target/jaxb-source > added. > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [INFO] [compiler:compile] > [INFO] Compiling 12 source files to > > /home/buddhika/tuscany/tuscany_source/sca/modules/databinding-jaxb/target/classes > [INFO] [jaxb2:generate {execution: generate-jaxb}] > [INFO] > ------------------------------------------------------------------------ > [ERROR] FATAL ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] JAXB 2.0 API is being loaded from the bootstrap classloader, but this > RI (from > jar:file:/home/buddhika/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.5/jaxb- > impl-2.1.5.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) > needs 2.1API. 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/) > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap > classloader, but this RI (from > jar:file:/home/buddhika/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.5/jaxb- > impl-2.1.5.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) > needs 2.1API. 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/) > at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>( > ModelBuilder.java:172) > at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet( > JAXBContextImpl.java:422) > at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>( > JAXBContextImpl.java:286) > at > com.sun.tools.xjc.reader.xmlschema.bindinfo.BindInfo.getJAXBContext( > BindInfo.java:332) > at > com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl$1 > .<init>(AnnotationParserFactoryImpl.java:79) > at > > com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserFactoryImpl.create > (AnnotationParserFactoryImpl.java:78) > at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.createAnnotationParser > (NGCCRuntimeEx.java:323) > at com.sun.xml.xsom.impl.parser.state.annotation.action0( > annotation.java:48) > at com.sun.xml.xsom.impl.parser.state.annotation.enterElement( > annotation.java:73) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at > com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement( > NGCCHandler.java:74) > at com.sun.xml.xsom.impl.parser.state.Schema.enterElement( > Schema.java:294) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at > com.sun.xml.xsom.impl.parser.state.NGCCHandler.revertToParentFromEnterElement > (NGCCHandler.java:111) > at com.sun.xml.xsom.impl.parser.state.foreignAttributes.enterElement > (foreignAttributes.java:50) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at > com.sun.xml.xsom.impl.parser.state.NGCCHandler.spawnChildFromEnterElement( > NGCCHandler.java:74) > at com.sun.xml.xsom.impl.parser.state.Schema.enterElement( > Schema.java:200) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at com.sun.xml.xsom.impl.parser.state.Schema.enterElement( > Schema.java:250) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at com.sun.xml.xsom.impl.parser.state.Schema.enterElement( > Schema.java:238) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at com.sun.xml.xsom.impl.parser.state.Schema.enterElement( > Schema.java:226) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at com.sun.xml.xsom.impl.parser.state.Schema.enterElement( > Schema.java:262) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.sendEnterElement( > NGCCRuntime.java:378) > at com.sun.xml.xsom.impl.parser.state.Schema.enterElement( > Schema.java:270) > at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement( > NGCCRuntime.java:219) > at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java > :527) > at com.sun.tools.xjc.util.SubtreeCutter.startElement( > SubtreeCutter.java:104) > at com.sun.tools.xjc.reader.ExtensionBindingChecker.startElement( > ExtensionBindingChecker.java:144) > at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java > :527) > at > > com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker.startElement > (IncorrectNamespaceURIChecker.java:113) > at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java > :527) > at > > com.sun.tools.xjc.reader.xmlschema.parser.CustomizationContextChecker.startElement > (CustomizationContextChecker.java:188) > at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java > :527) > at com.sun.tools.xjc.ModelLoader$SpeculationChecker.startElement( > ModelLoader.java:455) > at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java > :527) > at com.sun.tools.xjc.reader.internalizer.VersionChecker.startElement > (VersionChecker.java:98) > at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java > :527) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement( > AbstractSAXParser.java:501) > at > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement > (XMLNSDocumentScannerImpl.java:400) > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next > (XMLDocumentFragmentScannerImpl.java:2740) > at > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next( > XMLDocumentScannerImpl.java:645) > at > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next( > XMLNSDocumentScannerImpl.java:140) > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument > (XMLDocumentFragmentScannerImpl.java:508) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > XML11Configuration.java:807) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > XML11Configuration.java:737) > at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse( > XMLParser.java:107) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse( > AbstractSAXParser.java:1205) > at > com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse( > SAXParserImpl.java:522) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) > at com.sun.xml.xsom.parser.JAXPParser.parse(JAXPParser.java:79) > at com.sun.tools.xjc.ModelLoader$2.parse(ModelLoader.java:479) > at com.sun.tools.xjc.ModelLoader$XMLSchemaParser.parse( > ModelLoader.java:262) > at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity( > NGCCRuntimeEx.java:301) > at com.sun.xml.xsom.impl.parser.ParserContext.parse( > ParserContext.java:88) > at com.sun.xml.xsom.parser.XSOMParser.parse(XSOMParser.java:147) > at com.sun.tools.xjc.ModelLoader.createXSOMSpeculative( > ModelLoader.java:496) > at com.sun.tools.xjc.ModelLoader.loadXMLSchema(ModelLoader.java:366) > at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:167) > at com.sun.tools.xjc.ModelLoader.load(ModelLoader.java:113) > at org.jvnet.jaxb2.maven2.XJC2Mojo.runXJC(XJC2Mojo.java:1054) > at org.jvnet.jaxb2.maven2.XJC2Mojo.execute(XJC2Mojo.java:696) > at org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java:443) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:539) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java:480) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > DefaultLifecycleExecutor.java:459) > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.java:311) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:278) > at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java:143) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > :315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java > :430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >
-- Luciano Resende Apache Tuscany Committer http://people.apache.org/~lresende http://lresende.blogspot.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]