tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Nash (JIRA)" <...@tuscany.apache.org>
Subject [jira] Resolved: (TUSCANY-3578) Failure in notification-ejb launcher on JDK 5 when built with maven
Date Tue, 01 Jun 2010 21:41:37 GMT

     [ https://issues.apache.org/jira/browse/TUSCANY-3578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simon Nash resolved TUSCANY-3578.
---------------------------------

    Resolution: Fixed

Fixed under revision r949438 in the 1.0 release branch and r949439 in trunk.

> Failure in notification-ejb launcher on JDK 5 when built with maven
> -------------------------------------------------------------------
>
>                 Key: TUSCANY-3578
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3578
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Travel Sample
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>
> The travel sample notification-ejb launcher fails when built with maven and run on JDK
5 from the binaries/target/launchers directory.  This is because the scatours-launcher-notification-ejb.jar
file has a Class-Path manifest entry that pulls in the OpenEJB 3.1.2 runtime jars, and these
jars contain the wrong level of the JAXB API classes.  The stack trace is shown below.  The
incorrect Class-Path entry isn't present when the notification-ejb launcher is built with
ant.
> run-notification-ejb:
>      [java] 29-May-2010 20:28:57 org.apache.tuscany.sca.node.impl.NodeImpl <init
> >
>      [java] INFO: Creating node: notification-ejb.composite
>      [java] 29-May-2010 20:28:58 org.apache.tuscany.sca.node.impl.NodeImpl confi
> gureNode
>      [java] INFO: Loading contribution: file:/E:/mvnj5/tuscany-scatours-1.0/trav
> elsample/binaries/target/launchers/../contributions/scatours-contribution-notifi
> cation.jar
>      [java] 29-May-2010 20:28:58 org.apache.tuscany.sca.node.impl.NodeImpl confi
> gureNode
>      [java] INFO: Loading contribution: file:/E:/mvnj5/tuscany-scatours-1.0/trav
> elsample/binaries/target/launchers/../contributions/scatours-contribution-notifi
> cation-ejb.jar
>      [java] Exception in thread "main" java.lang.LinkageError: JAXB 2.0 API jar
> is being loaded (from jar:file:/E:/mvnj5/tuscany-scatours-1.0/travelsample/binar
> ies/target/openejb/javaee-api-5.0-2.jar!/javax/xml/bind/annotation/XmlSchema.cla
> ss), but this RI (from jar:file:/P:/tuscany-sca-1.6/lib/jaxb-impl-2.1.7.jar!/com
> /sun/xml/bind/v2/model/impl/ModelBuilder.class) requires JAXB 2.1 API jar.
>      [java]     at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBui
> lder.java:173)
>      [java]     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JA
> XBContextImpl.java:422)
>      [java]     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContex
> tImpl.java:286)
>      [java]     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFacto
> ry.java:139)
>      [java]     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFacto
> ry.java:117)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:592)
>      [java]     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:2
> 10)
>      [java]     at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
>      [java]     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
>      [java]     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache$1.ru
> n(JAXBContextCache.java:126)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache$1.ru
> n(JAXBContextCache.java:124)
>      [java]     at java.security.AccessController.doPrivileged(Native Method)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.newJ
> AXBContext(JAXBContextCache.java:124)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.getD
> efaultJAXBContext(JAXBContextCache.java:149)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.<ini
> t>(JAXBContextCache.java:119)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBContextCache.<ini
> t>(JAXBContextCache.java:112)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBContextHelper.<cl
> init>(JAXBContextHelper.java:63)
>      [java]     at org.apache.tuscany.sca.databinding.jaxb.JAXBDataBinding.intro
> spect(JAXBDataBinding.java:84)
>      [java]     at org.apache.tuscany.sca.databinding.DefaultDataBindingExtensio
> nPoint$LazyDataBinding.introspect(DefaultDataBindingExtensionPoint.java:185)
>      [java]     at org.apache.tuscany.sca.databinding.DefaultDataBindingExtensio
> nPoint.introspectType(DefaultDataBindingExtensionPoint.java:203)
>      [java]     at org.apache.tuscany.sca.core.databinding.processor.DataBinding
> JavaInterfaceProcessor.processInterface(DataBindingJavaInterfaceProcessor.java:1
> 15)
>      [java]     at org.apache.tuscany.sca.core.databinding.processor.DataBinding
> JavaInterfaceProcessor.visitInterface(DataBindingJavaInterfaceProcessor.java:55)
>      [java]     at org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceIn
> trospectorImpl.introspectInterface(JavaInterfaceIntrospectorImpl.java:123)
>      [java]     at org.apache.tuscany.sca.interfacedef.java.impl.JavaInterfaceFa
> ctoryImpl.createJavaInterface(JavaInterfaceFactoryImpl.java:66)
>      [java]     at org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfacePro
> cessor.resolveJavaInterface(JavaInterfaceProcessor.java:193)
>      [java]     at org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfacePro
> cessor.resolve(JavaInterfaceProcessor.java:213)
>      [java]     at org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfacePro
> cessor.resolve(JavaInterfaceProcessor.java:53)
>      [java]     at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti
> factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac
> tProcessorExtensionPoint.java:388)
>      [java]     at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA
> rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
>      [java]     at org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.res
> olveContracts(BaseAssemblyProcessor.java:444)
>      [java]     at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv
> e(CompositeProcessor.java:997)
>      [java]     at org.apache.tuscany.sca.assembly.xml.CompositeProcessor.resolv
> e(CompositeProcessor.java:90)
>      [java]     at org.apache.tuscany.sca.contribution.processor.DefaultStAXArti
> factProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifac
> tProcessorExtensionPoint.java:388)
>      [java]     at org.apache.tuscany.sca.contribution.processor.ExtensibleStAXA
> rtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:183)
>      [java]     at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso
> r.resolve(CompositeDocumentProcessor.java:231)
>      [java]     at org.apache.tuscany.sca.assembly.xml.CompositeDocumentProcesso
> r.resolve(CompositeDocumentProcessor.java:59)
>      [java]     at org.apache.tuscany.sca.contribution.processor.ExtensibleURLAr
> tifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:106)
>      [java]     at org.apache.tuscany.sca.contribution.service.impl.Contribution
> ServiceImpl.processResolvePhase(ContributionServiceImpl.java:625)
>      [java]     at org.apache.tuscany.sca.contribution.service.impl.Contribution
> ServiceImpl.addContribution(ContributionServiceImpl.java:430)
>      [java]     at org.apache.tuscany.sca.contribution.service.impl.Contribution
> ServiceImpl.contribute(ContributionServiceImpl.java:198)
>      [java]     at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeI
> mpl.java:537)
>      [java]     at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.jav
> a:381)
>      [java]     at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.createSCANod
> e(NodeFactoryImpl.java:47)
>      [java]     at scatours.NotificationEJBLauncher.main(NotificationEJBLauncher
> .java:42)
> BUILD FAILED

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message