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-3576) The travel sample smsgateway-ejb module fails on JDK 5
Date Tue, 01 Jun 2010 21:38:36 GMT

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

Simon Nash resolved TUSCANY-3576.
---------------------------------

    Resolution: Fixed

Fixed under revision r949355 in the 1.0 release branch and r949356 in trunk.

> The travel sample smsgateway-ejb module fails on JDK 5
> ------------------------------------------------------
>
>                 Key: TUSCANY-3576
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3576
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Travel Sample
>            Reporter: Simon Nash
>            Assignee: Simon Nash
>
> Running the smsgateway-ejb service on JDK 5 produces the following error.  This is caused
by an incorrect classpath setting in antdefs.xml which causes the wrong version of the jaxb-api
jar to be loaded.
>      [java] Publishing SMS Gateway Service as an EJB service
>      [java] Apache OpenEJB 3.1.2    build: 20091010-03:11
>      [java] http://openejb.apache.org/
>      [java] INFO - openejb.home = E:\testrc2\tuscany-scatours-1.0\travelsample\s
> ervices\smsgateway-ejb
>      [java] INFO - openejb.base = E:\testrc2\tuscany-scatours-1.0\travelsample\s
> ervices\smsgateway-ejb
>      [java] INFO - Configuring Service(id=Default Security Service, type=Securit
> yService, provider-id=Default Security Service)
>      [java] INFO - Configuring Service(id=Default Transaction Manager, type=Tran
> sactionManager, provider-id=Default Transaction Manager)
>      [java] INFO - Found ClientModule in classpath: P:\tuscany-sca-1.6\lib\xalan
> -2.7.0.jar
>      [java] INFO - Found ClientModule in classpath: P:\tuscany-sca-1.6\lib\org.a
> pache.felix.main-1.0.4.jar
>      [java] INFO - Found PersistenceModule in classpath: P:\tuscany-sca-1.6\lib\
> activemq-all-5.2.0.jar
>      [java] INFO - Found PersistenceModule in classpath: P:\tuscany-sca-1.6\lib\
> ode-bpel-store-1.1.1.jar
>      [java] INFO - Found EjbModule in classpath: E:\testrc2\tuscany-scatours-1.0
> \travelsample\services\smsgateway-ejb\target\scatours-service-smsgateway-ejb.jar
>      [java] INFO - Found ClientModule in classpath: P:\tuscany-sca-1.6\lib\saxon
> -8.7.jar
>      [java] INFO - Found PersistenceModule in classpath: P:\tuscany-sca-1.6\lib\
> ode-dao-jpa-1.1.1.jar
>      [java] INFO - Found ClientModule in classpath: P:\tuscany-sca-1.6\lib\jaxb-
> xjc-2.1.7.jar
>      [java] INFO - Found ClientModule in classpath: P:\tuscany-sca-1.6\lib\jytho
> n-2.2.jar
>      [java] INFO - Found ClientModule in classpath: P:\tuscany-sca-1.6\lib\js-1.
> 6R7.jar
>      [java] INFO - Found ClientModule in classpath: P:\tuscany-sca-1.6\lib\xml-r
> esolver-1.1.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\xalan-2.7.0.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\org.apache.felix.main-
> 1.0.4.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\activemq-all-5.2.0.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\ode-bpel-store-1.1.1.j
> ar
>      [java] INFO - Beginning load: E:\testrc2\tuscany-scatours-1.0\travelsample\
> services\smsgateway-ejb\target\scatours-service-smsgateway-ejb.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\saxon-8.7.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\ode-dao-jpa-1.1.1.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\jaxb-xjc-2.1.7.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\jython-2.2.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\js-1.6R7.jar
>      [java] INFO - Beginning load: P:\tuscany-sca-1.6\lib\xml-resolver-1.1.jar
>      [java] INFO - Configuring enterprise application: classpath.ear
>      [java] FATAL - OpenEJB has encountered a fatal error and cannot be started:
>  The Assembler encountered an unexpected error while attempting to build the con
> tainer system.
>      [java] Exception in thread "main" javax.naming.NamingException: Attempted t
> o load OpenEJB. OpenEJB has encountered a fatal error and cannot be started: The
>  Assembler encountered an unexpected error while attempting to build the contain
> er system.: JAXB 2.0 API jar is being loaded (from jar:file:/E:/testrc2/tuscany-
> scatours-1.0/lib/openejb/javaee-api-5.0-2.jar!/javax/xml/bind/annotation/XmlSche
> ma.class), but this RI (from jar:file:/P:/tuscany-sca-1.6/lib/jaxb-impl-2.1.7.ja
> r!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) requires JAXB 2.1 API jar.
>  [Root exception is org.apache.openejb.OpenEJBException: OpenEJB has encountered
>  a fatal error and cannot be started: The Assembler encountered an unexpected er
> ror while attempting to build the container system.: JAXB 2.0 API jar is being l
> oaded (from jar:file:/E:/testrc2/tuscany-scatours-1.0/lib/openejb/javaee-api-5.0
> -2.jar!/javax/xml/bind/annotation/XmlSchema.class), 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/Model
> Builder.class) requires JAXB 2.1 API jar.]
>      [java] java.lang.LinkageError: JAXB 2.0 API jar is being loaded (from jar:f
> ile:/E:/testrc2/tuscany-scatours-1.0/lib/openejb/javaee-api-5.0-2.jar!/javax/xml
> /bind/annotation/XmlSchema.class), 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) re
> quires JAXB 2.1 API jar.
>      [java]     at org.apache.openejb.client.LocalInitialContextFactory.init(Loc
> alInitialContextFactory.java:55)
>      [java]     at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBui
> lder.java:173)
>      [java]     at org.apache.openejb.client.LocalInitialContextFactory.getIniti
> alContext(LocalInitialContextFactory.java:42)
>      [java]     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JA
> XBContextImpl.java:422)
>      [java]     at javax.naming.spi.NamingManager.getInitialContext(NamingManage
> r.java:667)
>      [java]     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContex
> tImpl.java:286)
>      [java]     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.
> java:247)
>      [java]     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFacto
> ry.java:139)
>      [java]     at javax.naming.InitialContext.init(InitialContext.java:223)
>      [java]     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFacto
> ry.java:117)
>      [java]     at javax.naming.InitialContext.<init>(InitialContext.java:197)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at com.tuscanyscatours.smsgateway.SMSGatewayEJBServiceBootstrap.
> main(SMSGatewayEJBServiceBootstrap.java:35)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java] Caused by: org.apache.openejb.OpenEJBException: OpenEJB has encounte
> red a fatal error and cannot be started: The Assembler encountered an unexpected
>  error while attempting to build the container system.: JAXB 2.0 API jar is bein
> g loaded (from jar:file:/E:/testrc2/tuscany-scatours-1.0/lib/openejb/javaee-api-
> 5.0-2.jar!/javax/xml/bind/annotation/XmlSchema.class), but this RI (from jar:fil
> e:/P:/tuscany-sca-1.6/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/Mo
> delBuilder.class) requires JAXB 2.1 API jar.
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:144)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:592)
>      [java]     at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
>      [java]     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:2
> 10)
>      [java]     at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
>      [java]     at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at org.apache.openejb.jee.JAXBContextFactory.newInstance(JAXBCon
> textFactory.java:68)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:592)
>      [java]     at org.apache.openejb.jee.jpa.unit.JaxbPersistenceFactory.getPer
> sistence(JaxbPersistenceFactory.java:49)
>      [java]     at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstanc
> e.java:36)
>      [java]     at org.apache.openejb.config.ReadDescriptors.deploy(ReadDescript
> ors.java:103)
>      [java]     at org.apache.openejb.client.LocalInitialContextFactory.init(Loc
> alInitialContextFactory.java:71)
>      [java]     at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(C
> onfigurationFactory.java:247)
>      [java]     at org.apache.openejb.client.LocalInitialContextFactory.init(Loc
> alInitialContextFactory.java:53)
>      [java]     at org.apache.openejb.config.ConfigurationFactory.configureAppli
> cation(ConfigurationFactory.java:601)
>      [java]     ... 6 more
>      [java]     at org.apache.openejb.config.ConfigurationFactory.configureAppli
> cation(ConfigurationFactory.java:551)
>      [java] Caused by: java.lang.LinkageError: JAXB 2.0 API jar is being loaded
> (from jar:file:/E:/testrc2/tuscany-scatours-1.0/lib/openejb/javaee-api-5.0-2.jar
> !/javax/xml/bind/annotation/XmlSchema.class), but this RI (from jar:file:/P:/tus
> cany-sca-1.6/lib/jaxb-impl-2.1.7.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilde
> r.class) requires JAXB 2.1 API jar.
>      [java]     at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConf
> iguration(ConfigurationFactory.java:380)
>      [java]     at com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBui
> lder.java:173)
>      [java]     at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConf
> iguration(Assembler.java:299)
>      [java]     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JA
> XBContextImpl.java:422)
>      [java]     at org.apache.openejb.assembler.classic.Assembler.build(Assemble
> r.java:278)
>      [java]     at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContex
> tImpl.java:286)
>      [java]     at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
>      [java]     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFacto
> ry.java:139)
>      [java]     at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
>      [java]     at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFacto
> ry.java:117)
>      [java]     at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
> sorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
> hodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:592)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:592)
>      [java]     at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:2
> 10)
>      [java]     at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstanc
> e.java:36)
>      [java]     at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
>      [java]     at org.apache.openejb.client.LocalInitialContextFactory.init(Loc
> alInitialContextFactory.java:71)
>      [java]     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
>      [java]     at org.apache.openejb.client.LocalInitialContextFactory.init(Loc
> alInitialContextFactory.java:53)
>      [java]     at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
>      [java]     at org.apache.openejb.client.LocalInitialContextFactory.getIniti
> alContext(LocalInitialContextFactory.java:42)
>      [java]     at org.apache.openejb.jee.JAXBContextFactory.newInstance(JAXBCon
> textFactory.java:68)
>      [java]     at javax.naming.spi.NamingManager.getInitialContext(NamingManage
> r.java:667)
>      [java]     at org.apache.openejb.jee.jpa.unit.JaxbPersistenceFactory.getPer
> sistence(JaxbPersistenceFactory.java:49)
>      [java]     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.
> java:247)
>      [java]     at org.apache.openejb.config.ReadDescriptors.deploy(ReadDescript
> ors.java:103)
>      [java]     at javax.naming.InitialContext.init(InitialContext.java:223)
>      [java]     at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(C
> onfigurationFactory.java:247)
>      [java]     at javax.naming.InitialContext.<init>(InitialContext.java:197)
>      [java]     at org.apache.openejb.config.ConfigurationFactory.configureAppli
> cation(ConfigurationFactory.java:601)
>      [java]     at com.tuscanyscatours.smsgateway.SMSGatewayEJBServiceBootstrap.
> main(SMSGatewayEJBServiceBootstrap.java:35)
>      [java]     at org.apache.openejb.config.ConfigurationFactory.configureAppli
> cation(ConfigurationFactory.java:551)
>      [java]     at org.apache.openejb.config.ConfigurationFactory.getOpenEjbConf
> iguration(ConfigurationFactory.java:380)
>      [java]     at org.apache.openejb.assembler.classic.Assembler.getOpenEjbConf
> iguration(Assembler.java:299)
>      [java]     at org.apache.openejb.assembler.classic.Assembler.build(Assemble
> r.java:278)
>      [java]     at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
>      [java]     ... 15 more
>       [ant] Exiting E:\testrc2\tuscany-scatours-1.0\travelsample\services\smsgat
> eway-ejb\build.xml.
> BUILD FAILED
> E:\testrc2\tuscany-scatours-1.0\travelsample\launchers\notification-ejb\build.xm
> l:30: The following error occurred while executing this line:
> E:\testrc2\tuscany-scatours-1.0\travelsample\services\smsgateway-ejb\build.xml:2
> 8: Java returned: 1
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(Projec
> tHelper.java:508)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:592)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.Main.runBuild(Main.java:758)
>         at org.apache.tools.ant.Main.startAnt(Main.java:217)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: E:\testrc2\tuscany-scatours-1.0\travelsample\services\smsgateway-ejb\
> build.xml:28: Java returned: 1
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:592)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> CheckExecutor.java:38)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>         ... 17 more
> --- Nested Exception ---
> E:\testrc2\tuscany-scatours-1.0\travelsample\services\smsgateway-ejb\build.xml:2
> 8: Java returned: 1
>         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:592)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
> CheckExecutor.java:38)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:592)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
> a:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
> cutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>         at org.apache.tools.ant.Main.runBuild(Main.java:758)
>         at org.apache.tools.ant.Main.startAnt(Main.java:217)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Total time: 3 seconds

-- 
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