Web service problems [message #155602] |
Tue, 10 January 2006 04:38  |
Eclipse User |
|
|
|
Originally posted by: martini.dsi.unifi.it
I'm a newbie of WTP, this is the first time I use it.
Before even knowing of WTP I realized a Java web service using Axis,
using a "manual" procedure (i.e. using Axis tools like Java2WSDL,
WSDL2Java, etc.).
Now I would like to use a more "integrated" approach and WTP seems to be
the right choice. Unfortunately I am not able in using it. I installed
WTP 1.0 correctly and configured a Tomcat 5.5 server following the
appropriate tutorial. Then I tried to follow the tutorial "Creating a
Bottom-Up Java Web Service" but it doesn't work simply importing my
source code. I mean, the wizard ends without errors, but when I test the
web service it returns a NullPointerException. I am sure the web service
logic is fine, cause the code is exactly the same of my "manual"
realization, and with the client I realized before of WTP everything works.
I suspect the error is somewhat related to the use of an external
library I need. I configured the build path of the project, but it
doesn't seems to be enough. I also tried to copy the library in the
WebContent/WEB-INF/lib subdir of the project, but it still doesn't work.
Moreover I am not able to debug anything but the automatically generated
jsp client.
Anyone can help me? I really am interested in using WTP and I would like
to learn using it.
|
|
|
Re: Web service problems [message #156890 is a reply to message #155602] |
Tue, 17 January 2006 03:58  |
Eclipse User |
|
|
|
Originally posted by: martini.dsi.unifi.it
Tommaso Martini ha scritto:
> I'm a newbie of WTP, this is the first time I use it.
> Before even knowing of WTP I realized a Java web service using Axis,
> using a "manual" procedure (i.e. using Axis tools like Java2WSDL,
> WSDL2Java, etc.).
> Now I would like to use a more "integrated" approach and WTP seems to be
> the right choice. Unfortunately I am not able in using it. I installed
> WTP 1.0 correctly and configured a Tomcat 5.5 server following the
> appropriate tutorial. Then I tried to follow the tutorial "Creating a
> Bottom-Up Java Web Service" but it doesn't work simply importing my
> source code. I mean, the wizard ends without errors, but when I test the
> web service it returns a NullPointerException. I am sure the web service
> logic is fine, cause the code is exactly the same of my "manual"
> realization, and with the client I realized before of WTP everything works.
> I suspect the error is somewhat related to the use of an external
> library I need. I configured the build path of the project, but it
> doesn't seems to be enough. I also tried to copy the library in the
> WebContent/WEB-INF/lib subdir of the project, but it still doesn't work.
> Moreover I am not able to debug anything but the automatically generated
> jsp client.
>
> Anyone can help me? I really am interested in using WTP and I would like
> to learn using it.
Really no one can help me or at least direct me to somewhere to look for?
|
|
|
Powered by
FUDForum. Page generated in 0.03078 seconds