Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-9545

Improve error message when @WebService.endpointInterface does not have a valid class name (ClassNotFoundException)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.2
    • Web Services
    • None
    • Release Notes
    • The exception when a class name from @WebService.endpointInterface is incorrect was difficult to understand. The exception now explains why the error was thrown, making it easier to pinpoint the root cause.
    • Documented as Resolved Issue
    • NEW

      Currently the stack trace is like this if @WebService.endpointInterface equals MyInterface and it can't be found:

      Caused by: org.jboss.ws.WSException: Cannot build meta data: MyInterface from BaseClassLoader@3fa3a66c{vfszip:/shared/appser
      ver/deploy/example.ear/}
              at org.jboss.ws.WSException.rethrow(WSException.java:60)
              at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:217)
              at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:52)
              at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:76)
              at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.start(UnifiedMetaDataDeploymentAspect.java:69)
              at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:129)
              at org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:76)
              at org.jboss.wsf.container.jboss50.deployer.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:60)
              at org.jboss.wsf.container.jboss50.deployer.WebServiceDeployerEJB.internalDeploy(WebServiceDeployerEJB.java:113)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
              ... 30 more
      Caused by: java.lang.ClassNotFoundException: MyInterface from BaseClassLoader@3fa3a66c{vfszip:/shared/appserver/deploy/example.ear/}
              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
              at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.processWebService(JAXWSWebServiceMetaDataBuilder.java:332)
              at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:112)
              ... 39 more
      

              rh-ee-klape Kyle Lape
              rh-ee-klape Kyle Lape
              Russell Dickenson Russell Dickenson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: