You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Stcd Cerdec <ma...@gmail.com> on 2014/06/10 15:12:28 UTC

axis2, problem creating/testing a simple web service

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

Re: axis2, problem creating/testing a simple web service

Posted by "robertlazarski ." <ro...@gmail.com>.
On Fri, Jun 13, 2014 at 9:42 AM, Stcd Cerdec <ma...@gmail.com> wrote:
> I'm thinking it maybe more of an eclipse issue now. Running kepler IDE fro
> Java EE developers Version 2.0.2.20140224-0000.  I have jdk 1.8 installed
> also.
>
> All of the aar fiels that are generated from eclipse have the same contents
> and they all have a version.aar and not a file name of the project.
>

I can't help you with Eclipse to generate your AAR, since I use the
Ant tools from the official Axis2 docs for that.

I just took a brief look at the tutorial you listed and at a glance it
seems written for Axis 1 , not Axis2 , which could explain why you are
not generating an aar!

That's a problem with googling, I suggest you use the official docs!

http://axis.apache.org/axis2/java/core/docs/quickstartguide.html

In this case you likely want a POJO.

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: axis2, problem creating/testing a simple web service

Posted by Stcd Cerdec <ma...@gmail.com>.
I'm thinking it maybe more of an eclipse issue now. Running kepler IDE fro
Java EE developers Version 2.0.2.20140224-0000.  I have jdk 1.8 installed
also.

All of the aar fiels that are generated from eclipse have the same contents
and they all have a version.aar and not a file name of the project.

$ jar vft ./CrunchifyWSClient/WebContent/WEB-INF/services/version.aar
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/
   125 Tue Apr 17 18:16:48 EDT 2012 META-INF/MANIFEST.MF
     0 Tue Apr 17 18:16:48 EDT 2012 sample/
     0 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/
   655 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/Version.class
  1236 Tue Apr 17 18:16:48 EDT 2012 META-INF/NOTICE
  1159 Tue Apr 17 18:16:48 EDT 2012 META-INF/services.xml
 11359 Tue Apr 17 18:16:48 EDT 2012 META-INF/LICENSE
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/org.apache.axis2/
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/org.apache.axis2/version/
  3610 Tue Apr 17 17:29:02 EDT 2012
META-INF/maven/org.apache.axis2/version/pom.xml
   108 Tue Apr 17 18:16:48 EDT 2012
META-INF/maven/org.apache.axis2/version/pom.properties
:~/webservices$



On Thu, Jun 12, 2014 at 1:46 PM, Stcd Cerdec <ma...@gmail.com> wrote:

> I have to have something miss-configured with tomcat and axis2. I created
> a new project (
> http://crunchify.com/create-and-deploy-simple-web-service-and-web-service-client-in-eclipse/)
> and generated a new webservice and I still get this version.aar under the
> project directory and it contains some same stuff. No other aar is
> generated.
>
>
> ~/webservices/CrunchifyWS/WebContent/WEB-INF/services$ jar vft version.aar
>
>      0 Tue Apr 17 18:16:50 EDT 2012 META-INF/
>    125 Tue Apr 17 18:16:48 EDT 2012 META-INF/MANIFEST.MF
>      0 Tue Apr 17 18:16:48 EDT 2012 sample/
>      0 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/
>    655 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/Version.class
>   1236 Tue Apr 17 18:16:48 EDT 2012 META-INF/NOTICE
>   1159 Tue Apr 17 18:16:48 EDT 2012 META-INF/services.xml
>  11359 Tue Apr 17 18:16:48 EDT 2012 META-INF/LICENSE
>      0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/
>      0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/org.apache.axis2/
>      0 Tue Apr 17 18:16:50 EDT 2012
> META-INF/maven/org.apache.axis2/version/
>   3610 Tue Apr 17 17:29:02 EDT 2012
> META-INF/maven/org.apache.axis2/version/pom.xml
>    108 Tue Apr 17 18:16:48 EDT 2012
> META-INF/maven/org.apache.axis2/version/pom.properties
> :~/webservices/CrunchifyWS/WebContent/WEB-INF/services$
>
>
>
>
>
> On Wed, Jun 11, 2014 at 1:01 PM, robertlazarski . <
> robertlazarski@gmail.com> wrote:
>
>> On Tue, Jun 10, 2014 at 2:15 PM, Stcd Cerdec <ma...@gmail.com> wrote:
>> > Oh ok I guess this version.aar?
>> >
>> > $ find . -print | grep aar
>> > ./repository/services/version.aar
>>
>> Its unlikely you named your project 'version' and created a
>> version.aar . Check the date on the file. My guess is your generated
>> aar has a different file name. There is a version.aar that is part of
>> the Axis2 distro ie not your generated file.
>>
>> This command should show a date that is before the timestamp of your
>> generated aar.
>>
>> find . -name version.aar -exec ls -l {} \;
>>
>> Anyways, regardless of the aar file name ... it has to be in
>> WEB-INF/services and contain the .class file of your service.
>>
>> - R
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>>
>

Re: axis2, problem creating/testing a simple web service

Posted by Stcd Cerdec <ma...@gmail.com>.
I have to have something miss-configured with tomcat and axis2. I created a
new project (
http://crunchify.com/create-and-deploy-simple-web-service-and-web-service-client-in-eclipse/)
and generated a new webservice and I still get this version.aar under the
project directory and it contains some same stuff. No other aar is
generated.


~/webservices/CrunchifyWS/WebContent/WEB-INF/services$ jar vft version.aar
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/
   125 Tue Apr 17 18:16:48 EDT 2012 META-INF/MANIFEST.MF
     0 Tue Apr 17 18:16:48 EDT 2012 sample/
     0 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/
   655 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/Version.class
  1236 Tue Apr 17 18:16:48 EDT 2012 META-INF/NOTICE
  1159 Tue Apr 17 18:16:48 EDT 2012 META-INF/services.xml
 11359 Tue Apr 17 18:16:48 EDT 2012 META-INF/LICENSE
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/org.apache.axis2/
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/org.apache.axis2/version/
  3610 Tue Apr 17 17:29:02 EDT 2012
META-INF/maven/org.apache.axis2/version/pom.xml
   108 Tue Apr 17 18:16:48 EDT 2012
META-INF/maven/org.apache.axis2/version/pom.properties
:~/webservices/CrunchifyWS/WebContent/WEB-INF/services$





On Wed, Jun 11, 2014 at 1:01 PM, robertlazarski . <ro...@gmail.com>
wrote:

> On Tue, Jun 10, 2014 at 2:15 PM, Stcd Cerdec <ma...@gmail.com> wrote:
> > Oh ok I guess this version.aar?
> >
> > $ find . -print | grep aar
> > ./repository/services/version.aar
>
> Its unlikely you named your project 'version' and created a
> version.aar . Check the date on the file. My guess is your generated
> aar has a different file name. There is a version.aar that is part of
> the Axis2 distro ie not your generated file.
>
> This command should show a date that is before the timestamp of your
> generated aar.
>
> find . -name version.aar -exec ls -l {} \;
>
> Anyways, regardless of the aar file name ... it has to be in
> WEB-INF/services and contain the .class file of your service.
>
> - R
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: axis2, problem creating/testing a simple web service

Posted by "robertlazarski ." <ro...@gmail.com>.
On Tue, Jun 10, 2014 at 2:15 PM, Stcd Cerdec <ma...@gmail.com> wrote:
> Oh ok I guess this version.aar?
>
> $ find . -print | grep aar
> ./repository/services/version.aar

Its unlikely you named your project 'version' and created a
version.aar . Check the date on the file. My guess is your generated
aar has a different file name. There is a version.aar that is part of
the Axis2 distro ie not your generated file.

This command should show a date that is before the timestamp of your
generated aar.

find . -name version.aar -exec ls -l {} \;

Anyways, regardless of the aar file name ... it has to be in
WEB-INF/services and contain the .class file of your service.

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: axis2, problem creating/testing a simple web service

Posted by Stcd Cerdec <ma...@gmail.com>.
Oh ok I guess this version.aar?

$ find . -print | grep aar
./repository/services/version.aar
./samples/version/target/aar
./samples/version/target/aar/META-INF
./samples/version/target/aar/META-INF/LICENSE
./samples/version/target/aar/META-INF/NOTICE
./samples/version/target/aar/META-INF/services.xml
./samples/version/target/aar/sample
./samples/version/target/aar/sample/axisversion
./samples/version/target/aar/sample/axisversion/Version.class
./samples/version/target/version-1.6.2.aar
./samples/version/target/version-1.6.2.aar.asc


$ ls -la ./repository/services/version.aar
-rw-r--r-- 1 demo demo 8539 Apr 17  2012 ./repository/services/version.aar

$ jar vft ./repository/services/version.aar
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/
   125 Tue Apr 17 18:16:48 EDT 2012 META-INF/MANIFEST.MF
     0 Tue Apr 17 18:16:48 EDT 2012 sample/
     0 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/
   655 Tue Apr 17 18:16:48 EDT 2012 sample/axisversion/Version.class
  1236 Tue Apr 17 18:16:48 EDT 2012 META-INF/NOTICE
  1159 Tue Apr 17 18:16:48 EDT 2012 META-INF/services.xml
 11359 Tue Apr 17 18:16:48 EDT 2012 META-INF/LICENSE
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/org.apache.axis2/
     0 Tue Apr 17 18:16:50 EDT 2012 META-INF/maven/org.apache.axis2/version/
  3610 Tue Apr 17 17:29:02 EDT 2012
META-INF/maven/org.apache.axis2/version/pom.xml
   108 Tue Apr 17 18:16:48 EDT 2012
META-INF/maven/org.apache.axis2/version/pom.properties

$


On Tue, Jun 10, 2014 at 1:01 PM, robertlazarski . <ro...@gmail.com>
wrote:

> On Tue, Jun 10, 2014 at 1:56 PM, Stcd Cerdec <ma...@gmail.com> wrote:
> > Obviously I did not create these as they where generated.
> >
> > services.xml:
> > <service name="AnimalTypeService" >
> >     <Description>
> >         Please Type your service description here
> >     </Description>
> >     <messageReceivers>
> >         <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
> > class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
> >         <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out"
> > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> >     </messageReceivers>
> >     <parameter name="ServiceClass"
> > locked="false">com.javapapers.jee.AnimalTypeService</parameter>
> > </service>
> >
> >
> > $ jar xvf version.aar
> >   created: META-INF/
> >  inflated: META-INF/MANIFEST.MF
> >   created: sample/
> >   created: sample/axisversion/
> >  inflated: sample/axisversion/Version.class
> >  inflated: META-INF/NOTICE
> >  inflated: META-INF/services.xml
> >  inflated: META-INF/LICENSE
> >   created: META-INF/maven/
> >   created: META-INF/maven/org.apache.axis2/
> >   created: META-INF/maven/org.apache.axis2/version/
> >  inflated: META-INF/maven/org.apache.axis2/version/pom.xml
> >  inflated: META-INF/maven/org.apache.axis2/version/pom.properties
> > demo@frank-dev:/tmp/aar$
> >
>
> version.aar is part of the Axis2 distro - its not your AAR that you
> generated . Try to find the right AAR and put that into your
> WEB-INF/services dir.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: axis2, problem creating/testing a simple web service

Posted by "robertlazarski ." <ro...@gmail.com>.
On Tue, Jun 10, 2014 at 1:56 PM, Stcd Cerdec <ma...@gmail.com> wrote:
> Obviously I did not create these as they where generated.
>
> services.xml:
> <service name="AnimalTypeService" >
>     <Description>
>         Please Type your service description here
>     </Description>
>     <messageReceivers>
>         <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
>         <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out"
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
>     </messageReceivers>
>     <parameter name="ServiceClass"
> locked="false">com.javapapers.jee.AnimalTypeService</parameter>
> </service>
>
>
> $ jar xvf version.aar
>   created: META-INF/
>  inflated: META-INF/MANIFEST.MF
>   created: sample/
>   created: sample/axisversion/
>  inflated: sample/axisversion/Version.class
>  inflated: META-INF/NOTICE
>  inflated: META-INF/services.xml
>  inflated: META-INF/LICENSE
>   created: META-INF/maven/
>   created: META-INF/maven/org.apache.axis2/
>   created: META-INF/maven/org.apache.axis2/version/
>  inflated: META-INF/maven/org.apache.axis2/version/pom.xml
>  inflated: META-INF/maven/org.apache.axis2/version/pom.properties
> demo@frank-dev:/tmp/aar$
>

version.aar is part of the Axis2 distro - its not your AAR that you
generated . Try to find the right AAR and put that into your
WEB-INF/services dir.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: axis2, problem creating/testing a simple web service

Posted by Stcd Cerdec <ma...@gmail.com>.
Obviously I did not create these as they where generated.

services.xml:
<service name="AnimalTypeService" >
    <Description>
        Please Type your service description here
    </Description>
    <messageReceivers>
        <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
        <messageReceiver  mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
    </messageReceivers>
    <parameter name="ServiceClass"
locked="false">com.javapapers.jee.AnimalTypeService</parameter>
</service>


$ jar xvf version.aar
  created: META-INF/
 inflated: META-INF/MANIFEST.MF
  created: sample/
  created: sample/axisversion/
 inflated: sample/axisversion/Version.class
 inflated: META-INF/NOTICE
 inflated: META-INF/services.xml
 inflated: META-INF/LICENSE
  created: META-INF/maven/
  created: META-INF/maven/org.apache.axis2/
  created: META-INF/maven/org.apache.axis2/version/
 inflated: META-INF/maven/org.apache.axis2/version/pom.xml
 inflated: META-INF/maven/org.apache.axis2/version/pom.properties
demo@frank-dev:/tmp/aar$






On Tue, Jun 10, 2014 at 12:27 PM, robertlazarski . <robertlazarski@gmail.com
> wrote:

> On Tue, Jun 10, 2014 at 10:12 AM, Stcd Cerdec <ma...@gmail.com> wrote:
> <snip>
> > Caused by: java.lang.ClassNotFoundException:
> > com.javapapers.jee.AnimalTypeService
> >
> >
> > 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
>
> What's in your services.xml and inside your AAR file? Does the
> ServiceClass defined in your services.xml exist in the AAR?
>
> - R
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: axis2, problem creating/testing a simple web service

Posted by "robertlazarski ." <ro...@gmail.com>.
On Tue, Jun 10, 2014 at 10:12 AM, Stcd Cerdec <ma...@gmail.com> wrote:
<snip>
> Caused by: java.lang.ClassNotFoundException:
> com.javapapers.jee.AnimalTypeService
>
>
> 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

What's in your services.xml and inside your AAR file? Does the
ServiceClass defined in your services.xml exist in the AAR?

- R

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org