Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » exception (404): yWS/services/MyWS
exception (404): yWS/services/MyWS [message #191746] Wed, 25 April 2007 08:00 Go to next message
Eclipse UserFriend
Originally posted by: strm2981.yahoo.com

We created a web service using Eclipse, I had axis plugin installed.
We have Tomcat 5.5 and mysql.

Eclipse created some sample jsp files, once I created the clinet using
the wizard. I made changes in the jsp file which had the webservice
calls. Now the problem is, eclipse by default created and deployed the
folder inside the workspace :
" .metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ "

I copied the whole folder and pasted it on my apache tomcat server. t
runs fine at my system. But when I try to run on a different machine
it gives the following error (page is displayed, in the jsp page I've
used try catch and displayed the error).

exception (404):MyWS/services/MyWS

Plz suggest what the problem might be...I'm pretty new to web
services. Also what is an endpoint and whats its significance.
Re: exception (404): yWS/services/MyWS [message #191897 is a reply to message #191746] Tue, 01 May 2007 17:51 Go to previous message
Andrew Mak is currently offline Andrew MakFriend
Messages: 41
Registered: July 2009
Member
Hi Swapnil,

If I'm understanding this correctly, you have created the web service and
jsp in your IDE and everything is working fine. And now you want to
deploy the web service and jsp to your live tomcat server, is that correct?

If that's the case, you should not need to do any manual copying.
Instead, try exporting your project as a WAR file then you can deploy this
WAR to your tomat server.

After you have successfully deployed your app onto tomcat, if you are
getting the 404 when you invoke the web service, then it's likely you have
to change the endpoint url. The endpoint is the url to connect to invoke
the web service. During development this is usally set to something like
http://localhost:8080/MyProject/services/MyPortName. After you deploy
your app you should change the localhost:8080 to the actual host and port
of your tomcat server. The jsp has set/getEndpoint methods to let you
change that. Alternatively you can change the value in your service class
in your client project before exporting the WAR.

Andrew

Swapnil wrote:

> We created a web service using Eclipse, I had axis plugin installed.
> We have Tomcat 5.5 and mysql.

> Eclipse created some sample jsp files, once I created the clinet using
> the wizard. I made changes in the jsp file which had the webservice
> calls. Now the problem is, eclipse by default created and deployed the
> folder inside the workspace :
> ".metadata.pluginsorg.eclipse.wst.server.coretmp0webapps"

> I copied the whole folder and pasted it on my apache tomcat server. t
> runs fine at my system. But when I try to run on a different machine
> it gives the following error (page is displayed, in the jsp page I've
> used try catch and displayed the error).

> exception (404):MyWS/services/MyWS

> Plz suggest what the problem might be...I'm pretty new to web
> services. Also what is an endpoint and whats its significance.
Previous Topic:beehive development in Eclipse
Next Topic:JSPX Content Assist Doesn't Work in WTP 2.0M6
Goto Forum:
  


Current Time: Sun Nov 23 09:00:05 GMT 2014

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

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