Re: How to use digital certificates

2003-06-20 Thread Antonio Fiol Bonnín
Do you mean... ?

 X509Certificate[] certs;
 
certs=(X509Certificate[])request.getAttribute(javax.servlet.request.X509Certificate);
 if(certs!=null) {
 X509Certificate crt = certs[0];

 // Use the cert here.
 String subjectDNName = crt.getSubjectDN().getName();
 System.out.println(Issuer: +crt.getIssuerDN().getName());
 // And so on...
 }
I developed a simple test servlet that may help you test your servlet 
environment. If someone wishes it, I can contribute it to TC or send it 
privately for any use. For that, please contact me at work:  antonio 
dot fiol at red dot es 

Antonio Fiol

appa rao wrote:

Hi,

Can any one give me an example of how to use Digital Certificates for authentication and authorizatioin in Tomcat?  I am struggling to under the concept of certificates and their use in authentication and authorization..  I am using Tomcat - 4.1.24.

Thanks in advance..

appa

SMS using the Yahoo! Messenger;Download latest version.
 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: getRemoteUser is returning null

2003-06-20 Thread Antonio Fiol Bonnín
AFAICT, getRemoteUser() returns a user name only if that user name has 
been sent via HTTP. Not with certificates.

For certificates, see my post 1 minute ago.

Antonio Fiol

seera naveen wrote:

Hi,

When I try to retrieve request.getRemoteUser() in
Tomcat 4.1.24, it is returning null.  I am not using
any of Realms, but I am having my own logging
mechanism. (checking usernames/passwords against LDAP
manually).  Why is this behaving like this?  Am I
doing something wrong?
Also, can any body tell me what exactly is Digital key
authentication.(because we use certificates for
authentication.  Does this means authenticating users
against LDAP also?)
Any help would be greatly appreciated. Thanks in
advance..
naveen


Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/
-
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 use digital certificates

2003-06-20 Thread Mario Ivankovits
I have developed a solution, where you can use client-certificates for user
authentication.

You can find information at
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7831

Currently an implementation for Standard LDAP and Windows-2000
ActiveDirectory is available.
Using W2K-AD you might have troubles, since i have tested it only with two
different client-certificates.

Mainly you have to import the certificate in your LDAP Server, and then the
user-mapping is done by my JNDIRealm* classes.

Mario


- Original Message - 
From: appa rao [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 7:33 AM
Subject: How to use digital certificates


 Hi,

 Can any one give me an example of how to use Digital Certificates for
authentication and authorizatioin in Tomcat?  I am struggling to under the
concept of certificates and their use in authentication and authorization..
I am using Tomcat - 4.1.24.

 Thanks in advance..

 appa

 SMS using the Yahoo! Messenger;Download latest version.


smime.p7s
Description: S/MIME cryptographic signature


Re: web.xml init param

2003-06-20 Thread Dominic Parry
My Guess is that you've Misplaced, or misspelled the ShowMessage class somewhere. 
Remember that it is Case Sensitive. The other thing is that you have packaged it so 
you should be calling /conserv/servlet/TestPkg/ShowMessage

Hope this helps

Cheers

Dom
  - Original Message - 
  From: Jing Huang 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, June 19, 2003 11:04 PM
  Subject: RE: web.xml init param


  Hi, Yoav

  You are the man! Thank you very much. Your email helps a lot. I checked the log. It 
seems that the host was loaded fine when tartup. My servlet works fine in the tomcat 
examples directory which was installed by default. However, it does not work in my 
development directory. Here is the runtime exception. Hopefully it makes sense to you. 

  HTTP Status 500 - 

  

  type Exception report

  message 

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

  exception 

  javax.servlet.ServletException: Cannot allocate servlet instance for path 
/conserv/servlet/ShowMessage
   at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:435)
   at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   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:256)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
   at java.lang.Thread.run(Thread.java:539)


  root cause 

  java.lang.NoClassDefFoundError: TestPkg/ShowMessage (wrong name: ShowMessage)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:512)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:126)
   at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1679)
   at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:968)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1409)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1289)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:885)
   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
   at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:416)
   at 

Query on Connection Time out??

2003-06-20 Thread Bikash Paul
Hi all friends,

I am using tomcat4.1.24 for my uploading
software(swing for client interface and servlet).Iam
facing problem with connection broken,During uploading
of file if connection between local computer and
remote computer broken then my software will give a
message to user through pop up dialog box,but that
dialog box appears after 3 or 4 minitues of connection
broken that means as per my idea that Tomcat realease
the connection after 3 or 4 minitues of connection
broken .I have tried to rectify by configuring
Connector element of server.xml file but couldn't
slove my problem.Can any plz guide me am I correct
that the delay in appearing of dialog box in case of
connection broken due to below configuration of Tomcat
in server.xml file or it may be due to any other
reason.

Connector
className=org.apache.catalina.connector.http.HttpConnectorport=8080
minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443  
debug=0 connectionTimeout=0/

Regards
Bikash


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: How to use digital certificates

2003-06-20 Thread Bill Barker
Ok, everyone else is signing their replies.  I can do that too ;-).

Out-of-the-box, TC 4.1.24 has very limited support for x509 auth.  Only the
(deprecated) MemoryRealm actually supports it.  Also, only the Stand-Alone
JSSE Connector will correctly retrieve the x509 certs in the current release
version (the Jk-Coyote Connector is fixed in the CVS, and the fixes for the
Stand-Alone PureTLS Connector will show up before 4.1.25 comes out).


Mario Ivankovits [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have developed a solution, where you can use client-certificates for
user
 authentication.

 You can find information at
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7831

 Currently an implementation for Standard LDAP and Windows-2000
 ActiveDirectory is available.
 Using W2K-AD you might have troubles, since i have tested it only with two
 different client-certificates.

 Mainly you have to import the certificate in your LDAP Server, and then
the
 user-mapping is done by my JNDIRealm* classes.

 Mario


 - Original Message -
 From: appa rao [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 7:33 AM
 Subject: How to use digital certificates


  Hi,
 
  Can any one give me an example of how to use Digital Certificates for
 authentication and authorizatioin in Tomcat?  I am struggling to under the
 concept of certificates and their use in authentication and
authorization..
 I am using Tomcat - 4.1.24.
 
  Thanks in advance..
 
  appa
 
  SMS using the Yahoo! Messenger;Download latest version.



smime.p7s
Description: S/MIME cryptographic signature


installing a servlet

2003-06-20 Thread Tony Grant
Hello again,

Yesterdays question was asked because I am unable to install and run a
servlet (form mail servlet) from an apache Jk-Coyote enabled Tomcat
4.1.24. I have tried all the possible and imaginable paths and it always
returns 404. If I run Tomcat standalone the servlet works just fine.

I have been running Tomcat on my public servers for over two years. What
got me was the upgrade to apache 2.0.x and Tomcat 4.1.x

I am doing something wrong but despite my 2 years experience I can't
find what and where. The logs aren't telling me anything useful.

Once I get this sorted and working I will be releasing the form mail
servlet under the GPL.

Thanks for your time

Tony Grant

-- 
www.tgds.net Library management software toolkit, 
redhat linux on Sony Vaio C1XD, 
Dreamweaver MX with Tomcat and PostgreSQL


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



TomCat Daemon on Linux

2003-06-20 Thread K.J.L.
I currently develop on a Win2K box where I simply run Tomcat in its own dos box.


But I want to deploy on a linux Box, and following on from Yoav's advice that
Tomcat can do everything I want, I don't need to worry about Apache. What I'm
not sure on is how to start Tomcat as a daemon/service on the linux box. 

To be honest, I haven't tried to research it yet, it just popped into my head
now and thought I'd ask. But from what I remember from when I was first reading
up on it, I don't recall there being anything stating howto. 

Is it just a case of I start it up and have to devote a whole virtual terminal
to it? 
Or can I run it in the background with ''?
Or is there actually a way to make a service/daemon of it?

A simple pointer to documentation would be greatly appreciated.

MTiA

K.L.


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



Re: TomCat Daemon on Linux

2003-06-20 Thread Kwok Peng Tuck
The rpm installation of tomcat includes  a start up script that is 
placed in /etc/rc.d/init.d/ which allows tomcat to be started up on 
reboot. However, the service is not added by default. Tomcat can be made 
to start up by using chkconfig

It's possible to write your own script, if you want to have a look at 
the script I can send you a copy of the script that
the rpm installs.



K.J.L. wrote:

I currently develop on a Win2K box where I simply run Tomcat in its own dos box.

But I want to deploy on a linux Box, and following on from Yoav's advice that
Tomcat can do everything I want, I don't need to worry about Apache. What I'm
not sure on is how to start Tomcat as a daemon/service on the linux box. 

To be honest, I haven't tried to research it yet, it just popped into my head
now and thought I'd ask. But from what I remember from when I was first reading
up on it, I don't recall there being anything stating howto. 

Is it just a case of I start it up and have to devote a whole virtual terminal
to it? 
Or can I run it in the background with ''?
Or is there actually a way to make a service/daemon of it?

A simple pointer to documentation would be greatly appreciated.

MTiA

K.L.

-
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 use digital certificates

2003-06-20 Thread appa rao
Thanks for the reply.. 
let me clearly tell you the problem..
we use certificates generated by iPlanet Certificate Server. All the client(user) 
certificates are on a swipe card which are read by Gemplus card reader using USB 
port The problem is when the user swipes it, user should automatically be 
authenticated..(currently we have another web application running on iPlanet web 
server - which picks up username from the card and authenticates against LDAP).  Is 
this possible in Tomcat?  SSL is working fine - only problem is authentication..
 
Thanks
Appa

Bill Barker [EMAIL PROTECTED] wrote:
Ok, everyone else is signing their replies. I can do that too ;-).

Out-of-the-box, TC 4.1.24 has very limited support for x509 auth. Only the
(deprecated) MemoryRealm actually supports it. Also, only the Stand-Alone
JSSE Connector will correctly retrieve the x509 certs in the current release
version (the Jk-Coyote Connector is fixed in the CVS, and the fixes for the
Stand-Alone PureTLS Connector will show up before 4.1.25 comes out).


Mario Ivankovits wrote in message
news:[EMAIL PROTECTED]
 I have developed a solution, where you can use client-certificates for
user
 authentication.

 You can find information at
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7831

 Currently an implementation for Standard LDAP and Windows-2000
 ActiveDirectory is available.
 Using W2K-AD you might have troubles, since i have tested it only with two
 different client-certificates.

 Mainly you have to import the certificate in your LDAP Server, and then
the
 user-mapping is done by my JNDIRealm* classes.

 Mario


 - Original Message -
 From: appa rao 
 To: 
 Sent: Friday, June 20, 2003 7:33 AM
 Subject: How to use digital certificates


  Hi,
 
  Can any one give me an example of how to use Digital Certificates for
 authentication and authorizatioin in Tomcat? I am struggling to under the
 concept of certificates and their use in authentication and
authorization..
 I am using Tomcat - 4.1.24.
 
  Thanks in advance..
 
  appa
 
  SMS using the Yahoo! Messenger;Download latest version.

 ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s 
SMS using the Yahoo! Messenger;Download latest version.

useURIValidationHack

2003-06-20 Thread Euan Guttridge
What is the connector param useURIValidationHack? I cannot find in
documentation. 

Also can anyone point me to a description of diffs between the old http
connector and the coyote connector please?


Thanks
Euan

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



Re: How to use digital certificates

2003-06-20 Thread Mario Ivankovits
 we use certificates generated by iPlanet Certificate Server. All the
client(user) certificates are on a swipe card which are read by Gemplus card
reader using USB port The problem is when the user swipes it, user
should automatically be authenticated..(currently we have another web
application running on iPlanet web server - which picks up username from
the card and authenticates against LDAP).  Is this possible in
Tomcat?  SSL is working fine - only problem is authentication..


I do not know the iPlanet Certificate Server, we use the LDAP Server
(openldap) from SuSE OpenExchange.

*) The Browser sends the user-certificate to tomcat (standalone installation
!!). I do not know, what you mean by the web-application pick the
username, i think such an web-application can only get the certificate.
*) JNDIRealmCertOpenExchange tries to lookup a user with this certificate
*) If a user is found, the username of this ldap-entry is used for the
resulting principal

I am not aware of the protocol iPlanet uses, if it is standard LDAP you
might have luck, else you have to write your own realm.

Mario


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



Re: TomCat Daemon on Linux

2003-06-20 Thread Florent Zara
Hello,

Kwok Peng Tuck wrote:
It's possible to write your own script, if you want to have a look at 
the script I can send you a copy of the script that
the rpm installs.
I actually runs Tomcat on a Debian, so I did not use the rpm version. I 
would be very interested in this script. May you please send it to me 
also ([EMAIL PROTECTED]) ?

Thanks in advance

Florent.



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


JSP's

2003-06-20 Thread Dylan Swales
Hi

I'm getting this error in my logs every time I try to run a JSP.

2003-06-20 10:47:24 Exception: 
Error running javac.exe compiler
 at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:455)
 at 
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:81)
 at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
 at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
 at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 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:256)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
 at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.IOException: CreateProcess: javac.exe -classpath C:\Program 
Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar;C:\Program Files\Apache Group\Tomcat 
4.1\webapps\examples\WEB-INF\classes;C:\Program Files\Apache Group\Tomcat 
4.1\shared\classes;C:\Program Files\Apache Group\Tomcat 4.1\common\classes;C:\Program 
Files\Apache Group\Tomcat 4.1\common\endorsed\xercesImpl.jar;C:\Program Files\Apache 
Group\Tomcat 4.1\common\endorsed\xmlParserAPIs.jar;C:\Program Files\Apache 
Group\Tomcat 4.1\common\lib\activation.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\ant.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\commons-collections.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\commons-dbcp.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\commons-logging-api.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\commons-pool.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\jasper-compiler.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\jasper-runtime.jar;C:\Program Files\Apache Group\Tomca?
 at java.lang.Win32Process.create(Native Method)
 at java.lang.Win32Process.init(Win32Process.java:63)
 at java.lang.Runtime.execInternal(Native Method)
 at 

passing parameters to another JSP page

2003-06-20 Thread Alan Tang
Hi,
Any help would be highly appreciated!
I'm wondering why it's NOT working passing parameters to another jsp page. 
I'm using Tomcat 4.0
Here is the sample jsp pages I used:
Called.html:
html
head/head
body

jsp:include page=callee.jsp /
jsp:param name=param2 value=value2 /
jsp:param name=param3 value=value3 /
/jsp:include

Caller:
param1: %= request.getParameter(param1) %
param2: %= request.getParameter(param2) %
param3: %= request.getParameter(param3) %

/body
/html

Here is the JSP page being called: 

html
head/head
body
Callee:
param1: %= request.getAttribute(param1) %
param2: %= request.getParameter(param2) %
param3: %= request.getParameter(param3) %
/body
/html

If the caller is called with the URL: 
http://135.252.32.142/SIX_XML/scriptJsp/caller.jsp?param1=aparam2=b

the expected output would be: 
Callee:
param1: a
param2: value2
param3: value3
   
Caller:
param1: a
param2: b
param3: null
The issue is that I always get wrong result with Tomcat 4.0:
Callee: param1: a param2: b param3: null
Caller: param1: a param2: b param3: null 
Could anybody tell me what's wrong here?
Does Tomcat need a special configuration to support passing parameters
to another JSP page, or I need to use a latter version of Tomcat?
Thanks much!
- 
Alan S. Tang 
Lucent Technologies
[EMAIL PROTECTED] 


Re: TomCat Daemon on Linux

2003-06-20 Thread John Turner
Here ya go:

http://daydream.stanford.edu/tomcat/tomcatd

Thanks to Oscar Carrillo.

John

On Fri, 20 Jun 2003 09:52:33 +0200, K.J.L. [EMAIL PROTECTED] wrote:

I currently develop on a Win2K box where I simply run Tomcat in its own 
dos box.

But I want to deploy on a linux Box, and following on from Yoav's advice 
that
Tomcat can do everything I want, I don't need to worry about Apache. What 
I'm
not sure on is how to start Tomcat as a daemon/service on the linux box.

To be honest, I haven't tried to research it yet, it just popped into my 
head
now and thought I'd ask. But from what I remember from when I was first 
reading
up on it, I don't recall there being anything stating howto.

Is it just a case of I start it up and have to devote a whole virtual 
terminal
to it? Or can I run it in the background with ''?
Or is there actually a way to make a service/daemon of it?

A simple pointer to documentation would be greatly appreciated.

MTiA

K.L.

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JSP's

2003-06-20 Thread John Turner
Don't muck with CLASSPATH.  Set JAVA_HOME, and CATALINA_HOME, that's all 
you need.  See if that makes a difference.

John

On Fri, 20 Jun 2003 11:22:16 +0200, Dylan Swales [EMAIL PROTECTED] 
wrote:

Hi

I'm getting this error in my logs every time I try to run a JSP.

2003-06-20 10:47:24 Exception: Error running javac.exe compiler
at 
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:455) 

at 
org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:81) 

at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:840)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) 

at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) 

at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
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:256) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) 

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) 

at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) 

at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) 

at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) 

at java.lang.Thread.run(Thread.java:536)
Caused by: java.io.IOException: CreateProcess: javac.exe -classpath 
C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar;C:\Program 
Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF\classes;C:\Program 
Files\Apache Group\Tomcat 4.1\shared\classes;C:\Program Files\Apache 
Group\Tomcat 4.1\common\classes;C:\Program Files\Apache Group\Tomcat 
4.1\common\endorsed\xercesImpl.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\endorsed\xmlParserAPIs.jar;C:\Program Files\Apache 
Group\Tomcat 4.1\common\lib\activation.jar;C:\Program Files\Apache 
Group\Tomcat 4.1\common\lib\ant.jar;C:\Program Files\Apache Group\Tomcat 
4.1\common\lib\commons-collections.jar;C:\Program Files\Apache 
Group\Tomcat 4.1\common\lib\commons-dbcp.jar;C:\Program Files\Apache 
Group\Tomcat 4.1\common\lib\commons-logging-api.jar;C:\Program 
Files\Apache Group\Tomcat 4.1\common\lib\commons-pool.jar;C:\Program 
Files\Apache Group\Tomcat 4.1\common\lib\jasper-compiler.jar;C:\Program 
Files\Apache 

corrupt sessions

2003-06-20 Thread Hartwig, Thomas
I have sometimes problems with corrupt sessions. Sometimes tomcat logs a 
EOFException and the servlet is not responding any more if a user wants 
to connect who has such a session. The browser is waiting endless for a 
response.
Do you know a way to check the validity of a session and do you have 
hints how to avoid corrupt sessions? I store some hashtables and vectors 
in the session. Do I have to asure to call a finalizer, so the session 
can be stored correct?
I have already tried to call request.getRequestedSessionId() but tomcat 
falls asleep before.

I use org.apache.catalina.session.PersistentManager with Filestore at 
Tomcat 4.0.6 and 4.1.24 (both the same problem):

Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=50
  minIdleSwap=60
  maxIdleSwap=120
  maxIdleBackup=0
Store className=org.apache.catalina.session.FileStore/
/Manager
Thanks for any reply
Thomas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Antony
Thanks for the reply. I had never thought of the RAID sub system. My
situation is that there is no one I know to advice me in this regard and my
company can't affod any highly paid consultancy. That is why asked a
question like this here.
Another question. Do Tomcat a requires a faster hard disk. The
application uses JSP and Servlets only. No HTML pages are used and it
generates some PDF and Excel files. It also serves some small images files
from local hard disk. I think Tomcat will cache these images. Now my concern
is  whether Tomcat's performance increases by faster DDR RAM.

regards Antony

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:09 PM
Subject: Re: [OT] best hardware config for Tomcat



 I won't get into specifics, but I can tell you that if you are planning to
 put this server into production, and run Oracle on it, a single hard disk
 is the WORST thing you can do, for a whole range of reasons.

 In most cases, CPU and RAM are not bottlenecks...disk is.  When in doubt,
 get more and faster disk, even if it means less RAM and less CPU.

 At a minimum you will want RAID 1...better yet, two systems disks mirrored
 with RAID 1 containing your OS and systems files, and then a RAID 5 array
 for Oracle.

 I strongly suggest you consult a professional.  Do not try to spec this
out
 on your own, it is clear that you are not familiar on some key points of
 hardware provisioning.  This isn't bad, I am just suggesting that you
 should find someone who is familiar, and will recommend an adequate system
 for you.  Making the wrong decision now could harm your efforts in the
 future.

 If you're planning on putting this server into production, and selling the
 services on this server to other people, it would be unethical to make
 promises about uptime and reliability unless you at least have a RAID
 array, redundant power supplies, a 4-hour window service contract, and
 preferably a duplicate system for hot backup.

 John

 On Thu, 19 Jun 2003 12:25:47 +0530, Antony [EMAIL PROTECTED]
 wrote:

  Hi all,
  If it is not the place to ask this question forgive me Please any one
  tell me a place to ask this question.
  I want to know the most suitable hardware configuration for Tomcat. We
  have to run both Tomcat and Oracle 8i on it. It  is business( intranet )
  application with about 10 users accessing at starting but planning to
  take
  it to 60 users in future. Then we can increase the RAM to accommodate
new
  users. I assume by increasing RAM we Tomcat can service more users. Am I
  right ?
  I am not an admin or hardware expert. We plan to buy an assembled
  system. We can afford only Intel based system. I have several questions.
  Do
  Tomcat need the processing power of dual processor PIV or single Xeon
  processor ?. What kind of memory shall I use SDRAM or DDR ?  Do Tomcat
  need
  large amount of memory or high speed memory ?.We plan to use a single
  hard
  disk. What type of hard disk is best for this configuration ?. SCSI or
  IDE ?
  When I lloked at the Intel site I have seen different categories like
  server,mainstream ,work station, performance etc. Remember I can't
  recommend
  any latest high cost technology.
  At present three developers are using a single Pentium 4 based system
  with 512 MB of SDRAM with Oracle and Tomcat running. It runs fine in it.
  We
  dont have conducted any stress test on it. We dont know to use JMeter or
  something else. I have to give the config details within 2 days.
  Any comments will be apprecited.
 
  Regars
  Antony.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

 -
 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: installing a servlet

2003-06-20 Thread John Turner
Please post:

- JkMount statements from Apache's httpd.conf (or other file if they are 
included into httd.conf)
- workers.properties
- relevant Host section from server.xml
- relevant Context section from server.xml
- servlet and servlet-mapping tags for this servlet from web.xml

John

On 20 Jun 2003 09:42:13 +0200, Tony Grant [EMAIL PROTECTED] wrote:

Hello again,

Yesterdays question was asked because I am unable to install and run a
servlet (form mail servlet) from an apache Jk-Coyote enabled Tomcat
4.1.24. I have tried all the possible and imaginable paths and it always
returns 404. If I run Tomcat standalone the servlet works just fine.
I have been running Tomcat on my public servers for over two years. What
got me was the upgrade to apache 2.0.x and Tomcat 4.1.x
I am doing something wrong but despite my 2 years experience I can't
find what and where. The logs aren't telling me anything useful.
Once I get this sorted and working I will be releasing the form mail
servlet under the GPL.
Thanks for your time

Tony Grant



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: worker.properties

2003-06-20 Thread John Turner
Hi -

Please clarify:  do you have multiple Tomcat instances, or just one?  The 
only time you need to put more hosts in workers.properties is if you have 
MULTIPLE Tomcat instances.  If you only have one Tomcat instance, you only 
need the following in workers.properties:

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties
Note that it is workers.properties, not worker.properties (note the 
missing s in your post...a typo?).

Note also that for IIS, you need more than workers.properties...you also 
need a file called uriworkermap.properties.

Workers.properties is not for the purpose of mapping virtual hosts...its 
only purpose is to tell the connector where to find Tomcat.

If you have one Tomcat instance, and a workers.properties file like the one 
shown above, and you cannot get any host headers except localhost to 
work, your problem is in either or both of 1) defining/mapping virtual 
hosts on the web server side (IIS: uriworkermap.properties, Apache: 
JkMount), or 2) defining virtual hosts on the Tomcat side.

Even if you have multiple Tomcat instances, I would suggest getting things 
to work for multiple virtual hosts using one Tomcat instance, then add the 
other Tomcat instances into the mix.  Trying to get multiple Tomcat 
instances working with multiple virtual hosts all at once could easily 
become frustrating if you don't take it a step or piece at a time.

John

On Thu, 19 Jun 2003 17:03:30 -0500, Jose Santiago Oyervides Gonzalez 
[EMAIL PROTECTED] wrote:

Hi, Could anyone tell me what would be the correct configuration in the
worker.properties to allow IIS to redirect to multiple hosts.
Currently I am using this: (with no success,only for localhost)
worker.properties:
worker.ajp13.type=ajp13 worker.work.type=ajp13 
worker.tomcat_home=D:\Tomcat4
worker.java_home=C:\j2sdk1.4.0
ps=\
worker.list=ajp13,myworker,myworker2

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.myworker.port=8009
worker.myworker.host=foo.com
worker.myworker2.port=8009
worker.myworker2.host=otherhost.com
I am using Tomcat 4.0.6 -- IIS 5.0.
According the 4.1.X documentation my configuration is valid, but I wonder 
if
that works in 4.0.X.  ¿?

Also in server.xml, I specified the address property for the ip of the
domains I'm configuring.(and added the hosts,obviously)
Regards.
Jose Oyervides.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Chong Yu Meng
Antony wrote:

Thanks for the reply. I had never thought of the RAID sub system. My
situation is that there is no one I know to advice me in this regard and my
company can't affod any highly paid consultancy. That is why asked a
question like this here.
   Another question. Do Tomcat a requires a faster hard disk. The
application uses JSP and Servlets only. No HTML pages are used and it
generates some PDF and Excel files. It also serves some small images files
from local hard disk. I think Tomcat will cache these images. Now my concern
is  whether Tomcat's performance increases by faster DDR RAM.
regards Antony
 

Antony,

The answer to your problem is not in better RAM, a faster hard drive or 
even an expensive consultant. In what I consider deep-s**t situations 
like yours, where you have little time, no money and nobody you can turn 
to except yourself and the mailing list, your best bet is to deploy 
quickly and try getting money in, first. Why ? Because you're never 
going to have enough resources (hard drive, RAM, CPU) unless you make 
enough money to justify those resources.

For example, if I have a single-processor Pentium II 400MHz machine with 
a 40GB hard drive and 128MB RAM, I would benchmark it against the number 
of concurrent connections it can handle. I would then take that number 
and multiply it by 10 to give me a total number of customers (in Asia 
this is realistic, though I cannot say for other parts of the world). I 
would calculate how much money I would make off those customers and then 
see if I should :
(a) invest in more hardware (RAM, CPU, HDD)
(b) buy another server
(c) hire a consultant
(d) give myself an obscene amount of money !

Hope this helps !

Regards,
pascal chong


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


Re: [OT] best hardware config for Tomcat

2003-06-20 Thread John Turner
The biggest effect on Tomcat's performance will be the architecture and 
design of your application.  You can buy the biggest fastest server in the 
world, and have lousy performance if your application architecture is poor.

If this is a production server, the absolute minimum I would consider for 
production, that is, for providing services that others pay me to 
provide, and providing those services in such a way as to have the highest 
uptime possible, is:

Abs. minimum:
P3-1.4 GHz (dual absolutely preferred)
1024 GB RAM
2 36GB SCSI drives, RAID 1 (mirrored)
100Mbps NIC
Medium:
Dual P3-1.4GHz
2GB RAM
3 36GB SCSI drives, RAID 5 (2 + spare = 72GB usable)
Better:
Dual P3-1.4 or higher
4GB RAM
3-5 36GB SCSI drives, RAID 5
Still Better:
Dual P3-1.4 or higher
6GB RAM
as much disk as you can provide
Obviously, disk depends on how much you think you will need.  My servers 
provide services to about 25 different clients.  Each has their own Tomcat 
instance.  My servers are dual P3, 6GB RAM, 800GB-1TB disk in RAID-5 with 
parity and hot spare, dual everything (dual NIC, dual power supply, dual 
fans, etc).

Don't get bogged down in desktop PC terminology like DDR RAM, etcfor 
servers that sort of stuff is irrelevant.  You want stability, not 
speed...having the fastest CPU or the fastest RAM technology does you 
nothing if your server keeps going down.  For servers (if you're serious 
about it being a server), you want redundancy, parity and error-checking 
and spares over everything else.  If it were up to me, I would take a 
budget of X dollars and trade performance specs like MHz and GB for 
redundancy, all day.  Drop back on CPU and RAM if it means you can get RAID 
disk (hardware RAID is better than software RAID), redundant power 
supplies, etc.  If all you are doing is looking to buy a desktop PC and 
call it a server, then just buy whatever you want...it won't really matter, 
and sooner or later your server will go down.

Even then, pay attention to the architecture and design of your 
application, and test it under load...that will make more of a difference 
than jacking up some RAM or CPU hardware.

John

On Fri, 20 Jun 2003 18:04:34 +0530, Antony [EMAIL PROTECTED] 
wrote:

Thanks for the reply. I had never thought of the RAID sub system. My
situation is that there is no one I know to advice me in this regard and 
my
company can't affod any highly paid consultancy. That is why asked a
question like this here.
Another question. Do Tomcat a requires a faster hard disk. The
application uses JSP and Servlets only. No HTML pages are used and it
generates some PDF and Excel files. It also serves some small images 
files
from local hard disk. I think Tomcat will cache these images. Now my 
concern
is  whether Tomcat's performance increases by faster DDR RAM.

regards Antony

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 6:09 PM
Subject: Re: [OT] best hardware config for Tomcat

I won't get into specifics, but I can tell you that if you are planning 
to
put this server into production, and run Oracle on it, a single hard 
disk
is the WORST thing you can do, for a whole range of reasons.

In most cases, CPU and RAM are not bottlenecks...disk is.  When in 
doubt,
get more and faster disk, even if it means less RAM and less CPU.

At a minimum you will want RAID 1...better yet, two systems disks 
mirrored
with RAID 1 containing your OS and systems files, and then a RAID 5 
array
for Oracle.

I strongly suggest you consult a professional.  Do not try to spec this
out
on your own, it is clear that you are not familiar on some key points of
hardware provisioning.  This isn't bad, I am just suggesting that you
should find someone who is familiar, and will recommend an adequate 
system
for you.  Making the wrong decision now could harm your efforts in the
future.

If you're planning on putting this server into production, and selling 
the
services on this server to other people, it would be unethical to make
promises about uptime and reliability unless you at least have a RAID
array, redundant power supplies, a 4-hour window service contract, and
preferably a duplicate system for hot backup.

John

On Thu, 19 Jun 2003 12:25:47 +0530, Antony [EMAIL PROTECTED]
wrote:
 Hi all,
 If it is not the place to ask this question forgive me Please any one
 tell me a place to ask this question.
 I want to know the most suitable hardware configuration for Tomcat. We
 have to run both Tomcat and Oracle 8i on it. It  is business( intranet 
)
 application with about 10 users accessing at starting but planning to
 take
 it to 60 users in future. Then we can increase the RAM to accommodate
new
 users. I assume by increasing RAM we Tomcat can service more users. Am 
I
 right ?
 I am not an admin or hardware expert. We plan to buy an assembled
 system. We can afford only Intel based system. I have several 
questions.
 Do
 Tomcat need the 

Re: Can tomcat compile JSP's at startup

2003-06-20 Thread John Turner
Yes.

John

On 20 Jun 2003 18:04:33 +0530, Damnish [EMAIL PROTECTED] wrote:

Hi.
Can tomcat compile all the JSP's of a webapp at startup.
I am using tomcat4.1.24 and want to precompile my all JSP's.
Thanks in advance.
Damnish



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: useURIValidationHack

2003-06-20 Thread Shapira, Yoav

Howdy,
From org.apache.coyote.tomcat4.CoyoteAdapter:

// Additional URI normalization and validation is needed for
security
// reasons on Tomcat 4.0.x
if (connector.getUseURIValidationHack()) {
String uri = validate(request.getRequestURI());
if (uri == null) {
res.setStatus(400);
res.setMessage(Invalid URI);
throw new IOException(Invalid URI);
} else {
req.requestURI().setString(uri);
// Redoing the URI decoding
req.decodedURI().duplicate(req.requestURI());
req.getURLDecoder().convert(req.decodedURI(), true);
}
}

Obviously you have to look at the complete source code to find out more,
speicifically what the validate() method does.  I didn't want to post
the whole source here ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Euan Guttridge [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 5:11 AM
To: '[EMAIL PROTECTED]'
Subject: useURIValidationHack

What is the connector param useURIValidationHack? I cannot find in
documentation.

Also can anyone point me to a description of diffs between the old http
connector and the coyote connector please?


Thanks
Euan

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




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


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



2 conainer question

2003-06-20 Thread Peter Kerekes
Hi!

I'm running a Tomcat with 2 connectors
one secure, one non-secure.
I have 2 webapps, and I would like to configure tomcat
in such way, that one webapp should be available
ONLY on the secure connector,
while the other one ONLY on the non-secure connector

Is it possible?

Thx very much

BR,
Peter

__
Do you want a free e-mail for life ? Get it at http://www.email.ro/


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



RE: 2 conainer question

2003-06-20 Thread Shapira, Yoav

Howdy,
Sure.  There's probably more than one way, but one comes to mind: use
two services:

Service name=app1Service
 ... Define connector1, non-secure
 ... Define host1
 ... Define app1
 ...
/Service
Service name=app2Service
  ... Define connector2, secure
  ... Define host2
  ... Define app2
  ...
/Service

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Peter Kerekes [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 9:13 AM
To: [EMAIL PROTECTED]
Subject: 2 conainer question

Hi!

I'm running a Tomcat with 2 connectors
one secure, one non-secure.
I have 2 webapps, and I would like to configure tomcat
in such way, that one webapp should be available
ONLY on the secure connector,
while the other one ONLY on the non-secure connector

Is it possible?

Thx very much

BR,
Peter

__
Do you want a free e-mail for life ? Get it at http://www.email.ro/


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




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


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



Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Antony
Ours is an intranet business application. So no immediate money is to be
expected. Any way I will stress testing of our existing development server.
Thanks for the reply
regards Antony
- Original Message -
From: Chong Yu Meng [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 6:33 PM
Subject: Re: [OT] best hardware config for Tomcat


 Antony wrote:

 Thanks for the reply. I had never thought of the RAID sub system. My
 situation is that there is no one I know to advice me in this regard and
my
 company can't affod any highly paid consultancy. That is why asked a
 question like this here.
 Another question. Do Tomcat a requires a faster hard disk. The
 application uses JSP and Servlets only. No HTML pages are used and it
 generates some PDF and Excel files. It also serves some small images
files
 from local hard disk. I think Tomcat will cache these images. Now my
concern
 is  whether Tomcat's performance increases by faster DDR RAM.
 
 regards Antony
 
 
 Antony,

 The answer to your problem is not in better RAM, a faster hard drive or
 even an expensive consultant. In what I consider deep-s**t situations
 like yours, where you have little time, no money and nobody you can turn
 to except yourself and the mailing list, your best bet is to deploy
 quickly and try getting money in, first. Why ? Because you're never
 going to have enough resources (hard drive, RAM, CPU) unless you make
 enough money to justify those resources.

 For example, if I have a single-processor Pentium II 400MHz machine with
 a 40GB hard drive and 128MB RAM, I would benchmark it against the number
 of concurrent connections it can handle. I would then take that number
 and multiply it by 10 to give me a total number of customers (in Asia
 this is realistic, though I cannot say for other parts of the world). I
 would calculate how much money I would make off those customers and then
 see if I should :
 (a) invest in more hardware (RAM, CPU, HDD)
 (b) buy another server
 (c) hire a consultant
 (d) give myself an obscene amount of money !

 Hope this helps !

 Regards,
 pascal chong




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



server.xml: useURIValidationHack=false ???

2003-06-20 Thread Nico Hoffmann
Hello,

i've found no documentation on this attribute for a Connector element
in the tomcat server.xml.

Whats the meaning of this attribute?

Thank you,
Nico

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



Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Antony
It is production server. I am a staff of the company where I have to deploy
the application. We will use the server only at office time. At most 12
hours a day. After that shut it down. I dont know  what to name this kind of
machines. I want to run the machine to run 12 hours a day and overcome the
trouble of data loss. Any way u r mails have given me lots of insight. I
think I have to learn more about hardware configurations. Why u r suggesting
dual processors ?. Can a dual processor system switch to a single processor
if one fails ?. Is there any bechmarks on hardware runningjava web
applications ? If u suggest me any discussion forums or mailing lists where
I can ask this kind of questions I will not bother u with a silly question.

Thanks for the reply
regards
Antony

- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 6:35 PM
Subject: Re: [OT] best hardware config for Tomcat



 The biggest effect on Tomcat's performance will be the architecture and
 design of your application.  You can buy the biggest fastest server in the
 world, and have lousy performance if your application architecture is
poor.

 If this is a production server, the absolute minimum I would consider for
 production, that is, for providing services that others pay me to
 provide, and providing those services in such a way as to have the highest
 uptime possible, is:

 Abs. minimum:
 P3-1.4 GHz (dual absolutely preferred)
 1024 GB RAM
 2 36GB SCSI drives, RAID 1 (mirrored)
 100Mbps NIC

 Medium:
 Dual P3-1.4GHz
 2GB RAM
 3 36GB SCSI drives, RAID 5 (2 + spare = 72GB usable)

 Better:
 Dual P3-1.4 or higher
 4GB RAM
 3-5 36GB SCSI drives, RAID 5

 Still Better:
 Dual P3-1.4 or higher
 6GB RAM
 as much disk as you can provide

 Obviously, disk depends on how much you think you will need.  My servers
 provide services to about 25 different clients.  Each has their own Tomcat
 instance.  My servers are dual P3, 6GB RAM, 800GB-1TB disk in RAID-5 with
 parity and hot spare, dual everything (dual NIC, dual power supply, dual
 fans, etc).

 Don't get bogged down in desktop PC terminology like DDR RAM, etcfor
 servers that sort of stuff is irrelevant.  You want stability, not
 speed...having the fastest CPU or the fastest RAM technology does you
 nothing if your server keeps going down.  For servers (if you're serious
 about it being a server), you want redundancy, parity and error-checking
 and spares over everything else.  If it were up to me, I would take a
 budget of X dollars and trade performance specs like MHz and GB for
 redundancy, all day.  Drop back on CPU and RAM if it means you can get
RAID
 disk (hardware RAID is better than software RAID), redundant power
 supplies, etc.  If all you are doing is looking to buy a desktop PC and
 call it a server, then just buy whatever you want...it won't really
matter,
 and sooner or later your server will go down.

 Even then, pay attention to the architecture and design of your
 application, and test it under load...that will make more of a difference
 than jacking up some RAM or CPU hardware.

 John

 On Fri, 20 Jun 2003 18:04:34 +0530, Antony [EMAIL PROTECTED]
 wrote:

  Thanks for the reply. I had never thought of the RAID sub system. My
  situation is that there is no one I know to advice me in this regard and
  my
  company can't affod any highly paid consultancy. That is why asked a
  question like this here.
  Another question. Do Tomcat a requires a faster hard disk. The
  application uses JSP and Servlets only. No HTML pages are used and it
  generates some PDF and Excel files. It also serves some small images
  files
  from local hard disk. I think Tomcat will cache these images. Now my
  concern
  is  whether Tomcat's performance increases by faster DDR RAM.
 
  regards Antony
 
  - Original Message -
  From: John Turner [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, June 19, 2003 6:09 PM
  Subject: Re: [OT] best hardware config for Tomcat
 
 
 
  I won't get into specifics, but I can tell you that if you are planning
  to
  put this server into production, and run Oracle on it, a single hard
  disk
  is the WORST thing you can do, for a whole range of reasons.
 
  In most cases, CPU and RAM are not bottlenecks...disk is.  When in
  doubt,
  get more and faster disk, even if it means less RAM and less CPU.
 
  At a minimum you will want RAID 1...better yet, two systems disks
  mirrored
  with RAID 1 containing your OS and systems files, and then a RAID 5
  array
  for Oracle.
 
  I strongly suggest you consult a professional.  Do not try to spec this
  out
  on your own, it is clear that you are not familiar on some key points
of
  hardware provisioning.  This isn't bad, I am just suggesting that you
  should find someone who is familiar, and will recommend an adequate
  system
  for you.  Making the wrong decision now could harm your efforts in the
  future.

RE: server.xml: useURIValidationHack=false ???

2003-06-20 Thread Shapira, Yoav

Howy,
I just answered this question on another thread on the mailing list ;)
Search the archives and look at org.apache.coyote.tomcat4.CoyoteAdapter.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Nico Hoffmann [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 9:41 AM
To: [EMAIL PROTECTED]
Subject: server.xml: useURIValidationHack=false ???

Hello,

i've found no documentation on this attribute for a Connector element
in the tomcat server.xml.

Whats the meaning of this attribute?

Thank you,
Nico

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




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


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



RE: passing parameters to another JSP page

2003-06-20 Thread Mike Curwen
Don't make the opening jsp:include tag a singleton.

You have :

jsp:include page=callee.jsp /

it should be:

jsp:include page=callee.jsp 

 -Original Message-
 From: Alan Tang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 20, 2003 5:03 AM
 To: [EMAIL PROTECTED]
 Subject: passing parameters to another JSP page
 
 
 Hi,
 Any help would be highly appreciated!
 I'm wondering why it's NOT working passing parameters to 
 another jsp page. 
 I'm using Tomcat 4.0
 Here is the sample jsp pages I used:
 Called.html:
 html
 head/head
 body
 
 jsp:include page=callee.jsp /
 jsp:param name=param2 value=value2 /
 jsp:param name=param3 value=value3 /
 /jsp:include
 
 Caller:
 param1: %= request.getParameter(param1) %
 param2: %= request.getParameter(param2) %
 param3: %= request.getParameter(param3) %
 
 /body
 /html
 
 Here is the JSP page being called: 
 
 html
 head/head
 body
 Callee:
 param1: %= request.getAttribute(param1) %
 param2: %= request.getParameter(param2) %
 param3: %= request.getParameter(param3) %
 /body
 /html
 
 If the caller is called with the URL: 
 
 http://135.252.32.142/SIX_XML/scriptJsp/caller .jsp?param1=aparam2=b
 
 the expected output would be: 
 Callee:
 param1: a
 param2: value2
 param3: value3

 Caller:
 param1: a
 param2: b
 param3: null
 The issue is that I always get wrong result with Tomcat 4.0:
 Callee: param1: a param2: b param3: null
 Caller: param1: a param2: b param3: null 
 Could anybody tell me what's wrong here?
 Does Tomcat need a special configuration to support passing 
 parameters to another JSP page, or I need to use a latter 
 version of Tomcat? Thanks much!
 - 
 Alan S. Tang 
 Lucent Technologies
 [EMAIL PROTECTED] 
 


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



Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread Subhojit Roy

Hi All

I have installed Tomcat 4.1.24. But when I create my own directories under the webapp 
directory and add jsp files to the directory I cannot access the jsp file using the 
url:

http://localhost:8080/dir name/jsp file name.

I get the HTTP status 404 error with the following message:The requested resource 
path name is not available.

Can you please provide some feedback

Regards







-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread Subhojit Roy

Hi All

I have installed Tomcat 4.1.24. But when I create my own directories under the webapp 
directory and add jsp files to the directory I cannot access the jsp file using the 
url:

http://localhost:8080/dir name/jsp file name.

I get the HTTP status 404 error with the following message:The requested resource 
path name is not available.

Can you please provide some feedback

Regards








-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

configuration

2003-06-20 Thread Free Bud
Hi,
I've been using tomcat in production for servlets for a couple years.  I got lost 
after 4.0.  I downloaded 5.0 milestone exe and installed.  Much easier than before, 
even created the service without asking.
 
2 questions:
- I usually copy/paste all the library .jar files into my jdk/lib and choose not to 
overwrite (tools.jar).  Then I can compile servlets w/o problem.
J2SE .java files compile just fine with the classpath I have which does contain the   
.;c:/jdk/lib but the compiler can't find servlet classes.
 
- I'd like to just drop a servlet into a directory, restart the service and test 
servlets.  I drop them into one of the /class directories on 4.0 and this works.  5.0 
and 4.1 have about a half dozen class directories in different locations.  I've 
tried dropping the same servlet on 4.1 in all of them but it still won't load.  
 
Are there any instructions to just get a simple servlet to run using a browser address 
something like http://localhost:8080/servlet/SomeServlet?
 
Please help!
 
HD


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Javax servlets

2003-06-20 Thread Apollinaris B. Mwila, Ph.D
Hi,

I am trying to use Tomcat. I have the server running but I can't get to use the simple 
servlets because it tells me it can't find the javax package. Can you help? Where can 
I download the packages such as javax servlet.* and javax servlet.http.*?  By the way 
I am using linux Red Hat 8.0.

Thanks in advance.

Apollinaris B Mwila

__
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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



RE: passing parameters to another JSP page

2003-06-20 Thread Stefan Radzom
There is a little typo in your jsp:include which screws up the rest of
your jsp. For your include-action you use an empty-element tag (ending with
/) that by definiton contains no child elements. Therefore, the params do
not belong to the include and are never passed on to the included jsp.

Use the corrected code

 jsp:include page=callee.jsp
 jsp:param name=param2 value=value2 /
 jsp:param name=param3 value=value3 /
 /jsp:include

and everything should work fine.

Stefan


 -Original Message-
 From: Alan Tang [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 20, 2003 12:03 PM
 To: [EMAIL PROTECTED]
 Subject: passing parameters to another JSP page
 
 
 Hi,
 Any help would be highly appreciated!
 I'm wondering why it's NOT working passing parameters to 
 another jsp page. 
 I'm using Tomcat 4.0
 Here is the sample jsp pages I used:
 Called.html:
 html
 head/head
 body
 
 jsp:include page=callee.jsp /
 jsp:param name=param2 value=value2 /
 jsp:param name=param3 value=value3 /
 /jsp:include
 
 Caller:
 param1: %= request.getParameter(param1) %
 param2: %= request.getParameter(param2) %
 param3: %= request.getParameter(param3) %
 
 /body
 /html
 
 Here is the JSP page being called: 
 
 html
 head/head
 body
 Callee:
 param1: %= request.getAttribute(param1) %
 param2: %= request.getParameter(param2) %
 param3: %= request.getParameter(param3) %
 /body
 /html
 
 If the caller is called with the URL: 
 
 http://135.252.32.142/SIX_XML/scriptJsp/caller .jsp?param1=aparam2=b
 
 the expected output would be: 
 Callee:
 param1: a
 param2: value2
 param3: value3

 Caller:
 param1: a
 param2: b
 param3: null
 The issue is that I always get wrong result with Tomcat 4.0:
 Callee: param1: a param2: b param3: null
 Caller: param1: a param2: b param3: null 
 Could anybody tell me what's wrong here?
 Does Tomcat need a special configuration to support passing parameters
 to another JSP page, or I need to use a latter version of Tomcat?
 Thanks much!
 - 
 Alan S. Tang 
 Lucent Technologies
 [EMAIL PROTECTED] 
 



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



web.xml init param

2003-06-20 Thread Jing Huang
Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please 
help. I set initial parameters for a servlet in web.xml. When I start the server and 
run the servlet, the servlet can not get the initial parameters. It seems that the 
web.xml was not accessed at all. Can you help?  By the way, is there a place that 
documents how to configure the web.xml and server.xml for different purposes? 


Re: Can JDBCrealm ... be in META-INF/context.xml file?

2003-06-20 Thread Jim Lynch
That I can do.  Thanks

Jim.
 
 All you can get is their username - using request.getRemoteUser().  To get
 the rest of their information, you'll have to query the database with
 handwritten code.
 
 Matt
 
 -Original Message-
 From: Jim Lynch [mailto:[EMAIL PROTECTED]
 Sent: Thursday, June 19, 2003 3:06 PM
 To: Tomcat Users List
 Subject: Re: Can JDBCrealm ... be in META-INF/context.xml file?
 
 
 Now that I can log in, the next question is how do I obtain the user
 login information from within my servlet?
 
 THanks,
 Jim.
 
 -
 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]
 


-- 
no signature, sorry.

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



getRemoteUser() is null SSL Authentication

2003-06-20 Thread seera naveen
Hi,

When I try to retrieve request.getRemoteUser() in
Tomcat 4.1.24, it is returning null.  I am not using
any of Realms, but I am having my own logging
mechanism. (checking usernames/passwords against LDAP
manually).  Why is this behaving like this?  Is it a
known problem?

Also, can any body tell me what exactly is Digital key
authentication.(because we use certificates for
authentication.  Does this means authenticating users
against LDAP also?)

Any help would be greatly appreciated. Thanks in
advance..

naveen


Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/

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



how to refuse to start a context?

2003-06-20 Thread Mohun Biswas
My Servlet 2.3 webapp has a ServletContextListener which does some initial 
setup for my database (connection pools, etc). Having established a 
connection, I now want it to ask the database which version of the schema 
it's running and compare that to the version of the webapp itself (stored 
as a context init parameter). The idea is to refuse to run unless the 
server and database versions match. This part is easy. The problem is that 
I can't return an error condition since contextInitialized() returns void, 
and I can't throw a checked exception because the interface isn't declared 
to do so ... am I missing something? How can I shut down, presumably with 
some sensible message to the log file, on such a mismatch?

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


RE: [OT] best hardware config for Tomcat

2003-06-20 Thread Angus Mezick
The dual processor just allows multithreaded environments like tomcat to
run better because 2 threads can be running at anyone time instead of
just one.  This is especially useful because the GC can run in one proc
while the other proc still handles request threads. (I think)
--Angus

 -Original Message-
 From: Antony [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 20, 2003 9:44 AM
 To: Tomcat Users List
 Subject: Re: [OT] best hardware config for Tomcat
 
 
 It is production server. I am a staff of the company where I 
 have to deploy
 the application. We will use the server only at office time. 
 At most 12
 hours a day. After that shut it down. I dont know  what to 
 name this kind of
 machines. I want to run the machine to run 12 hours a day and 
 overcome the
 trouble of data loss. Any way u r mails have given me lots of 
 insight. I
 think I have to learn more about hardware configurations. Why 
 u r suggesting
 dual processors ?. Can a dual processor system switch to a 
 single processor
 if one fails ?. Is there any bechmarks on hardware runningjava web
 applications ? If u suggest me any discussion forums or 
 mailing lists where
 I can ask this kind of questions I will not bother u with a 
 silly question.
 
 Thanks for the reply
 regards
 Antony
 
 - Original Message -
 From: John Turner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 6:35 PM
 Subject: Re: [OT] best hardware config for Tomcat
 
 
 
  The biggest effect on Tomcat's performance will be the 
 architecture and
  design of your application.  You can buy the biggest 
 fastest server in the
  world, and have lousy performance if your application 
 architecture is
 poor.
 
  If this is a production server, the absolute minimum I 
 would consider for
  production, that is, for providing services that others pay me to
  provide, and providing those services in such a way as to 
 have the highest
  uptime possible, is:
 
  Abs. minimum:
  P3-1.4 GHz (dual absolutely preferred)
  1024 GB RAM
  2 36GB SCSI drives, RAID 1 (mirrored)
  100Mbps NIC
 
  Medium:
  Dual P3-1.4GHz
  2GB RAM
  3 36GB SCSI drives, RAID 5 (2 + spare = 72GB usable)
 
  Better:
  Dual P3-1.4 or higher
  4GB RAM
  3-5 36GB SCSI drives, RAID 5
 
  Still Better:
  Dual P3-1.4 or higher
  6GB RAM
  as much disk as you can provide
 
  Obviously, disk depends on how much you think you will 
 need.  My servers
  provide services to about 25 different clients.  Each has 
 their own Tomcat
  instance.  My servers are dual P3, 6GB RAM, 800GB-1TB disk 
 in RAID-5 with
  parity and hot spare, dual everything (dual NIC, dual power 
 supply, dual
  fans, etc).
 
  Don't get bogged down in desktop PC terminology like DDR 
 RAM, etcfor
  servers that sort of stuff is irrelevant.  You want stability, not
  speed...having the fastest CPU or the fastest RAM 
 technology does you
  nothing if your server keeps going down.  For servers (if 
 you're serious
  about it being a server), you want redundancy, parity and 
 error-checking
  and spares over everything else.  If it were up to me, I 
 would take a
  budget of X dollars and trade performance specs like MHz and GB for
  redundancy, all day.  Drop back on CPU and RAM if it means 
 you can get
 RAID
  disk (hardware RAID is better than software RAID), redundant power
  supplies, etc.  If all you are doing is looking to buy a 
 desktop PC and
  call it a server, then just buy whatever you want...it won't really
 matter,
  and sooner or later your server will go down.
 
  Even then, pay attention to the architecture and design of your
  application, and test it under load...that will make more 
 of a difference
  than jacking up some RAM or CPU hardware.
 
  John
 
  On Fri, 20 Jun 2003 18:04:34 +0530, Antony 
 [EMAIL PROTECTED]
  wrote:
 
   Thanks for the reply. I had never thought of the RAID sub 
 system. My
   situation is that there is no one I know to advice me in 
 this regard and
   my
   company can't affod any highly paid consultancy. That is 
 why asked a
   question like this here.
   Another question. Do Tomcat a requires a faster hard disk. The
   application uses JSP and Servlets only. No HTML pages are 
 used and it
   generates some PDF and Excel files. It also serves some 
 small images
   files
   from local hard disk. I think Tomcat will cache these 
 images. Now my
   concern
   is  whether Tomcat's performance increases by faster DDR RAM.
  
   regards Antony
  
   - Original Message -
   From: John Turner [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Thursday, June 19, 2003 6:09 PM
   Subject: Re: [OT] best hardware config for Tomcat
  
  
  
   I won't get into specifics, but I can tell you that if 
 you are planning
   to
   put this server into production, and run Oracle on it, a 
 single hard
   disk
   is the WORST thing you can do, for a whole range of reasons.
  
   In most cases, CPU and RAM are not bottlenecks...disk 

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread John Turner
Dual is just a preference.

If you are just going to be using it as an intranet server, with a given 
number of users, for a limited time period each day, I would just buy a 
desktop with 2 equal size disks and use RAID 1 mirroring.

John

On Fri, 20 Jun 2003 19:14:17 +0530, Antony [EMAIL PROTECTED] 
wrote:

It is production server. I am a staff of the company where I have to 
deploy
the application. We will use the server only at office time. At most 12
hours a day. After that shut it down. I dont know  what to name this kind 
of
machines. I want to run the machine to run 12 hours a day and overcome 
the
trouble of data loss. Any way u r mails have given me lots of insight. I
think I have to learn more about hardware configurations. Why u r 
suggesting
dual processors ?. Can a dual processor system switch to a single 
processor
if one fails ?. Is there any bechmarks on hardware runningjava web
applications ? If u suggest me any discussion forums or mailing lists 
where
I can ask this kind of questions I will not bother u with a silly 
question.

Thanks for the reply
regards
Antony
- Original Message -
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 6:35 PM
Subject: Re: [OT] best hardware config for Tomcat

The biggest effect on Tomcat's performance will be the architecture and
design of your application.  You can buy the biggest fastest server in 
the
world, and have lousy performance if your application architecture is
poor.
If this is a production server, the absolute minimum I would consider 
for
production, that is, for providing services that others pay me to
provide, and providing those services in such a way as to have the 
highest
uptime possible, is:

Abs. minimum:
P3-1.4 GHz (dual absolutely preferred)
1024 GB RAM
2 36GB SCSI drives, RAID 1 (mirrored)
100Mbps NIC
Medium:
Dual P3-1.4GHz
2GB RAM
3 36GB SCSI drives, RAID 5 (2 + spare = 72GB usable)
Better:
Dual P3-1.4 or higher
4GB RAM
3-5 36GB SCSI drives, RAID 5
Still Better:
Dual P3-1.4 or higher
6GB RAM
as much disk as you can provide
Obviously, disk depends on how much you think you will need.  My servers
provide services to about 25 different clients.  Each has their own 
Tomcat
instance.  My servers are dual P3, 6GB RAM, 800GB-1TB disk in RAID-5 
with
parity and hot spare, dual everything (dual NIC, dual power supply, dual
fans, etc).

Don't get bogged down in desktop PC terminology like DDR RAM, etcfor
servers that sort of stuff is irrelevant.  You want stability, not
speed...having the fastest CPU or the fastest RAM technology does you
nothing if your server keeps going down.  For servers (if you're serious
about it being a server), you want redundancy, parity and error-checking
and spares over everything else.  If it were up to me, I would take a
budget of X dollars and trade performance specs like MHz and GB for
redundancy, all day.  Drop back on CPU and RAM if it means you can get
RAID
disk (hardware RAID is better than software RAID), redundant power
supplies, etc.  If all you are doing is looking to buy a desktop PC and
call it a server, then just buy whatever you want...it won't really
matter,
and sooner or later your server will go down.

Even then, pay attention to the architecture and design of your
application, and test it under load...that will make more of a 
difference
than jacking up some RAM or CPU hardware.

John

On Fri, 20 Jun 2003 18:04:34 +0530, Antony [EMAIL PROTECTED]
wrote:
 Thanks for the reply. I had never thought of the RAID sub system. My
 situation is that there is no one I know to advice me in this regard 
and
 my
 company can't affod any highly paid consultancy. That is why asked a
 question like this here.
 Another question. Do Tomcat a requires a faster hard disk. The
 application uses JSP and Servlets only. No HTML pages are used and it
 generates some PDF and Excel files. It also serves some small images
 files
 from local hard disk. I think Tomcat will cache these images. Now my
 concern
 is  whether Tomcat's performance increases by faster DDR RAM.

 regards Antony

 - Original Message -
 From: John Turner [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, June 19, 2003 6:09 PM
 Subject: Re: [OT] best hardware config for Tomcat



 I won't get into specifics, but I can tell you that if you are 
planning
 to
 put this server into production, and run Oracle on it, a single hard
 disk
 is the WORST thing you can do, for a whole range of reasons.

 In most cases, CPU and RAM are not bottlenecks...disk is.  When in
 doubt,
 get more and faster disk, even if it means less RAM and less CPU.

 At a minimum you will want RAID 1...better yet, two systems disks
 mirrored
 with RAID 1 containing your OS and systems files, and then a RAID 5
 array
 for Oracle.

 I strongly suggest you consult a professional.  Do not try to spec 
this
 out
 on your own, it is clear that you are not familiar on some key points
of
 

Re: [OT] best hardware config for Tomcat

2003-06-20 Thread Graham Reeds
 It is production server. I am a staff of the company where I have to
deploy
 the application. We will use the server only at office time. At most 12
 hours a day. After that shut it down. I dont know  what to name this kind
of
 machines. I want to run the machine to run 12 hours a day and overcome the
 trouble of data loss. Any way u r mails have given me lots of insight. I
 think I have to learn more about hardware configurations. Why u r
suggesting
 dual processors ?. Can a dual processor system switch to a single
processor
 if one fails ?. Is there any bechmarks on hardware runningjava web
 applications ? If u suggest me any discussion forums or mailing lists
where
 I can ask this kind of questions I will not bother u with a silly
question.

I can't give you an exact reason that dual processor is preferable, but we
used a simple 'off the shelf' Dell pizza box dual P4-1.3GHz w/ 1GB + 3 x
18Gb hdd's while testing our app and database.  Finally when the testing was
complete we rolled it out on to our monster server.  Maybe a Dell server
would suit you fine until you find your feet...

--

Graham Reeds,
[EMAIL PROTECTED] | http://omnieng.co.uk


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



RE: Javax servlets

2003-06-20 Thread Shapira, Yoav

Howdy,
Those packages come with tomcat: they are in the
$CATALINA_HOME/common/lib directory, in the serlet.jar file.  You can
also download it separately from java.sun.com/servlets.  You should NOT
have this jar in the WEB-INF/lib directory of your web applications,
because it's already present in the tomcat common library.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Apollinaris B. Mwila, Ph.D [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 1:43 AM
To: [EMAIL PROTECTED]
Subject: Javax servlets

Hi,

I am trying to use Tomcat. I have the server running but I can't get to
use
the simple servlets because it tells me it can't find the javax
package.
Can you help? Where can I download the packages such as javax servlet.*
and
javax servlet.http.*?  By the way I am using linux Red Hat 8.0.

Thanks in advance.

Apollinaris B Mwila

__
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial
today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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




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


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



RE: Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread Shapira, Yoav

Howdy,
Did you bother to write a web.xml file and put it in the WEB-INF
directory under dir name?  Did you see the error in the tomcat logs
that suggested you do so? ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Subhojit Roy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 8:47 AM
To: [EMAIL PROTECTED]
Subject: Resource not available (file not found) error with Tomcat
4.1.24


Hi All

I have installed Tomcat 4.1.24. But when I create my own directories
under
the webapp directory and add jsp files to the directory I cannot access
the
jsp file using the url:

http://localhost:8080/dir name/jsp file name.

I get the HTTP status 404 error with the following message:The
requested
resource path name is not available.

Can you please provide some feedback

Regards







-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!



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


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



Re: Resource not available (file not found) error with Tomcat 4.1.24

2003-06-20 Thread John Turner
You need a Context for your directory.  Use the /examples Context in 
server.xml as an example.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

John

On Wed, 18 Jun 2003 05:46:33 -0700 (PDT), Subhojit Roy 
[EMAIL PROTECTED] wrote:

Hi All

I have installed Tomcat 4.1.24. But when I create my own directories 
under the webapp directory and add jsp files to the directory I cannot 
access the jsp file using the url:

http://localhost:8080/dir name/jsp file name.

I get the HTTP status 404 error with the following message:The requested 
resource path name is not available.

Can you please provide some feedback

Regards







-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: configuration

2003-06-20 Thread Mike Curwen
Since 4.1.12, the invoker servlet has been turned off by default.
Check out the web.xml in the conf directory, you'll see the invoker
commented out.


 -Original Message-
 From: Free Bud [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 18, 2003 10:00 PM
 To: [EMAIL PROTECTED]
 Subject: configuration
 
 
 Hi,
 I've been using tomcat in production for servlets for a 
 couple years.  I got lost after 4.0.  I downloaded 5.0 
 milestone exe and installed.  Much easier than before, even 
 created the service without asking.
  
 2 questions:
 - I usually copy/paste all the library .jar files into my 
 jdk/lib and choose not to overwrite (tools.jar).  Then I can 
 compile servlets w/o problem.
 J2SE .java files compile just fine with the classpath I have 
 which does contain the   .;c:/jdk/lib but the compiler 
 can't find servlet classes.
  
 - I'd like to just drop a servlet into a directory, restart 
 the service and test servlets.  I drop them into one of the 
 /class directories on 4.0 and this works.  5.0 and 4.1 have 
 about a half dozen class directories in different 
 locations.  I've tried dropping the same servlet on 4.1 in 
 all of them but it still won't load.  
  
 Are there any instructions to just get a simple servlet to 
 run using a browser address something like 
 http://localhost:8080/servlet/SomeServlet?
  
 Please help!
  
 
 HD
 
 
 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 


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



RE: how to refuse to start a context?

2003-06-20 Thread Shapira, Yoav

Howdy,

as a context init parameter). The idea is to refuse to run unless the
server and database versions match. This part is easy. The problem is
that
I can't return an error condition since contextInitialized() returns
void,
and I can't throw a checked exception because the interface isn't
declared
to do so ... am I missing something? How can I shut down, presumably
with
some sensible message to the log file, on such a mismatch?

Logging is easy: you can log to the servlet context's log using:
ServletContext sc = sce.getServletContext();
sc.log(getClass().getName() + contextInitialized(): database schema
mismatch, quitting.);

For the refuse to run part, you can do several things:

- Call System.exit(1) to bring down the server ;) ;)  This is obviously
not friendly to other apps on the server and generally not graceful.

- Have some flag in a singleton object that says the app should refuse
to run, and have a filter (mapped to /*) check this singleton flag for
every request, and refuse to let requests proceed if the flag is set.
(Or the filter can redirect to a custom error page, or whatever).

I like the 2nd solution above so I'm going to stop here, even though
there are other approaches.

Yoav Shapira



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


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



RE: Javax servlets

2003-06-20 Thread Mike Curwen
If you've got Tomcat, you've got those packages.  Make sure servlet.jar
is in your classpath (for compiling).  For runtime, make sure you've set
JAVA_HOME and CATALINA_HOME properly.

 -Original Message-
 From: Apollinaris B. Mwila, Ph.D [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, June 19, 2003 12:43 AM
 To: [EMAIL PROTECTED]
 Subject: Javax servlets
 
 
 Hi,
 
 I am trying to use Tomcat. I have the server running but I 
 can't get to use the simple servlets because it tells me it 
 can't find the javax package. Can you help? Where can I 
 download the packages such as javax servlet.* and javax 
 servlet.http.*?  By the way I am using linux Red Hat 8.0.
 
 Thanks in advance.
 
 Apollinaris B Mwila
 
 __
 McAfee VirusScan Online from the Netscape Network. 
 Comprehensive protection for your entire computer. Get your 
 free trial today! 
 http://channels.netscape.com/ns/computing/mcafee/index.jsp?pro
mo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

-
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: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-06-20 Thread Roberts, Eric
Hi,

If you have declared your database connection pools ast the GlobalNamingResource 
level, but do not have your contexts declarared in server.xml, you probably need to 
have context.xml files in your META-INF subdirectory which contain your ResourceLink 
definitions for the context.

HTH

-Original Message-
From: Michael Holly [mailto:[EMAIL PROTECTED]
Sent: 18 June 2003 17:21
To: [EMAIL PROTECTED]
Subject: java.sql.SQLException: Cannot load JDBC driver class 'null'


In trying to make the move to automate my testing I have come up
against a problem.

First some background.
I am running Tomcat 4.1.18, Java 1.3.1, Win 2k

Part of getting on automated testing was getting the ANT build
to undeploy and then redeploy the war after it got created.
In addition, I decided that it was more convenient to have the
Test classes located in myapp.war instead of a seperate war.

Part of getting this dynamic undeploy/deploy cycle to work was
removing the context from the server.xml. The reason I want to
do this is I have 2 connection pools located there. In a dynamic
deploy tomcat generates it's own context for the app. I found there
were three ways I could do this.

#1. put the connection pool into the GlobalNamingResources section
of server.xml

#2. create a $APP_NAME.xml file that contains the context of the app
and put it into $TOMCAT_HOME/webapps. Both the Tomcat manager and
Admin apps do this.

#3. Possibly put the context info in the web.xml file for the app.

I have tried both 1 and 2 and I am getting a
java.sql.SQLException: Cannot load JDBC driver class 'null' error
when the DBCP is accessed. The classes12.jar file is located in
$TOMCAT_HOME/common/lib.  It has been renamed from .zip to .jar

Is there something special that I have to do to make the pools
available to my application?

As you can tell from the included files I am using configuring a connection
pool
for two different connections. Below are my files for Option #2 (the one
I would like to go with). Do I have the resource-ref defined correctly?
Is there something I am missing?

Some Observations.
The app seems to deploy correctly. ( I can see app in Tomcat manager )
Using the Tomcat Admin facility I can see my DataSources.

WEB.XML-

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
display-nameTSR Application/display-name
descriptionThis is the web configuration for the TSR
application/description

!-- SERVLET LISTINGS --
servlet
servlet-nameTestServlet/servlet-name
servlet-classnet.talisen.tsr.servlets.TestServlet/servlet-class
/servlet

servlet
servlet-nameControllerServlet/servlet-name

servlet-classnet.talisen.tsr.servlets.ControllerServlet/servlet-class
/servlet

servlet
servlet-nameFileDownloadServlet/servlet-name

servlet-classnet.talisen.tsr.servlets.FileDownloadServlet/servlet-class
/servlet

servlet
   servlet-nameStartupServlet/servlet-name

servlet-classnet.talisen.tsr.servlets.StartupServlet/servlet-class
   load-on-startup1/load-on-startup
/servlet

!--servlet
servlet-namelog4j-init/servlet-name
servlet-classnet.talisen.tsr.servlets.Log4jInit/servlet-class
load-on-startup1/load-on-startup
init-param
   param-namelog4j-init-file/param-name
   param-valueWEB-INF\classes\log4j.properties/param-value
/init-param
/servlet--

!-- integrate the testing --
servlet
  servlet-nameJUnitEETestServlet/servlet-name
  descriptionJUnitEE test runner/description
  servlet-classorg.junitee.servlet.JUnitEEServlet/servlet-class
/servlet

!-- SERVLET MAPPINGS --
servlet-mapping
servlet-nameTestServlet/servlet-name
url-pattern/test/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameStartupServlet/servlet-name
url-pattern/startup/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameControllerServlet/servlet-name
url-pattern/controller/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameFileDownloadServlet/servlet-name
url-pattern/download/url-pattern
/servlet-mapping

!-- integrate the testing --
servlet-mapping
  servlet-nameJUnitEETestServlet/servlet-name
  url-pattern/TestServlet/*/url-pattern
/servlet-mapping

!-- JNDI resource for DB connection pool --
resource-ref
  description
   Resource reference to a factory for java.sql.Connection
   instances that may be used for talking to a particular
   database that is configured in the server.xml file.
  /description

  res-ref-name
 jdbc/oracle_tsr
  /res-ref-name
  res-type
 javax.sql.DataSource
  /res-type
  res-auth
 

Re: configuration

2003-06-20 Thread John Turner
Tomcat 5 is not ready for production.

Just :dropping a servlet into a directory is bad, because it uses the 
Invoker.

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

John

On Wed, 18 Jun 2003 20:00:11 -0700 (PDT), Free Bud [EMAIL PROTECTED] 
wrote:

Hi,
I've been using tomcat in production for servlets for a couple years.  I 
got lost after 4.0.  I downloaded 5.0 milestone exe and installed.  Much 
easier than before, even created the service without asking.
2 questions:
- I usually copy/paste all the library .jar files into my jdk/lib and 
choose not to overwrite (tools.jar).  Then I can compile servlets w/o 
problem.
J2SE .java files compile just fine with the classpath I have which does 
contain the   .;c:/jdk/lib but the compiler can't find servlet classes.
- I'd like to just drop a servlet into a directory, restart the service 
and test servlets.  I drop them into one of the /class directories on 4.0 
and this works.  5.0 and 4.1 have about a half dozen class directories 
in different locations.  I've tried dropping the same servlet on 4.1 in 
all of them but it still won't load.
Are there any instructions to just get a simple servlet to run using a 
browser address something like http://localhost:8080/servlet/SomeServlet?
Please help!
HD

-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: configuration

2003-06-20 Thread Shapira, Yoav

Howdy,

2 questions:
- I usually copy/paste all the library .jar files into my jdk/lib and
choose not to overwrite (tools.jar).  Then I can compile servlets w/o
problem.

This is one of those shortcuts that, while apparently harmless, can
cause nightmarish headaches.  For example, if you override the XML APIs
with a bad version.

Don't do the above.  Use ant.  Keep the JDK as it is, keep the tomcat
libraries as they are.  The source organization, build processes, etc,
are described here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

- I'd like to just drop a servlet into a directory, restart the service
and
test servlets.  I drop them into one of the /class directories on 4.0
and
this works.  5.0 and 4.1 have about a half dozen class directories in
different locations.  I've tried dropping the same servlet on 4.1 in
all of
them but it still won't load.

Create a test or temp (or whatever you want to call it) webapp.
Create a WEB-INF directory under that webapp, and copy a plain web.xml
(e.g. the one from $CATALINA_HOME/webapps/ROOT) into the WEB-INF
directory.  Create a classes directory under WEB-INF.  That's where
you'll copy your compiled servlets.

Comment in the invoker servlet mapping in $CATALINA_HOME/conf/web.xml.
Make sure you context is marked as reloadable in server.xml.  Then
you'll be able to access servlets as
http://yourhost:yourport/test/servlet/[servletClassName]

(Where test is your webapp name).

And don't use tomcat 5 unless you're sure you want it: it's alpha.

Yoav Shapira



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


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



[ANNOUNCE] Tomcat FAQ Available

2003-06-20 Thread John Turner
Greetings -

Before posting to the list, please consult the Tomcat documentation, as 
well as the Tomcat FAQ.

Tomcat FAQ:  http://jakarta.apache.org/tomcat/faq/index.html

Tomcat 3.3 documentation: http://jakarta.apache.org/tomcat/tomcat-3.3- 
doc/index.html

Tomcat 4.0 documentation: http://jakarta.apache.org/tomcat/tomcat-4.0- 
doc/index.html

Tomcat 4.1 documentation: http://jakarta.apache.org/tomcat/tomcat-4.1- 
doc/index.html

John

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


Re: web.xml init param

2003-06-20 Thread Tim Funk
web.xml is defined by Sun's Servlet Specification. You can get it at Sun's 
site. (java.sun.com)

A good servlet book will be very helpful as well as ...

http://servlets.com/index.tea
http://www.onjava.com/onjava/jsp_servlets/
-Tim

Jing Huang wrote:
Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please help. I set initial parameters for a servlet in web.xml. When I start the server and run the servlet, the servlet can not get the initial parameters. It seems that the web.xml was not accessed at all. Can you help?  By the way, is there a place that documents how to configure the web.xml and server.xml for different purposes? 



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


Load balancing

2003-06-20 Thread Pierre Maris
Hi,

 

I am working with a load balanced configuration (1 Apache and 2 Tomcat instances on 
the same machine). Load balancing is provided by mod_jk.

 

My application uses caches, and to purge caches I need to address, explicitly,  each 
of  the Tomcat instances.

 

What's the best way to do this?

 

Regards

 

  Pierre

RE: Load balancing

2003-06-20 Thread Roberts, Eric
Hi,

Can you use the jvmRoute parameter?

-Original Message-
From: Pierre Maris [mailto:[EMAIL PROTECTED]
Sent: 20 June 2003 16:38
To: [EMAIL PROTECTED]
Subject: Load balancing


Hi,

 

I am working with a load balanced configuration (1 Apache and 2 Tomcat instances on 
the same machine). Load balancing is provided by mod_jk.

 

My application uses caches, and to purge caches I need to address, explicitly,  each 
of  the Tomcat instances.

 

What's the best way to do this?

 

Regards

 

  Pierre

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



Re: passing parameters to another JSP page

2003-06-20 Thread Alan Tang
Stefan,

Thanks so much for your response!
It works.
I spent almost a whole day trying to figure it out but failed!

RGS,
Alan Tang

- Original Message -
From: Stefan Radzom [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 9:56 PM
Subject: RE: passing parameters to another JSP page


There is a little typo in your jsp:include which screws up the rest of
your jsp. For your include-action you use an empty-element tag (ending with
/) that by definiton contains no child elements. Therefore, the params do
not belong to the include and are never passed on to the included jsp.

Use the corrected code

 jsp:include page=callee.jsp
 jsp:param name=param2 value=value2 /
 jsp:param name=param3 value=value3 /
 /jsp:include

and everything should work fine.

Stefan


 -Original Message-
 From: Alan Tang [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 12:03 PM
 To: [EMAIL PROTECTED]
 Subject: passing parameters to another JSP page


 Hi,
 Any help would be highly appreciated!
 I'm wondering why it's NOT working passing parameters to
 another jsp page.
 I'm using Tomcat 4.0
 Here is the sample jsp pages I used:
 Called.html:
 html
 head/head
 body

 jsp:include page=callee.jsp /
 jsp:param name=param2 value=value2 /
 jsp:param name=param3 value=value3 /
 /jsp:include

 Caller:
 param1: %= request.getParameter(param1) %
 param2: %= request.getParameter(param2) %
 param3: %= request.getParameter(param3) %

 /body
 /html

 Here is the JSP page being called:

 html
 head/head
 body
 Callee:
 param1: %= request.getAttribute(param1) %
 param2: %= request.getParameter(param2) %
 param3: %= request.getParameter(param3) %
 /body
 /html

 If the caller is called with the URL:

 http://135.252.32.142/SIX_XML/scriptJsp/caller .jsp?param1=aparam2=b

 the expected output would be:
 Callee:
 param1: a
 param2: value2
 param3: value3

 Caller:
 param1: a
 param2: b
 param3: null
 The issue is that I always get wrong result with Tomcat 4.0:
 Callee: param1: a param2: b param3: null
 Caller: param1: a param2: b param3: null
 Could anybody tell me what's wrong here?
 Does Tomcat need a special configuration to support passing parameters
 to another JSP page, or I need to use a latter version of Tomcat?
 Thanks much!
 -
 Alan S. Tang
 Lucent Technologies
 [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: Load balancing

2003-06-20 Thread Ben Ricker
On Fri, 2003-06-20 at 09:52, Roberts, Eric wrote:
 Hi,
 
 Can you use the jvmRoute parameter?

The above might work; I have not tried it.

One thing I did was to turn on the Tomcat web listener and then I can
directly access each Tomcat instance by port (Tomcat1 on Server 1 is
port 8081 and Tomcat2 on Server2 is port 8082, etc).

Ben Ricker
Wellinx.com

 -Original Message-
 From: Pierre Maris [mailto:[EMAIL PROTECTED]
 Sent: 20 June 2003 16:38
 To: [EMAIL PROTECTED]
 Subject: Load balancing
 
 
 Hi,
 
  
 
 I am working with a load balanced configuration (1 Apache and 2 Tomcat instances on 
 the same machine). Load balancing is provided by mod_jk.
 
  
 
 My application uses caches, and to purge caches I need to address, explicitly,  each 
 of  the Tomcat instances.
 
  
 
 What's the best way to do this?
 
  
 
 Regards
 
  
 
   Pierre
 
 -
 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 Daemon on Linux

2003-06-20 Thread Phillip Qin
I run tomcat as service on Debian. All you have to do is

- create a script tomcat in /etc/init.d, refer to scripts in the same
directory, start-startup.sh, stop-shutdown.sh, otherwise exit;
- create symbolic links in rcn.d: K15tomcat in rc0.d and rc6.d, S85tomcat in
rc2.d thru rc5.d



-Original Message-
From: Florent Zara [mailto:[EMAIL PROTECTED] 
Sent: June 20, 2003 5:12 AM
To: Tomcat Users List
Subject: Re: TomCat Daemon on Linux

Hello,

Kwok Peng Tuck wrote:
 It's possible to write your own script, if you want to have a look at 
 the script I can send you a copy of the script that
 the rpm installs.

I actually runs Tomcat on a Debian, so I did not use the rpm version. I 
would be very interested in this script. May you please send it to me 
also ([EMAIL PROTECTED]) ?

Thanks in advance

Florent.



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


mod_jk quirk?

2003-06-20 Thread Dave Naden
When I auto-generate the mod_jk directives, I'm finding strange behavior:  Even if my 
workers.properties file contains the name of a worker other than ajp13, the JkMount 
commands that get generated always have the worker name as ajp13.
for example, if I put the following in my workers.properties:

worker.list=testWorker1
# settings for testWorker1
worker.testWorker1.port=8009
worker.testWorker1.host=localhost
worker.testWorker1.type=ajp13

I'll still get, in the auto file, lines like:

 JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13

...etc.

even though I'm naming the worker 'testWorker1'

I know Tomcat is reading the correct workers.properties file, because when I remove 
it, Tomcat complains. 

BTW, here's my location directive:

  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/Apache2/modules/mod_jk-2.0.42.dll  /


Anybody know what's going on?

-Dave Naden



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



Re: costumize manager

2003-06-20 Thread Reinhard Moosauer
Hello,

you don't have to customize the manager to achieve this:
Simply include a Realm definition for each manager of each host. Like this:

Host myhost1 
Context cookies=true
  crossContext=false debug=0 displayName=Manager
  docBase=/opt/tomcat/server/webapps/manager
  path=/manager privileged=true reloadable=false 
swallowOutput=false
  useNaming=true 

  Realm className=org.apache.catalina.realm.MemoryRealm debug=1
  pathname=/www/host1/tomcat/app-users.xml /

/Context
/Host

This way each host has a different User Database.
If you want to disable some features of the manager, a simple patch to the 
HtmlManagerServlet would do also. 
Otherwise you could do subclassing by filtering all requests through another 
servlet. How about this?

Regards,

Reinhard

Am Dienstag, 17. Juni 2003 16:04 schrieb Maxime Colas des Francs:
 Hello

 I use tomcat with multiple virtual host.
 I want to open access to Tomcat Manager for all virtual host
 independently only for list/start/stop their web applications from an
 html page.

 My first idea was to extends the
 org.apache.catalina.servlets.ManagerServlet and insert it in manager
 application.

 In this case, i have to fight with a lot of security contraints ?

 Is there a better solution, documentation ?

 thks !





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



Upgrade or new install?

2003-06-20 Thread Lisa Foister
I'm currently running Tomcat 4.1.18 and mySQL 3.23.54 on Red Hat 8.0.  I 
haven't installed any connectors, and although I am running Tomcat on port 
8080, I'm not currently running Apache (Tomcat provides all the web server 
I really need).  This is really a learning/development system on my home 
network, and unless some hacker has singled me out and cracked my password, 
I'm the only person who ever uses the machine.  I am also a Linux novice, 
so it's a bit more difficult for me to figure out installs, etc. than it 
would be for someone with a bit more experience.

I need to install an application onto this machine for work, and have been 
told that it requires Tomcat 4.1.24 and mySQL 4.0.13, along with the mySQL 
connector 3.0.8.

Would it be easier/better for me to try to upgrade the versions of Tomcat 
and mySQL that I have, install the new versions in their own directory and 
just ignore the old ones, or delete the old ones entirely before installing 
the new ones from scratch?  Also, when I installed Tomcat 4.1.18, I did it 
from RPM and later discovered all kinds of special features (non-standard 
setups, standard directories missing, etc.).  Would it be better for me to 
use a more generic install?  Backing up the few projects I have under the 
Tomcat directory, and the mySQL databases I've been playing around with, 
isn't a problem -- there really isn't all that much there, and they're easy 
to restore to the appropriate places.

I'm looking for how to achieve the goal (Tomcat 4.1.24 connected to mySQL 
4.0.13) with the least amount of frustration possible for a Linux novice. I 
don't really care if it's the most efficient way, as long as it's clear and 
hard to screw up.

Thanks,

Lisa



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



Re: mod_jk quirk?

2003-06-20 Thread John Turner
Hi -

AFAIK, Tomcat never reads workers.properties, only mod_jk reads 
workers.properties.

If you use the auto-generation, your worker will always be named ajp13.  If 
you need something else, you need to configure things manually.  The 
ApacheConfig classes are a convenience, not a requirement, and could easily 
go away in the future (they're not even used for JK2 which is where the 
current dev efforts are).

The complaints you are getting when you change or remove workers.properties 
are from Apache and mod_jk, not Tomcat.

John

On Fri, 20 Jun 2003 11:15:59 -0400, Dave Naden [EMAIL PROTECTED] wrote:

When I auto-generate the mod_jk directives, I'm finding strange behavior: 
Even if my workers.properties file contains the name of a worker other 
than ajp13, the JkMount commands that get generated always have the 
worker name as ajp13.
for example, if I put the following in my workers.properties:

worker.list=testWorker1
# settings for testWorker1
worker.testWorker1.port=8009
worker.testWorker1.host=localhost
worker.testWorker1.type=ajp13
I'll still get, in the auto file, lines like:

JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
...etc.

even though I'm naming the worker 'testWorker1'

I know Tomcat is reading the correct workers.properties file, because 
when I remove it, Tomcat complains.

BTW, here's my location directive:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=c:/Apache2/modules/mod_jk-2.0.42.dll  /
Anybody know what's going on?

-Dave Naden



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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Configuring session Id in URL

2003-06-20 Thread Mike Heckler
Is there a way to tell tomcat to NOT place the session ID in a url
(even when the client doesn't support cookies) based on IP or user-agent?
The problem I'm having is with search engines (especially google) not 
indexing
my entire site because the URLs have the jsessionid in them.  I'd like 
to support
browsers with cookies turned off, but at the same time not send the 
jsessionids
to certain clients.

I've looked around and can't seem to even the question anywhere, let 
alone the answer.

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


Re: Upgrade or new install?

2003-06-20 Thread John Turner
Hello -

I can't really address your questions relating to MySQL, but I can help you 
out relating to Tomcat.

In my opinion, this is how I would proceed given your situation:

- stop Tomcat 4.1.18.  Make sure it doesn't start on boot by removing the 
tomcat startup script from the boot sequence (we can help you on this if 
you need it)

- download the binary install of the latest JDK.  Unpack it, move it to a 
reasonable location, and set the JAVA_HOME environment variable to its 
location

- download the binary install of Tomcat 4.1.24.  Unpack it, move it to a 
reasonable location, like /usr/local/tomcat-4124, and set the CATALINA_HOME 
environment variable to its location

- upgrade your MySQL (not sure on the best way to suggest you do this)

- get the latest MySQL JDBC driver, or the one that is compatible with 
MySQL 4.0.13, copy the .jar file to CATALINA_HOME/tomcat/common/lib

My HOWTOs describe steps 2 and 3 above:  http://www.johnturner.com/howto.  
The version numbers for the JDK and Tomcat  are a little old, but the steps 
are the same.  Ignore the sections on installing Apache and installing a 
Connector.

Then, to start Tomcat, all you would do is use 
$CATALINA_HOME/bin/startup.sh from the command line.  You might consider 
changing server.xml to use port 80 instead of 8080 to make things easier.

HTH

John

On Fri, 20 Jun 2003 11:22:01 -0400, Lisa Foister [EMAIL PROTECTED] 
wrote:

I'm currently running Tomcat 4.1.18 and mySQL 3.23.54 on Red Hat 8.0.  I 
haven't installed any connectors, and although I am running Tomcat on 
port 8080, I'm not currently running Apache (Tomcat provides all the web 
server I really need).  This is really a learning/development system on 
my home network, and unless some hacker has singled me out and cracked my 
password, I'm the only person who ever uses the machine.  I am also a 
Linux novice, so it's a bit more difficult for me to figure out installs, 
etc. than it would be for someone with a bit more experience.

I need to install an application onto this machine for work, and have 
been told that it requires Tomcat 4.1.24 and mySQL 4.0.13, along with the 
mySQL connector 3.0.8.

Would it be easier/better for me to try to upgrade the versions of Tomcat 
and mySQL that I have, install the new versions in their own directory 
and just ignore the old ones, or delete the old ones entirely before 
installing the new ones from scratch?  Also, when I installed Tomcat 
4.1.18, I did it from RPM and later discovered all kinds of special 
features (non-standard setups, standard directories missing, etc.).  
Would it be better for me to use a more generic install?  Backing up the 
few projects I have under the Tomcat directory, and the mySQL databases 
I've been playing around with, isn't a problem -- there really isn't all 
that much there, and they're easy to restore to the appropriate places.

I'm looking for how to achieve the goal (Tomcat 4.1.24 connected to mySQL 
4.0.13) with the least amount of frustration possible for a Linux novice. 
I don't really care if it's the most efficient way, as long as it's clear 
and hard to screw up.

Thanks,

Lisa



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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: SPAM: Re: mod_jk quirk?

2003-06-20 Thread Dave Naden
OK, I appreciate your response.  -Dave 

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2003 11:23 AM
To: Tomcat Users List
Subject: SPAM: Re: mod_jk quirk?


[Message inserted by SAS Postmaster: ISD is evaluating gateway-level spam defenses. 
This message was judged by one of the filters being evaluated to be spam. If this 
message is in fact spam, ** there is no action you need to take **. Should our 
evaluation conclude that this technique is practical, you will be receiving fewer 
messages of this type when our evaluation is complete.

If, however, this message is one that is definitely not spam, you may submit a false 
positive report by visiting http://mdrweb.na.sas.com/publictools/falsepositive and 
following the instructions found there.]


Hi -

AFAIK, Tomcat never reads workers.properties, only mod_jk reads 
workers.properties.

If you use the auto-generation, your worker will always be named ajp13.  If 
you need something else, you need to configure things manually.  The 
ApacheConfig classes are a convenience, not a requirement, and could easily 
go away in the future (they're not even used for JK2 which is where the 
current dev efforts are).

The complaints you are getting when you change or remove workers.properties 
are from Apache and mod_jk, not Tomcat.

John

On Fri, 20 Jun 2003 11:15:59 -0400, Dave Naden [EMAIL PROTECTED] wrote:

 When I auto-generate the mod_jk directives, I'm finding strange 
 behavior:
 Even if my workers.properties file contains the name of a worker other 
 than ajp13, the JkMount commands that get generated always have the 
 worker name as ajp13.
 for example, if I put the following in my workers.properties:

 worker.list=testWorker1
 # settings for testWorker1
 worker.testWorker1.port=8009 worker.testWorker1.host=localhost
 worker.testWorker1.type=ajp13

 I'll still get, in the auto file, lines like:

 JkMount /examples/jsp/security/protected/j_security_check  ajp13 
 JkMount /examples/snoop  ajp13 JkMount /examples/servlet/*  ajp13
 JkMount /examples/CompressionTest  ajp13
 JkMount /examples/*.jsp  ajp13
 JkMount /examples/servletToJsp  ajp13

 ...etc.

 even though I'm naming the worker 'testWorker1'

 I know Tomcat is reading the correct workers.properties file, because
 when I remove it, Tomcat complains.

 BTW, here's my location directive:

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=c:/Apache2/modules/mod_jk-2.0.42.dll  /


 Anybody know what's going on?

 -Dave Naden



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





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
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: [ANNOUNCE] Tomcat FAQ Available

2003-06-20 Thread John Turner
I think thats a great idea, but I have no idea how such a thing would be 
accomplished.

Please don't misconstrue my post about the FAQ as an indicator that I had 
anything to do with the FAQ.  Most of that was Tim Funk, and others, not 
me.

John

On Fri, 20 Jun 2003 16:28:45 +0100, Andy Eastham [EMAIL PROTECTED] 
wrote:

John,

Top Stuff.

Do you think it would be a good idea to add a link to the FAQ into the
message footer for this list?
Thanks for your efforts.

Andy

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: 20 June 2003 15:19
To: [EMAIL PROTECTED]
Subject: [ANNOUNCE] Tomcat FAQ Available


Greetings -

Before posting to the list, please consult the Tomcat documentation, as
well as the Tomcat FAQ.
Tomcat FAQ:  http://jakarta.apache.org/tomcat/faq/index.html

Tomcat 3.3 documentation: http://jakarta.apache.org/tomcat/tomcat-3.3-
doc/index.html
Tomcat 4.0 documentation: http://jakarta.apache.org/tomcat/tomcat-4.0-
doc/index.html
Tomcat 4.1 documentation: http://jakarta.apache.org/tomcat/tomcat-4.1-
doc/index.html
John

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [ANNOUNCE] Tomcat FAQ Available

2003-06-20 Thread Tim Funk
I sent an email to the list owner ( [EMAIL PROTECTED] ) to 
request this change as well as asking that a link to the faq is returned if 
an email is sent to  [EMAIL PROTECTED]

-Tim

Andy Eastham wrote:
John,

Top Stuff.

Do you think it would be a good idea to add a link to the FAQ into the
message footer for this list?
Thanks for your efforts.

Andy


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


RE: worker.properties

2003-06-20 Thread Jose Santiago Oyervides Gonzalez
Thanks John,
You were right, I only needed to add localhost in my worker.properties, now
it's working.

I'm using Tomcat 4.0.6 with one instance and using worker.properties,
uriworkermap.properties and isapi_redirector.dll, just configured the
localhost in my worker.properties and everything is now working.

I read the FAQ for tomcat 4.1.X and got confused, since I didn't find the
worker.properties configuration for tomcat 4.0.X, I followed the 4.1.X one. 

Thanks a lot John!

Regards.
Jose Oyervides.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 7:50 AM
To: Tomcat Users List
Subject: Re: worker.properties



Hi -

Please clarify:  do you have multiple Tomcat instances, or just one?  The 
only time you need to put more hosts in workers.properties is if you have 
MULTIPLE Tomcat instances.  If you only have one Tomcat instance, you only 
need the following in workers.properties:

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties
 Note that it is workers.properties, not worker.properties (note the 
missing s in your post...a typo?).

Note also that for IIS, you need more than workers.properties...you also 
need a file called uriworkermap.properties.

Workers.properties is not for the purpose of mapping virtual hosts...its 
only purpose is to tell the connector where to find Tomcat.

If you have one Tomcat instance, and a workers.properties file like the one 
shown above, and you cannot get any host headers except localhost to 
work, your problem is in either or both of 1) defining/mapping virtual 
hosts on the web server side (IIS: uriworkermap.properties, Apache: 
JkMount), or 2) defining virtual hosts on the Tomcat side.

Even if you have multiple Tomcat instances, I would suggest getting things 
to work for multiple virtual hosts using one Tomcat instance, then add the 
other Tomcat instances into the mix.  Trying to get multiple Tomcat 
instances working with multiple virtual hosts all at once could easily 
become frustrating if you don't take it a step or piece at a time.

John

On Thu, 19 Jun 2003 17:03:30 -0500, Jose Santiago Oyervides Gonzalez 
[EMAIL PROTECTED] wrote:

 Hi, Could anyone tell me what would be the correct configuration in the
 worker.properties to allow IIS to redirect to multiple hosts.

 Currently I am using this: (with no success,only for localhost)
 worker.properties:
 worker.ajp13.type=ajp13 worker.work.type=ajp13 
 worker.tomcat_home=D:\Tomcat4
 worker.java_home=C:\j2sdk1.4.0
 ps=\
 worker.list=ajp13,myworker,myworker2

 worker.ajp13.port=8009
 worker.ajp13.host=localhost

 worker.myworker.port=8009
 worker.myworker.host=foo.com

 worker.myworker2.port=8009
 worker.myworker2.host=otherhost.com

 I am using Tomcat 4.0.6 -- IIS 5.0.
 According the 4.1.X documentation my configuration is valid, but I wonder 
 if
 that works in 4.0.X.  ¿?

 Also in server.xml, I specified the address property for the ip of the
 domains I'm configuring.(and added the hosts,obviously)

 Regards.
 Jose Oyervides.


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





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-
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: worker.properties

2003-06-20 Thread John Turner
No problem, glad I could help.

John

On Fri, 20 Jun 2003 11:29:37 -0500, Jose Santiago Oyervides Gonzalez 
[EMAIL PROTECTED] wrote:

Thanks John,
You were right, I only needed to add localhost in my worker.properties, 
now
it's working.

I'm using Tomcat 4.0.6 with one instance and using worker.properties,
uriworkermap.properties and isapi_redirector.dll, just configured the
localhost in my worker.properties and everything is now working.
I read the FAQ for tomcat 4.1.X and got confused, since I didn't find the
worker.properties configuration for tomcat 4.0.X, I followed the 4.1.X 
one.

Thanks a lot John!

Regards.
Jose Oyervides.
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 7:50 AM
To: Tomcat Users List
Subject: Re: worker.properties


Hi -

Please clarify:  do you have multiple Tomcat instances, or just one?  The 
only time you need to put more hosts in workers.properties is if you have 
MULTIPLE Tomcat instances.  If you only have one Tomcat instance, you 
only need the following in workers.properties:

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties
Note that it is workers.properties, not worker.properties (note the 
missing s in your post...a typo?).

Note also that for IIS, you need more than workers.properties...you also 
need a file called uriworkermap.properties.

Workers.properties is not for the purpose of mapping virtual hosts...its 
only purpose is to tell the connector where to find Tomcat.

If you have one Tomcat instance, and a workers.properties file like the 
one shown above, and you cannot get any host headers except localhost 
to work, your problem is in either or both of 1) defining/mapping virtual 
hosts on the web server side (IIS: uriworkermap.properties, Apache: 
JkMount), or 2) defining virtual hosts on the Tomcat side.

Even if you have multiple Tomcat instances, I would suggest getting 
things to work for multiple virtual hosts using one Tomcat instance, then 
add the other Tomcat instances into the mix.  Trying to get multiple 
Tomcat instances working with multiple virtual hosts all at once could 
easily become frustrating if you don't take it a step or piece at a time.

John

On Thu, 19 Jun 2003 17:03:30 -0500, Jose Santiago Oyervides Gonzalez 
[EMAIL PROTECTED] wrote:

Hi, Could anyone tell me what would be the correct configuration in the
worker.properties to allow IIS to redirect to multiple hosts.
Currently I am using this: (with no success,only for localhost)
worker.properties:
worker.ajp13.type=ajp13 worker.work.type=ajp13 
worker.tomcat_home=D:\Tomcat4
worker.java_home=C:\j2sdk1.4.0
ps=\
worker.list=ajp13,myworker,myworker2

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.myworker.port=8009
worker.myworker.host=foo.com
worker.myworker2.port=8009
worker.myworker2.host=otherhost.com
I am using Tomcat 4.0.6 -- IIS 5.0.
According the 4.1.X documentation my configuration is valid, but I 
wonder if
that works in 4.0.X.  ¿?

Also in server.xml, I specified the address property for the ip of the
domains I'm configuring.(and added the hosts,obviously)
Regards.
Jose Oyervides.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Configuring session Id in URL

2003-06-20 Thread Tim Funk
Ouch! But the answer is easy. Filters with HttpServletResponseWrapper. Here 
is a quick example:

public class NoRewriteFilter implements Filter {

public void init(FilterConfig filterConfig)
  throws ServletException {
;
}
public void doFilter(ServletRequest request,
 ServletResponse response,
 FilterChain chain)
  throws IOException,
 ServletException {
if (canIgnoreRewrite(request)) {
response = new 
HttpServletResponseWrapper((HttpServletResponse)response) {
public String encodeRedirectUrl(String url) {
return url;
}
public String encodeRedirectURL(String url) {
return url;
}
public String encodeUrl(String url) {
return url;
}
public String encodeURL(String url) {
return url;
}
}
chain.doFilter(request,response);
}

public void destroy() {
; // no-op
}
protected boolean canIgnoreRewrite(ServletRequest request) {
HttpServletRequest r = (HttpServletRequest)request;
String agent = r.getHeader(user-agent);
if (agent!=null)
return false;
agent = agent.toLowerCase();
return agent.indexOf(googlebot)-1;
}
}



-Tim

Mike Heckler wrote:
Is there a way to tell tomcat to NOT place the session ID in a url
(even when the client doesn't support cookies) based on IP or user-agent?
The problem I'm having is with search engines (especially google) not 
indexing
my entire site because the URLs have the jsessionid in them.  I'd like 
to support
browsers with cookies turned off, but at the same time not send the 
jsessionids
to certain clients.

I've looked around and can't seem to even the question anywhere, let 
alone the answer.

Thanks,
Mike Heckler
-
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: Configuring session Id in URL

2003-06-20 Thread Shapira, Yoav

Howdy,
No.  Tomcat acts according the to the servlet specification, which says
if cookies can't be used (or sometimes even if they can, it's up to the
container), jsessionid must be on the URL.

You could, of course, not use sessions in your webapps ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Mike Heckler [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 11:27 AM
To: [EMAIL PROTECTED]
Subject: Configuring session Id in URL

Is there a way to tell tomcat to NOT place the session ID in a url
(even when the client doesn't support cookies) based on IP or
user-agent?

The problem I'm having is with search engines (especially google) not
indexing
my entire site because the URLs have the jsessionid in them.  I'd like
to support
browsers with cookies turned off, but at the same time not send the
jsessionids
to certain clients.

I've looked around and can't seem to even the question anywhere, let
alone the answer.

Thanks,
Mike Heckler


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




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


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



mod_jk only loadbalancing to one machine

2003-06-20 Thread Rick Carter
Hi,

My problem in brief: one RedHat Linux box running apache with mod_jk
trying to do load balancing to four boxes behind it.  All requests only
get sent to one of the boxes.  The logs look good; if I remove that box
from the config., it will pick one of the other three and send all
requests there.  It sticks with whatever box it picks even after a service
stop and start.

I've looked all over the web and my load balancing configuration looks
just like everyone else's from all I can see.

Boxes are all running RedHat Linux Enterprise ES 2.1.  The four background
boxes are running tomcat4-4.1.24-full.2jpp .

Load-balancing box is running apache 1.3.27 (built with OpenSSL 0.9.7b and
CFLAGS=-DHARD_SERVER_LIMIT=1024), and mod_jk 4.1.24.

I have watched /usr/local/www/mod_jl.log, and all looks normal.  I have it
running debug so it gets very long very rapidly.  I'll include it right
after startup at the bottom though.

At the moment, everything is going to server-c (worker3).  That has
persisted across several service stop and service start's, and a reboot.

OBTW, after poking around websites and list archives, I've tried the
worker.list being just loadbalancer and also having
loadbalancer,worker1,worker2,worker3,worker4 -- either way, same result
(although the first way produces a shorter mod_jk.log by far).

CONFIGURATION FILES:
---
/usr/local/www/conf/workers.properties:

# In Unix, we use forward slashes:
ps=/
worker.list=loadbalancer
#
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker1,worker2,worker3,worker4
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=0
#
worker.worker1.type=ajp13
worker.worker1.host=server-a.our.domain
worker.worker1.port=8009
worker.worker1.lbfactor=5
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
worker.worker1.local_worker=0
#
worker.worker2.type=ajp13
worker.worker2.host=server-b.our.domain
worker.worker2.port=8009
worker.worker2.lbfactor=5
worker.worker2.cachesize=10
worker.worker2.cache_timeout=600
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=300
worker.worker2.local_worker=0
#
worker.worker3.type=ajp13
worker.worker3.host=server-c.our.domain
worker.worker3.port=8009
worker.worker3.lbfactor=5
worker.worker3.cachesize=10
worker.worker3.cache_timeout=600
worker.worker3.socket_keepalive=1
worker.worker3.socket_timeout=300
worker.worker3.local_worker=0
#
worker.worker4.type=ajp13
worker.worker4.host=server-d.our.domain
worker.worker4.port=8009
worker.worker4.lbfactor=5
worker.worker4.cachesize=10
worker.worker4.cache_timeout=600
worker.worker4.socket_keepalive=1
worker.worker4.socket_timeout=300
worker.worker4.local_worker=0

---
And the decommented version of /usr/local/www/conf/httpd.conf:

ServerType standalone
ServerRoot /usr/local/www
PidFile /usr/local/www/logs/httpd.pid
ScoreBoardFile /usr/local/www/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 20
MaxSpareServers 50
StartServers 20
MaxClients 1024
MaxRequestsPerChild 0
LoadModule cosign_module  libexec/mod_cosign.so
LoadModule jk_module  libexec/mod_jk.so

Port 80
Listen 80
Listen 443
User nobody
Group nobody
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/www/htdocs
JkWorkersFile /usr/local/www/conf/workers.properties
JkLogFile /usr/local/www/logs/mod_jk.log
JkLogLeveldebug
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /usr/local/www/htdocs
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
IfModule mod_userdir.c
UserDir public_html
/IfModule
IfModule mod_dir.c
DirectoryIndex index.html
/IfModule
AccessFileName .htaccess
Files ~ ^\.ht
Order allow,deny
Deny from all
Satisfy All
/Files
UseCanonicalName On
IfModule mod_mime.c
TypesConfig /usr/local/www/conf/mime.types
/IfModule
DefaultType text/plain
IfModule mod_mime_magic.c
MIMEMagicFile /usr/local/www/conf/magic
/IfModule
HostnameLookups Off
ErrorLog /usr/local/www/logs/error_log
LogLevel warn
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combined
LogFormat %h %l %u %t \%r\ %s %b common
LogFormat %{Referer}i - %U referer
LogFormat %{User-agent}i agent
CustomLog /usr/local/www/logs/access_log common
ServerSignature On
IfModule mod_alias.c
Alias /icons/ /usr/local/www/icons/
Directory /usr/local/www/icons
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
Alias /manual/ /usr/local/www/htdocs/manual/
Directory /usr/local/www/htdocs/manual
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
ScriptAlias /cgi-bin/ /usr/local/www/cgi-bin/

Creating mod_jk.so from src for HP-UX

2003-06-20 Thread Insley, Simon (Contractor) (DSIO)
My goal is to have a working version of Apache 1.3.27 that invokes Tomcat
4.1.24 using mod_jk, so that the application's JSP files are invoked
correctly from the Apache server.  At this point, I have Apache installed
and working, Tomcat installed and working, independently, but not the
mod_jk.  I can't get a mod_jk.so file compiled from the source file,
jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz, provided on the Tomcat web
site.  

I have tried to read all available documentation on the installation of
mod_jk for Tomcat 4.1.24 and Apache 1.3.27 and earlier releases of both.  I
understand that mod_jk is now in the connectors download.  I am working on
HP-UX, so don't believe any of the binaries with work for me.  So I am
trying to build mod_jk.so from source.  I have searched  the information in
the mail archive, read the John Turner's Howto, and all of the howto's
provided by Apache and Jakarta projects.  The instructions don't apply
because the files aren't in the distribution that I can find. 

The instructions state that I should run configure.  However, there is no
configure.  Other information indicates that I should make buildconf.sh
executable and run it.  I have tried that.  I have libtools installed from
apr-0.9.3, but it can't find libtoolize in that.  I have put this path to
libtool on both the path and the classpath, still no luck.  I error on each
statement in the buildconf.sh script.  Exact error:

$ ./buildconf.sh
libtoolize --force --automake --copy
./buildconf.sh[4]: libtoolize:  not found.
aclocal
./buildconf.sh[8]: aclocal:  not found.
automake -a --foreign -i --copy
./buildconf.sh[10]: automake:  not found.
autoconf
./buildconf.sh[12]: autoconf:  not found.

Other instructions state that I should run ant on the entire connector
directory.  After correcting the file names on many files (java or
properties was cut off because of length), I was able to successfully run
ant.  However, this does not yield a mod_jk.so, nor does it yield a working
configure file anywhere in the jakarta-tomcat-connectors-4.1.24-src
directory.

Just so that you know I am not a complete idiot, I was able to follow the
instructions to create the mod_jk.so file using Tomcat 3.3.1a final.  Since
mod_jk is now separated and there is no configure file among the source,
those instructions and experience don't apply.  

What next?  What are working instructions for building the mod_jk.so library
on HP -UX that use the available software in the source bundle?

Simon


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



RE: mod_jk only loadbalancing to one machine

2003-06-20 Thread Michael Cardon
I had the same problem with load balancing using mod_jk2.  I found that
changing the lb_factor made a difference.  If I set the lb_factor in each of
my connector descriptors, all requests went to the last linux box that was
defined.

I have 3 instances to load balance, this is what I did for now:

Connector port -- 8009 on machine1 -- lb_factor=2
Connector port -- 8019 on machine1 -- lb_factor=2
Connector port -- 8009 on machine2 -- lb_factor=1

It doesn't give me the straight 'round robin', but it does mix it up at
least.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rick
Carter
Sent: Friday, June 20, 2003 11:09 AM
To: [EMAIL PROTECTED]
Cc: Jeff Cousineau
Subject: mod_jk only loadbalancing to one machine


Hi,

My problem in brief: one RedHat Linux box running apache with mod_jk
trying to do load balancing to four boxes behind it.  All requests only
get sent to one of the boxes.  The logs look good; if I remove that box
from the config., it will pick one of the other three and send all
requests there.  It sticks with whatever box it picks even after a service
stop and start.

I've looked all over the web and my load balancing configuration looks
just like everyone else's from all I can see.

Boxes are all running RedHat Linux Enterprise ES 2.1.  The four background
boxes are running tomcat4-4.1.24-full.2jpp .

Load-balancing box is running apache 1.3.27 (built with OpenSSL 0.9.7b and
CFLAGS=-DHARD_SERVER_LIMIT=1024), and mod_jk 4.1.24.

I have watched /usr/local/www/mod_jl.log, and all looks normal.  I have it
running debug so it gets very long very rapidly.  I'll include it right
after startup at the bottom though.

At the moment, everything is going to server-c (worker3).  That has
persisted across several service stop and service start's, and a reboot.

OBTW, after poking around websites and list archives, I've tried the
worker.list being just loadbalancer and also having
loadbalancer,worker1,worker2,worker3,worker4 -- either way, same result
(although the first way produces a shorter mod_jk.log by far).

CONFIGURATION FILES:
---
/usr/local/www/conf/workers.properties:

# In Unix, we use forward slashes:
ps=/
worker.list=loadbalancer
#
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker1,worker2,worker3,worker4
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=0
#
worker.worker1.type=ajp13
worker.worker1.host=server-a.our.domain
worker.worker1.port=8009
worker.worker1.lbfactor=5
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
worker.worker1.local_worker=0
#
worker.worker2.type=ajp13
worker.worker2.host=server-b.our.domain
worker.worker2.port=8009
worker.worker2.lbfactor=5
worker.worker2.cachesize=10
worker.worker2.cache_timeout=600
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=300
worker.worker2.local_worker=0
#
worker.worker3.type=ajp13
worker.worker3.host=server-c.our.domain
worker.worker3.port=8009
worker.worker3.lbfactor=5
worker.worker3.cachesize=10
worker.worker3.cache_timeout=600
worker.worker3.socket_keepalive=1
worker.worker3.socket_timeout=300
worker.worker3.local_worker=0
#
worker.worker4.type=ajp13
worker.worker4.host=server-d.our.domain
worker.worker4.port=8009
worker.worker4.lbfactor=5
worker.worker4.cachesize=10
worker.worker4.cache_timeout=600
worker.worker4.socket_keepalive=1
worker.worker4.socket_timeout=300
worker.worker4.local_worker=0

---
And the decommented version of /usr/local/www/conf/httpd.conf:

ServerType standalone
ServerRoot /usr/local/www
PidFile /usr/local/www/logs/httpd.pid
ScoreBoardFile /usr/local/www/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 20
MaxSpareServers 50
StartServers 20
MaxClients 1024
MaxRequestsPerChild 0
LoadModule cosign_module  libexec/mod_cosign.so
LoadModule jk_module  libexec/mod_jk.so

Port 80
Listen 80
Listen 443
User nobody
Group nobody
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/www/htdocs
JkWorkersFile /usr/local/www/conf/workers.properties
JkLogFile /usr/local/www/logs/mod_jk.log
JkLogLeveldebug
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /usr/local/www/htdocs
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
/Directory
IfModule mod_userdir.c
UserDir public_html
/IfModule
IfModule mod_dir.c
DirectoryIndex index.html
/IfModule
AccessFileName .htaccess
Files ~ ^\.ht
Order allow,deny
Deny from all
Satisfy All
/Files
UseCanonicalName On
IfModule mod_mime.c
TypesConfig /usr/local/www/conf/mime.types
/IfModule
DefaultType text/plain
IfModule mod_mime_magic.c
MIMEMagicFile /usr/local/www/conf/magic
/IfModule
HostnameLookups Off
ErrorLog /usr/local/www/logs/error_log
LogLevel 

RE: Creating mod_jk.so from src for HP-UX

2003-06-20 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
the official HP-UX apache 1.3.27 with mod_jk can be download from

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo
.pl?productNumber=B9415AA132702



While this come with tomcat 3.3 you can just rm it if you so choose

or
http://www.hp.com/products1/unix/webservers/apache/downloads/index.html

or you could just use the mod_jk with your current installation.

If you would still like to install from scratch you can find the files you
are missing at:
http://hpux.cs.utah.edu/, search on gnu or the file you are missing

the main software site is: http://www.software.hp.com/

Jeff

-Original Message-
From: Insley, Simon (Contractor) (DSIO) [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 12:25 PM
To: '[EMAIL PROTECTED]'
Subject: Creating mod_jk.so from src for HP-UX


My goal is to have a working version of Apache 1.3.27 that invokes Tomcat
4.1.24 using mod_jk, so that the application's JSP files are invoked
correctly from the Apache server.  At this point, I have Apache installed
and working, Tomcat installed and working, independently, but not the
mod_jk.  I can't get a mod_jk.so file compiled from the source file,
jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz, provided on the Tomcat web
site.  

I have tried to read all available documentation on the installation of
mod_jk for Tomcat 4.1.24 and Apache 1.3.27 and earlier releases of both.  I
understand that mod_jk is now in the connectors download.  I am working on
HP-UX, so don't believe any of the binaries with work for me.  So I am
trying to build mod_jk.so from source.  I have searched  the information in
the mail archive, read the John Turner's Howto, and all of the howto's
provided by Apache and Jakarta projects.  The instructions don't apply
because the files aren't in the distribution that I can find. 

The instructions state that I should run configure.  However, there is no
configure.  Other information indicates that I should make buildconf.sh
executable and run it.  I have tried that.  I have libtools installed from
apr-0.9.3, but it can't find libtoolize in that.  I have put this path to
libtool on both the path and the classpath, still no luck.  I error on each
statement in the buildconf.sh script.  Exact error:

$ ./buildconf.sh
libtoolize --force --automake --copy
./buildconf.sh[4]: libtoolize:  not found.
aclocal
./buildconf.sh[8]: aclocal:  not found.
automake -a --foreign -i --copy
./buildconf.sh[10]: automake:  not found.
autoconf
./buildconf.sh[12]: autoconf:  not found.

Other instructions state that I should run ant on the entire connector
directory.  After correcting the file names on many files (java or
properties was cut off because of length), I was able to successfully run
ant.  However, this does not yield a mod_jk.so, nor does it yield a working
configure file anywhere in the jakarta-tomcat-connectors-4.1.24-src
directory.

Just so that you know I am not a complete idiot, I was able to follow the
instructions to create the mod_jk.so file using Tomcat 3.3.1a final.  Since
mod_jk is now separated and there is no configure file among the source,
those instructions and experience don't apply.  

What next?  What are working instructions for building the mod_jk.so library
on HP -UX that use the available software in the source bundle?

Simon


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



basic logging question

2003-06-20 Thread a b
Hello every one,
I need to log messages using either tomcat logger or log4j. I have added
Logger className=org.apache.catalina.logger.FileLogger verbosity=1 
prefix=localhost_gnomon_log. suffix=.txt timestamp=true/ under the Context 
tag and System.out.println(msg); works and prints in the above named file, but i 
want to use 
the methods of org.apache.catalina.logger.FileLogger or log4j's Logger class so that i 
can turn logging on and off and can use various levels like debug,info,warn,errors 
etc. I tried to import org.apache.catalina.logger.FileLogger in java servlet, but it 
says class not found. I do have commons-logging under server-root/common/lib folder. 
Please guide me where am i going wrong? also if anyone who has log4j under tomcat, i 
would appreciate their guidance in setting log4j. i did create a example.cf file which 
created configuration information for log4j and placed it under WEB-INF/classes 
folder, but log4j does not picks the configuration. Any ideas would be welcomed.
Thanks
 


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

RE: basic logging question

2003-06-20 Thread Shapira, Yoav

Howdy,

the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
class so that i can turn logging on and off and can use various levels
like
debug,info,warn,errors etc. I tried to import
org.apache.catalina.logger.FileLogger in java servlet, but it says
class
not found. I do have commons-logging under server-root/common/lib
folder.
Please guide me where am i going wrong? also if anyone who has log4j
under

Don't use tomcat's internal Logger facilities, as they are
container-specific.  Instead, choose between using log4j by yourself or
using the commons-logging that's included with tomcat.

If you want to use commons-logging, in your servlet:

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

Declare a private static Log:
private static Log theLog;

Then in the init() method of your servlet, or in static initialization:
theLog = LogFactory.getLog(getClass());

Now you can use it.  For more details, read the commons-logging
documentation.

If you want to use log4j directly, the code is fairly similar to the
above, except you don't need a LogFactory, you just have
org.apache.log4j.Logger and its getLogger(...) call.

You will need to configure log4j (read its docs for how to do this) or
commons-logging (read its docs for how to do this) if you find tomcat's
default configuration insufficient (as you likely will).

Yoav Shapira



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


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



RE: basic logging question

2003-06-20 Thread Mike Curwen
Do you have the log4j.jar file anywhere?  It would be difficult to do
log4j logging with out it in Tomcat's common/lib
 
Here is a basic configuration file I use, placed under my webapp's
WEB-INF/classes:

#log4j.properties
log4j.rootCategory=DEBUG, filer, chainsaw

log4j.appender.filer=org.apache.log4j.FileAppender
log4j.appender.filer.File=c:/webapps/IDM/WEB-INF/logs/output.log
# Control the maximum log file size
# log4j.appender.filer.MaxFileSize=100KB
# Archive log files (one backup file here)
# log4j.appender.filer.MaxBackupIndex=1
log4j.appender.filer.layout=org.apache.log4j.PatternLayout
log4j.appender.filer.layout.ConversionPattern=%-5p [%t] %c.%M() - %m
(%rms)%n


log4j.appender.chainsaw=org.apache.log4j.net.SocketAppender
log4j.appender.chainsaw.RemoteHost=localhost
log4j.appender.chainsaw.Port=4445
log4j.appender.chainsaw.LocationInfo=true

#log4j.appender.dest1=org.apache.log4j.ConsoleAppender
#log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
#log4j.appender.dest1.layout.ConversionPattern=%-5p [%t] %c - %m (%rms)


 

Note the fully qualified path here:
c:/webapps/IDM/WEB-INF/logs/output.log
 
That should change for your file to an appropriate value, and I'm fairly
certain this file should exist already (seems to me I had to create this
file before log4j would write to it)
 
If anyone can show me how to set this as a 'runtime' property (ie: from
a servlet context, determine the 'real path' to the WEB-INF/logs
directory  AND set it in log4j programmaticaly) I'd be much obliged.



 -Original Message-
 From: a b [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 20, 2003 3:15 PM
 To: [EMAIL PROTECTED]
 Subject: basic logging question
 
 
 Hello every one,
 I need to log messages using either tomcat logger or log4j. I 
 have added Logger 
 className=org.apache.catalina.logger.FileLogger 
 verbosity=1 prefix=localhost_gnomon_log. suffix=.txt 
 timestamp=true/ under the Context tag and 
 System.out.println(msg); works and prints in the above 
 named file, but i want to use 
 the methods of org.apache.catalina.logger.FileLogger or 
 log4j's Logger class so that i can turn logging on and off 
 and can use various levels like debug,info,warn,errors etc. I 
 tried to import org.apache.catalina.logger.FileLogger in java 
 servlet, but it says class not found. I do have 
 commons-logging under server-root/common/lib folder. Please 
 guide me where am i going wrong? also if anyone who has log4j 
 under tomcat, i would appreciate their guidance in setting 
 log4j. i did create a example.cf file which created 
 configuration information for log4j and placed it under 
 WEB-INF/classes folder, but log4j does not picks the 
 configuration. Any ideas would be welcomed. Thanks
  
 
 
 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 


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



FTP server recommendation

2003-06-20 Thread Brian Menke
I know this isn't the most appropriate place to ask this, but I depend on
the insight of this group to find out about all kinds of technical stuff
that just happens to be part of an email. It's where I heard first about
things like Stuts, JSTL, etc. So here's the question.

I want to set up a free FTP server on my windows 2000 server. I've done a
google search and found one called War FTP. I was curious if anyone had any
experience with this, or could recommend a good one? I'm not a hard core
FTP'er but I do need to be able to provide different people access to
different directories.

-Brian

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:21 PM
To: Tomcat Users List
Subject: RE: basic logging question



Howdy,

the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
class so that i can turn logging on and off and can use various levels
like
debug,info,warn,errors etc. I tried to import
org.apache.catalina.logger.FileLogger in java servlet, but it says
class
not found. I do have commons-logging under server-root/common/lib
folder.
Please guide me where am i going wrong? also if anyone who has log4j
under

Don't use tomcat's internal Logger facilities, as they are
container-specific.  Instead, choose between using log4j by yourself or
using the commons-logging that's included with tomcat.

If you want to use commons-logging, in your servlet:

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

Declare a private static Log:
private static Log theLog;

Then in the init() method of your servlet, or in static initialization:
theLog = LogFactory.getLog(getClass());

Now you can use it.  For more details, read the commons-logging
documentation.

If you want to use log4j directly, the code is fairly similar to the
above, except you don't need a LogFactory, you just have
org.apache.log4j.Logger and its getLogger(...) call.

You will need to configure log4j (read its docs for how to do this) or
commons-logging (read its docs for how to do this) if you find tomcat's
default configuration insufficient (as you likely will).

Yoav Shapira



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


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


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



RE: FTP server recommendation

2003-06-20 Thread Jeremy Whitlock
Brian,
Windows 2000 Server has it's own FTP Server built in.  IIS does
it very easily.  I am all for Open Source but if you paid for it, which
you did, might as well use it.  HTH, Jeremy

-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2003 2:39 PM
To: Tomcat Users List
Subject: FTP server recommendation

I know this isn't the most appropriate place to ask this, but I depend
on
the insight of this group to find out about all kinds of technical stuff
that just happens to be part of an email. It's where I heard first about
things like Stuts, JSTL, etc. So here's the question.

I want to set up a free FTP server on my windows 2000 server. I've done
a
google search and found one called War FTP. I was curious if anyone had
any
experience with this, or could recommend a good one? I'm not a hard core
FTP'er but I do need to be able to provide different people access to
different directories.

-Brian

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:21 PM
To: Tomcat Users List
Subject: RE: basic logging question



Howdy,

the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
class so that i can turn logging on and off and can use various levels
like
debug,info,warn,errors etc. I tried to import
org.apache.catalina.logger.FileLogger in java servlet, but it says
class
not found. I do have commons-logging under server-root/common/lib
folder.
Please guide me where am i going wrong? also if anyone who has log4j
under

Don't use tomcat's internal Logger facilities, as they are
container-specific.  Instead, choose between using log4j by yourself or
using the commons-logging that's included with tomcat.

If you want to use commons-logging, in your servlet:

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

Declare a private static Log:
private static Log theLog;

Then in the init() method of your servlet, or in static initialization:
theLog = LogFactory.getLog(getClass());

Now you can use it.  For more details, read the commons-logging
documentation.

If you want to use log4j directly, the code is fairly similar to the
above, except you don't need a LogFactory, you just have
org.apache.log4j.Logger and its getLogger(...) call.

You will need to configure log4j (read its docs for how to do this) or
commons-logging (read its docs for how to do this) if you find tomcat's
default configuration insufficient (as you likely will).

Yoav Shapira



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


-
To unsubscribe, e-mail: [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: FTP server recommendation

2003-06-20 Thread Brian Menke
Thanks for the input Jeremy. I did pay for it, but it didn't seem intuitive
to me to set up users and directory access. Also, I thought that I had to
install IIS to use it, and I don't want to do that since I have Apache
running on it.

-Brian

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:38 PM
To: 'Tomcat Users List'
Subject: RE: FTP server recommendation


Brian,
Windows 2000 Server has it's own FTP Server built in.  IIS does
it very easily.  I am all for Open Source but if you paid for it, which
you did, might as well use it.  HTH, Jeremy

-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 2:39 PM
To: Tomcat Users List
Subject: FTP server recommendation

I know this isn't the most appropriate place to ask this, but I depend
on
the insight of this group to find out about all kinds of technical stuff
that just happens to be part of an email. It's where I heard first about
things like Stuts, JSTL, etc. So here's the question.

I want to set up a free FTP server on my windows 2000 server. I've done
a
google search and found one called War FTP. I was curious if anyone had
any
experience with this, or could recommend a good one? I'm not a hard core
FTP'er but I do need to be able to provide different people access to
different directories.

-Brian

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:21 PM
To: Tomcat Users List
Subject: RE: basic logging question



Howdy,

the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
class so that i can turn logging on and off and can use various levels
like
debug,info,warn,errors etc. I tried to import
org.apache.catalina.logger.FileLogger in java servlet, but it says
class
not found. I do have commons-logging under server-root/common/lib
folder.
Please guide me where am i going wrong? also if anyone who has log4j
under

Don't use tomcat's internal Logger facilities, as they are
container-specific.  Instead, choose between using log4j by yourself or
using the commons-logging that's included with tomcat.

If you want to use commons-logging, in your servlet:

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

Declare a private static Log:
private static Log theLog;

Then in the init() method of your servlet, or in static initialization:
theLog = LogFactory.getLog(getClass());

Now you can use it.  For more details, read the commons-logging
documentation.

If you want to use log4j directly, the code is fairly similar to the
above, except you don't need a LogFactory, you just have
org.apache.log4j.Logger and its getLogger(...) call.

You will need to configure log4j (read its docs for how to do this) or
commons-logging (read its docs for how to do this) if you find tomcat's
default configuration insufficient (as you likely will).

Yoav Shapira



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


-
To unsubscribe, e-mail: [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: FTP server recommendation

2003-06-20 Thread Jeremy Whitlock
Brian,
You do install IIS but if you have the Web Portion of IIS not
running (Disabled), no harm no foul.  I understand your use of Apach,
nothing better.  It's very easy to use for FTP from the IIS Suite
though.  Setting up users and directories is a snap.  I wouldn't advise
if I weren't doing it myself.  I use it SOLELY for FTP and it's a dream.
Well...it's not a dream as it reboots sporadically.  ;)  Later, Jeremy

-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 20, 2003 2:44 PM
To: Tomcat Users List
Subject: RE: FTP server recommendation

Thanks for the input Jeremy. I did pay for it, but it didn't seem
intuitive
to me to set up users and directory access. Also, I thought that I had
to
install IIS to use it, and I don't want to do that since I have Apache
running on it.

-Brian

-Original Message-
From: Jeremy Whitlock [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:38 PM
To: 'Tomcat Users List'
Subject: RE: FTP server recommendation


Brian,
Windows 2000 Server has it's own FTP Server built in.  IIS does
it very easily.  I am all for Open Source but if you paid for it, which
you did, might as well use it.  HTH, Jeremy

-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 2:39 PM
To: Tomcat Users List
Subject: FTP server recommendation

I know this isn't the most appropriate place to ask this, but I depend
on
the insight of this group to find out about all kinds of technical stuff
that just happens to be part of an email. It's where I heard first about
things like Stuts, JSTL, etc. So here's the question.

I want to set up a free FTP server on my windows 2000 server. I've done
a
google search and found one called War FTP. I was curious if anyone had
any
experience with this, or could recommend a good one? I'm not a hard core
FTP'er but I do need to be able to provide different people access to
different directories.

-Brian

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:21 PM
To: Tomcat Users List
Subject: RE: basic logging question



Howdy,

the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
class so that i can turn logging on and off and can use various levels
like
debug,info,warn,errors etc. I tried to import
org.apache.catalina.logger.FileLogger in java servlet, but it says
class
not found. I do have commons-logging under server-root/common/lib
folder.
Please guide me where am i going wrong? also if anyone who has log4j
under

Don't use tomcat's internal Logger facilities, as they are
container-specific.  Instead, choose between using log4j by yourself or
using the commons-logging that's included with tomcat.

If you want to use commons-logging, in your servlet:

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

Declare a private static Log:
private static Log theLog;

Then in the init() method of your servlet, or in static initialization:
theLog = LogFactory.getLog(getClass());

Now you can use it.  For more details, read the commons-logging
documentation.

If you want to use log4j directly, the code is fairly similar to the
above, except you don't need a LogFactory, you just have
org.apache.log4j.Logger and its getLogger(...) call.

You will need to configure log4j (read its docs for how to do this) or
commons-logging (read its docs for how to do this) if you find tomcat's
default configuration insufficient (as you likely will).

Yoav Shapira



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


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



RE: FTP server recommendation

2003-06-20 Thread Shapira, Yoav

Howdy,
I've used WarFTP and it's cool.  I wasn't using it for a
high-availability / high-capacity site, so I can't comment on how it
handles stress.

You could also try our brother project, Jakarta FtpServer:
http://incubator.apache.org/projects/ftpserver/

Using the Windows2000 one might sufficient for your needs as well: make
sure it's fully RFC765-compliant though, so that your clients don't
complain.

Finally, if someone is reading this and feels up to it: it should be
possible to write an FTP Connector for tomcat ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 4:39 PM
To: Tomcat Users List
Subject: FTP server recommendation

I know this isn't the most appropriate place to ask this, but I depend
on
the insight of this group to find out about all kinds of technical
stuff
that just happens to be part of an email. It's where I heard first
about
things like Stuts, JSTL, etc. So here's the question.

I want to set up a free FTP server on my windows 2000 server. I've done
a
google search and found one called War FTP. I was curious if anyone had
any
experience with this, or could recommend a good one? I'm not a hard
core
FTP'er but I do need to be able to provide different people access to
different directories.

-Brian

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 1:21 PM
To: Tomcat Users List
Subject: RE: basic logging question



Howdy,

the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
class so that i can turn logging on and off and can use various levels
like
debug,info,warn,errors etc. I tried to import
org.apache.catalina.logger.FileLogger in java servlet, but it says
class
not found. I do have commons-logging under server-root/common/lib
folder.
Please guide me where am i going wrong? also if anyone who has log4j
under

Don't use tomcat's internal Logger facilities, as they are
container-specific.  Instead, choose between using log4j by yourself or
using the commons-logging that's included with tomcat.

If you want to use commons-logging, in your servlet:

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

Declare a private static Log:
private static Log theLog;

Then in the init() method of your servlet, or in static initialization:
theLog = LogFactory.getLog(getClass());

Now you can use it.  For more details, read the commons-logging
documentation.

If you want to use log4j directly, the code is fairly similar to the
above, except you don't need a LogFactory, you just have
org.apache.log4j.Logger and its getLogger(...) call.

You will need to configure log4j (read its docs for how to do this) or
commons-logging (read its docs for how to do this) if you find tomcat's
default configuration insufficient (as you likely will).

Yoav Shapira



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


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


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



Re: mod_jk quirk?

2003-06-20 Thread Larry Isaacs
I believe you can add:

jkWorker=my worker name

to your Listener ... to specify the name.

I think Bill Barker's port of the classes involved
is recent enough that the Tomcat 3.3. attributes
(not the server.xml element itself) are valid in the
Tomcat 4 ApacheConfig Listener.  See the Tomcat 3.3
ApacheConfig attribute descriptions at:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#ApacheConfig

Ignore the rest of the Tomcat 3.3 ApacheConfig info.

Cheers,
Larry

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED] 
 Sent: Friday, June 20, 2003 11:23 AM
 To: Tomcat Users List
 Subject: SPAM: Re: mod_jk quirk?
 
 
 [Message inserted by SAS Postmaster: ISD is evaluating 
 gateway-level spam defenses. This message was judged by one 
 of the filters being evaluated to be spam. If this message is 
 in fact spam, ** there is no action you need to take **. 
 Should our evaluation conclude that this technique is 
 practical, you will be receiving fewer messages of this type 
 when our evaluation is complete.
 
 If, however, this message is one that is definitely not spam, 
 you may submit a false positive report by visiting 
 http://mdrweb.na.sas.com/publictools/falsepositive and 
 following the instructions found there.]
 
 
 Hi -
 
 AFAIK, Tomcat never reads workers.properties, only mod_jk reads 
 workers.properties.
 
 If you use the auto-generation, your worker will always be 
 named ajp13.  If 
 you need something else, you need to configure things manually.  The 
 ApacheConfig classes are a convenience, not a requirement, 
 and could easily 
 go away in the future (they're not even used for JK2 which is 
 where the 
 current dev efforts are).
 
 The complaints you are getting when you change or remove 
 workers.properties 
 are from Apache and mod_jk, not Tomcat.
 
 John
 
 On Fri, 20 Jun 2003 11:15:59 -0400, Dave Naden 
 [EMAIL PROTECTED] wrote:
 
  When I auto-generate the mod_jk directives, I'm finding 
 strange behavior: 
  Even if my workers.properties file contains the name of a 
 worker other 
  than ajp13, the JkMount commands that get generated always have the 
  worker name as ajp13.
  for example, if I put the following in my workers.properties:
 
  worker.list=testWorker1
  # settings for testWorker1
  worker.testWorker1.port=8009
  worker.testWorker1.host=localhost
  worker.testWorker1.type=ajp13
 
  I'll still get, in the auto file, lines like:
 
  JkMount /examples/jsp/security/protected/j_security_check  ajp13
  JkMount /examples/snoop  ajp13
  JkMount /examples/servlet/*  ajp13
  JkMount /examples/CompressionTest  ajp13
  JkMount /examples/*.jsp  ajp13
  JkMount /examples/servletToJsp  ajp13
 
  ...etc.
 
  even though I'm naming the worker 'testWorker1'
 
  I know Tomcat is reading the correct workers.properties 
 file, because 
  when I remove it, Tomcat complains.
 
  BTW, here's my location directive:
 
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=c:/Apache2/modules/mod_jk-2.0.42.dll  /
 
 
  Anybody know what's going on?
 
  -Dave Naden
 
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 Using M2, Opera's revolutionary e-mail client: 
 http://www.opera.com/m2/
 
 
 -
 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]



Sending xml string as input to servlet

2003-06-20 Thread Vijay Kandy
Hello,

When an xml string is passed as an input to a Servlet like:

http://server/context/servlet?xmlString=?xml version=1.0
encoding=UTF-8?testHello/test

I am not able to read with request.getParameter(xmlString). Looks like
Tomcat 4 doesn't like = in the parameter value. (Because it works with
Tomcat 3.2) Can anyone please suggest analternative?

Thank you,
Vijay

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



RE: Sending xml string as input to servlet

2003-06-20 Thread Shapira, Yoav

Howdy,
You are responsible for URL-encoding the query string.

Passing it on the query string is not that good an idea anyways because
of the limited length.  You're better off passing it as a request
parameter (still URL-encoded) in a POST request.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vijay Kandy [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 5:12 PM
To: 'Tomcat Users List'
Subject: Sending xml string as input to servlet

Hello,

When an xml string is passed as an input to a Servlet like:

http://server/context/servlet?xmlString=?xml version=1.0
encoding=UTF-8?testHello/test

I am not able to read with request.getParameter(xmlString). Looks
like
Tomcat 4 doesn't like = in the parameter value. (Because it works
with
Tomcat 3.2) Can anyone please suggest analternative?

Thank you,
Vijay

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




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


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



Re: tomcat-user Digest 20 Jun 2003 20:21:29 -0000 Issue 2964

2003-06-20 Thread Mike Heckler
Tim,
Thanks for the quick response.   That works perfectly.
(if you change the != to == in the canIgnoreRewrite routine.)
I figured filters were involved, but I couldn't quite figure it out.
Thanks,
Mike
Subject:
Re: Configuring session Id in URL
From:
Tim Funk [EMAIL PROTECTED]
Date:
Fri, 20 Jun 2003 12:41:30 -0400
To:
Tomcat Users List [EMAIL PROTECTED]
Ouch! But the answer is easy. Filters with HttpServletResponseWrapper. 
Here is a quick example:

public class NoRewriteFilter implements Filter {

public void init(FilterConfig filterConfig)
  throws ServletException {
;
}
public void doFilter(ServletRequest request,
 ServletResponse response,
 FilterChain chain)
  throws IOException,
 ServletException {
if (canIgnoreRewrite(request)) {
response = new 
HttpServletResponseWrapper((HttpServletResponse)response) {
public String encodeRedirectUrl(String url) {
return url;
}
public String encodeRedirectURL(String url) {
return url;
}
public String encodeUrl(String url) {
return url;
}
public String encodeURL(String url) {
return url;
}
}
chain.doFilter(request,response);
}

public void destroy() {
; // no-op
}
protected boolean canIgnoreRewrite(ServletRequest request) {
HttpServletRequest r = (HttpServletRequest)request;
String agent = r.getHeader(user-agent);
if (agent!=null)
return false;
agent = agent.toLowerCase();
return agent.indexOf(googlebot)-1;
}
}



-Tim

Mike Heckler wrote:

Is there a way to tell tomcat to NOT place the session ID in a url
(even when the client doesn't support cookies) based on IP or 
user-agent?

The problem I'm having is with search engines (especially google) not 
indexing
my entire site because the URLs have the jsessionid in them.  I'd 
like to support
browsers with cookies turned off, but at the same time not send the 
jsessionids
to certain clients.

I've looked around and can't seem to even the question anywhere, let 
alone the answer.

Thanks,
Mike Heckler
-
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: FTP server recommendation

2003-06-20 Thread Dov Rosenberg
I have used WAR FTP for the past few years. It is a very good server. It
allows you to assign a person to a specific directory based on their login
as opposed to MSFT that requires a different IP address for each specific
user. The other benefit is you don't need to pollute your windows domain
with unknown users, just put them in the WAR server. Much more secure.

Dov Rosenberg

P.s. Read the help file to learn about the author of the software, the dude
is pretty messed up, but he did write some good software!!



On 6/20/03 4:39 PM, Brian Menke [EMAIL PROTECTED] wrote:

 I know this isn't the most appropriate place to ask this, but I depend on
 the insight of this group to find out about all kinds of technical stuff
 that just happens to be part of an email. It's where I heard first about
 things like Stuts, JSTL, etc. So here's the question.
 
 I want to set up a free FTP server on my windows 2000 server. I've done a
 google search and found one called War FTP. I was curious if anyone had any
 experience with this, or could recommend a good one? I'm not a hard core
 FTP'er but I do need to be able to provide different people access to
 different directories.
 
 -Brian
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 1:21 PM
 To: Tomcat Users List
 Subject: RE: basic logging question
 
 
 
 Howdy,
 
 the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
 class so that i can turn logging on and off and can use various levels
 like
 debug,info,warn,errors etc. I tried to import
 org.apache.catalina.logger.FileLogger in java servlet, but it says
 class
 not found. I do have commons-logging under server-root/common/lib
 folder.
 Please guide me where am i going wrong? also if anyone who has log4j
 under
 
 Don't use tomcat's internal Logger facilities, as they are
 container-specific.  Instead, choose between using log4j by yourself or
 using the commons-logging that's included with tomcat.
 
 If you want to use commons-logging, in your servlet:
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
 Declare a private static Log:
 private static Log theLog;
 
 Then in the init() method of your servlet, or in static initialization:
 theLog = LogFactory.getLog(getClass());
 
 Now you can use it.  For more details, read the commons-logging
 documentation.
 
 If you want to use log4j directly, the code is fairly similar to the
 above, except you don't need a LogFactory, you just have
 org.apache.log4j.Logger and its getLogger(...) call.
 
 You will need to configure log4j (read its docs for how to do this) or
 commons-logging (read its docs for how to do this) if you find tomcat's
 default configuration insufficient (as you likely will).
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential, proprietary
 and/or privileged.  This e-mail is intended only for the individual(s) to
 whom it is addressed, and may not be saved, copied, printed, disclosed or
 used by anyone else.  If you are not the(an) intended recipient, please
 immediately delete this e-mail from your computer system and notify the
 sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [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: FTP server recommendation

2003-06-20 Thread electroteque
didnt u just hijack a thread ? norty norty

On 6/20/03 4:39 PM, Brian Menke [EMAIL PROTECTED] wrote:

 I know this isn't the most appropriate place to ask this, but I depend on
 the insight of this group to find out about all kinds of technical stuff
 that just happens to be part of an email. It's where I heard first about
 things like Stuts, JSTL, etc. So here's the question.

 I want to set up a free FTP server on my windows 2000 server. I've done a
 google search and found one called War FTP. I was curious if anyone had
any
 experience with this, or could recommend a good one? I'm not a hard core
 FTP'er but I do need to be able to provide different people access to
 different directories.

 -Brian

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 1:21 PM
 To: Tomcat Users List
 Subject: RE: basic logging question



 Howdy,

 the methods of org.apache.catalina.logger.FileLogger or log4j's Logger
 class so that i can turn logging on and off and can use various levels
 like
 debug,info,warn,errors etc. I tried to import
 org.apache.catalina.logger.FileLogger in java servlet, but it says
 class
 not found. I do have commons-logging under server-root/common/lib
 folder.
 Please guide me where am i going wrong? also if anyone who has log4j
 under

 Don't use tomcat's internal Logger facilities, as they are
 container-specific.  Instead, choose between using log4j by yourself or
 using the commons-logging that's included with tomcat.

 If you want to use commons-logging, in your servlet:

 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;

 Declare a private static Log:
 private static Log theLog;

 Then in the init() method of your servlet, or in static initialization:
 theLog = LogFactory.getLog(getClass());

 Now you can use it.  For more details, read the commons-logging
 documentation.

 If you want to use log4j directly, the code is fairly similar to the
 above, except you don't need a LogFactory, you just have
 org.apache.log4j.Logger and its getLogger(...) call.

 You will need to configure log4j (read its docs for how to do this) or
 commons-logging (read its docs for how to do this) if you find tomcat's
 default configuration insufficient (as you likely will).

 Yoav Shapira



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


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



please help on load balancer

2003-06-20 Thread Jay Lee
I am using win2k, Tomcat 4.0.x and IIS thru isapi.
What I am trying to do is to create two seperate containers with same
application on each of them.
How can I set it up? so it will do round robin by itself.
For example, if user types: http://localhost/examples/servlet/hello, it will
go to either  http://localhost/example1/servlet/hello or
http://localhost/example2/servlet/hello. As you know, example1 and example 2
arre two containers.
Any comments?
thanks,

jay


How do I run two tomcat on one NT

2003-06-20 Thread Jay Lee
I am using win 2k, IIS and tomcat 4.0.x.
I wonder, could I run two tomcat thru services (i.e. thru registery values)?
Mostly import, how could I deal with isapi redirect.dll?  I would like to
use AJPConnector for both tomcat.  
I would not like to use HTTPConnector ( I already know how to set
HttpConnector up).
Thanks in advance,

jay


How to serialize an object which is put in the session ?

2003-06-20 Thread Antony paul
I have a class which implements the HttpSessionBindingListener interface. I 
want to serialize this object and all sessions when the context is reloaded. 
It is essential because three deveopers are using the same server and if ine 
user compiles a servlet all users get a nullpointer exception. I am using 
Tomcat 4.1.18. The class implements the Serializable interface. But it is 
throwing Nullpointer exception after reload. How to know that the object and 
session is saved when the context is reloaded. I tried changing the 
debugging levels of Engine element and Context element. Still Tomcat is not 
giving any debug information about what it is oing when the context is 
reloaded. The 4.0.3 version gves better logs.

Antony

_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


Re: mod_jk only loadbalancing to one machine

2003-06-20 Thread Bill Barker
AFAIK, load balancing only works well with Apache-2 using the 'worker' MPM.
With the 'pre-fork' MPM (which includes Apache-1.3.x on *nix systems), each
child has it's own view of the current lb state, so they still tend to
bunch.

The 'pre-fork' problem probably won't be fixed in mod_jk.  Hopefully, it
will get addressed in mod_jk2 (since it has the tools to do it already, all
that is missing is the code :).

Rick Carter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 My problem in brief: one RedHat Linux box running apache with mod_jk
 trying to do load balancing to four boxes behind it.  All requests only
 get sent to one of the boxes.  The logs look good; if I remove that box
 from the config., it will pick one of the other three and send all
 requests there.  It sticks with whatever box it picks even after a service
 stop and start.

 I've looked all over the web and my load balancing configuration looks
 just like everyone else's from all I can see.

 Boxes are all running RedHat Linux Enterprise ES 2.1.  The four background
 boxes are running tomcat4-4.1.24-full.2jpp .

 Load-balancing box is running apache 1.3.27 (built with OpenSSL 0.9.7b and
 CFLAGS=-DHARD_SERVER_LIMIT=1024), and mod_jk 4.1.24.

 I have watched /usr/local/www/mod_jl.log, and all looks normal.  I have it
 running debug so it gets very long very rapidly.  I'll include it right
 after startup at the bottom though.

 At the moment, everything is going to server-c (worker3).  That has
 persisted across several service stop and service start's, and a reboot.

 OBTW, after poking around websites and list archives, I've tried the
 worker.list being just loadbalancer and also having
 loadbalancer,worker1,worker2,worker3,worker4 -- either way, same result
 (although the first way produces a shorter mod_jk.log by far).

 CONFIGURATION FILES:
 ---
 /usr/local/www/conf/workers.properties:

 # In Unix, we use forward slashes:
 ps=/
 worker.list=loadbalancer
 #
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=worker1,worker2,worker3,worker4
 worker.loadbalancer.sticky_session=1
 worker.loadbalancer.local_worker_only=0
 #
 worker.worker1.type=ajp13
 worker.worker1.host=server-a.our.domain
 worker.worker1.port=8009
 worker.worker1.lbfactor=5
 worker.worker1.cachesize=10
 worker.worker1.cache_timeout=600
 worker.worker1.socket_keepalive=1
 worker.worker1.socket_timeout=300
 worker.worker1.local_worker=0
 #
 worker.worker2.type=ajp13
 worker.worker2.host=server-b.our.domain
 worker.worker2.port=8009
 worker.worker2.lbfactor=5
 worker.worker2.cachesize=10
 worker.worker2.cache_timeout=600
 worker.worker2.socket_keepalive=1
 worker.worker2.socket_timeout=300
 worker.worker2.local_worker=0
 #
 worker.worker3.type=ajp13
 worker.worker3.host=server-c.our.domain
 worker.worker3.port=8009
 worker.worker3.lbfactor=5
 worker.worker3.cachesize=10
 worker.worker3.cache_timeout=600
 worker.worker3.socket_keepalive=1
 worker.worker3.socket_timeout=300
 worker.worker3.local_worker=0
 #
 worker.worker4.type=ajp13
 worker.worker4.host=server-d.our.domain
 worker.worker4.port=8009
 worker.worker4.lbfactor=5
 worker.worker4.cachesize=10
 worker.worker4.cache_timeout=600
 worker.worker4.socket_keepalive=1
 worker.worker4.socket_timeout=300
 worker.worker4.local_worker=0

 ---
 And the decommented version of /usr/local/www/conf/httpd.conf:

 ServerType standalone
 ServerRoot /usr/local/www
 PidFile /usr/local/www/logs/httpd.pid
 ScoreBoardFile /usr/local/www/logs/httpd.scoreboard
 Timeout 300
 KeepAlive On
 MaxKeepAliveRequests 100
 KeepAliveTimeout 15
 MinSpareServers 20
 MaxSpareServers 50
 StartServers 20
 MaxClients 1024
 MaxRequestsPerChild 0
 LoadModule cosign_module  libexec/mod_cosign.so
 LoadModule jk_module  libexec/mod_jk.so

 Port 80
 Listen 80
 Listen 443
 User nobody
 Group nobody
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/www/htdocs
 JkWorkersFile /usr/local/www/conf/workers.properties
 JkLogFile /usr/local/www/logs/mod_jk.log
 JkLogLeveldebug
 Directory /
 Options FollowSymLinks
 AllowOverride None
 /Directory
 Directory /usr/local/www/htdocs
 Options Indexes FollowSymLinks MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 /Directory
 IfModule mod_userdir.c
 UserDir public_html
 /IfModule
 IfModule mod_dir.c
 DirectoryIndex index.html
 /IfModule
 AccessFileName .htaccess
 Files ~ ^\.ht
 Order allow,deny
 Deny from all
 Satisfy All
 /Files
 UseCanonicalName On
 IfModule mod_mime.c
 TypesConfig /usr/local/www/conf/mime.types
 /IfModule
 DefaultType text/plain
 IfModule mod_mime_magic.c
 MIMEMagicFile /usr/local/www/conf/magic
 /IfModule
 HostnameLookups Off
 ErrorLog /usr/local/www/logs/error_log
 LogLevel warn
 LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
combined
 LogFormat %h %l %u %t \%r\ %s %b common
 LogFormat %{Referer}i - 

custom error pages?

2003-06-20 Thread seera naveen
Hi,
 
I am using FORM based authentication and JNDIRealm.  Is it possible to have custom 
error pages in Tomcat?  Apart from Invalid username and password, I want to check for 
another attribute and if that attribute is not set, I want to throw another message.
 
Thanks
Naveen

SMS using the Yahoo! Messenger;Download latest version.

Re: mod_jk quirk?

2003-06-20 Thread Bill Barker
Larry is correct.  The worker is configurable.  The Jk docs are a mess to
navigate at the moment, but the 4.1.x link is:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach
eConfig.


Larry Isaacs [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I believe you can add:

jkWorker=my worker name

to your Listener ... to specify the name.

I think Bill Barker's port of the classes involved
is recent enough that the Tomcat 3.3. attributes
(not the server.xml element itself) are valid in the
Tomcat 4 ApacheConfig Listener.  See the Tomcat 3.3
ApacheConfig attribute descriptions at:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#ApacheConfig


Ignore the rest of the Tomcat 3.3 ApacheConfig info.

Cheers,
Larry

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 20, 2003 11:23 AM
 To: Tomcat Users List
 Subject: SPAM: Re: mod_jk quirk?


 [Message inserted by SAS Postmaster: ISD is evaluating
 gateway-level spam defenses. This message was judged by one
 of the filters being evaluated to be spam. If this message is
 in fact spam, ** there is no action you need to take **.
 Should our evaluation conclude that this technique is
 practical, you will be receiving fewer messages of this type
 when our evaluation is complete.

 If, however, this message is one that is definitely not spam,
 you may submit a false positive report by visiting
 http://mdrweb.na.sas.com/publictools/falsepositive and
 following the instructions found there.]


 Hi -

 AFAIK, Tomcat never reads workers.properties, only mod_jk reads
 workers.properties.

 If you use the auto-generation, your worker will always be
 named ajp13.  If
 you need something else, you need to configure things manually.  The
 ApacheConfig classes are a convenience, not a requirement,
 and could easily
 go away in the future (they're not even used for JK2 which is
 where the
 current dev efforts are).

 The complaints you are getting when you change or remove
 workers.properties
 are from Apache and mod_jk, not Tomcat.

 John

 On Fri, 20 Jun 2003 11:15:59 -0400, Dave Naden
 [EMAIL PROTECTED] wrote:

  When I auto-generate the mod_jk directives, I'm finding
 strange behavior:
  Even if my workers.properties file contains the name of a
 worker other
  than ajp13, the JkMount commands that get generated always have the
  worker name as ajp13.
  for example, if I put the following in my workers.properties:
 
  worker.list=testWorker1
  # settings for testWorker1
  worker.testWorker1.port=8009
  worker.testWorker1.host=localhost
  worker.testWorker1.type=ajp13
 
  I'll still get, in the auto file, lines like:
 
  JkMount /examples/jsp/security/protected/j_security_check  ajp13
  JkMount /examples/snoop  ajp13
  JkMount /examples/servlet/*  ajp13
  JkMount /examples/CompressionTest  ajp13
  JkMount /examples/*.jsp  ajp13
  JkMount /examples/servletToJsp  ajp13
 
  ...etc.
 
  even though I'm naming the worker 'testWorker1'
 
  I know Tomcat is reading the correct workers.properties
 file, because
  when I remove it, Tomcat complains.
 
  BTW, here's my location directive:
 
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=c:/Apache2/modules/mod_jk-2.0.42.dll  /
 
 
  Anybody know what's going on?
 
  -Dave Naden
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Using M2, Opera's revolutionary e-mail client:
 http://www.opera.com/m2/


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