Note that there are some explanatory texts on larger screens.

plurals
  1. POContext failed to start when deploy web-service in netbeans to tomcat-apache
    text
    copied!<p>I try to follow the <a href="http://netbeans.org/kb/docs/websvc/jax-ws.html" rel="nofollow">Getting Started with JAX-WS Web Services</a> tutorial on the netbeans site. I create the web-service-app (Java EE 6 Web, Tomcat 7.0), when I add a web-service class netbeans asks for me if I want to use METRO (because the server does't JSR-109), so I say yes and it adds some metro libraries. </p> <p>Now the webservice is using the javax.ejb.Stateless as I selected the "Implement Web Service as a Stateless Session Bean" checkbox, but no Library containing this class is added and I get an error in Netbeans:</p> <pre><code>import javax.ejb.Stateless; ... @WebService(serviceName = "WebServiceTest") @Stateless() public class WebServiceTest {...} </code></pre> <p>"cannot find symbol: class Stateless"</p> <p>ofcourse it can't. When I add the "Java EE Web 6 API Library - javaee-web-api-6.0.jar" the error is solved, but when I deploy the project I get an error thats a whole lot more difficult, and that error is the actual problem...</p> <pre><code>Deployment is in progress... deploy?config=file%3A%2FC%3A%2FUsers%2Ftjen%2FAppData%2FLocal%2FTemp%2Fcontext6376466830057976095.xml&amp;path=/CalculatorWSApplication FAIL - Deployed application at context path /CalculatorWSApplication but context failed to start [here a direction to the line of error] The module has not been deployed. at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:187) [...a whole lot of red-collored stack-trace stuff] BUILD FAILED (total time: 1 second) </code></pre> <p>at the following line:</p> <pre><code>&lt;nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/&gt; </code></pre> <p>I put the arguments over different lines like this:</p> <pre><code>&lt;nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}" /&gt; </code></pre> <p>Which didn't help me at all(but maybe it does help you), because the eror was at the line:</p> <pre><code>/&gt; </code></pre> <p>Now if I comment out the Stateless usage, and remove the "Java EE Web 6 API Library - javaee-web-api-6.0.jar" library, there is no problem and it all works like a charm. (after a 'clean and build' otherwise it keeps going errored)</p> <p>It doesn't matter which library i add, if I do, i get that same error. I can get the example working, but I would like to be able to add libraries without it crashing...</p> <p>Hope to solve this mystery, Tjen</p> <p>PS: some specs</p> <ul> <li>Product Version: NetBeans IDE 7.0 (Build 201104080000)</li> <li>Java: 1.6.0_21; Java HotSpot(TM) 64-Bit Server VM 17.0-b17</li> <li>System: Windows 7 version 6.1 running on amd64;</li> <li>Tomcat 7.0.11</li> <li>I do have jaxb-api.jar and jaxws-api.jar endorsed in the JDK 1.6 platform</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload