0 Replies Latest reply on Oct 12, 2011 5:14 PM by jefimm

    WebService problems with JBoss AS 7.0.1

    jefimm Newbie

      I'm trying to create web service in my existing war and getting unexplained errors.

      Here is the service definition:

       

      @WebService(name="PanelAPIWS")

      public interface PanelAPI {

          @WebMethod

          public int test1(int a,int b);

      }

       

      And implemetation:

       

      @WebService(endpointInterface = "com.toluna.api.PanelAPI", serviceName = "PanelAPIWS")

      public class PanelAPIWS implements PanelAPI{

       

          public  int test1(int a,int b){ return a+b;}

      }

      Below is log of the error:

       

      23:07:53,366 INFO  [org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect] (MSC service thread 1-6) Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.

      23:07:53,378 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-6) Add Service

      id=PanelAPIWS

      address=http://localhost:8080//internal/panelApi

      implementor=com.toluna.api.PanelAPIWS

      invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

      serviceName={http://api.toluna.com/}PanelAPIWS

      portName={http://api.toluna.com/}PanelAPIWSPort

      wsdlLocation=null

      mtomEnabled=false

      23:07:53,380 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-6) register: jboss.ws:context=,endpoint=PanelAPIWS

      23:07:53,560 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-6) Creating Service {http://api.toluna.com/}PanelAPIWS from class com.toluna.api.PanelAPI

      23:07:53,994 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-6) Setting the server's publish address to be http://localhost:8080//internal/panelApi

      23:07:54,020 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-6) Cannot resolve resource: cxf

      23:07:54,115 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-6) WSDL published to: file:/D:/work/WebServers/jboss-as-7.0.1/standalone/data/wsdl/as2.ear/as2.war/PanelAPIWS.wsdl

      23:07:54,151 WARN  [org.jboss.wsf.stack.cxf.resolver.JBossWSResourceResolver] (MSC service thread 1-6) Cannot resolve resource: org.apache.cxf.ws.rm.RMManager/bus

      23:07:54,165 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-6) remove: jboss.ws:context=,endpoint=PanelAPIWS

      23:07:54,166 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.subunit."as2.ear"."as2.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."as2.ear"."as2.war".INSTALL: Failed to process phase INSTALL of subdeployment "as2.war" of deployment "as2.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

          at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

      Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed

          at org.jboss.msc.service.ServiceName.of(ServiceName.java:85)

          at org.jboss.msc.service.ServiceName.append(ServiceName.java:112)

          at org.jboss.as.webservices.service.EndpointService.<init>(EndpointService.java:64)

          at org.jboss.as.webservices.service.EndpointService.install(EndpointService.java:99)

          at org.jboss.as.webservices.deployers.EndpointServiceDeploymentAspect.start(EndpointServiceDeploymentAspect.java:44)

          at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.internalDeploy(AspectDeploymentProcessor.java:79)

          at org.jboss.as.webservices.deployers.TCCLDeploymentProcessor.deploy(TCCLDeploymentProcessor.java:42)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

       

      Any help would be appreciated.