Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Servlet Publishing Problem
Servlet Publishing Problem [message #185450] Fri, 29 December 2006 01:15 Go to next message
blackicetea is currently offline blackiceteaFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

I used Eclipse before.My problem is simple
I have a JSP that call a Servlet. Eclipse and tomcat
are on my laptop. Local server.

IDE, On eclipse and Tomcat5.5
When i run the servlet on the plugging server of eclipse, tomcat 5.5
the jsp is displayed. But when i call the servlet by entering
the url "http://localhost:8080/servlet/DebugServlet.testServlet"
i get a 404 error from the web browser. If on the other hand the
jsp call the servlet, for some obscure raison IE7 and Firefox display
the file downloader. i have disabled all securite but it still display
the file downloader. The servlet works but its doesn't not display the
HTML code that is embedded in it.

Tomcat5.5
When i export the project from Eclipse has a war file to tomcat5.5
server and run the JSP that call the Servlet i get the File downloader
of IE7 and of Firefox asking me to download the servlet. If i try to run
the servlet by using the url
"http://localhost:8080/servlet/DebugServlet.testServlet" with Firefox or
IE7 i get http status 404.


In both situation the servlet perform its task, meaning that it does
process the information. But what i dont understand is why i cannot
access the servlet by using the absolute path in IE7 or Firefox. Also
why is the servlet being uploaded. Tomcat should do it job. But instead
it is asking my Web browser to upload the file on the local machine and
then once it is uploaded it is viewed by the browser, but the url
changes to "c:\\" it pointing to my hard drive and not to the server.


If any of you have any suggestion it would be greatly appreciated.
Thank you. And happly holyday's to you all.
Re: Servlet Publishing Problem [message #185495 is a reply to message #185450] Tue, 02 January 2007 14:42 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
The URL "http://localhost:8080/servlet/DebugServlet.testServlet" implies
some assumptions which typically aren't true. First, it suggests that
you have set the context-root for this web project to "" or "/servlet".
Is this the case?

Cheers,
Larry

blackcietea wrote:
> Hi,
>
> I used Eclipse before.My problem is simple
> I have a JSP that call a Servlet. Eclipse and tomcat
> are on my laptop. Local server.
>
> IDE, On eclipse and Tomcat5.5
> When i run the servlet on the plugging server of eclipse, tomcat 5.5
> the jsp is displayed. But when i call the servlet by entering
> the url "http://localhost:8080/servlet/DebugServlet.testServlet"
> i get a 404 error from the web browser. If on the other hand the
> jsp call the servlet, for some obscure raison IE7 and Firefox display
> the file downloader. i have disabled all securite but it still display
> the file downloader. The servlet works but its doesn't not display the
> HTML code that is embedded in it.
>
> Tomcat5.5
> When i export the project from Eclipse has a war file to tomcat5.5
> server and run the JSP that call the Servlet i get the File downloader
> of IE7 and of Firefox asking me to download the servlet. If i try to run
> the servlet by using the url
> "http://localhost:8080/servlet/DebugServlet.testServlet" with Firefox or
> IE7 i get http status 404.
>
>
> In both situation the servlet perform its task, meaning that it does
> process the information. But what i dont understand is why i cannot
> access the servlet by using the absolute path in IE7 or Firefox. Also
> why is the servlet being uploaded. Tomcat should do it job. But instead
> it is asking my Web browser to upload the file on the local machine and
> then once it is uploaded it is viewed by the browser, but the url
> changes to "c:\\" it pointing to my hard drive and not to the server.
>
>
> If any of you have any suggestion it would be greatly appreciated.
> Thank you. And happly holyday's to you all.
Previous Topic:ModelQuery "todo" - always returns true on canInsert
Next Topic:Existing project import
Goto Forum:
  


Current Time: Fri Apr 19 12:14:26 GMT 2024

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

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

Back to the top