Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

thanks for the reply

i put the jsp page in this location:

C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp

i've tried requesting http://localhost:8080/ and i got it correctly but
when trying to request that hello.jsp page the error awhile ago is
displayed.


r/gli




micael wrote:
 
 Where is the jsp page in your file structure?
 
 At 01:30 PM 10/1/2002 +0800, you wrote:
 Hello!
 
 I have this file hello.jsp located in the ..\webapps\hello.jsp. When I
 tried running in my browser like http://localhost:8080/hello.jsp, the
 following are displayed in the screen.
 
 
 Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
 
 
 
 type Status report
 
 message /hello.jsp
 
 description The requested resource (/hello.jsp) is not available.
 
 
 
 why is this so? is there some configuration other than bypassing the
 proxies set in LAN setting of my browser?...i need your help on this.
 
 
 r/gli
 --
 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]


Re: HTTP Status 404

2002-10-01 Thread micael

Your original post said you had [...]8080\etc. in the browser, if so, the \ 
should be /.  Or, was that just a typo?

At 02:17 PM 10/1/2002 +0800, you wrote:
thanks for the reply

i put the jsp page in this location:

C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp

i've tried requesting http://localhost:8080/ and i got it correctly but
when trying to request that hello.jsp page the error awhile ago is
displayed.





micael wrote:
 
  Where is the jsp page in your file structure?
 
  At 01:30 PM 10/1/2002 +0800, you wrote:
  Hello!
  
  I have this file hello.jsp located in the ..\webapps\hello.jsp. When I
  tried running in my browser like http://localhost:8080/hello.jsp, the
  following are displayed in the screen.
  
  
  Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
  
  --- 
 -
  
  type Status report
  
  message /hello.jsp
  
  description The requested resource (/hello.jsp) is not available.
  
  
  
  why is this so? is there some configuration other than bypassing the
  proxies set in LAN setting of my browser?...i need your help on this.
  
  
  r/gli
  --
  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]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

mic, i entered http://localhost:8080/hello.jsp in the browser's address
bar. and i tried typing http://localhost:8080\hello.jsp and still it
won't work.





micael wrote:
 
 Your original post said you had [...]8080\etc. in the browser, if so, the \
 should be /.  Or, was that just a typo?
 
 At 02:17 PM 10/1/2002 +0800, you wrote:
 thanks for the reply
 
 i put the jsp page in this location:
 
 C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
 
 i've tried requesting http://localhost:8080/ and i got it correctly but
 when trying to request that hello.jsp page the error awhile ago is
 displayed.
 
 
 
 
 
 micael wrote:
  
   Where is the jsp page in your file structure?
  
   At 01:30 PM 10/1/2002 +0800, you wrote:
   Hello!
   
   I have this file hello.jsp located in the ..\webapps\hello.jsp. When I
   tried running in my browser like http://localhost:8080/hello.jsp, the
   following are displayed in the screen.
   
   
   Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
   
   ---
  -
   
   type Status report
   
   message /hello.jsp
   
   description The requested resource (/hello.jsp) is not available.
   
   
   
   why is this so? is there some configuration other than bypassing the
   proxies set in LAN setting of my browser?...i need your help on this.
   
   
   r/gli
   --
   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]
 
 --
 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]


Re: HTTP Status 404

2002-10-01 Thread micael

Well, you were right the first time.  Do you have hello.jsp in an 
application?  If so, then you have to type in:

http://localhost:8080/myapp/hello.jsp

if the hello.jsp is in the folder myapp.

At 02:48 PM 10/1/2002 +0800, you wrote:
mic, i entered http://localhost:8080/hello.jsp in the browser's address
bar. and i tried typing http://localhost:8080\hello.jsp and still it
won't work.





micael wrote:
 
  Your original post said you had [...]8080\etc. in the browser, if so, the \
  should be /.  Or, was that just a typo?
 
  At 02:17 PM 10/1/2002 +0800, you wrote:
  thanks for the reply
  
  i put the jsp page in this location:
  
  C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
  
  i've tried requesting http://localhost:8080/ and i got it correctly but
  when trying to request that hello.jsp page the error awhile ago is
  displayed.
  
  
  
  
  
  micael wrote:
   
Where is the jsp page in your file structure?
   
At 01:30 PM 10/1/2002 +0800, you wrote:
Hello!

I have this file hello.jsp located in the ..\webapps\hello.jsp. 
 When I
tried running in my browser like http://localhost:8080/hello.jsp, the
following are displayed in the screen.


Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp

--- 
 
   -

type Status report

message /hello.jsp

description The requested resource (/hello.jsp) is not available.



why is this so? is there some configuration other than bypassing the
proxies set in LAN setting of my browser?...i need your help on this.


r/gli
--
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]
 
  --
  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]




Re: HTTP Status 404

2002-10-01 Thread micael

Oh, I think I see what you have done.  You just popped a jsp into the 
webapps directory?  Way off, if so.

At 02:48 PM 10/1/2002 +0800, you wrote:
mic, i entered http://localhost:8080/hello.jsp in the browser's address
bar. and i tried typing http://localhost:8080\hello.jsp and still it
won't work.





micael wrote:
 
  Your original post said you had [...]8080\etc. in the browser, if so, the \
  should be /.  Or, was that just a typo?
 
  At 02:17 PM 10/1/2002 +0800, you wrote:
  thanks for the reply
  
  i put the jsp page in this location:
  
  C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
  
  i've tried requesting http://localhost:8080/ and i got it correctly but
  when trying to request that hello.jsp page the error awhile ago is
  displayed.
  
  
  
  
  
  micael wrote:
   
Where is the jsp page in your file structure?
   
At 01:30 PM 10/1/2002 +0800, you wrote:
Hello!

I have this file hello.jsp located in the ..\webapps\hello.jsp. 
 When I
tried running in my browser like http://localhost:8080/hello.jsp, the
following are displayed in the screen.


Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp

--- 
 
   -

type Status report

message /hello.jsp

description The requested resource (/hello.jsp) is not available.



why is this so? is there some configuration other than bypassing the
proxies set in LAN setting of my browser?...i need your help on this.


r/gli
--
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]
 
  --
  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]




Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

yes mic, i've tried that also like
http://localhost:8080/java_samples/hello.jsp and still it won't work...


r/gli




micael wrote:
 
 Well, you were right the first time.  Do you have hello.jsp in an
 application?  If so, then you have to type in:
 
 http://localhost:8080/myapp/hello.jsp
 
 if the hello.jsp is in the folder myapp.
 
 At 02:48 PM 10/1/2002 +0800, you wrote:
 mic, i entered http://localhost:8080/hello.jsp in the browser's address
 bar. and i tried typing http://localhost:8080\hello.jsp and still it
 won't work.
 
 
 
 
 
 micael wrote:
  
   Your original post said you had [...]8080\etc. in the browser, if so, the \
   should be /.  Or, was that just a typo?
  
   At 02:17 PM 10/1/2002 +0800, you wrote:
   thanks for the reply
   
   i put the jsp page in this location:
   
   C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
   
   i've tried requesting http://localhost:8080/ and i got it correctly but
   when trying to request that hello.jsp page the error awhile ago is
   displayed.
   
   
   
   
   
   micael wrote:

 Where is the jsp page in your file structure?

 At 01:30 PM 10/1/2002 +0800, you wrote:
 Hello!
 
 I have this file hello.jsp located in the ..\webapps\hello.jsp.
  When I
 tried running in my browser like http://localhost:8080/hello.jsp, the
 following are displayed in the screen.
 
 
 Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
 
 ---
  
-
 
 type Status report
 
 message /hello.jsp
 
 description The requested resource (/hello.jsp) is not available.
 
 
 
 why is this so? is there some configuration other than bypassing the
 proxies set in LAN setting of my browser?...i need your help on this.
 
 
 r/gli
 --
 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]
  
   --
   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]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: HTTP Status 404

2002-10-01 Thread micael

The initial file that worked for you was in the ROOT application.  Do you 
have access to books on Tomcat?  What is your situation?  If you put the 
file hello.jsp into the webapps directory, you are just beginning, I take 
it?  You need to get a book on Tomcat, read some on Servlets, maybe, 
etc.  Give me a better idea of where you are so I can direct you to a 
correct resource.  If you want to see your file, drop it into ROOT, then 
try http://localhost:8080/hello.jsp.  Or, drop it into examples, and then 
try http://localhost:8080/examples/hello.jsp.  Take a look at the url you 
get when you go to examples from index.html after you get 
http://localhost:8080/index.html.

I see the problem you are having.  Just don't know yet what your best thing 
to do to start learning this is.

At 02:48 PM 10/1/2002 +0800, you wrote:
mic, i entered http://localhost:8080/hello.jsp in the browser's address
bar. and i tried typing http://localhost:8080\hello.jsp and still it
won't work.





micael wrote:
 
  Your original post said you had [...]8080\etc. in the browser, if so, the \
  should be /.  Or, was that just a typo?
 
  At 02:17 PM 10/1/2002 +0800, you wrote:
  thanks for the reply
  
  i put the jsp page in this location:
  
  C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
  
  i've tried requesting http://localhost:8080/ and i got it correctly but
  when trying to request that hello.jsp page the error awhile ago is
  displayed.
  
  
  
  
  
  micael wrote:
   
Where is the jsp page in your file structure?
   
At 01:30 PM 10/1/2002 +0800, you wrote:
Hello!

I have this file hello.jsp located in the ..\webapps\hello.jsp. 
 When I
tried running in my browser like http://localhost:8080/hello.jsp, the
following are displayed in the screen.


Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp

--- 
 
   -

type Status report

message /hello.jsp

description The requested resource (/hello.jsp) is not available.



why is this so? is there some configuration other than bypassing the
proxies set in LAN setting of my browser?...i need your help on this.


r/gli
--
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]
 
  --
  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]




Re: HTTP Status 404

2002-10-01 Thread micael

Try it with existing applications, like ROOT and samples.  You need to 
realize that applications have to be properly set up with web.xml and 
server.xml configurations, etc.  I would guess you have not done that.

At 02:59 PM 10/1/2002 +0800, you wrote:
yes mic, i've tried that also like
http://localhost:8080/java_samples/hello.jsp and still it won't work...


r/gli




micael wrote:
 
  Well, you were right the first time.  Do you have hello.jsp in an
  application?  If so, then you have to type in:
 
  http://localhost:8080/myapp/hello.jsp
 
  if the hello.jsp is in the folder myapp.
 
  At 02:48 PM 10/1/2002 +0800, you wrote:
  mic, i entered http://localhost:8080/hello.jsp in the browser's address
  bar. and i tried typing http://localhost:8080\hello.jsp and still it
  won't work.
  
  
  
  
  
  micael wrote:
   
Your original post said you had [...]8080\etc. in the browser, if 
 so, the \
should be /.  Or, was that just a typo?
   
At 02:17 PM 10/1/2002 +0800, you wrote:
thanks for the reply

i put the jsp page in this location:

C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp

i've tried requesting http://localhost:8080/ and i got it 
 correctly but
when trying to request that hello.jsp page the error awhile ago is
displayed.





micael wrote:
 
  Where is the jsp page in your file structure?
 
  At 01:30 PM 10/1/2002 +0800, you wrote:
  Hello!
  
  I have this file hello.jsp located in the ..\webapps\hello.jsp.
   When I
  tried running in my browser like 
 http://localhost:8080/hello.jsp, the
  following are displayed in the screen.
  
  
  Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
  
  --- 
 
   
 -
  
  type Status report
  
  message /hello.jsp
  
  description The requested resource (/hello.jsp) is not available.
  
  
  
  why is this so? is there some configuration other than 
 bypassing the
  proxies set in LAN setting of my browser?...i need your help 
 on this.
  
  
  r/gli
  --
  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]
   
--
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]
--
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]




[OT] Re: HTTP Status 404

2002-10-01 Thread micael

Where are you Glinn?  It is a 10 hour time difference according to the emails.

At 02:59 PM 10/1/2002 +0800, you wrote:
yes mic, i've tried that also like
http://localhost:8080/java_samples/hello.jsp and still it won't work...


r/gli




micael wrote:
 
  Well, you were right the first time.  Do you have hello.jsp in an
  application?  If so, then you have to type in:
 
  http://localhost:8080/myapp/hello.jsp
 
  if the hello.jsp is in the folder myapp.
 
  At 02:48 PM 10/1/2002 +0800, you wrote:
  mic, i entered http://localhost:8080/hello.jsp in the browser's address
  bar. and i tried typing http://localhost:8080\hello.jsp and still it
  won't work.
  
  
  
  
  
  micael wrote:
   
Your original post said you had [...]8080\etc. in the browser, if 
 so, the \
should be /.  Or, was that just a typo?
   
At 02:17 PM 10/1/2002 +0800, you wrote:
thanks for the reply

i put the jsp page in this location:

C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp

i've tried requesting http://localhost:8080/ and i got it 
 correctly but
when trying to request that hello.jsp page the error awhile ago is
displayed.





micael wrote:
 
  Where is the jsp page in your file structure?
 
  At 01:30 PM 10/1/2002 +0800, you wrote:
  Hello!
  
  I have this file hello.jsp located in the ..\webapps\hello.jsp.
   When I
  tried running in my browser like 
 http://localhost:8080/hello.jsp, the
  following are displayed in the screen.
  
  
  Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
  
  --- 
 
   
 -
  
  type Status report
  
  message /hello.jsp
  
  description The requested resource (/hello.jsp) is not available.
  
  
  
  why is this so? is there some configuration other than 
 bypassing the
  proxies set in LAN setting of my browser?...i need your help 
 on this.
  
  
  r/gli
  --
  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]
   
--
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]
--
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]




Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

i tried droping the file under ..\examples and it works but putting it
in the root like http://localhost:8080/hello.jsp won't work...

i'm a new user of tomcat. is web.xml matters a lot?...





micael wrote:
 
 The initial file that worked for you was in the ROOT application.  Do you
 have access to books on Tomcat?  What is your situation?  If you put the
 file hello.jsp into the webapps directory, you are just beginning, I take
 it?  You need to get a book on Tomcat, read some on Servlets, maybe,
 etc.  Give me a better idea of where you are so I can direct you to a
 correct resource.  If you want to see your file, drop it into ROOT, then
 try http://localhost:8080/hello.jsp.  Or, drop it into examples, and then
 try http://localhost:8080/examples/hello.jsp.  Take a look at the url you
 get when you go to examples from index.html after you get
 http://localhost:8080/index.html.
 
 I see the problem you are having.  Just don't know yet what your best thing
 to do to start learning this is.
 
 At 02:48 PM 10/1/2002 +0800, you wrote:
 mic, i entered http://localhost:8080/hello.jsp in the browser's address
 bar. and i tried typing http://localhost:8080\hello.jsp and still it
 won't work.
 
 
 
 
 
 micael wrote:
  
   Your original post said you had [...]8080\etc. in the browser, if so, the \
   should be /.  Or, was that just a typo?
  
   At 02:17 PM 10/1/2002 +0800, you wrote:
   thanks for the reply
   
   i put the jsp page in this location:
   
   C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
   
   i've tried requesting http://localhost:8080/ and i got it correctly but
   when trying to request that hello.jsp page the error awhile ago is
   displayed.
   
   
   
   
   
   micael wrote:

 Where is the jsp page in your file structure?

 At 01:30 PM 10/1/2002 +0800, you wrote:
 Hello!
 
 I have this file hello.jsp located in the ..\webapps\hello.jsp.
  When I
 tried running in my browser like http://localhost:8080/hello.jsp, the
 following are displayed in the screen.
 
 
 Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
 
 ---
  
-
 
 type Status report
 
 message /hello.jsp
 
 description The requested resource (/hello.jsp) is not available.
 
 
 
 why is this so? is there some configuration other than bypassing the
 proxies set in LAN setting of my browser?...i need your help on this.
 
 
 r/gli
 --
 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]
  
   --
   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]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Jasper Exception

2002-10-01 Thread Alvaro Armenteros

I've installed Tomcat 4.1.12 with jsdk 1.4.0_02 on windows 2000. When I 
try to connect to the index.jsp default page I get the next error:

org.apache.jasper.JasperException: No se puede compilar la clase para 
JSP

An error occurred at line: -1 in the jsp file: null

(Sorry, spanish version, an informal traduction could be Class can't be 
compiled)


The server boots without problems and I don't know why the JSP pages 
can't be compiled. Somebody have the same problem?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

ohh i see...actually mic, i've tried scanning web.xml seen those codes
in it. i just realize that web.xml must go together with the .jsp file i
am running...

by the way, i'm from the philippines and you are from?


r/glinn


micael wrote:
 
 Try it with existing applications, like ROOT and samples.  You need to
 realize that applications have to be properly set up with web.xml and
 server.xml configurations, etc.  I would guess you have not done that.
 
 At 02:59 PM 10/1/2002 +0800, you wrote:
 yes mic, i've tried that also like
 http://localhost:8080/java_samples/hello.jsp and still it won't work...
 
 
 r/gli
 
 
 
 
 micael wrote:
  
   Well, you were right the first time.  Do you have hello.jsp in an
   application?  If so, then you have to type in:
  
   http://localhost:8080/myapp/hello.jsp
  
   if the hello.jsp is in the folder myapp.
  
   At 02:48 PM 10/1/2002 +0800, you wrote:
   mic, i entered http://localhost:8080/hello.jsp in the browser's address
   bar. and i tried typing http://localhost:8080\hello.jsp and still it
   won't work.
   
   
   
   
   
   micael wrote:

 Your original post said you had [...]8080\etc. in the browser, if
  so, the \
 should be /.  Or, was that just a typo?

 At 02:17 PM 10/1/2002 +0800, you wrote:
 thanks for the reply
 
 i put the jsp page in this location:
 
 C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
 
 i've tried requesting http://localhost:8080/ and i got it
  correctly but
 when trying to request that hello.jsp page the error awhile ago is
 displayed.
 
 
 
 
 
 micael wrote:
  
   Where is the jsp page in your file structure?
  
   At 01:30 PM 10/1/2002 +0800, you wrote:
   Hello!
   
   I have this file hello.jsp located in the ..\webapps\hello.jsp.
When I
   tried running in my browser like
  http://localhost:8080/hello.jsp, the
   following are displayed in the screen.
   
   
   Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
   
   ---
  

  -
   
   type Status report
   
   message /hello.jsp
   
   description The requested resource (/hello.jsp) is not available.
   
   
   
   why is this so? is there some configuration other than
  bypassing the
   proxies set in LAN setting of my browser?...i need your help
  on this.
   
   
   r/gli
   --
   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]

 --
 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]
 --
 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]


Re: HTTP Status 404

2002-10-01 Thread micael

This is not just a Tomcat issue, Glinn, but indemic or essential to 
servlets and jsp.  I suggest you grab a copy of Jason Hunter's book on 
servlets, if you can.  I think it is available on line as well as in paper 
back.  You also can get most of the information from various 
websites.  Here is one good course:

http://math.hws.edu/javanotes/

The dropping the file you need to create a context like the one that exists 
for examples in the server.xml for your application.  Then you need to have 
a web.xml file that is configured according to the requirements for 
web.xml.  There is not just a little bit to learning how to use containers 
like Tomcat successfully.  You are a student?  Who you are and how fast you 
have to go is relevant to helping you.

At 03:11 PM 10/1/2002 +0800, you wrote:
i tried droping the file under ..\examples and it works but putting it
in the root like http://localhost:8080/hello.jsp won't work...

i'm a new user of tomcat. is web.xml matters a lot?...





micael wrote:
 
  The initial file that worked for you was in the ROOT application.  Do you
  have access to books on Tomcat?  What is your situation?  If you put the
  file hello.jsp into the webapps directory, you are just beginning, I take
  it?  You need to get a book on Tomcat, read some on Servlets, maybe,
  etc.  Give me a better idea of where you are so I can direct you to a
  correct resource.  If you want to see your file, drop it into ROOT, then
  try http://localhost:8080/hello.jsp.  Or, drop it into examples, and then
  try http://localhost:8080/examples/hello.jsp.  Take a look at the url you
  get when you go to examples from index.html after you get
  http://localhost:8080/index.html.
 
  I see the problem you are having.  Just don't know yet what your best thing
  to do to start learning this is.
 
  At 02:48 PM 10/1/2002 +0800, you wrote:
  mic, i entered http://localhost:8080/hello.jsp in the browser's address
  bar. and i tried typing http://localhost:8080\hello.jsp and still it
  won't work.
  
  
  
  
  
  micael wrote:
   
Your original post said you had [...]8080\etc. in the browser, if 
 so, the \
should be /.  Or, was that just a typo?
   
At 02:17 PM 10/1/2002 +0800, you wrote:
thanks for the reply

i put the jsp page in this location:

C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp

i've tried requesting http://localhost:8080/ and i got it 
 correctly but
when trying to request that hello.jsp page the error awhile ago is
displayed.





micael wrote:
 
  Where is the jsp page in your file structure?
 
  At 01:30 PM 10/1/2002 +0800, you wrote:
  Hello!
  
  I have this file hello.jsp located in the ..\webapps\hello.jsp.
   When I
  tried running in my browser like 
 http://localhost:8080/hello.jsp, the
  following are displayed in the screen.
  
  
  Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
  
  --- 
 
   
 -
  
  type Status report
  
  message /hello.jsp
  
  description The requested resource (/hello.jsp) is not available.
  
  
  
  why is this so? is there some configuration other than 
 bypassing the
  proxies set in LAN setting of my browser?...i need your help 
 on this.
  
  
  r/gli
  --
  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]
   
--
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]
--
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]




Re: HTTP Status 404

2002-10-01 Thread micael

I am in the State of Washington in the United States.  What is your 
background?  You taking a course on Java or what?

At 03:16 PM 10/1/2002 +0800, you wrote:
ohh i see...actually mic, i've tried scanning web.xml seen those codes
in it. i just realize that web.xml must go together with the .jsp file i
am running...

by the way, i'm from the philippines and you are from?


r/glinn


micael wrote:
 
  Try it with existing applications, like ROOT and samples.  You need to
  realize that applications have to be properly set up with web.xml and
  server.xml configurations, etc.  I would guess you have not done that.
 
  At 02:59 PM 10/1/2002 +0800, you wrote:
  yes mic, i've tried that also like
  http://localhost:8080/java_samples/hello.jsp and still it won't work...
  
  
  r/gli
  
  
  
  
  micael wrote:
   
Well, you were right the first time.  Do you have hello.jsp in an
application?  If so, then you have to type in:
   
http://localhost:8080/myapp/hello.jsp
   
if the hello.jsp is in the folder myapp.
   
At 02:48 PM 10/1/2002 +0800, you wrote:
mic, i entered http://localhost:8080/hello.jsp in the browser's 
 address
bar. and i tried typing http://localhost:8080\hello.jsp and still it
won't work.





micael wrote:
 
  Your original post said you had [...]8080\etc. in the browser, if
   so, the \
  should be /.  Or, was that just a typo?
 
  At 02:17 PM 10/1/2002 +0800, you wrote:
  thanks for the reply
  
  i put the jsp page in this location:
  
  C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
  
  i've tried requesting http://localhost:8080/ and i got it
   correctly but
  when trying to request that hello.jsp page the error awhile ago is
  displayed.
  
  
  
  
  
  micael wrote:
   
Where is the jsp page in your file structure?
   
At 01:30 PM 10/1/2002 +0800, you wrote:
Hello!

I have this file hello.jsp located in the 
 ..\webapps\hello.jsp.
 When I
tried running in my browser like
   http://localhost:8080/hello.jsp, the
following are displayed in the screen.


Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp

--- 
 
   
 
   -

type Status report

message /hello.jsp

description The requested resource (/hello.jsp) is not 
 available.



why is this so? is there some configuration other than
   bypassing the
proxies set in LAN setting of my browser?...i need your help
   on this.


r/gli
--
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]
 
  --
  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]
  --
  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]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Security policy files

2002-10-01 Thread Collins, Jim

Hi,

I know that when Tomcat starts it uses the catalina.policy file. Does anyone
know if it is possible to set a security policy file for individual WebApps?

Thanks

Jim.


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Jasper Exception

2002-10-01 Thread micael

The error page should tell you why it cannot be compiled.  Read the bottom 
part.

At 09:15 AM 10/1/2002 +0200, you wrote:
I've installed Tomcat 4.1.12 with jsdk 1.4.0_02 on windows 2000. When I 
try to connect to the index.jsp default page I get the next error:

org.apache.jasper.JasperException: No se puede compilar la clase para JSP

An error occurred at line: -1 in the jsp file: null

(Sorry, spanish version, an informal traduction could be Class can't be 
compiled)


The server boots without problems and I don't know why the JSP pages can't 
be compiled. Somebody have the same problem?


--
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]




examples source -- numguess.txt vs snoop.txt

2002-10-01 Thread Matthew Hannigan




I'm running tomcat 4.0.4, looking at the examples.

Using the source links, I've found that numguess.txt
displays as expected, but snoop.txt does not.

snoop.txt looks as though it is being parsed, but
numguess.txt is untouched.

Anyone else see this?

If so why does it happen?

One difference that I can see is that snoop.txt
starts with html, but I tried putting a comment
before to no avail.



Regards,
Matt
PS. yeah i know aout 4.0.5, upgrading RSN

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: HTTP Status 404

2002-10-01 Thread micael

The xml files are used to configure the aspects you will use in tomcat, 
like initializing servlets, mapping urls to a controller servlet, security, 
etc.  The server.xml is to configure the relations between various parts of 
the code running under tomcat, such as applications, databases, etc.  They 
are essential knowledge.  You can run some simple stuff without too much 
knowledge by sticking with ROOT, but you cannot go far without a lot more 
learning.

At 03:16 PM 10/1/2002 +0800, you wrote:
ohh i see...actually mic, i've tried scanning web.xml seen those codes
in it. i just realize that web.xml must go together with the .jsp file i
am running...

by the way, i'm from the philippines and you are from?


r/glinn


micael wrote:
 
  Try it with existing applications, like ROOT and samples.  You need to
  realize that applications have to be properly set up with web.xml and
  server.xml configurations, etc.  I would guess you have not done that.
 
  At 02:59 PM 10/1/2002 +0800, you wrote:
  yes mic, i've tried that also like
  http://localhost:8080/java_samples/hello.jsp and still it won't work...
  
  
  r/gli
  
  
  
  
  micael wrote:
   
Well, you were right the first time.  Do you have hello.jsp in an
application?  If so, then you have to type in:
   
http://localhost:8080/myapp/hello.jsp
   
if the hello.jsp is in the folder myapp.
   
At 02:48 PM 10/1/2002 +0800, you wrote:
mic, i entered http://localhost:8080/hello.jsp in the browser's 
 address
bar. and i tried typing http://localhost:8080\hello.jsp and still it
won't work.





micael wrote:
 
  Your original post said you had [...]8080\etc. in the browser, if
   so, the \
  should be /.  Or, was that just a typo?
 
  At 02:17 PM 10/1/2002 +0800, you wrote:
  thanks for the reply
  
  i put the jsp page in this location:
  
  C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
  
  i've tried requesting http://localhost:8080/ and i got it
   correctly but
  when trying to request that hello.jsp page the error awhile ago is
  displayed.
  
  
  
  
  
  micael wrote:
   
Where is the jsp page in your file structure?
   
At 01:30 PM 10/1/2002 +0800, you wrote:
Hello!

I have this file hello.jsp located in the 
 ..\webapps\hello.jsp.
 When I
tried running in my browser like
   http://localhost:8080/hello.jsp, the
following are displayed in the screen.


Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp

--- 
 
   
 
   -

type Status report

message /hello.jsp

description The requested resource (/hello.jsp) is not 
 available.



why is this so? is there some configuration other than
   bypassing the
proxies set in LAN setting of my browser?...i need your help
   on this.


r/gli
--
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]
 
  --
  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]
  --
  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]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Help with test needed.

2002-10-01 Thread Martin Jacobson

Robert L Sowders wrote:

 I've just about completed a new site and I've been wondering about a few 
 things, specifically how does the public see it.  It's an ArcIMS site and 
 I know it will appear to load a bit slow, (that's just how ArcIMS works). 
 I'm hosting the front end in one place and the data at another.  I'm 
 wondering about the network latency that is built in.
 
 If you would go to http://terra.wr.usgs.gov/pilots/wa-id/viewer.htm, then zoom in 
about three 
 times and click on the orthophoto check box that comes up on the right 
 hand side, then hit the refresh button, this final refresh will give you 
 an idea of the network latency.
 
 I can't see it because I'm on the DOI backbone.
 
 Any help is appreciated.


I just tried it - I'm connected @ 10Mb/s to a fast backbone in Italy - 
and although it takes ~ 10 sec to display the page, the delay BEFORE it 
starts loading the image is only of the order of a second or two, so 
it's not too bad. I'm glad I'm not trying this at home via 56K dialup, 
'though!

HTH,

Martin



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

Great!... I have a background in ASP, scripting using VBScript and
JavascriptI'm personally studying using java or using .jsp web
application...

this is the first time i've use tomcat.


r/glinn




micael wrote:
 
 I am in the State of Washington in the United States.  What is your
 background?  You taking a course on Java or what?
 
 At 03:16 PM 10/1/2002 +0800, you wrote:
 ohh i see...actually mic, i've tried scanning web.xml seen those codes
 in it. i just realize that web.xml must go together with the .jsp file i
 am running...
 
 by the way, i'm from the philippines and you are from?
 
 
 r/glinn
 
 
 micael wrote:
  
   Try it with existing applications, like ROOT and samples.  You need to
   realize that applications have to be properly set up with web.xml and
   server.xml configurations, etc.  I would guess you have not done that.
  
   At 02:59 PM 10/1/2002 +0800, you wrote:
   yes mic, i've tried that also like
   http://localhost:8080/java_samples/hello.jsp and still it won't work...
   
   
   r/gli
   
   
   
   
   micael wrote:

 Well, you were right the first time.  Do you have hello.jsp in an
 application?  If so, then you have to type in:

 http://localhost:8080/myapp/hello.jsp

 if the hello.jsp is in the folder myapp.

 At 02:48 PM 10/1/2002 +0800, you wrote:
 mic, i entered http://localhost:8080/hello.jsp in the browser's
  address
 bar. and i tried typing http://localhost:8080\hello.jsp and still it
 won't work.
 
 
 
 
 
 micael wrote:
  
   Your original post said you had [...]8080\etc. in the browser, if
so, the \
   should be /.  Or, was that just a typo?
  
   At 02:17 PM 10/1/2002 +0800, you wrote:
   thanks for the reply
   
   i put the jsp page in this location:
   
   C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
   
   i've tried requesting http://localhost:8080/ and i got it
correctly but
   when trying to request that hello.jsp page the error awhile ago is
   displayed.
   
   
   
   
   
   micael wrote:

 Where is the jsp page in your file structure?

 At 01:30 PM 10/1/2002 +0800, you wrote:
 Hello!
 
 I have this file hello.jsp located in the
  ..\webapps\hello.jsp.
  When I
 tried running in my browser like
http://localhost:8080/hello.jsp, the
 following are displayed in the screen.
 
 
 Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
 
 ---
  

  
-
 
 type Status report
 
 message /hello.jsp
 
 description The requested resource (/hello.jsp) is not
  available.
 
 
 
 why is this so? is there some configuration other than
bypassing the
 proxies set in LAN setting of my browser?...i need your help
on this.
 
 
 r/gli
 --
 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]
  
   --
   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]
   --
   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]
 
 --
 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]


Re: examples source -- numguess.txt vs snoop.txt

2002-10-01 Thread Matthew Hannigan


Aargh, this is probably

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3029

Sorry for wasting peoples time.
Bloody IE.




On Tue, Oct 01, 2002 at 05:24:00PM +1000, Matthew Hannigan wrote:
 
 
 
 I'm running tomcat 4.0.4, looking at the examples.
 
 Using the source links, I've found that numguess.txt
 displays as expected, but snoop.txt does not.
 
 snoop.txt looks as though it is being parsed, but
 numguess.txt is untouched.
 
 Anyone else see this?
 
 If so why does it happen?
 
 One difference that I can see is that snoop.txt
 starts with html, but I tried putting a comment
 before to no avail.
 
 
 
 Regards,
 Matt
 PS. yeah i know aout 4.0.5, upgrading RSN
 
 --
 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]




Re: examples source -- numguess.txt vs snoop.txt

2002-10-01 Thread Matthew Hannigan


Me again, talking to myself :-o

It  would be nice for the source to the servlet examples
to display like the source to the jsp examples.

All colorized n' stuff.

Is this possible?

Matt



On Tue, Oct 01, 2002 at 05:41:56PM +1000, Matthew Hannigan wrote:
 
 Aargh, this is probably
 
   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3029
 
 Sorry for wasting peoples time.
 Bloody IE.
 
 
 
 
 On Tue, Oct 01, 2002 at 05:24:00PM +1000, Matthew Hannigan wrote:
  
  
  
  I'm running tomcat 4.0.4, looking at the examples.
  
  Using the source links, I've found that numguess.txt
  displays as expected, but snoop.txt does not.
  
  snoop.txt looks as though it is being parsed, but
  numguess.txt is untouched.
  
  Anyone else see this?
  
  If so why does it happen?
  
  One difference that I can see is that snoop.txt
  starts with html, but I tried putting a comment
  before to no avail.
  
  
  
  Regards,
  Matt
  PS. yeah i know aout 4.0.5, upgrading RSN
  
  --
  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]




Re: HTTP Status 404

2002-10-01 Thread micael

Odd, Glinn, I seem to be getting that your isp is located in California?

At 03:35 PM 10/1/2002 +0800, you wrote:
Great!... I have a background in ASP, scripting using VBScript and
JavascriptI'm personally studying using java or using .jsp web
application...

this is the first time i've use tomcat.


r/glinn




micael wrote:
 
  I am in the State of Washington in the United States.  What is your
  background?  You taking a course on Java or what?
 
  At 03:16 PM 10/1/2002 +0800, you wrote:
  ohh i see...actually mic, i've tried scanning web.xml seen those codes
  in it. i just realize that web.xml must go together with the .jsp file i
  am running...
  
  by the way, i'm from the philippines and you are from?
  
  
  r/glinn
  
  
  micael wrote:
   
Try it with existing applications, like ROOT and samples.  You need to
realize that applications have to be properly set up with web.xml and
server.xml configurations, etc.  I would guess you have not done that.
   
At 02:59 PM 10/1/2002 +0800, you wrote:
yes mic, i've tried that also like
http://localhost:8080/java_samples/hello.jsp and still it won't 
 work...


r/gli




micael wrote:
 
  Well, you were right the first time.  Do you have hello.jsp in an
  application?  If so, then you have to type in:
 
  http://localhost:8080/myapp/hello.jsp
 
  if the hello.jsp is in the folder myapp.
 
  At 02:48 PM 10/1/2002 +0800, you wrote:
  mic, i entered http://localhost:8080/hello.jsp in the browser's
   address
  bar. and i tried typing http://localhost:8080\hello.jsp and 
 still it
  won't work.
  
  
  
  
  
  micael wrote:
   
Your original post said you had [...]8080\etc. in the 
 browser, if
 so, the \
should be /.  Or, was that just a typo?
   
At 02:17 PM 10/1/2002 +0800, you wrote:
thanks for the reply

i put the jsp page in this location:

C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp

i've tried requesting http://localhost:8080/ and i got it
 correctly but
when trying to request that hello.jsp page the error 
 awhile ago is
displayed.





micael wrote:
 
  Where is the jsp page in your file structure?
 
  At 01:30 PM 10/1/2002 +0800, you wrote:
  Hello!
  
  I have this file hello.jsp located in the
   ..\webapps\hello.jsp.
   When I
  tried running in my browser like
 http://localhost:8080/hello.jsp, the
  following are displayed in the screen.
  
  
  Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
  
  --- 
 
   
 
   
 -
  
  type Status report
  
  message /hello.jsp
  
  description The requested resource (/hello.jsp) is not
   available.
  
  
  
  why is this so? is there some configuration other than
 bypassing the
  proxies set in LAN setting of my browser?...i need 
 your help
 on this.
  
  
  r/gli
  --
  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]
   
--
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]
--
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]
 
  --
  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: 

Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

what do you mean mic?..




micael wrote:
 
 Odd, Glinn, I seem to be getting that your isp is located in California?
 
 At 03:35 PM 10/1/2002 +0800, you wrote:
 Great!... I have a background in ASP, scripting using VBScript and
 JavascriptI'm personally studying using java or using .jsp web
 application...
 
 this is the first time i've use tomcat.
 
 
 r/glinn
 
 
 
 
 micael wrote:
  
   I am in the State of Washington in the United States.  What is your
   background?  You taking a course on Java or what?
  
   At 03:16 PM 10/1/2002 +0800, you wrote:
   ohh i see...actually mic, i've tried scanning web.xml seen those codes
   in it. i just realize that web.xml must go together with the .jsp file i
   am running...
   
   by the way, i'm from the philippines and you are from?
   
   
   r/glinn
   
   
   micael wrote:

 Try it with existing applications, like ROOT and samples.  You need to
 realize that applications have to be properly set up with web.xml and
 server.xml configurations, etc.  I would guess you have not done that.

 At 02:59 PM 10/1/2002 +0800, you wrote:
 yes mic, i've tried that also like
 http://localhost:8080/java_samples/hello.jsp and still it won't
  work...
 
 
 r/gli
 
 
 
 
 micael wrote:
  
   Well, you were right the first time.  Do you have hello.jsp in an
   application?  If so, then you have to type in:
  
   http://localhost:8080/myapp/hello.jsp
  
   if the hello.jsp is in the folder myapp.
  
   At 02:48 PM 10/1/2002 +0800, you wrote:
   mic, i entered http://localhost:8080/hello.jsp in the browser's
address
   bar. and i tried typing http://localhost:8080\hello.jsp and
  still it
   won't work.
   
   
   
   
   
   micael wrote:

 Your original post said you had [...]8080\etc. in the
  browser, if
  so, the \
 should be /.  Or, was that just a typo?

 At 02:17 PM 10/1/2002 +0800, you wrote:
 thanks for the reply
 
 i put the jsp page in this location:
 
 C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
 
 i've tried requesting http://localhost:8080/ and i got it
  correctly but
 when trying to request that hello.jsp page the error
  awhile ago is
 displayed.
 
 
 
 
 
 micael wrote:
  
   Where is the jsp page in your file structure?
  
   At 01:30 PM 10/1/2002 +0800, you wrote:
   Hello!
   
   I have this file hello.jsp located in the
..\webapps\hello.jsp.
When I
   tried running in my browser like
  http://localhost:8080/hello.jsp, the
   following are displayed in the screen.
   
   
   Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
   
   ---
  

  

  -
   
   type Status report
   
   message /hello.jsp
   
   description The requested resource (/hello.jsp) is not
available.
   
   
   
   why is this so? is there some configuration other than
  bypassing the
   proxies set in LAN setting of my browser?...i need
  your help
  on this.
   
   
   r/gli
   --
   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]

 --
 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]
 --
 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]
  
   --
   To unsubscribe,
  e-mail:   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL 

Exception management with Tomcat (URGENT)

2002-10-01 Thread Heligon Sandra


I defined a class MyServletContextListener where I use exceptions
for example:

 public void contextInitialized(ServletContextEvent arg0) 
 {
s_context = arg0.getServletContext();
try
 {
...
}
catch (ExInvalidUserName ex)
{
??
}
catch (ExInvalidPassword ex)
{
??
}
catch (ExInvalidSessionId ex)
{
??
}
}

In the web.xml I defined the following elements:

error-page
 
exception-typeorg.omg.CORBA.UserException.ExInvalidUserName
/exception-type
location/errorPage.jsp/location
/error-page
error-page
 
exception-typeorg.omg.CORBA.UserException.ExInvalidPassword
/exception-type
location/errorPage.jsp/location
/error-page
error-page
 
exception-typeorg.omg.CORBA.UserException.ExInvalidSessionId
/exception-type
location/errorPage.jsp/location
/error-page

The error message displayed in the errorPage.jsp file depends on the
exception.
How does it works ? Where do I specify the error message associated
to each specific exception ?
in the following lines ?

catch (ExInvalidUserName ex)
{
// Specify the error message to display ??? 
}

Thanks a lot for you help,
Sandra



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Fwd: RE: reloading ApplicationResources

2002-10-01 Thread micael

I should have said a properties object is a hashtable, but I assume you 
understood that


Date: Tue, 01 Oct 2002 00:55:03 -0700
To: Struts Users Mailing List [EMAIL PROTECTED]
From: micael [EMAIL PROTECTED]
Subject: RE: reloading ApplicationResources

A properties file is a hashtable.  But, I should have said like a 
properties file anyway.

At 03:44 PM 10/1/2002 +0800, you wrote:
Eh?
You sure about that?
I always thought it was loaded in and stored in a hashtable thinghy
somewhere!
Does that mean it does a file access every time you access a property -
surely that would be very inefficient?

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 15:35
To: Struts Users Mailing List
Subject: Re: reloading ApplicationResources


You don't need to reload it.  It is a properties file.  If you change it,
it will be reflected immediately.

At 09:26 AM 10/1/2002 +0200, you wrote:
 Hi,
 
 Is there a mean to reload the ApplicationResouces.properties file ?
 
 Thanks
 
 
 --
 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]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Jasper Exception

2002-10-01 Thread Alvaro Armenteros

The error page doesn't give me any information except the list of nested 
exceptions. It doesn't display the root cause
It seems like it couldn't read the jsp file ( error at line : -1  ¿¿??)
This file is the default index file which comes with the tomcat 
distribution. I've been using tomcat 4.0 with jdk1.3.1 and I've never 
had a problem like this. I've tried with tomcat 4.1.10 but I get the 
same error. Ever I've tried  jdk 1.3.1 but nothing changes ...

Maybe the default configuration of tomcat is not correct for standalone 
use?

micael escribió:
 The error page should tell you why it cannot be compiled.  Read the 
 bottom part.
 
 At 09:15 AM 10/1/2002 +0200, you wrote:
 
 I've installed Tomcat 4.1.12 with jsdk 1.4.0_02 on windows 2000. When 
 I try to connect to the index.jsp default page I get the next error:

 org.apache.jasper.JasperException: No se puede compilar la clase para JSP

 An error occurred at line: -1 in the jsp file: null

 (Sorry, spanish version, an informal traduction could be Class can't 
 be compiled)


 The server boots without problems and I don't know why the JSP pages 
 can't be compiled. Somebody have the same problem?


 -- 
 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]




Re: HTTP Status 404

2002-10-01 Thread Glinn Cortez

yes, mic. our isp is located in california. but i'm here right now in
the philippines.

r/glinn



micael wrote:
 
 Odd, Glinn, I seem to be getting that your isp is located in California?
 
 At 03:35 PM 10/1/2002 +0800, you wrote:
 Great!... I have a background in ASP, scripting using VBScript and
 JavascriptI'm personally studying using java or using .jsp web
 application...
 
 this is the first time i've use tomcat.
 
 
 r/glinn
 
 
 
 
 micael wrote:
  
   I am in the State of Washington in the United States.  What is your
   background?  You taking a course on Java or what?
  
   At 03:16 PM 10/1/2002 +0800, you wrote:
   ohh i see...actually mic, i've tried scanning web.xml seen those codes
   in it. i just realize that web.xml must go together with the .jsp file i
   am running...
   
   by the way, i'm from the philippines and you are from?
   
   
   r/glinn
   
   
   micael wrote:

 Try it with existing applications, like ROOT and samples.  You need to
 realize that applications have to be properly set up with web.xml and
 server.xml configurations, etc.  I would guess you have not done that.

 At 02:59 PM 10/1/2002 +0800, you wrote:
 yes mic, i've tried that also like
 http://localhost:8080/java_samples/hello.jsp and still it won't
  work...
 
 
 r/gli
 
 
 
 
 micael wrote:
  
   Well, you were right the first time.  Do you have hello.jsp in an
   application?  If so, then you have to type in:
  
   http://localhost:8080/myapp/hello.jsp
  
   if the hello.jsp is in the folder myapp.
  
   At 02:48 PM 10/1/2002 +0800, you wrote:
   mic, i entered http://localhost:8080/hello.jsp in the browser's
address
   bar. and i tried typing http://localhost:8080\hello.jsp and
  still it
   won't work.
   
   
   
   
   
   micael wrote:

 Your original post said you had [...]8080\etc. in the
  browser, if
  so, the \
 should be /.  Or, was that just a typo?

 At 02:17 PM 10/1/2002 +0800, you wrote:
 thanks for the reply
 
 i put the jsp page in this location:
 
 C:\Program files\Apache Tomcat 4.0\webapps\hello.jsp
 
 i've tried requesting http://localhost:8080/ and i got it
  correctly but
 when trying to request that hello.jsp page the error
  awhile ago is
 displayed.
 
 
 
 
 
 micael wrote:
  
   Where is the jsp page in your file structure?
  
   At 01:30 PM 10/1/2002 +0800, you wrote:
   Hello!
   
   I have this file hello.jsp located in the
..\webapps\hello.jsp.
When I
   tried running in my browser like
  http://localhost:8080/hello.jsp, the
   following are displayed in the screen.
   
   
   Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp
   
   ---
  

  

  -
   
   type Status report
   
   message /hello.jsp
   
   description The requested resource (/hello.jsp) is not
available.
   
   
   
   why is this so? is there some configuration other than
  bypassing the
   proxies set in LAN setting of my browser?...i need
  your help
  on this.
   
   
   r/gli
   --
   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]

 --
 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]
 --
 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]
  
   --
   To unsubscribe,
  e-mail:   

MySQL empty ResultSet on Solaris

2002-10-01 Thread Diego Castillo

Hi,

I have an application that accesses data from MySQL via a datasource
configured in config.xml. It works fine in W2K with Tomcat 4.0.3 and the
mm MySQL driver 2.0.14.

Now I need to install it on a Solaris box. I installed the latest Tomcat
4.1.12. The application can write into the database; it can also read
(no exceptions), but the resultset is empty: the metadata is available,
but I get no rows. I can perform the same searches successfully using
the same objects from a standalone test program, and I DO get my rows.

Has anybody ever encountered such an issue? Is there any known
incompatibility between Tomcat 4.1.12 and the mm MySQL driver 2.0.14 on
Solaris?

Regards,


Diego


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: excessive cpu use with 4.0.4

2002-10-01 Thread Craig R. McClanahan



On Mon, 30 Sep 2002, Seb B wrote:

[snip]
 Also, this has been asked already, but I didn't see many answers:
 is there any sort of real-world benchmark of what load I can
 expect in such a set-up ? I understand it depends a lot on what
 the servlets do, so I'm wondering how big the biggest sites using
 tomcat are; John Turner mentioned 500k for his, is anyone doing
 anything bigger ?


Sorry, but there is no such thing as a real-world benchmark that is an
appropriate predictor of what load any arbitrary web application can
support.  The only useful tests are to run ***your*** appolication under
varying loads, and keeping careful track of where the bottlenecks are.

For example ... if database access happens to be the critical resource for
your application, it doesn't matter much what you try to tweak on your
servlet configuration parameter, or the Tomcat installation that is
running them.  The most
important issue is to identify where the bottlenecks are for *your*
application, and optimizing the hot spots identified by that analysis.

 Thanks a lot,

 Seb

Craig


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: excessive cpu use with 4.0.4

2002-10-01 Thread Raj Saini

Hi,

I am using the Tomcat 4.0.3 in a very big site. I have few hundereds of 
JSP, around 15 servlets, integrated with JBoss with my own framework 
(which consists around 500 class files. You can think of it a complete 
J2EE implementation of a commercial business application.

Off late, I have been facing the huge memory usage by the tomcat and due 
to this very reason, I need to restart the tomcat every day. I have 
allocated 384 MB of maximum RAM to the tomcat.

Since I did not profile my application, I cant say yet, which one is 
real culprit, tomcat and my application.

I will report back my findings after profiling my application.

Raj Saini
Seb B wrote:
 Hi,
 
 I'm running a stand-alone Tomcat 4.0.4 (not using jsp, so no need
 to upgrade to 4.0.5) on Linux RedHat 7.3, with IBM's 1.3.1 jvm.
 There is very little static content to serve and the server
 doesn't have to listen on port 80, so I haven't tried learning
 how to configure it behind Apache.
 
 Everything works great in the lab, so I'm now experimenting in
 our production system (whose servers are running other servlet
 containers so far), behind a load balancer.
 
 On the last run, 4 of the java threads started taking all of the
 cpu. I stopped sending traffic to tomcat, and those 4 went on
 taking all the cpu they could (for several days). So it looked
 like they were stuck in some infinite loop somewhere. Of course,
 I suspect this would come from our code. I tried enabling all
 sorts of logging in our code, but couldn't get anything from the
 process.
 
 As a last resort, I sent the process a SEGV signal, which leads
 the jvm to print stack traces. All 4 threads (I knew their PID
 from ps/top) had the following stack trace:
 HttpProcessor[9090][44] (TID:0x100502B8,
 sys_thread_t:0x46DCDD98, state:R, native ID:0x10442) prio=5
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso
 r.java:1125)
 at java.lang.Thread.run(Thread.java:512)
  PID: 8013
 None of the other HttpProcessor threads were on that same line
 (1125), all those I looked at were (as they should be I guess):
 HttpProcessor[9090][43] (TID:0x10050300,
 sys_thread_t:0x46DCD918, state:CW, native ID:0x10041) prio=5
 at java.lang.Object.wait(Native Method)
 at java.lang.Object.wait(Object.java(Compiled Code))
 at
 org.apache.catalina.connector.http.HttpProcessor.await(HttpProces
 sor.java(Compiled Code))
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso
 r.java:1119)
 at java.lang.Thread.run(Thread.java:512)
  PID: 8012
 So *if* the stack traces from the jvm are worthwhile, this would
 point to a tomcat problem.
 
 I'm posting to this list and not the developer list, as I'm
 wondering whether anyone has experienced such a problem before.
 This has happened in only one of my test runs, I don't know how
 reproduceable it will be.
 
 Also, this has been asked already, but I didn't see many answers:
 is there any sort of real-world benchmark of what load I can
 expect in such a set-up ? I understand it depends a lot on what
 the servlets do, so I'm wondering how big the biggest sites using
 tomcat are; John Turner mentioned 500k for his, is anyone doing
 anything bigger ?
 
 Thanks a lot,
 
 Seb
 
 
 
 --
 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]




Exception management with Tomcat (URGENT)

2002-10-01 Thread Heligon Sandra


   I defined a class MyServletContextListener where I use exceptions
   for example:
 
public void contextInitialized(ServletContextEvent arg0) 
{
   s_context = arg0.getServletContext();
   try
{
   ...
   }
   catch (ExInvalidUserName ex)
   {
   ??
   }
   catch (ExInvalidPassword ex)
   {
   ??
   }
   catch (ExInvalidSessionId ex)
   {
   ??
   }
   }
 
   In the web.xml I defined the following elements:
 
   error-page
  
 exception-typeorg.omg.CORBA.UserException.ExInvalidUserName
 /exception-type
   location/errorPage.jsp/location
   /error-page
   error-page
  
 exception-typeorg.omg.CORBA.UserException.ExInvalidPassword
 /exception-type
   location/errorPage.jsp/location
   /error-page
   error-page
  
 exception-typeorg.omg.CORBA.UserException.ExInvalidSessionId
 /exception-type
   location/errorPage.jsp/location
   /error-page
 
   The error message displayed in the errorPage.jsp file depends on the
 exception.
   How does it works ? Where do I specify the error message associated
 to each specific exception ?
   in the following lines ?
 
   catch (ExInvalidUserName ex)
   {
   // Specify the error message to display ??? 
   }
 
   Has someone an exxample of a JSP page that allows to display
 exception error ?
 
   Thanks a lot for you help,
   Sandra
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




body-less Bodytags with 4.1.12

2002-10-01 Thread Bob Schulze

Hi,
when I am using my bodytags in tc4.1.12 like that:

my:tag zzz /my:tag

my:tag/my:tag

.. the latter displays  zzz  too!

I overcome this by clear-ing the bodyContent in the tags setPageContext() 
method, but I guess its not intended?!

Somebody an idea?

Bob


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: mod_jk error under load (errno codes)

2002-10-01 Thread Anthony Milbourne

Hi

I just searched through google.  I didn't find any lists of error codes -
which is something that I would find quite useful as well.  All I found was
someone elses post to another forum.

Question for developers  people in the know:

I realise that I could read the source to find this out but I would rather
not have to (I use Tomcat at work and my boss would not appreciate me
spending the time to do this)...
Is there any way of obtaining a list of what these errno's mean?
It might be a handy appendix to future documentation - it would certainly
give competent sys-admins/users more of a clue where to look for the
problem.

Thanks,

Anthony.

 -Original Message-
 From: Marc [SMTP:[EMAIL PROTECTED]]
 Sent: 30 September 2002 14:23
 To:   Tomcat Users List
 Subject:  Re: mod_jk error under load
 
 Hi, where can I find a description for each 'errno'?
 I receive errno = 110 when I try to access tomcat connecting to a *.jsp
 page
 through apache.
 
 Thank you!!!
 
 Marc
 
 Anthony Milbourne wrote:
 
  Hi
 
  146 is a socket connection error.
  Try checking your workers.properties file (or the JBoss file that
 generates
  it ?) and making sure that the only connectors mentioned in workers.list
  also have connectors defined in server.xml.  Specifically - check there
  isn't an ajp12 in workers.properties and not in server.xml.
 
  Hope that helps.
 
  Anthony.
 
   -Original Message-
   From: David Ward [SMTP:[EMAIL PROTECTED]]
   Sent: 27 September 2002 17:57
   To:   [EMAIL PROTECTED]
   Subject:  mod_jk error under load
  
   In running an automated load test against our app, we get the
 following
   errors in or jk.log file:
  
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
  
   Anyone know what these errors are? I can't find anything conclusive
   about them searching various lists/forums.
  
   We are running Apache 1.3.12 on a Solaris 7 Ultra 10 using
 mod_jk/ajp12
   to talk to JBoss-2.4.7_Tomcat-3.2.3 on a Solaris 7 E250, JDK 1.3.1_02.
  
   The symptoms we see are that the number of httpd processes maxes out
 on
   the web server box, though the CPU is almost completely idle. The
 weird
   thing is that the app server is mostly idle too, and doing a thread
 dump
   on the java (jboss+tomcat in same vm) process shows that there are
 lots
   of threads waiting for work to do. Once we stop the load test, things
   are still messed up until I restart apache, then we can access the app
   again. Note that I didn't have to touch the app server at all.
 Accessing
   URLs that aren't configured to go through mod_jk have no problem,
 until
   the max http children process gets reached, of course...
  
   I haven't gotten a response from the Tomcat forum at JGuru.
  
   Thanks all,
   David
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
 
  **
  This email and any files transmitted with it are confidential and
  intended solely for the use of the individual or entity to whom they
  are addressed. If you have received this email in error please notify
  the system manager.
  This footnote also confirms that this email message has been swept by
  MIMEsweeper for the presence of computer viruses.
  www.mimesweeper.com
  **
 
  --
  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]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional 

RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Chris Read

Greetings...

Have you also noticed a spike in CPU usage on your Apache server running
mod_jk, or your network throughput?

The reason I ask is we've got a similar problem here. We've got a slightly
different setup (Apache 1.3.x, mod_jk, Tomcat 4.0.3, Sun JDK 1.3.1 - all on
Solaris), but the same symptoms. 

Basically what we're seeing is sometimes mod_jk and the AJP13 connecter get
stuck in an infinite loop spewing data at each other as fast as possible
(and always the same data: Tomcat asking for a BODY_CHUNK of 8186 bytes, and
mod_jk replying with an empty packet). 

The problem will only affect one connection at a time from the pool, but
will slowly step up one connection at a time. Restarting either Tomcat or
Apache solves the problem, but I've not been able to find any info on this
either. I've been trying for a few days to replicate the problem on demand,
but no luck yet

Any of this sound familiar?

Chris

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 21:57
To: Tomcat Users List
Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


Hi,

I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The java
processes slowly take more and more CPU power.  After about a day, java is
taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If I leave it
running for more than three or four days, everything is VERY slow.  Does
anyone know why this happens and if it is normal?

I have not been able to find an answer to this anywhere!

Brandon


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


_
This message has been checked for all known viruses by the 
MessageLabs Virus Control Centre.

This message has been checked for all known viruses by the MessageLabs Virus Control 
Centre.


*

Notice:  This email is confidential and may contain copyright material of Ocado 
Limited (the Company). Opinions and views expressed in this message may not 
necessarily reflect the opinions and views of the Company.
If you are not the intended recipient, please notify us immediately and delete all 
copies of this message. Please note that it is your responsibility to scan this 
message for viruses.

Company reg. no. 3875000.  Swallowdale Lane, Hemel Hempstead HP2 7PY

*

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to avoid the Default HTTP header being sent from Servlet to Applet

2002-10-01 Thread sunita desai

Hi,
To explain my problem, I have a plaing Applet-Servlet communication.
The servlet just reads an backend socket connection contents and keeps
sending every 50 lines of information to the Applet.
And the applet after receiving every 50 lines, displays it in TextArea
without interpreting the data.And invokes the Servlet again as a URL.

Sometimes, the Servlet is sending the default header along with the data
as given below, which distorts the actual data coming from the Socket
connection.

And infact I have not explicitly set any extra headers in the Servlet,nor
the headers are being sent with every invocation of Servlet.
It happends randomly,Please give any pointers or suggestions as to how I can
avoid these HTTP headers being sent from the Servlet?

I appreciate any help in this regard,
Thanks in advance,
Sunita

The display output before and after the error looks like this:


h323-ivr-out=reroute-count:0
h323-ivr out=route:INCCARRIER|Z1_SP_NTKG|11011|0|2|Z1_HK_OP|Z1_HK_
OP1_TG2|11009|0|
Acct_in_octets:742
Acct_out_octets:806
Acct_in_packets:39


HTTP/1.1 200 OK
Content-Type: text/html
Date: Wed, 18 Sep 2002 20:07:08 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)

5c
Acct_out_packets:46
1


62
Acct_session_time:20 secs
1


7d
h323-disconnect-time=10:54:56.709 EST Sun May 5 2002
1


63
h323-disconnect-cause=10
1


69
h323-remote-address=10.15.89.150
1


5d
h323-voice-quality=0
1


78
alert-timepoint=10:54:34.559 EST Sun May 5 2002
1


70
gw-rxd-cdn=ton:1,npi:1,#:0016141756
1


76
gw-final-xlated-cdn=ton:1,npi:1,#:6141756
1


73
gw-rxd-cgn=ton:4,npi:1,pi:0,si:1,#:8381756
1


59
info-type=speech
1


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




what is RequestDumperValve

2002-10-01 Thread Kunal Shah

Hi all,

I was going through the comments in server.xml of tomcat application server
Here is snippet of the comments

!-- The request dumper valve dumps useful debugging information about
   the request headers and cookies that were received, and the
response
   headers and cookies that were sent, for all requests received by
   this instance of Tomcat.  If you care only about requests to a
   particular virtual host, or a particular application, nest this
   element inside the corresponding Host or Context entry
instead.

   For a similar mechanism that is portable to all Servlet 2.3
   containers, check out the RequestDumperFilter Filter in the
   example application (the source for this filter may be found in
   $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters).

   Request dumping is disabled by default.  Uncomment the following
   element to enable it. --
  !--
  Valve className=org.apache.catalina.valves.RequestDumperValve/
  --
  

I uncommented Valve
className=org.apache.catalina.valves.RequestDumperValve/ but I don't know
where to look for the debugging information dumped by this class


Please guide me

Thanks  regards,

Kunal


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Help with test needed.

2002-10-01 Thread Robert L Sowders

That's exactly what I was looking for Nicholas,

Thankyou very much, this helps alot.

rls





Nicholas Orr [EMAIL PROTECTED]
09/30/2002 09:29 PM
Please respond to Tomcat Users List

 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Help with test needed.

Hi,

I was just looking at this site and zooming in, about 10, it seems to be 
be
a bit slow retrieving the map.
I am over Australia w/ a 2Mbit link here at work, so if it is quite slow 
for
me it must hell for dial-up.

Not sure what else you were looking for.

Nicholas Orr

-Original Message-
From: Robert L Sowders [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 1 October 2002 11:31 AM
To: Tomcat Users List
Subject: Help with test needed.


I've just about completed a new site and I've been wondering about a few 
things, specifically how does the public see it.  It's an ArcIMS site and 
I know it will appear to load a bit slow, (that's just how ArcIMS works). 
I'm hosting the front end in one place and the data at another.  I'm 
wondering about the network latency that is built in.

If you would go to http://terra.wr.usgs.gov/pilots/wa-id/viewer.htm, then
zoom in about three 
times and click on the orthophoto check box that comes up on the right 
hand side, then hit the refresh button, this final refresh will give you 
an idea of the network latency.

I can't see it because I'm on the DOI backbone.

Any help is appreciated.

rls





jdeveloper [EMAIL PROTECTED]
09/30/2002 05:50 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: How to integrate Tomcat 4.0.4 with JBOSS 3.0.2

Sounds great but it does not solve the problem.  :)



micael wrote:

 Rather than do the coding, moving, etc., why not order a pizza, call
 your friend to go fishing, and do a new download?

 At 09:22 AM 9/30/2002 -0400, you wrote:

  Jboss comes with Jetty. I would like to disable Jetty and integrate
 Jboss v3.0.2 with tomcat v4.0.4. (I did not download Jboss with an 
 embedded tomcat version.)

 Both Jboss and Tomcat work by themselves separately.

 Do I need to remove the directory
 $JBOSS_HOME/server/default/deploy/jbossweb.sar to disable Jetty?

 To integrate, do I need to add Jboss client libaries to tomcat ?
 i.e., copy jboss-j2ee.jar, jboss-client.jar, jbosssx-client.jar, 
 jnp-client.jar, jboss-common-client.jar and log4j.jar files from 
 $JBOSS_HOME/client/ directory to $TOMCAT_HOME/common/lib/ directory ?

 Any help would be appreciated!




 --
 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]


**
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:++61 7 3833 8000
Support Centre e-mail:   [EMAIL PROTECTED]
Support Centre phone:Australia 1800500646
 International ++61 7 38338042
**


--
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]




Re: Tomcat 4.1.12: SSL warnings in catalina.out

2002-10-01 Thread Francisco Queiros Pinto

William Lee wrote:
 I've set up a standalone 4.1.12 Tomcat instance using SSL connection. 
 When I looked into the catalina.out in the log directory, I realized 
 that there are some warning lines in there that are pretty annoying. The 
 lines are like:
 
 [WARN] Http11Processor - -Exception getting SSL attributes 
 javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
 
 
 I assume it's trying to do client authentication and failed (??). 
 However, I have set the clientAuth=false in the the server.xml file. 
 Why do I sill get a warning?  It happens each time the browser hits the 
 page too, so I think this is going to be a problem (where the 
 catalina.out will get big with all the lines of messages).  Is there a 
 way to get rid of them?
 

Hi William,

Please have a look at the message Remy sent on Saturday.


From: Remy Maucherat [EMAIL PROTECTED]
Organization: ASF
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) 
Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Upgrade to Tomcat 4.1.12 - WARNING: Exception getting SSL 
attributes


Regards,

-- 
Francisco


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Problem with mod_jk.so

2002-10-01 Thread Henri Gomez

 [root@dev bin]# ./apachectl configtest
 Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
 Cannot load /usr/local/apache-new/libexec/mod_jk.so into server: 
 /usr/local/apache-new/libexec/mod_jk.so: undefined symbol: ap_ctx_get

ap_ctx_get is a standard Apache definition, are you using a standard
Apache distro (ie the Redhat one) or a custom build one ?

 From your path, it semms you're using a custom one

 Any ideas? Do I need to upgrade gcc, possibly? What do the binaries 
 rely upon?

noeapi is for apache WITHOUT SSL, eapi for apache WITH SSL.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.1.12 + JDK 1.4.1 + ISAPI.dll + IIS + WinNT 4.0 SP6

2002-10-01 Thread Jean Fotovat

hello,

do you already see at
http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/
perhaps it could help.

jean
- Original Message -
From: John Naldoza [EMAIL PROTECTED]
Newsgroups: basebeans.org.apache.jakarta.tomcat
Sent: Thursday, September 26, 2002 9:30 PM
Subject: Tomcat 4.1.12 + JDK 1.4.1 + ISAPI.dll + IIS + WinNT 4.0 SP6


Hi Guys,


Does anybody know any issues that may exist with the following set-up

Tomcat 4.1.12 + JDK 1.4.1 + ISAPI.dll + IIS + WinNT 4.0 SP6

But I keep getting the following:

[Fri Sep 27 02:21:32 2002]  [jk_isapi_plugin.c (657)]: HttpFilterProc
started
[Fri Sep 27 02:21:32 2002]  [jk_isapi_plugin.c (705)]: In HttpFilterProc
Virtual Host redirection of /localhost/examples/jsp/index.html
[Fri Sep 27 02:21:32 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Sep 27 02:21:32 2002]  [jk_uri_worker_map.c (464)]: Attempting to map
URI '/localhost/examples/jsp/index.html'
[Fri Sep 27 02:21:32 2002]  [jk_uri_worker_map.c (570)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Fri Sep 27 02:21:32 2002]  [jk_isapi_plugin.c (711)]: In HttpFilterProc
test Default redirection of /examples/jsp/index.html
[Fri Sep 27 02:21:32 2002]  [jk_uri_worker_map.c (447)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Sep 27 02:21:32 2002]  [jk_uri_worker_map.c (464)]: Attempting to map
URI '/examples/jsp/index.html'
[Fri Sep 27 02:21:32 2002]  [jk_uri_worker_map.c (489)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match worker1 -
/examples/
[Fri Sep 27 02:21:32 2002]  [jk_isapi_plugin.c (721)]: HttpFilterProc
[/examples/jsp/index.html] is a servlet url - should redirect to worker1
[Fri Sep 27 02:21:32 2002]  [jk_isapi_plugin.c (784)]: HttpFilterProc check
if [/examples/jsp/index.html] is points to the web-inf directory


Cheers,


John Clark

--
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]




RE: Help with test needed.

2002-10-01 Thread Anthony Milbourne

Hi

I had a look from JANET (UK Academic network) which is 10Mbit when we get
it.
Initial page load was slow and some impatient folks might give up (maybe a
please wait message ?).
After that it was all fairly responsive.  Zooming in was fairly quick (The
delay while it went and got the image was less than the time it took to
download the image).
Everyone in my office thought it was a cool site :-).

Anthony.

 -Original Message-
 From: Martin Jacobson [SMTP:[EMAIL PROTECTED]]
 Sent: 01 October 2002 08:31
 To:   Tomcat Users List
 Subject:  Re: Help with test needed.
 
 Robert L Sowders wrote:
 
  I've just about completed a new site and I've been wondering about a few
 
  things, specifically how does the public see it.  It's an ArcIMS site
 and 
  I know it will appear to load a bit slow, (that's just how ArcIMS
 works). 
  I'm hosting the front end in one place and the data at another.  I'm 
  wondering about the network latency that is built in.
  
  If you would go to http://terra.wr.usgs.gov/pilots/wa-id/viewer.htm,
 then zoom in about three 
  times and click on the orthophoto check box that comes up on the right 
  hand side, then hit the refresh button, this final refresh will give you
 
  an idea of the network latency.
  
  I can't see it because I'm on the DOI backbone.
  
  Any help is appreciated.
 
 
 I just tried it - I'm connected @ 10Mb/s to a fast backbone in Italy - 
 and although it takes ~ 10 sec to display the page, the delay BEFORE it 
 starts loading the image is only of the order of a second or two, so 
 it's not too bad. I'm glad I'm not trying this at home via 56K dialup, 
 'though!
 
 HTH,
 
 Martin
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Bug in 4.0.4 DefaultServlet

2002-10-01 Thread Drinkwater, GJ (Glen)


Hi 

I have just come back off holiday and have heard about the bug with
org.apache.catalina.servlets.DefaultServlet where you can see the source
code of jsp's.

I have been on the jakarta web site and there solution is to comment out 
servlet-mapping
 servlet-nameinvoker/servlet-name 
url-pattern/servlet/*/url-pattern 
/servlet-mapping

this from the web.xml file.

I have done this but now my servlets dont work. 

Can anybody help??

Glen

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Bug in 4.0.4 DefaultServlet

2002-10-01 Thread Reynir Hübner

one way of getting there is to upgrade to either 4.0.5 or 4.1.12.
-reynir






 -Original Message-
 From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
 Sent: 1. október 2002 10:55
 To: 'Tomcat Users List'
 Subject: Bug in 4.0.4 DefaultServlet 
 
 
 
 Hi 
 
 I have just come back off holiday and have heard about the bug with
 org.apache.catalina.servlets.DefaultServlet where you can see 
 the source
 code of jsp's.
 
 I have been on the jakarta web site and there solution is to 
 comment out 
 servlet-mapping
  servlet-nameinvoker/servlet-name 
 url-pattern/servlet/*/url-pattern 
 /servlet-mapping
 
 this from the web.xml file.
 
 I have done this but now my servlets dont work. 
 
 Can anybody help??
 
 Glen
 
 --
 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]




RE: Bug in 4.0.4 DefaultServlet

2002-10-01 Thread Drinkwater, GJ (Glen)

I am in the process of upgrading bu i need to test my application with the
new version.  So i need a patch  until i have done this.

glen


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: what is RequestDumperValve

2002-10-01 Thread Cox, Charlie

look in the file in the logs dir that you have defined in the Logger
element in server.xml.

Charlie

 -Original Message-
 From: Kunal Shah [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 5:29 AM
 To: [EMAIL PROTECTED]
 Subject: what is RequestDumperValve
 
 
 Hi all,
 
 I was going through the comments in server.xml of tomcat 
 application server
 Here is snippet of the comments
 
 !-- The request dumper valve dumps useful debugging 
 information about
the request headers and cookies that were received, and the
 response
headers and cookies that were sent, for all 
 requests received by
this instance of Tomcat.  If you care only about 
 requests to a
particular virtual host, or a particular 
 application, nest this
element inside the corresponding Host or Context entry
 instead.
 
For a similar mechanism that is portable to all Servlet 2.3
containers, check out the RequestDumperFilter 
 Filter in the
example application (the source for this filter 
 may be found in
$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters).
 
Request dumping is disabled by default.  Uncomment 
 the following
element to enable it. --
   !--
   Valve 
 className=org.apache.catalina.valves.RequestDumperValve/
   --
   
 
 I uncommented Valve
 className=org.apache.catalina.valves.RequestDumperValve/ 
 but I don't know
 where to look for the debugging information dumped by this class
 
 
 Please guide me
 
 Thanks  regards,
 
 Kunal
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 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]




Re: excessive cpu use with 4.0.4

2002-10-01 Thread peter lin


I don't know if others have mentioned this, but have you tried using
other vm's?

I've done several benchmarks and stress tests with 4.x and haven't seen
any problems with a real webapp. The webapp is fairly complicated with a
couple hundred jsp pages, so arguably a webapp that uses JSP
would/should expose load problems faster than servlet webapps.

peter

Seb B wrote:
 
 Hi,
 
 I'm running a stand-alone Tomcat 4.0.4 (not using jsp, so no need
 to upgrade to 4.0.5) on Linux RedHat 7.3, with IBM's 1.3.1 jvm.
 There is very little static content to serve and the server
 doesn't have to listen on port 80, so I haven't tried learning
 how to configure it behind Apache.
 
 Everything works great in the lab, so I'm now experimenting in
 our production system (whose servers are running other servlet
 containers so far), behind a load balancer.
 
 On the last run, 4 of the java threads started taking all of the
 cpu. I stopped sending traffic to tomcat, and those 4 went on
 taking all the cpu they could (for several days). So it looked
 like they were stuck in some infinite loop somewhere. Of course,
 I suspect this would come from our code. I tried enabling all
 sorts of logging in our code, but couldn't get anything from the
 process.
 
 As a last resort, I sent the process a SEGV signal, which leads
 the jvm to print stack traces. All 4 threads (I knew their PID
 from ps/top) had the following stack trace:
 HttpProcessor[9090][44] (TID:0x100502B8,
 sys_thread_t:0x46DCDD98, state:R, native ID:0x10442) prio=5
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso
 r.java:1125)
 at java.lang.Thread.run(Thread.java:512)
  PID: 8013
 None of the other HttpProcessor threads were on that same line
 (1125), all those I looked at were (as they should be I guess):
 HttpProcessor[9090][43] (TID:0x10050300,
 sys_thread_t:0x46DCD918, state:CW, native ID:0x10041) prio=5
 at java.lang.Object.wait(Native Method)
 at java.lang.Object.wait(Object.java(Compiled Code))
 at
 org.apache.catalina.connector.http.HttpProcessor.await(HttpProces
 sor.java(Compiled Code))
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso
 r.java:1119)
 at java.lang.Thread.run(Thread.java:512)
  PID: 8012
 So *if* the stack traces from the jvm are worthwhile, this would
 point to a tomcat problem.
 
 I'm posting to this list and not the developer list, as I'm
 wondering whether anyone has experienced such a problem before.
 This has happened in only one of my test runs, I don't know how
 reproduceable it will be.
 
 Also, this has been asked already, but I didn't see many answers:
 is there any sort of real-world benchmark of what load I can
 expect in such a set-up ? I understand it depends a lot on what
 the servlets do, so I'm wondering how big the biggest sites using
 tomcat are; John Turner mentioned 500k for his, is anyone doing
 anything bigger ?
 
 Thanks a lot,
 
 Seb
 
 --
 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]




RE: Documentation

2002-10-01 Thread Turner, John


 -Original Message-
 From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 6:18 PM
 
 I would tend to agree with the above, those writing the code 
 either don't
 have the inclination or time to write up good documentation.

In my mind, these developers should be shot.  Or at least confined to a tiny
little box for an extended period of time.  Or maybe just put in charge of a
large data center running their software, and their email and cell phones
the only contact info on the 24/7/365 call list.  Not to rant, but any
developer, open source or not, that writes code but fails to provide good or
better documentation at the same time is a poor developer, regardless of
their technical skill, and regardless of their commitment or uncompensated
participation.  I'm no developer, but even I know that documentation is
key...I probably spend 60% of my sys-admin time writing recipes and docs for
other people to descibe what and how I did the things I did in the other
40%. 

I think that the argument that the developers don't have time is a
cop-out, especially under the Apache style of development and release
schedules.  There's no pressure to meet release dates in that mode of
development, so time is technically unlimited.  I would say it's more don't
have the inclination because documentation isn't as cool as code and my ego
gets more of a boost from writing the latest whiz-bang feature or finding a
bug in some other guy's code than it does writing a doc that explains how to
perform an installation.  Which is a shame.

Besides, isn't Java self-documenting? ;)

 Have you looked at the latest docs for Tomcat 4.1?  Much 
 better jk documentation,
 existing docs updated, and even some new documents at:
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
 

I've been all through them, they're pretty much just a rehash of 4.0 docs
with a new design template.  The new design is pretty, granted, but that's a
far cry from where the docs should be.  The connector docs are a little
better, but in my opinion they don't cover nearly the amount of information
they should cover.  If they did, this list wouldn't get 100-150 messages
every night.

That said, I would gladly participate in any documentation project that is
started.  I could contribute several hours ( 3  time  10 ) each week.

 
 Glenn
 

John


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Turner, John


I'm not sure it is Tomcat.

I have Tomcat 3.1 with Apache 1.3.26 and mod_jserv, many separate instances
of Tomcat.  My servers rarely go over 40% CPU, and my sites are not only
high-traffic but resource intensive (on-the-fly custom graphics
manipulation).  Uptime is 112 days.

I guess it could be a bug the showed up between Tomcat 3.1 and 3.2.4, but
more likely it is a combination of RH 7.1 (mine are 7.2), the connector
(which source of the connector are you using) and Tomcat.  The issue
could just as easily be in RH or the connector.

John


 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 4:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
 Hi,
 
 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 
 7.1.  The java
 processes slowly take more and more CPU power.  After about a 
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc. 
  If I leave it
 running for more than three or four days, everything is VERY 
 slow.  Does
 anyone know why this happens and if it is normal?
 
 I have not been able to find an answer to this anywhere!
 
 Brandon
 
 
 --
 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]




RE: Start Apache/Jakarta-Tomcat as Non-root user

2002-10-01 Thread Turner, John


By better off using rc.local I meant a little bit of both.  Sometimes the
simplest way is the best way, especially if what you are trying to do is not
your core skill set.

The correct way is to use S and K scripts like you are trying to do.  The
goal, though, is to get the services started on boot, and that can be
accomplished just as easily by making calls to your scripts in rc.local,
especially if your processes require other services to start up first, since
rc.local is called last.  Some would even argue that rc.local is better from
the point of view that a sys-admin taking over the server would expect
non-default-install services to be started there anyway.  I know it's the
first place I'd look if I wanted to know how Tomcat (or anything else) was
started at boot on an unfamiliar machine, even though I would setup S and K
scripts myself.

In the end, use whatever works.

John

 -Original Message-
 From: Matt Raible [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 4:51 PM
 To: 'Tomcat Users List'
 Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 I'm no linux expert, and I am trying to set this up on a production
 server that may have 1000+ users shortly.  To start apache, I'm using
 the rc.local file - and I'm having no luck with the following tomcat
 startup script.  Is it bad to use rc.local?  By you'd probably be
 better off - do you mean cause I don't appear to know what I'm doing
 ;-), or just because it's easier?
 
 #!/bin/bash
 #
 # This script is for starting Tomcat automatically.
 # For use on RedHat Linux - tested on v7.3
 
 CATALINA_HOME=/usr/local/tomcat; export CATALINA_HOME
 JAVA_HOME=/usr/java/j2sdk1.4.1; export JAVA_HOME
 
 # source function library
 . /etc/rc.d/init.d/functions
 
 RETVAL=0
 prog=tomcat1
 
 case $1 in
 start)
 su tomcat /usr/local/tomcat1/bin/startup.sh
 sleep 5
 ;;
 stop)
 su tomcat /usr/local/tomcat1/bin/shutdown.sh
 ;;
 *)
 echo Usage: $0 {start|stop}
 exit 1
 ;;
 esac
 
 exit 0
 
  -Original Message-
  From: Turner, John [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, September 30, 2002 10:39 AM
  To: 'Tomcat Users List'
  Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
  
  
  
  I'm not sure what you mean...you have to give it an argument, 
  that's how the script is written.  Either start or stop.
  
  Actually, now that I look at the script, there's a some stuff 
  missing if you want to use it as a startup script in one of 
  the rc.d directories. Something like:
  
  # source function library
  . /etc/rc.d/init.d/functions
  
  RETVAL=0
  prog=tomcat
  
  JAVA_HOME=/some/path/to/jdk
  CATALINA_HOME=/some/path/to/tomcat
  
  You'd probably be better off just putting a couple lines into 
  rc.local,
  like:
  
  /some/path/to/tomcat/script start
  
  John
  
  
   -Original Message-
   From: Matt Raible [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 30, 2002 12:29 PM
   To: 'Tomcat Users List'
   Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user
   
   
   I've noticed that if I run ./S40tomcat, I have to add 
  start after it 
   in order to get it to start from the command line.  Does 
  the startup 
   script add this automatically?
   
-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 8:12 AM
To: 'Tomcat Users List'
Subject: RE: Start Apache/Jakarta-Tomcat as Non-root user


I've modified your script for RedHat Linux 7.3, but my tomcat
instance still won't start on bootup.  I can execute 
./S40tomcat, enter the tomcat user's password and everything 
works fine.  Any ideas or log files I can check?

#!/bin/bash
#
# Matt Raible 29 Sep 2002
# For use on RedHat Linux - tested on v7.3

case $1 in
start)
su tomcat /usr/local/tomcat1/bin/startup.sh
sleep 5
;;
stop)
su tomcat /usr/local/tomcat1/bin/shutdown.sh
;;
*)
echo Usage: $0 {start|stop}
exit 1
;;
esac

exit 0


 -Original Message-
 From: Jim Coble [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, September 28, 2002 8:11 AM
 To: Tomcat Users List
 Subject: Re: Start Apache/Jakarta-Tomcat as Non-root user
 
 
 I accomplished this yesterday on Solaris 8 using the
following script
 called at system startup (linked to S40tomcat in rc3.d)
... Replace
 tomcat after the two su commands with the user you want
 Tomcat to run as 
 and, of course, change the paths as appropriate for your 
 system.  You'll 
 also need to make sure your tomcat user has appropriate 
 permissions on 
 your tomcat directories.
 --Jim
 
 #!/sbin/sh
 #
 # Jim Coble 09 Jun 02
 # Modified 27 Sep 02 to try to get to run as user tomcat
  
 

Can't get SSL Client Certificate

2002-10-01 Thread M . Mazza

Hy,
I've got problems getting ssl client certificate.
I'm using tomcat 4.1.2, Apache 2.0.42, mod_jk2 (2.0.0) and I've configured
Apache with SSL client verification and mod_jk2 with normal socket 
connector to port 8009.
All seems to work fine: 
the browser ask me the pin for the access to the key and then I can access
my servlet in tomcat, but I always get null when I try to access 
information about the client certificate.

This is the servlet code that I use to access the request attributes:

java.util.Enumeration attributeNames = request.getAttributeNames();
while(attributeNames.hasMoreElements()) {
  out.println(pAttributo/p);
  out.println(p + attributeNames.nextElement().toString() + 
/p); 
}
out.println(request.getAttribute(javax.net.ssl.peer_certificates));
 
out.println(request.getAttribute(javax.servlet.request.X509Certificate));

What I'm doing wrong???
TIA
Mauro


RE: MBeans?

2002-10-01 Thread Shapira, Yoav

Howdy,
What kind of bean what you like to add so that tomcat knows about it?

In the (current) tomcat world, there are two kind of MBeans: its own and
yours.  Yours are under your webapp, visible only to you, and tomcat
doesn't want to have anything to do with them.  Its own MBeans are
visible only to it, and you shouldn't have anything to do with them.
This might change in the future.

JBoss supports a nice dynamic MBean model.  It may be more suitable for
your task.  Which goes back to the original question, what exactly are
you trying to do?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Randy Secrist [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 11:01 PM
To: Tomcat Users List
Subject: MBeans?


Is there a way to append to the information kept in the MBean
descriptor
without having to modify the file in catalina.jar?  i.e. - is there a
way
to dynamically add MBeans so that TC knows about them at run time?

Does anyone know what I am talking about, or is this more geared for
the
developer's group?

Randy Secrist


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Warp connections

2002-10-01 Thread Sigurur Bjarnason

Ok.. So what is the use of the connector then ?!?!?!?
 
If not to let Tomcat serve the Jsp and Servlets.. witch it is supposed to do. ?!?
 
This makes no sense at all to have this connector then.. ... If Tomcat ends up serving 
all the content !  Then it would just be better to leave out Apache to save cpu and so 
on !..
 
This has to be misunderstanding !.. From my point of view, if the connector cannot do 
this.. I just Get rid of Apache and let Tomcat do all the work.. witch is does.. 
anyway if I use Warp..
 
 
regards 
Siggi
 

-Original Message- 
From: Jim Coble [mailto:[EMAIL PROTECTED]] 
Sent: lau. 28.9.2002 17:10 
To: Tomcat Users List 
Cc: 
Subject: Re: Warp connections 





Someone with more experience may have a better answer but it is my
understanding that mod_webapp does not permit you to distinguish between
static and dynamic content.  When you use mod_webapp, Tomcat services all
requests; i.e., you can't do what you want to do--serve html with Apache
and jsp/servlets with Tomcat--using mod_webapp -- you would have to
continue using mod_jk if that's what you want to do.
--Jim

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==



   
   
  Sigurður 
   
  BjarnasonTo:   Tomcat Users List 
[EMAIL PROTECTED] 
  [EMAIL PROTECTED]cc: 
   
  m   Subject:  Warp connections  
   
   
   
  09/28/2002 12:17 
   
  PM   
   
  Please respond to
   
  Tomcat Users
   
  List
   
   
   
   
   





Hi all..

I want to use the mod_webapp module for apache to connect it to tomcat.. I
have one question about this

The thing is.. i want apache to serve all static content.. like html and
let tomcat handle the jsp and servlets.

Now when i use the apj1.2 connector with mod_jk.so i use line like

JkMount /TESTSUITE/servlet/* ajp12
JkMount /TESTSUITE/*.jsp ajp12

when i use the mod_webapp.. i use lines like as follows

 WebAppDeploy examplesconn  /examples

..that is here that i have a problem !  how can i exclude the jsp
pages... with this. ?!

i have tryed to use

 WebAppDeploy examplesconn  /examples/*.jsp

But that have not worked for me.. so if someone out there have the answer..
i would be greatful ! :)

Regards
Siggi






(See attached file: winmail.dat)--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]





winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Warp connections

2002-10-01 Thread Andy Eastham
Title: Re: Warp connections



Siggi,

What 
this means is that if you map, for example, /myapp to Tomcat, Tomcat will serve 
all content under /myapp. You cannot get Apache to serve 
/myapp/my.jpg.

Apache 
will still serve things that aren't under /myapp, so /index.html, /images/my.jpg 
etc _will_ be served by Apache.

Does 
this clarify the situation?

All 
the best,

Andy

  -Original Message-From: Sigurður Bjarnason 
  [mailto:[EMAIL PROTECTED]]Sent: 01 October 2002 13:45To: 
  Tomcat Users ListSubject: RE: Warp connections
  Ok.. So what is the use of the connector then ?!?!?!?
  
  If not to let Tomcat serve the Jsp and Servlets.. witch it is supposed to 
  do. ?!?
  
  This makes no sense at all to have this connector then.. ... If Tomcat 
  ends up serving all the content ! Then it would just be better to leave 
  out Apache to save cpu and so on !..
  
  This has to be misunderstanding !.. From my point of view, if the 
  connector cannot do this.. I just Get rid of Apache and let Tomcat do all the 
  work.. witch is does.. anyway if I use Warp..
  
  
  regards 
  Siggi
  
  
-Original Message- From: Jim Coble 
[mailto:[EMAIL PROTECTED]] Sent: lau. 28.9.2002 17:10 
To: Tomcat Users List Cc: Subject: Re: Warp 
connections 
Someone with more experience may have a better answer but it 
is myunderstanding that mod_webapp does not permit you to distinguish 
betweenstatic and dynamic content. When you use mod_webapp, Tomcat 
services allrequests; i.e., you can't do what you want to do--serve html 
with Apacheand jsp/servlets with Tomcat--using mod_webapp -- you would 
have tocontinue using mod_jk if that's what you want to 
do.--Jim==Jim 
CobleSenior Technology SpecialistCenter for Instructional 
TechnologyEmail: [EMAIL PROTECTED]Voice: 919-660-5974 Fax: 
919-660-5923Box 90198, Duke UniversityDurham, NC 
27708-0198== 
Sigurður 
Bjarnason 
To: "Tomcat Users List" 
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 
cc: 
m 
Subject: Warp 
connections 
09/28/2002 
12:17 
PM 
Please respond 
to 
"Tomcat 
Users 
List"Hi 
all..I want to use the mod_webapp module for apache to connect it to 
tomcat.. Ihave one question about thisThe thing is.. i want 
apache to serve all static content.. like html andlet tomcat handle the 
jsp and servlets.Now when i use the apj1.2 connector with mod_jk.so 
i use line likeJkMount /TESTSUITE/servlet/* ajp12JkMount 
/TESTSUITE/*.jsp ajp12when i use the mod_webapp.. i use lines like 
as followsWebAppDeploy 
examples conn /examples..that is here 
that i have a problem ! how can i exclude the jsppages... with 
this. ?!i have tryed to 
useWebAppDeploy 
examples conn /examples/*.jspBut that have 
not worked for me.. so if someone out there have the answer..i would be 
greatful ! :)RegardsSiggi(See 
attached file: winmail.dat)--To unsubscribe, e-mail: 
mailto:[EMAIL PROTECTED]For 
additional commands, e-mail: mailto:[EMAIL PROTECTED]
attachment: winmail.dat
--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: what is RequestDumperValve

2002-10-01 Thread Kunal Shah

Thanks

I got it in Catalina. .log file

But its too much. For one post request, it dumps around 280kbs of data.

For my one day work, it dumps around 75mbs of data.!!

Along with header requests and cookie information, it dumps other things
also.

Is there any way I can separate the request log to some other file ..

If I change logger file then it will dump all information including request
dispatcher to that file
I want separate file only for request logging purpose.

--Kunal

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 5:06 PM
To: 'Tomcat Users List'
Subject: RE: what is RequestDumperValve

look in the file in the logs dir that you have defined in the Logger
element in server.xml.

Charlie

 -Original Message-
 From: Kunal Shah [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 5:29 AM
 To: [EMAIL PROTECTED]
 Subject: what is RequestDumperValve


 Hi all,

 I was going through the comments in server.xml of tomcat
 application server
 Here is snippet of the comments

 !-- The request dumper valve dumps useful debugging
 information about
the request headers and cookies that were received, and the
 response
headers and cookies that were sent, for all
 requests received by
this instance of Tomcat.  If you care only about
 requests to a
particular virtual host, or a particular
 application, nest this
element inside the corresponding Host or Context entry
 instead.

For a similar mechanism that is portable to all Servlet 2.3
containers, check out the RequestDumperFilter
 Filter in the
example application (the source for this filter
 may be found in
$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters).

Request dumping is disabled by default.  Uncomment
 the following
element to enable it. --
   !--
   Valve
 className=org.apache.catalina.valves.RequestDumperValve/
   --
   

 I uncommented Valve
 className=org.apache.catalina.valves.RequestDumperValve/
 but I don't know
 where to look for the debugging information dumped by this class


 Please guide me

 Thanks  regards,

 Kunal


 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com

 --
 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]


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Documentation

2002-10-01 Thread Thad Humphries

I'll throw in what I can.  Most of my TC docs consist of URLs and
hardcopy that I've collected here and there from the web, along with my
notes.  Put me on your list...

If nothing else, it will help me to learn more aobut Tomcat...

On Mon, 2002-09-30 at 17:01, Robert L Sowders wrote:
 Since most of the questions to tomcat-users list concern installation and 
 configuration issues it demonstrates that there is a real need for Tomcat 
 to have a documentation project that it's users can contribute to. Right 
 now most of the documentation consists of the xdocs which are pretty good, 
 but can be so much more.  The developers obviously have little time to 
 maintain the present documentation and there is such an apparent need that 
 I wonder why a project for the documentation has not been started.
 
 There are many doc-projects out there to emulate.  I especially like the 
 one that the apache folks have running, the new xml documentation for 
 Apache 2.0 is probably the best I've seen. 
 
 I'm sure that many people would be willing to devote some time to 
 organizing and maintaining input from the community into a resource that 
 would benefit everyone.  I for one would be willing to contribute, but 
 right now there is nothing an nowhere to submit to.
 
 Should the developers of Tomcat initiate a project for the documentation? 
 Or should we?  The Apache folks seem to have solved this issue, it remains 
 to be solved for Tomcat.
  
 Have a look at some examples of opensouce projects which have solved their 
 documentation problems:
 
 http://httpd.apache.org/docs-project/
 http://www.freebsd.org/docproj/
 http://www.debian.org/doc/ddp
 http://developer.gnome.org/projects/gdp/
 http://www.mulberrytech.com/dsssl/dsssldoc/index.html
 http://pm-doc.sourceforge.net/
 http://zdp.zope.org/
 http://www.tldp.org/
 
 rls
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
-- 

Thad Humphries  ...no religious test shall ever be required
Web Development Manager  as a qualification to any office or public
Phone: 540/675-3015, x225trust under the United States. -Article VI


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: (Help Needed!!)How to avoid the Default HTTP header being sent from Servlet to Applet

2002-10-01 Thread sunita desai

Hi,

In addition to my problem definition in my earlier mail,
I would like to add following.
Actually I see that the header info is being sent from the Servlet to the
applet
everytime when it makes a URL connection to Servlet.
It is something like this:
200: OK
Date: Tue, 01 Oct 2002 12:53:14 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
content-length: 10363

But only sometimes the header info is also being treated as data and is
printed by the
Applet on the display area(TextArea). But only difference is when the header
is displayed by Applet, the content-length header is missing. So is this
problem anything to do with
proper setting of content-length before making Servlet call from the Applet?

I am clueless about this problem but struggling to close this display area.
I request you to please go through my problem description and provide
whatever clues/probable reasons so that ahead to solve it.
If you need more details, please let me know.

Thanks in advance,
Regards,
Sunita


-Original Message-
From: sunita desai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 2:44 PM
To: Tomcat Users List
Subject: How to avoid the Default HTTP header being sent from Servlet to
Applet


Hi,
To explain my problem, I have a plaing Applet-Servlet communication.
The servlet just reads an backend socket connection contents and keeps
sending every 50 lines of information to the Applet.
And the applet after receiving every 50 lines, displays it in TextArea
without interpreting the data.And invokes the Servlet again as a URL.

Sometimes, the Servlet is sending the default header along with the data
as given below, which distorts the actual data coming from the Socket
connection.

And infact I have not explicitly set any extra headers in the Servlet,nor
the headers are being sent with every invocation of Servlet.
It happends randomly,Please give any pointers or suggestions as to how I can
avoid these HTTP headers being sent from the Servlet?

I appreciate any help in this regard,
Thanks in advance,
Sunita

The display output before and after the error looks like this:


h323-ivr-out=reroute-count:0
h323-ivr out=route:INCCARRIER|Z1_SP_NTKG|11011|0|2|Z1_HK_OP|Z1_HK_
OP1_TG2|11009|0|
Acct_in_octets:742
Acct_out_octets:806
Acct_in_packets:39


HTTP/1.1 200 OK
Content-Type: text/html
Date: Wed, 18 Sep 2002 20:07:08 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)

5c
Acct_out_packets:46
1


62
Acct_session_time:20 secs
1


7d
h323-disconnect-time=10:54:56.709 EST Sun May 5 2002
1


63
h323-disconnect-cause=10
1


69
h323-remote-address=10.15.89.150
1


5d
h323-voice-quality=0
1


78
alert-timepoint=10:54:34.559 EST Sun May 5 2002
1


70
gw-rxd-cdn=ton:1,npi:1,#:0016141756
1


76
gw-final-xlated-cdn=ton:1,npi:1,#:6141756
1


73
gw-rxd-cgn=ton:4,npi:1,pi:0,si:1,#:8381756
1


59
info-type=speech
1


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Documentation

2002-10-01 Thread peter lin


I'm still cleaning up my old document on configuring
servletcontextlistener, and servlets, but I'd like to help also.  I also
think documentation is critical and would like to assist in that effort.

peter lin


Turner, John wrote:
 
  -Original Message-
  From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 6:18 PM
 
  I would tend to agree with the above, those writing the code
  either don't
  have the inclination or time to write up good documentation.
 
 In my mind, these developers should be shot.  Or at least confined to a tiny
 little box for an extended period of time.  Or maybe just put in charge of a
 large data center running their software, and their email and cell phones
 the only contact info on the 24/7/365 call list.  Not to rant, but any
 developer, open source or not, that writes code but fails to provide good or
 better documentation at the same time is a poor developer, regardless of
 their technical skill, and regardless of their commitment or uncompensated
 participation.  I'm no developer, but even I know that documentation is
 key...I probably spend 60% of my sys-admin time writing recipes and docs for
 other people to descibe what and how I did the things I did in the other
 40%.
 
 I think that the argument that the developers don't have time is a
 cop-out, especially under the Apache style of development and release
 schedules.  There's no pressure to meet release dates in that mode of
 development, so time is technically unlimited.  I would say it's more don't
 have the inclination because documentation isn't as cool as code and my ego
 gets more of a boost from writing the latest whiz-bang feature or finding a
 bug in some other guy's code than it does writing a doc that explains how to
 perform an installation.  Which is a shame.
 
 Besides, isn't Java self-documenting? ;)
 
  Have you looked at the latest docs for Tomcat 4.1?  Much
  better jk documentation,
  existing docs updated, and even some new documents at:
 
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
 
 
 I've been all through them, they're pretty much just a rehash of 4.0 docs
 with a new design template.  The new design is pretty, granted, but that's a
 far cry from where the docs should be.  The connector docs are a little
 better, but in my opinion they don't cover nearly the amount of information
 they should cover.  If they did, this list wouldn't get 100-150 messages
 every night.
 
 That said, I would gladly participate in any documentation project that is
 started.  I could contribute several hours ( 3  time  10 ) each week.
 
 
  Glenn
 
 
 John
 
 --
 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]




RE: what is RequestDumperValve

2002-10-01 Thread Cox, Charlie

you can add a logger under each host. Even if you only have one host, it
will separate it from catalina.log. 

I think you can add a logger under the valve as well but I haven't tried
to. 

Charlie

 -Original Message-
 From: Kunal Shah [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 8:59 AM
 To: Tomcat Users List
 Subject: RE: what is RequestDumperValve
 
 
 Thanks
 
 I got it in Catalina. .log file
 
 But its too much. For one post request, it dumps around 
 280kbs of data.
 
 For my one day work, it dumps around 75mbs of data.!!
 
 Along with header requests and cookie information, it dumps 
 other things
 also.
 
 Is there any way I can separate the request log to some other file ..
 
 If I change logger file then it will dump all information 
 including request
 dispatcher to that file
 I want separate file only for request logging purpose.
 
 --Kunal
 
 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 5:06 PM
 To: 'Tomcat Users List'
 Subject: RE: what is RequestDumperValve
 
 look in the file in the logs dir that you have defined in the Logger
 element in server.xml.
 
 Charlie
 
  -Original Message-
  From: Kunal Shah [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 01, 2002 5:29 AM
  To: [EMAIL PROTECTED]
  Subject: what is RequestDumperValve
 
 
  Hi all,
 
  I was going through the comments in server.xml of tomcat
  application server
  Here is snippet of the comments
 
  !-- The request dumper valve dumps useful debugging
  information about
 the request headers and cookies that were 
 received, and the
  response
 headers and cookies that were sent, for all
  requests received by
 this instance of Tomcat.  If you care only about
  requests to a
 particular virtual host, or a particular
  application, nest this
 element inside the corresponding Host or 
 Context entry
  instead.
 
 For a similar mechanism that is portable to all 
 Servlet 2.3
 containers, check out the RequestDumperFilter
  Filter in the
 example application (the source for this filter
  may be found in
 
 $CATALINA_HOME/webapps/examples/WEB-INF/classes/filters).
 
 Request dumping is disabled by default.  Uncomment
  the following
 element to enable it. --
!--
Valve
  className=org.apache.catalina.valves.RequestDumperValve/
--

 
  I uncommented Valve
  className=org.apache.catalina.valves.RequestDumperValve/
  but I don't know
  where to look for the debugging information dumped by this class
 
 
  Please guide me
 
  Thanks  regards,
 
  Kunal
 
 
  __
  Do You Yahoo!?
  Everything you'll ever need on one web page
  from News and Sport to Email and Music Charts
  http://uk.my.yahoo.com
 
  --
  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]
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 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]




500 Internal Server Error

2002-10-01 Thread Sigurur Bjarnason

Hi all
 
I have a website.. witch is in frames, the site is run with Tomcat 4.0.4 and Apache 
1.3.
 
The site works fine.. for all parts.. except on frame.. it is a login frame that shows 
this error.. ( 500 internel Server Error ) although the rest of the site is ok ?!
This .. happens.. once in a while.. not all the time.. ? 
 
Have anyone info on this.. is this frames related.. or something else..
 
regards
Siggi
 

-Original Message- 
From: Raj Saini [mailto:[EMAIL PROTECTED]] 
Sent: þri. 1.10.2002 08:21 
To: Tomcat Users List 
Cc: 
Subject: Re: excessive cpu use with 4.0.4



Hi,

I am using the Tomcat 4.0.3 in a very big site. I have few hundereds of
JSP, around 15 servlets, integrated with JBoss with my own framework
(which consists around 500 class files. You can think of it a complete
J2EE implementation of a commercial business application.

Off late, I have been facing the huge memory usage by the tomcat and due
to this very reason, I need to restart the tomcat every day. I have
allocated 384 MB of maximum RAM to the tomcat.

Since I did not profile my application, I cant say yet, which one is
real culprit, tomcat and my application.

I will report back my findings after profiling my application.

Raj Saini
Seb B wrote:
 Hi,

 I'm running a stand-alone Tomcat 4.0.4 (not using jsp, so no need
 to upgrade to 4.0.5) on Linux RedHat 7.3, with IBM's 1.3.1 jvm.
 There is very little static content to serve and the server
 doesn't have to listen on port 80, so I haven't tried learning
 how to configure it behind Apache.

 Everything works great in the lab, so I'm now experimenting in
 our production system (whose servers are running other servlet
 containers so far), behind a load balancer.

 On the last run, 4 of the java threads started taking all of the
 cpu. I stopped sending traffic to tomcat, and those 4 went on
 taking all the cpu they could (for several days). So it looked
 like they were stuck in some infinite loop somewhere. Of course,
 I suspect this would come from our code. I tried enabling all
 sorts of logging in our code, but couldn't get anything from the
 process.

 As a last resort, I sent the process a SEGV signal, which leads
 the jvm to print stack traces. All 4 threads (I knew their PID
 from ps/top) had the following stack trace:
 HttpProcessor[9090][44] (TID:0x100502B8,
 sys_thread_t:0x46DCDD98, state:R, native ID:0x10442) prio=5
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso
 r.java:1125)
 at java.lang.Thread.run(Thread.java:512)
  PID: 8013
 None of the other HttpProcessor threads were on that same line
 (1125), all those I looked at were (as they should be I guess):
 HttpProcessor[9090][43] (TID:0x10050300,
 sys_thread_t:0x46DCD918, state:CW, native ID:0x10041) prio=5
 at java.lang.Object.wait(Native Method)
 at java.lang.Object.wait(Object.java(Compiled Code))
 at
 org.apache.catalina.connector.http.HttpProcessor.await(HttpProces
 sor.java(Compiled Code))
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcesso
 r.java:1119)
 at java.lang.Thread.run(Thread.java:512)
  PID: 8012
 So *if* the stack traces from the jvm are worthwhile, this would
 point to a tomcat problem.

 I'm posting to this list and not the developer list, as I'm
 wondering whether anyone has experienced such a problem before.
 This has happened in only one of my test runs, I don't know how
 reproduceable it will be.

 Also, this has been asked already, but I didn't see many answers:
 is there any sort of real-world benchmark of what load I can
 expect in such a set-up ? I understand it depends a lot on what
 the servlets do, so I'm wondering how big the biggest sites using
 tomcat are; John Turner mentioned 500k for his, is anyone doing
 anything bigger ?

 Thanks a lot,

 Seb



 --
 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 

RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Adam Greene

I have to agree.  I have a website that we pounded with 3 test computers and
couldn't get Tomcat over 20% usage.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 9:19 AM
To: 'Tomcat Users List'
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???



I'm not sure it is Tomcat.

I have Tomcat 3.1 with Apache 1.3.26 and mod_jserv, many separate instances
of Tomcat.  My servers rarely go over 40% CPU, and my sites are not only
high-traffic but resource intensive (on-the-fly custom graphics
manipulation).  Uptime is 112 days.

I guess it could be a bug the showed up between Tomcat 3.1 and 3.2.4, but
more likely it is a combination of RH 7.1 (mine are 7.2), the connector
(which source of the connector are you using) and Tomcat.  The issue
could just as easily be in RH or the connector.

John


 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 4:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


 Hi,

 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat
 7.1.  The java
 processes slowly take more and more CPU power.  After about a
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.
  If I leave it
 running for more than three or four days, everything is VERY
 slow.  Does
 anyone know why this happens and if it is normal?

 I have not been able to find an answer to this anywhere!

 Brandon


 --
 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]




Re: The right path; in more way than one.

2002-10-01 Thread Thad Humphries

I know that Tomcat's docs *say* this and that the JSP  servlet specs
call for this but it has not been my experience!

As I have *twice* pointed out here (to no ones acknowledgement), I have
an application that runs fine under Tomcat 4.0.? but not under 4.1.12. 
It fails on objects in xerces.jar.  xerces.jar implements SAX1 and I
have always included it in my WEB-INF/lib directory thouggh it was in
common/lib of Tomcat 4.0.  I use Xerces/SAX1 (Xerces 1.4.2) with
xalan.jar (Xalan 1.2.2).

Tomcat 4.1.12 used SAX2 from xmlParserAPIs.jar in common/endorsed.  I am
getting failures from Xalan 1 because (evidently) Tomcat is sending
objects from here vs. the older Xerces in my WEB-INF/lib directory.

Yes, yes, I know that this needs to be updated.  However, the Xalan API
is radically different.  For now, conversion is impossible due to short
resources and no few customer complexities.

On Tue, 2002-10-01 at 02:20, Andreas Probst wrote:
 Hi Ed,
 
 I'm not sure, what your question is. Let me try to answer like 
 this: Tomcat will look for class files and jars in the various 
 classes and libs directories. Read pathto/tomcat-doc/class-
 loader-howto.html to know exactly.
 
 You can have your application's directory anywhere, if you 
 configure a context in server.xml. If you put it under webapps 
 you don't have to configure a context.
 
 For deploying your app it's probably the best to use Ant. Read 
 the app developer's guide (pathto/tomcat-doc/appdev/index.html) 
 to get to know best practices of the development process.
 
 In case Tomcat complains about JAVA_HOME: In autoexec.bat it 
 might be better to set the DOS 8.3 pathname. Go to e: and type 
 dir to get to know the 8.3 name of jsdk1.4.0. (Something with ~)
 
 Hope this helps.
 
 Andreas
 
  
  
  Hello and Help
  
  I need to have Tomcat working on my machine but I can't getting get the
  right path in my browser.
  So here Goes
  
  My System is Windows 98
  Tomcat version is 4.0.4
  My Java editor is JCreator 2.5
  jdk is 1.4
  
  The install directory is D:\ApacheTomcat4\
  My system directory is D:\windows
  
  autoexec.bat settings
  set JAVA_HOME=E:\j2sdk1.4.0
  set $CATALINA_HOME=D:\ApacheTomcat4
  set  CATALINA_HOME=D:\ApacheTomcat4
  
  
  I set the port to 8088 so; http:// localhost:8088/index.html pulls up the
  splash screen, and in fact is where I got the addresses.
  
  Questions:
 Is there a command or port that will get Tomcat to tell me where it
  thinks the class files will be?
 What setting can I change to get Tomcat to look in a specific
  directory so I can tell the compiler to put the output the class file?
  Are there any advanced tip sheets for install and configuration?
  Please respond with all revenant information. The need is urgent.
  
  
  You have my personal Regards,
  Ed
  
  They that can give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety.
  ...Benjamin Franklin, Historical Review of Pennsylvania, 1759
  
  
  --
  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]
 
 
-- 

Thad Humphries  ...no religious test shall ever be required
Web Development Manager  as a qualification to any office or public
Phone: 540/675-3015, x225trust under the United States. -Article VI


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Glenn Nielsen

This sounds like the bug I fixed in Tomcat 4.1.x where infrequently I saw
a POST request put Tomcat into an infinite loop.  We run Apache and Tomcat
on different servers.  I had noticed the increased CPU usage on the Tomcat
server but hadn't noticed the increased CPU usage on the Apache server.
I went back and reviewed our system load history and verified that when
this bug is triggered both Apache and Tomcat cause increased CPU usage.

This bug was fixed in the Tomcat 4.1.x branch and I ported it back to
the Tomcat 4.0.x branch.  This bug fix should be in the Tomcat 4.0.5
release.

Regards,

Glenn

Chris Read wrote:
 Greetings...
 
 Have you also noticed a spike in CPU usage on your Apache server running
 mod_jk, or your network throughput?
 
 The reason I ask is we've got a similar problem here. We've got a slightly
 different setup (Apache 1.3.x, mod_jk, Tomcat 4.0.3, Sun JDK 1.3.1 - all on
 Solaris), but the same symptoms. 
 
 Basically what we're seeing is sometimes mod_jk and the AJP13 connecter get
 stuck in an infinite loop spewing data at each other as fast as possible
 (and always the same data: Tomcat asking for a BODY_CHUNK of 8186 bytes, and
 mod_jk replying with an empty packet). 
 
 The problem will only affect one connection at a time from the pool, but
 will slowly step up one connection at a time. Restarting either Tomcat or
 Apache solves the problem, but I've not been able to find any info on this
 either. I've been trying for a few days to replicate the problem on demand,
 but no luck yet
 
 Any of this sound familiar?
 
 Chris


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Warp connections

2002-10-01 Thread Sigurur Bjarnason

It does.. Andy..to a point Thanks
 
But.. :)  What i am trying to do..is to let the connector.. just serve the *.jsp and 
servlets from /myapp  if there where .jpg .gif .html and so on..  in there 
tomcat..would also serve that..  And that ..is what i dont want at all..
 
I am thinkin of the performance of the website,  so to manage this i would have to 
have the static content.. at another place on the server this makes things more 
conplicated.. 
:(
 
 
Regards
Siggi
 
 

-Original Message- 
From: Andy Eastham [mailto:[EMAIL PROTECTED]] 
Sent: þri. 1.10.2002 12:52 
To: Tomcat Users List 
Cc: 
Subject: RE: Warp connections


Siggi,
 
What this means is that if you map, for example, /myapp to Tomcat, Tomcat will 
serve all content under /myapp.  You cannot get Apache to serve /myapp/my.jpg.
 
Apache will still serve things that aren't under /myapp, so /index.html, 
/images/my.jpg etc _will_ be served by Apache.
 
Does this clarify the situation?
 
All the best,
 
Andy

-Original Message-
From: Sigurður Bjarnason [mailto:[EMAIL PROTECTED]]
Sent: 01 October 2002 13:45
To: Tomcat Users List
Subject: RE: Warp connections


Ok.. So what is the use of the connector then ?!?!?!?
 
If not to let Tomcat serve the Jsp and Servlets.. witch it is supposed 
to do. ?!?
 
This makes no sense at all to have this connector then.. ... If Tomcat 
ends up serving all the content !  Then it would just be better to leave out Apache to 
save cpu and so on !..
 
This has to be misunderstanding !.. From my point of view, if the 
connector cannot do this.. I just Get rid of Apache and let Tomcat do all the work.. 
witch is does.. anyway if I use Warp..
 
 
regards 
Siggi
 

-Original Message- 
From: Jim Coble [mailto:[EMAIL PROTECTED]] 
Sent: lau. 28.9.2002 17:10 
To: Tomcat Users List 
Cc: 
Subject: Re: Warp connections 





Someone with more experience may have a better answer but it 
is my
understanding that mod_webapp does not permit you to 
distinguish between
static and dynamic content.  When you use mod_webapp, Tomcat 
services all
requests; i.e., you can't do what you want to do--serve html 
with Apache
and jsp/servlets with Tomcat--using mod_webapp -- you would 
have to
continue using mod_jk if that's what you want to do.
--Jim

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==



   
   
  Sigurður 
   
  BjarnasonTo:   
Tomcat Users List [EMAIL PROTECTED] 
  [EMAIL PROTECTED]cc: 
   
  m   Subject:  Warp 
connections 
   
   
  09/28/2002 12:17 
   
  PM   
   
  Please respond to   

Redirect catalina logs to a file in windows

2002-10-01 Thread Deepak R

Hi,

I have setup tomcat on windows. When I startup tomcat with the command
'startup.bat', it opens up a new window  all the logs from catalina are
output in that window.

How can I redirect it to a file, like we have 'catalina.out' for unix?


Thanks,
Deepak


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Documentation

2002-10-01 Thread Anthony Milbourne

Hi

-1 for shooting developers :-)

I can see your point John, but in the real world people are slack and miss
bits.  Also, as has been pointed out, writing technical notes for technical
people is a very different skill to writing a user manual for lay-people.  I
would rather have the best developers doing the development and the best
authors writing the docs.  Also a lot of minor patches and fixes are
submitted by people other than the core developers - often without updates
to the docs (if they are needed).

I think the doc project is a good idea.  I don't feel I know enough about
Tomcat to contribute source (I doubt they would take it :-), but I do feel I
have used Tomcat enough to comment on, and maybe even contribute, docs.

I am certainly willing to contribute to a project - although I suspect there
are people more qualified who have already volunteered.

Anthony.

 -Original Message-
 From: Turner, John [SMTP:[EMAIL PROTECTED]]
 Sent: 01 October 2002 13:12
 To:   'Tomcat Users List'
 Subject:  RE: Documentation
 
 
  -Original Message-
  From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 6:18 PM
  
  I would tend to agree with the above, those writing the code 
  either don't
  have the inclination or time to write up good documentation.
 
 In my mind, these developers should be shot.  Or at least confined to a
 tiny
 little box for an extended period of time.  Or maybe just put in charge of
 a
 large data center running their software, and their email and cell phones
 the only contact info on the 24/7/365 call list.  Not to rant, but any
 developer, open source or not, that writes code but fails to provide good
 or
 better documentation at the same time is a poor developer, regardless of
 their technical skill, and regardless of their commitment or uncompensated
 participation.  I'm no developer, but even I know that documentation is
 key...I probably spend 60% of my sys-admin time writing recipes and docs
 for
 other people to descibe what and how I did the things I did in the other
 40%. 
 
 I think that the argument that the developers don't have time is a
 cop-out, especially under the Apache style of development and release
 schedules.  There's no pressure to meet release dates in that mode of
 development, so time is technically unlimited.  I would say it's more
 don't
 have the inclination because documentation isn't as cool as code and my
 ego
 gets more of a boost from writing the latest whiz-bang feature or finding
 a
 bug in some other guy's code than it does writing a doc that explains how
 to
 perform an installation.  Which is a shame.
 
 Besides, isn't Java self-documenting? ;)
 
  Have you looked at the latest docs for Tomcat 4.1?  Much 
  better jk documentation,
  existing docs updated, and even some new documents at:
  
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
  
 
 I've been all through them, they're pretty much just a rehash of 4.0 docs
 with a new design template.  The new design is pretty, granted, but that's
 a
 far cry from where the docs should be.  The connector docs are a little
 better, but in my opinion they don't cover nearly the amount of
 information
 they should cover.  If they did, this list wouldn't get 100-150 messages
 every night.
 
 That said, I would gladly participate in any documentation project that is
 started.  I could contribute several hours ( 3  time  10 ) each week.
 
 


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE-REPOST: error pages :-)

2002-10-01 Thread Felipe Schnack

  Nobody uses this?

  I added these lines to my web.xml

  error-page
exception-typejava.lang.Exception/exception-type
location/ponto/error.jsp/location
  /error-page
 
  With this, any thrown exception should be redirected to
/ponto/error.jsp, right?
  Well, it seems that when an Servlet generates an exception it
doesn't... This is by design?

  Tomcat 4.0.4 in RH Linux 7.3
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Please provide any clues for HTTP header Problem

2002-10-01 Thread sunita desai



-Original Message-
From: sunita desai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 6:27 PM
To: Tomcat Users List
Subject: RE: (Help Needed!!)How to avoid the Default HTTP header being
sent from Servlet to Applet


Hi,

In addition to my problem definition in my earlier mail,
I would like to add following.
Actually I see that the header info is being sent from the Servlet to the
applet
everytime when it makes a URL connection to Servlet.
It is something like this:
200: OK
Date: Tue, 01 Oct 2002 12:53:14 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
content-length: 10363

But only sometimes the header info is also being treated as data and is
printed by the
Applet on the display area(TextArea). But only difference is when the header
is displayed by Applet, the content-length header is missing. So is this
problem anything to do with
proper setting of content-length before making Servlet call from the Applet?

I am clueless about this problem but struggling to close this display area.
I request you to please go through my problem description and provide
whatever clues/probable reasons so that ahead to solve it.
If you need more details, please let me know.

Thanks in advance,
Regards,
Sunita


-Original Message-
From: sunita desai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 2:44 PM
To: Tomcat Users List
Subject: How to avoid the Default HTTP header being sent from Servlet to
Applet


Hi,
To explain my problem, I have a plaing Applet-Servlet communication.
The servlet just reads an backend socket connection contents and keeps
sending every 50 lines of information to the Applet.
And the applet after receiving every 50 lines, displays it in TextArea
without interpreting the data.And invokes the Servlet again as a URL.

Sometimes, the Servlet is sending the default header along with the data
as given below, which distorts the actual data coming from the Socket
connection.

And infact I have not explicitly set any extra headers in the Servlet,nor
the headers are being sent with every invocation of Servlet.
It happends randomly,Please give any pointers or suggestions as to how I can
avoid these HTTP headers being sent from the Servlet?

I appreciate any help in this regard,
Thanks in advance,
Sunita

The display output before and after the error looks like this:


h323-ivr-out=reroute-count:0
h323-ivr out=route:INCCARRIER|Z1_SP_NTKG|11011|0|2|Z1_HK_OP|Z1_HK_
OP1_TG2|11009|0|
Acct_in_octets:742
Acct_out_octets:806
Acct_in_packets:39


HTTP/1.1 200 OK
Content-Type: text/html
Date: Wed, 18 Sep 2002 20:07:08 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)

5c
Acct_out_packets:46
1


62
Acct_session_time:20 secs
1


7d
h323-disconnect-time=10:54:56.709 EST Sun May 5 2002
1


63
h323-disconnect-cause=10
1


69
h323-remote-address=10.15.89.150
1


5d
h323-voice-quality=0
1


78
alert-timepoint=10:54:34.559 EST Sun May 5 2002
1


70
gw-rxd-cdn=ton:1,npi:1,#:0016141756
1


76
gw-final-xlated-cdn=ton:1,npi:1,#:6141756
1


73
gw-rxd-cgn=ton:4,npi:1,pi:0,si:1,#:8381756
1


59
info-type=speech
1


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat, JSSE, JAXM SOAP Problem

2002-10-01 Thread Cooperstock, Dan

Sorry, I posted this yesterday, but my !?@# MS e-mail client insisted on
sending it as HTML, and most of the posting was lost.

It seems like a lot of people have asked questions similar to the following
on this list, but never gotten a helpful answer. I'll be brave and post my
version of it!

I am using web services via the JAXM part of the Java XML pack. I have been
using it successfully, both from a small scaffolding pure Java app with a
main() method, and from within a JSP app running in Tomcat.

So far, I have been accessing the web services via http. Now I want to
access them via https (i.e. with secure encryption). So, as specified in
couple of Java Web Services / SOAP books I bought, I installed JSSE, and
added the following code to my app (before I call any web services):
   
System.setProperty(java.protocol.handler.pkgs, 
   com.sun.net.ssl.internal.www.protocol);
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());

I also then changed the URL I was calling the services on to an https URL.
(The provider of the services allows calling of them either way, with http
or https.) From the pure Java app with the main() method, this worked
perfectly.

Next, I copied exactly the same code changes (and yes, I've triple checked
them!) into my JSP web app. I put the JSSE jar files in the proper Tomcat
common/lib directory. I get an exception whose text is Bad URL: unknown
protocol: https.

Then I tried moving the JSSE jars from the Tomcat common\lib directory to
c:\jdk1.3.1\jre\lib\ext, the extension directory. Now, I get the following
exception:

javax.xml.soap.SOAPException: java.security.PrivilegedActionException
javax.xml.soap.SOAPException: Message send failed

Any ideas? Is Tomcat somehow changing the technology that the JAXM stuff
uses to call the service on the specified URL? How can I get around the
PrivilegedActionException?

By the way, since I'm not trying to run a secure copy of Tomcat, but rather
just trying to access secure (https) web services as a client from within
JSP pages running within Tomcat, I don't think anything about keystores or
certificates will be relevant. This thought is confirmed by the fact that
the plain Java main() program worked. Also, I created a keystore, and got my
Tomcat working securely, but it didn't make any difference to this main
problem.

Another interesting by the way is that I have tried exactly the same thing
with the Sun ONE Web Server serving as the JSP/Servlet container, rather
than Tomcat, and I get exactly the same behaviour!
-
Dan Cooperstock, Senior Technical Consultant, HEPCOE Credit Union
[EMAIL PROTECTED]  416-597-5055


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Performance testing

2002-10-01 Thread Kaltwasser, Jonathan LT (OP 09WN5B)

Saw a couple of posts recommending testing performance over weeks...what
program do ya'll recommend to load test a portal system I'm building.
Its a servlet/jsp based portal, with login and workplaces (that pull in
remote content).

What program do ya'll recommend to simulate a log on, move around the
site a little, then log off after a period of time...and then simulate
1,000-50,000 users doing the same thing?


Jon



Help - why is tomcat so slow in displaying each page?

2002-10-01 Thread andrew mercer

Hi,

I have recently had to convert from Jetty to tomcat for one of our 
customers.

The application is run from a war file that has in it among other things 
java classes and webmacro templates.

The main browser views are currently created using frames.

When I run the war file using jetty everything runs perfectly and fast.

However when I run using tomcat the frames take about 40 - 50 seconds to 
load.

The first frame loads fast but then I am waiting for the rest.

Once open if I then click a link that loads one template (with no 
frames) via a servlet into one of the visible frames then this can also 
take between 30 - 45 seconds.

Is there a way round this?

Is it someting to do with the configuaration.?

I could not see anything obvoius in the xml files nor could I see a 
similar question in the old mailing lists.

Thnks for your help in advance

Andrew Mercer
Software Developer


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread Mauro Daniel Ardolino

Hi!
I thought there was an answer to this question in the list, but I've
searched in tons of mails and didn't find it.

The fact is that we are starting to work more seriously with tomcat and we
really don't know which can be the best way to work in a team.
We have tomcat 4.1.12 running on a RH73.  There will be one person working
in this machine.  There are 2 more machines, one with RH62 and the other
with Win98 (We are using X-Win32 for the win98 to execute linux
applicarions).  
Well, all the applications are really running on the first machine, also
Tomcat.

The options:
1) have only one tomcat running on the RH73 and well...shout: shut down
tomcat!! (we don't like this option ;) ).
2) have 3 tomcats on the same machine and each of us using one of them.
3) have 1 tomcat and start it on 3 different ports (how can we do that?).
4) I heared about zones on tomcat that we can start and stop
separately...(I'm not sure).

I would like to hear your opinions.

Thanks in advance.

-- Mauro

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: Performance testing

2002-10-01 Thread Ralph Einfeldt

Some open + free solutions:
- ab
  a part of the apache web server
  http://httpd.apache.org/docs/programs/ab.html

- jMeter
  a part of the jakarta project
  http://jakarta.apache.org/jmeter/index.html

- Siege
  http://www.joedog.org/siege/index.shtml

Just free: (No money needed)
- http://webtool.rte.microsoft.com/ (Windows)

Not free, but a 30 day evaluation copy
- http://www.paessler.com/WebStress/webstress.htm (Windows)

Or have a look at 
http://www.softwareqatest.com/qatweb1.html#LOAD
for further references



 -Ursprüngliche Nachricht-
 Von: Kaltwasser, Jonathan LT (OP 09WN5B)
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 1. Oktober 2002 15:55
 An: Tomcat Users List
 Betreff: Performance testing
 
 
 Saw a couple of posts recommending testing performance over 
 weeks...what
 program do ya'll recommend to load test a portal system I'm building.
 Its a servlet/jsp based portal, with login and workplaces 
 (that pull in
 remote content).
 
 What program do ya'll recommend to simulate a log on, move around the
 site a little, then log off after a period of time...and then simulate
 1,000-50,000 users doing the same thing?
 
 
 Jon
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Rossen Raykov

Upgrade at least to Tomcat 4.0.4 where this problem is particularly solved.
I said particularly since the problem will still occur but it'll be handled
more gracefully without to sky rocket the CPU usage.
I'm not so sure will an upgrade to the latest mod_jk cure the problem
completely. I just moved to Jakarta Tomcat connectors jk-1.2.0 (released
last week) and so fare I didn't have time to observe the new system
behavior.

Regards,
Rossen Raykov

 -Original Message-
 From: Chris Read [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 5:09 AM
 To: 'Tomcat Users List'
 Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
 Greetings...
 
 Have you also noticed a spike in CPU usage on your Apache 
 server running
 mod_jk, or your network throughput?
 
 The reason I ask is we've got a similar problem here. We've 
 got a slightly
 different setup (Apache 1.3.x, mod_jk, Tomcat 4.0.3, Sun JDK 
 1.3.1 - all on
 Solaris), but the same symptoms. 
 
 Basically what we're seeing is sometimes mod_jk and the AJP13 
 connecter get
 stuck in an infinite loop spewing data at each other as fast 
 as possible
 (and always the same data: Tomcat asking for a BODY_CHUNK of 
 8186 bytes, and
 mod_jk replying with an empty packet). 
 
 The problem will only affect one connection at a time from 
 the pool, but
 will slowly step up one connection at a time. Restarting 
 either Tomcat or
 Apache solves the problem, but I've not been able to find any 
 info on this
 either. I've been trying for a few days to replicate the 
 problem on demand,
 but no luck yet
 
 Any of this sound familiar?
 
 Chris
 
 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 21:57
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
 Hi,
 
 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 
 7.1.  The java
 processes slowly take more and more CPU power.  After about a 
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc. 
  If I leave it
 running for more than three or four days, everything is VERY 
 slow.  Does
 anyone know why this happens and if it is normal?
 
 I have not been able to find an answer to this anywhere!
 
 Brandon
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Control Centre.
 
 This message has been checked for all known viruses by the 
 MessageLabs Virus Control Centre.
 
   
 *
 
 Notice:  This email is confidential and may contain copyright 
 material of Ocado Limited (the Company). Opinions and views 
 expressed in this message may not necessarily reflect the 
 opinions and views of the Company.
 If you are not the intended recipient, please notify us 
 immediately and delete all copies of this message. Please 
 note that it is your responsibility to scan this message for viruses.
 
 Company reg. no. 3875000.  Swallowdale Lane, Hemel Hempstead HP2 7PY
 
 *
 
 --
 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]




RE: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread Turner, John


#2. 

Basically, you have three instances of Tomcat, with separate environments.
Not that hard to setup.  I think Ralph Einfeldt posted a description of how
to do this within the last couple of weeks, or perhaps it was someone
else...my memory has been a little weak lately.

John

 -Original Message-
 From: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 11:05 AM
 To: [EMAIL PROTECTED]
 Subject: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
 
 
 Hi!
 I thought there was an answer to this question in the list, but I've
 searched in tons of mails and didn't find it.
 
 The fact is that we are starting to work more seriously with 
 tomcat and we
 really don't know which can be the best way to work in a team.
 We have tomcat 4.1.12 running on a RH73.  There will be one 
 person working
 in this machine.  There are 2 more machines, one with RH62 
 and the other
 with Win98 (We are using X-Win32 for the win98 to execute linux
 applicarions).  
 Well, all the applications are really running on the first 
 machine, also
 Tomcat.
 
 The options:
 1) have only one tomcat running on the RH73 and well...shout: 
 shut down
 tomcat!! (we don't like this option ;) ).
 2) have 3 tomcats on the same machine and each of us using 
 one of them.
 3) have 1 tomcat and start it on 3 different ports (how can 
 we do that?).
 4) I heared about zones on tomcat that we can start and stop
 separately...(I'm not sure).
 
 I would like to hear your opinions.
 
 Thanks in advance.
 
 -- Mauro
 
 -- 
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar
 
 
 
 --
 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]




Load balancing + replicated sessions

2002-10-01 Thread Luiz Ricardo

Hi,

I would like to know if there is a way to configure Tomcat + Apache to
replicate sessions under a load balancing configuration.

Example, I have two Tomcat instances (TC1 and TC2) and the session in TC1
would be replicated in TC2 and the sessions in TC2 would be replicated in
TC1, so if TC1 crashes the requests would be redirected to TC2 without lost
sessions and vice-versa.

Luiz Ricardo


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Load balancing + replicated sessions

2002-10-01 Thread Ben Ricker

See http://www.theserverside.com/resources/article.jsp?l=Tomcat. you can
do in memmory session replication across JVMs through TCP.

Ben Ricker

On Tue, 2002-10-01 at 09:29, Luiz Ricardo wrote:
 Hi,
 
 I would like to know if there is a way to configure Tomcat + Apache to
 replicate sessions under a load balancing configuration.
 
 Example, I have two Tomcat instances (TC1 and TC2) and the session in TC1
 would be replicated in TC2 and the sessions in TC2 would be replicated in
 TC1, so if TC1 crashes the requests would be redirected to TC2 without lost
 sessions and vice-versa.
 
 Luiz Ricardo
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread Ralph Einfeldt

As long as you just need one version of tomcat I recommend 
to install one tomcat with serveral instances.

As I can't find my own post in the archive (gives alway to 
many or to few results) here's the repost of my last mail:

We install different versions of tomcat like this:

/usr/local/java/tomcat-4.0.3
/usr/local/java/tomcat-4.1.10

For each site we have something like this:

/www/online/site
  /log
dirctory for the log file
  /conf
web.xml
server.xml
  and other files that contain the site specific setup for tomcat
  (tailored versions of the files that are provided by 
   tomcat)
  make shure that the combination of IP and port are unique for
  each instance of tomcat. 
...
  /work
Directory where tomcat stores the genared files and classes
  /webapps
 Directories for the contexts
  /bin
start.sh
  Script that calls the tomcat version that we want to use 
  for this site with the environment for this site:

  JAVA_HOME=/usr/local/java/jdk/sun1.3.1
  CATALINA_HOME=/usr/local/java/tomcat-4.0.3
  CATALINA_BASE=/www/online/site

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

 -Ursprüngliche Nachricht-
 Von: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 1. Oktober 2002 17:05
 An: [EMAIL PROTECTED]
 Betreff: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
 
 
 The options:
 1) have only one tomcat running on the RH73 and well...shout: 
 shut down tomcat!! (we don't like this option ;) ).
 2) have 3 tomcats on the same machine and each of us using 
 one of them.
 3) have 1 tomcat and start it on 3 different ports (how can 
 we do that?).
 4) I heared about zones on tomcat that we can start and stop
 separately...(I'm not sure).
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Documentation

2002-10-01 Thread Bruce Williams



 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 8:12 AM
 To: 'Tomcat Users List'
 Subject: RE: Documentation



  -Original Message-
  From: Glenn Nielsen [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 6:18 PM
 
  I would tend to agree with the above, those writing the code
  either don't
  have the inclination or time to write up good documentation.

 In my mind, these developers should be shot.  Or at least
 confined to a tiny
 little box for an extended period of time.  Or maybe just put
 in charge of a
 large data center running their software, and their email and
 cell phones
 the only contact info on the 24/7/365 call list.  Not to rant, but any
 developer, open source or not, that writes code but fails to
 provide good or
 better documentation at the same time is a poor developer,
 regardless of
 their technical skill, and regardless of their commitment or
 uncompensated
 participation.  I'm no developer, but even I know that
 documentation is
 key...I probably spend 60% of my sys-admin time writing
 recipes and docs for
 other people to descibe what and how I did the things I did
 in the other
 40%.

There is a big difference between writing policy and administrative doc,
and writing product documentation on a product that has a short release
cycle. I suppose you could have yearly releases with more polished
documentation, but the world is just moving faster than that so lighten
up? :-)

Bye,
Bruce Williams
 A complex system that works is invariably found to have evolved from a
simple system that worked.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread unix guy

I have found the best way is to have 1 tomcat running on 3 different ports.  It 
increased our throughput exponentially.  Just update the server.xml.  Also use 
loadbalancer in the mod_jk.conf and workers.properties.

Hope this helps.


- Original Message -
From: Mauro Daniel Ardolino [EMAIL PROTECTED]
Date: Tue, 1 Oct 2002 11:04:52 -0400 (ART)
To: [EMAIL PROTECTED]
Subject: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?


 Hi!
 I thought there was an answer to this question in the list, but I've
 searched in tons of mails and didn't find it.
 
 The fact is that we are starting to work more seriously with tomcat and we
 really don't know which can be the best way to work in a team.
 We have tomcat 4.1.12 running on a RH73.  There will be one person working
 in this machine.  There are 2 more machines, one with RH62 and the other
 with Win98 (We are using X-Win32 for the win98 to execute linux
 applicarions).  
 Well, all the applications are really running on the first machine, also
 Tomcat.
 
 The options:
 1) have only one tomcat running on the RH73 and well...shout: shut down
 tomcat!! (we don't like this option ;) ).
 2) have 3 tomcats on the same machine and each of us using one of them.
 3) have 1 tomcat and start it on 3 different ports (how can we do that?).
 4) I heared about zones on tomcat that we can start and stop
 separately...(I'm not sure).
 
 I would like to hear your opinions.
 
 Thanks in advance.
 
 -- Mauro
 
 -- 
 Ing.Mauro Daniel Ardolino
 Departamento de Desarrollo y Servicios
 Altersoft
 Billinghurst 1599 - Piso 9
 C1425DTE - Capital Federal
 Tel/Fax: 4821-3376 / 4822-8759
 mailto: [EMAIL PROTECTED]
 website: http://www.altersoft.com.ar
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

-- 
___
Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! 
http://www.net2phone.com/cgi-bin/link.cgi?143 




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Concurrency Problems

2002-10-01 Thread Tomcat Forum


Hi Everybody,
 Iam having some problems with simutaneous users on the Tomcat 4.0 
server. I have made a java client for testing Tomcat with multiple users. 
This client makes multiple threads with each requesting login and then some 
page from the tomcat server. But if I send more than 25 threads I start 
getting exceptions from the server like  java.net.ConnectException: 
Connection refused: connect.
 Can somebody please tell me what is the maximum number of simultaneous 
users Tomcat can support and is there any way to configure this?
I'll appericiate ur help.
Mandeep


_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: AW: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread Mauro Daniel Ardolino

Thank you very much!  I couldn't find this mail either.
I'll try it and if I have any questions I will post them.

Thanks again.

-- Mauro

On Tue, 1 Oct 2002, Ralph Einfeldt wrote:

 As long as you just need one version of tomcat I recommend 
 to install one tomcat with serveral instances.
 
 As I can't find my own post in the archive (gives alway to 
 many or to few results) here's the repost of my last mail:
 
 We install different versions of tomcat like this:
 
 /usr/local/java/tomcat-4.0.3
 /usr/local/java/tomcat-4.1.10
 
 For each site we have something like this:
 
 /www/online/site
   /log
 dirctory for the log file
   /conf
 web.xml
 server.xml
   and other files that contain the site specific setup for tomcat
   (tailored versions of the files that are provided by 
tomcat)
   make shure that the combination of IP and port are unique for
   each instance of tomcat. 
 ...
   /work
 Directory where tomcat stores the genared files and classes
   /webapps
  Directories for the contexts
   /bin
 start.sh
   Script that calls the tomcat version that we want to use 
   for this site with the environment for this site:
 
   JAVA_HOME=/usr/local/java/jdk/sun1.3.1
   CATALINA_HOME=/usr/local/java/tomcat-4.0.3
   CATALINA_BASE=/www/online/site
 
 Ralph Einfeldt
 Uptime Internet Solution Center GmbH
 Hamburg, Germany
 Hosting, Content Management, Java Consulting
 http://www.uptime-isc.de 
 
  -Ursprüngliche Nachricht-
  Von: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 1. Oktober 2002 17:05
  An: [EMAIL PROTECTED]
  Betreff: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
  
  
  The options:
  1) have only one tomcat running on the RH73 and well...shout: 
  shut down tomcat!! (we don't like this option ;) ).
  2) have 3 tomcats on the same machine and each of us using 
  one of them.
  3) have 1 tomcat and start it on 3 different ports (how can 
  we do that?).
  4) I heared about zones on tomcat that we can start and stop
  separately...(I'm not sure).
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread Mauro Daniel Ardolino

All right.  I'm pretty new working with tomcat and it will be very helpful
and example of this.  I do not even have the mod_jk.conf file anywhere,
or the workers.properties.
Thanks.

-- Mauro

On Tue, 1 Oct 2002, unix guy wrote:

 I have found the best way is to have 1 tomcat running on 3 different 
ports.  It increased our throughput exponentially.  Just update the 
server.xml.  Also use loadbalancer in the mod_jk.conf and workers.properties.
 
 Hope this helps.
 
 
 - Original Message -
 From: Mauro Daniel Ardolino [EMAIL PROTECTED]
 Date: Tue, 1 Oct 2002 11:04:52 -0400 (ART)
 To: [EMAIL PROTECTED]
 Subject: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
 
 
  Hi!
  I thought there was an answer to this question in the list, but I've
  searched in tons of mails and didn't find it.
  
  The fact is that we are starting to work more seriously with tomcat and we
  really don't know which can be the best way to work in a team.
  We have tomcat 4.1.12 running on a RH73.  There will be one person working
  in this machine.  There are 2 more machines, one with RH62 and the other
  with Win98 (We are using X-Win32 for the win98 to execute linux
  applicarions).  
  Well, all the applications are really running on the first machine, also
  Tomcat.
  
  The options:
  1) have only one tomcat running on the RH73 and well...shout: shut down
  tomcat!! (we don't like this option ;) ).
  2) have 3 tomcats on the same machine and each of us using one of them.
  3) have 1 tomcat and start it on 3 different ports (how can we do that?).
  4) I heared about zones on tomcat that we can start and stop
  separately...(I'm not sure).
  
  I would like to hear your opinions.
  
  Thanks in advance.
  
  -- Mauro
  
  -- 
  Ing.Mauro Daniel Ardolino
  Departamento de Desarrollo y Servicios
  Altersoft
  Billinghurst 1599 - Piso 9
  C1425DTE - Capital Federal
  Tel/Fax: 4821-3376 / 4822-8759
  mailto: [EMAIL PROTECTED]
  website: http://www.altersoft.com.ar
  
  
  
  --
  To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: mailto:[EMAIL PROTECTED]
  
  
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Load balancing + replicated sessions

2002-10-01 Thread Luiz Ricardo

thanks so much.

Luiz Ricardo
- Original Message -
From: Ben Ricker [EMAIL PROTECTED]
To: Tomcat-Users List [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 11:33 AM
Subject: Re: Load balancing + replicated sessions


 See http://www.theserverside.com/resources/article.jsp?l=Tomcat. you can
 do in memmory session replication across JVMs through TCP.

 Ben Ricker

 On Tue, 2002-10-01 at 09:29, Luiz Ricardo wrote:
  Hi,
 
  I would like to know if there is a way to configure Tomcat + Apache to
  replicate sessions under a load balancing configuration.
 
  Example, I have two Tomcat instances (TC1 and TC2) and the session in
TC1
  would be replicated in TC2 and the sessions in TC2 would be replicated
in
  TC1, so if TC1 crashes the requests would be redirected to TC2 without
lost
  sessions and vice-versa.
 
  Luiz Ricardo
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 --
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com


 --
 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]




Re: Concurrency Problems

2002-10-01 Thread Nick Sharples


Tomcat Forum writes:
   Iam having some problems with simutaneous users on the Tomcat 4.0 
  server. I have made a java client for testing Tomcat with multiple users. 
  This client makes multiple threads with each requesting login and then some 
  page from the tomcat server. But if I send more than 25 threads I start 
  getting exceptions from the server like  java.net.ConnectException: 
  Connection refused: connect.
   Can somebody please tell me what is the maximum number of simultaneous 
  users Tomcat can support and is there any way to configure this?
  I'll appericiate ur help.
  Mandeep

From memory it's 20 butI could be wrong, you set the maxProcessor
threads of the connector configuration in server.xml. 

..Nick

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Brandon Cruz


Glenn Neilson mentioned to me yesterday that I might want to use
the -verbose:gc command when starting tomcat so that I can see how garbage
collection is working.  I have done this but it does not seem to give me
much useful info.  Is there anything in particular that I should be looking
for?

Is there a good way to pinpoint the problem to the connector either by
looking at logs, setting a switch when I startup tomat, or anything else?  I
can't seem to find anything so far, who knows.


Brandon


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 7:19 AM
To: 'Tomcat Users List'
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???



I'm not sure it is Tomcat.

I have Tomcat 3.1 with Apache 1.3.26 and mod_jserv, many separate instances
of Tomcat.  My servers rarely go over 40% CPU, and my sites are not only
high-traffic but resource intensive (on-the-fly custom graphics
manipulation).  Uptime is 112 days.

I guess it could be a bug the showed up between Tomcat 3.1 and 3.2.4, but
more likely it is a combination of RH 7.1 (mine are 7.2), the connector
(which source of the connector are you using) and Tomcat.  The issue
could just as easily be in RH or the connector.

John


 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 4:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


 Hi,

 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat
 7.1.  The java
 processes slowly take more and more CPU power.  After about a
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.
  If I leave it
 running for more than three or four days, everything is VERY
 slow.  Does
 anyone know why this happens and if it is normal?

 I have not been able to find an answer to this anywhere!

 Brandon


 --
 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]




Re: MBeans?

2002-10-01 Thread Randy Secrist

I am building a custom user system which extends that which tomcat 4.1.12
did - basically an extended version of the UserDatabaseRealm and
UserDatabase - to meet a companies specific security needs.  As such, any
classes I write for this go into the server/lib directory.  I noticed I
could disable JMX support and everything worked fine... - but since this is
the first I have heard about JMX, I would like to know more about what JMX's
role is in J2EE systems.  Funny how new features in Tomcat somehow get me
introduced to new java libraries I never knew about...

I made the decision to do this for many reasons - but primarily because I
like the new administration features of 4.1.12, and (except for encoding
issues in realms), I like the catalina interface.

I have heard a lot of good things about JBoss - mostly integrating various
J2EE components - however I am not yet familiar enough with ejb's, and jms
to use them in a production environment.  Eventually, when I get out of
school, I will probably delve into it full time - but until then I need to
just figure out how to best provide good service to the companies that
supply my fledling family their bread and butter.  :)

Randy

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 6:40 AM
Subject: RE: MBeans?


Howdy,
What kind of bean what you like to add so that tomcat knows about it?

In the (current) tomcat world, there are two kind of MBeans: its own and
yours.  Yours are under your webapp, visible only to you, and tomcat
doesn't want to have anything to do with them.  Its own MBeans are
visible only to it, and you shouldn't have anything to do with them.
This might change in the future.

JBoss supports a nice dynamic MBean model.  It may be more suitable for
your task.  Which goes back to the original question, what exactly are
you trying to do?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Randy Secrist [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 11:01 PM
To: Tomcat Users List
Subject: MBeans?


Is there a way to append to the information kept in the MBean
descriptor
without having to modify the file in catalina.jar?  i.e. - is there a
way
to dynamically add MBeans so that TC knows about them at run time?

Does anyone know what I am talking about, or is this more geared for
the
developer's group?

Randy Secrist







 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.








 --
 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]




digital signatures with tomcat?

2002-10-01 Thread Jason Johnston

Does anyone know of any good references sites on implementing digital signatures, such 
as Entrust TruePass, with Tomcat?



Re: Concurrency Problems

2002-10-01 Thread peter lin


it all depends on the hardware, webapp and a whole bunch of other
things.

the best way to find out is to stress test it with varying level of
threads, preferably increased in regular increments.

once you get a baseline, you can then try increasing the max processors
in server.xml and repeat the same set of tests.

Do this as many times as needed to figure out what settings work best
for you.  Depending on your webapplication and the response time, you
may also want to try increasing the acceptCount.

Performance tuning takes time and consistent methodology.  It's also
beneficial to set a thresh-hold for what you consider to be reasonable
response time under heavy loads vs light loads.  hope that helps.


peter

Tomcat Forum wrote:
 
 Hi Everybody,
  Iam having some problems with simutaneous users on the Tomcat 4.0
 server. I have made a java client for testing Tomcat with multiple users.
 This client makes multiple threads with each requesting login and then some
 page from the tomcat server. But if I send more than 25 threads I start
 getting exceptions from the server like  java.net.ConnectException:
 Connection refused: connect.
  Can somebody please tell me what is the maximum number of simultaneous
 users Tomcat can support and is there any way to configure this?
 I'll appericiate ur help.
 Mandeep
 
 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com
 
 --
 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]




Re: HTTP Status 404

2002-10-01 Thread Thomas T. Veldhouse

I had this same problem with 4.1.10.  I was only able to get it to run by
stopping and restarting the container -- or deploying my app as a war.

Tom Veldhouse

- Original Message -
From: Glinn Cortez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 12:30 AM
Subject: HTTP Status 404


 Hello!

 I have this file hello.jsp located in the ..\webapps\hello.jsp. When I
 tried running in my browser like http://localhost:8080/hello.jsp, the
 following are displayed in the screen.


 Apache Tomcat/4.0.5 - HTTP Status 404 - /hello.jsp

 --
--

 type Status report

 message /hello.jsp

 description The requested resource (/hello.jsp) is not available.



 why is this so? is there some configuration other than bypassing the
 proxies set in LAN setting of my browser?...i need your help on this.


 r/gli







 --
 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] RE: Documentation

2002-10-01 Thread Turner, John



 -Original Message-
 From: Bruce Williams [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 10:56 AM
 To: Tomcat Users List
 Subject: RE: Documentation
 
 There is a big difference between writing policy and 
 administrative doc,
 and writing product documentation on a product that has a 
 short release
 cycle. I suppose you could have yearly releases with more polished
 documentation, but the world is just moving faster than that 
 so lighten
 up? :-)

As I pointed out, there is no release cycle in the Apache mode, and there is
no release cycle in open source.  You release when you feel the product is
ready for release, and no sooner.  You're also under no threat of liability
for providing something sub-standard, so there is no incentive to do so
other than laziness or a desire to be the first with the coolest instead
of second with the best.  No time is an invalid and illogical
argument...open source developers have nothing but time.  Maybe I'm in the
minority, but on the rare occasions I get to write applications, I'm much
more satisfied taking an extra day or week and delivering 100% of the
package instead of skipping that extra day or week and delivering 70%.

It's a very simple matter to include good documentation as a criteria for
judging when something should be released.  Problem solved.  The problem
users of open source experience is that a large portion of open source
developers typically use it works, there's no docs, but what do they expect
for free? as a release criteria.  Let's face it...many open source
developers get a kick out of saying my app had a certain feature before the
app from some-big-company instead of getting a kick out of I delivered the
best damn application package anyone has ever seen.  some-big-company
typically equals Microsoft, IBM, or Oracle.

Regarding my own docs, I can assure you they're not policy and
administrative docs.  Quite the opposite, and in my opinion a recipe for
building and deploying a production server, performing a security lock down
procdure, or any number of other procedures and processes, is usually much
more comprehensive than a document that says this function does X and takes
these 3 parameters as arguments.  There's a difference between an
explanatory document and a step-by-step guide for implementing a solution.

I'm not knocking open source developers themselves, only their tendency to
avoid providing comprehensive documentation at the same time as providing
the application they developed.  I honestly can't think of a single logical
argument to support not releasing acceptable documentation.  What good is
spending your own time and effort for free to produce something for people
to use if they don't know how to use it and you won't tell them?  It makes
much more sense to have as big a user-base as you can possibly have, and it
gives you a much better return on your time and effort.  One of the best
ways to increase your user-base is not to decrease (or eliminate) the price,
but to help more people understand how to use what you gave them or what is
available to them.

John



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Doubt about multiple applications

2002-10-01 Thread Ricardo de Souza Moura

I am using Tomcat 4.0...
I have two applications, A and B

in the lib directory of A I have a file1.jar, and in the lib directory of B 
I have the same file, file1.jar.

I am not wanting to put my file file1.jar in the lib directory of Tomcat.

But when the Tomcat load the applications, only one get access this 
resource, file1.jar. Why ?

Only one application works...

But if I put only one application by time all works 

Sorry my bad English !!!
Thanks !!!

_
MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
fotos: http://photos.msn.com.br


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread Turner, John


Multiple instances of Tomcat is a better way to go, see Ralph's explanation
posted previously in this thread.  One instance of Tomcat, even on multiple
ports, means that everyone will wait while one person does maintenance or
stops and starts Tomcat.  It's much more productive to give every one their
own environment to do as they wish.

That said, it would also make a lot more sense to have your 3 developers use
an OS that is more conducive to development.  Tomcat is a reference
implementation...if an app works on Tomcat on a Redhat box it will work on
Tomcat on a Windows box.  We have 3 developers right now working on a new
app...each has Tomcat installed on their machine.  The staging and
production servers are Redhat...so far there have been no problems deploying
apps developed on Windows to the Redhat servers.

John


 -Original Message-
 From: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 11:59 AM
 To: Tomcat Users List
 Subject: Re: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
 
 
 All right.  I'm pretty new working with tomcat and it will be 
 very helpful
 and example of this.  I do not even have the mod_jk.conf file 
 anywhere,
 or the workers.properties.
 Thanks.
 
 -- Mauro
 
 On Tue, 1 Oct 2002, unix guy wrote:
 
  I have found the best way is to have 1 tomcat running on 3 
 different 
 ports.  It increased our throughput exponentially.  Just update the 
 server.xml.  Also use loadbalancer in the mod_jk.conf and 
 workers.properties.
  
  Hope this helps.
  
  
  - Original Message -
  From: Mauro Daniel Ardolino [EMAIL PROTECTED]
  Date: Tue, 1 Oct 2002 11:04:52 -0400 (ART)
  To: [EMAIL PROTECTED]
  Subject: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
  
  
   Hi!
   I thought there was an answer to this question in the 
 list, but I've
   searched in tons of mails and didn't find it.
   
   The fact is that we are starting to work more seriously 
 with tomcat and we
   really don't know which can be the best way to work in a team.
   We have tomcat 4.1.12 running on a RH73.  There will be 
 one person working
   in this machine.  There are 2 more machines, one with 
 RH62 and the other
   with Win98 (We are using X-Win32 for the win98 to execute linux
   applicarions).  
   Well, all the applications are really running on the 
 first machine, also
   Tomcat.
   
   The options:
   1) have only one tomcat running on the RH73 and 
 well...shout: shut down
   tomcat!! (we don't like this option ;) ).
   2) have 3 tomcats on the same machine and each of us 
 using one of them.
   3) have 1 tomcat and start it on 3 different ports (how 
 can we do that?).
   4) I heared about zones on tomcat that we can start and stop
   separately...(I'm not sure).
   
   I would like to hear your opinions.
   
   Thanks in advance.
   
   -- Mauro
   
   -- 
   Ing.Mauro Daniel Ardolino
   Departamento de Desarrollo y Servicios
   Altersoft
   Billinghurst 1599 - Piso 9
   C1425DTE - Capital Federal
   Tel/Fax: 4821-3376 / 4822-8759
   mailto: [EMAIL PROTECTED]
   website: http://www.altersoft.com.ar
   
   
   
   --
   To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
  
  
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


--
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]




Applet can't find trusted certificate

2002-10-01 Thread Monte . Gardner

I just upgraded our red-hat 7.1 server from tomcat 4.1.10 to Tomcat 4.1.12.  I
have an applet on that server which connects to a Servlet on the same
server.  The applet needs to be able to connect to the servlet over an https
connection. When I connect over normal http everything works find, but when I
change to https the applet throws an SSLException stating that it 
couldn't find the trusted certificate.  Is there anything I can do to try and 
fix this?

I'm using Konqueror as a web Browser, and that may be part of the problem.

--Monte Glenn Gardner



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




[OFF TOPIC] in-process spell check?

2002-10-01 Thread Turner, John


Does anyone know of, or have a pointer to, a software application or module
that will perform spell checking on text submitted from a form?

The scenario is Tomcat + Apache, JSPs, classes, and servlets.  The idea
being that if someone accesses a web page, fills out a form, and then
submits it, the text submitted is spell checked, and appropriate action
taken depending on the result of the spell check.

Preferably something that requires little modification to existing code, and
handles major international languages (French, German, etc).  Open source
preferred, but commercial apps are no problem.

Many thanks in advance for any information.

- John


John Turner
[EMAIL PROTECTED] | 248-488-3466
Advertising Audit Service
http://www.aas.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: [OFF TOPIC] in-process spell check?

2002-10-01 Thread Turner, John


Sorry about that...I meant to add also that I have some pointers already via
Google, what I am really looking for are some recommendations from people
who have implemented this type of solution in the past.  

Thanks!

John


 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 11:22 AM
 To: '[EMAIL PROTECTED]'
 Subject: [OFF TOPIC] in-process spell check?
 
 
 
 Does anyone know of, or have a pointer to, a software 
 application or module
 that will perform spell checking on text submitted from a form?
 
 The scenario is Tomcat + Apache, JSPs, classes, and servlets. 
  The idea
 being that if someone accesses a web page, fills out a form, and then
 submits it, the text submitted is spell checked, and 
 appropriate action
 taken depending on the result of the spell check.
 
 Preferably something that requires little modification to 
 existing code, and
 handles major international languages (French, German, etc).  
 Open source
 preferred, but commercial apps are no problem.
 
 Many thanks in advance for any information.
 
 - John
 
 
 John Turner
 [EMAIL PROTECTED] | 248-488-3466
 Advertising Audit Service
 http://www.aas.com
 
 
 --
 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]




RE: MBeans?

2002-10-01 Thread Shapira, Yoav

Hi,


I am building a custom user system which extends that which tomcat
4.1.12
did - basically an extended version of the UserDatabaseRealm and
UserDatabase - to meet a companies specific security needs.  As such,
any

Sounds interesting...

classes I write for this go into the server/lib directory.  I noticed I
could disable JMX support and everything worked fine... - but since
this is

True.

the first I have heard about JMX, I would like to know more about what
JMX's
role is in J2EE systems.  Funny how new features in Tomcat somehow get
me
introduced to new java libraries I never knew about...

Check out http://www.onjava.com/pub/st/42

I made the decision to do this for many reasons - but primarily because
I
like the new administration features of 4.1.12, and (except for
encoding
issues in realms), I like the catalina interface.

Yup.

Except they weren't designed to be as extensible as you'd like them to,
with generic MBean support like JBoss provides. ;0

I have heard a lot of good things about JBoss - mostly integrating
various
J2EE components - however I am not yet familiar enough with ejb's, and
jms
to use them in a production environment.  Eventually, when I get out of

You don't need to use them if you use JBoss.  Part of the fun of a J2EE
server is that you only use the pieces you need, but if you find that
you need something else, it's usually already available.  So I'd suggest
you try JBoss, integrated with tomcat, for the best of both worlds ;)
Use JBoss' advanced and yet easy to use MBean support, and tomcat for
servlets / JSPs, etc.

Good luck,

Yoav Shapira
Millennium ChemInformatics


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Problem with mod_jk.so

2002-10-01 Thread Ben Ricker

Just to let everyone know, I downloaded John Turner's mod_jk.so and the
problem went away (have not finished testing, however). The URL is:
http://www.johnturner.com/howto/apache-tomcat-howto.html.

Thanks to John!

Ben Ricker 

On Mon, 2002-09-30 at 12:53, Ben Ricker wrote:
 On Mon, 2002-09-30 at 12:08, Turner, John wrote:
  The reason I ask is that the ap* functions are 1.3, and I usually see error
  messages about ap_table_get and similar when either an Apache 2.0 module is
  being used with Apache 1.3, or vice versa.
  
  John
 
 This may add some info: I compiled Apache with ApacheToolbox. The
 modules are static but it has DSO support in it. Then again, I would
 expect an error much earlier in the load process then an undefined
 symbol.
 
 I cannot guarantee that it IS the 1.3 connectorthe filename suggests
 it is.
 
 Ben Ricker
 
  
   -Original Message-
   From: Ben Ricker [mailto:[EMAIL PROTECTED]]
   Sent: Monday, September 30, 2002 1:01 PM
   To: Tomcat Users List
   Subject: RE: Problem with mod_jk.so
   
   
   On Mon, 2002-09-30 at 11:53, Turner, John wrote:
Which one did you download?  EAPI or no EAPI?
   
   No EAPI...As the download site says:
   
 * mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl
   
   I do not have mod_ssl installed. Verified that through httpd-l.
   
   Ben
   
John


 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 12:27 PM
 To: Tomcat Users List
 Subject: Problem with mod_jk.so
 
 
 I downloaded the binary of mod_jk.so from Jakarta's downloads in
 /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
 i386. I am
 running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux 
   release 7.1
 (Seawolf). The binary is compiled for 7.2, however. That may 
 explain the
 following error when trying to start Apache:
 
 
 [root@dev bin]# ./apachectl configtest
 Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
 Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
 server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
 symbol: ap_ctx_get
 
 Any ideas? Do I need to upgrade gcc, possibly? What do the 
 binaries rely upon?
 
 Thanks in advance,
 
 Ben Ricker
 
 -- 
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 --
 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]
  -- 
  Ben Ricker [EMAIL PROTECTED]
  Wellinx.com
  
  
  --
  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]
 -- 
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?

2002-10-01 Thread Mauro Daniel Ardolino

Thanks! See below...
 
 Multiple instances of Tomcat is a better way to go, see Ralph's explanation
 posted previously in this thread.  One instance of Tomcat, even on multiple
 ports, means that everyone will wait while one person does maintenance or
 stops and starts Tomcat.  It's much more productive to give every one their
 own environment to do as they wish.
OK.  That's what we want: not to have to wait each other.

 That said, it would also make a lot more sense to have your 3 developers use
 an OS that is more conducive to development.  Tomcat is a reference
 implementation...if an app works on Tomcat on a Redhat box it will work on
 Tomcat on a Windows box.  We have 3 developers right now working on a new
 app...each has Tomcat installed on their machine.  The staging and
 production servers are Redhat...so far there have been no problems deploying
 apps developed on Windows to the Redhat servers.
May be better, but we want to have our applications installed in only one
machine (Enterprise Policy).  Anyway I think we can install tomcat 3 times
in different folders (on the RH73) and start then on different ports.
On the other hand yesterday I was working with Tomcat on Windows and
today I'm doing it on Redhat, and as you say...no problem.

-- Mauro

 
  -Original Message-
  From: Mauro Daniel Ardolino [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 01, 2002 11:59 AM
  To: Tomcat Users List
  Subject: Re: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
  
  
  All right.  I'm pretty new working with tomcat and it will be 
  very helpful
  and example of this.  I do not even have the mod_jk.conf file 
  anywhere,
  or the workers.properties.
  Thanks.
  
  -- Mauro
  
  On Tue, 1 Oct 2002, unix guy wrote:
  
   I have found the best way is to have 1 tomcat running on 3 
  different 
  ports.  It increased our throughput exponentially.  Just update the 
  server.xml.  Also use loadbalancer in the mod_jk.conf and 
  workers.properties.
   
   Hope this helps.
   
   
   - Original Message -
   From: Mauro Daniel Ardolino [EMAIL PROTECTED]
   Date: Tue, 1 Oct 2002 11:04:52 -0400 (ART)
   To: [EMAIL PROTECTED]
   Subject: WHICH IS THE BEST WAY TO HAVE MULTIPLE TOMCAT SERVERS?
   
   
Hi!
I thought there was an answer to this question in the 
  list, but I've
searched in tons of mails and didn't find it.

The fact is that we are starting to work more seriously 
  with tomcat and we
really don't know which can be the best way to work in a team.
We have tomcat 4.1.12 running on a RH73.  There will be 
  one person working
in this machine.  There are 2 more machines, one with 
  RH62 and the other
with Win98 (We are using X-Win32 for the win98 to execute linux
applicarions).  
Well, all the applications are really running on the 
  first machine, also
Tomcat.

The options:
1) have only one tomcat running on the RH73 and 
  well...shout: shut down
tomcat!! (we don't like this option ;) ).
2) have 3 tomcats on the same machine and each of us 
  using one of them.
3) have 1 tomcat and start it on 3 different ports (how 
  can we do that?).
4) I heared about zones on tomcat that we can start and stop
separately...(I'm not sure).

I would like to hear your opinions.

Thanks in advance.

-- Mauro

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar



--
To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
   
   
  
  
 
 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Problem with mod_jk.so

2002-10-01 Thread Turner, John


No problem, glad I could help.

John


 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 11:36 AM
 To: 'Tomcat Users List'
 Subject: RE: Problem with mod_jk.so
 
 
 Just to let everyone know, I downloaded John Turner's 
 mod_jk.so and the
 problem went away (have not finished testing, however). The URL is:
 http://www.johnturner.com/howto/apache-tomcat-howto.html.
 
 Thanks to John!
 
 Ben Ricker 
 
 On Mon, 2002-09-30 at 12:53, Ben Ricker wrote:
  On Mon, 2002-09-30 at 12:08, Turner, John wrote:
   The reason I ask is that the ap* functions are 1.3, and I 
 usually see error
   messages about ap_table_get and similar when either an 
 Apache 2.0 module is
   being used with Apache 1.3, or vice versa.
   
   John
  
  This may add some info: I compiled Apache with ApacheToolbox. The
  modules are static but it has DSO support in it. Then again, I would
  expect an error much earlier in the load process then an undefined
  symbol.
  
  I cannot guarantee that it IS the 1.3 connectorthe 
 filename suggests
  it is.
  
  Ben Ricker
  
   
-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 1:01 PM
To: Tomcat Users List
Subject: RE: Problem with mod_jk.so


On Mon, 2002-09-30 at 11:53, Turner, John wrote:
 Which one did you download?  EAPI or no EAPI?

No EAPI...As the download site says:

  * mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl

I do not have mod_ssl installed. Verified that through httpd-l.

Ben

 John
 
 
  -Original Message-
  From: Ben Ricker [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 12:27 PM
  To: Tomcat Users List
  Subject: Problem with mod_jk.so
  
  
  I downloaded the binary of mod_jk.so from Jakarta's 
 downloads in
  
 /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
  i386. I am
  running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux 
release 7.1
  (Seawolf). The binary is compiled for 7.2, however. 
 That may 
  explain the
  following error when trying to start Apache:
  
  
  [root@dev bin]# ./apachectl configtest
  Syntax error on line 208 of 
 /usr/local/apache-new/conf/httpd.conf:
  Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
  server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
  symbol: ap_ctx_get
  
  Any ideas? Do I need to upgrade gcc, possibly? What do the 
  binaries rely upon?
  
  Thanks in advance,
  
  Ben Ricker
  
  -- 
  Ben Ricker [EMAIL PROTECTED]
  Wellinx.com
  
  
  --
  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]
   -- 
   Ben Ricker [EMAIL PROTECTED]
   Wellinx.com
   
   
   --
   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]
  -- 
  Ben Ricker [EMAIL PROTECTED]
  Wellinx.com
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 -- 
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com
 
 
 --
 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]




  1   2   >