session and DB count

2003-03-18 Thread Nandish A
Hi All,
Is there any way i can check no. of session and database connections created 
by Tomcat. I am using 4.1.12 and 4.1.17 on windows platform. Any 
information/hint/clue... is highly appricated

Thanks and Regards
Nandish

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



Multiple hits on tomcat

2003-03-18 Thread Sudhir Kumar
hi,
i have a jsp application. each page has got more than one links. if i
click on one link and before it actually opens that page, i will click on
the other link.. and keep doing it continuously, The tomcat crashes, It
gives Invalid handle
exception, soemtimes it gives null pointer exception. How can i stop this.
Please help..

Thanks and best regards
Sudhir


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



JK2 ISAPI Redirector 2.0.2 with IIS 5.0 produces excessivbe warnings

2003-03-18 Thread Robert Biernat
Hi,

Just updated my system to use the following config:

Tomcat 4.1.18 (Running as Win2K Service)
JK2 ISAPI Redirector 2.0.2
IIS 5.0
JDK 1.4.1_02
Win2K SP3

I have successfully managed to get IIS to talk to tomcat ok using the latest
ISAPI redirector. However after examining the event log I'm getting heeps
and heeps of warnings generated by the Apache JK Connector 2. The warnings
are pretty consistent and always appear in groups of 3 that inlcude the
following:

Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable
error 12

Error: [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading
reply

Error: [jk_channel_socket.c (557)]: channelSocket.receive(): Error receiving
message body -1 0

Is this something I should be worrying about? If so how can i stop the
redirector from logging these to the event log?

Thanks

Rob


Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

2003-03-18 Thread lunasahu
This is the error during jsp execution.
How to solve this error;


 


Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error





type Exception report


message Internal Server Error


description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.


exception 


javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Unknown Source)



root cause 


java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at 

AW: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

2003-03-18 Thread Janz, Alexander
hi,

look for tools.jar. This file must be in the classpath.

greetings
alexander



 -Ursprüngliche Nachricht-
 Von:  lunasahu [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Dienstag, 18. März 2003 09:44
 An:   [EMAIL PROTECTED]
 Betreff:  Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server
 Error
 
 This is the error during jsp execution.
 How to solve this error;
 
 
  
 
 
 Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
 
 
 --
 --
 
 
 type Exception report
 
 
 message Internal Server Error
 
 
 description The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 
 
 exception 
 
 
 javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
 onFilterChain.java:247)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
 Chain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
 java:243)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :566)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
 java:201)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :566)
  at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBa
 se.java:472)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :564)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
 64)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :566)
  at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv
 e.java:170)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :564)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
 70)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :564)
  at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :564)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
 va:163)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :566)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.jav
 a:1011)
  at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:11
 06)
  at java.lang.Thread.run(Unknown Source)
 
 
 
 root cause 
 
 
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
  at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:12
 8)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
 Servlet.java:177)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
 java:189)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
 onFilterChain.java:247)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
 Chain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
 java:243)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :566)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
 )
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
 java:201)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
 :566)
  at
 

RE: Server.xml

2003-03-18 Thread graghupathy
Okie dokie !..
Send me the following information ...

Context path ( the URL ) the directory ( full path ) you want to put your
jsp/servlets 
Your OS ( UNIX / WINDOWS / LINUX ) ...

Then I can help .

Guru

-Original Message-
From: Hunter, Sandra [mailto:[EMAIL PROTECTED]
Sent: 17 March 2003 21:00
To: 'Tomcat Users List'
Subject: Server.xml



Frustration abounds:
I am plodding through a tomcat tutorial and it suggests modifying the
Server.xml file to include a new context path line to allow for playing with
a sample file.
Everything works tickety boo until I do that, then Tomcat won't startup at
all. When I enter the startup command I just get a really brief flash of
screen and poof! It's gone again.
When I take the new line out of the server.xml file the problem persists:
poof! Gone.
That is the only change I make.
Any thoughts?

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

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



Re: How to turn on secure (MD5 Digest) version of WebDAV?

2003-03-18 Thread Basil Bourque

I am just using the memory realm (by default).

So do you just use DIGEST to turn on the MD5 secure logon?
   auth-methodDIGEST/auth-method
--Basil Bourque

What Security Realm are you using? JDBC,JNDI, MemoryRealm?
I have had problems with DIGEST authentication for JDBC and JNDIRealm.
I had to implement getPassword() and getPrincipal() methods to make it 
work
with digest authentication.

-- Uddhav

- Original Message -
From: Basil Bourque [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 7:54 AM
Subject: How to turn on secure (MD5 Digest) version of WebDAV?

How does one turn on the secure logon feature (MD5 Digest) in Tomcat's
WebDAV server?
I cannot find any documentation on the auth-method parameter in the
virtual host's web.xml file:
   login-config
 auth-methodBASIC/auth-method
 realm-nameTomcat Supported Realm/realm-name
   /login-config


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


tomcat 4.118 + apache 1.3 + mod_jk

2003-03-18 Thread andrea antibo
Hi,
I have a tomcat 4.06 that work fine with apache 1.3 and mod_jk, now i'd like 
to work with tomcat 4.118, but it doesn't work.

Whan i call jsp pages i get this error : internal server error

I have this config files:

on httpd.conf
--
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
AddModule mod_jk.c

VirtualHost 192.168.1.200
JkWorkersFile /var/tomcat/conf/jk/workers.properties
JkLogFile /var/log/apache/mod_jk.log
JkLogLevel info
DocumentRoot /var/tomcat/webapps/myapp
ServerName myapp
Alias /medweb /var/tomcat/webapps/myapp
JkMount /*.jsp ajp3
JkMount /servlet/* ajp3
/VirtualHost
---


on server.xml



Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/lib/apache/1.3/mod_jk.so /

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

Host name=myapp debug=0 appBase=webapps unpackWARs=true

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig   
 
append=true forwardAll=false modJk=/usr/lib/apache/1.3/mod_jk.so /

Context path= docBase=myapp
 debug=0 privileged=true/

/Host

-

on worker.properties

---

worker.list = ajp13
worker.ajp13.port=8009
worker.ajp13.host=192.168.1.200
worker.ajp13.type=ajp13




I get mod_jk.so from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/linux/i386/
and i read 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html.



bye














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



catalina log

2003-03-18 Thread Kapil Sharma
Hi,
I am getting the following messages in my catalina log file:

2003-03-18 09:42:29 StandardEngine[Main]: Mapping server name 'foo1'
2003-03-18 09:42:29 StandardEngine[Main]:  Trying a direct match
2003-03-18 09:42:29 StandardEngine[Main]:  Trying an alias match
2003-03-18 09:42:29 StandardEngine[Main]:  Trying the default host

Is it a normal message or something is wrong. I hjave disable enablelookups
in server.xml

kapil


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



RE: tomcat 4.118 + apache 1.3 + mod_jk

2003-03-18 Thread graghupathy
send me the whole server.xml please ( you can email it to me personally as
well ) ...

guru

-Original Message-
From: andrea antibo [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 09:50
To: Tomcat Users List
Subject: tomcat 4.118 + apache 1.3 + mod_jk


Hi,
I have a tomcat 4.06 that work fine with apache 1.3 and mod_jk, now i'd like

to work with tomcat 4.118, but it doesn't work.

Whan i call jsp pages i get this error : internal server error

I have this config files:

on httpd.conf
--
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
AddModule mod_jk.c

VirtualHost 192.168.1.200
JkWorkersFile /var/tomcat/conf/jk/workers.properties
JkLogFile /var/log/apache/mod_jk.log
JkLogLevel info
DocumentRoot /var/tomcat/webapps/myapp
ServerName myapp
Alias /medweb /var/tomcat/webapps/myapp
JkMount /*.jsp ajp3
JkMount /servlet/* ajp3
/VirtualHost
---


on server.xml



Server port=8005 shutdown=SHUTDOWN debug=0
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=/usr/lib/apache/1.3/mod_jk.so /

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

Host name=myapp debug=0 appBase=webapps unpackWARs=true

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig

append=true forwardAll=false modJk=/usr/lib/apache/1.3/mod_jk.so /

Context path= docBase=myapp
 debug=0 privileged=true/

/Host

-

on worker.properties

---

worker.list = ajp13
worker.ajp13.port=8009
worker.ajp13.host=192.168.1.200
worker.ajp13.type=ajp13




I get mod_jk.so from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1
/bin/linux/i386/
and i read 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/aphowto.html.



bye














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

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



RE: catalina log

2003-03-18 Thread Nandish A
probably you have a debug value greater than 0(zero) if you make it to 0 you will not 
get it

-Original Message-
From:   Kapil Sharma [SMTP:[EMAIL PROTECTED]
Sent:   Tuesday, March 18, 2003 3:17 PM
To: Tomcat Users List
Subject:catalina log

Hi,
I am getting the following messages in my catalina log file:

2003-03-18 09:42:29 StandardEngine[Main]: Mapping server name 'foo1'
2003-03-18 09:42:29 StandardEngine[Main]:  Trying a direct match
2003-03-18 09:42:29 StandardEngine[Main]:  Trying an alias match
2003-03-18 09:42:29 StandardEngine[Main]:  Trying the default host

Is it a normal message or something is wrong. I hjave disable enablelookups
in server.xml
[Nandish S Angadi]  yes it is a normal message

kapil


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

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

Re: JK2 ISAPI Redirector 2.0.2 with IIS 5.0 produces excessivbe warnings

2003-03-18 Thread Konrad Rusz
Hello Robert.

If You want to stop jk2 logging in Windows Application Log, You ought to do
a few simple things:
the most important things are placed in 'workers2.properties' file. You
should
change entries 'LEVEL' and 'debug' whenever they are (e.g.: LEVEL=emerg;
debug=3  - if  You do not wish to see error, debug and info logs). The
values for 'debug' we
may find in 'jk_logger.h' file. There are:

 #define JK_LOG_DEBUG_LEVEL 0
 #define JK_LOG_INFO_LEVEL  1
 #define JK_LOG_ERROR_LEVEL 2
 #define JK_LOG_EMERG_LEVEL 3

 #define JK_LOG_DEBUG_VERB   debug
 #define JK_LOG_INFO_VERBinfo
 #define JK_LOG_ERROR_VERB   error
 #define JK_LOG_EMERG_VERB   emerg

It should works properly, although I tested only with values as these:
'LEVEL=ERROR' and 'debug=2' (I see, of course, only error logs in Windows
Application Log). Try to add this value:
logLevel=emerg
into Your registry keys [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software
Foundation\Jakarta Isapi Redirector\2.0]
but in my case it was not needed.

All the best,
Konrad Rusz



- Original Message -
From: Robert Biernat [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 9:51 AM
Subject: JK2 ISAPI Redirector 2.0.2 with IIS 5.0 produces excessivbe
warnings


 Hi,

 Just updated my system to use the following config:

 Tomcat 4.1.18 (Running as Win2K Service)
 JK2 ISAPI Redirector 2.0.2
 IIS 5.0
 JDK 1.4.1_02
 Win2K SP3

 I have successfully managed to get IIS to talk to tomcat ok using the
latest
 ISAPI redirector. However after examining the event log I'm getting heeps
 and heeps of warnings generated by the Apache JK Connector 2. The
warnings
 are pretty consistent and always appear in groups of 3 that inlcude the
 following:

 Error: [jk_worker_ajp13.c (416)]: ajp13.service() ajpGetReply recoverable
 error 12

 Error: [jk_workerEnv.c (482)]: workerEnv.processCallbacks() Error reading
 reply

 Error: [jk_channel_socket.c (557)]: channelSocket.receive(): Error
receiving
 message body -1 0

 Is this something I should be worrying about? If so how can i stop the
 redirector from logging these to the event log?

 Thanks

 Rob



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



Question about AutoDeployment Feature of 4.1.18

2003-03-18 Thread Gerstel, Rachel

Hi All,

Could someone please confirm how autoDeploy is supposed to work:

You put a war file into webapps and then:

1.) Either restart the webserver and the war file is unpacked and a
directory is created.

or

2.) Use the manager tool to deploy the war file - or if the app was already
there, then it can reload it.

Is it possible for you to copy of war file into webapps and a running tomcat
server will see it is there an automatically deploy it on it's own with no
intervention?

And, if the old unpacked app is there and you copy in a new war file and
restart - does it create a new directory, overwriting the old one. Or should
it only change files that are different from the new war file and the old
app - or should it see that there is an old app that hasn't been removed and
do nothing?

I have been reading up on this and then got a developer account that
differed from what I read so I was wondering if anyone else could clarify it
further.

Thanks,
Rachel

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



RE: Question about AutoDeployment Feature of 4.1.18

2003-03-18 Thread graghupathy
One thing you can do is in the host unpackWARs=false and 
then each time you put your war file it will use the latest one ..
Hope this helps 


-Original Message-
From: Gerstel, Rachel [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 10:57
To: 'Tomcat Users List'
Subject: Question about AutoDeployment Feature of 4.1.18



Hi All,

Could someone please confirm how autoDeploy is supposed to work:

You put a war file into webapps and then:

1.) Either restart the webserver and the war file is unpacked and a
directory is created.

or

2.) Use the manager tool to deploy the war file - or if the app was already
there, then it can reload it.

Is it possible for you to copy of war file into webapps and a running tomcat
server will see it is there an automatically deploy it on it's own with no
intervention?

And, if the old unpacked app is there and you copy in a new war file and
restart - does it create a new directory, overwriting the old one. Or should
it only change files that are different from the new war file and the old
app - or should it see that there is an old app that hasn't been removed and
do nothing?

I have been reading up on this and then got a developer account that
differed from what I read so I was wondering if anyone else could clarify it
further.

Thanks,
Rachel

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

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



Re: Question about AutoDeployment Feature of 4.1.18

2003-03-18 Thread Jamesey
Rachel

I been using 4.1.18 alot lately and i've been frustrated by the fact that i
have to delete the unpacked war file directory  and the war file itself
every time i redeploy.. i beleive there is a way to make tomcat not unpack
the war file .. something lik host unpackWar=false but i havent tried it
myself.

James


Gerstel, Rachel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
om...

 Hi All,

 Could someone please confirm how autoDeploy is supposed to work:

 You put a war file into webapps and then:

 1.) Either restart the webserver and the war file is unpacked and a
 directory is created.

 or

 2.) Use the manager tool to deploy the war file - or if the app was
already
 there, then it can reload it.

 Is it possible for you to copy of war file into webapps and a running
tomcat
 server will see it is there an automatically deploy it on it's own with no
 intervention?

 And, if the old unpacked app is there and you copy in a new war file and
 restart - does it create a new directory, overwriting the old one. Or
should
 it only change files that are different from the new war file and the old
 app - or should it see that there is an old app that hasn't been removed
and
 do nothing?

 I have been reading up on this and then got a developer account that
 differed from what I read so I was wondering if anyone else could clarify
it
 further.

 Thanks,
 Rachel




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



RE: Question about AutoDeployment Feature of 4.1.18

2003-03-18 Thread Gerstel, Rachel
I want to make sure that I have configured it correctly and it is running
the way it should - for the developers with regard to actually deploying
automagically.

They want to be able to add a war file into webapps - while the server is
running - and it is automatically deployed with no intervention - either
from a server restart or via the manager.

I found this on the doc page for AutomaticApplicationDeployment(
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%2
0Application%20Deployment ):

In addition to the automatic deployment that occurs at startup time, you
can also request that new XML configuration files, WAR files, or
subdirectories (containing web applications) that are dropped in to the
appBase directory while Tomcat is running will be automatically deployed,
according to the rules described above.

I was told this does happen in NT, but it doesn't seem to be working on my
unix box - host set-up as follows:

  Host name=coffee addressip.is.here debug=0 appBase=webapps
unpackWARs=true autoDeploy=true

Thanks again,
Rachel
-Original Message-
From: Jamesey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 12:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about AutoDeployment Feature of 4.1.18


Rachel

I been using 4.1.18 alot lately and i've been frustrated by the fact that i
have to delete the unpacked war file directory  and the war file itself
every time i redeploy.. i beleive there is a way to make tomcat not unpack
the war file .. something lik host unpackWar=false but i havent tried it
myself.

James


Gerstel, Rachel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
om...

 Hi All,

 Could someone please confirm how autoDeploy is supposed to work:

 You put a war file into webapps and then:

 1.) Either restart the webserver and the war file is unpacked and a
 directory is created.

 or

 2.) Use the manager tool to deploy the war file - or if the app was
already
 there, then it can reload it.

 Is it possible for you to copy of war file into webapps and a running
tomcat
 server will see it is there an automatically deploy it on it's own with no
 intervention?

 And, if the old unpacked app is there and you copy in a new war file and
 restart - does it create a new directory, overwriting the old one. Or
should
 it only change files that are different from the new war file and the old
 app - or should it see that there is an old app that hasn't been removed
and
 do nothing?

 I have been reading up on this and then got a developer account that
 differed from what I read so I was wondering if anyone else could clarify
it
 further.

 Thanks,
 Rachel




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

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



Tomcat 4.18 taking extremely long to start

2003-03-18 Thread Janz, Alexander
hello,

i've installed tomcat 4.18 on windows nt 4. after clicking the start icon i
have to wait several minutes till tomcat is ready. the screen runs full with
messages like below.

has anyone an idea what  the problem is?

18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN: startElement(,,attribute)
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   Pushing body text ''
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   New match='taglib/tag/attribute'
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   No rules found matching 'taglib/tag/attribute'.
18.03.2003 12:33:45 org.apache.commons.digester.Digester ignorableWhitespace
FEIN: ignorableWhitespace(
)
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN: startElement(,,name)
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   Pushing body text ''
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   New match='taglib/tag/attribute/name'
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   No rules found matching 'taglib/tag/attribute/name'.
18.03.2003 12:33:45 org.apache.commons.digester.Digester characters
FEIN: characters(onmousemove)
18.03.2003 12:33:45 org.apache.commons.digester.Digester endElement
FEIN: endElement(,,name)

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



TOMCAT + MYSQL need help

2003-03-18 Thread Anthony Roque Adriano
Hi,

I've been searching the mailist but can't seem to find a problem similar to what i'm 
encountering.

First here's a background of my setup

MySQL server = mysql-server-3.23.54a-3
TomCat = jakarta-tomcat-4.1.18
ODBC = Connector/J 3.0.6-stable
Base OS = RedHat Linux 7.3
JSDK = j2sdk1.4.1_02
$JAVA_HOME = /path/to/j2sdk1.4.1_02
$CATALINA_HOME = /path/to/jakarta-tomcat-4.1.18

Im making a program which will need to get the data from MySQL, All TOMCAT documents 
i've read all said to put my ODBC Connector 
(mysql-connector-java-3.0.6-stable-bin.jar) under $CATALINA_HOME/common/lib, but if I 
put the file there, TOMCAT is not starting, don't even have anything on the logfile. I 
also tried putting the connector/j on my application lib 
($CATALINA_HOME/webapps/MYAPPLIC/WEB-INF/lib), Tomcat runs but my application is not. 
I also tried playing with $CLASSPATH to no avail.

Anyone experienced this ? or am i just missing something ?

Thanks,
Mark

Re: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

2003-03-18 Thread Tim Funk
Make sure you are using a JDK and not JRE. It looks like there is no 
java compiler available.

-Tim

lunasahu wrote:
This is the error during jsp execution.
How to solve this error;
 

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:484)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Unknown Source)


root cause 

java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
 at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at 

Tomcat 3.3.1a - NoClassDefFoundError using service

2003-03-18 Thread Maurício
 Hi,

 I have a problem running Tomcat 3.3.1a with JavaSDK1.3. When I start 
Tomcat manually, everything works well. However, when I try to start 
Tomcat as a Windows service (configured with jk_nt_service.exe), I get 
the following in the log:

java.lang.NoClassDefFoundError: $(wrapper/jvm/options) Exception in 
thread main

  What does that means? What can I do? Is anything missing on 
wrapper.properties?

  Thanks,
  Maurício


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


tomcat production conf

2003-03-18 Thread Kapil Sharma
Hi Guys,
I am unable to find any resource for tomcat setting in production
environment. I did some RTFM and changed the setting myself but now my
apache is not accepting any new connections after a hour. Tomcat with old
server.xml settings, tomcat works file for few hours and if it gets load it
just hangs. In the new confirmation tomcat just hangs after few hours.
I am attaching my old as well as new server.xml file. Can anyone please have
a look and send me suggestions.

Please advise.

kapil


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

Re: Tomcat 3.3.1a - NoClassDefFoundError using service

2003-03-18 Thread Kurt Overberg
Looks like its having trouble finding your classpath.  Try setting it in 
the Windows System Environment Variables.

/kurt

Maurício wrote:
 Hi,

 I have a problem running Tomcat 3.3.1a with JavaSDK1.3. When I start 
Tomcat manually, everything works well. However, when I try to start 
Tomcat as a Windows service (configured with jk_nt_service.exe), I get 
the following in the log:

java.lang.NoClassDefFoundError: $(wrapper/jvm/options) Exception in 
thread main

  What does that means? What can I do? Is anything missing on 
wrapper.properties?

  Thanks,
  Maurício


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



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


tomcat manager

2003-03-18 Thread Kapil Sharma
Hi,
I have setup a tomcat manager to view active sessions. It shows the active
sessions for /examples which is in tomcat default webapps base. How can I
add more path like /foo in manager application. I have another webapps
directory under which I deploy application I would like to use tomcat
manager to show active sessions for application deployed under separate
directory.

kapil


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



RE: TOMCAT + MYSQL need help

2003-03-18 Thread Gustavo Cebrian
So, your problem is that is does not find the classpath.

We place it under  shared\lib

***
Gustavo Cebrian
Analyst/Programmer

Want to improve the ROI on your EAI project?
Download RV Tester and reduce your development 
and testing timescales by as much as 50%. 
http://www.greenhatconsulting.com/rvtester 

Green Hat Consulting Ltd.
107 Fleet Street, London EC4A 2AB
DDI +44 (0)20 7936 9495
Mobile +44 (0)7788 922291
http://www.greenhatconsulting.com
[EMAIL PROTECTED]
***




-Original Message-
From: Anthony Roque Adriano [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 11:53
To: [EMAIL PROTECTED]
Subject: TOMCAT + MYSQL need help


Hi,

I've been searching the mailist but can't seem to find a problem similar to what i'm 
encountering.

First here's a background of my setup

MySQL server = mysql-server-3.23.54a-3
TomCat = jakarta-tomcat-4.1.18
ODBC = Connector/J 3.0.6-stable
Base OS = RedHat Linux 7.3
JSDK = j2sdk1.4.1_02
$JAVA_HOME = /path/to/j2sdk1.4.1_02
$CATALINA_HOME = /path/to/jakarta-tomcat-4.1.18

Im making a program which will need to get the data from MySQL, All TOMCAT documents 
i've read all said to put my ODBC Connector 
(mysql-connector-java-3.0.6-stable-bin.jar) under $CATALINA_HOME/common/lib, but if I 
put the file there, TOMCAT is not starting, don't even have anything on the logfile. I 
also tried putting the connector/j on my application lib 
($CATALINA_HOME/webapps/MYAPPLIC/WEB-INF/lib), Tomcat runs but my application is not. 
I also tried playing with $CLASSPATH to no avail.

Anyone experienced this ? or am i just missing something ?

Thanks,
Mark

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



RE: Reload files WAR automatically when tomcat is started again

2003-03-18 Thread GIRY Patrick
Tanks, I have test it and it works wery well.

Patrick GIRY
Analyst Web
e-mail : [EMAIL PROTECTED]
Phone number : 33 1 64 80 30 91

-Message d'origine-
De : Jacob Kjome [mailto:[EMAIL PROTECTED]
Envoyé : lundi 17 mars 2003 15:54
À : Tomcat Users List
Objet : Re: Reload files WAR automatically when tomcat is started again



Well, it does reload the WAR structures.  The default for Tomcat is to 
expand the .war files it finds to a directory of the same name as the .war 
files (less the .war file extension) and deploy that.  You can do one of 
two things.  After stopping Tomcat, delete the directory and update the 
.war file.  Or, you can specify Context path=/myapp 
docBase=myapp.war.  Notice the docBase points to a .war instead of a 
directory.  Now the directory won't get created by Tomcat and you only ever 
have to worry about updating the .war file.

Jake

At 10:48 AM 3/17/2003 +0100, you wrote:
How can I specify at tomcat to reload files WAR automatically when it is 
started again (tomcat4 stop / tomcat4 start).

Patrick GIRY
Analyst Web
e-mail : [EMAIL PROTECTED]
Phone number : 33 1 64 80 30 91

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

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



RE: tomcat manager

2003-03-18 Thread Kal Govindu
Hi,

You will need to put the manager.xml file in that webapps directory. I
don't know where your webapps directory is but you will need to changes
the manager.xml context docBase to point to
{Tomcat_Home}/server/webapps/manager. I am guessing you have another
separate host serving your webapps, besides LocalHost. Note: you
cannot two instances of manager for the same Host.

Hope this helps.
Kal

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 8:06 AM
To: Tomcat Users List
Subject: tomcat manager


Hi,
I have setup a tomcat manager to view active sessions. It shows the
active
sessions for /examples which is in tomcat default webapps base. How can
I
add more path like /foo in manager application. I have another webapps
directory under which I deploy application I would like to use tomcat
manager to show active sessions for application deployed under separate
directory.

kapil


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



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



RE: tomcat manager

2003-03-18 Thread Kapil Sharma
Hi,
Is it possible to view the active database connection in tomcat database
pool?

kapil

-Original Message-
From: Kal Govindu [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 13:30
To: Tomcat Users List
Subject: RE: tomcat manager


Hi,

You will need to put the manager.xml file in that webapps directory. I
don't know where your webapps directory is but you will need to changes
the manager.xml context docBase to point to
{Tomcat_Home}/server/webapps/manager. I am guessing you have another
separate host serving your webapps, besides LocalHost. Note: you
cannot two instances of manager for the same Host.

Hope this helps.
Kal

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 8:06 AM
To: Tomcat Users List
Subject: tomcat manager


Hi,
I have setup a tomcat manager to view active sessions. It shows the
active
sessions for /examples which is in tomcat default webapps base. How can
I
add more path like /foo in manager application. I have another webapps
directory under which I deploy application I would like to use tomcat
manager to show active sessions for application deployed under separate
directory.

kapil


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



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


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



Re: tomcat manager

2003-03-18 Thread Tim Funk
Nope.

-Tim

Kapil Sharma wrote:
Hi,
Is it possible to view the active database connection in tomcat database
pool?
kapil



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


Re: TOMCAT + MYSQL need help

2003-03-18 Thread Martin Jacobson
Anthony Roque Adriano wrote:
Hi,

I've been searching the mailist but can't seem to find a problem similar to what i'm encountering.

First here's a background of my setup

MySQL server = mysql-server-3.23.54a-3
TomCat = jakarta-tomcat-4.1.18
ODBC = Connector/J 3.0.6-stable
Base OS = RedHat Linux 7.3
JSDK = j2sdk1.4.1_02
$JAVA_HOME = /path/to/j2sdk1.4.1_02
$CATALINA_HOME = /path/to/jakarta-tomcat-4.1.18
Im making a program which will need to get the data from MySQL, All TOMCAT documents i've read all said to put my ODBC Connector (mysql-connector-java-3.0.6-stable-bin.jar) under $CATALINA_HOME/common/lib, but if I put the file there, TOMCAT is not starting, don't even have anything on the logfile. I also tried putting the connector/j on my application lib ($CATALINA_HOME/webapps/MYAPPLIC/WEB-INF/lib), Tomcat runs but my application is not. I also tried playing with $CLASSPATH to no avail.

Anyone experienced this ? or am i just missing something ?

ODBC? Are you sure you mean ODBC, and not JDBC? How do you connect to 
the db? Via JNDI, or programmatically in the servlet? What DEBUG level 
do you have set in server.xml  elsewhere? Are you sure the logs are empty?

You need to post LOTS more information before we can help you!

Martin



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


RE: tomcat production conf

2003-03-18 Thread Kapil Sharma
Hi,
More details about my tomcat setup. My apache is using keepalive on

kapil

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 12:52
To: Tomcat Users List
Subject: tomcat production conf
Importance: High


Hi Guys,
I am unable to find any resource for tomcat setting in production
environment. I did some RTFM and changed the setting myself but now my
apache is not accepting any new connections after a hour. Tomcat with old
server.xml settings, tomcat works file for few hours and if it gets load it
just hangs. In the new confirmation tomcat just hangs after few hours.
I am attaching my old as well as new server.xml file. Can anyone please have
a look and send me suggestions.

Please advise.

kapil




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



RE: Question about AutoDeployment Feature of 4.1.18

2003-03-18 Thread Jacob Kjome
If there is already a directory there, the .war will *not* be unpacked even 
if you drop a new one in.  Also, if you have defined a Context ... for 
your app, the .war will, again, *not* be unpacked.

The only time when the .war will be unpacked is if a directory doesn't 
already exist in the webapps directory which matches the name of your .war 
file (less the .war extension, of course).

Jake

At 12:26 PM 3/18/2003 +0100, you wrote:
I want to make sure that I have configured it correctly and it is running
the way it should - for the developers with regard to actually deploying
automagically.
They want to be able to add a war file into webapps - while the server is
running - and it is automatically deployed with no intervention - either
from a server restart or via the manager.
I found this on the doc page for AutomaticApplicationDeployment(
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%2
0Application%20Deployment ):
In addition to the automatic deployment that occurs at startup time, you
can also request that new XML configuration files, WAR files, or
subdirectories (containing web applications) that are dropped in to the
appBase directory while Tomcat is running will be automatically deployed,
according to the rules described above.
I was told this does happen in NT, but it doesn't seem to be working on my
unix box - host set-up as follows:
  Host name=coffee addressip.is.here debug=0 appBase=webapps
unpackWARs=true autoDeploy=true
Thanks again,
Rachel
-Original Message-
From: Jamesey [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 12:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about AutoDeployment Feature of 4.1.18
Rachel

I been using 4.1.18 alot lately and i've been frustrated by the fact that i
have to delete the unpacked war file directory  and the war file itself
every time i redeploy.. i beleive there is a way to make tomcat not unpack
the war file .. something lik host unpackWar=false but i havent tried it
myself.
James

Gerstel, Rachel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
om...

 Hi All,

 Could someone please confirm how autoDeploy is supposed to work:

 You put a war file into webapps and then:

 1.) Either restart the webserver and the war file is unpacked and a
 directory is created.

 or

 2.) Use the manager tool to deploy the war file - or if the app was
already
 there, then it can reload it.

 Is it possible for you to copy of war file into webapps and a running
tomcat
 server will see it is there an automatically deploy it on it's own with no
 intervention?

 And, if the old unpacked app is there and you copy in a new war file and
 restart - does it create a new directory, overwriting the old one. Or
should
 it only change files that are different from the new war file and the old
 app - or should it see that there is an old app that hasn't been removed
and
 do nothing?

 I have been reading up on this and then got a developer account that
 differed from what I read so I was wondering if anyone else could clarify
it
 further.

 Thanks,
 Rachel


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


lbfactor avec mod_jk

2003-03-18 Thread GIRY Patrick
Where can i find some how lbfactor work with the mod_jk and how choice the good value 
for my lb config?

Patrick GIRY
Analyst Web
e-mail : [EMAIL PROTECTED]
Phone number : 33 1 64 80 30 91

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



Re: TOMCAT + MYSQL need help

2003-03-18 Thread Anthony Roque Adriano
Sorry,  i meant JDBC,  all my configuration is default except for the
polling i've added at server.xml and set debug level to 9.

anyway here a sniff of the log file when i place the connector/j under my
APPLICATION/WEB-INF/lib directory or at $CATALINA_HOME/common/lib or at
CATALINA_HOME/shared/lib

java.util.zip.ZipException: invalid END header (bad central directory
offset)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:112)
at java.util.jar.JarFile.init(JarFile.java:117)
at java.util.jar.JarFile.init(JarFile.java:55)
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1082)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:221)
at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader
Factory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:155)
Bootstrap: Class loader creation threw exception
java.lang.IllegalArgumentException: addRepositoryInternal:
java.util.zip.ZipException: invalid END header (bad central directory
offset)
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standar
dClassLoader.java:1110)
at
org.apache.catalina.loader.StandardClassLoader.init(StandardClassLoader.ja
va:221)
at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoader
Factory.java:204)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:155)


Mark
- Original Message -
From: Martin Jacobson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 9:51 PM
Subject: Re: TOMCAT + MYSQL need help


 Anthony Roque Adriano wrote:
  Hi,
 
  I've been searching the mailist but can't seem to find a problem similar
to what i'm encountering.
 
  First here's a background of my setup
 
  MySQL server = mysql-server-3.23.54a-3
  TomCat = jakarta-tomcat-4.1.18
  ODBC = Connector/J 3.0.6-stable
  Base OS = RedHat Linux 7.3
  JSDK = j2sdk1.4.1_02
  $JAVA_HOME = /path/to/j2sdk1.4.1_02
  $CATALINA_HOME = /path/to/jakarta-tomcat-4.1.18
 
  Im making a program which will need to get the data from MySQL, All
TOMCAT documents i've read all said to put my ODBC Connector
(mysql-connector-java-3.0.6-stable-bin.jar) under $CATALINA_HOME/common/lib,
but if I put the file there, TOMCAT is not starting, don't even have
anything on the logfile. I also tried putting the connector/j on my
application lib ($CATALINA_HOME/webapps/MYAPPLIC/WEB-INF/lib), Tomcat runs
but my application is not. I also tried playing with $CLASSPATH to no avail.
 
  Anyone experienced this ? or am i just missing something ?
 

 ODBC? Are you sure you mean ODBC, and not JDBC? How do you connect to
 the db? Via JNDI, or programmatically in the servlet? What DEBUG level
 do you have set in server.xml  elsewhere? Are you sure the logs are
empty?

 You need to post LOTS more information before we can help you!

 Martin



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






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



Keystore was tampered with, or password was incorrect ERROR

2003-03-18 Thread Manu Kits
Hi Experts:

I am using Apache 1.3.26, JBoss 3.0.0 (embedded with Catalina) on IBM Unix.

When I start my JBoss Server, I get following message wonder why:

2003-03-17 15:13:11,915 INFO  [STDOUT]  at 
java.lang.Thread.run(Thread.java:566)
2003-03-17 15:13:11,917 ERROR 
[org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Starting failed
LifecycleException:  null.open:  java.io.IOException: java.io.IOException: 
Keystore was tampered with, or password was incorrect
   at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
   at org.apache.catalina.startup.Embedded.start(Embedded.java:962)

.

2003-03-17 15:13:11,928 ERROR [org.jboss.deployment.SARDeployer] start 
operation failed on package 
file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/$
LifecycleException:  null.open:  java.io.IOException: java.io.IOException: 
Keystore was tampered with, or password was incorrect
   at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
   at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
   at 
org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:189)
   at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
.

2003-03-17 15:13:11,934 ERROR [org.jboss.deployment.MainDeployer] could not 
start deployment: 
file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomca$
org.jboss.deployment.DeploymentException: null.open; - nested throwable: 
(LifecycleException:  null.open:  java.io.IOException: java.io.IOException: 
Keystore was tampered with, or password was incorrect

.

Caused by: LifecycleException:  null.open:  java.io.IOException: 
java.io.IOException: Keystore was tampered with, or password was incorrect
   at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
   at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
..

-

It seems that major issues is KEYSTORE WAS TAMPERED or PASSWORD was 
INCORRECT - I have no idea what this means.

Can anyone throw light on this please?

THANKS!

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: Tomcat 3.3.1a - NoClassDefFoundError using service

2003-03-18 Thread Maurício
  What should I set classpath to?

  Sorry, I'm really beggining.

  Maurício

Kurt Overberg wrote:
Looks like its having trouble finding your classpath.  Try setting it in 
the Windows System Environment Variables.

/kurt

Maurício wrote:

 Hi,

 I have a problem running Tomcat 3.3.1a with JavaSDK1.3. When I start 
Tomcat manually, everything works well. However, when I try to start 
Tomcat as a Windows service (configured with jk_nt_service.exe), I get 
the following in the log:

java.lang.NoClassDefFoundError: $(wrapper/jvm/options) Exception in 
thread main

  What does that means? What can I do? Is anything missing on 
wrapper.properties?

  Thanks,
  Maurício


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



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


RE: JK2 (cont.)

2003-03-18 Thread Kent Kruckeberg
Glad to hear you got yours going Chris, it's a good
feeling once it happens isn't it!?!?

I think the procedure is a good idea... .I scratched
out some fairly decent notes on what I was doing along
the way too that I could cross match with your
procedure.  I would like to help test out the
procedure but don't have any other machines available
I guess, but could help in any other matter. 

Regarding the later message by Terence Kelly about how
instructions for setting up the total J2EE system (w/
diff app servers and dbs) I could at least contribute
to that as I now have Apache+Tomcat+Borland's open
source Interbase v6.0 DBMS all working.  Maybe just
concentrate on the Apache and Tomcat setup for now
though. ..

So yes, the Apache documentation is inadequate but my
feelings are that you get what you pay for, aye?  :-) 
I wasn't happy about the scarcity of doc but I just
supposed that, hey, these versions are so new that
they are getting to that part.  Just trying to see the
other side.  I think there's some new stuff on the
jk2_mod area on apache, but just glanced real quick as
I gotta get going.

Kent



--- Chris Dodunski [EMAIL PROTECTED] wrote:
 Hello Kent and hello Dave,
 
 The good news is that I too finally got JK2 working!
  It took an entire
 weekend, but I got there in the end.  I would next
 like to acquire a
 complete understanding of how workers2.properties
 and jk2.properties work.
 
 At the time of implementing the JK2 connector I was
 directed to several web
 sites offering how-to's on the matter.  However, I
 found many of them
 related to the older JK connector, and apache.org
 site stated quite clearly
 that although JK and JK2 were similar in operation,
 their configurations
 were very different.  Moreover, amongst those JK
 sites, there were
 significant variations in configuration.  In the
 end, I decided to tackle it
 alone.  Well, that's not exactly true.  Without Dave
 Short's assistance I
 would still be struggling, I'm sure.  Thank you
 Dave!
 
 I have drafted a procedure for setting up an
 Apache-Tomcat web server
 environment, utilising the JK2 connector.  I've
 checked its integrity by
 doing the same on a second computer - both running
 WinXP.  I am about to try
 the same on a Linux box.  If either of you (or
 anyone else for that matter)
 are interested in testing this procedure for
 correctness, please email me
 direct.  Once it is proven sufficiently true and
 robust, if the demand is
 there, I'll post it on my home page.
 
 Regards,
 
 Chris.
 
 
 -Original Message-
 From: Kent Kruckeberg [mailto:[EMAIL PROTECTED]
 Sent: Monday, 17 March 2003 4:43 p.m.
 To: Tomcat Users List
 Subject: RE: JK2 (cont.)
 
 
 I think that is exactly it.  I had the same problem
 and had emailed you both when I discovered this was
 the problem.  I had just signed up for this list,
 though, so I emailed you personally and you probably
 didn't recognize my addy so deleted the msg.
 
 Just wanted to thank you Dave for the help.  It was
 funny that I stumbled upon this user list this
 weekend
 and am doing the EXACT same setup as Chris and
 having
 the EXACT same problems and getting the EXACT same
 help you are giving to result in getting it all
 working!  I expect Chris will now too, thanks again.
 
 Kent
 
 
 --- Short, Dave [EMAIL PROTECTED] wrote:
  It looks as though when you commented out the 8080
  in the server.xml file
  you might have messed up the comments, hence the
  -- error message on line
  92.  It should look like this:
 
  !-- Out of the box 8080 port
  Connector
 

className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8080 minProcessors=5
  maxProcessors=75
 enableLookups=true
  redirectPort=8443
 acceptCount=100 debug=0
  connectionTimeout=2
 useURIValidationHack=false
  disableUploadTimeout=true /
  --
 
  Notice the !-- and matching --.  Also, if
 that
  doesn't help try
  enclosing your paths in double quotes like so:
 
  [config:]
  #file=${serverRoot}/conf/workers2.properties
  file=c:/Program Files/Apache
  Group/Apache2/conf/workers2.properties
  debug=0
  debugEnv=0
 
  -Original Message-
  From: Chris Dodunski
  [mailto:[EMAIL PROTECTED]
  Sent: Sunday, March 16, 2003 3:27 AM
  To: Tomcat Users List
  Subject: Re: JK2 (cont.)
 
 
  Hi again,
 
  - Original Message -
  From: Short, Dave [EMAIL PROTECTED]
  To: 'Tomcat Users List'
  [EMAIL PROTECTED]
  Sent: Sunday, March 16, 2003 2:30 PM
  Subject: RE: JK2 (cont.)
 
 
   Paths must match up.  Check the paths in the
  config files I sent against
   your paths.  If they don't match up, adjust the
  paths in the config files
  I
   sent.  This configuration works on W2K with
 Apache
  2.0.44 and Tomcat
  4.1.18.
   Comment out 8080 in the server.xml file because
  Apache will serve up
   everything except .jsp and servlet files.  See
 the
  [uri:/examples/*.jsp]
  and
   [uri:/examples/servlet/*] in the
  

Re: Keystore was tampered with, or password was incorrect ERROR

2003-03-18 Thread Manu Kits
One more thingI got my Cert from Verisign
Any infor on this is appreciated.
THANKS!


From: Manu Kits [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Keystore was tampered with, or password was incorrect ERROR
Date: Tue, 18 Mar 2003 15:09:45 +
Hi Experts:

I am using Apache 1.3.26, JBoss 3.0.0 (embedded with Catalina) on IBM Unix.

When I start my JBoss Server, I get following message wonder why:

2003-03-17 15:13:11,915 INFO  [STDOUT]  at 
java.lang.Thread.run(Thread.java:566)
2003-03-17 15:13:11,917 ERROR 
[org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Starting failed
LifecycleException:  null.open:  java.io.IOException: java.io.IOException: 
Keystore was tampered with, or password was incorrect
   at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
   at org.apache.catalina.startup.Embedded.start(Embedded.java:962)

.

2003-03-17 15:13:11,928 ERROR [org.jboss.deployment.SARDeployer] start 
operation failed on package 
file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/$
LifecycleException:  null.open:  java.io.IOException: java.io.IOException: 
Keystore was tampered with, or password was incorrect
   at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
   at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
   at 
org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:189)
   at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
.

2003-03-17 15:13:11,934 ERROR [org.jboss.deployment.MainDeployer] could not 
start deployment: 
file:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomca$
org.jboss.deployment.DeploymentException: null.open; - nested throwable: 
(LifecycleException:  null.open:  java.io.IOException: java.io.IOException: 
Keystore was tampered with, or password was incorrect

.

Caused by: LifecycleException:  null.open:  java.io.IOException: 
java.io.IOException: Keystore was tampered with, or password was incorrect
   at 
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
   at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
..

-

It seems that major issues is KEYSTORE WAS TAMPERED or PASSWORD was 
INCORRECT - I have no idea what this means.

Can anyone throw light on this please?

THANKS!
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Arbitrary Tomcat mounting in Apache

2003-03-18 Thread Aaron Paetznick
I apologize because I've sent this email already with the subject JK2 
context mounting, but I didn't get a response.

I want to be able to mount a Tomcat URI at any arbitrary location in 
Apache.  Apache and Tomcat are currently working with the mod_jk2 
connector with existing Tomcat URIs.  I'm using Apache v2.0.44, Tomcat 
v4.1.18, and mod_jk2 v2.0.3-dev on Solaris 9.

Here is some of my workers2.properties file:

[uri:/cocoon/*]
context=/cocoon/
[uri:/someapp/*]
context=/cocoon/someapp/
..when I use just the first (/cocoon/) entry, /cocoon/someapp/ works 
fine.  When I add the second (/someapp/) entry, both locations spit out 
a 404 error.  I can't seem to find any other possible configuration 
method to do this with.  This has to be a common problem and question.

I've searched Apache.org and Google extensively for the answer, but it's 
no good.  I even considered trying mod_webapp, but I'm using the worker 
MPM (i.e. threaded) which mod_webapp doesn't like.  The uriMap config 
sounds promising, but there is zero documentation for it, and I couldn't 
get it to do anything useful while I was experimenting.

Can anybody help me out?  Thanks!

--Aaron

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


RE: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Gavin, Rick
Thanks Bill,
  Does anyone have some docs about using this feature?  I haven't been able
to find much on the jakarta site.  I'm a bit confused as to what the
difference between a valve and a filter is. and which is the corret one
to use.  When i search for filter, i get info on valves.  I haven't found
anything on how to use a filter.  

Also,  if i use a wrapper to extend the request/response objects, does that
mean in a JSP page i would be able to access any extra methods i wanted to
add.. such as..

-- in jsp file --
String value = request.doMyNewAction(param1);

is it recommeded to use the catalina wrapper objects when working with
tomcat or the javax wrappers?

org.apache.catalina.connector.HttpRequestWrapper
or
javax.servlet.http.HttpServletRequestWrapper


Thanks for the help,

Rick

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 7:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???


It depends on the version.  The answer is no for Servlet-2.2 containers
(e.g. Tomcat 3.x).  The answer is yes for Servlet-2.3 containers (e.g.
Tomcat 4.x).  In fact, for Servlet-2.3 containers it is one of the most
common things that a Filter does.

If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and
HttpServletResponseWrapper (both in the javax.servlet.http package).

Gavin, Rick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi All
   Is it possible to extend request and response objects to add a few
custom
 properties and / or methods relating to a particular system, and have
tomcat
 use those instead of the standard request and resonse objects?

 Thanks,

 Rick




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

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



Re: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Tim Funk
I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

valve  - Tomcat specific
filter - Like a valve but portable across other servlet containers 
because its part of the serlvet specification.

requests/response can be wrapped by the Servlet wrapper classes which 
are part of the Servlet API. A book will really help clear the specifics 
up of why and when to use them.

Never ever use catalina classes directly unless:
- You really need to
- You really know why you are using them
- You really need to
-Tim

Gavin, Rick wrote:
Thanks Bill,
  Does anyone have some docs about using this feature?  I haven't been able
to find much on the jakarta site.  I'm a bit confused as to what the
difference between a valve and a filter is. and which is the corret one
to use.  When i search for filter, i get info on valves.  I haven't found
anything on how to use a filter.  

Also,  if i use a wrapper to extend the request/response objects, does that
mean in a JSP page i would be able to access any extra methods i wanted to
add.. such as..
-- in jsp file --
String value = request.doMyNewAction(param1);
is it recommeded to use the catalina wrapper objects when working with
tomcat or the javax wrappers?
org.apache.catalina.connector.HttpRequestWrapper
or
javax.servlet.http.HttpServletRequestWrapper
Thanks for the help,

Rick

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 7:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???
It depends on the version.  The answer is no for Servlet-2.2 containers
(e.g. Tomcat 3.x).  The answer is yes for Servlet-2.3 containers (e.g.
Tomcat 4.x).  In fact, for Servlet-2.3 containers it is one of the most
common things that a Filter does.
If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and
HttpServletResponseWrapper (both in the javax.servlet.http package).
Gavin, Rick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi All
 Is it possible to extend request and response objects to add a few
custom

properties and / or methods relating to a particular system, and have
tomcat

use those instead of the standard request and resonse objects?

Thanks,

Rick


 


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


RE: Server.xml

2003-03-18 Thread Hunter, Sandra
Context path (the URL): http://localhost:8080/IDCard/indexID.jsp
Directory: C:\Tomcat\webapps\IDCard
OS: WIN2K



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 18, 2003 1:26 AM
To: [EMAIL PROTECTED]
Subject: RE: Server.xml


Okie dokie !..
Send me the following information ...

Context path ( the URL ) the directory ( full path ) you want to put your
jsp/servlets  Your OS ( UNIX / WINDOWS / LINUX ) ...

Then I can help .

Guru

-Original Message-
From: Hunter, Sandra [mailto:[EMAIL PROTECTED]
Sent: 17 March 2003 21:00
To: 'Tomcat Users List'
Subject: Server.xml



Frustration abounds:
I am plodding through a tomcat tutorial and it suggests modifying the
Server.xml file to include a new context path line to allow for playing with
a sample file. Everything works tickety boo until I do that, then Tomcat
won't startup at all. When I enter the startup command I just get a really
brief flash of screen and poof! It's gone again. When I take the new line
out of the server.xml file the problem persists: poof! Gone. That is the
only change I make. Any thoughts?

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

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

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



jk2 and passing env vars

2003-03-18 Thread grenoml
  Is the method for passing environment vars between Apache2 and Tomcat
the same for mod_jk and mod_jk2?  I am using jk2 now and when I tried
adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in this
error when starting Apache2: 
Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a module
not included in the server configuration.
  I have the LoadModule directive declared for jk2_module and the
connector is working fine otherwise.  Does jk2 not recognize the Jk*
directives?  It doesn't seem to recognize any of them.

Thanks :-)



__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



RE: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Gavin, Rick

I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

really? I have one of each, neither mention the subject or either
classes mentioned. Maybe before you make a vague suggestion like 
get a book , you may want to qualify about whether or not the 
desired result is possible and suggest an appropriate resource that 
may actually contain said information( book title, etc,).  

Its always nice to try something a little different and be demoted
to idiot status with the statment , get a book

Does anyone have an useful information

-Rick


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:02 AM
To: Tomcat Users List
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???


I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

valve  - Tomcat specific
filter - Like a valve but portable across other servlet containers 
because its part of the serlvet specification.

requests/response can be wrapped by the Servlet wrapper classes which 
are part of the Servlet API. A book will really help clear the specifics 
up of why and when to use them.

Never ever use catalina classes directly unless:
- You really need to
- You really know why you are using them
- You really need to


-Tim

Gavin, Rick wrote:
 Thanks Bill,
   Does anyone have some docs about using this feature?  I haven't been
able
 to find much on the jakarta site.  I'm a bit confused as to what the
 difference between a valve and a filter is. and which is the corret
one
 to use.  When i search for filter, i get info on valves.  I haven't
found
 anything on how to use a filter.  
 
 Also,  if i use a wrapper to extend the request/response objects, does
that
 mean in a JSP page i would be able to access any extra methods i wanted to
 add.. such as..
 
 -- in jsp file --
 String value = request.doMyNewAction(param1);
 
 is it recommeded to use the catalina wrapper objects when working with
 tomcat or the javax wrappers?
 
 org.apache.catalina.connector.HttpRequestWrapper
 or
 javax.servlet.http.HttpServletRequestWrapper
 
 
 Thanks for the help,
 
 Rick
 
 -Original Message-
 From: Bill Barker [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 7:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Extending HttpServletRequest / HttpServletResponse ???
 
 
 It depends on the version.  The answer is no for Servlet-2.2 containers
 (e.g. Tomcat 3.x).  The answer is yes for Servlet-2.3 containers (e.g.
 Tomcat 4.x).  In fact, for Servlet-2.3 containers it is one of the most
 common things that a Filter does.
 
 If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and
 HttpServletResponseWrapper (both in the javax.servlet.http package).
 
 Gavin, Rick [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 
Hi All
  Is it possible to extend request and response objects to add a few
 
 custom
 
properties and / or methods relating to a particular system, and have
 
 tomcat
 
use those instead of the standard request and resonse objects?

Thanks,

Rick
 
 
  


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

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



Re: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Erik Price


Gavin, Rick wrote:

I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

really? I have one of each, neither mention the subject or either
classes mentioned. Maybe before you make a vague suggestion like 
get a book , you may want to qualify about whether or not the 
desired result is possible and suggest an appropriate resource that 
may actually contain said information( book title, etc,).  

Its always nice to try something a little different and be demoted
to idiot status with the statment , get a book
Does anyone have an useful information
The book that I learned servlet programming from didn't talk about 
Filters either, because they are relatively new and the book 
(http://coreservlets.com/) was published a couple of years ago.

You can learn more about them in a newer book, in the servlet 
specification (http://java.sun.com/products/servlet/download.html), or 
in an article 
(http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html). 
 Reading that article in conjunction with the spec made it really easy 
to understand what they are and how they work.



Erik

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


Re: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Tim Funk
If a book does not discuss filters than either:
a) Its not a good book
b) Its about Servlet api 2.2 or less and time to get a new book.
Filters are new to Serlvet api 2.3.

Sun provides a lot of good free docs:
http://java.sun.com/products/servlet/docs.html
On that page is an article about filters:
http://java.sun.com/products/servlet/Filters.html
-Tim

Gavin, Rick wrote:

I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

really? I have one of each, neither mention the subject or either
classes mentioned. Maybe before you make a vague suggestion like 
get a book , you may want to qualify about whether or not the 
desired result is possible and suggest an appropriate resource that 
may actually contain said information( book title, etc,).  

Its always nice to try something a little different and be demoted
to idiot status with the statment , get a book
Does anyone have an useful information

-Rick

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:02 AM
To: Tomcat Users List
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???
I'd recommend getting a Serlvet programming book and optionally a JSP 
book. They will come in very handy for these questions.

valve  - Tomcat specific
filter - Like a valve but portable across other servlet containers 
because its part of the serlvet specification.

requests/response can be wrapped by the Servlet wrapper classes which 
are part of the Servlet API. A book will really help clear the specifics 
up of why and when to use them.

Never ever use catalina classes directly unless:
- You really need to
- You really know why you are using them
- You really need to
-Tim

Gavin, Rick wrote:

Thanks Bill,
 Does anyone have some docs about using this feature?  I haven't been
able

to find much on the jakarta site.  I'm a bit confused as to what the
difference between a valve and a filter is. and which is the corret
one

to use.  When i search for filter, i get info on valves.  I haven't
found

anything on how to use a filter.  

Also,  if i use a wrapper to extend the request/response objects, does
that

mean in a JSP page i would be able to access any extra methods i wanted to
add.. such as..
-- in jsp file --
String value = request.doMyNewAction(param1);
is it recommeded to use the catalina wrapper objects when working with
tomcat or the javax wrappers?
org.apache.catalina.connector.HttpRequestWrapper
or
javax.servlet.http.HttpServletRequestWrapper
Thanks for the help,

Rick

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: Friday, March 14, 2003 7:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???
It depends on the version.  The answer is no for Servlet-2.2 containers
(e.g. Tomcat 3.x).  The answer is yes for Servlet-2.3 containers (e.g.
Tomcat 4.x).  In fact, for Servlet-2.3 containers it is one of the most
common things that a Filter does.
If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and
HttpServletResponseWrapper (both in the javax.servlet.http package).
Gavin, Rick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

Hi All
Is it possible to extend request and response objects to add a few
custom


properties and / or methods relating to a particular system, and have
tomcat


use those instead of the standard request and resonse objects?

Thanks,

Rick




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


[Manager] Start/Stop Remove not relaeasing struts.jar on WIN

2003-03-18 Thread Yann Cébron
Hi,

I just wanted to get some feedback from the list upon this bugreport:

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

Can anybody else confirm this behaviour on WIN-Platforms ?
It does not happen under Linux (Suse 2.4.10).

For several reasons, I'm restricted on using Win2K on the server, and
updating the
applications always requires a complete shutdown/restart of Tomcat to
release
the webapp-dir in order to make Tomcat recognize the updated .war-file.

Greetings,

Yann

__

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de

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



Re: jk2 and passing env vars

2003-03-18 Thread NormW
Good morning.
If you are using the 2.0.43.dll version of JK2 you are not alone.
N

- Original Message - 
From: grenoml [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:14 AM
Subject: jk2 and passing env vars


   Is the method for passing environment vars between Apache2 and Tomcat
 the same for mod_jk and mod_jk2?  I am using jk2 now and when I tried
 adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in this
 error when starting Apache2: 
 Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a module
 not included in the server configuration.
   I have the LoadModule directive declared for jk2_module and the
 connector is working fine otherwise.  Does jk2 not recognize the Jk*
 directives?  It doesn't seem to recognize any of them.
 
 Thanks :-)
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
 http://platinum.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: jk2 and passing env vars

2003-03-18 Thread grenoml
  Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
you know if there is  bug open on this in bugzilla?  Do you think this
is just a lack of configuration documentation or should this be posted
as a bug?

Regards,
Gerry


--- NormW [EMAIL PROTECTED] wrote:
 Good morning.
 If you are using the 2.0.43.dll version of JK2 you are not alone.
 N
 
 - Original Message - 
 From: grenoml [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 6:14 AM
 Subject: jk2 and passing env vars
 
 
Is the method for passing environment vars between Apache2 and
 Tomcat
  the same for mod_jk and mod_jk2?  I am using jk2 now and when I
 tried
  adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
 this
  error when starting Apache2: 
  Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
 module
  not included in the server configuration.
I have the LoadModule directive declared for jk2_module and the
  connector is working fine otherwise.  Does jk2 not recognize the
 Jk*
  directives?  It doesn't seem to recognize any of them.
  
  Thanks :-)
  
  
  
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
 desktop!
  http://platinum.yahoo.com
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Best way to capture Stack Trace when Tomcat Failes complete?

2003-03-18 Thread Matt Fury
Hi All,

I am doing some native programming with Java and C++
DLL. The DLL works the first time around through a JSP
page but the second time around it crashes Tomcat
completely. Unfortunately the Stack Trace prints out
in the console but the console shuts down before I can
read it. Is there a way to capture that information to
a log file since its  low-level?

-Matt

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



1,900 webapp contexts?

2003-03-18 Thread David Boyer
We have about 1,900 students and faculty, and we create web space for
all of them automatically. I'm interested in Tomcat-enabling their web
space and have been testing it on a test server. There are approximately
1,900 username.xml files in /webapps/.
 
The problem is that it takes Tomcat 15-20 minutes to completely start
(at 90%+ CPU utilization) as it looks at each xml file in webapps, and
by then it's using ~200MB. I can give it more memory if needed, but the
startup time is the real problem.
 
Partitioning the webapps across multiple JVMs won't really work since
each JVM would then have a proportionately smaller chunk of the CPUs.
I'd hate to use multiple servers since we have plenty of horsepower for
everything except the startup it seems (2x850MHz PIII's, 1GB RAM).
 
Are there smarter approaches to this? I've thought about using a just a
single with the parent of the user webs being the docbase, but how do I
approach users who want to use their own classes and jars?
 
Any suggestions are appreciated!


Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Amir . Shidfar
Hi All,

I am migrating my applications from TC 3.2.3 to 4.0.1 in the Unix server .
Everything is working fine except I am using a JNI to call a C library
called sample.so and I am getting error when it is trying to access the
sample.so library. The sample.so is already in my .profile . I don't get
that error when I run in 3.2.3

Anyone have any idea what am I doing wrong or am I missing any steps for
migration.
I did the following steps.

1. Stopped the 3.2.3
2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
~/webapps/*war in 4.0.1
3. I started the 4.0.1

Access the JSP files and they came up without problem but as soon as I use
the sample.so it stop working.

Appreciate any help.

Amir.

-Original Message-
From: grenoml [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 3:37 PM
To: Tomcat Users List
Subject: Re: jk2 and passing env vars


  Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
you know if there is  bug open on this in bugzilla?  Do you think this
is just a lack of configuration documentation or should this be posted
as a bug?

Regards,
Gerry


--- NormW [EMAIL PROTECTED] wrote:
 Good morning.
 If you are using the 2.0.43.dll version of JK2 you are not alone.
 N
 
 - Original Message - 
 From: grenoml [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 6:14 AM
 Subject: jk2 and passing env vars
 
 
Is the method for passing environment vars between Apache2 and
 Tomcat
  the same for mod_jk and mod_jk2?  I am using jk2 now and when I
 tried
  adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
 this
  error when starting Apache2: 
  Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
 module
  not included in the server configuration.
I have the LoadModule directive declared for jk2_module and the
  connector is working fine otherwise.  Does jk2 not recognize the
 Jk*
  directives?  It doesn't seem to recognize any of them.
  
  Thanks :-)
  
  
  
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
 desktop!
  http://platinum.yahoo.com
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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

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



RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Filip Hanik
you didn't give us what error you get,

maybe the catalina.sh in Tomcat 4.x is not picking up your LD_LIBRARY_PATH,
make sure it gets explicitely set in there,

another thought is that you are running with the security manager enabled and it 
restricts you from doing so

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 1:06 PM
 To: [EMAIL PROTECTED]
 Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 Hi All,
 
 I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
 Unix server .
 Everything is working fine except I am using a JNI to call a C library
 called sample.so and I am getting error when it is trying to 
 access the
 sample.so library. The sample.so is already in my .profile . 
 I don't get
 that error when I run in 3.2.3
 
 Anyone have any idea what am I doing wrong or am I missing 
 any steps for
 migration.
 I did the following steps.
 
 1. Stopped the 3.2.3
 2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
 ~/webapps/*war in 4.0.1
 3. I started the 4.0.1
 
 Access the JSP files and they came up without problem but as 
 soon as I use
 the sample.so it stop working.
 
 Appreciate any help.
 
 Amir.
 
 -Original Message-
 From: grenoml [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 3:37 PM
 To: Tomcat Users List
 Subject: Re: jk2 and passing env vars
 
 
   Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
 you know if there is  bug open on this in bugzilla?  Do you think this
 is just a lack of configuration documentation or should this be posted
 as a bug?
 
 Regards,
 Gerry
 
 
 --- NormW [EMAIL PROTECTED] wrote:
  Good morning.
  If you are using the 2.0.43.dll version of JK2 you are not alone.
  N
  
  - Original Message - 
  From: grenoml [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 19, 2003 6:14 AM
  Subject: jk2 and passing env vars
  
  
 Is the method for passing environment vars between Apache2 and
  Tomcat
   the same for mod_jk and mod_jk2?  I am using jk2 now and when I
  tried
   adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
  this
   error when starting Apache2: 
   Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
  module
   not included in the server configuration.
 I have the LoadModule directive declared for jk2_module and the
   connector is working fine otherwise.  Does jk2 not recognize the
  Jk*
   directives?  It doesn't seem to recognize any of them.
   
   Thanks :-)
   
   
   
   __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
  desktop!
   http://platinum.yahoo.com
   
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
 http://platinum.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Arbitrary Tomcat mounting in Apache

2003-03-18 Thread Chris Dodunski
Hi,

What is 'DocumentRoot' and the Directory tag set to in [Apache
Home]/conf/httpd.conf?  Where is 'cocoon' in relation to this?

Chris.


-Original Message-
From: Aaron Paetznick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 March 2003 5:45 a.m.
To: [EMAIL PROTECTED]
Subject: Arbitrary Tomcat mounting in Apache



I apologize because I've sent this email already with the subject JK2
context mounting, but I didn't get a response.

I want to be able to mount a Tomcat URI at any arbitrary location in
Apache.  Apache and Tomcat are currently working with the mod_jk2
connector with existing Tomcat URIs.  I'm using Apache v2.0.44, Tomcat
v4.1.18, and mod_jk2 v2.0.3-dev on Solaris 9.

Here is some of my workers2.properties file:

[uri:/cocoon/*]
context=/cocoon/

[uri:/someapp/*]
context=/cocoon/someapp/


..when I use just the first (/cocoon/) entry, /cocoon/someapp/ works
fine.  When I add the second (/someapp/) entry, both locations spit out
a 404 error.  I can't seem to find any other possible configuration
method to do this with.  This has to be a common problem and question.

I've searched Apache.org and Google extensively for the answer, but it's
no good.  I even considered trying mod_webapp, but I'm using the worker
MPM (i.e. threaded) which mod_webapp doesn't like.  The uriMap config
sounds promising, but there is zero documentation for it, and I couldn't
get it to do anything useful while I was experimenting.

Can anybody help me out?  Thanks!


--Aaron


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


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



RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Amir . Shidfar
Thanks.

I am getting the error NATIVE_CALL_FAILED.

The LD_LIBRARY_PATH is setup for the library. I have the same setup in
3.2.3.
I did not understand the security manager enabled part? Can I disable the
security manager and try it?

Amir.



-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 4:10 PM
To: Tomcat Users List
Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so


you didn't give us what error you get,

maybe the catalina.sh in Tomcat 4.x is not picking up your LD_LIBRARY_PATH,
make sure it gets explicitely set in there,

another thought is that you are running with the security manager enabled
and it restricts you from doing so

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 1:06 PM
 To: [EMAIL PROTECTED]
 Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 Hi All,
 
 I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
 Unix server .
 Everything is working fine except I am using a JNI to call a C library
 called sample.so and I am getting error when it is trying to 
 access the
 sample.so library. The sample.so is already in my .profile . 
 I don't get
 that error when I run in 3.2.3
 
 Anyone have any idea what am I doing wrong or am I missing 
 any steps for
 migration.
 I did the following steps.
 
 1. Stopped the 3.2.3
 2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
 ~/webapps/*war in 4.0.1
 3. I started the 4.0.1
 
 Access the JSP files and they came up without problem but as 
 soon as I use
 the sample.so it stop working.
 
 Appreciate any help.
 
 Amir.
 
 -Original Message-
 From: grenoml [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 3:37 PM
 To: Tomcat Users List
 Subject: Re: jk2 and passing env vars
 
 
   Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
 you know if there is  bug open on this in bugzilla?  Do you think this
 is just a lack of configuration documentation or should this be posted
 as a bug?
 
 Regards,
 Gerry
 
 
 --- NormW [EMAIL PROTECTED] wrote:
  Good morning.
  If you are using the 2.0.43.dll version of JK2 you are not alone.
  N
  
  - Original Message - 
  From: grenoml [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 19, 2003 6:14 AM
  Subject: jk2 and passing env vars
  
  
 Is the method for passing environment vars between Apache2 and
  Tomcat
   the same for mod_jk and mod_jk2?  I am using jk2 now and when I
  tried
   adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
  this
   error when starting Apache2: 
   Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
  module
   not included in the server configuration.
 I have the LoadModule directive declared for jk2_module and the
   connector is working fine otherwise.  Does jk2 not recognize the
  Jk*
   directives?  It doesn't seem to recognize any of them.
   
   Thanks :-)
   
   
   
   __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
  desktop!
   http://platinum.yahoo.com
   
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
 http://platinum.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

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



RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Filip Hanik
NATIVE_CALL_FAILED

that's it, no error message, no stack trace, no nothing?

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 1:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 Thanks.
 
 I am getting the error NATIVE_CALL_FAILED.
 
 The LD_LIBRARY_PATH is setup for the library. I have the same setup in
 3.2.3.
 I did not understand the security manager enabled part? Can I 
 disable the
 security manager and try it?
 
 Amir.
 
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 4:10 PM
 To: Tomcat Users List
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 you didn't give us what error you get,
 
 maybe the catalina.sh in Tomcat 4.x is not picking up your 
 LD_LIBRARY_PATH,
 make sure it gets explicitely set in there,
 
 another thought is that you are running with the security 
 manager enabled
 and it restricts you from doing so
 
 Filip
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 1:06 PM
  To: [EMAIL PROTECTED]
  Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  Hi All,
  
  I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
  Unix server .
  Everything is working fine except I am using a JNI to call 
 a C library
  called sample.so and I am getting error when it is trying to 
  access the
  sample.so library. The sample.so is already in my .profile . 
  I don't get
  that error when I run in 3.2.3
  
  Anyone have any idea what am I doing wrong or am I missing 
  any steps for
  migration.
  I did the following steps.
  
  1. Stopped the 3.2.3
  2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
  ~/webapps/*war in 4.0.1
  3. I started the 4.0.1
  
  Access the JSP files and they came up without problem but as 
  soon as I use
  the sample.so it stop working.
  
  Appreciate any help.
  
  Amir.
  
  -Original Message-
  From: grenoml [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 3:37 PM
  To: Tomcat Users List
  Subject: Re: jk2 and passing env vars
  
  
Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
  you know if there is  bug open on this in bugzilla?  Do you 
 think this
  is just a lack of configuration documentation or should 
 this be posted
  as a bug?
  
  Regards,
  Gerry
  
  
  --- NormW [EMAIL PROTECTED] wrote:
   Good morning.
   If you are using the 2.0.43.dll version of JK2 you are not alone.
   N
   
   - Original Message - 
   From: grenoml [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, March 19, 2003 6:14 AM
   Subject: jk2 and passing env vars
   
   
  Is the method for passing environment vars between Apache2 and
   Tomcat
the same for mod_jk and mod_jk2?  I am using jk2 now and when I
   tried
adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
   this
error when starting Apache2: 
Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
   module
not included in the server configuration.
  I have the LoadModule directive declared for 
 jk2_module and the
connector is working fine otherwise.  Does jk2 not recognize the
   Jk*
directives?  It doesn't seem to recognize any of them.

Thanks :-)



__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
   desktop!
http://platinum.yahoo.com

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


   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness, live on 
 your desktop!
  http://platinum.yahoo.com
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

RE: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Chris Dodunski
Rick, don't be so precious!  Incidentally, what is the Servlet text you
currently have in your possession?  I have two: 'Java Servlet Programming',
and 'Java Servlet Programming Bible' (can't recall authors at present -
they're at home).

Chris.


-Original Message-
From: Gavin, Rick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 March 2003 7:06 a.m.
To: Tomcat Users List
Subject: RE: Extending HttpServletRequest / HttpServletResponse ???



I'd recommend getting a Serlvet programming book and optionally a JSP
book. They will come in very handy for these questions.

really? I have one of each, neither mention the subject or either
classes mentioned. Maybe before you make a vague suggestion like
get a book , you may want to qualify about whether or not the
desired result is possible and suggest an appropriate resource that
may actually contain said information( book title, etc,).

Its always nice to try something a little different and be demoted
to idiot status with the statment , get a book

Does anyone have an useful information

-Rick


-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:02 AM
To: Tomcat Users List
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???


I'd recommend getting a Serlvet programming book and optionally a JSP
book. They will come in very handy for these questions.

valve  - Tomcat specific
filter - Like a valve but portable across other servlet containers
because its part of the serlvet specification.

requests/response can be wrapped by the Servlet wrapper classes which
are part of the Servlet API. A book will really help clear the specifics
up of why and when to use them.

Never ever use catalina classes directly unless:
- You really need to
- You really know why you are using them
- You really need to


-Tim

Gavin, Rick wrote:
 Thanks Bill,
   Does anyone have some docs about using this feature?  I haven't been
able
 to find much on the jakarta site.  I'm a bit confused as to what the
 difference between a valve and a filter is. and which is the corret
one
 to use.  When i search for filter, i get info on valves.  I haven't
found
 anything on how to use a filter.

 Also,  if i use a wrapper to extend the request/response objects, does
that
 mean in a JSP page i would be able to access any extra methods i wanted to
 add.. such as..

 -- in jsp file --
 String value = request.doMyNewAction(param1);

 is it recommeded to use the catalina wrapper objects when working with
 tomcat or the javax wrappers?

 org.apache.catalina.connector.HttpRequestWrapper
 or
 javax.servlet.http.HttpServletRequestWrapper


 Thanks for the help,

 Rick

 -Original Message-
 From: Bill Barker [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 14, 2003 7:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Extending HttpServletRequest / HttpServletResponse ???


 It depends on the version.  The answer is no for Servlet-2.2 containers
 (e.g. Tomcat 3.x).  The answer is yes for Servlet-2.3 containers (e.g.
 Tomcat 4.x).  In fact, for Servlet-2.3 containers it is one of the most
 common things that a Filter does.

 If you are using Tomcat 4.x, then look into HttpServletRequestWrapper and
 HttpServletResponseWrapper (both in the javax.servlet.http package).

 Gavin, Rick [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

Hi All
  Is it possible to extend request and response objects to add a few

 custom

properties and / or methods relating to a particular system, and have

 tomcat

use those instead of the standard request and resonse objects?

Thanks,

Rick





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

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


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



config question

2003-03-18 Thread Mantri, Mr. Ramesh
Hi,
   Trying to configure Apache 2.0.43 to work with Tomcat 4.1. Module mod_jk
(1.2.2)
was loaded in the modules directory. Inserted appropriate lines in Apache
httpd.conf
and tested with apachectl configtest. 

Apache httpd.conf
---
LoadModule jk_module modules/mod_jk.so

IfModule mod_jk.c

   JkWorkersFile /var/tomcat4/conf/workers.properties
   JkLogFile logs/mod_jk.log
   JkLogLevel info
   JkLogStampFormat [%a %b %d %H:%M:%s %Y] 

   #JkMount /servlet ajp13
   JkMount /servlet/* ajp13

/IfModule

Tomcat workers.properties
--
workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk

worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=HOST_IP (I mean actual value)
worker.ajp12.type=ajp12

worker.ajp13.port=8009
worker.ajp13.host=HOST_IP
worker.ajp13.type=ajp13

Obviously my configuration is not complete. I have been gathering bits and
pieces on the configuration from the web. I need help in completing the
configuration.
When I try to access servlets, I get the following error message:

HTTP Status 404 - /servlet/HelloWorldExample

type: Status report
message: /servlet/HelloWorldExample
description: The requested resource (/servlet/HelloWorldExample) is not
available.

Appreciate help in completing the configuration. Thanks.
sincerely,
Ramesh

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



Re: jk2 and passing env vars

2003-03-18 Thread grenoml
  I opened a bug on this in apache bugzilla: bug 18126.  Please add any
comments to the bug that may be relevant to your observations.

Regards,
Gerry
  
--- grenoml [EMAIL PROTECTED] wrote:
   Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
 you know if there is  bug open on this in bugzilla?  Do you think
 this
 is just a lack of configuration documentation or should this be
 posted
 as a bug?
 
 Regards,
 Gerry
 
 
 --- NormW [EMAIL PROTECTED] wrote:
  Good morning.
  If you are using the 2.0.43.dll version of JK2 you are not alone.
  N
  
  - Original Message - 
  From: grenoml [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 19, 2003 6:14 AM
  Subject: jk2 and passing env vars
  
  
 Is the method for passing environment vars between Apache2 and
  Tomcat
   the same for mod_jk and mod_jk2?  I am using jk2 now and when I
  tried
   adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
  this
   error when starting Apache2: 
   Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
  module
   not included in the server configuration.
 I have the LoadModule directive declared for jk2_module and the
   connector is working fine otherwise.  Does jk2 not recognize the
  Jk*
   directives?  It doesn't seem to recognize any of them.
   
   Thanks :-)
   
   
   
   __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
  desktop!
   http://platinum.yahoo.com
   
  
 
 -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
 desktop!
 http://platinum.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Arbitrary Tomcat mounting in Apache

2003-03-18 Thread Aaron Paetznick
The actual location of the cocoon directory is _outside_ any 
DocumentRoot or Directory definition.  Is that my problem?  I would not 
have suspected that at all because, and please excuse my ignorance, I 
thought mod_jk2 was more or less a glorified mod_proxy tailored for ajp13.

I'll try tweaking my Directory and DocumentRoot definitions and let the 
list know how it goes.

--Aaron



Chris Dodunski wrote:
Hi,

What is 'DocumentRoot' and the Directory tag set to in [Apache
Home]/conf/httpd.conf?  Where is 'cocoon' in relation to this?
Chris.

-Original Message-
From: Aaron Paetznick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 March 2003 5:45 a.m.
To: [EMAIL PROTECTED]
Subject: Arbitrary Tomcat mounting in Apache


I apologize because I've sent this email already with the subject JK2
context mounting, but I didn't get a response.
I want to be able to mount a Tomcat URI at any arbitrary location in
Apache.  Apache and Tomcat are currently working with the mod_jk2
connector with existing Tomcat URIs.  I'm using Apache v2.0.44, Tomcat
v4.1.18, and mod_jk2 v2.0.3-dev on Solaris 9.
Here is some of my workers2.properties file:

[uri:/cocoon/*]
context=/cocoon/
[uri:/someapp/*]
context=/cocoon/someapp/
..when I use just the first (/cocoon/) entry, /cocoon/someapp/ works
fine.  When I add the second (/someapp/) entry, both locations spit out
a 404 error.  I can't seem to find any other possible configuration
method to do this with.  This has to be a common problem and question.
I've searched Apache.org and Google extensively for the answer, but it's
no good.  I even considered trying mod_webapp, but I'm using the worker
MPM (i.e. threaded) which mod_webapp doesn't like.  The uriMap config
sounds promising, but there is zero documentation for it, and I couldn't
get it to do anything useful while I was experimenting.
Can anybody help me out?  Thanks!

--Aaron

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


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


RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Amir . Shidfar
Unfortunately that is the only one. I looked under the logs file directory
and nothing else.

Amir.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 4:27 PM
To: Tomcat Users List
Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so


NATIVE_CALL_FAILED

that's it, no error message, no stack trace, no nothing?

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 1:25 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 Thanks.
 
 I am getting the error NATIVE_CALL_FAILED.
 
 The LD_LIBRARY_PATH is setup for the library. I have the same setup in
 3.2.3.
 I did not understand the security manager enabled part? Can I 
 disable the
 security manager and try it?
 
 Amir.
 
 
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 4:10 PM
 To: Tomcat Users List
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 you didn't give us what error you get,
 
 maybe the catalina.sh in Tomcat 4.x is not picking up your 
 LD_LIBRARY_PATH,
 make sure it gets explicitely set in there,
 
 another thought is that you are running with the security 
 manager enabled
 and it restricts you from doing so
 
 Filip
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 1:06 PM
  To: [EMAIL PROTECTED]
  Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  Hi All,
  
  I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
  Unix server .
  Everything is working fine except I am using a JNI to call 
 a C library
  called sample.so and I am getting error when it is trying to 
  access the
  sample.so library. The sample.so is already in my .profile . 
  I don't get
  that error when I run in 3.2.3
  
  Anyone have any idea what am I doing wrong or am I missing 
  any steps for
  migration.
  I did the following steps.
  
  1. Stopped the 3.2.3
  2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
  ~/webapps/*war in 4.0.1
  3. I started the 4.0.1
  
  Access the JSP files and they came up without problem but as 
  soon as I use
  the sample.so it stop working.
  
  Appreciate any help.
  
  Amir.
  
  -Original Message-
  From: grenoml [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 3:37 PM
  To: Tomcat Users List
  Subject: Re: jk2 and passing env vars
  
  
Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
  you know if there is  bug open on this in bugzilla?  Do you 
 think this
  is just a lack of configuration documentation or should 
 this be posted
  as a bug?
  
  Regards,
  Gerry
  
  
  --- NormW [EMAIL PROTECTED] wrote:
   Good morning.
   If you are using the 2.0.43.dll version of JK2 you are not alone.
   N
   
   - Original Message - 
   From: grenoml [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, March 19, 2003 6:14 AM
   Subject: jk2 and passing env vars
   
   
  Is the method for passing environment vars between Apache2 and
   Tomcat
the same for mod_jk and mod_jk2?  I am using jk2 now and when I
   tried
adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
   this
error when starting Apache2: 
Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
   module
not included in the server configuration.
  I have the LoadModule directive declared for 
 jk2_module and the
connector is working fine otherwise.  Does jk2 not recognize the
   Jk*
directives?  It doesn't seem to recognize any of them.

Thanks :-)



__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
   desktop!
http://platinum.yahoo.com

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


   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness, live on 
 your desktop!
  http://platinum.yahoo.com
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL 

RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Filip Hanik
if you launch ./catalina.sh you will see diff startup options
one without security manager

also, I recommend setting your PATH and LD_LIBRARY_PATH again inside(!) the same 
script, and try it out again.

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 1:57 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 Unfortunately that is the only one. I looked under the logs 
 file directory
 and nothing else.
 
 Amir.
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 4:27 PM
 To: Tomcat Users List
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 NATIVE_CALL_FAILED
 
 that's it, no error message, no stack trace, no nothing?
 
 Filip
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 1:25 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  Thanks.
  
  I am getting the error NATIVE_CALL_FAILED.
  
  The LD_LIBRARY_PATH is setup for the library. I have the 
 same setup in
  3.2.3.
  I did not understand the security manager enabled part? Can I 
  disable the
  security manager and try it?
  
  Amir.
  
  
  
  -Original Message-
  From: Filip Hanik [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 4:10 PM
  To: Tomcat Users List
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  you didn't give us what error you get,
  
  maybe the catalina.sh in Tomcat 4.x is not picking up your 
  LD_LIBRARY_PATH,
  make sure it gets explicitely set in there,
  
  another thought is that you are running with the security 
  manager enabled
  and it restricts you from doing so
  
  Filip
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 1:06 PM
   To: [EMAIL PROTECTED]
   Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
   
   
   Hi All,
   
   I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
   Unix server .
   Everything is working fine except I am using a JNI to call 
  a C library
   called sample.so and I am getting error when it is trying to 
   access the
   sample.so library. The sample.so is already in my .profile . 
   I don't get
   that error when I run in 3.2.3
   
   Anyone have any idea what am I doing wrong or am I missing 
   any steps for
   migration.
   I did the following steps.
   
   1. Stopped the 3.2.3
   2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
   ~/webapps/*war in 4.0.1
   3. I started the 4.0.1
   
   Access the JSP files and they came up without problem but as 
   soon as I use
   the sample.so it stop working.
   
   Appreciate any help.
   
   Amir.
   
   -Original Message-
   From: grenoml [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 3:37 PM
   To: Tomcat Users List
   Subject: Re: jk2 and passing env vars
   
   
 Yes, my Apache2 is 2.0.43 and I built mod_jk2.so 
 locally.  BTW, do
   you know if there is  bug open on this in bugzilla?  Do you 
  think this
   is just a lack of configuration documentation or should 
  this be posted
   as a bug?
   
   Regards,
   Gerry
   
   
   --- NormW [EMAIL PROTECTED] wrote:
Good morning.
If you are using the 2.0.43.dll version of JK2 you are 
 not alone.
N

- Original Message - 
From: grenoml [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:14 AM
Subject: jk2 and passing env vars


   Is the method for passing environment vars between 
 Apache2 and
Tomcat
 the same for mod_jk and mod_jk2?  I am using jk2 now 
 and when I
tried
 adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it 
 results in
this
 error when starting Apache2: 
 Invalid command 'JkEnvVar', perhaps mis-spelled or 
 defined by a
module
 not included in the server configuration.
   I have the LoadModule directive declared for 
  jk2_module and the
 connector is working fine otherwise.  Does jk2 not 
 recognize the
Jk*
 directives?  It doesn't seem to recognize any of them.
 
 Thanks :-)
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
desktop!
 http://platinum.yahoo.com
 


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


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

   
   
   __
   Do you Yahoo!?
   

RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Amir . Shidfar
I ran it without the security option and still have problem. I also checked
my PATH and LD Path. They are the same setup as 3.2.3.

I appreciate getting back to me if you think of anything else.

Amir.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 5:00 PM
To: Tomcat Users List
Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so


if you launch ./catalina.sh you will see diff startup options
one without security manager

also, I recommend setting your PATH and LD_LIBRARY_PATH again inside(!) the
same script, and try it out again.

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 1:57 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 Unfortunately that is the only one. I looked under the logs 
 file directory
 and nothing else.
 
 Amir.
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 4:27 PM
 To: Tomcat Users List
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 NATIVE_CALL_FAILED
 
 that's it, no error message, no stack trace, no nothing?
 
 Filip
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 1:25 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  Thanks.
  
  I am getting the error NATIVE_CALL_FAILED.
  
  The LD_LIBRARY_PATH is setup for the library. I have the 
 same setup in
  3.2.3.
  I did not understand the security manager enabled part? Can I 
  disable the
  security manager and try it?
  
  Amir.
  
  
  
  -Original Message-
  From: Filip Hanik [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 4:10 PM
  To: Tomcat Users List
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  you didn't give us what error you get,
  
  maybe the catalina.sh in Tomcat 4.x is not picking up your 
  LD_LIBRARY_PATH,
  make sure it gets explicitely set in there,
  
  another thought is that you are running with the security 
  manager enabled
  and it restricts you from doing so
  
  Filip
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 1:06 PM
   To: [EMAIL PROTECTED]
   Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
   
   
   Hi All,
   
   I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
   Unix server .
   Everything is working fine except I am using a JNI to call 
  a C library
   called sample.so and I am getting error when it is trying to 
   access the
   sample.so library. The sample.so is already in my .profile . 
   I don't get
   that error when I run in 3.2.3
   
   Anyone have any idea what am I doing wrong or am I missing 
   any steps for
   migration.
   I did the following steps.
   
   1. Stopped the 3.2.3
   2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
   ~/webapps/*war in 4.0.1
   3. I started the 4.0.1
   
   Access the JSP files and they came up without problem but as 
   soon as I use
   the sample.so it stop working.
   
   Appreciate any help.
   
   Amir.
   
   -Original Message-
   From: grenoml [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 3:37 PM
   To: Tomcat Users List
   Subject: Re: jk2 and passing env vars
   
   
 Yes, my Apache2 is 2.0.43 and I built mod_jk2.so 
 locally.  BTW, do
   you know if there is  bug open on this in bugzilla?  Do you 
  think this
   is just a lack of configuration documentation or should 
  this be posted
   as a bug?
   
   Regards,
   Gerry
   
   
   --- NormW [EMAIL PROTECTED] wrote:
Good morning.
If you are using the 2.0.43.dll version of JK2 you are 
 not alone.
N

- Original Message - 
From: grenoml [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:14 AM
Subject: jk2 and passing env vars


   Is the method for passing environment vars between 
 Apache2 and
Tomcat
 the same for mod_jk and mod_jk2?  I am using jk2 now 
 and when I
tried
 adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it 
 results in
this
 error when starting Apache2: 
 Invalid command 'JkEnvVar', perhaps mis-spelled or 
 defined by a
module
 not included in the server configuration.
   I have the LoadModule directive declared for 
  jk2_module and the
 connector is working fine otherwise.  Does jk2 not 
 recognize the
Jk*
 directives?  It doesn't seem to recognize any of them.
 
 Thanks :-)
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
desktop!
 http://platinum.yahoo.com
 


   
  
 -
 

Tomcat 4.1.x clustering - update

2003-03-18 Thread Filip Hanik
A small update has been done to the Tomcat 4.1.x clustering implementation.
It only affects those who are using the dirty flag when replicating sessions

For info and downlads,

http://www.filip.net/tomcat-clustering.html

Filip


 -Original Message-
 From: Filip Hanik 
 Sent: Tuesday, March 18, 2003 2:00 PM
 To: Tomcat Users List
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 if you launch ./catalina.sh you will see diff startup options
 one without security manager
 
 also, I recommend setting your PATH and LD_LIBRARY_PATH again 
 inside(!) the same script, and try it out again.
 
 Filip
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 1:57 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  Unfortunately that is the only one. I looked under the logs 
  file directory
  and nothing else.
  
  Amir.
  
  -Original Message-
  From: Filip Hanik [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 4:27 PM
  To: Tomcat Users List
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  NATIVE_CALL_FAILED
  
  that's it, no error message, no stack trace, no nothing?
  
  Filip
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 1:25 PM
   To: [EMAIL PROTECTED]
   Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
   
   
   Thanks.
   
   I am getting the error NATIVE_CALL_FAILED.
   
   The LD_LIBRARY_PATH is setup for the library. I have the 
  same setup in
   3.2.3.
   I did not understand the security manager enabled part? Can I 
   disable the
   security manager and try it?
   
   Amir.
   
   
   
   -Original Message-
   From: Filip Hanik [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 4:10 PM
   To: Tomcat Users List
   Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
   
   
   you didn't give us what error you get,
   
   maybe the catalina.sh in Tomcat 4.x is not picking up your 
   LD_LIBRARY_PATH,
   make sure it gets explicitely set in there,
   
   another thought is that you are running with the security 
   manager enabled
   and it restricts you from doing so
   
   Filip
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 1:06 PM
To: [EMAIL PROTECTED]
Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so


Hi All,

I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
Unix server .
Everything is working fine except I am using a JNI to call 
   a C library
called sample.so and I am getting error when it is trying to 
access the
sample.so library. The sample.so is already in my .profile . 
I don't get
that error when I run in 3.2.3

Anyone have any idea what am I doing wrong or am I missing 
any steps for
migration.
I did the following steps.

1. Stopped the 3.2.3
2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
~/webapps/*war in 4.0.1
3. I started the 4.0.1

Access the JSP files and they came up without problem but as 
soon as I use
the sample.so it stop working.

Appreciate any help.

Amir.

-Original Message-
From: grenoml [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 3:37 PM
To: Tomcat Users List
Subject: Re: jk2 and passing env vars


  Yes, my Apache2 is 2.0.43 and I built mod_jk2.so 
  locally.  BTW, do
you know if there is  bug open on this in bugzilla?  Do you 
   think this
is just a lack of configuration documentation or should 
   this be posted
as a bug?

Regards,
Gerry


--- NormW [EMAIL PROTECTED] wrote:
 Good morning.
 If you are using the 2.0.43.dll version of JK2 you are 
  not alone.
 N
 
 - Original Message - 
 From: grenoml [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 6:14 AM
 Subject: jk2 and passing env vars
 
 
Is the method for passing environment vars between 
  Apache2 and
 Tomcat
  the same for mod_jk and mod_jk2?  I am using jk2 now 
  and when I
 tried
  adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it 
  results in
 this
  error when starting Apache2: 
  Invalid command 'JkEnvVar', perhaps mis-spelled or 
  defined by a
 module
  not included in the server configuration.
I have the LoadModule directive declared for 
   jk2_module and the
  connector is working fine otherwise.  Does jk2 not 
  recognize the
 Jk*
  directives?  It doesn't seem to recognize any of them.
  
  Thanks :-)
  
  
  
  __
  Do you Yahoo!?
  Yahoo! Platinum - 

RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so

2003-03-18 Thread Filip Hanik
 also, I recommend setting your PATH and LD_LIBRARY_PATH again 
 inside(!) the
 same script, and try it out again.

let me clarify this:

modify catalina.sh to set this variables, and try again.

Filip

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 2:32 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 I ran it without the security option and still have problem. 
 I also checked
 my PATH and LD Path. They are the same setup as 3.2.3.
 
 I appreciate getting back to me if you think of anything else.
 
 Amir.
 
 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 5:00 PM
 To: Tomcat Users List
 Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
 
 
 if you launch ./catalina.sh you will see diff startup options
 one without security manager
 
 also, I recommend setting your PATH and LD_LIBRARY_PATH again 
 inside(!) the
 same script, and try it out again.
 
 Filip
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 1:57 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  Unfortunately that is the only one. I looked under the logs 
  file directory
  and nothing else.
  
  Amir.
  
  -Original Message-
  From: Filip Hanik [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 18, 2003 4:27 PM
  To: Tomcat Users List
  Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
  
  
  NATIVE_CALL_FAILED
  
  that's it, no error message, no stack trace, no nothing?
  
  Filip
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 1:25 PM
   To: [EMAIL PROTECTED]
   Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
   
   
   Thanks.
   
   I am getting the error NATIVE_CALL_FAILED.
   
   The LD_LIBRARY_PATH is setup for the library. I have the 
  same setup in
   3.2.3.
   I did not understand the security manager enabled part? Can I 
   disable the
   security manager and try it?
   
   Amir.
   
   
   
   -Original Message-
   From: Filip Hanik [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 18, 2003 4:10 PM
   To: Tomcat Users List
   Subject: RE: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so
   
   
   you didn't give us what error you get,
   
   maybe the catalina.sh in Tomcat 4.x is not picking up your 
   LD_LIBRARY_PATH,
   make sure it gets explicitely set in there,
   
   another thought is that you are running with the security 
   manager enabled
   and it restricts you from doing so
   
   Filip
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 1:06 PM
To: [EMAIL PROTECTED]
Subject: Error Migrating from Tomcat 3.2.3 to 4.0.1 in .so


Hi All,

I am migrating my applications from TC 3.2.3 to 4.0.1 in the 
Unix server .
Everything is working fine except I am using a JNI to call 
   a C library
called sample.so and I am getting error when it is trying to 
access the
sample.so library. The sample.so is already in my .profile . 
I don't get
that error when I run in 3.2.3

Anyone have any idea what am I doing wrong or am I missing 
any steps for
migration.
I did the following steps.

1. Stopped the 3.2.3
2. I copied all my *.war files from 3.2.3 ~/webapps/*.war to the
~/webapps/*war in 4.0.1
3. I started the 4.0.1

Access the JSP files and they came up without problem but as 
soon as I use
the sample.so it stop working.

Appreciate any help.

Amir.

-Original Message-
From: grenoml [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 3:37 PM
To: Tomcat Users List
Subject: Re: jk2 and passing env vars


  Yes, my Apache2 is 2.0.43 and I built mod_jk2.so 
  locally.  BTW, do
you know if there is  bug open on this in bugzilla?  Do you 
   think this
is just a lack of configuration documentation or should 
   this be posted
as a bug?

Regards,
Gerry


--- NormW [EMAIL PROTECTED] wrote:
 Good morning.
 If you are using the 2.0.43.dll version of JK2 you are 
  not alone.
 N
 
 - Original Message - 
 From: grenoml [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 6:14 AM
 Subject: jk2 and passing env vars
 
 
Is the method for passing environment vars between 
  Apache2 and
 Tomcat
  the same for mod_jk and mod_jk2?  I am using jk2 now 
  and when I
 tried
  adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it 
  results in
 this
  error when starting Apache2: 
  Invalid command 'JkEnvVar', perhaps mis-spelled or 
  defined by a
 

RE: Arbitrary Tomcat mounting in Apache

2003-03-18 Thread Chris Dodunski
Well, I redefined DocumentRoot and Directory in [Apache
Home]/conf/httpd.conf so I could navigate to [Tomcat Home]/webapps (via
JK2), but perhaps this isn't the way it's best done - although it works.
Previously I could only navigate to [Apache Home]/htdocs.  I would like to
hear more on this also.

Chris.


-Original Message-
From: Aaron Paetznick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 March 2003 9:53 a.m.
To: Tomcat Users List
Subject: Re: Arbitrary Tomcat mounting in Apache



The actual location of the cocoon directory is _outside_ any
DocumentRoot or Directory definition.  Is that my problem?  I would not
have suspected that at all because, and please excuse my ignorance, I
thought mod_jk2 was more or less a glorified mod_proxy tailored for ajp13.

I'll try tweaking my Directory and DocumentRoot definitions and let the
list know how it goes.


--Aaron



Chris Dodunski wrote:
 Hi,

 What is 'DocumentRoot' and the Directory tag set to in [Apache
 Home]/conf/httpd.conf?  Where is 'cocoon' in relation to this?

 Chris.


 -Original Message-
 From: Aaron Paetznick [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 19 March 2003 5:45 a.m.
 To: [EMAIL PROTECTED]
 Subject: Arbitrary Tomcat mounting in Apache



 I apologize because I've sent this email already with the subject JK2
 context mounting, but I didn't get a response.

 I want to be able to mount a Tomcat URI at any arbitrary location in
 Apache.  Apache and Tomcat are currently working with the mod_jk2
 connector with existing Tomcat URIs.  I'm using Apache v2.0.44, Tomcat
 v4.1.18, and mod_jk2 v2.0.3-dev on Solaris 9.

 Here is some of my workers2.properties file:

 [uri:/cocoon/*]
 context=/cocoon/

 [uri:/someapp/*]
 context=/cocoon/someapp/


 ..when I use just the first (/cocoon/) entry, /cocoon/someapp/ works
 fine.  When I add the second (/someapp/) entry, both locations spit out
 a 404 error.  I can't seem to find any other possible configuration
 method to do this with.  This has to be a common problem and question.

 I've searched Apache.org and Google extensively for the answer, but it's
 no good.  I even considered trying mod_webapp, but I'm using the worker
 MPM (i.e. threaded) which mod_webapp doesn't like.  The uriMap config
 sounds promising, but there is zero documentation for it, and I couldn't
 get it to do anything useful while I was experimenting.

 Can anybody help me out?  Thanks!


 --Aaron


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


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




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


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



Tomcat 4.1.18

2003-03-18 Thread Keith
I have just installed and having running Tomcat 4.1.18 for Windows ... I 
am presently starting the server by using the {TOMCAT}\bin\startup.bat 
script  is there a way to start the Tomcat server using services ???

Thanks,
Keith Crosby
--
-
Keith S. Crosby
Principal Systems Consultant
Xyvision Enterprise Solutions Inc.
30 New Crossing Rd
Reading, MA 01867
781-756-5669
visit:  www.xyenterprise.com
-


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


RE: tomcat production conf

2003-03-18 Thread Kapil Sharma
Hi,
Can anyone please reply to my queries?

kapil

-Original Message-
From: Kapil Sharma [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 12:52
To: Tomcat Users List
Subject: tomcat production conf
Importance: High


Hi Guys,
I am unable to find any resource for tomcat setting in production
environment. I did some RTFM and changed the setting myself but now my
apache is not accepting any new connections after a hour. Tomcat with old
server.xml settings, tomcat works file for few hours and if it gets load it
just hangs. In the new confirmation tomcat just hangs after few hours.
I am attaching my old as well as new server.xml file. Can anyone please have
a look and send me suggestions.

Please advise.

kapil




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



RE: Tomcat 4.1.18

2003-03-18 Thread Chris Dodunski
When you installed Tomcat, did you select a normal install (NT
checkbox=false), or custom (NT checkbox=true)?

Chris.


-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 March 2003 10:40 a.m.
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.18


I have just installed and having running Tomcat 4.1.18 for Windows ... I
am presently starting the server by using the {TOMCAT}\bin\startup.bat
script  is there a way to start the Tomcat server using services ???

Thanks,
Keith Crosby

--
-
Keith S. Crosby
Principal Systems Consultant
Xyvision Enterprise Solutions Inc.
30 New Crossing Rd
Reading, MA 01867
781-756-5669
visit:  www.xyenterprise.com
-



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


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



RE: Tomcat 4.1.18

2003-03-18 Thread Tam, Michael
there is a exe file call tomcat.exe in the \bin directory
try type in something like tomcat.exe -help and this should help you install
the service.

Cheers,
Michael

-Original Message-
From: Keith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.18


I have just installed and having running Tomcat 4.1.18 for Windows ... I 
am presently starting the server by using the {TOMCAT}\bin\startup.bat 
script  is there a way to start the Tomcat server using services ???

Thanks,
Keith Crosby

-- 
-
Keith S. Crosby
Principal Systems Consultant
Xyvision Enterprise Solutions Inc.
30 New Crossing Rd
Reading, MA 01867
781-756-5669
visit:  www.xyenterprise.com
-



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

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



Can't connect to X11 window server using '0:0' as the value of thedisplay

2003-03-18 Thread Georges Roux
Hello everybody,

Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01.

I have a servlet which manipulate exif informations in jpg images.
it works well but when I try to run it on tomcat it fails (error 500)
I have the following error:
Can't connect to X11 window server using '0:0' as the value of the display
What can I do?

Georges

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


Re: jk2 and passing env vars

2003-03-18 Thread NormW
Good morning Gerry.
I'm working with Tomcat on Netware and only got involved because of a desire
to try JK2;...then find it isn't available for Netware because the way it
works internally cannot be easily ported.

I downloaded mod_jk2-2.0.43.dll as I'm not set up for compiling here, and
found that, even with 2.0.43 Apache2 installed (WinNT), the Jk directives
were not being recognised in httpd.conf.

I had a Ifmodule mod_jk2.c directive that WAS being interpreted correctly
[mis-spelling the module name would cause Apache to bypass the directives]
so I know it could see the module, but not the Directives. Given that I
couldn't put the dll to much use (I was mostly curious to see the 'status'
ouput) I left it at that in hope the next release of JK2 provides docs that
allow a functional spec of the module to be derived... from which a port to
Netware might be created. Wether this was a bug carried over from the source
or a corrupted dll I couldn't say, but your experience suggests it might be
in the source.

On a side note, can't say I'm impressed with the 'everyone gets all the
mail' methodology after working with conventional newsgroups... I had one
simple question and, on one morning alone, got 91 emails... sheesh!...
99.99% I couldn't even answer and not in regard to my question... which is
why I'll probably opt out and just read the archives.

As far as passing environment vars to Tomcat, I assume that is used when
Tomcat is run in a JVM within the Apache web space because there doesn't
appear to be any mention of passing vars in the ajp13 protocol description,
although it is listed as an enhancement in the proposed ajp13 upgrade
(ajp14?).
For now
Norm

- Original Message -
From: grenoml [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 7:36 AM
Subject: Re: jk2 and passing env vars


   Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW, do
 you know if there is  bug open on this in bugzilla?  Do you think this
 is just a lack of configuration documentation or should this be posted
 as a bug?

 Regards,
 Gerry


 --- NormW [EMAIL PROTECTED] wrote:
  Good morning.
  If you are using the 2.0.43.dll version of JK2 you are not alone.
  N
 
  - Original Message -
  From: grenoml [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 19, 2003 6:14 AM
  Subject: jk2 and passing env vars
 
 
 Is the method for passing environment vars between Apache2 and
  Tomcat
   the same for mod_jk and mod_jk2?  I am using jk2 now and when I
  tried
   adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results in
  this
   error when starting Apache2:
   Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
  module
   not included in the server configuration.
 I have the LoadModule directive declared for jk2_module and the
   connector is working fine otherwise.  Does jk2 not recognize the
  Jk*
   directives?  It doesn't seem to recognize any of them.
  
   Thanks :-)
  
  
  
   __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
  desktop!
   http://platinum.yahoo.com
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
 http://platinum.yahoo.com

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




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



RE: Can't connect to X11 window server using '0:0' as the value of the display

2003-03-18 Thread Filip Hanik
can you try to set the DISPLAY env variable to localhost:0.0

export DISPLAY=localhost:0.0

Filip

 -Original Message-
 From: Georges Roux [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 18, 2003 3:32 PM
 To: [EMAIL PROTECTED]
 Subject: Can't connect to X11 window server using '0:0' as 
 the value of
 the display
 
 
 Hello everybody,
 
 Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use 
 J2sdk1.4.1_01.
 
 I have a servlet which manipulate exif informations in jpg images.
 it works well but when I try to run it on tomcat it fails (error 500)
 
 I have the following error:
 Can't connect to X11 window server using '0:0' as the value 
 of the display
 
 What can I do?
 
 Georges
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



Re: Can't connect to X11 window server using '0:0' as the value ofthe display

2003-03-18 Thread Theodore Chen
Try running the Tomcat VM with the -Djava.awt.headless=true system
property (set it in an environment variable named CATALINA_OPTS).

On Tue, 2003-03-18 at 16:31, Georges Roux wrote:
 Hello everybody,
 
 Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01.
 
 I have a servlet which manipulate exif informations in jpg images.
 it works well but when I try to run it on tomcat it fails (error 500)
 
 I have the following error:
 Can't connect to X11 window server using '0:0' as the value of the display
 
 What can I do?
 
 Georges
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



Need help configuring Tomcat (Standalone) with CGI Suppport

2003-03-18 Thread Luis Casillas
Can anyone help me configure this setup.

Do I need to create the actual cgi-bin and if so where?


Running on Windows.




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


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



Re: Best way to capture Stack Trace when Tomcat Failes complete?

2003-03-18 Thread Tim Funk
2 easy(but not the only) ways:

1 - Hack catalina.bat to redirect standard output to a file.
2 - Use cygwin and stdout/error will go to logs/catalina.out
-Tim

Matt Fury wrote:
Hi All,

I am doing some native programming with Java and C++
DLL. The DLL works the first time around through a JSP
page but the second time around it crashes Tomcat
completely. Unfortunately the Stack Trace prints out
in the console but the console shuts down before I can
read it. Is there a way to capture that information to
a log file since its  low-level?
-Matt
 


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


Re: config question

2003-03-18 Thread Tim Funk
Since 4.1.12 - tomcat doesn't leave the invoker serlvet on by  default. 
The invoker servlet is the magic servlet that allows you to run 
servlets without registering them in web.xml

For more information see here:
http://tomcatfaq.sourceforge.net/miscellaneous.html
-Tim

Mantri, Mr. Ramesh wrote:
Hi,
   Trying to configure Apache 2.0.43 to work with Tomcat 4.1. Module mod_jk
(1.2.2)
was loaded in the modules directory. Inserted appropriate lines in Apache
httpd.conf
and tested with apachectl configtest. 

Apache httpd.conf
---
LoadModule jk_module modules/mod_jk.so
IfModule mod_jk.c

   JkWorkersFile /var/tomcat4/conf/workers.properties
   JkLogFile logs/mod_jk.log
   JkLogLevel info
   JkLogStampFormat [%a %b %d %H:%M:%s %Y] 
   #JkMount /servlet ajp13
   JkMount /servlet/* ajp13
/IfModule

Tomcat workers.properties
--
workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk
worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=HOST_IP (I mean actual value)
worker.ajp12.type=ajp12
worker.ajp13.port=8009
worker.ajp13.host=HOST_IP
worker.ajp13.type=ajp13
Obviously my configuration is not complete. I have been gathering bits and
pieces on the configuration from the web. I need help in completing the
configuration.
When I try to access servlets, I get the following error message:
HTTP Status 404 - /servlet/HelloWorldExample

type: Status report
message: /servlet/HelloWorldExample
description: The requested resource (/servlet/HelloWorldExample) is not
available.
Appreciate help in completing the configuration. Thanks.
sincerely,
Ramesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


RE: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Gavin, Rick
Thanks Erik,
  That article cleared alot up for me.

Rick

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:27 AM
To: Tomcat Users List
Subject: Re: Extending HttpServletRequest / HttpServletResponse ???




Gavin, Rick wrote:
 
 I'd recommend getting a Serlvet programming book and optionally a JSP 
 book. They will come in very handy for these questions.
 
 really? I have one of each, neither mention the subject or either
 classes mentioned. Maybe before you make a vague suggestion like 
 get a book , you may want to qualify about whether or not the 
 desired result is possible and suggest an appropriate resource that 
 may actually contain said information( book title, etc,).  
 
 Its always nice to try something a little different and be demoted
 to idiot status with the statment , get a book
 
 Does anyone have an useful information

The book that I learned servlet programming from didn't talk about 
Filters either, because they are relatively new and the book 
(http://coreservlets.com/) was published a couple of years ago.

You can learn more about them in a newer book, in the servlet 
specification (http://java.sun.com/products/servlet/download.html), or 
in an article 
(http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html). 
  Reading that article in conjunction with the spec made it really easy 
to understand what they are and how they work.



Erik


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

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



sporadic page not found errors with tomcat 4.1.21

2003-03-18 Thread Jubal Skaggs
I'm getting reports of people sporadically getting page not found errors with our app 
running on tomcat 4.1.21LE.  Has anyone seen this kind of problem before, i've 
probably done something dumb in server.xml.  I'm on solaris8 sparc, jdk1.4.

Here is relevant part of my server.xml (i think):

Connector 
className=org.apache.coyote.tomcat4.CoyoteConnector
acceptCount=100 
bufferSize=2048
compression=off 
connectionLinger=-1 
connectionTimeout=2 
debug=0 
disableUploadTimeout=true 
enableLookups=false 
maxKeepAliveRequests=100 
maxProcessors=75 
minProcessors=5 
port=8443 
protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol 
proxyPort=0 
redirectPort=443 
scheme=https 
secure=true 
tcpNoDelay=true
useURIValidationHack=false
Factory 
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory 
clientAuth=false 
keystoreFile=/usr/tomcat/.keystore 
keystorePass=it's not here. 
keystoreType=JKS 
protocol=TLS 
randomFile=/usr/tomcat/random.pem
rootFile=/usr/tomcat/root.pem/
/Connector
 
Anyone can shed light on this or having similar problems?


Re: jk2 and passing env vars

2003-03-18 Thread grenoml
  I took a look at AJP13 Extension Proposal and it looks at though the
original JkEnvVar should have been inherited from AJP12 into AJP13 so
it should be working unless someone maybe fubar the old code.  Well,
we'll see if apache group responds to my bug 12186.
  I know how you feel about all the emails from these lists.  I wish
they would add an option to just let you flag topics that you want to
watch and forget the rest.  I took a yahoo account with 4MB limit just
to discpline myself to manage the different maillist inboxes.  I either
manage it or I cannot send or receive mail - great incentive.
  And good luck on Netware conversion.

Gerry

--- NormW [EMAIL PROTECTED] wrote:
 Good morning Gerry.
 I'm working with Tomcat on Netware and only got involved because of a
 desire
 to try JK2;...then find it isn't available for Netware because the
 way it
 works internally cannot be easily ported.
 
 I downloaded mod_jk2-2.0.43.dll as I'm not set up for compiling here,
 and
 found that, even with 2.0.43 Apache2 installed (WinNT), the Jk
 directives
 were not being recognised in httpd.conf.
 
 I had a Ifmodule mod_jk2.c directive that WAS being interpreted
 correctly
 [mis-spelling the module name would cause Apache to bypass the
 directives]
 so I know it could see the module, but not the Directives. Given that
 I
 couldn't put the dll to much use (I was mostly curious to see the
 'status'
 ouput) I left it at that in hope the next release of JK2 provides
 docs that
 allow a functional spec of the module to be derived... from which a
 port to
 Netware might be created. Wether this was a bug carried over from the
 source
 or a corrupted dll I couldn't say, but your experience suggests it
 might be
 in the source.
 
 On a side note, can't say I'm impressed with the 'everyone gets all
 the
 mail' methodology after working with conventional newsgroups... I had
 one
 simple question and, on one morning alone, got 91 emails...
 sheesh!...
 99.99% I couldn't even answer and not in regard to my question...
 which is
 why I'll probably opt out and just read the archives.
 
 As far as passing environment vars to Tomcat, I assume that is used
 when
 Tomcat is run in a JVM within the Apache web space because there
 doesn't
 appear to be any mention of passing vars in the ajp13 protocol
 description,
 although it is listed as an enhancement in the proposed ajp13 upgrade
 (ajp14?).
 For now
 Norm
 
 - Original Message -
 From: grenoml [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 7:36 AM
 Subject: Re: jk2 and passing env vars
 
 
Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW,
 do
  you know if there is  bug open on this in bugzilla?  Do you think
 this
  is just a lack of configuration documentation or should this be
 posted
  as a bug?
 
  Regards,
  Gerry
 
 
  --- NormW [EMAIL PROTECTED] wrote:
   Good morning.
   If you are using the 2.0.43.dll version of JK2 you are not alone.
   N
  
   - Original Message -
   From: grenoml [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, March 19, 2003 6:14 AM
   Subject: jk2 and passing env vars
  
  
  Is the method for passing environment vars between Apache2
 and
   Tomcat
the same for mod_jk and mod_jk2?  I am using jk2 now and when I
   tried
adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results
 in
   this
error when starting Apache2:
Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
   module
not included in the server configuration.
  I have the LoadModule directive declared for jk2_module and
 the
connector is working fine otherwise.  Does jk2 not recognize
 the
   Jk*
directives?  It doesn't seem to recognize any of them.
   
Thanks :-)
   
   
   
__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
   desktop!
http://platinum.yahoo.com
   
   
  
 -
To unsubscribe, e-mail:
 [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
 -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
 desktop!
  http://platinum.yahoo.com
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March 

two copies of each post

2003-03-18 Thread Mantri, Mr. Ramesh
Thank you for the info. I have been getting two copies of
every post. Did someone else notice this? Could this be fixed
somehow?
sincerely,
Ramesh

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 4:17 PM
To: Tomcat Users List
Subject: Re: config question


Since 4.1.12 - tomcat doesn't leave the invoker serlvet on by  default. 
The invoker servlet is the magic servlet that allows you to run 
servlets without registering them in web.xml

For more information see here:
http://tomcatfaq.sourceforge.net/miscellaneous.html

-Tim

Mantri, Mr. Ramesh wrote:
 Hi,
Trying to configure Apache 2.0.43 to work with Tomcat 4.1. Module
mod_jk
 (1.2.2)
 was loaded in the modules directory. Inserted appropriate lines in Apache
 httpd.conf
 and tested with apachectl configtest. 
 
 Apache httpd.conf
 ---
 LoadModule jk_module modules/mod_jk.so
 
 IfModule mod_jk.c
 
JkWorkersFile /var/tomcat4/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%s %Y] 
 
#JkMount /servlet ajp13
JkMount /servlet/* ajp13
 
 /IfModule
 
 Tomcat workers.properties
 --
 workers.tomcat_home=/var/tomcat4
 workers.java_home=/usr/java/jdk
 
 worker.list=ajp12, ajp13
 
 worker.ajp12.port=8007
 worker.ajp12.host=HOST_IP (I mean actual value)
 worker.ajp12.type=ajp12
 
 worker.ajp13.port=8009
 worker.ajp13.host=HOST_IP
 worker.ajp13.type=ajp13
 
 Obviously my configuration is not complete. I have been gathering bits and
 pieces on the configuration from the web. I need help in completing the
 configuration.
 When I try to access servlets, I get the following error message:
 
 HTTP Status 404 - /servlet/HelloWorldExample
 
 type: Status report
 message: /servlet/HelloWorldExample
 description: The requested resource (/servlet/HelloWorldExample) is not
 available.
 
 Appreciate help in completing the configuration. Thanks.
 sincerely,
 Ramesh
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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



RE: jk2 and passing env vars

2003-03-18 Thread Chris Dodunski
Why not a Tomcat eForum, like those at www.codeguru.com?  Visitors can then
expand only those threads which interest them, and notifyEmail is only
dispatched to the thread initialiser and post authors within that thread.
Problems are not missed, and solutions persist...  Blah blah blah, so it
goes on.  Mailing lists are fine for eCommunities, but not for eContinents
(was that an echo? :-).

Chris.


-Original Message-
From: grenoml [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 March 2003 1:02 p.m.
To: Tomcat Users List
Subject: Re: jk2 and passing env vars


  I took a look at AJP13 Extension Proposal and it looks at though the
original JkEnvVar should have been inherited from AJP12 into AJP13 so
it should be working unless someone maybe fubar the old code.  Well,
we'll see if apache group responds to my bug 12186.
  I know how you feel about all the emails from these lists.  I wish
they would add an option to just let you flag topics that you want to
watch and forget the rest.  I took a yahoo account with 4MB limit just
to discpline myself to manage the different maillist inboxes.  I either
manage it or I cannot send or receive mail - great incentive.
  And good luck on Netware conversion.

Gerry

--- NormW [EMAIL PROTECTED] wrote:
 Good morning Gerry.
 I'm working with Tomcat on Netware and only got involved because of a
 desire
 to try JK2;...then find it isn't available for Netware because the
 way it
 works internally cannot be easily ported.

 I downloaded mod_jk2-2.0.43.dll as I'm not set up for compiling here,
 and
 found that, even with 2.0.43 Apache2 installed (WinNT), the Jk
 directives
 were not being recognised in httpd.conf.

 I had a Ifmodule mod_jk2.c directive that WAS being interpreted
 correctly
 [mis-spelling the module name would cause Apache to bypass the
 directives]
 so I know it could see the module, but not the Directives. Given that
 I
 couldn't put the dll to much use (I was mostly curious to see the
 'status'
 ouput) I left it at that in hope the next release of JK2 provides
 docs that
 allow a functional spec of the module to be derived... from which a
 port to
 Netware might be created. Wether this was a bug carried over from the
 source
 or a corrupted dll I couldn't say, but your experience suggests it
 might be
 in the source.

 On a side note, can't say I'm impressed with the 'everyone gets all
 the
 mail' methodology after working with conventional newsgroups... I had
 one
 simple question and, on one morning alone, got 91 emails...
 sheesh!...
 99.99% I couldn't even answer and not in regard to my question...
 which is
 why I'll probably opt out and just read the archives.

 As far as passing environment vars to Tomcat, I assume that is used
 when
 Tomcat is run in a JVM within the Apache web space because there
 doesn't
 appear to be any mention of passing vars in the ajp13 protocol
 description,
 although it is listed as an enhancement in the proposed ajp13 upgrade
 (ajp14?).
 For now
 Norm

 - Original Message -
 From: grenoml [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 19, 2003 7:36 AM
 Subject: Re: jk2 and passing env vars


Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW,
 do
  you know if there is  bug open on this in bugzilla?  Do you think
 this
  is just a lack of configuration documentation or should this be
 posted
  as a bug?
 
  Regards,
  Gerry
 
 
  --- NormW [EMAIL PROTECTED] wrote:
   Good morning.
   If you are using the 2.0.43.dll version of JK2 you are not alone.
   N
  
   - Original Message -
   From: grenoml [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, March 19, 2003 6:14 AM
   Subject: jk2 and passing env vars
  
  
  Is the method for passing environment vars between Apache2
 and
   Tomcat
the same for mod_jk and mod_jk2?  I am using jk2 now and when I
   tried
adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results
 in
   this
error when starting Apache2:
Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
   module
not included in the server configuration.
  I have the LoadModule directive declared for jk2_module and
 the
connector is working fine otherwise.  Does jk2 not recognize
 the
   Jk*
directives?  It doesn't seem to recognize any of them.
   
Thanks :-)
   
   
   
__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
   desktop!
http://platinum.yahoo.com
   
   
  
 -
To unsubscribe, e-mail:
 [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
 -
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
  __
  Do you 

Re: two copies of each post

2003-03-18 Thread Tim Funk
If you are getting 2 copies - odds are you are subscribed twice with 2 
aliases.

For a given duplicate - check your message headers very carefully and 
see if they are different and possible unsubscribe to get rid of the 
duplicate address.

For example, another set email system mangles my email address like this:
[EMAIL PROTECTED] (official email)
[EMAIL PROTECTED] (Is how my outgoing email is sent)
As well as 9 other aliases that are available. Ug!

-Tim

Mantri, Mr. Ramesh wrote:
Thank you for the info. I have been getting two copies of
every post. Did someone else notice this? Could this be fixed
somehow?
sincerely,
Ramesh
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 4:17 PM
To: Tomcat Users List
Subject: Re: config question
Since 4.1.12 - tomcat doesn't leave the invoker serlvet on by  default. 
The invoker servlet is the magic servlet that allows you to run 
servlets without registering them in web.xml

For more information see here:
http://tomcatfaq.sourceforge.net/miscellaneous.html
-Tim

Mantri, Mr. Ramesh wrote:

Hi,
  Trying to configure Apache 2.0.43 to work with Tomcat 4.1. Module
mod_jk

(1.2.2)
was loaded in the modules directory. Inserted appropriate lines in Apache
httpd.conf
and tested with apachectl configtest. 

Apache httpd.conf
---
LoadModule jk_module modules/mod_jk.so
IfModule mod_jk.c

  JkWorkersFile /var/tomcat4/conf/workers.properties
  JkLogFile logs/mod_jk.log
  JkLogLevel info
  JkLogStampFormat [%a %b %d %H:%M:%s %Y] 
  #JkMount /servlet ajp13
  JkMount /servlet/* ajp13
/IfModule

Tomcat workers.properties
--
workers.tomcat_home=/var/tomcat4
workers.java_home=/usr/java/jdk
worker.list=ajp12, ajp13

worker.ajp12.port=8007
worker.ajp12.host=HOST_IP (I mean actual value)
worker.ajp12.type=ajp12
worker.ajp13.port=8009
worker.ajp13.host=HOST_IP
worker.ajp13.type=ajp13
Obviously my configuration is not complete. I have been gathering bits and
pieces on the configuration from the web. I need help in completing the
configuration.
When I try to access servlets, I get the following error message:
HTTP Status 404 - /servlet/HelloWorldExample

type: Status report
message: /servlet/HelloWorldExample
description: The requested resource (/servlet/HelloWorldExample) is not
available.
Appreciate help in completing the configuration. Thanks.
sincerely,
Ramesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



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


RE: jk2 and passing env vars

2003-03-18 Thread grenoml
  I agree on the eForum approach.  On the jk2 issue I went into CVS and
found something interesting in mod_jk2.c:
--
Thu Feb 28 23:35:26 2002 UTC (12 months, 2 weeks ago) by costin
Branch: MAIN
Changes since 1.1: +101 -306 lines
Diff to previous 1.1 (colored)

Finally, the config changed we discussed.

There is only one config directive for mod_jk that we should care:
  JkSet name value

JkSet workersFile  ... will read properties from a file, you can
use it multiple times.

Also JkSet workersFile urimap.properties will read a file in the
style used by IIS ( /uri=worker ).
Or
  JkSet /examples ajp13
will do the same as the old JkMount /examples ajp13 ( or
/examples=ajp13
in any properties file ).

Properties file will hopefully be automatically generated, and this
allows
httpd.conf to be used in the exact way with workers.properties ( and
reverse).

The other special directive is JkSetUri, in a Location context, which
will
set properties on a uriEnv.

I'll add an equivalent thing, properties-style, and that should be it.
--

  So how does that work for passing env vars to Tomcat?  Looks like
maybe the Jk directive functionality may have been disconnected by
intent.  But do we have a replacement for all former Jk directives?

Gerry


--- Chris Dodunski [EMAIL PROTECTED] wrote:
 Why not a Tomcat eForum, like those at www.codeguru.com?  Visitors
 can then
 expand only those threads which interest them, and notifyEmail is
 only
 dispatched to the thread initialiser and post authors within that
 thread.
 Problems are not missed, and solutions persist...  Blah blah blah, so
 it
 goes on.  Mailing lists are fine for eCommunities, but not for
 eContinents
 (was that an echo? :-).
 
 Chris.
 
 
 -Original Message-
 From: grenoml [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 19 March 2003 1:02 p.m.
 To: Tomcat Users List
 Subject: Re: jk2 and passing env vars
 
 
   I took a look at AJP13 Extension Proposal and it looks at though
 the
 original JkEnvVar should have been inherited from AJP12 into AJP13 so
 it should be working unless someone maybe fubar the old code.  Well,
 we'll see if apache group responds to my bug 12186.
   I know how you feel about all the emails from these lists.  I wish
 they would add an option to just let you flag topics that you want to
 watch and forget the rest.  I took a yahoo account with 4MB limit
 just
 to discpline myself to manage the different maillist inboxes.  I
 either
 manage it or I cannot send or receive mail - great incentive.
   And good luck on Netware conversion.
 
 Gerry
 
 --- NormW [EMAIL PROTECTED] wrote:
  Good morning Gerry.
  I'm working with Tomcat on Netware and only got involved because of
 a
  desire
  to try JK2;...then find it isn't available for Netware because the
  way it
  works internally cannot be easily ported.
 
  I downloaded mod_jk2-2.0.43.dll as I'm not set up for compiling
 here,
  and
  found that, even with 2.0.43 Apache2 installed (WinNT), the Jk
  directives
  were not being recognised in httpd.conf.
 
  I had a Ifmodule mod_jk2.c directive that WAS being interpreted
  correctly
  [mis-spelling the module name would cause Apache to bypass the
  directives]
  so I know it could see the module, but not the Directives. Given
 that
  I
  couldn't put the dll to much use (I was mostly curious to see the
  'status'
  ouput) I left it at that in hope the next release of JK2 provides
  docs that
  allow a functional spec of the module to be derived... from which a
  port to
  Netware might be created. Wether this was a bug carried over from
 the
  source
  or a corrupted dll I couldn't say, but your experience suggests it
  might be
  in the source.
 
  On a side note, can't say I'm impressed with the 'everyone gets all
  the
  mail' methodology after working with conventional newsgroups... I
 had
  one
  simple question and, on one morning alone, got 91 emails...
  sheesh!...
  99.99% I couldn't even answer and not in regard to my question...
  which is
  why I'll probably opt out and just read the archives.
 
  As far as passing environment vars to Tomcat, I assume that is used
  when
  Tomcat is run in a JVM within the Apache web space because there
  doesn't
  appear to be any mention of passing vars in the ajp13 protocol
  description,
  although it is listed as an enhancement in the proposed ajp13
 upgrade
  (ajp14?).
  For now
  Norm
 
  - Original Message -
  From: grenoml [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, March 19, 2003 7:36 AM
  Subject: Re: jk2 and passing env vars
 
 
 Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW,
  do
   you know if there is  bug open on this in bugzilla?  Do you think
  this
   is just a lack of configuration documentation or should this be
  posted
   as a bug?
  
   Regards,
   Gerry
  
  
   --- NormW [EMAIL PROTECTED] wrote:
Good morning.
If you are using the 2.0.43.dll version of JK2 you are not

RE: Tomcat 4.18 taking extremely long to start

2003-03-18 Thread Filip Hanik
your server.xml is incorrect,
did you change it?

Filip

-Original Message-
From: Janz, Alexander [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 3:31 AM
To: 'Tomcat Users List'
Subject: Tomcat 4.18 taking extremely long to start


hello,

i've installed tomcat 4.18 on windows nt 4. after clicking the start icon i
have to wait several minutes till tomcat is ready. the screen runs full with
messages like below.

has anyone an idea what  the problem is?

18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN: startElement(,,attribute)
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   Pushing body text ''
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   New match='taglib/tag/attribute'
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   No rules found matching 'taglib/tag/attribute'.
18.03.2003 12:33:45 org.apache.commons.digester.Digester ignorableWhitespace
FEIN: ignorableWhitespace(
)
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN: startElement(,,name)
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   Pushing body text ''
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   New match='taglib/tag/attribute/name'
18.03.2003 12:33:45 org.apache.commons.digester.Digester startElement
FEIN:   No rules found matching 'taglib/tag/attribute/name'.
18.03.2003 12:33:45 org.apache.commons.digester.Digester characters
FEIN: characters(onmousemove)
18.03.2003 12:33:45 org.apache.commons.digester.Digester endElement
FEIN: endElement(,,name)

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



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



JK2 for Linux

2003-03-18 Thread Chris Dodunski
Hi,

Apache.org download page for JK2 2.0.1 reports that it is initial release
quality code, and the JK2 2.0.2 page has no download for Linux.  Is there a
2.0.2 version for Linux, and if so what is its status regarding
testing/release?

Thanks,

Chris.


http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2
.0.1/

This is the 2.0.1 release of JK2

The JK2 should be considered initial-release quality code. It has not been
subjected to the same stresses on its stability and security that the mod_jk
releases have enjoyed, so there is a greater possibility of undiscovered
vulnerabilities to stability or security.


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



Re: JK2 for Linux

2003-03-18 Thread grenoml
Chris,
  I just downloaded 2.0.2 src to my Linux box and built locally.

Gerry

--- Chris Dodunski [EMAIL PROTECTED] wrote:
 Hi,
 
 Apache.org download page for JK2 2.0.1 reports that it is initial
 release
 quality code, and the JK2 2.0.2 page has no download for Linux.  Is
 there a
 2.0.2 version for Linux, and if so what is its status regarding
 testing/release?
 
 Thanks,
 
 Chris.
 
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2
 .0.1/
 
 This is the 2.0.1 release of JK2
 
 The JK2 should be considered initial-release quality code. It has not
 been
 subjected to the same stresses on its stability and security that the
 mod_jk
 releases have enjoyed, so there is a greater possibility of
 undiscovered
 vulnerabilities to stability or security.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



How to use special configuration files with tomcat4.1.18?

2003-03-18 Thread Manchala, Daniel
Hi,
I have a configuration file that specifies login modules like this:


/** Login Configuration for the JAAS Sample Application -- login.config**/

ntAtn {
   com.sun.security.auth.module.NTLoginModule required debug=true;
};
NTLogin
{
com.tagish.auth.win32.NTSystemLogin required returnNames=true
returnSIDs=false;
};


How can I specify this with my servlets while running Tomcat4.1.18?

For a stand-alone application, I do this in the command line:

-Djava.security.auth.login.config=login.config

I tried using this in catalina.bat, and using system.setproperty, but
neither one works. 

Daniel.



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



javax.security.auth.AuthPermission - access denied error

2003-03-18 Thread Manchala, Daniel
Hi,
I am using  a security manager to run NTLogin module available as a
jar file. My catalina.policy file looks like this.

 grant codeBase
file:${catalina.home}/webapps/examples/WEB-INF/lib/NTLogin.jar {
  permission javax.security.auth.AuthPermission modifyPrincipals;
  permission java.lang.RuntimePermission loadLibrary.NTSystem;
  permission java.util.PropertyPermission user.dir, read;
 };

 grant codeBase
file:${catalina.home}/webapps/examples/WEB-INF/lib/ntAtn.jar {
  permission javax.security.auth.AuthPermission createLoginContext;
  permission javax.security.auth.AuthPermission
createLoginContext.NTLogin;
  permission javax.security.auth.AuthPermission doAsPrivileged;
  permission java.lang.RuntimePermission loadLibrary.NTSystem;
  permission javax.security.auth.AuthPermission modifyPrincipals;
 };


I get an error:- access denied (javax.security.auth.AuthPermission
createLoginContext.NTLogin)

Any idea how to resolve this?

Daniel.


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



RE: jk2 and passing env vars

2003-03-18 Thread Mayne, Peter
Title: RE: jk2 and passing env vars





A web forum is somewhat difficult to read offline.


PJDM
-- 
Peter Mayne
Technology Consultant
Spherion Technology Solutions
Level 1, 243 Northbourne Avenue, Lyneham, ACT, 2602
T: 61 2 62689727 F: 61 2 62689777


 -Original Message-
 From: Chris Dodunski [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, 19 March 2003 12:25 PM
 To: Tomcat Users List
 Subject: RE: jk2 and passing env vars
 
 
 Why not a Tomcat eForum, like those at www.codeguru.com? 
 Visitors can then
 expand only those threads which interest them, and notifyEmail is only
 dispatched to the thread initialiser and post authors within 
 that thread.
 Problems are not missed, and solutions persist... Blah blah 
 blah, so it
 goes on. Mailing lists are fine for eCommunities, but not 
 for eContinents
 (was that an echo? :-).
 
 Chris.


The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference with, 
use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third party. All 
personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.




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

User Interface To Tomcat User List

2003-03-18 Thread NormW
Good afternoon All.
Only new to the Tomcat User Mail List and may likely opt out soon to conserve my 
Inbox, but wanted to say that getting 91 emails in one session (2 were relevant to the 
question I asked) isn't helping me or likely of much use to anyone else for that 
matter either. (Perhaps my ISP who charges by the amount downloaded?)

I have limited exposure to Tomcat and the docs and config files to some extent, so I 
probably could help a few, but not if I have to keep clearing my my Inbox every hour 
or so.

Newsgroups are what I got used to for Netware, with the various products broken up 
into different categories like install, utils and so on, that ANYONE can browse, and 
if you see a message that you can offer some help to, just click on 'reply to group', 
say your piece and send; no cluttered Inboxes and, I suspect, a lot less traffic for 
the server. A moderator (unknown) vets/removes anything of a stupid/antisocial nature, 
and in five plus years that I've experienced it, it seems to have worked well.

I've received emails recently that are proposing eForum(s), and, while the format is 
unknown to me, believe there is a sound basis for looking at changing the way the 
users list works, regardless of the method used.
$0.02
Norm


RE: User Interface To Tomcat User List

2003-03-18 Thread Chris Dodunski
Hi,

I suspect knowledgeable and helpful people are also very busy people, and
unlikely to stick around when receiving 200+ emails come Monday morning!
The community is great, the correspondence valuable.  I frequent the
www.codeguru.com Java Programmers forum, and it works astonishingly well.
These forums are made available to eCommunities by independent parties -
perhaps at a cost, I'm not sure.  Actually, I'm developing an eForum in Java
at present (private project), and I have the site to run it if required.  If
nothing has changed by the time it's complete, I'll offer it for free.

Chris.


-Original Message-
From: NormW [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 March 2003 4:37 p.m.
To: Tomcat Users List
Subject: User Interface To Tomcat User List


Good afternoon All.
Only new to the Tomcat User Mail List and may likely opt out soon to
conserve my Inbox, but wanted to say that getting 91 emails in one session
(2 were relevant to the question I asked) isn't helping me or likely of much
use to anyone else for that matter either. (Perhaps my ISP who charges by
the amount downloaded?)

I have limited exposure to Tomcat and the docs and config files to some
extent, so I probably could help a few, but not if I have to keep clearing
my my Inbox every hour or so.

Newsgroups are what I got used to for Netware, with the various products
broken up into different categories like install, utils and so on, that
ANYONE can browse, and if you see a message that you can offer some help to,
just click on 'reply to group', say your piece and send; no cluttered
Inboxes and, I suspect, a lot less traffic for the server. A moderator
(unknown) vets/removes anything of a stupid/antisocial nature, and in five
plus years that I've experienced it, it seems to have worked well.

I've received emails recently that are proposing eForum(s), and, while the
format is unknown to me, believe there is a sound basis for looking at
changing the way the users list works, regardless of the method used.
$0.02
Norm


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



Re: jk2 and passing env vars

2003-03-18 Thread NormW
G'day (Short)
Thnk U 4 msg.
Sent a msg re list format.
Will C apr13+? doc myself.
Norm

- Original Message -
From: Chris Dodunski [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 12:24 PM
Subject: RE: jk2 and passing env vars


 Why not a Tomcat eForum, like those at www.codeguru.com?  Visitors can
then
 expand only those threads which interest them, and notifyEmail is only
 dispatched to the thread initialiser and post authors within that thread.
 Problems are not missed, and solutions persist...  Blah blah blah, so it
 goes on.  Mailing lists are fine for eCommunities, but not for eContinents
 (was that an echo? :-).

 Chris.


 -Original Message-
 From: grenoml [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 19 March 2003 1:02 p.m.
 To: Tomcat Users List
 Subject: Re: jk2 and passing env vars


   I took a look at AJP13 Extension Proposal and it looks at though the
 original JkEnvVar should have been inherited from AJP12 into AJP13 so
 it should be working unless someone maybe fubar the old code.  Well,
 we'll see if apache group responds to my bug 12186.
   I know how you feel about all the emails from these lists.  I wish
 they would add an option to just let you flag topics that you want to
 watch and forget the rest.  I took a yahoo account with 4MB limit just
 to discpline myself to manage the different maillist inboxes.  I either
 manage it or I cannot send or receive mail - great incentive.
   And good luck on Netware conversion.

 Gerry

 --- NormW [EMAIL PROTECTED] wrote:
  Good morning Gerry.
  I'm working with Tomcat on Netware and only got involved because of a
  desire
  to try JK2;...then find it isn't available for Netware because the
  way it
  works internally cannot be easily ported.
 
  I downloaded mod_jk2-2.0.43.dll as I'm not set up for compiling here,
  and
  found that, even with 2.0.43 Apache2 installed (WinNT), the Jk
  directives
  were not being recognised in httpd.conf.
 
  I had a Ifmodule mod_jk2.c directive that WAS being interpreted
  correctly
  [mis-spelling the module name would cause Apache to bypass the
  directives]
  so I know it could see the module, but not the Directives. Given that
  I
  couldn't put the dll to much use (I was mostly curious to see the
  'status'
  ouput) I left it at that in hope the next release of JK2 provides
  docs that
  allow a functional spec of the module to be derived... from which a
  port to
  Netware might be created. Wether this was a bug carried over from the
  source
  or a corrupted dll I couldn't say, but your experience suggests it
  might be
  in the source.
 
  On a side note, can't say I'm impressed with the 'everyone gets all
  the
  mail' methodology after working with conventional newsgroups... I had
  one
  simple question and, on one morning alone, got 91 emails...
  sheesh!...
  99.99% I couldn't even answer and not in regard to my question...
  which is
  why I'll probably opt out and just read the archives.
 
  As far as passing environment vars to Tomcat, I assume that is used
  when
  Tomcat is run in a JVM within the Apache web space because there
  doesn't
  appear to be any mention of passing vars in the ajp13 protocol
  description,
  although it is listed as an enhancement in the proposed ajp13 upgrade
  (ajp14?).
  For now
  Norm
 
  - Original Message -
  From: grenoml [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, March 19, 2003 7:36 AM
  Subject: Re: jk2 and passing env vars
 
 
 Yes, my Apache2 is 2.0.43 and I built mod_jk2.so locally.  BTW,
  do
   you know if there is  bug open on this in bugzilla?  Do you think
  this
   is just a lack of configuration documentation or should this be
  posted
   as a bug?
  
   Regards,
   Gerry
  
  
   --- NormW [EMAIL PROTECTED] wrote:
Good morning.
If you are using the 2.0.43.dll version of JK2 you are not alone.
N
   
- Original Message -
From: grenoml [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 6:14 AM
Subject: jk2 and passing env vars
   
   
   Is the method for passing environment vars between Apache2
  and
Tomcat
 the same for mod_jk and mod_jk2?  I am using jk2 now and when I
tried
 adding the line: 'JkEnvVar MyEnvVar' to httpd.conf it results
  in
this
 error when starting Apache2:
 Invalid command 'JkEnvVar', perhaps mis-spelled or defined by a
module
 not included in the server configuration.
   I have the LoadModule directive declared for jk2_module and
  the
 connector is working fine otherwise.  Does jk2 not recognize
  the
Jk*
 directives?  It doesn't seem to recognize any of them.

 Thanks :-)



 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
desktop!
 http://platinum.yahoo.com


   
  

RE: Tomcat Scheduler

2003-03-18 Thread Elankath, Tarun (Cognizant)
Thanks RND. 

I had just wanted to know whether there was a 'tomcat' way of doing it. Otherwise the 
solution that you suggested was the one I was going to try out.



-Original Message-
From: Tomcat-RND [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 16, 2003 2:06 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat Scheduler


Hi,

You can use JDK1.3 provided classes from java.util package. Use the
TimerTask, Timer classes.
Start a load-on-startup servlet of your application and use the above
classes if your requirement is such that these should run whenver server is
started.
Other wise you can invoke from a request obviously.

Hope this may suit your requirement.

Regards,
Pratt.





- Original Message -
From: Tarun Ramakrishna Elankath [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 16, 2003 2:01 PM
Subject: Tomcat Scheduler


 Hi list,

 Is there any scheduler facility that tomcat offers? By means of which I
 can schedule a task to occur (actually sending email, + other stuff) at
 regular intervals.

 Thanks,
 Tarun


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


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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


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

Help Tomcat 4.1.18 jsp reloading problem

2003-03-18 Thread anto paul
Hello,
I am using tomcat 4.1.18 binary downloaded from
jakarta site. The server is running on windows 200
server service pack 2 and I am working on windows 98
machine with the tomcat drive mapped as a local drive.
The problem with is it is not reloading the jsp page
when it is changed. But it works when I change the
system date to a newer date than the current date.
Changing the time is not working. Is it a bug. Or I
will have to work with the system date changes to
tomorrows date ?.

Anto

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



RE: Can't connect to X11 window server using '0:0' as the value ofthe display

2003-03-18 Thread Zsolt Koppany
Hi,

does it need modifications in the application or it will work with every AWT
dependent application?

Zsolt

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Behalf Of Theodore Chen
Sent: Mittwoch, 19. März 2003 00:37
To: Tomcat Users List
Subject: Re: Can't connect to X11 window server using '0:0' as the value
ofthe display


Try running the Tomcat VM with the -Djava.awt.headless=true system
property (set it in an environment variable named CATALINA_OPTS).

On Tue, 2003-03-18 at 16:31, Georges Roux wrote:
 Hello everybody,

 Hi run Tomcat 4.1.18 Standalone on Linux debian(sid)and use J2sdk1.4.1_01.

 I have a servlet which manipulate exif informations in jpg images.
 it works well but when I try to run it on tomcat it fails (error 500)

 I have the following error:
 Can't connect to X11 window server using '0:0' as the value of the
display

 What can I do?

 Georges


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



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



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