Hi David, you're probably right, but I tried to look at every reference Jbuilder makes about required libraries. And the only one I found was the one in "Project / Project Properties / Path / Required Libraries" In that tab, there's a reference to the Servlet library of Tomcat (this is added by default by JBuilder when you create a new JSP). But I didn't find anywhere else a reference to that same library.
If it can help, here's the complete messages I have when I start (web run) my project and then stop tomcat: 1/ loading Tomcat >D:\JBuilder6\jdk1.3.1\bin\javaw -classpath >"D:\JBuilder6\jakarta-tomcat-4.0.1\bin\bootstrap.jar;D:\JBuilder6\jdk1.3.1\demo\jfc\Java2D\Java2Demo.jar;D:\JBuilder6\jdk1.3.1\jre\lib\i18n.jar;D:\JBuilder6\jdk1.3.1\jre\lib\jaws.jar;D:\JBuilder6\jdk1.3.1\jre\lib\rt.jar;D:\JBuilder6\jdk1.3.1\jre\lib\sunrsasign.jar;D:\JBuilder6\jdk1.3.1\lib\dt.jar;D:\JBuilder6\jdk1.3.1\lib\htmlconverter.jar;D:\JBuilder6\jdk1.3.1\lib\tools.jar" > >-Dcatalina.home="D:/JBuilder6/jakarta-tomcat-4.0.1" >org.apache.catalina.startup.Bootstrap start -config >"C:\Slimane\TS2\conf\server8080.xml" -nonaming >HttpConnector Opening server socket on all host IP addresses >Starting service Tomcat-Standalone >Apache Tomcat/4.0.1 >WebappLoader[/TimeSheet]: Deploying class repositories to work directory >C:\Slimane\TS2\work\TimeSheet >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/SQL.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\SQL.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/Struts-Layout.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\Struts-Layout.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-beanutils.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-collections.jar >to C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-collections.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-dbcp.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-dbcp.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-digester.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-digester.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-logging.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-logging.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-pool.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-pool.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-services.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-services.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/commons-validator.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-validator.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\jdbc2_0-stdext.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/struts.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\struts.jar >WebappLoader[/TimeSheet]: Deploy JAR /WEB-INF/lib/tiles.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\tiles.jar >StandardManager[/TimeSheet]: Seeding random number generator class >java.security.SecureRandom >StandardManager[/TimeSheet]: Seeding of random number generator has been >completed >StandardWrapper[/TimeSheet:default]: Loading container servlet default >StandardWrapper[/TimeSheet:invoker]: Loading container servlet invoker >WebappLoader[]: Deploying class repositories to work directory >C:\Slimane\TS2\work >WebappLoader[]: Deploy JAR /WEB-INF/lib/SQL.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\SQL.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/Struts-Layout.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\Struts-Layout.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-beanutils.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-collections.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-collections.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-dbcp.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-dbcp.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-digester.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-digester.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-logging.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-logging.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-pool.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-pool.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-services.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-services.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/commons-validator.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\commons-validator.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\jdbc2_0-stdext.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/struts.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\struts.jar >WebappLoader[]: Deploy JAR /WEB-INF/lib/tiles.jar to >C:\Slimane\TS2\defaultroot\WEB-INF\lib\tiles.jar >StandardManager[]: Seeding random number generator class >java.security.SecureRandom >StandardManager[]: Seeding of random number generator has been completed >StandardWrapper[:default]: Loading container servlet default >StandardWrapper[:invoker]: Loading container servlet invoker >HttpConnector[8080] Starting background thread 2/ Throws the exception >StandardWrapperValve[debugjsp]: Servlet.service() for servlet debugjsp >threw exception >javax.servlet.ServletException: duplicate class definition: >org/apache/jasper/runtime/HttpJspBase >javax.servlet.ServletException: duplicate class definition: >org/apache/jasper/runtime/HttpJspBase > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > at > >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > at > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) > at > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) > at > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) > at > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) > at java.lang.Thread.run(Thread.java:484) 3/ Stop Tomcat >Stopping service Tomcat-Standalone >HttpConnector[8080] Stopping background thread >StandardHost[localhost]: Removing web application at context path /TimeSheet >StandardHost[localhost]: Removing web application at context path Friendly Regards, Slimane PS: However, thanx for trying to help me :) At 17:25 9/03/2002 -0800, you wrote: >Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5 >6 7 8 9 >From: "David Bolsover" <[EMAIL PROTECTED]> > === >Silmane > >I still think that this is a classpath / classloader problem. > >I managed to duplicate your error message by putting a reference to the >servlet.jar file in Project Properties | Web Server | Tomcat 4.0 | Required >libraries tab - I hate the way JB hides all these settings - far too >complex! > >David > > > >"Slimane" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED]... > > hello David > > > > thanx for your help :) But it still doesn't work :( > > > > In the properties of my webapp, the servlet library of Tomcat was indeed > > excluded, so that isn't the problem. > > > > The weirdiest thing, I think, is the fact that this happens only the >second > > time I run my webapp. And it doesn't happen occasionnaly but every second > > time ! > > Could it be related to a session bean which isn't successfully removed ? > > Because I don't see what else could generate that exception. > > (javax.servlet.ServletException: duplicate class definition: > > org/apache/jasper/runtime/HttpJspBase) > > > > > > Friendly regards, > > Slimane > > > > At 03:25 9/03/2002 -0800, you wrote: > > >Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 4 5 > > >6 7 8 9 > > >From: "David Bolsover" <[EMAIL PROTECTED]> > > > === > > >Slimane > > > > > >Sorry - quite correct - there should be reference to the servlet lib in >the > > >project properties - however, in the webapp properties (right click hand > > >holding globe) you should make sure the the Tomcat 4.0 Servlet lib is > > >Excluded from the webapp. Otherwise, JBuilder will put a duplicate copy >of > > >servlet.jar into the WEB-INF/lib directory and into your .war file - >could > > >this be the problem? > > > > > >I'm convinced that this must be a classpath/classloader related problem >and > > >not that TC or Struts (or JB for that matter) are fundamentallty flawed. > > > > > >I occasionally see this in the JB browser: > > >javax.servlet.ServletException: duplicate class definition: > > >javax/servlet/jsp/JspTagException > > >But NEVER when the app is deployed!! > > > > > >"Slimane" <[EMAIL PROTECTED]> wrote in message > > >news:[EMAIL PROTECTED]... > > > > Hi, > > > > > > > > I'm not sure that I understood what you wrote. Of course, I have a > > > > reference to the servlet library in the properties of my jbuilder >project > > > > :) Why shouldn't I have that reference (in the required libraries) ? > > > > > > > > Sorry, if I misunderstood your reply but I'm just a newbie in the > > > > development of Web Application. > > > > > > > > For the rest, I tried deploying my webapp with Tomcat and I had the >same > > > > problem (!!!). > > > > So I'd suppose, it's a Tomcat problem (or a Struts prob ?). > > > > > > > > I also patched my Jbuilder 6.0 with the latest update available >without > > >any > > > > improvement. > > > > > > > > I didn't try to update my version of Tomcat. Because I first wanna be >sure > > > > it's Tomcat causing the problem and not something else... > > > > > > > > Friendly Regards, > > > > Slimane > > > > > > > > At 07:40 8/03/2002 -0800, you wrote: > > > > >Subject: Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ 1 2 3 >4 5 > > > > >6 7 8 9 > > > > >From: "David Bolsover" <[EMAIL PROTECTED]> > > > > > === > > > > >Hi > > > > > > > > > >I also use TC4.0.1, Struts and JB6(pro) and have seen a similar >problem. > > > > >To be honest I can't remember how I cured but I think it was because >I > > >had a > > > > >reference to the servlet library in the JB project props - you try > > >looking > > > > >there. > > > > > > > > > >Also - do you get the same problem when you deploy your project as a >war > > >and > > > > >run under TC outside of JB6? - might give some clue as to where the > > >problem > > > > >lies. > > > > > > > > > >David Bolsover > > > > [SNIP the huge quote] > > > > > > -- > > To unsubscribe, e-mail: ><mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: ><mailto:[EMAIL PROTECTED]> > > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

