Unable to Deploy Web Service - Service Class not generated as expected

I installed the application server when I installed the Netbeans enterprise pack v5.5. The server seems to start OK because I can log into the admin console, but every time I try to deploy a webservice, I get the following error:

Exceptions details : java.lang.RuntimeException: Service Class not generated as expected

javax.servlet.ServletException: java.lang.RuntimeException: Service Class not generated as expected at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort (WebServiceTesterServlet.java:546) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doGet(WebServi ceTesterServlet.java:158) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServ iceTesterServlet.java:104) at com.sun.enterprise.webservice.JAXWSServlet.doGet(JAXWSServlet.java:233) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilte rChain.java:397) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 278) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java: 120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 7) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorT ask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(Proces sorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask .java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75) Caused by: java.lang.RuntimeException: Service Class not generated as expected at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort (WebServiceTesterServlet.java:521) ... 29 more

It would appear that I am experiencing the same issue as http://forum.java.sun.com/thread.jspa?forumID=734&threadID=5099525 but that post only tells me how to avoid the problem, not how to rectify it.

I have uninstalled and resinstalled everything several times already and don't seem to be getting anywhere. Any help would be appreciated.

I am using Netbeans 5.5, jdk 1.5.0_09, Sun Java System Application Server 9, Windows XP SP2.

[3660 byte] By [jpymana] at [2007-11-26 13:13:37]
# 1

I have managed to get it working. I did so by reinstalling and choosing different port numbers.

I assume that Windows somehow reserves the port numbers and it causes a conflict when you reinstall. Uninstalling the server does not appear to release them. I searched my registry for all occurrences of sun, java, 4848, 8080 and 8181 and did not find anywhere where this information would be kept.

While I have managed to get things working, this is not really a complete solution. If anyone knows how to completely remove the app server installation on windows, I would like to know.

jpymana at 2007-7-7 17:31:58 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Had the same problem. This solution, changing port 8080 to a different one, actually works. I found changing the port pretty easy without reinstalling stuff. Either manually edit

C:\Sun\AppServer\domains\domain1\configdomain.xml

(or some other path where you have your SAS)

or take more user-friendly way and use admin console (default localhost:4848)

Configuration > HTTP Service > HTTP Listeners

There you can find what you are looking for

ph7apula at 2007-7-7 17:31:58 > top of Java-index,Application & Integration Servers,Application Servers...
# 3
That is much easier than reinstalling, though I would still like to work out how to clear it out completely if anyone has any ideas.
jpymana at 2007-7-7 17:31:58 > top of Java-index,Application & Integration Servers,Application Servers...
# 4

Hi.

I have two web services loaded, and I'm receiving this error for one of them. I have tried to change the port address from 8080 (for http-listener-1) to several numbers, but the same result: Invocation of the same of the two web services fails. I have no problem with the other.

The stack trace follows:

Exceptions details : java.lang.RuntimeException: Service Class not generated as expected

- -

javax.servlet.ServletException: java.lang.RuntimeException: Service Class not generated as expected at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort (WebServiceTesterServlet.java:546) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doGet(WebServi ceTesterServlet.java:158) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServ iceTesterServlet.java:104) at com.sun.enterprise.webservice.JAXWSServlet.doGet(JAXWSServlet.java:233) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilte rChain.java:397) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 278) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java: 120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 7) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorT ask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(Proces sorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask .java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75) Caused by: java.lang.RuntimeException: Service Class not generated as expected at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort (WebServiceTesterServlet.java:521) ... 29 more

- -

Owen_Thomasa at 2007-7-7 17:31:58 > top of Java-index,Application & Integration Servers,Application Servers...
# 5
Oops.I had a SOAP binding of RPC. Changed to document, regenerated, rebuilt, redeployed. I have a web service. Owen.
Owen_Thomasa at 2007-7-7 17:31:58 > top of Java-index,Application & Integration Servers,Application Servers...