Mysql connection error

2001-09-13 Thread agd

Hello,

I am new for this list. Posting query for mysql database connectivity within ROOT 
context.  When I place any servelt under /ROOT/WEB-INF/classes/ it gives me error as 
(For this I use url as http://www.myhost.com/servlet/ServletName )

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver 

But when I placed it within any context like /www/WEB-INF/classes/ it works fine. For 
this I use url as http://www.myhost.com/www/servlet/ServletName
which gives output as 

org.gjt.mm.mysql.jdbc2.Connection@2a5330 

Anand. 



  VandeMataram.com 2001-2002.




Client Authentication in Tomcat

2001-09-13 Thread Ricardo

Hi all and thanks in advance (and sorry, my english is quiet bad :( ...

Well, my problem is that i generate a server certificate and a key with =
openssl.
Later i import this certificate and key in a keystore (usign keytool and =
a java program called ImportKey).
I configure tomcat for SSL and client authentication to yes.
My problem is how can i store the CA public key (for validating client =
certificate) in the keystore to make it work ...

Please it's quiet important, HELP ME !!

Thanks,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I




Re: Client Authentication in Tomcat

2001-09-13 Thread Pae Choi

Ricardo,

Get the JSSE(or similar one) and it comes with a couple of samples if I remember
correctly. Also, spend some time to J2 Core Security package as well as Java
Security Forums at sun site and comp.lang.jave.security. You should have a plenty
of samples and sufficient stuff to start with. Nothing to it. And welcome to the
security world.


Pae



 Hi all and thanks in advance (and sorry, my english is quiet bad :( ...
 
 Well, my problem is that i generate a server certificate and a key with =
 openssl.
 Later i import this certificate and key in a keystore (usign keytool and =
 a java program called ImportKey).
 I configure tomcat for SSL and client authentication to yes.
 My problem is how can i store the CA public key (for validating client =
 certificate) in the keystore to make it work ...
 
 Please it's quiet important, HELP ME !!
 
 Thanks,
 
 Ricardo Borillo Domenech
 Programació - Servei d'Informàtica
 Universitat Jaume I
 



ApacheModuleJServ.dll is gone?

2001-09-13 Thread Elm Gysel

Hello,

Where did ApacheModuleJServ.dll go? I can't seem to find it. Is this being
replaced or something? If so, does there anything need to change on the
installation configuration?

Thanks!

Elm




request logging in Tomcat?

2001-09-13 Thread michael . brohl


Hi all,

how can I set up Tomcat (standalone) for logging the incoming requests
including request path,
data/time and - very important - the IP and/or domain of the requester?

I enabled all logging (Tomcat, Servlet, JSP and Context Manager) but I
didn't get the IP from the
requesting client. Any ideas?

Regards

Michael Brohl







-g option in jsp-javac

2001-09-13 Thread Sankar Kondur


Hi,

I want the jsp compiler to use -g option when it compiles. in 3.1 I
hardcoded the option in SunJavaCompiler.java

Is there a way to set this option from web.xml. 


thanks,
SK



RE: help-context not loaded with jakarta-tomcat-3.3-b2.

2001-09-13 Thread Larry Isaacs

Hi Saurabh,

See comments below.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 12, 2001 2:16 AM
 To: Tomcat-User@Jakarta. Apache. Org
 Subject: help-context not loaded with jakarta-tomcat-3.3-b2.
 
 
 
 1) Windows98.
 2) jakarta-tomcat-3.3-b2(installed in E:)
 
 I have got my webapp in D:\ua.
 
 I added apps-ua.xml in TOMCAT_HOME/conf/ While starting 
 tomcat it finds the
 apps-ua.xml file but when i go to localhost/ua i get a FILE 
 NOT FOUND ERROR.
 
 When the tomcat is started i also do not see any context /ua to be
 loaded.(please see the log message below). Which is strange.

If a context for /ua isn't displayed, then http://localhost:8080/us/;
isn't going to find anything.  I would guess that something
isn't quite right in apps-ua.xml or the directory pointed to by
the context's docBase property doesn't look like a webapp, so it
isn't added.  If you could post the contents of the apps-ua.xml,
it would help.

 
 Any clues ??
 
 1) When i tried to change apps-127.0.0.1.xml to set my Doc Base as
 d:\ua\htdocs, tomcat threw a lot of errors while starting up.

This suggests that d:\ua\htdocs isn't configured correctly to be
a web application. Is there a WEB-INF\web.xml under htdocs?

 
 2)I want all the requests sent to http://localhost:8080/ to go to
 d:\ua\htdocs, can any one tell me how to go about it with
 jakarta-tomcat-3.3-b2. (changing server.xml and adding 
 context in it was
 also of no help).

This is a little confusing, http://localhost:8080/; gets you to
the Tomcat web server.  Which context a request goes to depends
on what comes after the 8080/.  To have all request go to
a single context, you what have to have only a root context
being served.  If any other contexts were available, they
could steal requests from the root context.

Larry

 
 
 Regards,
 Saurabh
 
 
 2001-09-12 11:33:53 - ContextXmlReader: Context
 config=$TOMCAT_HOME\conf\apps-12
 7.0.0.1.xml
 2001-09-12 11:33:53 - ContextXmlReader: Context
 config=$TOMCAT_HOME\conf\apps-ex
 amples.xml
 2001-09-12 11:33:54 - ContextXmlReader: Context
 config=$TOMCAT_HOME\conf\apps-ad
 min.xml
 2001-09-12 11:33:54 - ContextXmlReader: Context
 config=$TOMCAT_HOME\conf\apps-ua
 .xml
 2001-09-12 11:33:54 - AutoWebApp: Loaded from config: DEFAULT:/admin
 2001-09-12 11:33:54 - AutoWebApp: Loaded from config: 
 DEFAULT:/examples
 2001-09-12 11:33:54 - AutoWebApp: Auto-Adding DEFAULT:/
 2001-09-12 11:33:54 - ContextManager: Tomcat configured and 
 in stable state
 2001-09-12 11:33:54 - ContextManager: Adding  DEFAULT:/examples
 2001-09-12 11:33:54 - ContextManager: Adding  DEFAULT:/admin
 2001-09-12 11:33:54 - ContextManager: Adding  DEFAULT:/ROOT
 EmbededTomcat: Init time 2360
 2001-09-12 11:33:54 - Http10Interceptor: Starting on 8080
 2001-09-12 11:33:54 - Ajp12Interceptor: Starting on 8007
 2001-09-12 11:33:54 - Ajp13Interceptor: Starting on 8009
 EmbededTomcat: Startup time 220
 2001-09-12 11:39:25 - Ctx() : Status code:404 request:R(  + 
 /ua/ + null)
 msg:null
 



web.xml and servlet mapping problem.

2001-09-13 Thread Paul Downs

IMPORTANT! This message has been blind-carbon-copied to you.
Do not reply-to-all or forward it without the author's permission.

Hi,
  This is probably me being extremely stupid but I have the following xml 
file (for a test).

?xml version=1.0 encoding=ISO-8859-1?

web-app
   display-nameSimple test/display-name
   servlet
 servlet-nameHi/servlet-name
 servlet-classHello/servlet-class
   /servlet
   servlet-mapping
 servlet-nameHi/servlet-name
 url-pattern/Damn/*/url-pattern
   /servlet-mapping
/web-app

  I would have thought that this would allow:
  http://url/Damn/*
  To display the hello world servlet.  The url:
  http://url/servlet/Hi
  Works but the servlet mapping doesn't.  Am I being stupid?  And if so 
what is the solution?

Paul



worker never responding

2001-09-13 Thread Carlos Guardiola

Hi everyone

We've got Apache 1.3.20 with Tomcat 3.2.3. Our web server is
running in port 8082. We are able to start both services,
and use properly the services for a while, but, without any
error the jsp pages are no longer working.

This is what we get in jk.log:
***

[jk_uri_worker_map.c (345)]: Into
jk_uri_worker_map_t::map_uri_to_worker

[jk_uri_worker_map.c (435)]:
jk_uri_worker_map_t::map_uri_to_worker,
done without a match
[jk_uri_worker_map.c (345)]: Into
jk_uri_worker_map_t::map_uri_to_worker

[jk_uri_worker_map.c (435)]:
jk_uri_worker_map_t::map_uri_to_worker,
done without a match
[jk_uri_worker_map.c (345)]: Into
jk_uri_worker_map_t::map_uri_to_worker

[jk_uri_worker_map.c (435)]:
jk_uri_worker_map_t::map_uri_to_worker,
done without a match
[jk_uri_worker_map.c (345)]: Into
jk_uri_worker_map_t::map_uri_to_worker

[jk_uri_worker_map.c (407)]:
jk_uri_worker_map_t::map_uri_to_worker,
Found a match ajp13
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a
worker
[jk_ajp13_worker.c (654)]: Into jk_worker_t::get_endpoint
[jk_ajp13_worker.c (539)]: Into jk_endpoint_t::service
[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket
= 8
[jk_connect.c (124)]: jk_open_socket, after connect ret = 0
[jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
[jk_connect.c (140)]: jk_open_socket, return, sd = 8
[jk_ajp13_worker.c (167)]: In
jk_endpoint_t::connect_to_tomcat,
connected sd = 8
***

Then, everytime we request a new page, then we get the next
log:
*
[jk_uri_worker_map.c (407)]:
jk_uri_worker_map_t::map_uri_to_worker,
Found a match ajp13
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp13
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a
worker
[jk_ajp13_worker.c (654)]: Into jk_worker_t::get_endpoint
[jk_ajp13_worker.c (539)]: Into jk_endpoint_t::service
[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
 a match ajp13_map.c (407)]:
jk_uri_worker_map_t::map_uri_to_worker,
Found

*

We haven´t found anything wrong in our configuration files,
please, could anyone of you help us?
Thank you,
Carlos

--

Carlos L. Guardiola Ortuño
Departamento de Desarrollo
SATEC, S.A.
Avda. Europa, 34 A
28023 MADRID

e-mail:[EMAIL PROTECTED]
http://www.satec.es
Tfno. : +34 91 7089000
Fax.  : +34 91 7089090





Help with Tomcat and its path

2001-09-13 Thread Surya Jakhotia

Hi guys,
 I am using Tomcat as a servlet container with Apache SSL as the
webserver. I have my servlets in the TOMCAT_HOME\webapps path and one of
these servlets need these DLL's and also need to read this text file. Now my 
question is where does tomcat actually look for these files in. What if I 
want it to look into a specific path. I had tough time with this and finally 
I just copied these DLLs everywhere under tomcat (and I guess it worked when 
I put them under bin) but for soem reason thats not the case with the text 
file which I want it to read. It just keeps saying in the console window for 
tomcat that it couldn't find the specified text file. Please help me with 
this. I appreciate all ur guys help. Thanks in advance.

bye,
Surya


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




NULL ERROR in SSL

2001-09-13 Thread T.L.TEO

Hi I am reposting this error and I really hope someone can enlighten me on
this.

I install a SSL cert from Verisgn, and was able to see the cert in the
browser when I look for index page.

https://mycom.com/index.html


But when I try using HttpsURLConnection,  I am getting
SSL_NULL_WITH_NULL_NULL

when I use getCipherSuite().  I am suppose to get SSL_RSA_WITH_RC4_128_MD5
as seen in the browser properties.

What cud be the problem.  Pls help as I have been searching for an answer
for 2 weeks.

Thanks in advance to anyone helpful soul . Cheers


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Tomcat3.2.3 and Apache Integration

2001-09-13 Thread Nagesh Prakashrao Deshpande


hi matt  ,
use Mod_jk.dll to coneect Tomcat and Apache .
u will get this file from 
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/win32/i386/
( for tomcat3.2.3 and windows os. try after/bin/for other os )
then copy this file in Apache_home\modules.
when u restart tomcat , each time there will be Mod_jk.conf-auto autogenerated file.
include this file in httpd.conf in Apache_home\conf as given below 

#!-- start edit as per setting.doc by Nagesh on 28-08-2001*/ **$$** 
# Load mod_jk
#
LoadModulejk_module  D:\apache\modules\mod_jk.dll
AddModule mod_jk.c
# Configure mod_jk
#
JkWorkersFile  D:\jakarta-tomcat-3.2.3\conf\workers.properties
JkLogFile D:\jakarta-tomcat-3.2.3\logs\mod_jk.log
JkLogLevelwarn
include  D:\jakarta-tomcat-3.2.3\conf\mod_jk.conf-auto
#!-- end edit as per setting.doc by Nagesh on 28-08-2001 **$$** 
where D:\apache is Apache_home and D:\jakarta-tomcat-3.2.3 is tomcat_home.

try it out .
Also check ur tomcat_home\conf\workers.properties file for Tomcat_home and JDK_home 
having the correct values or not .
All the best .
cheers
nagesh



 






RE: Multiple Tomcat workers (using mod_jk)

2001-09-13 Thread GOMEZ Henri

I've got a couple of quick newbie questions:
Environment: Apache 1.3.20 on Solaris 8; Tomcat 3.2 (using 
mod_jk); Apache
and Tomcat running on the same box.

If I configure and run multiple Tomcat workers on the same machine
(listening on different ports of course), and let's say they 
are all using
ajp13 connector, do all those workers run in the SAME of DIFFERENT VM ?

What do you mean by 'run multiple Tomcat workers' ?

If you launch multiple instance of tomcat, each will run
on it's own JVM.

The reason I ask is that I've got a thread-unsafe servle that I want to
deploy implementing SingleThreadModel across multiple 
concurrent instances
of Tomcat, allowing concurrent requests to be processes. As 
the request gets
into Apache, using mod_rewrite I want to direct it to one of 
the several
Tomcat workers.

If you're using mod_rewrite, you didn't have to use mod_jk.
Just redirect to the tomcat and it's native http protocol.

IMHO, having a thread-unsafe servlet and SingleThreadModel,
and playing with many JVM will be a nigthmare for you in
production. Better try to fix the servlet...

There is so many mecanism in java to avoid concurrency



nsapi_redirector

2001-09-13 Thread Avi Karmon

Hi.

How to get the nsapi_redirector for Solaris ?

Thank you.

Avi Karmon



HELP: Lotus Domino Tomcat

2001-09-13 Thread Lars Nielsen Lind

Hi.

Anyone who have experience in setting up the Tomcat engine with Lotus Domino?

Comments and links to web-pages wanted.

Thanks.

/Lars Nielsen Lind




New xml parser on startup in Tomcat ?

2001-09-13 Thread Franck Routier

Hi,

I'm still fighting with the same problem :

Tomcat, just out of the box, won't start and gives me a OutOfMemoryError on 
startup, then dies.
Apparently, it does this while reading it's conf file.
The problem occurs with versions 3.3-b2 and  4.0-rc1.

The interresting point is that version 3.2.3, bundled with jboss 2.4.0 WORKS,
but the same version (3.2.3) bundled with jboss 2.4.1 doesn't (same error).

I read this in jboss forum, on another subject, but I thing it might be 
related :

The problem is that in Tomcat 3.x you have to put your parsers in the 
classpath before everything else becouse they are no relying on system 
properties to decide which parser to use. There is an explanation on how to 
to this is tomcat´s archives. In Tomcat 4.x the parser loaded by Tomcat for 
it´s own use does not conflict on the parser used by applications. The 
problem is solved in last version of JBOSS by using system properties to 
define which parser to use. I´ll look for the archives and post them later 

Sadly I'm not skilled enough to tell if this is really related...

Any idea why Tomcat won't start on my machine, except when launched with 
jboss 2.4.0...

I use jdk 1.3-ppc from Blackdown on Debian Gnu-Linux-ppc.

Thanks,

Franck




Tomcat - Running as non root and thread limiting.

2001-09-13 Thread Paul Downs

IMPORTANT! This message has been blind-carbon-copied to you.
Do not reply-to-all or forward it without the author's permission.

Hi,
  Anther two questions (should be the last 2 and then maybe I can help 
people).  Is there any way in configuration to run tomcat as a non root 
user, or is the only way to su to the user and then run tomcat?  We have a 
process killer that won't kill tasks with a main root thread, i.e. how 
apache runs.
  Secondly I have the following in server.xml

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter
name=handler
 
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
Parameter
name=port
value=8009/
Parameter
name=max_threads
value=100/
Parameter
name=max_spare_threads
value=20/
Parameter
name=min_spare_threads
value=10/
/Connector

   Which seems to be ok, and much more limited entries for apj12.  However 
when I start tomcat there are still well over 200 threads running and 
normally nigh on 300!  Help!

Paul



Off-Topic JSERV Question...

2001-09-13 Thread Robert Keddie

I will eventually go to Tomcat  but for now I need a quci fix for Jserv...

I created a virtual host.
This host has jsp files residing in it.
Whenever I try to refer to the JSP through a link
I get th efollowing response:

JSP Error:



Request URI:/jsp/MSTU_Parcel.jsp

Exception:
javax.servlet.ServletException: java.io.FileNotFoundException: 
c:\cdplus_permit\jsp\MSTU_Parcel.jsp (The system cannot find the file specified) 

But the jsp files are actually under C:\mstu\jsp\...

I placed  ApJServMount /servlets /mstu into Jserv.conf
I created its own zone.properties file named mstu.properties.
I placed in jserv.properties  the servlet zone parameters.
Is there any other directive i should place in the virtual host in httpd.conf??

VirtualHost IP address:8070
DocumentRoot C:/mstu
ServerName 127.0.0.1
ErrorLog logs/mstu-error_log
CustomLog logs/mstu-access_log common
/VirtualHost



Am i missing something?


Any help would be greatly appreciated!







Re: web.xml and servlet mapping problem.

2001-09-13 Thread Paul Downs



--On 13 September 2001 14:07 +0200 Alexandre Victoor 
[EMAIL PROTECTED] wrote:

 your file seems good but you need also (if it's not done) to change
 server.xml in the tomcat\conf directory

  What should I have in server.xml?  Currently it is:
Host name=url
  Context path=/ docBase=/home/pauld/public_html debug=0/
  Context path=/cocoon docBase=webapps/cocoon debug=0 
reloadable=true/
/Host
  I have also tried it with path=.

 PS. Is your implementing class called Hello or Hi? The web.xml file
 claims it is |Hello

  It is called Hello.  I was just trying to get a customers site working 
and it was the easiest example I could think of.  I have the Hello.class 
and have mapped the name Hi to it.  Which works, but the url mapping 
doesn't.

Paul



RE: Tomcat on PDA?

2001-09-13 Thread Zachmann, Jens

Thanks!

The tools has been there. But there have been missing some other classes
which didn't exist in the PDA package.

Thanks,
Jens

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 11. September 2001 12:40
To: [EMAIL PROTECTED]
Subject: RE: Tomcat on PDA?



The error indicates that you are missing the JavaC compiler - you
need the tools.jar file in your classpath.

Randy

 -Original Message-
 From: Zachmann, Jens [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 11, 2001 4:41 AM
 To: '[EMAIL PROTECTED]'
 Subject: Tomcat on PDA?
 
 
 Hi!
 
 I tried to run the tomcat windows version on an iPAQ. The webserver is
 running and the servlet engine works fine. But the JSP 
 doesn't run. This is
 the jasper.log file from tomcat:
 
 2001-09-11 09:53:48 - Scratch dir for the JSP engine is:
 /zCat/work/localhost_8080%2Fexamples
 2001-09-11 09:53:48 - IMPORTANT: Do not modify the generated servlets
 
 2001-09-11 09:57:52 - JspEngine -- /jsp/num/numguess.jsp
 2001-09-11 09:57:52 - ServletPath: /jsp/num/numguess.jsp
 2001-09-11 09:57:52 -PathInfo: null
 2001-09-11 09:57:52 -RealPath:
 /zCat/webapps/examples/jsp/num/numguess.jsp
 2001-09-11 09:57:52 -  RequestURI: /examples/jsp/num/numguess.jsp
 2001-09-11 09:57:52 - QueryString: null
 2001-09-11 09:57:52 -  Request Params: 
 2001-09-11 09:57:52 - Classpath according to the Servlet Engine is:
 /zCat/webapps/examples/WEB-INF/classes
 
 Perhaps the Problem is that a second service Tomcat wants to 
 start on the PC
 will not be started (without any error) on the PDA. The 
 following line does
 not appear on the PDA:
 
 2001-09-11 09:11:52 - PoolTcpConnector: Starting 
 Ajp12ConnectionHandler on
 8007
 
 And the error page looks like this:
 
 Error: 500
 Location: /examples/jsp/num/numguess.jsp
 Internal servlet Error:
 javax.servlet.ServletException: sun/tools/javac/Main
   at org.apache.jasper.servlet.JspServlet.service()
   at javax.servlet.http.HttpServlet.service()
   at org.apache.tomcat.core.ServletWrapper.doService()
   at org.apache.tomcat.core.Handler.service()
   at org.apache.tomcat.core.ServletWrapper.service()
   at org.apache.tomcat.core.ContextManager.internalService()
   at org.apache.tomcat.core.ContextManager.service()
   at
 org.apache.tomcat.service.http.HttpConnectionHandler.processCo
 nnection()
   at org.apache.tomcat.service.TcpWorkerThread.runIt()
   at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
   at java.lang.Thread.run()
 Root cause:
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at org.apache.jasper.compiler.Compiler.compile()
   at org.apache.jasper.servlet.JspServlet.doLoadJSP()
   at org.apache.jasper.servlet.JasperLoader12.loadJSP()
   at org.apache.jasper.servlet.JspServlet.loadJSP()
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
 ecessary()
   at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service()
   at org.apache.jasper.servlet.JspServlet.serviceJspFile()
   at org.apache.jasper.servlet.JspServlet.service()
   at javax.servlet.http.HttpServlet.service()
   at org.apache.tomcat.core.ServletWrapper.doService()
   at org.apache.tomcat.core.Handler.service()
   at org.apache.tomcat.core.ServletWrapper.service()
   at org.apache.tomcat.core.ContextManager.internalService()
   at org.apache.tomcat.core.ContextManager.service()
   at
 org.apache.tomcat.service.http.HttpConnectionHandler.processCo
 nnection()
   at org.apache.tomcat.service.TcpWorkerThread.runIt()
   at org.apache.tomcat.util.ThreadPool$ControlRunnable.run()
   at java.lang.Thread.run()
 
 Does anybody understand this internal problem an can explain 
 it? Or where
 can I look for the problem?
 
 Many thanks,
 Jens
 



error under Linux

2001-09-13 Thread michael . brohl

Hi all,

I have installed Tomcat under Linux and set JAVA_HOME, TOMCAT_HOME and PATH
.
When running the examples, I get the following error :

Location: /examples/jsp/num/numguess.jsp

Internal Servlet Error:

java.lang.NoSuchMethodError
at
org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java:289)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1160)
at org.apache.tomcat.core.Handler.service(Handler.java:312)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)


Any hints what to do next?

Regards

Michael Brohl







RE: ApacheModuleJServ.dll is gone?

2001-09-13 Thread Hoggatt Matt - mahogg

I believe the file name has been changed to mod_jk.dll.  You can get it
here:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/win32/i38
6/

-Matt

-Original Message-
From: Elm Gysel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 5:04 AM
To: [EMAIL PROTECTED]
Subject: ApacheModuleJServ.dll is gone?


Hello,

Where did ApacheModuleJServ.dll go? I can't seem to find it. Is this being
replaced or something? If so, does there anything need to change on the
installation configuration?

Thanks!

Elm



AW: Off-Topic JSERV Question...

2001-09-13 Thread Ralph Einfeldt

Are you really using jserv ?

If so, which jsp engine do you use ?

If it is gnujsp, you should subscribe to 
the correct mailing list under:

http://www.gjt.org/servlets/MailingLists/SubForm.html/gnujsp
(I'm listening there too)

To enable us to give better help you should provide more 
informations about your mod_jserv.conf, jserv.properties
and zone.properties.

One tip: search for files containing cdplus_permit in
your configuration directory.

-Ursprüngliche Nachricht-
Von: Robert Keddie [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 13. September 2001 15:09
An: '[EMAIL PROTECTED]'[EMAIL PROTECTED]
Betreff: Off-Topic JSERV Question...


I will eventually go to Tomcat  but for now I need a quci fix for
Jserv...

I created a virtual host.
This host has jsp files residing in it.
Whenever I try to refer to the JSP through a link
I get th efollowing response:

JSP Error:




Request URI:/jsp/MSTU_Parcel.jsp

Exception:
javax.servlet.ServletException: java.io.FileNotFoundException:
c:\cdplus_permit\jsp\MSTU_Parcel.jsp (The system cannot find the file
specified) 

But the jsp files are actually under C:\mstu\jsp\...

I placed  ApJServMount /servlets /mstu into Jserv.conf
I created its own zone.properties file named mstu.properties.
I placed in jserv.properties  the servlet zone parameters.
Is there any other directive i should place in the virtual host in
httpd.conf??

VirtualHost IP address:8070
DocumentRoot C:/mstu
ServerName 127.0.0.1
ErrorLog logs/mstu-error_log
CustomLog logs/mstu-access_log common
/VirtualHost



Am i missing something?


Any help would be greatly appreciated!








RE: web.xml and servlet mapping problem.

2001-09-13 Thread Paul Downs

Hi,

 Please *dont* send me mail off-list like this.
 I will *never* respond. (well ok just this once then!)

  Sorry... :-) *ducks*  I have recently changed mail clients and seem to be 
having some problems getting it to behave.  It keeps replying to all people 
and lots of other quite yucky stuff.

Paul



Shutdown y startup server every time.

2001-09-13 Thread Juan Andres Sanin Pineda


Hi.

I have Tomcat 3.2.3. And in the server.xml in the Context element I have
the reloadable flag true. nevertheless when I change some servlet, I
have to reload server.

Are there other flag to set?, other file?

Thanks!

Juan




RE: Domino Tomcat

2001-09-13 Thread Fred So

There is a wonderful connector available for Domino
R5:

http://free.tagish.net/domino-tomcat/index.jsp

I have been using it and it works great!

Fred So

--

Anyone who have experience in setting up the Tomcat
engine with Lotus =
Domino?

Comments and links to web-pages wanted.

Thanks.



__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/



RE: ApacheModuleJServ.dll is gone?

2001-09-13 Thread Larry Isaacs

ApacheModuleJServ.dll is the older mod_jserv derived connector.
I doesn't appear that one was build for Tomcat 3.2.3.  Since
I don't think much has changed, you can try the one in the
Tomcat 3.3 beta2 release:

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-b2/bin/win32/i386/

Larry

 -Original Message-
 From: Hoggatt Matt - mahogg [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 13, 2001 9:37 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: ApacheModuleJServ.dll is gone?
 
 
 I believe the file name has been changed to mod_jk.dll.  You 
 can get it
 here:
 
 http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3
 /bin/win32/i38
 6/
 
 -Matt
 
 -Original Message-
 From: Elm Gysel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 13, 2001 5:04 AM
 To: [EMAIL PROTECTED]
 Subject: ApacheModuleJServ.dll is gone?
 
 
 Hello,
 
 Where did ApacheModuleJServ.dll go? I can't seem to find it. 
 Is this being
 replaced or something? If so, does there anything need to 
 change on the
 installation configuration?
 
 Thanks!
 
 Elm
 



Re: Mysql connection error

2001-09-13 Thread Paul Downs

Hi,

 java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

  Where is the org.gjt jar file?  It is simpler (seeing as it is such a 
widely used jdbc driver) to put this in the central class path, if you 
whack it in $TOMCAT_HOME/lib it will be automatically added, or at least it 
definately is in linux.

Paul



Re: ApacheModuleJServ.dll is gone?

2001-09-13 Thread Elm Gysel

Thanks for the replies!
Just to be very sure, if I try mod_jk.dll then I'll have to change this line
in /conf/tomcat-apache.conf
LoadModule jserv_module modules/ApacheModuleJServ.dll
to
LoadModule jserv_module modules/mod_jk.dll
and all of this will stil work with version 3.2.2?

Thanks!!

Elm

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 3:51 PM
Subject: RE: ApacheModuleJServ.dll is gone?


 ApacheModuleJServ.dll is the older mod_jserv derived connector.
 I doesn't appear that one was build for Tomcat 3.2.3.  Since
 I don't think much has changed, you can try the one in the
 Tomcat 3.3 beta2 release:


http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-b2/bin/win32/i
386/

 Larry

  -Original Message-
  From: Hoggatt Matt - mahogg [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 13, 2001 9:37 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: ApacheModuleJServ.dll is gone?
 
 
  I believe the file name has been changed to mod_jk.dll.  You
  can get it
  here:
 
  http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3
  /bin/win32/i38
  6/
 
  -Matt
 
  -Original Message-
  From: Elm Gysel [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 13, 2001 5:04 AM
  To: [EMAIL PROTECTED]
  Subject: ApacheModuleJServ.dll is gone?
 
 
  Hello,
 
  Where did ApacheModuleJServ.dll go? I can't seem to find it.
  Is this being
  replaced or something? If so, does there anything need to
  change on the
  installation configuration?
 
  Thanks!
 
  Elm
 




Can I configure Tomcat to accept HTTP requests from remote machines?

2001-09-13 Thread Raymond Reid

Can I configure Tomcat to accept http requests from remote IP addresses
without running another web server at the same time? I
currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
configuring Tomcat, I can enter http://localhost8080
into the location field in my browser and see the welcome page.  But
when I try to access the same page from a
different computer using the IP address of the machine I have Tomcat
running on, the page won't come up.

Do I need to be running Apache with Tomcat to access pages remotely?  If
someone could please point me in the right
direction, I would really appreciate it.

Thanks,
Ray




Re: Can I configure Tomcat to accept HTTP requests from remotemachines?

2001-09-13 Thread Dmitri Colebatch

http://localhost:8080 will just be an alias for http://127.0.0.1:8080 - so
doing it on another computer means that you're just trying to request the
computer that you are doing the request on.  Instead - find out what the
ip address is, using ipconfig, or winipcfg (I can never rememeber which is
used where)... and use http://192.168.0.1:8080 - replacing 192.168.0.1
witht he IP address.

hth
dim

On Thu, 13 Sep 2001, Raymond Reid wrote:

 Can I configure Tomcat to accept http requests from remote IP addresses
 without running another web server at the same time? I
 currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
 configuring Tomcat, I can enter http://localhost8080
 into the location field in my browser and see the welcome page.  But
 when I try to access the same page from a
 different computer using the IP address of the machine I have Tomcat
 running on, the page won't come up.
 
 Do I need to be running Apache with Tomcat to access pages remotely?  If
 someone could please point me in the right
 direction, I would really appreciate it.
 
 Thanks,
 Ray
 
 




Re: Can I configure Tomcat to accept HTTP requests from remote machines?

2001-09-13 Thread Peter Davison

Hi Ray.

localhost is just that - it is accessible only to the local machine.
In order to make your server accessible to other machines you need to specify it's
IP address in the server.xml file.

In the connectors section of server.xml you need to replace 127.0.0.1 with
the IP of your machine.

   !-- Normal HTTP --
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=inet value=127.0.0.1/
Parameter name=port value=8080/
/Connector

Once you've done this a restarted you can access your webserver remotely by 
specifying the actuall IP and port number in use.

Hope that helps.
Pete.


On Thu, 13 Sep 2001 10:16:10 -0400
Raymond Reid [EMAIL PROTECTED] wrote:

RR Can I configure Tomcat to accept http requests from remote IP addresses
RR without running another web server at the same time? I
RR currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
RR configuring Tomcat, I can enter http://localhost8080
RR into the location field in my browser and see the welcome page.  But
RR when I try to access the same page from a
RR different computer using the IP address of the machine I have Tomcat
RR running on, the page won't come up.
RR 
RR Do I need to be running Apache with Tomcat to access pages remotely?  If
RR someone could please point me in the right
RR direction, I would really appreciate it.
RR 
RR Thanks,
RR Ray



RE: Can I configure Tomcat to accept HTTP requests from remotemachines?

2001-09-13 Thread Tony Vinayak

I presume you are able to ping the IP addr from the other computer. If you
can access Tomcat locally (localhost:8080), you should most certainly be
able to access it remotely (e.g. http://192.163.1.100:8080). If not already,
don't forget to suffix the IP addr with the port # (8080)

IF the above still doesn't work, what error do you get?

cheers,
Tony

-Original Message-
From: Raymond Reid [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 10:16 AM
To: [EMAIL PROTECTED]
Subject: Can I configure Tomcat to accept HTTP requests from remote
machines?


Can I configure Tomcat to accept http requests from remote IP addresses
without running another web server at the same time? I
currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
configuring Tomcat, I can enter http://localhost8080
into the location field in my browser and see the welcome page.  But
when I try to access the same page from a
different computer using the IP address of the machine I have Tomcat
running on, the page won't come up.

Do I need to be running Apache with Tomcat to access pages remotely?  If
someone could please point me in the right
direction, I would really appreciate it.

Thanks,
Ray





RE: ApacheModuleJServ.dll is gone?

2001-09-13 Thread Larry Isaacs

Hi Elm,

Be aware that ApacheModuleJServ.dll (a.k.a. mod_jserv) and
mod_jk.dll are two different connectors, with very different
configuration files.

tomcat-apache.conf is the auto-generated config file for use
with ApacheModuleJServ.dll.  mod_jk.conf-auto is the auto-generated
config file for mod_jk.dll.

Hope this helps.
Larry

 -Original Message-
 From: Elm Gysel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 13, 2001 10:01 AM
 To: [EMAIL PROTECTED]
 Subject: Re: ApacheModuleJServ.dll is gone?
 
 
 Thanks for the replies!
 Just to be very sure, if I try mod_jk.dll then I'll have to 
 change this line
 in /conf/tomcat-apache.conf
 LoadModule jserv_module modules/ApacheModuleJServ.dll
 to
 LoadModule jserv_module modules/mod_jk.dll
 and all of this will stil work with version 3.2.2?
 
 Thanks!!
 
 Elm
 
 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, September 13, 2001 3:51 PM
 Subject: RE: ApacheModuleJServ.dll is gone?
 
 
  ApacheModuleJServ.dll is the older mod_jserv derived connector.
  I doesn't appear that one was build for Tomcat 3.2.3.  Since
  I don't think much has changed, you can try the one in the
  Tomcat 3.3 beta2 release:
 
 
 http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-
b2/bin/win32/i
386/

 Larry

  -Original Message-
  From: Hoggatt Matt - mahogg [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 13, 2001 9:37 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: ApacheModuleJServ.dll is gone?
 
 
  I believe the file name has been changed to mod_jk.dll.  You
  can get it
  here:
 
  http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3
  /bin/win32/i38
  6/
 
  -Matt
 
  -Original Message-
  From: Elm Gysel [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 13, 2001 5:04 AM
  To: [EMAIL PROTECTED]
  Subject: ApacheModuleJServ.dll is gone?
 
 
  Hello,
 
  Where did ApacheModuleJServ.dll go? I can't seem to find it.
  Is this being
  replaced or something? If so, does there anything need to
  change on the
  installation configuration?
 
  Thanks!
 
  Elm
 



Re: Can I configure Tomcat to accept HTTP requests from remote machines?

2001-09-13 Thread Elm Gysel

heya!

You don't need to run apache, but its recommended.
here are pro's and contra's from :
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html#coo
peration_need
  1.Tomcat is not as fast as Apache when it comes to static pages.
  2.Tomcat is not as configurable as Apache.
  3.Tomcat is not as robust as Apache.
  4.Tomcat may not address many sites' need for functionality found
only in Apache modules (e.g. Perl, PHP, etc.).

  For all these reasons it is recommended that real-world sites use an
industrial-strength web server, such as Apache, for serving static content,
and use Tomcat as a Servlet/JSP add-on.

  Cheers!

  Elm

- Original Message -
From: Raymond Reid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 4:16 PM
Subject: Can I configure Tomcat to accept HTTP requests from remote
machines?


 Can I configure Tomcat to accept http requests from remote IP addresses
 without running another web server at the same time? I
 currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
 configuring Tomcat, I can enter http://localhost8080
 into the location field in my browser and see the welcome page.  But
 when I try to access the same page from a
 different computer using the IP address of the machine I have Tomcat
 running on, the page won't come up.

 Do I need to be running Apache with Tomcat to access pages remotely?  If
 someone could please point me in the right
 direction, I would really appreciate it.

 Thanks,
 Ray




Re: Help: Tomcat 3.2.3 and Apache on FreeBSD **Java newbie**

2001-09-13 Thread nbd95

Thank you Plamen! I can now run the core files. I am still having some
problems with failures on the majority of the examples *.jsp from the core
cd though. I'm looking into it, I'll post again if I can't find an answer.

Two questions and an observation.

First, as installed by default I'm able to execute both
tomcat_home/webapps/examples and tomcat_home/webapps/core (my app) but I
am unable to execute tomcat_home/webapps/admin. I don't see anything in
the *.conf files to prevent this, why?

Second,  can anyone suggest a url/book/diet for more documentation? The
provided docs are well written and doubtless make sense to to many, but for
new users they are very vague.

Observation, all docs give example and make reference to adding the line
Include tomcat_home/conf/tomcat-apache.conf
to my httpd.conf. This causes apache to fail, not being able to open
/usr/local/./logs/mod_jserv.log I can find no reference to mod_jserv.log
in any file in tomcat_home/conf/*. Besides, I don't seem to need this line
as tomcat appears to work.

I appreciate everyone's indulgence here,

DAve

on 9/12/01 5:00 PM, Plamen Petkov at [EMAIL PROTECTED] wrote:

 nbd95 wrote:
snip
 My problem is I am trying to get examples of *.jsp code to work
 unsuccessfully. I have example code from a book (Core JSP) that I cannot
 run. Can anyone step me through creating a directory where I might store
 *.jsp files for experimenting? I'm simply trying to eval JSP and explore
 it's environment.
 
 I've read the book, Core JSP, and the Working with mod_jk - Tomcat-Apache
 HOWTO papers. I still don't get which *.conf files I need to modify to send
 *.jsp files to Tomcat from the Apache directory structure.
 
 I thank you for your indulgence.
 
 DAve
 
 
 Here is my directory structure for testing all Core JSP book examples.
 I gave this Application a core name. All dirs are relative to tomcat's
 webapps directory, wich is /usr/local/tomcat/webapps.
 
 [/usr/local/tomcat/webapps/]core   -- HTMLs, JSPs
 core/jsp -- HTMLs, JSPs
 core/WEB-INF 
 core/WEB-INF/classes   -- non-packaged servlets
 core/WEB-INF/classes/coreservlets  -- coreservlets's package servlets
 
 As for your last question: use symlinks. The core application may
 reside anywhere. Just symlink /usr/local/tomcat/webapps/core to the
 place where it is.
 Apache directory structure and Tomcat's one are not related at all.
 
 
 http://mylocalhost/core/jsp/some.jsp
 http://mylocalhost/core/servlet/SomeServletInClassesDirectory
 
http://mylocalhost/core/servlet/coreservlets.SomeServletFromCoreservletsPack
ag e
 
 
 have a nice day.
 
 p.s. I am new to Java/JSP/Servlets/Beans/etc/etc too :-)  But I like it.
 Coming from PHP world, it is a bit hard to get the point at once.. but..
 try :-)
 
 Just split your mind into many pieces: one for Apache, one for Tomcat,
 one for this container, one for the other one..  :-)
 
 
 
 
 Regards,




RE: Off-Topic JSERV Question...

2001-09-13 Thread Andy Bailey

Can you please not send posts to Tomcat User list to personal email
addresses.

Thanks


-Original Message-
From: Robert Keddie [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 3:09 PM
To: '[EMAIL PROTECTED]'[EMAIL PROTECTED]
Subject: Off-Topic JSERV Question...


I will eventually go to Tomcat  but for now I need a quci fix for
Jserv...

I created a virtual host.
This host has jsp files residing in it.
Whenever I try to refer to the JSP through a link
I get th efollowing response:

JSP Error:




Request URI:/jsp/MSTU_Parcel.jsp

Exception:
javax.servlet.ServletException: java.io.FileNotFoundException:
c:\cdplus_permit\jsp\MSTU_Parcel.jsp (The system cannot find the file
specified) 

But the jsp files are actually under C:\mstu\jsp\...

I placed  ApJServMount /servlets /mstu into Jserv.conf
I created its own zone.properties file named mstu.properties.
I placed in jserv.properties  the servlet zone parameters.
Is there any other directive i should place in the virtual host in
httpd.conf??

VirtualHost IP address:8070
DocumentRoot C:/mstu
ServerName 127.0.0.1
ErrorLog logs/mstu-error_log
CustomLog logs/mstu-access_log common
/VirtualHost



Am i missing something?


Any help would be greatly appreciated!







RE: Can I configure Tomcat to accept HTTP requests from remotemachines?

2001-09-13 Thread Tony Vinayak

Interesting,y, if I don't have the inet config line at all in my
server.xml, I can access the running Tomcat both locally and remotely
without any server.xml config change!

- Tony


-Original Message-
From: Peter Davison [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 10:31 AM
To: [EMAIL PROTECTED]
Subject: Re: Can I configure Tomcat to accept HTTP requests from remote
machines?


Hi Ray.

localhost is just that - it is accessible only to the local machine.
In order to make your server accessible to other machines you need to
specify it's
IP address in the server.xml file.

In the connectors section of server.xml you need to replace 127.0.0.1
with
the IP of your machine.

   !-- Normal HTTP --
Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler

value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=inet value=127.0.0.1/
Parameter name=port value=8080/
/Connector

Once you've done this a restarted you can access your webserver remotely by
specifying the actuall IP and port number in use.

Hope that helps.
Pete.


On Thu, 13 Sep 2001 10:16:10 -0400
Raymond Reid [EMAIL PROTECTED] wrote:

RR Can I configure Tomcat to accept http requests from remote IP addresses
RR without running another web server at the same time? I
RR currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
RR configuring Tomcat, I can enter http://localhost8080
RR into the location field in my browser and see the welcome page.  But
RR when I try to access the same page from a
RR different computer using the IP address of the machine I have Tomcat
RR running on, the page won't come up.
RR
RR Do I need to be running Apache with Tomcat to access pages remotely?  If
RR someone could please point me in the right
RR direction, I would really appreciate it.
RR
RR Thanks,
RR Ray




Re: web.xml and servlet mapping problem.

2001-09-13 Thread Vic Cekvenich

Please don't BCC.

Paul Downs wrote:

 IMPORTANT! This message has been blind-carbon-copied to you.
 Do not reply-to-all or forward it without the author's permission.






RE: Multiple Tomcat workers (using mod_jk)

2001-09-13 Thread Tony Vinayak

Thanks Jan -- that helps! Especially the bit regarding being able to JkMount
onto the loadbalancer worker.

So...seems like it would be more efficient to create multiple WORKERS of
Tomcat on same/different machines and let the loadbalancer work handle the
load balancing, as opposed to running multiple INSTANCES of Tomcat on
same/different machines and then having to use mod_rewrite to load balance
across them all. The latter approach sounds like not only more work, but
also a greater resource hog.

What I'm trying to accomplish is to run multiple concurrent instances this
thread-unsafe servlet. Ideally I should fix the servlet itself, but don't
have the liberty to do so for several reasons. I'm hoping to be able to
deploy this rogue servlet across multiple Tomcat workers (behind an Apache
web server) and then let the loadbalancer worker handle the request
allocation for me.

Comments, anyone?

regards,
Tony


-Original Message-
From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 12:23 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Multiple Tomcat workers (using mod_jk)


I am not the developer, so I do not know... But this is what I think:
The workers are different instances of Tomcat, and can reside even on
different machines, i.e., obviously they run under different VMs
At the same time, the load balancing worker should send the request
which belong to the same session to the same worker for processing...
From what I know, if you configure this right, the Apache talks only to
a single, load-balancing worker, and has no control over which worker
does the actuall processing, unless you mount different contexts to
different
workers, but then you are in control...

But yes, there is a lack of good documentation on doing load balancing with
mod_jk, though there is plenty on mod_jserv.

Here are some excripts from someone who tried this:
=
From: David Cassidy (Programmer) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Tomcat and Apache on diffenet machines
Date: Fri, 25 May 2001 15:10:36 +0100

Yup this is possible 

and if you are using the loadbalancing module ( so you can have more
than 1
tomcat for your apache(s) to talk to) essential

in workers.properties you should find something like ...

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1

To define another service try ...

worker.external_1.port=8007
worker.external_1.host=192.168.34.43
worker.external_1.type=ajp12
worker.external_1.lbfactor=1

You can define as many of these as you want.

You can then define a loadbalancer ( if you want to)

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, external_1, external_2 etc

then
worker.list=loadbalancer
and you have got load balancing

If you just want to use a single tomcat host then
worker.list=external_1

in your mod_jk.conf

JkMount /test/* loadbalancer

or

JkMount /test/* external_1


Jan


On Thu, 13 Sep 2001, Tony Vinayak wrote:

 Folks,

 I've got a couple of quick newbie questions:
 Environment: Apache 1.3.20 on Solaris 8; Tomcat 3.2 (using mod_jk); Apache
 and Tomcat running on the same box.

 If I configure and run multiple Tomcat workers on the same machine
 (listening on different ports of course), and let's say they are all using
 ajp13 connector, do all those workers run in the SAME of DIFFERENT VM ?

 The reason I ask is that I've got a thread-unsafe servle that I want to
 deploy implementing SingleThreadModel across multiple concurrent
instances
 of Tomcat, allowing concurrent requests to be processes. As the request
gets
 into Apache, using mod_rewrite I want to direct it to one of the several
 Tomcat workers.

 regards,
 Tony


Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/





To all people who are mailing me.

2001-09-13 Thread Paul Downs

Hi,
  Please for gods sake please stop sending me Dont do this emails.  It 
was a mistake.  For which I have said sorry.

Paul



Two questions

2001-09-13 Thread Renato


Hi all,

I'm using Tomcat-3.2.3 on Linux, JVM 1.3.1 Sun, AJP13 protocol.

Two quick questions. 

1. I was doing some tests with several contexts/domains. All of them has 
the option 'crossContext=false'. I included about 800 context and when I 
start Tomcat I have about 800 java linux-threads running ! I know this is 
probably a FAQ, but I could find an explanation for this behaviour.

2. I have a very simple servlet that I use to monitor Tomcat ( I execute it 
once every minute and look for errors... and of course I plan to automate 
it :)) ), which is integrated with Apache. I realized sometimes I have 
the 'Internal Server error' from Apache. It's like I keep clicking on the 
refresh button on the browser and in 1 out of 10 clicks I get the error. 
What's happening ? Anybody has seen this behaviour ?

Thanks
Renato.




Getting Tomcat's Port# in Servlet (using mod_jk)

2001-09-13 Thread Tony Vinayak

Greetings,

Am using Tomcat 3.2 with mod_jk and Apache 1.3.20

In my servlet, doing request.getServerPort() tells me the port on which
Apache is listening (e.g. 80). How can I get to the Port on which Tomcat
connector (ajp13) is listening (e.g. 8007) ??

regards,
Tony




RE: bug 1006 - v3.2.3

2001-09-13 Thread GOMEZ Henri

We are using Tomcat 3.2.3, ibm jdk 1.2.2 (aix).
(our) Tomcat has a similar symptom than the bug 1006
described in the bug database : Tomcat standlone
accumulate blocked thread and stop responding.

In TC 3.2.3 the code setSoTimeout is in HttpConnectionHandler !

Isn't it supposed to be fixed in release 3.2.2?
--- Additional Comments From [EMAIL PROTECTED]
2001-03-24 05:09 ---
Fixed in both 3.2.2 beta 2 and 3.3 using read timeout
of 300s (5mn)

I have checked the code, TIMEOUT is correct (=3000)
but the patched code is incomplete :
missing
if (accepted != null)
{
  accepted.setSoTimeout(timeout);   
}
/missing
if( factory != null  accepted != null)
 factory.initSocket( accepted );
}


___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com




RE: ApacheModuleJServ.dll is gone?

2001-09-13 Thread GOMEZ Henri

Thanks for the replies!
Just to be very sure, if I try mod_jk.dll then I'll have to 
change this line
in /conf/tomcat-apache.conf
LoadModule jserv_module modules/ApacheModuleJServ.dll
to
LoadModule jserv_module modules/mod_jk.dll
and all of this will stil work with version 3.2.2?


mod_jk use different Apache directive than mod_jserv and
use also another file, workers.properties

Take a look at :

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html

== httpd.conf

LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevelerror
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

JkMount /examples/*.jsp myworker
JkMount /examples/servlet/* myworker

== workers.properties

worker.list=myworker

worker.myworker.port=8009
worker.myworker.host=localhost
worker.myworker.type=ajp13
worker.myworker.lbfactor=1
worker.myworker.cachesize=16

Regards



Re: To all people who are mailing me.

2001-09-13 Thread agc

and what did u do?


On Thu, 13 Sep 2001, Paul Downs wrote:

 Date: Thu, 13 Sep 2001 16:14:09 +0100
 From: Paul Downs [EMAIL PROTECTED]
 To: Tomcat Mailing List [EMAIL PROTECTED]
 Subject: To all people who are mailing me.
 
 Hi,
   Please for gods sake please stop sending me Dont do this emails.  It 
 was a mistake.  For which I have said sorry.
 
 Paul
 





Re: To all people who are mailing me.

2001-09-13 Thread Paul Downs

Hi,

 and what did u do?

  My mail client had the mailing list address as bcc and was automatically 
cc'ing peoples personal address.  I didn't notice until I got the usual 
flames.

Paul



Re: tomcat-users.xml reload.

2001-09-13 Thread Craig R. McClanahan



On Wed, 12 Sep 2001, Benoit Bertrand wrote:

 Date: Wed, 12 Sep 2001 21:26:35 +0200
 From: Benoit Bertrand [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: tomcat-users.xml reload.

hello,

I have got a question concerning tomcat-users.xml reloading. I am
 developping a web application where an administrator can add/remove user(s)
 (to contraints access to this web app). This operation add/remove the
 necessary information to/from tomcat-users.xml file.
Unfortunately, i discovered that this file is not updated until the next
 startup of tomcat. This is to say that to complete the add/remove operation,
 tomcat should be stopped an restarted (which is not what i intended to do).
My question is the following: is there a way to reload the user access
 from tomcat-users.xml ? If not this should say that i can not use
 tomcat-users.xml to contraints access for my web app ?

Sincerely,

Benoit Bertrand.


There is no current mechanism to reload tomcat-users.xml.

The memory realm is not really designed for production use - it is just
there to get things working initially without requiring you to set up a
database or a directory server.  You should use JDBCRealm in a real
application -- any changes to the underlying data are reflected
immediately the next time that user logs on, with no need to restart
anything.

Craig McClanahan





Re: The pitfalls in restarting tomcat

2001-09-13 Thread Craig R. McClanahan



On Wed, 12 Sep 2001, Jonathan Eric Miller wrote:

 Date: Wed, 12 Sep 2001 23:57:07 -0500
 From: Jonathan Eric Miller [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: The pitfalls in restarting tomcat

 I agree that there should be a restart.sh. However,  it is possible to
 restart/reload a servlet without having to stop and start Tomcat, in version
 4 that is, which is due for release any day now. I think you can do it in
 Tomcat 3 as well. In 4, you can mark a Context as reloadable. Then, it will
 check the files when they are requested, and if the time stamp is new, then,
 it will automatically reload the servlet. Also, there is a management
 servlet that allows you to restart other servlets in case you don't want to
 have auto-reloading on.

 Nonetheless, I still think a restart.sh command would be useful.


In Tomcat 4, you can also use the Manager webapp to restart a particular
app at any time (whether or not you have declared it to be reloadable)
through an HTTP request like:

  http://localhost:8080/manager/reload?path=/exmaples

This can also be scripted into shell scripts if you need to restart
periodically for some reason (such as to switch log files).

For more info, see

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

 Jon


Craig

 - Original Message -
 From: Jeff Turner [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, September 09, 2001 9:55 PM
 Subject: The pitfalls in restarting tomcat


  Hi,
 
  I was wondering how people who use Tomcat every day) do the stop/start
  cycle that's required whenever something in WEB-INF/lib changes.
 
  ./shutdown.sh ; ./startup.sh is a bad idea, because Tomcat 3.x seems
  to shut down it's threads asynchronously. So after shutdown.sh has
  returned, Tomcat has not necessarily stopped. Then startup.sh comes
  along, finds that your port is in use, and gives you Address already in
  use errors.
 
  With Tomcat 3.3, it is very easy to confuse Tomcat into thinking that it
  has shut down (the ajp12.id file does not exist), but it actually
  running. In this (common) situation, there is no way to kill tomcat
  other than killing the processes ('killall java'). Killing tomcat in
  this way is *very* dangerous, because it sometimes leaves threads in the
  state described by 'man ps' as:
 
D   uninterruptible sleep (usually IO)
 
  Then you're plain screwed; the thread is completely unkillable even by
  root, and is holding onto your tomcat port (8080). The only option is to
  reboot the machine.
 
  So anyway, has anyone got a safer way of restarting tomcat? Perhaps a
  script that waits until Tomcat is *really* dead before restarting? It
  would be nice if there was direct support in Tomcat for this everyday
  task (a restart.sh script).
 
  --Jeff
 






RE: bug 1006 - v3.2.3

2001-09-13 Thread Jean-Christophe Salomé

 In TC 3.2.3 the code setSoTimeout is in
 HttpConnectionHandler !

Does that mean that TC 3.2.3 is up to date? 
(which means that the bug #1006 needs to be updated in
the Bug Database).
Unfortunately, it doesn't explain why TC still
blocks...

Any clues? Anybody who faced a similar problem?
That's rather urgent, we are (were...) going to deploy
Tomcat on our production servers. 
 
Thanks ...

 --- GOMEZ Henri [EMAIL PROTECTED] a écrit : 
 We are using Tomcat 3.2.3, ibm jdk 1.2.2 (aix).
 (our) Tomcat has a similar symptom than the bug
 1006
 described in the bug database : Tomcat standlone
 accumulate blocked thread and stop responding.
 
[..]
 
 Isn't it supposed to be fixed in release 3.2.2?
 --- Additional Comments From [EMAIL PROTECTED]
 2001-03-24 05:09 ---
 Fixed in both 3.2.2 beta 2 and 3.3 using read
 timeout
 of 300s (5mn)
 
 I have checked the code, TIMEOUT is correct (=3000)
 but the patched code is incomplete :
 missing
 if (accepted != null)
 {
   accepted.setSoTimeout(timeout);   
 }
 /missing
 if( factory != null  accepted != null)
  factory.initSocket( accepted );
 }
 
 

___
 Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
 Yahoo! Courrier : http://fr.mail.yahoo.com
  

___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com



Re: request logging in Tomcat?

2001-09-13 Thread Craig R. McClanahan

By default, Tomcat 4 creates access log files for you in the same format
that web servers do.  It includes all of the stuff you are talking about.

Tomcat 3.x does not include this feature, although you could write it
yourself.

Craig McClanahan


On Thu, 13 Sep 2001 [EMAIL PROTECTED] wrote:

 Date: Thu, 13 Sep 2001 12:06:30 +0200
 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: request logging in Tomcat?


 Hi all,

 how can I set up Tomcat (standalone) for logging the incoming requests
 including request path,
 data/time and - very important - the IP and/or domain of the requester?

 I enabled all logging (Tomcat, Servlet, JSP and Context Manager) but I
 didn't get the IP from the
 requesting client. Any ideas?

 Regards

 Michael Brohl









Re: New xml parser on startup in Tomcat ?

2001-09-13 Thread Craig R. McClanahan

OutOfMemoryError means that your JVM is not providing enough heap space
to run Tomcat.  If I remember correctly, the Blackdown JVM has a *very*
small default heap size, while the heap size on the Sun and IBM JVMs is
much larger.

What you need to do is consult the documentation from Blackdown and figure
out how to increase the heap size to at least 64 megabytes.  You can then
configure Tomcat startup to use this by setting the environment variable
TOMCAT_OPTS (for Tomcat 3.x) or CATALINA_OPTS (for Tomcat 4.0).  Here's
what you would do on the *Sun* JDK to increase heap size to 512 megabytes
(assuming a nice big machine):

  Unix:

export CATALINA_OPTS=-DXmx=512m
$CATALINA_HOME/bin/catalina.sh start

  Windows:

set CATALINA_OPTS=-DXmx=512m
%CATALINA_HOME%\bin\catalina start

but you will need to figure out the right setting for Blackdown.

Craig McClanahan


On Thu, 13 Sep 2001, Franck Routier wrote:

 Date: Thu, 13 Sep 2001 14:56:41 +0200
 From: Franck Routier [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: New xml parser on startup in Tomcat ?

 Hi,

 I'm still fighting with the same problem :

 Tomcat, just out of the box, won't start and gives me a OutOfMemoryError on
 startup, then dies.
 Apparently, it does this while reading it's conf file.
 The problem occurs with versions 3.3-b2 and  4.0-rc1.

 The interresting point is that version 3.2.3, bundled with jboss 2.4.0 WORKS,
 but the same version (3.2.3) bundled with jboss 2.4.1 doesn't (same error).

 I read this in jboss forum, on another subject, but I thing it might be
 related :

 The problem is that in Tomcat 3.x you have to put your parsers in the
 classpath before everything else becouse they are no relying on system
 properties to decide which parser to use. There is an explanation on how to
 to this is tomcat´s archives. In Tomcat 4.x the parser loaded by Tomcat for
 it´s own use does not conflict on the parser used by applications. The
 problem is solved in last version of JBOSS by using system properties to
 define which parser to use. I´ll look for the archives and post them later 

 Sadly I'm not skilled enough to tell if this is really related...

 Any idea why Tomcat won't start on my machine, except when launched with
 jboss 2.4.0...

 I use jdk 1.3-ppc from Blackdown on Debian Gnu-Linux-ppc.

 Thanks,

 Franck






Re: Off-Topic JSERV Question...

2001-09-13 Thread Craig R. McClanahan

On Thu, 13 Sep 2001, Robert Keddie wrote:

 Date: Thu, 13 Sep 2001 09:08:31 -0400
 From: Robert Keddie [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]'[EMAIL PROTECTED]
 Subject: Off-Topic JSERV Question...

 I will eventually go to Tomcat  but for now I need a quci fix for Jserv...

 I created a virtual host.
 This host has jsp files residing in it.
 Whenever I try to refer to the JSP through a link
 I get th efollowing response:

 JSP Error:

 

 Request URI:/jsp/MSTU_Parcel.jsp

 Exception:
 javax.servlet.ServletException: java.io.FileNotFoundException: 
c:\cdplus_permit\jsp\MSTU_Parcel.jsp (The system cannot find the file specified) 

 But the jsp files are actually under C:\mstu\jsp\...

 I placed  ApJServMount /servlets /mstu into Jserv.conf
 I created its own zone.properties file named mstu.properties.
 I placed in jserv.properties  the servlet zone parameters.
 Is there any other directive i should place in the virtual host in httpd.conf??

 VirtualHost IP address:8070
 DocumentRoot C:/mstu
 ServerName 127.0.0.1
 ErrorLog logs/mstu-error_log
 CustomLog logs/mstu-access_log common
 /VirtualHost



 Am i missing something?


 Any help would be greatly appreciated!

Well, one thing you might be missing is that Apache JServ does not support
JSP ...


Craig





Re: Getting Tomcat's Port# in Servlet (using mod_jk)

2001-09-13 Thread Jan Labanowski

From what I know, you cannot, but you can put the ports in the
context parameters in web.xml and get these parameters from within servlets
and JSP.
  context-param
param-nameconnectorPort/param-name
param-value8007/param-value
  /context-param

which you can retrieve from a servlet by calling:

  getServletContext().getInitParameter(connectorPort);
or
  Connector port is %= application.getInitParameter(connectorPort) %
in JSP

The connectors are not part of the spec, and you can only get this
information by modifying the Tomcat itself and adding methods which could
retrieve this information. Of course it would be totally unstandard and
unportable (but in a sense, connectors are not standard anyhow), and
I am not even sure how you could get to this information easily, since the
your classloader does not know about Tomcat classes in the
org.apache.tomcat.service.whatever... You could probably make them write
something to some static bean where you can get it, but again... This is
for gurus to tell us, since I would be rediscovering the wheel going through
the Tomcat source...

Jan

On Thu, 13 Sep 2001, Tony Vinayak wrote:

 Greetings,
 
 Am using Tomcat 3.2 with mod_jk and Apache 1.3.20
 
 In my servlet, doing request.getServerPort() tells me the port on which
 Apache is listening (e.g. 80). How can I get to the Port on which Tomcat
 connector (ajp13) is listening (e.g. 8007) ??
 
 regards,
 Tony
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




web.xml and reloading

2001-09-13 Thread Alex Colic


Hi where are these tags set?

In the web.xml or servlet.xml files:

  Context ... reloadable=true ...
Loader checkInterval=5/
  /Context

Thanks

Alex




RedHat Linux 7.1, Tomcat 4.0 RC1

2001-09-13 Thread Scott Brinker

I'm having trouble getting Tomcat 4.0 RC1 to start under RedHat Linux 7.1. I
have installed the latest release in a directory in /usr/local, installed
JSE 1.3.1_01 in /usr/java, and set up JAVA_HOME and CATALINA_HOME
environment variables.

When I execute ./startup.sh, I get these messages:

  Using CLASSPATH ...
  Using CATALINA_BASE ...
  Using CATALINA_HOME ...

And then it returns me to the command prompt. No Tomcat process appears to
be running, and no other messages are displayed.

I should also mention that I've done this as the root account to make sure
there weren't permission problems.

Can anyone offer any suggestions?

Many thanks,

--
Scott Brinker
i-on interactive, inc.
561.394.9484 (Boca Raton)
646.486.6204 (New York)
888.466.4332 (toll-free)
http://www.i-on.com




Thread limiting in tomcat.

2001-09-13 Thread Paul Downs

Hi,
  I felt I should probably make this post again, and also a tacet enquiry 
as to why my posts appear on the list as not coming from me?  I think this 
mail client has some quirks (mulberry for the curious).
  Anyway, I have tried to limit tomcats threads with the following entry in 
server.xml:

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter
name=handler
 
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
Parameter
name=port
value=8009/
Parameter
name=max_threads
value=100/
Parameter
name=max_spare_threads
value=20/
Parameter
name=min_spare_threads
value=10/
/Connector

  And a similar one for apj12.  However (one quick check later) I have 
around 264 tomcat threads on the server at the moment.  It is not really a 
problem as the machine has enough ram but I am being told to lower it! :-) 
So the question is, is tomcat paying attention to my thread limits or am I 
doing something wrong?

Paul



Re: tomcat 4 beta 7 - reloading doesn't work

2001-09-13 Thread paul

Craig???

I am still unable to make servlet reloading work on AIX4.3
with tomcat 4 and apache 1.3.19


I have included some of my webapps directory structure and
my server.xml

The context is ct and the service is tomcat-apache

In desperation and frustration trying really hard to use tomcat 4

Paul


./ct
./ct/ErrorPage.jsp
./ct/CSS_select.jsp
./ct/Navbar.jsp
./ct/getenvs.jsp
./ct/LogonTest.jsp
./ct/DisplayLogon.jsp
./ct/Logon.jsp
./ct/Receive.jsp
./ct/Send.jsp
./ct/WHControl.jsp
./ct/receive.jar
./ct/Nev-bar.jsp
./ct/send.jar
./ct/LoadLogon.jsp
./ct/CTListSC.jsp
./ct/CTViewJob.jsp
./ct/WHListStock.jsp
./ct/WHListStockSum.jsp
./ct/wml_ErrorPage.jsp
./ct/wml_joblist.jsp
./ct/wml_logon.jsp
./ct/wml_viewjob.jsp
./ct/WEB-INF
./ct/WEB-INF/web.xml
./ct/WEB-INF/classes
./ct/WEB-INF/classes/playjsp
./ct/WEB-INF/classes/playjsp/Logon.class
./ct/WEB-INF/classes/playjsp/Logon$1.class
./ct/WEB-INF/classes/playjsp/Job$1.class
./ct/WEB-INF/classes/playjsp/Job.class
./ct/WEB-INF/classes/playjsp/ListStatusChanges$1.class
./ct/WEB-INF/classes/playjsp/ListStatusChanges.class
./ct/WEB-INF/classes/playjsp/ListWHStockSummary.class
./ct/WEB-INF/classes/playjsp/ListWHStockSummary$1.class
./ct/WEB-INF/classes/playjsp/ListWHStock.class
./ct/WEB-INF/classes/playjsp/ListWHStock$1.class
./ct/WEB-INF/classes/playjsp/CTControl.class
./b2b
./b2b/WEB-INF
./b2b/WEB-INF/classes
./b2b/WEB-INF/classes/playjsp
./b2b/WEB-INF/classes/playjsp/BBControl.class
./b2b/WEB-INF/classes/playjsp/ListB2B.class
./b2b/WEB-INF/classes/playjsp/ListB2B$1.class
./b2b/WEB-INF/classes/playjsp/Parameters.class
./b2b/WEB-INF/classes/playjsp/Parameters$1.class
./b2b/WEB-INF/classes/playjsp/Parameters$2.class
./b2b/WEB-INF/classes/playjsp/ListB2B$2.class
./b2b/WEB-INF/classes/playjsp/ListB2B$3.class
./b2b/WEB-INF/web.xml
./b2b/BBListTransactions.jsp
./b2b/panpars.xml
./b2b/hostpars.xml
./b2b/BBTest.jsp
./b2b/apachepars.xml
./b2b/testpars.xml
./b2b/BBListSummaryTrans.jsp

My server.xml

!-- Alternate Example-less Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to
the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port
8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second
Connector
 entry.  SSL support requires the following steps:
 * Download and install JSSE 1.0.2 or later, and put the JAR files
   into $JAVA_HOME/jre/lib/ext.
 * Edit $JAVA_HOME/jre/lib/security/java.security and add
 security.provider.2=com.sun.net.ssl.internal.ssl.Provider
 * Execute: keytool -genkey -alias tomcat -keyalg RSA
   with a password value of changeit.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are
disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value
 to -1 --

!-- Define an SSL HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
 

error 404 with a GET request

2001-09-13 Thread Judith NATAF

I've just installed the jakarta-tomcat-3.2.3 web server.

hen I try to send my http GET request:

 GET http://localhost/index.vxml HTTP/1.0
 Accept: */*
 User-Agent: myClientHttp
 Connection: close

The tomcat web server answers : error 404

When I use Internet Explorer the url works and I get
the page I want.

Is there something missing in my request ?
Do I have missed to configure Tomcat with my proxy address for example ?

Thank you for your help.

Judith.



Re: Help: Tomcat 3.2.3 and Apache on FreeBSD **Java newbie**

2001-09-13 Thread nbd95

Ahhh, ignore tomcat_homeconf/tomcat-apache.conf

Add webapps/admin and webapps/test to mod_jk.conf. Restart everything and
now core,admin,test,examples all work. Though I cannot get a welcome or
index page to work, accessing examples/jsp/ does provide a directory
listing.

Still digging.

DAve

on 9/13/01 9:53 AM, nbd95 at [EMAIL PROTECTED] wrote:

 Thank you Plamen! I can now run the core files. I am still having some
 problems with failures on the majority of the examples *.jsp from the core
 cd though. I'm looking into it, I'll post again if I can't find an answer.
 
 Two questions and an observation.
 
 First, as installed by default I'm able to execute both
 tomcat_home/webapps/examples and tomcat_home/webapps/core (my app) but I
 am unable to execute tomcat_home/webapps/admin. I don't see anything in
 the *.conf files to prevent this, why?
 
 Second,  can anyone suggest a url/book/diet for more documentation? The
 provided docs are well written and doubtless make sense to to many, but for
 new users they are very vague.
 
 Observation, all docs give example and make reference to adding the line
 Include tomcat_home/conf/tomcat-apache.conf
 to my httpd.conf. This causes apache to fail, not being able to open
 /usr/local/./logs/mod_jserv.log I can find no reference to mod_jserv.log
 in any file in tomcat_home/conf/*. Besides, I don't seem to need this line
 as tomcat appears to work.
 
 I appreciate everyone's indulgence here,
 
 DAve




RE: Getting Tomcat's Port# in Servlet (using mod_jk)

2001-09-13 Thread Tony Vinayak

Hmmm...I am actually letting the loadbalancer worker handle the actual
allocation of the ajp13 worker (and hence the port#), so I can't hard-code
the port# in my web.xml.

What I really want to accomplish is to be able to tell within my servlet
*which* Tomcat worker is handling it. Port# was the first thought as a
unique identifier; anything else I could use ??

regards,
Tony

-Original Message-
From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 12:17 PM
To: [EMAIL PROTECTED]; Jan Labanowski;
[EMAIL PROTECTED]
Subject: Re: Getting Tomcat's Port# in Servlet (using mod_jk)


From what I know, you cannot, but you can put the ports in the
context parameters in web.xml and get these parameters from within servlets
and JSP.
  context-param
param-nameconnectorPort/param-name
param-value8007/param-value
  /context-param

which you can retrieve from a servlet by calling:

  getServletContext().getInitParameter(connectorPort);
or
  Connector port is %= application.getInitParameter(connectorPort) %
in JSP

The connectors are not part of the spec, and you can only get this
information by modifying the Tomcat itself and adding methods which could
retrieve this information. Of course it would be totally unstandard and
unportable (but in a sense, connectors are not standard anyhow), and
I am not even sure how you could get to this information easily, since the
your classloader does not know about Tomcat classes in the
org.apache.tomcat.service.whatever... You could probably make them write
something to some static bean where you can get it, but again... This is
for gurus to tell us, since I would be rediscovering the wheel going through
the Tomcat source...

Jan

On Thu, 13 Sep 2001, Tony Vinayak wrote:

 Greetings,

 Am using Tomcat 3.2 with mod_jk and Apache 1.3.20

 In my servlet, doing request.getServerPort() tells me the port on which
 Apache is listening (e.g. 80). How can I get to the Port on which Tomcat
 connector (ajp13) is listening (e.g. 8007) ??

 regards,
 Tony


Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/





Re: web.xml and reloading

2001-09-13 Thread Craig R. McClanahan



On Thu, 13 Sep 2001, Alex Colic wrote:

 Date: Thu, 13 Sep 2001 12:42:59 -0400
 From: Alex Colic [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: Tomcat-User [EMAIL PROTECTED]
 Subject: web.xml and reloading


 Hi where are these tags set?

 In the web.xml or servlet.xml files:

   Context ... reloadable=true ...
 Loader checkInterval=5/
   /Context

 Thanks


It's in conf/server.xml.  For complete Tomcat 4 documentation, see

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/

and read the Server Configuration Reference stuff.  This is the same
documentation that will be included in the final Tomcat 4 release.

You are also ***strongly*** encouraged to read the Servlet Specification
(covering the contents of web.xml), which is available at:

  http://java.sun.com/products/servlet/download.html

An important rule of thumb to remember:  everything in web.xml is portable
-- everything in server.xml is specific to Tomcat.

 Alex



Craig





Re: RedHat Linux 7.1, Tomcat 4.0 RC1

2001-09-13 Thread Craig R. McClanahan



On Thu, 13 Sep 2001, Scott Brinker wrote:

 Date: Thu, 13 Sep 2001 12:53:29 -0400
 From: Scott Brinker [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RedHat Linux 7.1, Tomcat 4.0 RC1

 I'm having trouble getting Tomcat 4.0 RC1 to start under RedHat Linux 7.1. I
 have installed the latest release in a directory in /usr/local, installed
 JSE 1.3.1_01 in /usr/java, and set up JAVA_HOME and CATALINA_HOME
 environment variables.

 When I execute ./startup.sh, I get these messages:

   Using CLASSPATH ...
   Using CATALINA_BASE ...
   Using CATALINA_HOME ...

 And then it returns me to the command prompt. No Tomcat process appears to
 be running, and no other messages are displayed.


Tomcat starts in the background, and logs all it's output to files in the
$CATALINA_HOME/logs directory.  Try pointing your browser at:

  http://localhost:8080/

 I should also mention that I've done this as the root account to make sure
 there weren't permission problems.


You definitly won't want to run it that way, however.

 Can anyone offer any suggestions?

 Many thanks,

 --
 Scott Brinker
 i-on interactive, inc.
 561.394.9484 (Boca Raton)
 646.486.6204 (New York)
 888.466.4332 (toll-free)
 http://www.i-on.com



Craig McClanahan





Re: web.xml and reloading

2001-09-13 Thread paul

in the server.xml

- Original Message - 
From: Alex Colic [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 5:42 PM
Subject: web.xml and reloading


 
 Hi where are these tags set?
 
 In the web.xml or servlet.xml files:
 
   Context ... reloadable=true ...
 Loader checkInterval=5/
   /Context
 
 Thanks
 
 Alex
 




classpath

2001-09-13 Thread Liliana Selea

I'm having the same problem. I tried to run FOP-0.20 on tomcat 3.2.3. I
replaced the jaxp.jar from Tomcat/lib with the latest version, and when I
run the servlet, the tomcat server shuts down. Does anybody know what's
happened?
Thanks in advance for help.
Liliana Selea




Re: Help: Tomcat 3.x/ 4.x and FreeBSD

2001-09-13 Thread Tim O'Neil

At 03:07 PM 9/12/2001, you wrote:
Here is FBSD 4.4RC3, Tomcat 3.2.3, JDK 1.2.2. No problem at all.


0) Upgrade to FreeBSD 4.3 (or wait few days for upcoming 4.4 Release)

1) If possible, allways use ports !  They are ports, you know, something
is ported, changed, specific to FreeBSD

2) I'd suggest skipping JDK 1.1.8 ang go directly to 1.2.2 or 1.3/1.4
(big difference!! see http://java.sun.com )


Right. Java 2 has been ported, see www.freebsd.org/ports




Re: To all people who are mailing me.

2001-09-13 Thread Tim O'Neil

At 08:54 AM 9/13/2001, you wrote:
Hi,

and what did u do?

  My mail client had the mailing list address as bcc and was automatically 
 cc'ing peoples personal address.  I didn't notice until I got the usual flames.

It wasn't a big deal until we all started getting
cc'd on your emails to Bethany...





Help with IIS and Tomcat.

2001-09-13 Thread dugan . kc

Hi.
 I'm trying to get Tomcat to work in our server environment.  I've
downloaded and installed Tomcat to our server.  I've followed both the Tomcat
IIS howto and the Minimalistic UG instructions to the best of my knowledge.

 Please help!  We have a team lined up to start JSP programming on Monday
9/17.

 Thanks!

 Kevin Dugan
 CompuCom System, Inc.
 Data Management Team, Procter  Gamble.

  Environment:
NT4.0 service pack 6
IIS 4.0
Sun JDK 1.3.1 installed to D:\opt\jdk1.3.1
Tomcat 3.2.3 installed to D:\opt\jakarta-tomcat-3.2.3\
 All the \conf\ files were combed for Java_home and Tomcat_home variables
and correctly set.
 All registry keys have been triple checked for accuracy according to the
Tomcat IIS how to.
 IIS ISAPI filter has the green UP arrow.


  Problem:
Redirection via ISAPI_REDIRECT.DLL does not seem to be working correctly.
According to the log below, it almost appears it's forwarding the url
/jakarta/isapi_redirect to the ajp12 process instead of
/exampes/jsp/index.html.

  Symptoms:
a) Browser pointed to http://go-datamgt001.na.pg.com/default.asp serves up asp
pages just fine.
b) Browser pointed to 
http://go-datamgt001.na.pg.com:8080/examples/jsp/index.html; works just fine.
c) Browser pointed to http://go-datamgt001.na.pg.com/examples/jsp/index.html;
gives the following error:
NOT FOUND 404
   Original request: /jakarta/isapi_redirect.dll
   Not found request: /jakarta/isapi_redirect.dll

   Logs:
W3SVC\in010913.log shows no activity for the /examples requests.  In case 'b'
this is expected because we're calling Tomcat directly.
In case 'c' this is not expected because of what the Tomcat IIS How To
document indicates about viewing the error.  I've tried changing the log format
from IS to NCSA standard and still only seems to log successful requests.


Below is the text from the ISAPI.LOG file.

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match 
ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a servlet url 
- should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is 
points to the web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of 
/jakarta/isapi_redirect.dll
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (435)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll] is not a 
servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll] is 
points to the web-inf directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 1332
[jk_connect.c (124)]: jk_open_socket, after connect ret = 0
[jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
[jk_connect.c (140)]: jk_open_socket, return, sd = 1332
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = 1332
[jk_ajp12_worker.c (357)]: Into ajpv12_handle_request
[jk_ajp12_worker.c (361)]: ajpv12_handle_request, sending the ajp12 start sequence
[jk_ajp12_worker.c (413)]: ajpv12_handle_request, sending the headers
[jk_ajp12_worker.c (432)]: ajpv12_handle_request, sending the terminating mark
[jk_ajp12_worker.c (477)]: ajpv12_handle_request done
[jk_ajp12_worker.c (148)]: In jk_endpoint_t::service, sent request
[jk_ajp12_worker.c (493)]: Into ajpv12_handle_response
[jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Status: 404 Not Found
[jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Status=404 Not Found
[jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Content-Type: text/html
[jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Content-Type=text/html
[jk_ajp12_worker.c (547)]: ajpv12_handle_response, allocating header arrays
[jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Content-Length: 201
[jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Content-Length=201
[jk_ajp12_worker.c (507)]: ajpv12_handle_response, read Servlet-Engine: Tomcat Web 
Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.3.1; Windows NT 4.0 x86;
java.vendor=Sun Microsystems Inc.)
[jk_ajp12_worker.c (535)]: ajpv12_handle_response, read Servlet-Engine=Tomcat Web 
Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.3.1; Windows NT 4.0 x86;

Re: custom tag

2001-09-13 Thread Craig R. McClanahan

Looks like you have an old copy of servlet.jar in your Java extensions
directory ($JAVA_HOME/jre/lib/ext).  Don't do that.

Craig


On Thu, 13 Sep 2001, Stadie wrote:

 Date: Thu, 13 Sep 2001 19:39:06 +0200
 From: Stadie [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: custom tag

 Hi,
 not easy to run custom tags with tomcat.
 I'm using jakarta-tomcat-4.0-rc1. By trying the example:
 http://localhost:8080/examples/jsp/simpletag/foo.jsp
 an error occurs.
 --- ERROR:
 A Servlet Exception Has Occurred
 org.apache.jasper.JasperException: Unable to compile class for JSP

 An error occurred at line: 15 in the jsp file: /jsp/simpletag/foo.jsp

 Generated servlet error:
 C:\tom40\work\localhost\examples\jsp\simpletag\foo$jsp.java:98: No variable
 EVAL_BODY_AGAIN defined in interface javax.servlet.jsp.tagext.BodyTag.
   } while (_jspx_th_eg_foo_0.doAfterBody() ==
 javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);

 --- END Error

 What is the problem, I'm trying around for several days just to run only one
 custom tag. But nothing works.

 Thanx Peter





RE: Getting Tomcat's Port# in Servlet (using mod_jk)

2001-09-13 Thread Jan Labanowski

I am not sure how your workers are done, but usually each worker gets its own
copies of context files, or its own copy of links to the context files, i.e., 
each context in each worker has its own copy of the web.xml. But I do not
know what you are doing, so I cannot really help...

Jan

On Thu, 13 Sep 2001, Tony Vinayak wrote:

 Hmmm...I am actually letting the loadbalancer worker handle the actual
 allocation of the ajp13 worker (and hence the port#), so I can't hard-code
 the port# in my web.xml.
 
 What I really want to accomplish is to be able to tell within my servlet
 *which* Tomcat worker is handling it. Port# was the first thought as a
 unique identifier; anything else I could use ??
 
 regards,
 Tony
 
 -Original Message-
 From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 13, 2001 12:17 PM
 To: [EMAIL PROTECTED]; Jan Labanowski;
 [EMAIL PROTECTED]
 Subject: Re: Getting Tomcat's Port# in Servlet (using mod_jk)
 
 
 From what I know, you cannot, but you can put the ports in the
 context parameters in web.xml and get these parameters from within servlets
 and JSP.
   context-param
 param-nameconnectorPort/param-name
 param-value8007/param-value
   /context-param
 
 which you can retrieve from a servlet by calling:
 
   getServletContext().getInitParameter(connectorPort);
 or
   Connector port is %= application.getInitParameter(connectorPort) %
 in JSP
 
 The connectors are not part of the spec, and you can only get this
 information by modifying the Tomcat itself and adding methods which could
 retrieve this information. Of course it would be totally unstandard and
 unportable (but in a sense, connectors are not standard anyhow), and
 I am not even sure how you could get to this information easily, since the
 your classloader does not know about Tomcat classes in the
 org.apache.tomcat.service.whatever... You could probably make them write
 something to some static bean where you can get it, but again... This is
 for gurus to tell us, since I would be rediscovering the wheel going through
 the Tomcat source...
 
 Jan
 
 On Thu, 13 Sep 2001, Tony Vinayak wrote:
 
  Greetings,
 
  Am using Tomcat 3.2 with mod_jk and Apache 1.3.20
 
  In my servlet, doing request.getServerPort() tells me the port on which
  Apache is listening (e.g. 80). How can I get to the Port on which Tomcat
  connector (ajp13) is listening (e.g. 8007) ??
 
  regards,
  Tony
 
 
 Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
 Columbus, OH 43212-1163  |http://www.osc.edu/
 
 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




RE: error 404 with a GET request

2001-09-13 Thread Tony Vinayak

Are you using telnet to do the GET? If so, try something like:

telnet localhost 8080
GET /index.vxml HTTP/1.0
Press ENTER

- Tony
-Original Message-
From: Judith NATAF [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 1:28 PM
To: [EMAIL PROTECTED]
Subject: error 404 with a GET request 


I've just installed the jakarta-tomcat-3.2.3 web server.

hen I try to send my http GET request:

 GET http://localhost/index.vxml HTTP/1.0
 Accept: */*
 User-Agent: myClientHttp
 Connection: close

The tomcat web server answers : error 404

When I use Internet Explorer the url works and I get
the page I want.

Is there something missing in my request ?
Do I have missed to configure Tomcat with my proxy address for example ?

Thank you for your help.

Judith.




RE: request logging in Tomcat?

2001-09-13 Thread Schorsch Family

I use the logging in Apache to monitor tomcat requests.

Dave

-Original Message-
From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
R. McClanahan
Sent: Thursday, September 13, 2001 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: request logging in Tomcat?


By default, Tomcat 4 creates access log files for you in the same format
that web servers do.  It includes all of the stuff you are talking about.

Tomcat 3.x does not include this feature, although you could write it
yourself.

Craig McClanahan


On Thu, 13 Sep 2001 [EMAIL PROTECTED] wrote:

 Date: Thu, 13 Sep 2001 12:06:30 +0200
 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: request logging in Tomcat?


 Hi all,

 how can I set up Tomcat (standalone) for logging the incoming requests
 including request path,
 data/time and - very important - the IP and/or domain of the requester?

 I enabled all logging (Tomcat, Servlet, JSP and Context Manager) but I
 didn't get the IP from the
 requesting client. Any ideas?

 Regards

 Michael Brohl









RE: Getting Tomcat's Port# in Servlet (using mod_jk)

2001-09-13 Thread Tony Vinayak

Jan,

All my workers are running on the same box on different ports. They are all
defined in the $TOMCAT_HOME/conf/workers.properties file, and they all share
the webapps deployed under $TOMCAT_HOME/webapps. So there is only ONE copy
of each deployed webapp with its own web.xml.

- Tony

-Original Message-
From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 2:07 PM
To: Tony Vinayak
Cc: Jan Labanowski; [EMAIL PROTECTED]
Subject: RE: Getting Tomcat's Port# in Servlet (using mod_jk)


I am not sure how your workers are done, but usually each worker gets its
own
copies of context files, or its own copy of links to the context files,
i.e.,
each context in each worker has its own copy of the web.xml. But I do not
know what you are doing, so I cannot really help...

Jan

On Thu, 13 Sep 2001, Tony Vinayak wrote:

 Hmmm...I am actually letting the loadbalancer worker handle the actual
 allocation of the ajp13 worker (and hence the port#), so I can't hard-code
 the port# in my web.xml.

 What I really want to accomplish is to be able to tell within my servlet
 *which* Tomcat worker is handling it. Port# was the first thought as a
 unique identifier; anything else I could use ??

 regards,
 Tony

 -Original Message-
 From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 13, 2001 12:17 PM
 To: [EMAIL PROTECTED]; Jan Labanowski;
 [EMAIL PROTECTED]
 Subject: Re: Getting Tomcat's Port# in Servlet (using mod_jk)


 From what I know, you cannot, but you can put the ports in the
 context parameters in web.xml and get these parameters from within
servlets
 and JSP.
   context-param
 param-nameconnectorPort/param-name
 param-value8007/param-value
   /context-param

 which you can retrieve from a servlet by calling:

   getServletContext().getInitParameter(connectorPort);
 or
   Connector port is %= application.getInitParameter(connectorPort) %
 in JSP

 The connectors are not part of the spec, and you can only get this
 information by modifying the Tomcat itself and adding methods which could
 retrieve this information. Of course it would be totally unstandard and
 unportable (but in a sense, connectors are not standard anyhow), and
 I am not even sure how you could get to this information easily, since the
 your classloader does not know about Tomcat classes in the
 org.apache.tomcat.service.whatever... You could probably make them write
 something to some static bean where you can get it, but again... This is
 for gurus to tell us, since I would be rediscovering the wheel going
through
 the Tomcat source...

 Jan

 On Thu, 13 Sep 2001, Tony Vinayak wrote:

  Greetings,
 
  Am using Tomcat 3.2 with mod_jk and Apache 1.3.20
 
  In my servlet, doing request.getServerPort() tells me the port on which
  Apache is listening (e.g. 80). How can I get to the Port on which Tomcat
  connector (ajp13) is listening (e.g. 8007) ??
 
  regards,
  Tony
 

 Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
 Columbus, OH 43212-1163  |http://www.osc.edu/



Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED]
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/





AW: custom tag

2001-09-13 Thread Stadie

 I don't think so, cause its a fresh installation of JDK 1.3.1_01. 

 Looks like you have an old copy of servlet.jar in your Java extensions
 directory ($JAVA_HOME/jre/lib/ext).  Don't do that.
 
 Craig
 
 
 On Thu, 13 Sep 2001, Stadie wrote:
 
  Date: Thu, 13 Sep 2001 19:39:06 +0200
  From: Stadie [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: custom tag
 
  Hi,
  not easy to run custom tags with tomcat.
  I'm using jakarta-tomcat-4.0-rc1. By trying the example:
  http://localhost:8080/examples/jsp/simpletag/foo.jsp
  an error occurs.
  --- ERROR:
  A Servlet Exception Has Occurred
  org.apache.jasper.JasperException: Unable to compile class for JSP
 
  An error occurred at line: 15 in the jsp file: /jsp/simpletag/foo.jsp
 
  Generated servlet error:
  C:\tom40\work\localhost\examples\jsp\simpletag\foo$jsp.java:98: No
 variable
  EVAL_BODY_AGAIN defined in interface javax.servlet.jsp.tagext.BodyTag.
} while (_jspx_th_eg_foo_0.doAfterBody() ==
  javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
 
  --- END Error
 
  What is the problem, I'm trying around for several days just to run only
 one
  custom tag. But nothing works.
 
  Thanx Peter
 



AW: custom tag

2001-09-13 Thread Stadie

Sorry, you're right. Wasn't the servlet.jar, was the j2ee.jar !!
Thanx a lot.

 Looks like you have an old copy of servlet.jar in your Java extensions
 directory ($JAVA_HOME/jre/lib/ext).  Don't do that.
 
 Craig
 
 
 On Thu, 13 Sep 2001, Stadie wrote:
 
  Date: Thu, 13 Sep 2001 19:39:06 +0200
  From: Stadie [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: custom tag
 
  Hi,
  not easy to run custom tags with tomcat.
  I'm using jakarta-tomcat-4.0-rc1. By trying the example:
  http://localhost:8080/examples/jsp/simpletag/foo.jsp
  an error occurs.
  --- ERROR:
  A Servlet Exception Has Occurred
  org.apache.jasper.JasperException: Unable to compile class for JSP
 
  An error occurred at line: 15 in the jsp file: /jsp/simpletag/foo.jsp
 
  Generated servlet error:
  C:\tom40\work\localhost\examples\jsp\simpletag\foo$jsp.java:98: No
 variable
  EVAL_BODY_AGAIN defined in interface javax.servlet.jsp.tagext.BodyTag.
} while (_jspx_th_eg_foo_0.doAfterBody() ==
  javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
 
  --- END Error
 
  What is the problem, I'm trying around for several days just to run only
 one
  custom tag. But nothing works.
 
  Thanx Peter
 



Re: error 404 with a GET request

2001-09-13 Thread David Wall

  GET http://localhost/index.vxml HTTP/1.0
  Accept: */*
  User-Agent: myClientHttp
  Connection: close

 The tomcat web server answers : error 404

The GET should not include the HTTP URL part.  You should connect to port 80
(the http:// part) of 'localhost''s IP address and do a get on just
'/index.vxml'

David




problem with tomcat4.0.7-beta-Apache2.0.16-beta serving JSP pages

2001-09-13 Thread Samantha Nguyen

Hi All,

I just recently installed tomcat4.0.7-beta and apache2.0.16-beta on my sparc
solaris 7 box. I am able to start both of the process, but I am unable to
get tomcat to serve up JSP pages. One thing I've noticed from various
documentations is to configure httpd.conf file to indicate where
mod_proxy.so (or an other documentations libproxy.so) resides. However, I am
unable to locate the mod_proxy.so/libproxy.so modules anywhere, nor am I
able to generate it using the apxs command.

If you have successfully configured Apache2.0-Tomcat4.0 to server JSP pages,
your help is greatly appreciated. Thanks in advance!

--
Sam



Re: AW: custom tag

2001-09-13 Thread Huaxin

I have an sort of irrelant question: when several .jar
file specifies the same class, how should we determine which
.jar file is responsible for the class currently?

Just as we see, too much time has been spent on similar situation
like this one below.

Thanks a lot!
Huaxin

On Thu, 13 Sep 2001, Stadie wrote:

   Sorry, you're right. Wasn't the servlet.jar, was the j2ee.jar !!
   Thanx a lot.

  Looks like you have an old copy of servlet.jar in your Java extensions
  directory ($JAVA_HOME/jre/lib/ext).  Don't do that.
 
  Craig
 
 
  On Thu, 13 Sep 2001, Stadie wrote:
 
   Date: Thu, 13 Sep 2001 19:39:06 +0200
   From: Stadie [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: custom tag
  
   Hi,
   not easy to run custom tags with tomcat.
   I'm using jakarta-tomcat-4.0-rc1. By trying the example:
   http://localhost:8080/examples/jsp/simpletag/foo.jsp
   an error occurs.
   --- ERROR:
   A Servlet Exception Has Occurred
   org.apache.jasper.JasperException: Unable to compile class for JSP
  
   An error occurred at line: 15 in the jsp file: /jsp/simpletag/foo.jsp
  
   Generated servlet error:
   C:\tom40\work\localhost\examples\jsp\simpletag\foo$jsp.java:98: No
  variable
   EVAL_BODY_AGAIN defined in interface javax.servlet.jsp.tagext.BodyTag.
 } while (_jspx_th_eg_foo_0.doAfterBody() ==
   javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
  
   --- END Error
  
   What is the problem, I'm trying around for several days just to run only
  one
   custom tag. But nothing works.
  
   Thanx Peter
  





mod_jk failure

2001-09-13 Thread Sheri_Egri

I am attempting to compile mod_jk to enable the SSL VIA apache previously
handled by jserv.
OS=Solaris2.7
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Perl version 5.00503

-apxs  -o mod_jk.so -DSOLARIS -I/opt/j2sdk1_3_1/include
-I/opt/j2sdk1_3_1/include/solaris -c *.c
ERROR
cc -O -xildoff  -DMACHINE64  -DNO_RC2 -DNO_RC5 -DNO_IDEA -DBSAFE -KPIC
-DSOLARIS2=260 -DMOD_SSL=206104 -DMOD_PERL -DUSE_PERL_SSI -I/include -DEAPI
-DUSE_EXPAT -I../lib/expat-lite -KPIC -DSHARED_MODULE -I/include
-I/opt/j2sdk1_3_1/include -I/opt/j2sdk1_3_1/include/solaris -DSOLARIS  -c
mod_jk.c
cc: unrecognized option `-KPIC'
cc: unrecognized option `-KPIC'
cc: language ildoff not recognized
cc: mod_jk.c: linker input file unused since linking not done
ld -G -o mod_jk.so mod_jk.o
ld: fatal: file mod_jk.o: open failed: No such file or directory
apxs:Break: Command failed with rc=65536

Thank you in advance for any advise.

Sheri Egri
Internet Services
713-831-8339





Off-Topic - JServ and mod_jk

2001-09-13 Thread Richard Bedard

Does anyone know if there is an implementation of ajpv13 for JServ?
If no, what problem will i encounter if i code it myself?
Can i use mod_jk with jserv if i implement ajpv13 in my jserv?
Thanks
Richard



Tomcat 4 Standalone not running, NullPointerException..

2001-09-13 Thread Rajah Kalipatnapu


I successfully built tomcat 4, and when I try to run it as a standalone
server, I get this error in catalina.out. Any body faced this before, any
solution.

Thank you.

Contents from catalina.out

Starting service Tomcat-Standalone Apache Tomcat/4.0-rc1
java.lang.NullPointerException at
java.util.Hashtable.put(Hashtable.java:380) at
org.apache.catalina.core.ContainerBase.setResources(ContainerBase.java:747)
at
org.apache.catalina.core.StandardContext.setResources(StandardContext.java:1
090) at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3328) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at
org.apache.catalina.core.StandardService.start(StandardService.java:388) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at
org.apache.catalina.startup.Catalina.start(Catalina.java:776) at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at
org.apache.catalina.startup.Catalina.process(Catalina.java:179) at
java.lang.reflect.Method.invoke(Native Method) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:212)




AW: custom tag

2001-09-13 Thread Stadie

OK, the test-custom tag is working fine, but I still need the
functionallity of javax.servlet.jsp.* and this seems to be a part of the
j2ee.jar
This one I use is from j2sdkee-1_2_1-win, what should be the right
one. Isn't it?

 Looks like you have an old copy of servlet.jar in your Java extensions
 directory ($JAVA_HOME/jre/lib/ext).  Don't do that.
 
 Craig
 
 
 On Thu, 13 Sep 2001, Stadie wrote:
 
  Date: Thu, 13 Sep 2001 19:39:06 +0200
  From: Stadie [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: custom tag
 
  Hi,
  not easy to run custom tags with tomcat.
  I'm using jakarta-tomcat-4.0-rc1. By trying the example:
  http://localhost:8080/examples/jsp/simpletag/foo.jsp
  an error occurs.
  --- ERROR:
  A Servlet Exception Has Occurred
  org.apache.jasper.JasperException: Unable to compile class for JSP
 
  An error occurred at line: 15 in the jsp file: /jsp/simpletag/foo.jsp
 
  Generated servlet error:
  C:\tom40\work\localhost\examples\jsp\simpletag\foo$jsp.java:98: No
 variable
  EVAL_BODY_AGAIN defined in interface javax.servlet.jsp.tagext.BodyTag.
} while (_jspx_th_eg_foo_0.doAfterBody() ==
  javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);
 
  --- END Error
 
  What is the problem, I'm trying around for several days just to run only
 one
  custom tag. But nothing works.
 
  Thanx Peter
 



Re: AW: custom tag

2001-09-13 Thread Craig R. McClanahan



On Thu, 13 Sep 2001, Stadie wrote:

   OK, the test-custom tag is working fine, but I still need the
 functionallity of javax.servlet.jsp.* and this seems to be a part of the
 j2ee.jar

The servlet API classes are also included in the servlet.jar file included
with Tomcat (for Tomcat 4, this is in the common/lib directory).  You
are not required to have j2ee.jar to build and run web applications.

   This one I use is from j2sdkee-1_2_1-win, what should be the right
 one. Isn't it?


If you used the j2ee.jar from j2sdkee 1.3-beta, you would be able to
compile successfully, but you're still going to screw things up at
runtime, because that JAR also includes a version of Tomcat itself.  You
should not put *any* version of servlet.jar or j2ee.jar into
your system extensions directory.

Craig




RE: request logging in Tomcat?

2001-09-13 Thread Schorsch Family

yes i know, but as logging that he wanted is not available with 3.x.x (as
you pointed out) it is not much of a reach to add apache to get the desired
logs, i.e. An alternative to your suggestion to write the logging from
scratch.

dave

-Original Message-
From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
R. McClanahan
Sent: Thursday, September 13, 2001 2:27 PM
To: [EMAIL PROTECTED]
Subject: RE: request logging in Tomcat?




On Thu, 13 Sep 2001, Schorsch Family wrote:

 Date: Thu, 13 Sep 2001 13:12:54 -0500
 From: Schorsch Family [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: request logging in Tomcat?

 I use the logging in Apache to monitor tomcat requests.


That also works, of course.  But the original question was about Tomcat
stand alone.

 Dave


Craig

 -Original Message-
 From: craigmcc@localhost [mailto:craigmcc@localhost]On Behalf Of Craig
 R. McClanahan
 Sent: Thursday, September 13, 2001 11:01 AM
 To: [EMAIL PROTECTED]
 Subject: Re: request logging in Tomcat?


 By default, Tomcat 4 creates access log files for you in the same format
 that web servers do.  It includes all of the stuff you are talking about.

 Tomcat 3.x does not include this feature, although you could write it
 yourself.

 Craig McClanahan


 On Thu, 13 Sep 2001 [EMAIL PROTECTED] wrote:

  Date: Thu, 13 Sep 2001 12:06:30 +0200
  From: [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: request logging in Tomcat?
 
 
  Hi all,
 
  how can I set up Tomcat (standalone) for logging the incoming requests
  including request path,
  data/time and - very important - the IP and/or domain of the requester?
 
  I enabled all logging (Tomcat, Servlet, JSP and Context Manager) but I
  didn't get the IP from the
  requesting client. Any ideas?
 
  Regards
 
  Michael Brohl
 
 
 
 
 






WEB-INF v. required package subdirectory

2001-09-13 Thread RAndy Peter

I'm using Tomcat 3.2, stand alone.  When I put my servlets under
WEB-INF/classes, everything works fine.  But when I try to place them in the
sub-directory required by a package (for example, WEB-INF/classes/aaa/bbb/),
Tomcat can no longer find them.  I've tried several different placements of
the sub-directory structure, but to no avail.  Anybody care to help me out?




Re: Thread limiting in tomcat.

2001-09-13 Thread Paul Downs

Hi,

 as to why my posts appear on the list as not coming from me?  I think this
 mail client has some quirks (mulberry for the curious).

  Damn, all that hassle for nothing.  It was the mail client I was using.
The dreaded OE is fine.

Paul




configuration of mod_jk and tomcat-4.0

2001-09-13 Thread Jesse Farley

Greetings,

First, I'd normally opt to figure out this problem by myself, but I'm
tempted
to jump out of my skin with frustration at this point -- so if anyone
could offer me assistance, I would greatly appreciate it.

Also, I aplogize for filling your inbox with a long post, but I'd rather
provide
as much information up front as I think could be useful.

Background:
I am trying to setup tomcat-4.0 (rc1) in combination with the mod_jk
connector (from the jakarta-tomcat-connectors cvs tree as of this morning
09/13/2001)

The environment that I started with was IIS on the front
end and the isapi_redirect.dll but since I'm more accustomed to linux,
I've also tried this with apache-1.3.20 on the front end as well.

I get the same error messages from both configurations:
* In the browser  upon attempting to connect to
http://localhost:9600/examples/jsp
   HTTP Status 500 - No Host matches server name localhost
* In the catalina.out file:
=== AjpRequest ===
jvmRoute= null

Ajp13Processor[9610][4] invoking...
WarpEngine[Apache]: Mapping request
WarpEngine[Apache]: Mapping server name 'localhost'
WarpEngine[Apache]:  Trying a direct match
WarpEngine[Apache]:  Trying an alias match
WarpEngine[Apache]:  Trying the default host
[Ajp13] sendHeaders()
[Ajp13] status is:  500(Internal Server Error)
[Ajp13] send()
[Ajp13] sending msg, len = 47
[Ajp13] doWrite(byte[], 0, 140)
[Ajp13] send()
[Ajp13] sending msg, len = 148
[Ajp13] finish()
[Ajp13] send()
[Ajp13] sending msg, len = 6
[Ajp13] recycle()
[Ajp13] receiveNextRequest()
[Ajp13] receive()
Ajp13Processor[9610][4] process: ajp13.receiveNextRequest
java.io.InterruptedIOException: Read timed out
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at org.apache.ajp.Ajp13.receive(Ajp13.java:811)
at org.apache.ajp.Ajp13.receiveNextRequest(Ajp13.java:272)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:338)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:423)
at java.lang.Thread.run(Thread.java:484)
[Ajp13] close()
Ajp13Processor[9610][4] process:  done


I speculate that the problem is related to either:
 1.) Misconfuration of tomcat/mod_jk.
 2.) Perhaps I shouldn't be using the WarpEngine w/ mod_jk?

For the sake of argument, I'm posting a few exerpts from the apache
config files:

server.xml:

blah blah blah... [skip to the important part]
Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=9610
  minProcessors=5 maxProcessors=75 enableLookups=true
   acceptCount=10 debug=6/
  Realm className=org.apache.catalina.realm.MemoryRealm /
Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=8 appBase=webapps 
  !-- Global logger unless overridden at lower levels --
  WarpHost name=localhost debug=0 unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=warp_global_access. suffix=log
 pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
  directory=logs prefix=modjk_errors. suffix=.log
   timestamp=false/
Context path= docBase=ROOT debug=6 reloadable=false/
Context path=/examples docBase=examples debug=6
  reloadable=false/
  /WarpHost
/Engine
  /Service
/Server

 workers.properties -

workers.tomcat_home=/home/jfarley/tomcat-mod_jk/
workers.java_home=/usr/local/jdk1.3.1
ps=/
worker.list=ajp13
worker.ajp13.port=9610
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

uriworkermap.properties -

# Simple worker configuration file
# Advanced mount of the examples context
/examples/*=ajp13
/examples/servlet/*=ajp13


The apache httpd.conf has:
# --- MOD_JK configuration
LoadModule jk_module libexec/mod_jk.so
AddModule  mod_jk.c
JkWorkersFile /home/jfarley/tomcat-mod_jk/conf/workers.properties
JkLogFile /home/jfarley/httpd/logs/mod_jk.log
JkLogLevel debug
JKLogStampFormat [%a %b %d %H:%M:%S %Y]
# and later ...
VirtualHost *
ServerAdmin   root@localhost
ServerNamelocalhost
DocumentRoot  /home/jfarley/tomcat-mod_jk/webapps/ROOT
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /examples/* ajp13
ErrorLog  logs/mod_jk_error.log
CustomLog logs/mod_jk_access.log common
/VirtualHost
---
Do I need a Host section in the server.xml -- or is there something more
fundamentally
incorrect?

Any assistance would be GREATLY apprecaited.

Regards

Jesse Farley
[EMAIL PROTECTED]

(p.s., please copy me on a response -- I'm on tomcat-dev, but not

Should be called a 'hopeful tomcat user' grin

2001-09-13 Thread Victor Lombardo

Hello,
I'm looking at helping out a student group here at the University of
Colorado at Boulder and they need to do some work in Java.  My machine is a
Win2k Server with IIS5. I don't see where that has been addressed in any of
the FAQs. Do you know if Tomcat can work in this environment?

Thanks in Advance,
-Victor




Re: RedHat Linux 7.1, Tomcat 4.0 RC1

2001-09-13 Thread Scott Brinker

Thanks, the log files helped me figure it out (I was pointing at the wrong
directory for JAVA_HOME).

Thanks again,

Scott

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 1:37 PM
Subject: Re: RedHat Linux 7.1, Tomcat 4.0 RC1




 On Thu, 13 Sep 2001, Scott Brinker wrote:

  Date: Thu, 13 Sep 2001 12:53:29 -0400
  From: Scott Brinker [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RedHat Linux 7.1, Tomcat 4.0 RC1
 
  I'm having trouble getting Tomcat 4.0 RC1 to start under RedHat Linux
7.1. I
  have installed the latest release in a directory in /usr/local,
installed
  JSE 1.3.1_01 in /usr/java, and set up JAVA_HOME and CATALINA_HOME
  environment variables.
 
  When I execute ./startup.sh, I get these messages:
 
Using CLASSPATH ...
Using CATALINA_BASE ...
Using CATALINA_HOME ...
 
  And then it returns me to the command prompt. No Tomcat process appears
to
  be running, and no other messages are displayed.
 

 Tomcat starts in the background, and logs all it's output to files in the
 $CATALINA_HOME/logs directory.  Try pointing your browser at:

   http://localhost:8080/

  I should also mention that I've done this as the root account to make
sure
  there weren't permission problems.
 

 You definitly won't want to run it that way, however.

  Can anyone offer any suggestions?
 
  Many thanks,
 
  --
  Scott Brinker
  i-on interactive, inc.
  561.394.9484 (Boca Raton)
  646.486.6204 (New York)
  888.466.4332 (toll-free)
  http://www.i-on.com
 
 

 Craig McClanahan








Please Help with IIS/Tomcat

2001-09-13 Thread Arafat

I have a win2k box with 2 ip addresses on it. x.x.x.1 and x.x.x.2. ip1 has
the default directory that comes with IIS. The home directory for ip2 is
/tomcat/webapps/mycontext.

I have verified that the redirector works. ip1/mycontext and ip2/mycontext
work. Here's the problem...

ip2/contact.html has a link to ip2/contact.jsp. This is where I get the
problem.

If I do http://ip2/contact.jsp I get a error 404 page not found.
If I do http://ip2/mycontext/contact.jsp everything is honkey dorey.

The thing is though, the home directory for ip2 is mycontext.

When I look in the log files I see a GET /jakarta/isapi_redirect.dll - 200

In my uriworkermap.properties I have
/mycontext/*jsp=ajp12
/*.jsp=ajp12

Someone please help me out.
Thanks...


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Configuring a Tomcat worker

2001-09-13 Thread Tony Vinayak

Environment: Tomcat 3.2
Apache 1.3.20
mod_jk
Solaris 2.8

Am trying to define and use a new Tomcat worker, but getting the 500 error.

In the workers.properties file, I defined:

worker.list=TonyWorker
worker.TonyWorker.port=8006
worker.TonyWorker.host=localhost
worker.TonyWorker.type=ajp13

In my httpsd.conf file, I have:
JkMount /myapp/* TonyWorker

In the mod_jk.log file, I get the following:

[jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 7
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
= 1
46
[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
[jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done

What am I doing wrong?

- Tony




context oriented realm and war.file

2001-09-13 Thread Alexander Kogan

Hello,

I'm trying to configure custom security realm
for just one web-app, e.g. for one context only.

I'm deploying the web-app as a war-file, so
the context directory doesn't exist yet.
I put a Realm description into Context
in server.xml.

But, Tomcat 4 (rc1) complains that this context
doesn't exist (of course, war file is not unwared yet).

I'm just wondering am I doing something stupid or
it is not done/tested yet?

Thanks in advance.
Alex.





-- 
__
Alexander Kogan  PTC   www.ptc.com
[EMAIL PROTECTED]140 Kendrick St. Needham MA 02494



Re: WEB-INF v. required package subdirectory

2001-09-13 Thread Jeff Turner

On Thu, Sep 13, 2001 at 03:09:24PM -0500, RAndy Peter wrote:
 I'm using Tomcat 3.2, stand alone.  When I put my servlets under
 WEB-INF/classes, everything works fine.  But when I try to place them in the
 sub-directory required by a package (for example, WEB-INF/classes/aaa/bbb/),
 Tomcat can no longer find them.  I've tried several different placements of
 the sub-directory structure, but to no avail.  Anybody care to help me out?

Simple classpath stuff. If you have a class Foo in aaa/bbb, then it must
be in package aaa.bbb:

package aaa.bbb;
public class Foo {
..
}

--Jeff



Cloudscape and Tomcat

2001-09-13 Thread bants 73

Hi,

I'm using Cloudscape 3.6 / Tomcat 4.0. I've written a very simple hello world 
kind of servlet, which basically loads the driver and gets the database 
connection. I'm able to load the driver (COM.cloudscape.core.JDBCDriver), but 
whenever I'm trying to get the connection using 
DriverManager.getConnection(jdbc:cloudscape:CloudscapeDB;create=true);  I'm 
getting the following exception:

No suitable driver at 
java.sql.DriverManager.getConnection(DriverManager.java:537) at
java.sql.DriverManager.getConnection(DriverManager.java:199) at 
hello.HelloWorld.doDBStuff(HelloWorld.java:52) at
hello.HelloWorld.doGet(HelloWorld.java:30) 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(ApplicationFilt
erChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
43) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:2
19) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2251) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163
) at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) 
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:984)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1074) 
at java.lang.Thread.run(Thread.java:484) 

I've placed all the cloudscape .jar files (RmiJdbc.jar, cloudclient.jar, 
clouscape.jar, cloudutil.jar) in the WEB-INF/lib directory.

I've been hitting against wall for quite some time now, but no luck. I think 
this is a very basic code and somebody must have tried this. Any pointers would 
be appreciated.

Regards,
-Arun


Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag



Re: JDBC Realms 3.3 or maybe 4.0

2001-09-13 Thread Jonathan Eric Miller

You might want to have a look at JNDIRealm in Tomcat 4. If you're also
running a LDAP or NIS server, you might be able to tie into that. For
example, I'm pretty sure iPlanet Directory Server has account expirations.
It depends on what you already have to some extent. I figured that I would
mention it though, since you might not have known about it. It's a
relatively new feature and was just documented.

Jon

- Original Message -
From: Mark Muffett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 11:08 AM
Subject: JDBC Realms 3.3 or maybe 4.0


 I have been using JDBC Realms (with v3.3) with success for some months.  I
 have come to a point where I need to add some new features (expiry dates
 mainly).  I expect I can hack the code to do it, but is there any
 documentation on how best to proceed with this? (since I'd prefer my hack
to
 be portable from 3.3 to the next 3.x version).  I don't suppose it's of
 sufficient interest to try to incorporate within Tomcat proper, but if
 anyone else is working on similar extensions I'd be happy to share code.

 Mark Muffett





Re: tomcat-users.xml reload.

2001-09-13 Thread Jonathan Eric Miller

IMHO, a reload method in MemoryRealm would be very useful though. IMHO,
using JDBC or JNDI in some cases is overkill. For example, if you otherwise
had no need for a SQL server or directory server.

Jon

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 10:53 AM
Subject: Re: tomcat-users.xml reload.




 On Wed, 12 Sep 2001, Benoit Bertrand wrote:

  Date: Wed, 12 Sep 2001 21:26:35 +0200
  From: Benoit Bertrand [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: tomcat-users.xml reload.
 
 hello,
 
 I have got a question concerning tomcat-users.xml reloading. I am
  developping a web application where an administrator can add/remove
user(s)
  (to contraints access to this web app). This operation add/remove the
  necessary information to/from tomcat-users.xml file.
 Unfortunately, i discovered that this file is not updated until the
next
  startup of tomcat. This is to say that to complete the add/remove
operation,
  tomcat should be stopped an restarted (which is not what i intended to
do).
 My question is the following: is there a way to reload the user
access
  from tomcat-users.xml ? If not this should say that i can not use
  tomcat-users.xml to contraints access for my web app ?
 
 Sincerely,
 
 Benoit Bertrand.
 
 
 There is no current mechanism to reload tomcat-users.xml.

 The memory realm is not really designed for production use - it is just
 there to get things working initially without requiring you to set up a
 database or a directory server.  You should use JDBCRealm in a real
 application -- any changes to the underlying data are reflected
 immediately the next time that user logs on, with no need to restart
 anything.

 Craig McClanahan






Configuring a Tomcat worker

2001-09-13 Thread Tony Vinayak

Environment: Tomcat 3.2
Apache 1.3.20
mod_jk
Solaris 2.8

Am trying to define and use a new Tomcat worker, but getting the 500 error.

In the workers.properties file, I defined:

worker.list=TonyWorker
worker.TonyWorker.port=8006
worker.TonyWorker.host=localhost
worker.TonyWorker.type=ajp13

In my httpsd.conf file, I have:
JkMount /myapp/* TonyWorker

In the mod_jk.log file, I get the following:

[jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 7
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno
= 1
46
[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
[jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done

What am I doing wrong?

- Tony





Re: Using Windows Native Security

2001-09-13 Thread Jonathan Eric Miller

In the future when username login mode authentication is supported in
JNDIRealm, you could probably get it to authenticate against ActiveDirectory
that way. It wouldn't actually be using NTLM though. Also, I was thinking
that it might be cool to have a KerberosRealm class that you could use to
authenticate using Kerberos. Kerberos on the backend anyway (not the way
you're supposed to use Kerberos, but, useful if what you want is single
sign-on). Kerberos authentication is supported natively in JDK 1.4. I did
some testing of it using it with JNDI and I was able to authenticate to
Active Directory using Kerberos.

Jon

- Original Message -
From: Frank Lawlor [EMAIL PROTECTED]
To: Tomcat (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, September 12, 2001 4:39 PM
Subject: Using Windows Native Security


 Does anyone have any references or information on using
 native windows security (NTLM?) for Tomcat security?

 Are there any Java JNI wrappers for the native system calls?

 Are there any higher-lever implementations to some other
 more usable interface (JAAS, LDAP, etc.)?

 Thanks,

 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating technology
 strategy and software solutions.







Re: The pitfalls in restarting tomcat

2001-09-13 Thread Jonathan Eric Miller

IMHO, it would still be nice to have a true easy way to completely restart
Tomcat. For example, say you were running into memory leak problems or
something like that. You might want to schedule a script to run once a day
to restart the server. In a perfect world, one would never have to do this,
but, sometimes you run into bugs and you want to make sure that things are
completely reset.

Jon

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 10:57 AM
Subject: Re: The pitfalls in restarting tomcat




 On Wed, 12 Sep 2001, Jonathan Eric Miller wrote:

  Date: Wed, 12 Sep 2001 23:57:07 -0500
  From: Jonathan Eric Miller [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: The pitfalls in restarting tomcat
 
  I agree that there should be a restart.sh. However,  it is possible to
  restart/reload a servlet without having to stop and start Tomcat, in
version
  4 that is, which is due for release any day now. I think you can do it
in
  Tomcat 3 as well. In 4, you can mark a Context as reloadable. Then, it
will
  check the files when they are requested, and if the time stamp is new,
then,
  it will automatically reload the servlet. Also, there is a management
  servlet that allows you to restart other servlets in case you don't want
to
  have auto-reloading on.
 
  Nonetheless, I still think a restart.sh command would be useful.
 

 In Tomcat 4, you can also use the Manager webapp to restart a particular
 app at any time (whether or not you have declared it to be reloadable)
 through an HTTP request like:

   http://localhost:8080/manager/reload?path=/exmaples

 This can also be scripted into shell scripts if you need to restart
 periodically for some reason (such as to switch log files).

 For more info, see

   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

  Jon
 

 Craig

  - Original Message -
  From: Jeff Turner [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Sunday, September 09, 2001 9:55 PM
  Subject: The pitfalls in restarting tomcat
 
 
   Hi,
  
   I was wondering how people who use Tomcat every day) do the stop/start
   cycle that's required whenever something in WEB-INF/lib changes.
  
   ./shutdown.sh ; ./startup.sh is a bad idea, because Tomcat 3.x seems
   to shut down it's threads asynchronously. So after shutdown.sh has
   returned, Tomcat has not necessarily stopped. Then startup.sh comes
   along, finds that your port is in use, and gives you Address already
in
   use errors.
  
   With Tomcat 3.3, it is very easy to confuse Tomcat into thinking that
it
   has shut down (the ajp12.id file does not exist), but it actually
   running. In this (common) situation, there is no way to kill tomcat
   other than killing the processes ('killall java'). Killing tomcat in
   this way is *very* dangerous, because it sometimes leaves threads in
the
   state described by 'man ps' as:
  
 D   uninterruptible sleep (usually IO)
  
   Then you're plain screwed; the thread is completely unkillable even by
   root, and is holding onto your tomcat port (8080). The only option is
to
   reboot the machine.
  
   So anyway, has anyone got a safer way of restarting tomcat? Perhaps a
   script that waits until Tomcat is *really* dead before restarting? It
   would be nice if there was direct support in Tomcat for this everyday
   task (a restart.sh script).
  
   --Jeff
  
 
 





Re: To all people who are mailing me.

2001-09-13 Thread Jonathan Eric Miller

Yeah, I noticed that this morning. I was going to complain, but, I figured,
I'd be nice. ;-)

Jon

- Original Message -
From: Paul Downs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 10:54 AM
Subject: Re: To all people who are mailing me.


 Hi,

  and what did u do?

   My mail client had the mailing list address as bcc and was automatically
 cc'ing peoples personal address.  I didn't notice until I got the usual
 flames.

 Paul





  1   2   >