Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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!
Re: JSP "run on server" acts strangely after adding servlet to project [message #181809 is a reply to message #176310] Mon, 23 October 2006 19:45 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Has there been a bug opened for this?

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSP "run on server" acts strangely after adding servlet to project [message #182002 is a reply to message #181809] Sun, 29 October 2006 17:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richard.rjssoftware.com

No, not that I know of. Where do I report this ?

I've never reported an eclipse bug before.

"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:ehj657$sol$1@utils.eclipse.org...
> Has there been a bug opened for this?
>
> --
> Nitin Dahyabhai
> Structured Source Editor
Re: JSP "run on server" acts strangely after adding servlet to project [message #182009 is a reply to message #182002] Sun, 29 October 2006 22:35 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Richard Schoen wrote:
> No, not that I know of. Where do I report this ?
>
> I've never reported an eclipse bug before.

Eclipse's Bugzilla site is at https://bugs.eclipse.org/bugs/, and it
applies for all of the projects hosted on Eclipse.org, including the
Web Tools Platform. Because it's a problem with launching your JSP
instead of editing it, I'd start with the jst.server component of
the Web Tools product:

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=jst.server

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:EJB3 in EAR
Next Topic:Geronimo-tomcat-j2ee-1.1.1 and webtool 1.5.2
Goto Forum:
  


Current Time: Thu Mar 28 21:23:56 GMT 2024

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

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

Back to the top