4 Replies Latest reply on Dec 21, 2011 9:06 AM by akhil.syal

    WebService deployment failed.

    Jonas Hu Newbie

      Hi everyone:

       

           I  try to deploy a simple webservice on JBoss AS 7.0.2.Final "Arc", but  always failed.

           The console show nothing about webservice's detect and deployment,however, the service indeed is a webservice implementation.

           This has puzzled me for a few days.

           Any suggestion will be appreciated.

       

           below are the source codes:

           =============================================================

      package com.wasu.as.sp.service.core;

      import javax.ejb.Stateless;
      import javax.jws.WebMethod;
      import javax.jws.WebService;
      import javax.jws.soap.SOAPBinding;

      @Stateless
      @WebService(name="TestService",
                  targetNamespace = "http://core.service.sp.as.wasu.com",
                  serviceName = "TestService")
      @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 
      public class TestService implements ITestServiceLocal, ITestServiceRemote {

      @Override
      @WebMethod
      public int add(int i, int j) {
        return i+j;
      }

      @Override
      @WebMethod
      public int dec(int i, int j) {
        return i - j;
      }
      }

      ==============================    logs =====================================

      15:53:39,546 信息    [org.jboss.modules] JBoss Modules version 1.0.2.GA
      15:53:39,828 INFO  [org.jboss.msc] JBoss MSC version 1.0.1.GA
      15:53:39,921 INFO  [org.jboss.as] JBoss AS 7.0.2.Final "Arc" starting
      15:53:40,843 WARN  [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.
      15:53:40,843 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990)
      15:53:40,875 WARN  [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.
      15:53:40,890 INFO  [org.jboss.as.connector.subsystems.datasources] Deploying JDBC-compliant driver class oracle.jdbc.driver.OracleDriver (version 10.2)
      15:53:40,906 INFO  [org.jboss.as.logging] Removing bootstrap log handlers
      15:53:40,984 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)
      15:53:41,000 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.
      15:53:41,109 INFO  [org.jboss.as.naming] (Controller Boot Thread) JBAS011800: Activating Naming Subsystem
      15:53:41,109 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
      15:53:41,125 INFO  [org.jboss.as.osgi] (Controller Boot Thread) JBAS011910: Activating OSGi Subsystem
      15:53:41,140 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem
      15:53:41,187 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.0.Beta2
      15:53:41,250 INFO  [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.0.Beta3
      15:53:41,265 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.0.Beta3
      15:53:41,578 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem
      15:53:41,578 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-2) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Programs\Java\jdk1.6.0_25\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:\Programs\Java\jdk1.6.0_25\jre\bin;D:/Programs/MyEclipse10.0/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin/client;D:/Programs/MyEclipse10.0/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/bin;D:/Programs/MyEclipse10.0/Common/binary/com.sun.java.jdk.win32.x86_1.6.0.013/jre/lib/i386;C:\Program Files\Common Files\NetSarang;C:\oracle\ora90\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Programs\Java\jdk1.6.0_25\bin;D:\Programs\apache\ant\1.7.1\bin;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;D:\Programs\Subversion\bin;D:\Programs\TortoiseSVN\bin;C:\Program Files\QuickTime\QTSystem\;D:\Programs\Borland\Delphi7\Bin;D:\Programs\Borland\Delphi7\Projects\Bpl\;E:\Repositories\userLibs\apache\maven\3.0\bin;
      15:53:41,625 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) Listening on /127.0.0.1:9999
      15:53:41,828 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-4) Starting remote JMX connector
      15:53:41,828 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
      15:53:42,093 INFO  [org.jboss.as.connector] (MSC service thread 1-2) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)
      15:53:42,156 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/ExampleDS]
      15:53:42,156 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) Bound data source [java:/ds/spmgr]
      15:53:42,218 WARN  [org.jboss.as.deployment] (MSC service thread 1-1) Reliable deployment behaviour is not possible when auto-deployment of exploded content is enabled (i.e. deployment without use of ".dodeploy"' marker files). Configuration of auto-deployment of exploded content is not recommended in any situation where reliability is desired. Configuring the deployment scanner's auto-deploy-exploded setting to "false" is recommended.
      15:53:42,218 INFO  [org.jboss.as.deployment] (MSC service thread 1-1) Started FileSystemDeploymentService for directory D:\Programs\redhat\jboss-as-7.0.2.Final\standalone\deployments
      15:53:42,265 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "TestService.jar"
      15:53:42,453 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api dependency to TestService.jar
      15:53:42,500 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named TestService in deployment unit deployment "TestService.jar" are as follows:

      java:global/TestService/TestService!com.wasu.as.sp.service.core.ITestServiceLocal
      java:app/TestService/TestService!com.wasu.as.sp.service.core.ITestServiceLocal
      java:module/TestService!com.wasu.as.sp.service.core.ITestServiceLocal
      java:global/TestService/TestService!com.wasu.as.sp.service.core.ITestServiceRemote
      java:app/TestService/TestService!com.wasu.as.sp.service.core.ITestServiceRemote
      java:module/TestService!com.wasu.as.sp.service.core.ITestServiceRemote

      15:53:42,578 INFO  [org.jboss.as] (MSC service thread 1-3) JBoss AS 7.0.2.Final "Arc" started in 3313ms - Started 130 of 187 services (57 services are passive or on-demand)
      15:53:42,625 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "TestService.jar"

       

      Many thanks.