Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-10 Thread Slimane
 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

Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-09 Thread Slimane

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]




Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-09 Thread @Basebeans.com

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]




[Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-08 Thread Slimane Zouggari

Hi,

I have a very strange problem here. And I don't know what is the cause of 
that problem (Tomcat ? Struts ? JBuilder ? something else ?).

Here's my problem: when I run a first time my project with Jbuilder 6 
(using Tomcat 4.0.1), I have practically no problem.
Then I stop the Tomcat server and try to run it again (without changing a 
thing !). And suddenly, the following exception is thrown:

Apache Tomcat/4.0.1 - Error report!--H1{font-family : 
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} 
BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color 
: white;} B{color : white;background-color : #0086b2;} HR{color : 
#0086b2;} --Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server 
Errortype Exception reportmessage Internal Server Errordescription The 
server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.exception 
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.valves.CertificatesValve.invoke(CertificatesValve.java:246)
  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.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:536)
root cause java.lang.LinkageError: duplicate class definition: 
org/apache/jasper/runtime/HttpJspBase
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
  at 
 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:671)
  at 
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1090)
  at 
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989)
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1293)
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1156)
  at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:198)
  at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:132)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
  at 

Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-08 Thread @Basebeans.com

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

Slimane Zouggari [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hi,

 I have a very strange problem here. And I don't know what is the cause of
 that problem (Tomcat ? Struts ? JBuilder ? something else ?).

 Here's my problem: when I run a first time my project with Jbuilder 6
 (using Tomcat 4.0.1), I have practically no problem.
 Then I stop the Tomcat server and try to run it again (without changing a
 thing !). And suddenly, the following exception is thrown:

 Apache Tomcat/4.0.1 - Error report!--H1{font-family :
 sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
 BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color
 : white;} B{color : white;background-color : #0086b2;} HR{color :
 #0086b2;} --Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server
 Errortype Exception reportmessage Internal Server Errordescription The
 server encountered an internal error (Internal Server Error) that
 prevented it from fulfilling this request.exception
 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(Application
FilterChain.java:247)
   at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
   at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
   at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
   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.ja
va:201)
   at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
   at
 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
   at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
   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:5
66)
   at
 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
   at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
   at
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
   at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
   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:5
66)
   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:536)
 root cause java.lang.LinkageError: duplicate class definition:
 org/apache/jasper/runtime/HttpJspBase
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
   at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
   at
 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader
.java:671)
   at
 
org.apache.catalina.loader.StandardClassLoader.loadClass

RE: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-08 Thread Emaho, Ghoot

I have run with a similar environment and found no problems at all, so it's not a 
problem with JBuilder per se, perhaps they way you have it confgiured.

I would recomend you install the latest patch for JBuilder 6 (available at the 
website) and try it against an External instance of Tomcat 4 as suggested elsewhere. 
The other thing to try would be to upgrade to 4.0.2 and test against that.

Sorry I cant help any more, but if you supply more info on your configuration perhaps 
I can. Im certain its a config issue and not a JBuilder/Tomcat issue.

Thanks

Ghoot

 -Original Message-
 From: Slimane Zouggari [mailto:[EMAIL PROTECTED]]
 Sent: 08 March 2002 15:23
 To: [EMAIL PROTECTED]
 Subject: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?
 
 
 Hi,
 
 I have a very strange problem here. And I don't know what is 
 the cause of 
 that problem (Tomcat ? Struts ? JBuilder ? something else ?).
 
 Here's my problem: when I run a first time my project with Jbuilder 6 
 (using Tomcat 4.0.1), I have practically no problem.
 Then I stop the Tomcat server and try to run it again 
 (without changing a 
 thing !). And suddenly, the following exception is thrown:
 
 Apache Tomcat/4.0.1 - Error report!--H1{font-family : 
 sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;} 
 BODY{font-family : sans-serif,Arial,Tahoma;color : 
 black;background-color 
 : white;} B{color : white;background-color : #0086b2;} HR{color : 
 #0086b2;} --Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server 
 Errortype Exception reportmessage Internal Server 
 Errordescription The 
 server encountered an internal error (Internal Server Error) that 
 prevented it from fulfilling this request.exception 
 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.internalDoFilt
 er(ApplicationFilterChain.java:247)
   at 
  
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
cationFilterChain.java:193)
   at 
  
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.java:243)
   at 
  
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
  
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
  
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.java:201)
   at 
  
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
  
 org.apache.catalina.valves.CertificatesValve.invoke(Certificat
esValve.java:246)
   at 
  
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
  
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
  
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2344)
   at 
  
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:164)
   at 
  
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
  
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
spatcherValve.java:170)
   at 
  
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
  
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
Valve.java:170)
   at 
  
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:564)
   at 
  
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
  
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java:163)
   at 
  
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:566)
   at 
  
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
ine.java:472)
   at 
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
  
 org.apache.catalina.connector.http.HttpProcessor.process(HttpP
rocessor.java:1011)
   at 
  
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
ssor.java:1106)
   at java.lang.Thread.run(Thread.java:536)
 root cause java.lang.LinkageError: duplicate class definition: 
 org/apache/jasper/runtime/HttpJspBase
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
   at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.
java:123)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:193

Re: [Off-Topic ?] Problem with Struts/Tomcat/Jbuilder/ ?

2002-03-08 Thread Slimane

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

Slimane Zouggari [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
  Hi,
 
  I have a very strange problem here. And I don't know what is the cause of
  that problem (Tomcat ? Struts ? JBuilder ? something else ?).
 
  Here's my problem: when I run a first time my project with Jbuilder 6
  (using Tomcat 4.0.1), I have practically no problem.
  Then I stop the Tomcat server and try to run it again (without changing a
  thing !). And suddenly, the following exception is thrown:
 
  Apache Tomcat/4.0.1 - Error report!--H1{font-family :
  sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
  BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color
  : white;} B{color : white;background-color : #0086b2;} HR{color :
  #0086b2;} --Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server
  Errortype Exception reportmessage Internal Server Errordescription The
  server encountered an internal error (Internal Server Error) that
  prevented it from fulfilling this request.exception
  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(Application
FilterChain.java:247)
at
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
  
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
  
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
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.ja
va:201)
at
  
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
  
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
  
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
at
  
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
  
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
  
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
  
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
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:5
66)
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