5 Replies Latest reply: Dec 2, 2008 2:14 AM by ab alissa RSS

Failed to build METRO runtime model

ab alissa Newbie

Hi

i am trying to use jbossws-metro 3.0.4 with JBoss 4.2.2 on
jdk1.6.0_10(with endorsed)
C:\Program Files\Java\jdk1.6.0_10\jre\lib\endorsed\
jaxb-api.jar
jaxws-api.jar
jaxws-rt.jar
saaj-impl.jar

C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.6.0_10

i have successfully install it in my jboss:
Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist>ant deploy-jboss422
ldfile: build.xml

get-jboss422:

pare:

t:
[echo] integration.target=jboss422

eploy-jboss422:
[delete] Deleting directory C:\jboss-4.2.2.GA\server\default\deploy\jbossws.sar
[delete] Deleting directory C:\jboss-4.2.2.GA\server\default\deploy\juddi-service.sar

pare-deploy:

loy-structure-jboss42:
[delete] Deleting directory C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422

ck-parameters:

loy-jbossws-endorsed:
[mkdir] Created dir: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\lib\endorsed
[copy] Copying 1 file to C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\lib\endorsed

loy-jbossws-metro42:
[mkdir] Created dir: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\bin
[copy] Copying 4 files to C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\bin
[mkdir] Created dir: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\client
[copy] Copying 21 files to C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\client
[mkdir] Created dir: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\server\default\lib
[copy] Copying 8 files to C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\server\default\lib
[mkdir] Created dir: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\server\default\deploy\jbossws.sar
[copy] Copying 29 files to C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\server\default\deploy\jbossws.sar
[unzip] Expanding: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\deploy\lib\jbossws-metro-management.war into C:\Projects\Lib\JAXWS\JBossws-met
jbossws-metro-bin-dist\output\deploy-jboss422\server\default\deploy\jbossws.sar\jbossws-management.war
[copy] Copying 1 file to C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\server\default\deploy\jbossws.sar\jbossws.beans
[copy] Copying 1 file to C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\server\default\deploy\jbossws.sar\META-INF
[mkdir] Created dir: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\output\deploy-jboss422\server\default\deploy\juddi-service.sar
[unzip] Expanding: C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist\deploy\lib\juddi-service.sar into C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-
ro-bin-dist\output\deploy-jboss422\server\default\deploy\juddi-service.sar

loy-jboss422:
[copy] Copying 88 files to C:\jboss-4.2.2.GA
[copy] Copied 31 empty directories to 2 empty directories under C:\jboss-4.2.2.GA

LD SUCCESSFUL
al time: 18 seconds
Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist>
-----------------------------------------

but when i run the test it fails:

Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist>ant tests
ldfile: build.xml

pare:

t:
[echo] integration.target=jboss422

ts-prepare:
[echo]
[echo] -----------------------------------------------
[echo] jboss.home = C:\jboss-4.2.2.GA
[echo] excludesfile = C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist/tests/resources/test-excludes-jboss422.txt
[echo] java.home = C:\Program Files\Java\jdk1.6.0_10\jre
[echo] jboss.bind = localhost
[echo] -----------------------------------------------

ts-classpath-jboss50:

ts-classpath-jboss42:

ts-classpath:

ts-init:

ts-compile:

ts-copy-resources:

ts-jars:

ld-samples-jaxws:

ts:

pare:

t:
[echo] integration.target=jboss422

ts-prepare:
[echo]
[echo] -----------------------------------------------
[echo] jboss.home = C:\jboss-4.2.2.GA
[echo] excludesfile = C:\Projects\Lib\JAXWS\JBossws-metro\jbossws-metro-bin-dist/tests/resources/test-excludes-jboss422.txt
[echo] java.home = C:\Program Files\Java\jdk1.6.0_10\jre
[echo] jboss.bind = localhost
[echo] -----------------------------------------------

ts-classpath-jboss50:

ts-classpath-jboss42:

ts-classpath:

ts-init:

ts-run-internal:
[junit] Running org.jboss.test.ws.console.ConsoleAccessTestCase
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.078 sec
[junit] Running org.jboss.test.ws.jaxws.samples.advanced.retail.RetailSampleTestCase
[junit] javax.management.MBeanException
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at sun.reflect.GeneratedMethodAccessor159.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
[junit] at sun.reflect.GeneratedMethodAccessor113.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
[junit] at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
[junit] at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
[junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
[junit] at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
[junit] at sun.rmi.transport.Transport$1.run(Transport.java:159)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
[junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
[junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
[junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[junit] at java.lang.Thread.run(Thread.java:619)
[junit] Caused by: org.jboss.deployment.DeploymentException: Could not create deployment: file:/C:/Projects/Lib/JAXWS/JBossws-metro/jbossws-metro-bin-dist/o
ut/test-libs/jaxws-samples-retail.jar; - nested throwable: (javax.xml.ws.WebServiceException: Failed to build METRO runtime model)
[junit] at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
[junit] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1050)
[junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
[junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
[junit] at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
[junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[junit] at java.lang.reflect.Method.invoke(Method.java:597)
[junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
[junit] ... 47 more
[junit] Caused by: javax.xml.ws.WebServiceException: Failed to build METRO runtime model
[junit] at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspect.java:134)
[junit] at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.start(DeploymentAspectManagerImpl.java:144)
[junit] at org.jboss.wsf.container.jboss42.LazyAssemblyWSFRuntime.start(LazyAssemblyWSFRuntime.java:66)
[junit] at org.jboss.wsf.container.jboss42.AbstractDeployerHookEJB.deploy(AbstractDeployerHookEJB.java:49)
[junit] at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
[junit] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
[junit] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
[junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
[junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
[junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
[junit] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
[junit] at $Proxy34.start(Unknown Source)
[junit] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
[junit] ... 53 more
[junit] Caused by: java.lang.NoClassDefFoundError: com/sun/tools/ws/wscompile/WsgenTool
[junit] at org.jboss.wsf.stack.metro.WsgenWrapperGenerator.generate(WsgenWrapperGenerator.java:76)
[junit] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserJBWS.generateWrappers(DeploymentDescriptorParserJBWS.java:90)
[junit] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parseAdapters(DeploymentDescriptorParserExt.java:302)
[junit] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parse(DeploymentDescriptorParserExt.java:179)
[junit] at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspect.java:110)
[junit] ... 65 more
[junit] Server returned HTTP response code: 500 for URL: http://localhost:8080/jaxws-samples-retail/OrderMgmtBean?wsdl.)
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 2.344 sec
[junit] Test org.jboss.test.ws.jaxws.samples.advanced.retail.RetailSampleTestCase FAILED





----------------------------------------
and when i try to deploy my application i got this exception:


javax.xml.ws.WebServiceException: Failed to build METRO runtime model
at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspect.java:134)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.start(DeploymentAspectManagerImpl.java:144)
at org.jboss.wsf.container.jboss42.LazyAssemblyWSFRuntime.start(LazyAssemblyWSFRuntime.java:66)
at org.jboss.wsf.container.jboss42.AbstractDeployerHookEJB.deploy(AbstractDeployerHookEJB.java:49)
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 $Proxy34.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.GeneratedMethodAccessor20.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.GeneratedMethodAccessor4.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.GeneratedMethodAccessor10.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)
Caused by: java.lang.NoClassDefFoundError: com/sun/mirror/apt/AnnotationProcessorFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682)
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)
at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at org.jboss.wsf.stack.metro.WsgenWrapperGenerator.generate(WsgenWrapperGenerator.java:76)
at org.jboss.wsf.stack.metro.DeploymentDescriptorParserJBWS.generateWrappers(DeploymentDescriptorParserJBWS.java:90)
at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parseAdapters(DeploymentDescriptorParserExt.java:302)
at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parse(DeploymentDescriptorParserExt.java:179)
at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspect.java:110)
... 78 more
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: com.sun.mirror.apt.AnnotationProcessorFactory
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 101 more
12:03:48,265 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
12:03:48,406 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@4093aa0f { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/TestWS.jar }
deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
status: Deployment FAILED reason: Failed to build METRO runtime model
state: FAILED
watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/TestWS.jar
altDD: null
lastDeployed: 1227085426953
lastModified: 1227085426937
mbeans:
jboss.j2ee:jar=TestWS.jar,name=Test,service=EJB3 state: Started
jboss.j2ee:jar=TestWS.jar,name=Test2,service=EJB3 state: Started
jboss.j2ee:jar=TestWS.jar,name=WSAddressingTest,service=EJB3 state: Started



So please can you help me on what is the cause of this exception.

regards
aalissa

  • 1. Re: Failed to build METRO runtime model
    ab alissa Newbie

    when i change this line
    @SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
    to
    @SOAPBinding(style = SOAPBinding.Style.RPC)

    it works
    so what do you thank the reason was does metro dose not support DOCUMENT Style or what

    regards

  • 2. Re: Failed to build METRO runtime model
    ab alissa Newbie

    can you please help me

    regards
    aalissa

  • 3. Re: Failed to build METRO runtime model
    Guzman Llambi­as Novice

     

    "aalissa" wrote:
    Hi
    ----------------------------------------
    and when i try to deploy my application i got this exception:


    javax.xml.ws.WebServiceException: Failed to build METRO runtime model
    at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspect.java:134)
    at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.start(DeploymentAspectManagerImpl.java:144)
    at


    Hi, I got this exception when I deploy a metro WS on JBoss. The reason was because the SOAP Message helper classes weren't created. With the JBoss WS native impl, this classes are created automatically, but with Metro stack this doesn't happend till release 3.0.4 (see Wrapper beans generation http://jbossws.jboss.org/mediawiki/index.php?title=Stack_Metro_User_Guide#WS-Security). At that time, I solved the problem by simply creating the classes and adding them to the source with the wsgen tool. You can also use the JBoss equivalent tool.

    Hope this helps

    cheers
    Guzman

  • 4. Re: Failed to build METRO runtime model
    ab alissa Newbie

    thanks alot Guzman for your reply

    i get fresh jboss and install metro on it and the problem is gone

  • 5. Re: Failed to build METRO runtime model
    ab alissa Newbie

    when i delete these jars from the endorsed folder this excpetion is gone
    jboss-jaxrpc.jar
    jboss-jaxws.jar
    jboss-jaxws-ext.jar
    jboss-saaj.jar

    is what i have did correct or not

    regards
    aalissa