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 Launch "Test Web Service" on Web Service Tutorial

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



Joined: 12 Aug 2010
Posts: 6

PostPosted: Thu Aug 12, 2010 4:47 am    Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial Reply with quote

Hi,
I have NetBeans 6.9 installed with Glassfishv3 on a Linux system. I have built the Web Service demo CalculatorWS and deployed it successfully but when I try to execute the "Test Web Service" option I get an error. The error states that the Web service tester could not be loaded. it gives the correct url in the error :

http://localhost:8080/CalculatorWSApplication/CalculatorWSService?Tester

Glassfish is running.

So what am I doing wrong?

Regards,
glmarsh
Back to top
gros_bidule



Joined: 22 Jun 2010
Posts: 215

PostPosted: Thu Aug 12, 2010 10:24 am    Post subject: Reply with quote

In the Axis web UI, is your WebService activated ? You can show the WSDL ?
Back to top
gros_bidule



Joined: 22 Jun 2010
Posts: 215

PostPosted: Thu Aug 12, 2010 10:26 am    Post subject: Reply with quote

gros_bidule wrote:
In the Axis web UI (something like http://127.0.0.1:8080/axis2/services/listServices), is your WebService activated ? You can show the WSDL ?
Back to top
glmarsh



Joined: 12 Aug 2010
Posts: 6

PostPosted: Thu Aug 12, 2010 4:40 pm    Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial Reply with quote

Hi Gros,
When I start up GlassFish and then go to http://127.0.0.1:8080/axis2/services/listServices in my browser I get a 404 error. I get the same error when I hit just the http://127.0.0.1:8080/axis2/services, and http://127.0.0.1:8080/axis2
.

When I go into the admin page http://localhost:4848 and goto the Applications branch, select CalculatorWSApplication I see the following :

[list=]Application Name:

CalculatorWSApplication
Tester:

/CalculatorWSService/CalculatorWS?Tester
WSDL:

/CalculatorWSService/CalculatorWS?wsdl
Endpoint Name:

CalculatorWS
Service Name:

http://calculator.me.org/
Port Name:

CalculatorWSPort
Deployment Type:

109
Implementation Type:

EJB
Implementation Class Name:

org.me.calculator.CalculatorWS
Endpoint Address URI:

/CalculatorWSService/CalculatorWS
Namespace:

org.me.calculator.CalculatorWS
Description:

[/list]

The url to the Tester and the WSDL both fail.
When I search around in my netbeans project it doesn't appear that a wsdl has been created. I followed the tutorial for creating this web service step by step so I am a bit confused as to what went wrong.
Back to top
Javier.Ortiz
Posted via mailing list.





PostPosted: Thu Aug 12, 2010 5:21 pm    Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial Reply with quote

Make sure the application is really deployed. Specially look in the server's log.

Javier A. Ortiz Bultr
Back to top
glmarsh



Joined: 12 Aug 2010
Posts: 6

PostPosted: Thu Aug 12, 2010 6:02 pm    Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial Reply with quote

Interestingly the deployment tab outputs this :
Quote:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
In-place deployment at /home/gary/NetBeansProjects/WebServiceProj/CalculatorWSApplication/build/web
Initializing...
run-deploy:
BUILD SUCCESSFUL (total time: 15 seconds)




But the server logs have this :

Quote:
INFO: admin console: initSessionAttributes()
INFO: UpdateCheckFrequency is set to NEVER by user. Component update count not performed.
INFO: JSFT0003: VariableResolver was unable to find key (logEntryDetail) in ResourceBundle (help_common).
INFO: JSFT0003: VariableResolver was unable to find key (logEntryDetail) in ResourceBundle (help_common).
INFO: JSFT0003: VariableResolver was unable to find key (logEntryDetail) in ResourceBundle (help_common).
SEVERE: WS00034: Two web services are being deployed with the same endpoint URL CalculatorWSService/CalculatorWS; The service that gets loaded last will always be the one that is active for this URL
INFO: WSTX-COMMON-2007: Map CMT EJB web method 'org.me.calculator.CalculatorWS'.'add' with effective transaction attribute of 'REQUIRED' to wsdl bounded operation '{http://calculator.me.org/}CalculatorWSPort':'add' with WS-AT policy assertion(s) 'CalculatorWSPortBinding_add_WSAT_Policy'
INFO: Metro monitoring rootname successfully set to: amx:pp=/mon/server-mon[server],type=WSEndpoint,name=CalculatorWSService-CalculatorWSPort
WARNING: "GMBAL901: JMX exception on registration of MBean MBeanImpl[type=WSEndpoint,name=CalculatorWSService-CalculatorWSPort,oname=amx:pp=/mon/server-mon[server],type=WSEndpoint,name=CalculatorWSService-CalculatorWSPort]"
WARNING: Container org.glassfish.webservices.JAXWSContainer@25a10e5c doesn't support class com.sun.xml.ws.api.server.Module
INFO: WS00019: EJB Endpoint deployed
CalculatorWSApplication listening at address at http://localhost:8080/CalculatorWSService/CalculatorWS
INFO: Loading application CalculatorWSApplication at /CalculatorWSApplication
INFO: CalculatorWSApplication was successfully deployed in 13,855 milliseconds.


It seems to imply there were problems but goes on the say redeployment is successful. Looks like mixed signals on this end.
Back to top
glmarsh



Joined: 12 Aug 2010
Posts: 6

PostPosted: Thu Aug 12, 2010 7:35 pm    Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial Reply with quote

Ok after reading everyones comments, thank you very much by the way, I decided to re-read the tutorial again and notice that you could :

Quote:
Choose File > New Project (Ctrl-Shift-N). Select Web Application from the Java Web category or EJB Module from the Java EE category.


I had choosen the Web Application from the Java Web Catagory the first time and apparently that was wrong. If you are using Glassfish you must select the Web Application from the EJB Module in the Java EE Catagory. Once you start the project out correctly everything else falls into place. A subtle but critical requirement. Shocked
Back to top
unnamedharald



Joined: 20 Nov 2010
Posts: 1

PostPosted: Sun Nov 21, 2010 12:05 am    Post subject: Reply with quote

Since GlassFish is one of the few servers that support Java EE 6 and the tutorial is about Java EE 6, the tutorial should at least mention which one needs to be selected-- especially since it steers you FROM the EJB Module.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans 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