Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 2249 invoked from network); 17 Jan 2011 07:08:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jan 2011 07:08:12 -0000 Received: (qmail 67838 invoked by uid 500); 17 Jan 2011 07:08:12 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 67240 invoked by uid 500); 17 Jan 2011 07:08:09 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 67218 invoked by uid 99); 17 Jan 2011 07:08:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jan 2011 07:08:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jan 2011 07:08:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0H77hma008394 for ; Mon, 17 Jan 2011 07:07:43 GMT Message-ID: <20990019.8771295248063543.JavaMail.jira@thor> Date: Mon, 17 Jan 2011 02:07:43 -0500 (EST) From: "Kasun Weranga Gunathilake (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Commented: (AXIS2-4926) Can't view WSDL when service class in the default package In-Reply-To: <26693025.385111295090625854.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-4926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982506#action_12982506 ] Kasun Weranga Gunathilake commented on AXIS2-4926: -------------------------------------------------- AFAIU this issue is related to wsgen issue. I tried to use wsgen from linux command line. In that case same issue comes, wsgen only works when the service class inside a package. (with default package it doesn't work). There is a jira relates to this in java.net, http://java.net/jira/browse/JAX_WS-39 , but they have said that this has been resolved, but it appeared in my JDK 1.6.013 environment. > Can't view WSDL when service class in the default package > --------------------------------------------------------- > > Key: AXIS2-4926 > URL: https://issues.apache.org/jira/browse/AXIS2-4926 > Project: Axis2 > Issue Type: Bug > Components: jaxws > Environment: Linux > Reporter: Kasun Weranga Gunathilake > Attachments: jaxwsSample.jar, Student.java, StudentMarksService.java > > > WSDL can't be accessed, if deployed service class is not inside a package. In this case I have used two classes Student.java and StudentMarksService.java, When I used this classes inside a package I can access the WSDL. otherwise it will give the following error. Java classes and jar file has been attached. > This is the exception. > /tmp/_axis2StudentMarksService/jaxws/GetHighestMarks.java:16: cannot find symbol > symbol : class Student > location: class jaxws.GetHighestMarks > private Student student; > ^ > /tmp/_axis2StudentMarksService/jaxws/GetHighestMarks.java:23: cannot find symbol > symbol : class Student > location: class jaxws.GetHighestMarks > public Student getStudent() { > ^ > /tmp/_axis2StudentMarksService/jaxws/GetHighestMarks.java:32: cannot find symbol > symbol : class Student > location: class jaxws.GetHighestMarks > public void setStudent(Student student) { > ^ > /tmp/_axis2StudentMarksService/jaxws/GetAverage.java:16: cannot find symbol > symbol : class Student > location: class jaxws.GetAverage > private Student student; > ^ > /tmp/_axis2StudentMarksService/jaxws/GetAverage.java:23: cannot find symbol > symbol : class Student > location: class jaxws.GetAverage > public Student getStudent() { > ^ > /tmp/_axis2StudentMarksService/jaxws/GetAverage.java:32: cannot find symbol > symbol : class Student > location: class jaxws.GetAverage > public void setStudent(Student student) { > ^ > 6 errors > [ERROR] Error occurred generating WSDL file for Web service implementation class {StudentMarksService}: {java.lang.Exception: A WSDL Definition could not be generated for the implementation class: StudentMarksService} > java.lang.Exception: A WSDL Definition could not be generated for the implementation class: StudentMarksService > at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:185) > at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:379) > at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:372) > at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1394) > at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:149) > 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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:619) > -- 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: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org