geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kanchana Welagedara (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-2846) modified jax-ws calculator sample to work with CXF and Axis2
Date Mon, 26 Feb 2007 07:23:05 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475834
] 

Kanchana Welagedara commented on GERONIMO-2846:
-----------------------------------------------

Tested this sample on the svn reversion 511449 for the both CXF and Axis (jetty and tomcat
options basically ) and got the following error

12:00:26,972 INFO  [JAXWSServiceBuilder] Configuring POJO Web Service: CalculatorService sei:
org.apache.geronimo.samples.jws.CalculatorService
Feb 26, 2007 12:00:33 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://jws.samples.geronimo.apache.org/}CalculatorServiceService from
WSDL.
12:00:33,873 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.samples.jws/Calculator/1.0/car?J2EEApplication=null,WebModule=org.apache.geronimo.samples.jws/Calculator/1.0/car,j2eeType=Servlet,name=CalculatorService"
org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for
service {http://jws.samples.geronimo.apache.org/}CalculatorServiceService.
 
and for tomcat

13:20:43,295 INFO  [JAXWSServiceBuilder] Configuring POJO Web Service: CalculatorService sei:
org.apache.geronimo.samples.jws.CalculatorService
13:20:47,822 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state:
abstractName="org.apache.geronimo.samples.jws/Calculator/1.0/car?J2EEApplication=null,j2eeType=WebModule,name=org.apache.geronimo.samples.jws/Calculator/1.0/car"
java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.geronimo.axis2.Axis2WebServiceContainer.<init>(Axis2WebServiceContainer.java:124)
        at org.apache.geronimo.axis2.Axis2WebServiceContainerFactoryGBean.getWebServiceContainer(Axis2WebServiceContainerFactoryGBean.java:74)
        at org.apache.geronimo.tomcat.TomcatWebAppContext.createWebServices(TomcatWebAppContext.java:261)
        at org.apache.geronimo.tomcat.TomcatWebAppContext.<init>(TomcatWebAppContext.java:235)

I'm trying to fix this issue.



> modified jax-ws calculator sample to work with CXF and Axis2
> ------------------------------------------------------------
>
>                 Key: GERONIMO-2846
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2846
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: sample apps
>    Affects Versions: 2.0-M2
>         Environment: winxp + sun jsk 1.5
>            Reporter: Lin Sun
>             Fix For: 2.0
>
>         Attachments: jax-ws-calculator.zip
>
>
> Hi Dims,
> Per your request, here's the modified version of the sample.  
> Current issues:
> 1) I haven't been able to run the webservice client outside of my eclipse env.   Getting
CNF error if I ran the client as "java -jar jaxws-calculator-1.0.jar".   This could be fixed
by providing an ant script or build the java execution into maven's pom.xml.
> 2) Running the Axis2 CalculatorClient client caused 
> Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImpl
> 	at java.net.URLClassLoader$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)
> 	at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:34)
> 	... 6 more
> I just added this client back in this morning so I probably have missed the dependency
for this one.   There are so many Axis2 dependencies so if you know which one I need let me
know.:)
> Running the Axis2 CalculatorClientAxiom client works fine.   
> Thanks, Lin

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message