Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Only one web-app can run on server
Only one web-app can run on server [message #182512] Sat, 11 November 2006 23:36 Go to next message
Matthew is currently offline MatthewFriend
Messages: 3
Registered: July 2009
Junior Member
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 #182528 is a reply to message #182512] Sun, 12 November 2006 08:34 Go to previous messageGo to next message
Matthew is currently offline MatthewFriend
Messages: 3
Registered: July 2009
Junior Member
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
Re: Only one web-app can run on server [message #182588 is a reply to message #182528] Mon, 13 November 2006 13:41 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
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
>
>
>
Previous Topic:java.library.path
Next Topic:Cannot create dynamic web project
Goto Forum:
  


Current Time: Fri Apr 19 07:58:18 GMT 2024

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

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

Back to the top