Only one web-app can run on server [message #182512] |
Sat, 11 November 2006 18:36  |
Eclipse User |
|
|
|
Hi all,
I have this problem since a long time now and still didn't find a solution.
That's why I come here.
I have one web-app, "LeHallWeb", an eclipse project in WTP Eclipse,
it's running fine on my Tomcat instance of my Tomcat server.
The JSP are correctly converted to HTML.
But I can't make an other project, "JSP01", to run on my server.
I also tried to run it on an other Tomcat instance, on the same server,
it just won't work : the JSP's aren't displaying anything...
I added "LeHallWeb" project to "Tomcat v5.5 Server @ localhost"
I added "JSP01" project to "Tomcat v5.5 Server @ localhost (2)"
It seems that I can only run one web-app on my tomlcat server.
If u have any ideas, any help on how I can debug this,
I would appreciate any help !
Thank u.
|
|
|
|
Re: Only one web-app can run on server [message #182588 is a reply to message #182528] |
Mon, 13 November 2006 08:41  |
Eclipse User |
|
|
|
There are certain classes, identified by their package, that the server
supplies which webapps aren't allowed to override. If such classes are
found in a jar in WEB-INF/lib, Tomcat deals with this by ignoring the
offending jar. Obviously, javax.servlet is one of those packages.
Assuming javax.servlet.jar only contained javax.servlet classes, this
shouldn't by itself cause your webapp to fail.
I would start by removing this jar from the webapp since it is always
wrong to have a jar like this in WEB-INF/lib. If there are still
problems, provide more detail about what exactly is going wrong.
Cheers,
Larry
matthew wrote:
> I can notice this when I start the server that is assigned to JSP01 (the
> one that not work) :
>
> INFO: validateJarFile(D:\Informatique\Projets\LeHall\WorkSpace
> LeHall\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\w ebapps\JSP01\WEB-INF\lib\javax.servlet.jar)
> - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02558 seconds