Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP TomCat integration. HTTP 404 Still once again(Server fails to get the Servlet.java resource.)
WTP TomCat integration. HTTP 404 Still once again [message #512190] Thu, 04 February 2010 11:04 Go to next message
Jorge Dieguez is currently offline Jorge DieguezFriend
Messages: 48
Registered: July 2009
Location: France
Member

Hello All,

It's being today 2 days I'm dealing with this issue. I have gone to more than 20 threads on this very subject hoping to solve the problem. I have follow many of your suggestions, but still I've got the same:
http 404 error.The resource you are looking for (/web2/servlet/org.example.ch03.HelloServlet) is not available.

I have installed:
TomCat 6.0.24
Eclipse Galileo Build id: 20090920-1017

I have created:
One localhost server which starts and sync aparently fine.
Use workspace metadata: Checked. (which defaults to: .metadata\.plugins\org.eclipse.wst.server.core\tmp0. Deploy path: wtpwebapps.
Publish module contexts to separated xml files: Checked
Two applications:
web1app: which only shows hello-world.jsp ( which works fine)
web2app: which always fails and is composed of:
login-user.jsp
hello-world.jsp and
HelloServlet.java

After running both, I have looked at the Deploy path and both applications directories are created consequently at:
.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebap ps\

web2app directory shows .\WEB-INF\classes\org\example\ch03\HelloServlet.class as well as HelloWorld.jsp and login-user.jsp at "."

I have checked the console for both applications before, during and after instantiation and it looks to be fine, only showing INFO: messages.

Can you please help me on this.

Many thanks,

Jorge


Jorge
Re: WTP TomCat integration. HTTP 404 Still once again [message #512274 is a reply to message #512190] Thu, 04 February 2010 14:34 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Your problem isn't the 404, but the URL you are using. See this Tomcat
FAQ question for info:

http://wiki.eclipse.org/WTP_Tomcat_FAQ#Why_does_my_Tomcat_6. 0_server_fail_to_start_after_I_enable_the_Invoker_servlet.3F

Note that this question applies after you have un-commented out the
Invoker servlet in "conf/web.xml".

Unfortunately, the use of "<webapp context>/servlet/<fully qualified
class>" in a URL suggests the book or document you are using may be
somewhat out of date. If it doesn't cover beyond the Servlet 2.3 specs,
I'd recommend finding something more recent. Your Tomcat 6.0.24 server
supports Servlet 2.5 specs.

Cheers,
Larry

Jorge Dieguez wrote:
> Hello All,
>
> It's being today 2 days I'm dealing with this issue. I have gone to more
> than 20 threads on this very subject hoping to solve the problem. I have
> follow many of your suggestions, but still I've got the same:
> http 404 error.The resource you are looking for
> (/web2/servlet/org.example.ch03.HelloServlet) is not available.
>
> I have installed:
> TomCat 6.0.24
> Eclipse Galileo Build id: 20090920-1017
>
> I have created:
> One localhost server which starts and sync aparently fine.
> Use workspace metadata: Checked. (which defaults to:
> .metadata\.plugins\org.eclipse.wst.server.core\tmp0. Deploy path:
> wtpwebapps.
> Publish module contexts to separated xml files: Checked
> Two applications:
> web1app: which only shows hello-world.jsp ( which works fine)
> web2app: which always fails and is composed of:
> login-user.jsp hello-world.jsp and
> HelloServlet.java
>
> After running both, I have looked at the Deploy path and both
> applications directories are created consequently at:
> .metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebap ps\
>
> web2app directory shows
> .\WEB-INF\classes\org\example\ch03\HelloServlet.class as well as
> HelloWorld.jsp and login-user.jsp at "."
>
> I have checked the console for both applications before, during and
> after instantiation and it looks to be fine, only showing INFO: messages.
>
> Can you please help me on this.
>
> Many thanks,
>
> Jorge
Re: WTP TomCat integration. HTTP 404 Still once again [message #512400 is a reply to message #512190] Thu, 04 February 2010 22:40 Go to previous message
Jorge Dieguez is currently offline Jorge DieguezFriend
Messages: 48
Registered: July 2009
Location: France
Member

Many Thanks Larry, appreciated Razz .

Jorge
Previous Topic:plugin for setting up a data source?
Next Topic:unable to see jboss 5.1 in list
Goto Forum:
  


Current Time: Fri Apr 19 09:21:32 GMT 2024

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

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

Back to the top