| View previous topic :: View next topic |
| Author |
Message |
glmarsh
Joined: 12 Aug 2010 Posts: 6
|
Posted: Thu Aug 12, 2010 4:47 am Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial |
|
|
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
|
Posted: Thu Aug 12, 2010 10:24 am Post subject: |
|
|
| 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
|
Posted: Thu Aug 12, 2010 10:26 am Post subject: |
|
|
|
|
| Back to top |
|
 |
glmarsh
Joined: 12 Aug 2010 Posts: 6
|
Posted: Thu Aug 12, 2010 4:40 pm Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial |
|
|
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.
|
Posted: Thu Aug 12, 2010 5:21 pm Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial |
|
|
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
|
Posted: Thu Aug 12, 2010 6:02 pm Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial |
|
|
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
|
Posted: Thu Aug 12, 2010 7:35 pm Post subject: Unable to Launch "Test Web Service" on Web Service Tutorial |
|
|
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.  |
|
| Back to top |
|
 |
unnamedharald
Joined: 20 Nov 2010 Posts: 1
|
Posted: Sun Nov 21, 2010 12:05 am Post subject: |
|
|
| 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 |
|
 |
|