[jboss-user] [Beginners Corner] - JAXB 2.0 API is being loaded (...), but this RI needs 2.1 A
fseyferth
do-not-reply at jboss.com
Thu Apr 3 15:00:42 EDT 2008
In the eclipse console i get
| 11:20:37,593 INFO [Server] Starting JBoss (MX MicroKernel)...
| 11:20:37,609 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
| 11:20:37,609 INFO [Server] Home Dir: C:\jboss-4.2.2.GA
| 11:20:37,609 INFO [Server] Home URL: file:/C:/jboss-4.2.2.GA/
| 11:20:37,609 INFO [Server] Patch URL: null
| 11:20:37,609 INFO [Server] Server Name: default
| 11:20:37,625 INFO [Server] Server Home Dir: C:\jboss-4.2.2.GA\server\default
| 11:20:37,625 INFO [Server] Server Home URL: file:/C:/jboss-4.2.2.GA/server/default/
| 11:20:37,625 INFO [Server] Server Log Dir: C:\jboss-4.2.2.GA\server\default\log
| 11:20:37,625 INFO [Server] Server Temp Dir: C:\jboss-4.2.2.GA\server\default\tmp
| 11:20:37,625 INFO [Server] Root Deployment Filename: jboss-service.xml
| 11:20:44,234 INFO [ServerInfo] Java version: 1.6.0_02,Sun Microsystems Inc.
| 11:20:44,234 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0_02-b05,Sun Microsystems Inc.
| 11:20:44,234 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 11:20:45,812 INFO [Server] Core system initialized
| 11:20:50,281 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
| 11:20:50,281 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
| 11:20:51,671 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
| 11:20:51,671 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
| 11:20:51,968 INFO [TransactionManagerService] Starting recovery manager
| 11:20:52,125 INFO [TransactionManagerService] Recovery manager started
| 11:20:52,125 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
| 11:20:56,625 INFO [EJB3Deployer] Starting java:comp multiplexer
| 11:20:57,000 INFO [STDOUT] no object for null
| 11:20:57,000 INFO [STDOUT] no object for null
| 11:20:57,015 INFO [STDOUT] no object for null
| 11:20:57,031 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
| 11:20:57,046 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
| 11:20:59,843 INFO [NativeServerConfig] JBoss Web Services - Native
| 11:20:59,859 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
| 11:21:01,093 INFO [Embedded] Catalina naming disabled
| 11:21:01,312 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\javaee5\jdk\bin;.;C:\WINXP3\Sun\Java\bin;C:\WINXP3\system32;C:\WINXP3;C:\Program Files\Java\jre1.6.0_05\bin\client;C:\Program Files\Java\jre1.6.0_05\bin;C:\WINXP3\system32;C:\WINXP3;C:\WINXP3\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Panda Security\Panda Antivirus 2008\;C:\javaee5\bin
| 11:21:01,359 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
| 11:21:01,359 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 11:21:01,359 INFO [Catalina] Initialization processed in 267 ms
| 11:21:01,359 INFO [StandardService] Starting service jboss.web
| 11:21:01,359 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
| 11:21:01,390 INFO [Catalina] Server startup in 40 ms
| 11:21:01,546 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
| 11:21:02,812 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 11:21:03,046 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
| 11:21:03,171 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
| 11:21:03,796 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
| 11:21:04,281 INFO [MailService] Mail Service bound to java:/Mail
| 11:21:04,484 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 11:21:04,531 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 11:21:04,562 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 11:21:04,656 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 11:21:04,718 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 11:21:05,250 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 11:21:05,328 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
| 11:21:05,343 INFO [QuartzResourceAdapter] start quartz!!!
| 11:21:05,421 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 11:21:05,437 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 11:21:05,437 INFO [RAMJobStore] RAMJobStore initialized.
| 11:21:05,437 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
| 11:21:05,437 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 11:21:05,437 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 11:21:07,281 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 11:21:07,828 INFO [A] Bound to JNDI name: queue/A
| 11:21:07,843 INFO [B] Bound to JNDI name: queue/B
| 11:21:07,843 INFO [C] Bound to JNDI name: queue/C
| 11:21:07,843 INFO [D] Bound to JNDI name: queue/D
| 11:21:07,843 INFO [ex] Bound to JNDI name: queue/ex
| 11:21:07,875 INFO [testTopic] Bound to JNDI name: topic/testTopic
| 11:21:07,890 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
| 11:21:07,890 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
| 11:21:07,890 INFO [testQueue] Bound to JNDI name: queue/testQueue
| 11:21:07,968 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
| 11:21:08,015 INFO [DLQ] Bound to JNDI name: queue/DLQ
| 11:21:08,125 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 11:21:08,203 INFO [DefaultEndpointRegistry] register: jboss.ws:context=HelloWebService,endpoint=HelloWebService
| 11:21:08,406 INFO [TomcatDeployer] deploy, ctxPath=/HelloWebService, warUrl=.../deploy/HelloWebService.war/
| 11:21:09,046 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/HelloWebService.war/
| java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp51033jaxb-impl.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/)
| 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.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
| at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
| at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:116)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilder.createJAXBContext(JAXWSMetaDataBuilder.java:921)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:146)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:63)
| at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:66)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy45.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:619)
| 11:21:09,125 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 11:21:09,187 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo at cf879cef { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/HelloWebService.war/ }
| deployer: MBeanProxyExt[jboss.web:service=WebServer]
| status: Deployment FAILED reason: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from jar:file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp51033jaxb-impl.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/)
| state: FAILED
| watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/HelloWebService.war/WEB-INF/web.xml
| altDD: null
| lastDeployed: 1207221668125
| lastModified: 1207221630421
| mbeans:
| jboss.web:j2eeType=Servlet,name=default,WebModule=//localhost/HelloWebService,J2EEApplication=none,J2EEServer=none (state not available)
| jboss.web:j2eeType=Servlet,name=jsp,WebModule=//localhost/HelloWebService,J2EEApplication=none,J2EEServer=none (state not available)
| jboss.web:j2eeType=Servlet,name=HelloWebService,WebModule=//localhost/HelloWebService,J2EEApplication=none,J2EEServer=none (state not available)
|
|
| 11:21:09,281 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| 11:21:09,296 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 11:21:09,312 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 31s:656ms
|
It seems to have something to do with JAXB
| 11:21:09,046 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/HelloWebService.war/
| java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI
| (from jar:file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp51033jaxb-impl.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/)
|
I am using the following on WinXP/SP2 :
c:\jboss-4.2.2.GA
c:\javaee5\jdk
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode)
JBossTools-2.0.1.GA-ALL-win32
Eclipse 3.3.2 (latest)
And i am trying to run the following servlet:
HelloWebService.java
| package org.eclipse.samples.ws;
|
| import javax.jws.WebService;
|
| @WebService
| public class HelloWebService {
| public String getGreeting(String name) {
| return "Hello " + name;
| }
| }
|
|
if it's something obvious, i am sorry, i am very new to all this...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141476#4141476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141476
More information about the jboss-user
mailing list