Intellij web services idea (HelloWorld example not working)

I am trying to create a simple WebServices project using the Intellij Idea 12 IDE (Glassfish 4.0.0 server, JDK 1.7.0_45) and have a couple of troubles.

First of all, I cannot expose or not use my default HelloWorld class. I just don’t have this button (Expose Class as Web Service) in the Web Services menu or even on the Tools tab. Somewhere I found that ALT + ENTER might help me, but it is not. There were also no signs of this functionality.

However, as you probably know, in this example (HelloWorld) it is not very important to show the class (it displays by default), and I was still trying to run my simple solution. But that does not work. It only shows a blank window in the browser (path: localhost: 8080 / jax_ws_server or smth, like this). When I intentionally tried to change this path to a line (I changed it not only in the browser url, but also in the Artifacts settings) "localhost: 8080 / services / HelloWorld", which I found in the configuration file "sun" -jaxws.xml ', it just shows a 404 error in the browser.

I am using this tutorial: http://wiki.jetbrains.net/intellij/Developing_a_simple_JaxWS_WebService

What can I do to solve these problems? Thanks for every answer!

+4
source share

All Articles