This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please Help regarding error while create *Service class by using wsimport glassfish v2

 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends..

I found error when i develop simple JAX-WS application..
i use Netbeans6.5 and Glassfish V2..
i expose EJB3 as a Web Service..
Here is my scenario..

First, this is my EJB3 File :


and then i tried to deploy and generated Service file which named HelloBeanService throug wsimport glassfish
here is the entire code of HelloBeanService :


but there's any error in that file, namely at line :
return super.getPort(new QName("http://test.omii.ac.uk", "HelloBeanPort"), HelloBean.class , features);

.....................................HelloBeanService.java:68: cannot find symbol
symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<uk.ac.omii.test.HelloBean>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
return super.getPort(new QName("http://test.omii.ac.uk", "HelloBeanPort"), HelloBean.class , features);
1 error




i don't know exactly what reasons causes that error.. and i don't know how to solve the error, because i'm new in JAX-WS..
please help me regarding this issue..

Thanks in advance..
 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. it has solved..

Just remove the features parameter in getHelloBeanPort method..



Thanks for any attentions although there's no respond for me..
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Eh, but you already have a getPort method without parameters:

You can use this method if you do not want to supply any WebServiceFeatures. If you have a compilation problem, then it may be related to a missing JAR, as you spoke about in another posting.
Also, editing generated classes is generally a bad idea. If you one day come back to modify your client and generate a new version of the generated classes, then any changes you hav emade by hand are lost.
Best wishes!
 
Leonardo Carreira
Ranch Hand
Posts: 489
Eclipse IDE Java Postgres Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan for your attention..
I'll keep it in mind..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic