Deploy My Eclipse Web Service - Beginner [message #227421] |
Wed, 28 January 2009 17:51  |
Eclipse User |
|
|
|
Hi,
I have developed my first web service. It works fine with Tomcat within my
Eclipse IDE and the web service client within Eclipse can connect fine
and so on.
The service is a particular class name specified by my 'service provider'.
The provider will send notifications to my webservice, it expects it to be
the name of this class. The majority of the project is standard java
classes processing the received messages and storing in a MySQL database.
The Eclipse project is called 'mywebservice' and the web service class
itself has another name, it's just a very simple java class that I exposed
as a service using Eclipse/Axis2. I want to deploy this web service to a
live Tomcat server (running on my laptop).
I am unsure how to do this. Export>war exports a war file with the same
name of my project. I can then browse from Tomcat, import and deploy this
service. but if I click on the service it get brought to an error page.
Also, the java project had a lot of dependencies on external jar files. Do
these get exported or do I have to manually deploy/copy these to my Tomcat
server?
Thanks for reading,
Tori
|
|
|
|
|
Re: Deploy My Eclipse Web Service - Beginner [message #227449 is a reply to message #227436] |
Thu, 29 January 2009 08:15  |
Eclipse User |
|
|
|
Tori wrote:
> Hi David,
> Thanks for the reply. Apologies, I should have posted the error. Here it
> is below. 'mywebservice' is the name of the 'dynamic web project' I
> created, not the class that generated teh web services.
>
> Thanks again,
> Tori
>
> HTTP Status 404 - /mywebservice/
>
> type Status report
>
> message /mywebservice/
>
> description The requested resource (/mywebservice/) is not available.
>
> Apache Tomcat/6.0.18
>
>
This is the expected response for this URL (i.e. a URL that ends with
the "name" of the webapp) if your webapp does not contain a welcome
file. Add an index.jsp and you should see that displayed for this URL.
Cheers,
Larry
|
|
|
Powered by
FUDForum. Page generated in 0.22636 seconds