Home » Language IDEs » ServerTools (WTP) » JSP "run on server" acts strangely after adding servlet to project
JSP "run on server" acts strangely after adding servlet to project [message #176310] |
Fri, 04 August 2006 13:44 |
Eclipse User |
|
|
|
Originally posted by: vegtabill.gmail.com
Greetings,
Let me preface this by saying that this could easily be something basic
that I am overlooking. I apologize in advance!
Using Eclipse 3.2 with WTP 1.5, I am seeing some odd behavior when I use
"run on server" to run a JSP. If I start a new dynamic web project in the
J2EE perspective and then create a basic JSP, there is no problem. I
select "run on server" (which is Tomcat 5.5.17, by the way), and the JSP
runs as expected.
The strangeness occurs when I add a servlet to the project. Once that is
done, and it is defined and mapped in web.xml, when I try to run the
original JSP with "run on server", the path has changed to include the
servlet mapping. For example, say the project is "Test", the JSP is
"Test.jsp" in WebContent, and the servlet is "TestServlet" in src. Before
the servlet, the browser correctly goes to localhost:8080/Test/Test.jsp
when I use "run on server". After adding the servlet though, the same
action tries to go to localhost:8080/Test/TestServlet/Test.jsp and, of
course, produces a 404 error.
I've looked all over for a reason for this (never saw this in Eclipse 3.1
with WTP 1.0), but I have not found anything to explain it. By the way, if
I manually type in the correct address, everything works as it should. I
just don't quite understand why "run on server" is behaving this way now.
Any suggestions? Thanks in advance!
|
|
|
Re: JSP "run on server" acts strangely after adding servlet to project [message #181780 is a reply to message #176310] |
Sun, 22 October 2006 19:02 |
Eclipse User |
|
|
|
Originally posted by: richard.rjssoftware.com
Christopher,
Did you ever resolve this issue ?
I am having the same problem with Eclipse 3.2.
Regards,
Richard Schoen
RJS Software Systems Inc.
"Providing Your....iNFORMATION NOW!"
Email: richard@rjssoftware.com
Web Site: http://www.rjssoftware.com
Tel: (952) 898-3038
Fax: (952) 898-1781
Toll Free: (888) RJSSOFT
"Christopher Burton" <vegtabill@gmail.com> wrote in message
news:bf6fb33f60c393b56acbfbaf9ccde4f0$1@www.eclipse.org...
> Greetings,
> Let me preface this by saying that this could easily be something basic
> that I am overlooking. I apologize in advance!
> Using Eclipse 3.2 with WTP 1.5, I am seeing some odd behavior when I use
> "run on server" to run a JSP. If I start a new dynamic web project in the
> J2EE perspective and then create a basic JSP, there is no problem. I
> select "run on server" (which is Tomcat 5.5.17, by the way), and the JSP
> runs as expected.
> The strangeness occurs when I add a servlet to the project. Once that is
> done, and it is defined and mapped in web.xml, when I try to run the
> original JSP with "run on server", the path has changed to include the
> servlet mapping. For example, say the project is "Test", the JSP is
> "Test.jsp" in WebContent, and the servlet is "TestServlet" in src. Before
> the servlet, the browser correctly goes to localhost:8080/Test/Test.jsp
> when I use "run on server". After adding the servlet though, the same
> action tries to go to localhost:8080/Test/TestServlet/Test.jsp and, of
> course, produces a 404 error.
> I've looked all over for a reason for this (never saw this in Eclipse 3.1
> with WTP 1.0), but I have not found anything to explain it. By the way, if
> I manually type in the correct address, everything works as it should. I
> just don't quite understand why "run on server" is behaving this way now.
> Any suggestions? Thanks in advance!
|
|
| | | |
Goto Forum:
Current Time: Thu Mar 28 21:23:56 GMT 2024
Powered by FUDForum. Page generated in 0.04368 seconds
|