You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Charitha Kankanamge (JIRA)" <ji...@apache.org> on 2008/05/30 14:53:44 UTC
[jira] Created: (AXIS2-3831) Fails to generate wsdl when deploying
annotated .class file using POJODeployer in axis2-1.4
Fails to generate wsdl when deploying annotated .class file using POJODeployer in axis2-1.4
-------------------------------------------------------------------------------------------
Key: AXIS2-3831
URL: https://issues.apache.org/jira/browse/AXIS2-3831
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Environment: winxp, jdk15
Reporter: Charitha Kankanamge
Priority: Blocker
I deployed the following annotated class in Axis2-1.4 (Copied the .class file to Axis2_home/repository/pojo)
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService
public class ExamplePOJOService {
@WebMethod
public String reverse(String input) {
StringBuffer buff = new StringBuffer();
for (int i=input.length()-1; i>=0; i--) {
buff.append(input.charAt(i));
}
return buff.toString();
}
}
When clicking on the servicename of the http://localhost:8080/axis2/services/ page I got the following exception.
[ERROR] Error occurred generating WSDL file for Web service implementation class
{ExamplePOJOService}: {java.lang.Exception: A WSDL Definition could not be gene
rated for the implementation class: ExamplePOJOService}
java.lang.Exception: A WSDL Definition could not be generated for the implementation class: ExamplePOJOService
at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1319)
at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3831) Fails to generate wsdl when
deploying annotated .class file using POJODeployer in axis2-1.4
Posted by "Charitha Kankanamge (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601378#action_12601378 ]
Charitha Kankanamge commented on AXIS2-3831:
--------------------------------------------
jaxws-rt.jar and jaxws-tools.jar was in Axis2_home/lib directory. Do i need to have some other jax-ws jars?
In Axis2-1.3, just copying an annotated class to Axis2_home/repository/pojo directory made and exposed it as a web service.
> Fails to generate wsdl when deploying annotated .class file using POJODeployer in axis2-1.4
> -------------------------------------------------------------------------------------------
>
> Key: AXIS2-3831
> URL: https://issues.apache.org/jira/browse/AXIS2-3831
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Priority: Blocker
>
> I deployed the following annotated class in Axis2-1.4 (Copied the .class file to Axis2_home/repository/pojo)
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> @WebService
> public class ExamplePOJOService {
> @WebMethod
> public String reverse(String input) {
> StringBuffer buff = new StringBuffer();
> for (int i=input.length()-1; i>=0; i--) {
> buff.append(input.charAt(i));
> }
> return buff.toString();
> }
> }
> When clicking on the servicename of the http://localhost:8080/axis2/services/ page I got the following exception.
> [ERROR] Error occurred generating WSDL file for Web service implementation class
> {ExamplePOJOService}: {java.lang.Exception: A WSDL Definition could not be gene
> rated for the implementation class: ExamplePOJOService}
> java.lang.Exception: A WSDL Definition could not be generated for the implementation class: ExamplePOJOService
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
> at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1319)
> at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
> at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
> at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
> at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3831) Fails to generate wsdl when
deploying annotated .class file using POJODeployer in axis2-1.4
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601376#action_12601376 ]
Davanum Srinivas commented on AXIS2-3831:
-----------------------------------------
Did you try under JDK 1.6 or drop JAXWS RI jars (under JDK 1.5)?
-- dims
> Fails to generate wsdl when deploying annotated .class file using POJODeployer in axis2-1.4
> -------------------------------------------------------------------------------------------
>
> Key: AXIS2-3831
> URL: https://issues.apache.org/jira/browse/AXIS2-3831
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Priority: Blocker
>
> I deployed the following annotated class in Axis2-1.4 (Copied the .class file to Axis2_home/repository/pojo)
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> @WebService
> public class ExamplePOJOService {
> @WebMethod
> public String reverse(String input) {
> StringBuffer buff = new StringBuffer();
> for (int i=input.length()-1; i>=0; i--) {
> buff.append(input.charAt(i));
> }
> return buff.toString();
> }
> }
> When clicking on the servicename of the http://localhost:8080/axis2/services/ page I got the following exception.
> [ERROR] Error occurred generating WSDL file for Web service implementation class
> {ExamplePOJOService}: {java.lang.Exception: A WSDL Definition could not be gene
> rated for the implementation class: ExamplePOJOService}
> java.lang.Exception: A WSDL Definition could not be generated for the implementation class: ExamplePOJOService
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
> at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1319)
> at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
> at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
> at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
> at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3831) Fails to generate wsdl when
deploying annotated .class file using POJODeployer in axis2-1.4
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601387#action_12601387 ]
Davanum Srinivas commented on AXIS2-3831:
-----------------------------------------
that should do it. did you try deploying the same class jarred up in servicejars directory?
-- dims
> Fails to generate wsdl when deploying annotated .class file using POJODeployer in axis2-1.4
> -------------------------------------------------------------------------------------------
>
> Key: AXIS2-3831
> URL: https://issues.apache.org/jira/browse/AXIS2-3831
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Priority: Blocker
>
> I deployed the following annotated class in Axis2-1.4 (Copied the .class file to Axis2_home/repository/pojo)
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> @WebService
> public class ExamplePOJOService {
> @WebMethod
> public String reverse(String input) {
> StringBuffer buff = new StringBuffer();
> for (int i=input.length()-1; i>=0; i--) {
> buff.append(input.charAt(i));
> }
> return buff.toString();
> }
> }
> When clicking on the servicename of the http://localhost:8080/axis2/services/ page I got the following exception.
> [ERROR] Error occurred generating WSDL file for Web service implementation class
> {ExamplePOJOService}: {java.lang.Exception: A WSDL Definition could not be gene
> rated for the implementation class: ExamplePOJOService}
> java.lang.Exception: A WSDL Definition could not be generated for the implementation class: ExamplePOJOService
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
> at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1319)
> at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
> at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
> at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
> at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS2-3831) Fails to generate wsdl when deploying
annotated .class file using POJODeployer in axis2-1.4
Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepal Jayasinghe resolved AXIS2-3831.
--------------------------------------
Resolution: Fixed
As I can see from the discussion this issues if fixed , so let's close this
> Fails to generate wsdl when deploying annotated .class file using POJODeployer in axis2-1.4
> -------------------------------------------------------------------------------------------
>
> Key: AXIS2-3831
> URL: https://issues.apache.org/jira/browse/AXIS2-3831
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Priority: Blocker
>
> I deployed the following annotated class in Axis2-1.4 (Copied the .class file to Axis2_home/repository/pojo)
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> @WebService
> public class ExamplePOJOService {
> @WebMethod
> public String reverse(String input) {
> StringBuffer buff = new StringBuffer();
> for (int i=input.length()-1; i>=0; i--) {
> buff.append(input.charAt(i));
> }
> return buff.toString();
> }
> }
> When clicking on the servicename of the http://localhost:8080/axis2/services/ page I got the following exception.
> [ERROR] Error occurred generating WSDL file for Web service implementation class
> {ExamplePOJOService}: {java.lang.Exception: A WSDL Definition could not be gene
> rated for the implementation class: ExamplePOJOService}
> java.lang.Exception: A WSDL Definition could not be generated for the implementation class: ExamplePOJOService
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
> at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1319)
> at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
> at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
> at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
> at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Commented: (AXIS2-3831) Fails to generate wsdl when
deploying annotated .class file using POJODeployer in axis2-1.4
Posted by "Charitha Kankanamge (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-3831?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601391#action_12601391 ]
Charitha Kankanamge commented on AXIS2-3831:
--------------------------------------------
Yes. I tried with that. With jarred up annotated class which copied to servicejars directory, I was able to view the WSDL and invoke the service through a java client.
However, I couldn't invoke the service in RESTful manner and reported a JIRA a few days ago (https://issues.apache.org/jira/browse/AXIS2-3817)
> Fails to generate wsdl when deploying annotated .class file using POJODeployer in axis2-1.4
> -------------------------------------------------------------------------------------------
>
> Key: AXIS2-3831
> URL: https://issues.apache.org/jira/browse/AXIS2-3831
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: winxp, jdk15
> Reporter: Charitha Kankanamge
> Priority: Blocker
>
> I deployed the following annotated class in Axis2-1.4 (Copied the .class file to Axis2_home/repository/pojo)
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> @WebService
> public class ExamplePOJOService {
> @WebMethod
> public String reverse(String input) {
> StringBuffer buff = new StringBuffer();
> for (int i=input.length()-1; i>=0; i--) {
> buff.append(input.charAt(i));
> }
> return buff.toString();
> }
> }
> When clicking on the servicename of the http://localhost:8080/axis2/services/ page I got the following exception.
> [ERROR] Error occurred generating WSDL file for Web service implementation class
> {ExamplePOJOService}: {java.lang.Exception: A WSDL Definition could not be gene
> rated for the implementation class: ExamplePOJOService}
> java.lang.Exception: A WSDL Definition could not be generated for the implementation class: ExamplePOJOService
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:177)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
> at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
> at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1319)
> at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:146)
> at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
> at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
> at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
> at java.lang.Thread.run(Thread.java:595)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org