NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Unable to create webservice client with NetBeans 6.8 and JBoss 5.1

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
mrkunal



Joined: 04 Jan 2010
Posts: 2
Location: Hyderabad, India

PostPosted: Mon Jan 04, 2010 4:19 pm    Post subject: Unable to create webservice client with NetBeans 6.8 and JBoss 5.1 Reply with quote

Hi all,

I am using NetBeans 6.8 with JBoss application server 5.1.
I have developed a sample webservice (SampleWS) with a dummy hello world method (using netbeans 6.8 ) and deployed it onto the JBoss app server. But when I try to generate a WebService Client, using :
Right Click on project>New>Web Service Client, and filling out the necessary details (giving the WSDL URL), I am facing the following error :

Quote:

wsimport-client-clean-TestingWSClient:
init:
wsimport-init:


parsing WSDL...


generating code...
sample\SampleWS.java
C:\NetBeansProjects\Dev\TestingWSClient\build\generated\wsimport\client\sample\SampleWS_Service.java:63: cannot find symbol
symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<sample.SampleWS>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
return (ProvUpdateEAI)super.getPort(new QName("http://xmlns.oracle.com/SampleWS", "SampleWSPort"), SampleWS.class, features);
1 error
compilation failed, errors should have been reported


When I navigate to the SampleWS_Service.java, I find compilation error at the return statement:
Code:

@WebEndpoint(name = "SampleWSPort")
    public SampleWS getSampleWSPort(WebServiceFeature... features) {
        return (SampleWS)super.getPort(new QName("http://xmlns.oracle.com/SampleWS", "SampleWSPort"), SampleWS.class, features);
    }


When I am using JBoss 4.2.2 server, I am able to produce the WebService Client. This error starts from JBoss 4.2.3 server and above.
I had this problem in NetBeans 6.0.1 and thought that the latest version might have fixed this, but isn't.

I am unable to find a solution to this issue. Please help.
Back to top
Melongo Annabel
Posted via mailing list.





PostPosted: Tue Jan 05, 2010 12:42 am    Post subject: Re: Unable to create webservice client with NetBeans 6.8 and JBoss 5.1 Reply with quote

It seems the port configuration is at fault. Here's a good tutorial on Webservices: http://netbeans.org/kb/docs/websvc/jax-ws.html


From: mrkunal <address-removed>
To: address-removed
Sent: Mon, January 4, 2010 10:19:46 AM
Subject: [nbj2ee] Unable to create webservice client with NetBeans 6.8 and JBoss 5.1

Hi all,

I am using NetBeans 6.8 with JBoss application server 5.1.
I have developed a sample webservice (SampleWS) with a dummy hello world method (using netbeans 6.8 ) and deployed it onto the JBoss app server. But when I try to generate a WebService Client, using :
Right Click on project>New>Web Service Client, and filling out the necessary details (giving the WSDL URL), I am facing the following error :


Quote:

wsimport-client-clean-TestingWSClient:
init:
wsimport-init:


parsing WSDL...


generating code...
sample\SampleWS.java
C:\NetBeansProjects\Dev\TestingWSClient\build\generated\wsimport\client\sample\SampleWS_Service.java:63: cannot find symbol
symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<sample.SampleWS>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
return (ProvUpdateEAI)super.getPort(new QName("http://xmlns.oracle.com/SampleWS", "SampleWSPort"), SampleWS.class, features);
1 error
compilation failed, errors should have been reported



When I navigate to the SampleWS_Service.java, I find compilation error at the return statement:

Code:

@WebEndpoint(name = "SampleWSPort")
public SampleWS getSampleWSPort(WebServiceFeature... features) {
return (SampleWS)super.getPort(new QName("http://xmlns.oracle.com/SampleWS", "SampleWSPort"), SampleWS.class, features);
}




When I am using JBoss 4.2.2 server, I am able to produce the WebService Client. This error starts from JBoss 4.2.3 server and above.
I had this problem in NetBeans 6.0.1 and thought that the latest version might have fixed this, but isn't.

I am unable to find a solution to this issue. Please help.

------------------------
Cheers,
Rohit M
Back to top
mrkunal



Joined: 04 Jan 2010
Posts: 2
Location: Hyderabad, India

PostPosted: Tue Jan 05, 2010 6:00 pm    Post subject: Re: Reply with quote

Hi Melongo Annabel,

Thanks for the reply. I have followed the exact same procedure but unable to create a client for that WebService (for JBoss 4.2.3, JBoss 5 and JBoss 5.1). However, the same process works for JBoss 4.2.2
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo