axis2, problem creating/testing a simple web service

Stcd Cerdec <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CACrD+RFpNQ+5jM2knRWfWkqzQfqwcwTm2osXg7xCOYDG1u01-Q@mail.gmail.com>
I'm trying  to do a simple example of a web service and I am getting
errors.
I installed Ubuntu 12.04,  tomcat 7.0.54, axis2-1.6.2, JDK 1.8, eclipse
java EE IDE for  web developers 2.0.2....

I followed the directions from here
http://javapapers.com/web-service/java-web-service-using-eclipse/ and get
the following (I'm guessing since this is such a simple example I have some
configuration issue):


Jun 09, 2014 9:42:21 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/usr/local/lib:/usr/local/lib:/usr/local/lib:/usr/local/lib:/usr/local/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Jun 09, 2014 9:42:21 AM org.apache.tomcat.util.digester.SetPropertiesRule
begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:WebServiceProject' did not
find a matching property.
Jun 09, 2014 9:42:21 AM org.apache.tomcat.util.digester.SetPropertiesRule
begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:papers' did not find a
matching property.
Jun 09, 2014 9:42:21 AM org.apache.tomcat.util.digester.SetPropertiesRule
begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:papersClient' did not find
a matching property.
Jun 09, 2014 9:42:21 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 09, 2014 9:42:22 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 09, 2014 9:42:22 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1510 ms
Jun 09, 2014 9:42:22 AM org.apache.catalina.core.StandardService
startInternal
INFO: Starting service Catalina
Jun 09, 2014 9:42:22 AM org.apache.catalina.core.StandardEngine
startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
[WARN] Web application uses
org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to
use org.apache.axis2.webapp.AxisAdminServlet instead
[INFO] Clustering has been disabled
[INFO] Deploying module: soapmonitor-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/modules/soapmonitor-1.6.2.mar
[INFO] Deploying module: metadataExchange-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/modules/mex-1.6.2.mar
[INFO] Deploying module: mtompolicy-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/modules/mtompolicy-1.6.2.mar
[INFO] Deploying module: addressing-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/modules/addressing-1.6.2.mar
[INFO] Deploying module: script-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/modules/scripting-1.6.2.mar
[INFO] Deploying module: ping-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/modules/ping-1.6.2.mar
[INFO] Deploying Web service: version.aar -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/services/version.aar
[INFO] Deploying Web service: AnimalTypeService -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papers/WEB-INF/services/AnimalTypeService/
[WARN] No transportReceiver for
org.apache.axis2.transport.http.AxisServletListener found. An instance for
HTTP will be configured automatically. Please update your axis2.xml file!
[WARN] Web application uses
org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to
use org.apache.axis2.webapp.AxisAdminServlet instead
[INFO] Clustering has been disabled
[INFO] Deploying module: soapmonitor-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papersClient/WEB-INF/modules/soapmonitor-1.6.2.mar
[INFO] Deploying module: metadataExchange-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papersClient/WEB-INF/modules/mex-1.6.2.mar
[INFO] Deploying module: mtompolicy-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papersClient/WEB-INF/modules/mtompolicy-1.6.2.mar
[INFO] Deploying module: addressing-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papersClient/WEB-INF/modules/addressing-1.6.2.mar
[INFO] Deploying module: script-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papersClient/WEB-INF/modules/scripting-1.6.2.mar
[INFO] Deploying module: ping-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papersClient/WEB-INF/modules/ping-1.6.2.mar
[INFO] Deploying Web service: version.aar -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/papersClient/WEB-INF/services/version.aar
[WARN] No transportReceiver for
org.apache.axis2.transport.http.AxisServletListener found. An instance for
HTTP will be configured automatically. Please update your axis2.xml file!
[WARN] Web application uses
org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to
use org.apache.axis2.webapp.AxisAdminServlet instead
[INFO] Clustering has been disabled
[INFO] Deploying module: soapmonitor-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WebServiceProject/WEB-INF/modules/soapmonitor-1.6.2.mar
[INFO] Deploying module: metadataExchange-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WebServiceProject/WEB-INF/modules/mex-1.6.2.mar
[INFO] Deploying module: mtompolicy-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WebServiceProject/WEB-INF/modules/mtompolicy-1.6.2.mar
[INFO] Deploying module: addressing-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WebServiceProject/WEB-INF/modules/addressing-1.6.2.mar
[INFO] Deploying module: script-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WebServiceProject/WEB-INF/modules/scripting-1.6.2.mar
[INFO] Deploying module: ping-1.6.2 -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WebServiceProject/WEB-INF/modules/ping-1.6.2.mar
[INFO] Deploying Web service: version.aar -
file:/home/demo/webservices/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/WebServiceProject/WEB-INF/services/version.aar
org.apache.axis2.deployment.DeploymentException: The following error
occurred during schema generation: com.javapapers.jee.AnimalTypeService
    at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:432)
    at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
    at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
    at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
    at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
    at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
    at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
    at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
    at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
    at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
    at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
    at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
    at
org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60)
    at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.axis2.deployment.DeploymentException: The following
error occurred during schema generation:
com.javapapers.jee.AnimalTypeService
    at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)
    ... 26 more
Caused by: org.apache.axis2.AxisFault: com.javapapers.jee.AnimalTypeService
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.util.Utils.getServiceClass(Utils.java:804)
    at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:430)
    at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388)
    ... 26 more
Caused by: java.lang.ClassNotFoundException:
com.javapapers.jee.AnimalTypeService
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:259)
    at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
    at org.apache.axis2.util.Loader.loadClass(Loader.java:229)
    at org.apache.axis2.util.Utils.getServiceClass(Utils.java:801)
    ... 28 more
[ERROR] The AnimalTypeService service, which is not valid, caused The
following error occurred during schema generation:
com.javapapers.jee.AnimalTypeService
org.apache.axis2.deployment.DeploymentException: The following error
occurred during schema generation: com.javapapers.jee.AnimalTypeService
    at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:432)
    at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101)
    at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178)
    at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82)
    at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
    at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
    at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
    at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
    at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
    at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:142)
    at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:283)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
    at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:584)
    at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:454)
    at
org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:60)
    at
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)
    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
    at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.axis2.deployment.DeploymentException: The following
error occurred during schema generation:
com.javapapers.jee.AnimalTypeService
    at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:396)
    ... 26 more
Caused by: org.apache.axis2.AxisFault: com.javapapers.jee.AnimalTypeService
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.util.Utils.getServiceClass(Utils.java:804)
    at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:430)
    at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388)
    ... 26 more
Caused by: java.lang.ClassNotFoundException:
com.javapapers.jee.AnimalTypeService
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:259)
    at org.apache.axis2.util.Loader.loadClass(Loader.java:261)
    at org.apache.axis2.util.Loader.loadClass(Loader.java:229)
    at org.apache.axis2.util.Utils.getServiceClass(Utils.java:801)
    ... 28 more
[INFO] org.apache.axis2.deployment.DeploymentException: The following error
occurred during schema generation: com.javapapers.jee.AnimalTypeService
[WARN] No transportReceiver for
org.apache.axis2.transport.http.AxisServletListener found. An instance for
HTTP will be configured automatically. Please update your axis2.xml file!
Jun 09, 2014 9:42:32 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jun 09, 2014 9:42:32 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jun 09, 2014 9:42:32 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10146 ms



Any thoughts? I see the class not found but that's the class that I'm
compiling. Figuring it's some config issue.

v/r,

Frank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.