Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Deploy My Eclipse Web Service - Beginner
Deploy My Eclipse Web Service - Beginner [message #227421] Wed, 28 January 2009 22:51 Go to next message
Tori  is currently offline Tori Friend
Messages: 18
Registered: July 2009
Junior Member
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 #227431 is a reply to message #227421] Wed, 28 January 2009 22:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Posting the relevant portion of the error log might help us determine
what is going on. Also, be sure to check the WTP/Tomcat FAQ as it
might have some answers as well:

http://wiki.eclipse.org/WTP_Tomcat_FAQ

Dave

Tori wrote:
> 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 #227436 is a reply to message #227431] Wed, 28 January 2009 23:32 Go to previous messageGo to next message
Tori  is currently offline Tori Friend
Messages: 18
Registered: July 2009
Junior Member
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
Re: Deploy My Eclipse Web Service - Beginner [message #227449 is a reply to message #227436] Thu, 29 January 2009 13:15 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
Previous Topic:WSDL Editor error
Next Topic:axiom - correct loaction for jars?
Goto Forum:
  


Current Time: Tue Mar 19 09:26:36 GMT 2024

Powered by FUDForum. Page generated in 0.02088 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top