Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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

 
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ivan for your attention..
I'll keep it in mind..
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic