10 Replies Latest reply: Mar 4, 2009 1:28 AM by Richard Opalka RSS

Exceptions to deploy Jar using jbossws-metro 3.05

Yong Zhang Newbie

JBoss 4.2.2
JBossWS-metro 3.05

I keep getting this error with a jar deployment (EJB3 endpoint):

17:10:43,313 INFO [EJBContainer] STARTED EJB: com.aas.employersvc.EmployerImpl ejbName: EmployerImpl
17:10:43,313 INFO [EJB3Deployer] Deployed: file:/G:/devworks/apps/jboss-4.2.2.GA/server/default/deploy/employerWS.jar
17:10:43,313 INFO [SunJaxwsDeploymentAspect] Add Endpoint
 name=EmployerImpl
 implementation=com.aas.employersvc.EmployerImpl
 url-pattern=/*
 enable-mtom=false
17:10:43,360 INFO [DefaultEndpointRegistry] register: jboss.ws:context=employer,endpoint=EmployerImpl
17:10:43,422 INFO [TomcatDeployer] deploy, ctxPath=/employer, warUrl=.../tmp/deploy/employerWS.jar3587.war/
17:10:43,516 ERROR [STDERR] java.lang.StringIndexOutOfBoundsException: String index out of range: -6
17:10:43,531 ERROR [STDERR] at java.lang.String.substring(String.java:1768)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.common.URLLoaderAdapter.getChildren(URLLoaderAdapter.java:152)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.VFSResourceLoader.getFileResources(VFSResourceLoader.java:98)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.VFSResourceLoader.getResourcePaths(VFSResourceLoader.java:87)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.collectDocs(DeploymentDescriptorParserExt
.java:219)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.findDocs(DeploymentDescriptorParserExt.ja
va:151)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.<init>(DeploymentDescriptorParserExt.java
:138)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserJBWS.<init>(DeploymentDescriptorParserJBWS.ja
va:52)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.createDeploymentDescriptorParser(
RuntimeModelDeploymentAspect.java:163)
17:10:43,531 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspec
t.java:104)
17:10:43,563 ERROR [STDERR] at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl
.java:129)

..........................

17:10:43,594 ERROR [URLLoaderAdapter] Cannot get children for resource: jar:file:/G:/devworks/apps/jboss-4.2.2.GA/server/default/tmp
/deploy/tmp3585employerWS.jar!/META-INF/wsdl/


I did a quick look at the source code, and it appears it has issue to get the folder name of the jar. That part of the code is new in 3.05 by alessio to fix a issue that we need: [JBWS-2206] - WSDL imports are not replaced with absolute path.

Can alessio or someone please advise the cause? Thanks a lot.

  • 1. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Yong Zhang Newbie


    This issue also happens to the provided test samples:

    10:33:35,829 INFO [EARDeployer] Init J2EE application: file:/G:/devworks/apps/jboss-4.2.2.GA/server/default/deploy/jaxws-samples-ea
    rdeployment42.ear
    10:33:35,969 INFO [SunJaxwsDeploymentAspect] Add Endpoint
     name=TestService
     implementation=org.jboss.test.ws.jaxws.samples.eardeployment.JSEBean
     url-pattern=/JSEBean/*
     enable-mtom=false
    10:33:35,969 INFO [DefaultEndpointRegistry] register: jboss.ws:context=earjse,endpoint=TestService
    10:33:36,001 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
    10:33:36,001 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=jaxws-samples-eardeployment42.ear,jar=jaxws-samples-earde
    ployment.jar,name=EJB3Bean,service=EJB3 with dependencies:
    10:33:36,001 INFO [EJBContainer] STARTED EJB: org.jboss.test.ws.jaxws.samples.eardeployment.EJB3Bean ejbName: EJB3Bean
    10:33:36,016 INFO [EJB3Deployer] Deployed: file:/G:/devworks/apps/jboss-4.2.2.GA/server/default/tmp/deploy/tmp30120jaxws-samples-ea
    rdeployment42.ear-contents/jaxws-samples-eardeployment.jar
    10:33:36,016 INFO [SunJaxwsDeploymentAspect] Add Endpoint
     name=EJB3Bean
     implementation=org.jboss.test.ws.jaxws.samples.eardeployment.EJB3Bean
     url-pattern=/EJB3Bean
     enable-mtom=false
    10:33:36,032 INFO [DefaultEndpointRegistry] register: jboss.ws:context=earejb3,endpoint=EJB3Bean
    10:33:36,048 INFO [TomcatDeployer] deploy, ctxPath=/earejb3, warUrl=.../tmp/deploy/jaxws-samples-eardeployment42.ear-jaxws-samples-
    eardeployment.jar30123.war/
    10:33:36,126 ERROR [STDERR] java.lang.StringIndexOutOfBoundsException: String index out of range: -6
    10:33:36,126 ERROR [STDERR] at java.lang.String.substring(String.java:1768)
    10:33:36,126 ERROR [STDERR] at org.jboss.wsf.common.URLLoaderAdapter.getChildren(URLLoaderAdapter.java:152)
    10:33:36,126 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.VFSResourceLoader.getFileResources(VFSResourceLoader.java:98)
    10:33:36,126 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.VFSResourceLoader.getResourcePaths(VFSResourceLoader.java:87)
    10:33:36,126 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.collectDocs(DeploymentDescriptorParserExt
    .java:219)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.findDocs(DeploymentDescriptorParserExt.ja
    va:151)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.<init>(DeploymentDescriptorParserExt.java
    :138)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.stack.metro.DeploymentDescriptorParserJBWS.<init>(DeploymentDescriptorParserJBWS.ja
    va:52)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.createDeploymentDescriptorParser(
    RuntimeModelDeploymentAspect.java:163)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspec
    t.java:104)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl
    .java:129)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
    10:33:36,141 ERROR [STDERR] at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
    10:33:36,141 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptor
    Support.java:188)
    10:33:36,141 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    10:33:36,141 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    10:33:36,141 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    10:33:36,141 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    10:33:36,141 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    10:33:36,141 ERROR [STDERR] at $Proxy34.start(Unknown Source)
    10:33:36,141 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    10:33:36,141 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
    10:33:36,141 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    10:33:36,157 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    10:33:36,157 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
    10:33:36,157 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10:33:36,157 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.jav
    a:142)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    10:33:36,157 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    10:33:36,157 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
    10:33:36,157 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    10:33:36,157 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    10:33:36,157 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentSca
    nner.java:263)
    10:33:36,157 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.jav
    a:336)
    10:33:36,157 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    10:33:36,157 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    10:33:36,157 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    10:33:36,157 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10:33:36,173 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    10:33:36,173 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    10:33:36,173 ERROR [STDERR] at $Proxy0.start(Unknown Source)
    10:33:36,173 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
    10:33:36,173 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    10:33:36,173 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10:33:36,173 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    10:33:36,173 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    10:33:36,173 ERROR [STDERR] at $Proxy4.start(Unknown Source)
    10:33:36,173 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    10:33:36,173 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    10:33:36,173 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    10:33:36,173 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    10:33:36,173 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    10:33:36,173 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10:33:36,188 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    10:33:36,188 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10:33:36,188 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.jav
    a:142)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    10:33:36,188 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    10:33:36,188 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
    10:33:36,188 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    10:33:36,188 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    10:33:36,188 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
    10:33:36,188 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
    10:33:36,188 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
    10:33:36,188 ERROR [URLLoaderAdapter] Cannot get children for resource: jar:file:/G:/devworks/apps/jboss-4.2.2.GA/server/default/tmp
    /deploy/tmp30120jaxws-samples-eardeployment42.ear-contents/jaxws-samples-eardeployment.jar!/META-INF/wsdl/
    10:33:36,219 WARN [RuntimeModelDeploymentAspect] Unable to resolve SPI for type: class com.sun.xml.ws.api.pipe.TubelineAssemblerFac
    tory
    10:33:36,219 WARN [RuntimeModelDeploymentAspect] Unable to resolve SPI for type: class com.sun.xml.ws.assembler.ServerPipelineHook
    10:33:36,219 INFO [TomcatDeployer] deploy, ctxPath=/earjse, warUrl=.../tmp/deploy/tmp30120jaxws-samples-eardeployment42.ear-content
    s/jaxws-samples-eardeployment-exp.war/
    
    


  • 2. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Yong Zhang Newbie

    Can anyone from JBoss please confirm this? We need to make a decision on use of JBossWS-metro. Thanks in advance.

  • 3. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Richard Opalka Master

    Does your problem still persist with JBossWS 3.1.0 released on yesterday?
    Please let us know.

  • 4. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Yong Zhang Newbie

    Thanks Richard.

    Yes, just did a test using the samples distributed with JBossWS 3.1.0-Metro, and the problem still persist on jboss-4.2.3.GA in the following three samples.

    By the way, does JBossWS 3.1.0 support JBoss-4.2.2.GA, as there is no build target for JBoss-4.2.2.GA anymore in JBossWS 3.1.0?


    20:56:18,839 INFO [TomcatDeployer] deploy, ctxPath=/jaxws-samples-retail, warUrl=.../tmp/deploy/jaxws-samples-retail.jar38875.war/
    20:56:19,039 ERROR [STDERR] java.lang.StringIndexOutOfBoundsException: String index out of range: -6
    
    ..............
    20:56:19,098 ERROR [URLLoaderAdapter] Cannot get children for resource: jar:file:/F:/app/jboss-4.2.3.GA/server/default/tmp/deploy/tmp38873jaxws-samples-retail.jar!/META-INF/wsdl/
    

    20:56:56,636 INFO [TomcatDeployer] deploy, ctxPath=/earejb3, warUrl=.../tmp/deploy/jaxws-samples-eardeployment42.ear-jaxws-samples-eardeployment.jar38888.war/
    20:56:56,837 ERROR [STDERR] java.lang.StringIndexOutOfBoundsException: String index out of range: -6
    
    ........
    
    20:56:56,896 ERROR [URLLoaderAdapter] Cannot get children for resource: jar:file:/F:/app/jboss-4.2.3.GA/server/default/tmp/deploy/tmp38885jaxws-samples-eardeployment42.ear-contents/jaxws-samples-eardeployment.jar!/META-I
    NF/wsdl/
    


    20:58:28,272 INFO [DefaultEndpointRegistry] register: jboss.ws:context=jaxws-samples-webservice02-ejb3,endpoint=EJB3Bean02
    20:58:28,319 INFO [TomcatDeployer] deploy, ctxPath=/jaxws-samples-webservice02-ejb3, warUrl=.../tmp/deploy/jaxws-samples-webservice02-ejb3.jar38937.war/
    20:58:28,480 ERROR [STDERR] java.lang.StringIndexOutOfBoundsException: String index out of range: -6
    ........
    
    20:58:28,533 ERROR [URLLoaderAdapter] Cannot get children for resource: jar:file:/F:/app/jboss-4.2.3.GA/server/default/tmp/deploy/tmp38935jaxws-samples-webservice02-ejb3.jar!/META-INF/wsdl/
    


  • 5. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Richard Opalka Master

     

    "yongz" wrote:
    Does JBossWS 3.1.0 support JBoss-4.2.2.GA, as there is no build target for JBoss-4.2.2.GA anymore in JBossWS 3.1.0?

    No. We always support only last three stable AS releases (AS 4.2.3, 5.0.0 and 5.0.1 currently)

  • 6. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Richard Opalka Master

     

    "yongz" wrote:
    Yes, just did a test using the samples distributed with JBossWS 3.1.0-Metro, and the problem still persist on jboss-4.2.3.GA ...

    Are you able to reproduce your problem on AS 5.0.x series too?

  • 7. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Yong Zhang Newbie

    Yes, that worked on AS 5.01.

    However:
    1. It appears that imported schema must be in the same folder with its WSDL.
    2. We will have to upgrade to JBoss 5 for JBossWS 3.1.0 and future releases.

  • 8. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Richard Opalka Master

     

    "yongz" wrote:
    It appears that imported schema must be in the same folder with its WSDL.

    Hi,

    yes, you're right. All your WSDLs and imported schemas have to be placed in

    WEB-INF/wsdl folder or its subfolders (POJO endpoints)
    META-INF/wsdl folder or its subfolders (EJB endpoints)


    It's for security reasons.

  • 9. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Richard Opalka Master

     

    "yongz" wrote:
    We will have to upgrade to JBoss 5 for JBossWS 3.1.0 and future releases.

    Yes, because we do plan to drop AS 4.2.x series support soon (probably next release).

  • 10. Re: Exceptions to deploy Jar using jbossws-metro 3.05
    Richard Opalka Master

     

    "yongz" wrote:
    It appears that imported schema must be in the same folder with its WSDL.

    Not sure about Metro integration but jbossws-native doesn't require you to have WSDL and imported schemas in the same subfolder.