File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes stateless session as a webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "stateless session as a webservice" Watch "stateless session as a webservice" New topic
Author

stateless session as a webservice

vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
I write a EJB3 stateless session bean as a webservice deployed in glassfish,but when i run my test client,it give's me error message like this,search a lot,still can not fix it.
here is the code
HelloForWS.java

HelloForWSRemote.java

here is the client
JAXWSClient.java

error message from run JAXWSClient


SCJP 5.0<br />SCWCD1.4<br />SCBCD5
vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
I find com.interlink.ejb.jaxws.Hello wraper class in glassfish's generated directory,then I added it to the classpath,then runclient,I get new error as
follow:

com.interlink.ejb.HelloForWS is a bean class,it's not interface,I don't know why it ask for a interface?
add i checked server console,webservice is there and can be tested by admin console,anybody help
 
Consider Paul's rocket mass heater.
 
subject: stateless session as a webservice
 
Similar Threads
Exception thrown While Running a Client
WSDL access error
Please Help regarding error while create *Service class by using wsimport glassfish v2
JAXWS client erroring out when calling a stateless session bean exposed as a webservice
JBOSS web service client doesn't work ( runtime modeler error: Wrapper class not found )