Cannot allocate servlet instance

2002-08-09 Thread Ryszard Lach

Hi!

Since yesterday I receive an error while calling one servlet, which
allways has run properly. What is wrong with it ? 

My configuration: Tomcat 4.0.4, JDK1.3.1.

2002-08-09 08:51:38 StandardWrapper[:org.apache.catalina.INVOKER.]: Marking servlet 
org.apache.catalina.INVOKER. as unavailable
2002-08-09 08:51:38 invoker: Cannot allocate servlet instance for path /
javax.servlet.ServletException: Wrapper cannot find servlet class  or a class it 
depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:400)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
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:2347)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
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:174)
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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:484)


- Root Cause -
java.lang.ClassNotFoundException: 
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:867)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:400)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 

Re: Cannot allocate servlet instance

2002-08-09 Thread Gabriel Gajdos

This problem happens when Wrapper cannot find servlet class  or a
 class it depends on .
Check the classpath, jar files, or some other classes with static {}
statements.

May be that one of the classes that this server needs cannot be loaded due to
problem in its static {} context.

One example:

I have MyClass with static{ } which throws a RuntimeException.
Servlet has one variable which is result of MyClass.
When calling MyClass.myMethod() or just access to its public variables the
Exception is thrown. JVM cannot load this Servlet class into memory becose it
depends on correct loading of MyClass.

GG

- Original Message -
From: Ryszard Lach [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 09, 2002 9:00 AM
Subject: Cannot allocate servlet instance


|
|
| Hi!
|
| Since yesterday I receive an error while calling one servlet, which
| allways has run properly. What is wrong with it ?
|
| My configuration: Tomcat 4.0.4, JDK1.3.1.
|
| 2002-08-09 08:51:38 StandardWrapper[:org.apache.catalina.INVOKER.]: Marking
| servlet org.apache.catalina.INVOKER. as unavailable
| 2002-08-09 08:51:38 invoker: Cannot allocate servlet instance for path /
| javax.servlet.ServletException: Wrapper cannot find servlet class  or a
| class it depends on
| at
|
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
| at
| org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
| at
|
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:4
00)
| at
| org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
| at
|
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi
lterChain.java:247)
| at
|
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai
n.java:193)
| at
|
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
:243)
| at
|
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
| at
| org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
| at
| org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
| at
|
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java
:190)
| 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:2347)
| at
|
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
| at
|
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566
)
| at
|
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.ja
va:170)
| at
|
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
)
| at
|
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
| at
|
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564
)
| at
| org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
| 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:1
74)
| 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.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
| at
| org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
| at java.lang.Thread.run(Thread.java:484)
|
|
| - Root Cause -
| java.lang.ClassNotFoundException:
| at
|
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1406)
| at
|
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1254)
| at
|
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:867)
| at
| org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
| at
|
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:4
00)
| at
| 

Re: Accessing Mapped Drives

2002-08-09 Thread Gabriel Gajdos

| What permissions do I need to setup for Tomcat to be able to access
| shared network drives on win2k?  I'm able to access shares through an
| IDE of course, but Tomcat returns null for all io calls to these mapped
| drives.

Tomcat (or its JVM) has nothing to do with accessing some parts of filesystem
(such as mapped drives).

| If anyone has accomplished this or can point me in the right direction,
| I would be much obliged :-)

I would recommend to check the user access rights for the user the Tomcat runs
for. For testing purposes you can temporary change the user to Administrator
and see if the problem persists.
May be that the drive is not mapped correctly for Tomcat's user.

GG


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




RE: Accessing Mapped Drives

2002-08-09 Thread Klas Nyman

If you run Tomcat as a service you proberly don't have the same set of shares as an 
logged in user.

/Klas

-Original Message-
From: Gabriel Gajdos [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 9:11 AM
To: Tomcat Users List
Subject: Re: Accessing Mapped Drives


| What permissions do I need to setup for Tomcat to be able to access
| shared network drives on win2k?  I'm able to access shares through an
| IDE of course, but Tomcat returns null for all io calls to these mapped
| drives.

Tomcat (or its JVM) has nothing to do with accessing some parts of filesystem
(such as mapped drives).

| If anyone has accomplished this or can point me in the right direction,
| I would be much obliged :-)

I would recommend to check the user access rights for the user the Tomcat runs
for. For testing purposes you can temporary change the user to Administrator
and see if the problem persists.
May be that the drive is not mapped correctly for Tomcat's user.

GG


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

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




AW: Missing constructor!??

2002-08-09 Thread Power-Netz \(Schwarz\)

 
 I thought constructors weren't supposed to be marked public? Either way I
 tried and it made no difference.

You have tested your class from a normal java test routine or? 
If you can use it from normal java code, you can use it from jsp,
except you did something wrong in the includes..

M.Schwarz

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




RE: silent installation of jakarta-tomcat-4.0.1.exe on win32

2002-08-09 Thread Hubert DELOFFRE

No ideas?

-Message d'origine-
De : Hubert DELOFFRE 
Envoyé : mercredi 7 août 2002 14:29
À : [EMAIL PROTECTED]
Objet : silent installation of jakarta-tomcat-4.0.1.exe on win32


Hello!

I have to install tomcat on a win2k/nt plateform, but i have to do that silently... 
So, i find a command line option like  jakarta-tomcat-4.0.1.exe /S 
/D=installLocation who run the installer silently and copy files in 
'installLocation'... But how can i specify wich setup type (or features) i want???

Thanks!



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




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




Help Please... Mod_jk +Manager App

2002-08-09 Thread None None

Hi,
 I have tomcat 4.03 and apache 1.3, installed and
running fine. My issue, is when I deploy a web
application using tomcat's manager service, then the
conf/auto/mod_jk.conf is not regenerated.

How do I configure tomcat to regenerate the
mod_jk.conf file when the manager service deploys a
new web application?

Thanks

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: HP-UX 11 mod_jk error

2002-08-09 Thread John Whitley

Ganesh,

The shared library calls dl* are only available on 64-bit HP-UX 11.00. I 
seem to remember that they are not available on 32-bit HP-UX until 11.11 
(11i). We had to rebuild ours for 32-bit use by providing stubs for the 
calls. This worked in our case because we do not use the functionality 
of mod_jk which requires shared libraries. We are using mod_jk  purely 
as an interface between Apache and tomcat. If you download the 
connectors part of tomcat, you will find a script for compiling mod_jk 
on hp-ux, for either ANSI cc or gcc.

Regards

John Whitley


Sankaranarayanan (Ganesh) Ganapathy wrote:

I am trying to setup the tomcat4.0.4 against apache 1.3.26 on HP-UX 11..

I built the redirector and it went thru fine. But when I try to load it in apache I 
see the following errors:

Am I missing some patch?

Can somebody help.

Thanx in advance!
Ganesh

/usr/lib/dld.sl: Unresolved symbol: dlclose (code)  from 
/export/home/ganesh/apache_1.3.26/bindist/libexec/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlopen (code)  from 
/export/home/ganesh/apache_1.3.26/bindist/libexec/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlerror (code)  from 
/export/home/ganesh/apache_1.3.26/bindist/libexec/mod_jk.so
/usr/lib/dld.sl: Unresolved symbol: dlsym (code)  from 
/export/home/ganesh/apache_1.3.26/bindist/libexec/mod_jk.so
Syntax error on line 236 of /export/home/ganesh/apache_1.3.26/bindist/conf/httpd.conf:
Cannot load /export/home/ganesh/apache_1.3.26/bindist/libexec/mod_jk.so into server: 
Unresolved external

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




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




configuring tomcat for 100+ contexts

2002-08-09 Thread B. Duffee

G'day all:

How do I tell tomcat that everything under a WEB-INF is a tomcat context?  (A 
colleague said he saw it in the docs somewhere, but neither of us can find it 
again and I've had no success in my archive and web searches)

I've got 3 courses of 100 students, some of which want to use JSP and servlets.  
For the last installation (tomcat3), I added in a context for each interested 
student in the servlet.xml.  I would _like_ to be able to say for every 
directory that you find a WEB-INF, such as
/var/www/htdocs/$course/$student/WEB-INF

Would
Context path= docBase=/var/www/htdocs/*/*
appBase=/var/www/htdocs/ reloadable=true debug=0/
make any sense?

System:  tomcat-4.0.3, Solaris 8, apache_1.3.22 is handling static content

Any hints most thoroughly welcome,
---
Boyd Duffee,Keele University Computer Science (01782) 583437 
Computing Officer
...Microsoft follows standards.  In much the same manner that fish follow 
migrating caribou. Now I have this image in my mind of a fish embracing and
extending a caribou. -- Paul Tomblin and Christian Bauernfeind in the SDM 


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




AW: configuring tomcat for 100+ contexts

2002-08-09 Thread Power-Netz \(Schwarz\)

student in the servlet.xml.  I would _like_ to be able to say for every
 directory that you find a WEB-INF, such as
   /var/www/htdocs/$course/$student/WEB-INF

 Would
   Context path= docBase=/var/www/htdocs/*/*
   appBase=/var/www/htdocs/ reloadable=true debug=0/
 make any sense?


I suggest a small perl script that produces the apps-X.xml files in
$TOMCAT_HOME/conf .
You could create/delete your students and courses and just run it to get the
newest working config without
touching server.xml. It can clone the webapps directory of each
a.o.a.o.a.o  :)
Just the restarting would take a while :-))

M.Schwarz



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




Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Horn, Rob
Title: Is it possible to include via a directive snippets into the server.xml file





Within our project we have an overlap of responsibility between the infrastructure team who are responsible for building the application servers and the development team who are responsible for delivering an application ready for deployment.

The overlap centres on server.xml


The infrastructure guys need to put host specific information into server.xml


The development guys are dependent on a context definition and resources defined within it.


My question is therefore ... is it possible to include a snippet for the context that the development team can maintain into the infrastructure maintain server.xml file.

Cheers


Rob Horn




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


Login problem with reverse proxy

2002-08-09 Thread Barney Hamish

Hi,
I'm using tomcat 3.2 with form based login and an apache reverse proxy to
filter requests to the webserver. When tomcat issues the redirect to the
login page the users are sent directly to the webserver not the reverse
proxy. As the webserver is not directly accessable they are unable to
request the log-in page. Is anyone aware of a way I can configure tomcat and
or the reverse proxy to make this set-up work?


More info:

-Internet--
|
Reverse Proxy
|
Private Net
|
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

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




Re: Login problem with reverse proxy

2002-08-09 Thread JensStutte

   
  
Barney Hamish  
  
Hamish.Barney@ect-teTo: 
'[EMAIL PROTECTED]'  
lecoms.de   [EMAIL PROTECTED]  
  
 cc:   
  
09/08/2002 11.32 Subject: Login problem with 
reverse proxy   
Please respond to  
  
Tomcat Users List
  
   
  
   
  








Hi,
I'm using tomcat 3.2 with form based login and an apache reverse proxy to
filter requests to the webserver. When tomcat issues the redirect to the
login page the users are sent directly to the webserver not the reverse
proxy. As the webserver is not directly accessable they are unable to
request the log-in page. Is anyone aware of a way I can configure tomcat
and
or the reverse proxy to make this set-up work?


More info:

-Internet--
   |
Reverse Proxy
   |
Private Net
   |
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the
client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

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






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




Re: IIS 5.0 Help

2002-08-09 Thread @Basebeans.com

Subject: Re: IIS 5.0 Help
From: Jean Fotovat [EMAIL PROTECTED]
 ===
hello michael,

tell me please how do you use tomcat 3.2.1 and iis 5 under windows 2000.
thank you

jean
Michael A. Plett [EMAIL PROTECTED] a écrit dans le message news:
[EMAIL PROTECTED]
I have a windows 2000 server with IIS 5.0 on it.  I have used tomcat 3.2
with no problem.  When I try to install 4.0.3 on it I can not get it to
work without having to append :8080 to the URL's.  This works ok for my
inside network but for the outside network you can not get to the URL's
through :8080.  What would be the problem? or does anyone know how to
solve this?

thanks

 ___
|   |
  _ |Michael Plett  | _
 / )|Manager Application Engineering|( \
/ / |  MailTo: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
| \ \
  _( (  |  _ _  |  ) )_
 (((\ \ |_/ )___( \_| / /)))
 (\\ \ \_/ / \ \_/ / file://)
  \   /Axis Technologies  \   /
   \_/16633 Dallas Parkway Suite 600   \_/
   /   /   Addison, TX 75001 \   \
  /___/   (972) 588-1874   FAX: (972) 588-1876\___\
1-888-324-2036





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




AW: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Ralph Einfeldt

AFAIK tomcat 4.1 has something like that. (Can't 
find the pointer to that, but there was a post from 
Craig about that a while ago in this list)

If you have to use 4.0 you could use a preprocessor
and an shellscript that create server.xml from seperate 
files from the two teams:

E.g.:

conf/server.xml.m4:
  !-- Everything before the contexts from the 
   infrastructure team 
   --

  include('conf/context.xml')
  !-- Everything after the contexts from the 
   infrastructure team 
  --

conf/context.xml
  !-- Everything from the development --

bin/htstart:
  #!/bin/sh
  JAVA_HOME=/usr/local/java/jdk1.3.1
  CATALINA_HOME=/usr/local/java/jakarta-tomcat-4.0.3
  CATALINA_BASE=/www/develop/www.tomcat.de

  export JAVA_HOME CATALINA_HOME CATALINA_BASE

  cd ${CATALINA_BASE}
  m4 conf/server.xml.m4  conf/server.xml

  ${CATALINA_HOME}/bin/startup.sh


-Ursprüngliche Nachricht-
Von: Horn, Rob [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. August 2002 11:19
An: '[EMAIL PROTECTED]'
Betreff: Is it possible to include via a directive snippets into the
server.xml file


Within our project we have an overlap of responsibility between the
infrastructure team who are responsible for building the application
servers and the development team who are responsible for delivering an
application ready for deployment.
The overlap centres on server.xml 
The infrastructure guys need to put host specific information into
server.xml 
The development guys are dependent on a context definition and resources
defined within it. 
My question is therefore ... is it possible to include a snippet for
the context that the development team can maintain into the
infrastructure maintain server.xml file.
Cheers 
Rob Horn 

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




Re: AW: configuring tomcat for 100+ contexts

2002-08-09 Thread B. Duffee

student in the servlet.xml.  I would _like_ to be able to say for every
 directory that you find a WEB-INF, such as
  /var/www/htdocs/$course/$student/WEB-INF

 Would
  Context path= docBase=/var/www/htdocs/*/*
  appBase=/var/www/htdocs/ reloadable=true debug=0/
 make any sense?

I suggest a small perl script that produces the apps-X.xml files in
$TOMCAT_HOME/conf .
You could create/delete your students and courses and just run it to get the
newest working config without
touching server.xml. It can clone the webapps directory of each
a.o.a.o.a.o  :)
Just the restarting would take a while :-))

I was sort of doing that the last time because adding in one person at a time 
(they never make it easy for you) started getting tedious.  I could care less 
about start up times (they're only users, after all ;)  Oh yes, I'm also using 
mod_webapp, if that makes a difference.

I was hoping for an eloquent solution that would recognize that all WEB-INF 
directories beneath htdocs are a tomcat context.

danke,
---
Boyd Duffee,Keele University Computer Science (01782) 583437 
Computing Officer
...Microsoft follows standards.  In much the same manner that fish follow 
migrating caribou. Now I have this image in my mind of a fish embracing and
extending a caribou. -- Paul Tomblin and Christian Bauernfeind in the SDM 


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




Re: Login problem with reverse proxy

2002-08-09 Thread JensStutte


Sorry for the empty mail, i struggled with my Lotus client (who the heck
creates a dialog box that defaults to Send when closing a modified mail
without sending it ?)...

I have a similar configuration here (slightly complicated due to the use of
struts). You must follow some rules in your design, to be able to do this:
- do not use browser redirects, but internal redirects. Or create
dynamically JavaScript redirects on your pages (not very nice, i know).
- use only relative URLs. Otherwise, especially if your application does
not map to your proxys root directory but some subfolder, nothing will
work.
- if you use struts, be aware of some tags, that create absolut URL pathes
(the form tag for example). I extended and overrided some of these tags in
order to create relative pathes (the struts community has decided, to not
treat this issue).

Hence, the most existing J2EE applications, that are not designed and
tested for a similar environment, most likely won't work without
modifications.

Regards,

Jens Stutte



   
  
JensStutte@qu  
  
idinfo.itTo: Tomcat Users List   
  
 [EMAIL PROTECTED]  
  
09/08/2002   cc:   
  
11.46Subject: Re: Login problem with reverse 
proxy   
Please 
  
respond to 
  
Tomcat Users  
  
List  
  
   
  
   
  





Barney Hamish

Hamish.Barney@ect-teTo:
'[EMAIL PROTECTED]'
lecoms.de
[EMAIL PROTECTED]
 cc:

09/08/2002 11.32 Subject: Login problem
with reverse proxy
Please respond to

Tomcat Users List











Hi,
I'm using tomcat 3.2 with form based login and an apache reverse proxy to
filter requests to the webserver. When tomcat issues the redirect to the
login page the users are sent directly to the webserver not the reverse
proxy. As the webserver is not directly accessable they are unable to
request the log-in page. Is anyone aware of a way I can configure tomcat
and
or the reverse proxy to make this set-up work?


More info:

-Internet--
   |
Reverse Proxy
   |
Private Net
   |
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the
client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

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






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






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




Problems getting login to work

2002-08-09 Thread Paul Hunnisett

Hello,

I'm trying to get users to log in to my app by using login-config in my
web.xml.  Most of my site is protected using security constraints.  For
some reason, now whenever I try to log in as a registered user, I get
the following error:

The request sent by the client was syntactically incorrect (Invalid
direct reference to form login page)

The login page is included using jsp:include on my index jsp and is a
simple login form using j_security-check etc...

Any thoughts as to why this might be happening.  I am running tomcat 4.1
on Linux using JDK1.4 - although I need this to work on Windows as well.
(I get the same problem when trying to run this on Windows)

Paul Hunnisett



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




RE: Problems getting login to work

2002-08-09 Thread Barney Hamish

The login page shouldn't be referred to directly. The standard states that
when a user first tries to access a resource secured by a security
constraint then they will be forwarded to the login page. Don't put the
login form in you index.jsp.. or have your index.jsp being secure so that
the user is forwarded to the login form on first visiting your website.
Hamish

-Original Message-
From: Paul Hunnisett [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Problems getting login to work


Hello,

I'm trying to get users to log in to my app by using login-config in my
web.xml.  Most of my site is protected using security constraints.  For
some reason, now whenever I try to log in as a registered user, I get
the following error:

The request sent by the client was syntactically incorrect (Invalid
direct reference to form login page)

The login page is included using jsp:include on my index jsp and is a
simple login form using j_security-check etc...

Any thoughts as to why this might be happening.  I am running tomcat 4.1
on Linux using JDK1.4 - although I need this to work on Windows as well.
(I get the same problem when trying to run this on Windows)

Paul Hunnisett



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

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




RE: forward

2002-08-09 Thread Turner, John


Which tomcat 4 is it?  I am using Forte on Win2000 and don't see those
errors, but I installed tomcat 4.0.3.  I don't use the tomcat that came with
Forte.  Adding another tomcat install is very, very easy:

- download the tomcat you want, (I downloaded the binary for 4.0.3)
- put it in a directory with an 8.3 name, such as c:\tomcat (mine is
c:\tomcat\jakarta-tomcat-4.0.3)
- in Forte, on the Runtime tab, under Installed Servers, right-click on
Tomcat 4.0 and choose Add Tomcat 4.0 installation, then in the window
that pops up, point at your new tomcat install
- on the Runtime tab, under Server Registry-Default Servers, right-click on
Web Tier Applications and choose Set default server, then choose the
tomcat installation you just installed.

That's all it takes.  In a couple of minutes, you can easily see if it's
related to the version of tomcat you are using.  I know that I tried to get
Forte 4 to work with Tomcat 4.0.4, and got error messages, though I don't
remember if they were the same/similar to what you are seeing.  The folks on
the Netbeans list might be able to help, though when I reported my errors, I
was told to file a bug report under tomcat integration, so your problem
could very well be related to Forte, and not tomcat.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Carl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 4:41 PM
To: [EMAIL PROTECTED]
Subject: jsp:forward


I am not certain this question was posted and since it is important to me, I
am sending it again just to be certain.  I apologize in advance if I have
cluttered up your inboxes.

I am using Tomcat 4.0 downloaded as part of the Forte 4 download (Java 1.4)
running on a Win 2000 computer.  Whenever I use 

jsp:forward page=/jsp/somepage /

I get a null pointer error:

2002-08-08 14:29:45 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
java.lang.NullPointerException
at
org.netbeans.modules.web.monitor.catalina.DispatchListener.instanceEvent(Dis
patchListener.java:65)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.j
ava:342)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:712)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:409)
at org.apache.jsp.forward$jsp._jspService(forward$jsp.java:93)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper
.service(IDEJspServlet.java:174)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(ID
EJspServlet.java:247)
at
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspSer
vlet.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter
.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.j
ava:142)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at

RE: Login problem with reverse proxy

2002-08-09 Thread Barney Hamish

Thanks Jens. I'm afraid that doesn't help with my specific problem. This is
something to do with the forwarding of requests to the login page that
Tomcat does internally. I'm not sure how I can avoid that in the way I
design my application (if I want to use the built-in authentication method
without modifying the way Tomcat handles realms).
Do you know how I can deal with this specific problem?
Thanks,
Hamish



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:58 PM
To: Tomcat Users List
Subject: Re: Login problem with reverse proxy



Sorry for the empty mail, i struggled with my Lotus client (who the heck
creates a dialog box that defaults to Send when closing a modified mail
without sending it ?)...

I have a similar configuration here (slightly complicated due to the use of
struts). You must follow some rules in your design, to be able to do this:
- do not use browser redirects, but internal redirects. Or create
dynamically JavaScript redirects on your pages (not very nice, i know).
- use only relative URLs. Otherwise, especially if your application does
not map to your proxys root directory but some subfolder, nothing will
work.
- if you use struts, be aware of some tags, that create absolut URL pathes
(the form tag for example). I extended and overrided some of these tags in
order to create relative pathes (the struts community has decided, to not
treat this issue).

Hence, the most existing J2EE applications, that are not designed and
tested for a similar environment, most likely won't work without
modifications.

Regards,

Jens Stutte



 

JensStutte@qu

idinfo.itTo: Tomcat Users List

 [EMAIL PROTECTED]

09/08/2002   cc:

11.46Subject: Re: Login problem with
reverse proxy   
Please

respond to

Tomcat Users

List

 

 






Barney Hamish

Hamish.Barney@ect-teTo:
'[EMAIL PROTECTED]'
lecoms.de
[EMAIL PROTECTED]
 cc:

09/08/2002 11.32 Subject: Login problem
with reverse proxy
Please respond to

Tomcat Users List











Hi,
I'm using tomcat 3.2 with form based login and an apache reverse proxy to
filter requests to the webserver. When tomcat issues the redirect to the
login page the users are sent directly to the webserver not the reverse
proxy. As the webserver is not directly accessable they are unable to
request the log-in page. Is anyone aware of a way I can configure tomcat
and
or the reverse proxy to make this set-up work?


More info:

-Internet--
   |
Reverse Proxy
   |
Private Net
   |
Webserver (with Tomcat)

When a request for a secure resource is sent to the reverse proxy, it
forwards that request to the webserver. If the user is not logged-in tomcat
tries to redirect the user to the login form. In that redirect Tomcat
apparently includes the IP address of the server upon which it is currently
residing. The reverse proxy forwards the webserver's response to the
client.
When the client tries to request the log-in page from the directly from the
webserver it is unable to reach the webserver.

Hamish

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






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






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

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




RE: Apache2 - Tomcat4 Integration

2002-08-09 Thread Turner, John


Aw, shucks.

Any comments or suggestions you have towards making my HOWTO work with both
apache 1.3 and apache 2.0 would be greatly appreciated. That goes for tomcat
4.1.x beta comments as well.  I would be glad to add them to the document.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Lou Fox [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 4:44 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Apache2 - Tomcat4 Integration


Have you gotten any help on this?  Last night I started on practically the
same task, the only difference is that I'm using Tomcat4.18Beta (I hear the
performance is far superior to any other tomcat version), anyway I found
this page that gives great instructions for  apache 1.3.26 / tomcat 4.0.4 /
mod_jk.  I'm going to try to follow the directions tonight.  I'm hoping that
apache 1.3.26 is similar enough to apache 2, and tomcat 4.0.4 is similar to
tomcat 4.1.8 beta.  Here's the link:

http://www.johnturner.com/howto/apache-tomcat-howto.html

Let me know how it goes and I'll do the same for you.  Good luck.

- Original Message -
From: Brian Orledge [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 08, 2002 12:06 PM
Subject: Apache2 - Tomcat4 Integration


 Hello,

 I have spent over 3 days trying to integrate Apache2  and Tomcat4.0.3 on
 RH 7.2.  Standalone tomcat works fine.  I am using mod_jk2.so.  When I
 try to request a jsp page from Apache, I notice 2 main errors :

 In apache2/log/error.log :  [error] ajp14.service() error sending, retry
 on new endpoint tomcat1
 The page returned is Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
 configured to process this request

 I am trying to access a page
 /usr/local/jakarta-tomcat-4.0.3/webapps/examples/jsp/dates/date.jsp
 through the url http://localhost/examples/jsp/dates/date.jsp

 Thanks in advance.

 Brian Orledge
 Revenue Solutions, Inc.
 301.240.2182


 My config files follow :

 Server.xml:

 !-- Example Server 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=99

   !-- 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 (see the SSL
 Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR
 files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
 (Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
 (Unix)
with a password value of changeit for both the certificate
 and
the keystore itself.

  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 tomcatAuthentication=false
 minProcessors=5 maxProcessors=75
enableLokups=true debug=99
 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 

RE: Tomcat 4.1 and IIS

2002-08-09 Thread Turner, John


As far as I know, the Coyote connector is for using tomcat stand-alone.  The
Coyote connector allows tomcat to behave as a standard HTTP/1.1 web server.

I think you want the AJP connector:
http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm

That's the only URL I have for tomcat+IIS, I hope it helps.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Michael Reardon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 6:41 PM
To: Tomcat User
Subject: Tomcat 4.1 and IIS


Quick question..
Has anyone had any luck with the Coyote connector and IIS 5?

Thanks,
Michael Reardon


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

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




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Horn, Rob
Title: RE: Is it possible to include via a directive snippets into the server.xml file





Spot on !


Thanks


Rob


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2002 11:28
To: Tomcat Users List
Subject: AW: Is it possible to include via a directive snippets into the
server.xml file



AFAIK tomcat 4.1 has something like that. (Can't 
find the pointer to that, but there was a post from 
Craig about that a while ago in this list)


If you have to use 4.0 you could use a preprocessor
and an shellscript that create server.xml from seperate 
files from the two teams:


E.g.:


conf/server.xml.m4:
 !-- Everything before the contexts from the 
 infrastructure team 
 --


 include('conf/context.xml')
 !-- Everything after the contexts from the 
 infrastructure team 
 --


conf/context.xml
 !-- Everything from the development --


bin/htstart:
 #!/bin/sh
 JAVA_HOME=/usr/local/java/jdk1.3.1
 CATALINA_HOME=/usr/local/java/jakarta-tomcat-4.0.3
 CATALINA_BASE=/www/develop/www.tomcat.de


 export JAVA_HOME CATALINA_HOME CATALINA_BASE


 cd ${CATALINA_BASE}
 m4 conf/server.xml.m4  conf/server.xml


 ${CATALINA_HOME}/bin/startup.sh



-Ursprüngliche Nachricht-
Von: Horn, Rob [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 9. August 2002 11:19
An: '[EMAIL PROTECTED]'
Betreff: Is it possible to include via a directive snippets into the
server.xml file



Within our project we have an overlap of responsibility between the
infrastructure team who are responsible for building the application
servers and the development team who are responsible for delivering an
application ready for deployment.
The overlap centres on server.xml 
The infrastructure guys need to put host specific information into
server.xml 
The development guys are dependent on a context definition and resources
defined within it. 
My question is therefore ... is it possible to include a snippet for
the context that the development team can maintain into the
infrastructure maintain server.xml file.
Cheers 
Rob Horn 


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




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


Custom error pages and BASIC authorization

2002-08-09 Thread Joe Tomcat

Hello fellow Tomcat users.  I am trying to set up a very simple web app
that has only static html pages.  I want it to use BASIC authorization
for just a few users.  Simple stuff, right?  I added the user and role
that I wanted in the tomcat-users.xml file, and then I put this in the
web.xml file for the application (which happens to be the ROOT
application):

web-app

error-page
  error-code404/error-code
  location/errors/404.html/location
/error-page

error-page
  error-code401/error-code
  location/errors/401.html/location
/error-page

security-constraint
  web-resource-collection
   web-resource-namePrivateStuff/web-resource-name
   url-pattern/private/*/url-pattern
  /web-resource-collection

  auth-constraint
   role-namePrivateUsers/role-name
  /auth-constraint
/security-constraint

login-config
  auth-methodBASIC/auth-method
  realm-namePrivate/realm-name
/login-config

/web-app

I have a /index.html file which has a link to /PrivateStuff.  The user
clicks the link and should be prompted for a username and password,
right?  Wrong!  It goes immediately to the not authorized page in
/errors/401.html.  If I take the two error-page sections out of web.xml,
then everything works correctly, but I get the Tomcat default error
pages for file not found and auth error.  Showing default server error
pages looks quite unprofessional, so I want to not do this.  Any
sugestions?

Thanks!

Btw, is there any company which sells commercial support for Tomcat?



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




codebase not accepted - Security Manager - catalina.policy

2002-08-09 Thread Juraj Lenharcik

Hi,


I use the Security Manager in my Webapps. Everythink works fine, until I
write the codeBase parameter to the grant in my catalina.policy. Then I get
some security Exceptions, which are not when I use only grant standalone.
I use this entry in my catalina.policy:

grant codeBase file:${catalina.home}/webapps/-{ 
permission java.lang.RuntimePermission getClassLoader;
};

And get this Exception:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission
 getClassLoader)

If the - Element works, than I shouldn't get any Permission-Exceptions. Or
is there any syntax error in my configuration? Has someone a example with
codebase and - which ist working?


bye
juraj 

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




Problems with class loader

2002-08-09 Thread Juergen . Praska

Hello,

we have problems with the tomcat class loaders.

scenario:
Tomcat 4.0.4, jdk1.3
2 Applications

App1:webapps/App1/WEB-INF/lib/x.jar
App2:webapps/App2/WEB-INF/lib/x.jar (the same .jar-file)

x.jar: a.class, b.class, c.class

b.class has a Hashtable (com.sun.java.util.collections.Hashtable) as
member-variable. (Hashtable is in the directory $CATALINA_HOME/lib/).
In the Hastable are Objects of the c.class.

class a in App1 serialize class b and save it in persistence (poet-)classes
in directory ($CATALINA_HOME/lib/).
In App2 class a load the serialized class from the persistence classes and
deserialize it (-- class b).
Then, a ClassNotFoundException (class c) is thrown (see lower). Why???

class b and the Hashtable are loaded, but not class c.

It is as follows: ?
The applicationClassLoader finds the class b and then the
StandardClassLoader finds the Hashtable and then (however??) the
StandardClassLoader try to load class c. And of course the class loader
can't find the class c!


thanks
jürgen


 at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoade
r.java:1127)
 at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoade
r.java:992)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:195)
 at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:654)
 at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
 at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
 at com.sun.java.util.collections.Hashtable.readObject(Hashtable.java:773)
 at java.lang.reflect.Method.invoke(Native Method)
 at
java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2213)
 at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
 at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
 at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
 at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Re: Accessing Mapped Drives

2002-08-09 Thread David Kavanagh

I saw this problem with a java2 applet running with the plugin The file 
dialog could not see mapped drives. I only saw it on Win 98. Windows 
2000 worked fine. What OS are you running?

David

Jacob Hookom wrote:

What permissions do I need to setup for Tomcat to be able to access
shared network drives on win2k?  I'm able to access shares through an
IDE of course, but Tomcat returns null for all io calls to these mapped
drives.

If anyone has accomplished this or can point me in the right direction,
I would be much obliged :-)

Regards,
Jacob Hookom 
Comprehensive Computer Science 
University of Wisconsin, Eau Claire 



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 


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




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




RE: Problems with class loader

2002-08-09 Thread Cox, Charlie

see intermixed

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 8:15 AM
 To: [EMAIL PROTECTED]
 Subject: Problems with class loader
 
 
 Hello,
 
 we have problems with the tomcat class loaders.
 
 scenario:
 Tomcat 4.0.4, jdk1.3
 2 Applications
 
 App1:webapps/App1/WEB-INF/lib/x.jar
 App2:webapps/App2/WEB-INF/lib/x.jar (the same .jar-file)
 
 x.jar: a.class, b.class, c.class
 
 b.class has a Hashtable (com.sun.java.util.collections.Hashtable) as
 member-variable. (Hashtable is in the directory $CATALINA_HOME/lib/).

why is hashtable defined in $CATALINA_HOME/lib ? Is there a reason why
allowing the JVM to provide the java classes is a problem? This shouldn't
really matter in this case, but could cause problems keeping in sync with
the current JVM version.

 In the Hastable are Objects of the c.class.
 
 class a in App1 serialize class b and save it in persistence 
 (poet-)classes
 in directory ($CATALINA_HOME/lib/).
so, this poet(I'm not familiar with it) is located in $CATALINA_HOME/lib ?
Is this the class that tries to create an instance of b.class?

If so this is your problem. Classes in the /tomcat/lib or /common/lib can
*NOT* see classes in the /web-inf/lib directories. Try moving x.jar to
/tomcat/lib and see if it fixes your problem.

Alternatively you could move poet to each web-inf/lib with x.jar, but they
need to stay together.

Charlie

 In App2 class a load the serialized class from the 
 persistence classes and
 deserialize it (-- class b).
 Then, a ClassNotFoundException (class c) is thrown (see lower). Why???
 
 class b and the Hashtable are loaded, but not class c.
 
 It is as follows: ?
 The applicationClassLoader finds the class b and then the
 StandardClassLoader finds the Hashtable and then (however??) the
 StandardClassLoader try to load class c. And of course the 
 class loader
 can't find the class c!
 
 
 thanks
 jürgen
 
 
  at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
 ardClassLoade
 r.java:1127)
  at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
 ardClassLoade
 r.java:992)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:195)
  at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:654)
  at
 java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStre
 am.java:918)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
  at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
  at 
 com.sun.java.util.collections.Hashtable.readObject(Hashtable.java:773)
  at java.lang.reflect.Method.invoke(Native Method)
  at
 java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream
 .java:2213)
  at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
  at 
 java.io.ObjectInputStream.inputClassFields(ObjectInputStream.j
 ava:2262)
  at 
 java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.
 java:519)
  at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: RE: Problems with class loader

2002-08-09 Thread Juergen . Praska

see intermixed, too

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Fri, 9 Aug 2002 08:42:05 -0400
Subject: RE: Problems with class loader

see intermixed


 Hello,

 we have problems with the tomcat class loaders.

 scenario:
 Tomcat 4.0.4, jdk1.3
 2 Applications

 App1:webapps/App1/WEB-INF/lib/x.jar
 App2:webapps/App2/WEB-INF/lib/x.jar (the same .jar-file)

 x.jar: a.class, b.class, c.class

 b.class has a Hashtable (com.sun.java.util.collections.Hashtable) as
 member-variable. (Hashtable is in the directory $CATALINA_HOME/lib/).

why is hashtable defined in $CATALINA_HOME/lib ? Is there a reason why
allowing the JVM to provide the java classes is a problem? This shouldn't
really matter in this case, but could cause problems keeping in sync with
the current JVM version.
-- yes, this jar-file doesn't have to defined there but this is not the
problem

 In the Hastable are Objects of the c.class.

 class a in App1 serialize class b and save it in persistence
 (poet-)classes
 in directory ($CATALINA_HOME/lib/).
so, this poet(I'm not familiar with it) is located in $CATALINA_HOME/lib ?
Is this the class that tries to create an instance of b.class?
-- no, class a in x.jar tries to create an instance with the
ObjectInputStream

If so this is your problem. Classes in the /tomcat/lib or /common/lib can
*NOT* see classes in the /web-inf/lib directories. Try moving x.jar to
/tomcat/lib and see if it fixes your problem.
-- I can`t do it because there are dependances to other classes in the
application-directory.

Alternatively you could move poet to each web-inf/lib with x.jar, but they
need to stay together.
-- this is also impossible because the poet-classes can only be loaded from
one class loader.

jürgen

Charlie

 In App2 class a load the serialized class from the
 persistence classes and
 deserialize it (-- class b).
 Then, a ClassNotFoundException (class c) is thrown (see lower). Why???

 class b and the Hashtable are loaded, but not class c.

 It is as follows: ?
 The applicationClassLoader finds the class b and then the
 StandardClassLoader finds the Hashtable and then (however??) the
 StandardClassLoader try to load class c. And of course the
 class loader
 can't find the class c!


 thanks
 jürgen


  at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
 ardClassLoade
 r.java:1127)
  at
 org.apache.catalina.loader.StandardClassLoader.loadClass(Stand
 ardClassLoade
 r.java:992)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:195)
  at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:654)
  at
 java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStre
 am.java:918)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
  at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
  at
 com.sun.java.util.collections.Hashtable.readObject(Hashtable.java:773)
  at java.lang.reflect.Method.invoke(Native Method)
  at
 java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream
 .java:2213)
  at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
  at
 java.io.ObjectInputStream.inputClassFields(ObjectInputStream.j
 ava:2262)
  at
 java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.
 java:519)
  at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)

 --
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net


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

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

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




RE: Stop Tomcat

2002-08-09 Thread Shapira, Yoav

Hi,
Get tomcat 4.0.2 or later.  It doesn't do a System.exit() when done,
your application can stop it safely.  For more information, search the
archives for System.exit and embedded tomcat usage.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Vijay [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:34 AM
To: [EMAIL PROTECTED]
Subject: Stop Tomcat

Hi all

I have a question. I have  an application  which starts the tomcat
and when it tries to stop tomcat, the tomcat application does a
System.exit(0) and my application  quits.

Can Any one please help me !! I want my application to start the
tomcat and stop as when required and the i want to restart it.

Thanks  Regards
Vijay




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


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




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Andrew

in Tomcat 4.1.x you can put XML files containing context information
into your webapps directory and TC adds them as contexts.  this is how
the admin and manager apps are added.
 
 
- Andrew

-Original Message-
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 5:19 AM
To: '[EMAIL PROTECTED]'
Subject: Is it possible to include via a directive snippets into the
server.xml file



Within our project we have an overlap of responsibility between the
infrastructure team who are responsible for building the application
servers and the development team who are responsible for delivering an
application ready for deployment.

The overlap centres on server.xml 

The infrastructure guys need to put host specific information into
server.xml 

The development guys are dependent on a context definition and resources
defined within it. 

My question is therefore ... is it possible to include a snippet for
the context that the development team can maintain into the
infrastructure maintain server.xml file.

Cheers 

Rob Horn 




SSL just for a login page

2002-08-09 Thread Drinkwater, GJ (Glen)

Hi

I have been working with tomcat with a web site.  There is a initial login
page which sends the username and password to a servlet that checks them
against a database.  I want to have the informatin sent over ssl but then i
want the user to be sent back to a none ssl page for the rest of the
session.  With out explicitly calling https:// and http:// within the
redirects (ie i want all locations relative) how do i canfigure tomcat.  I
have configured it to the login page is on ssl but when the servlet sends
the user back to a page that page is also ssl.

I have added this to my web.xml file

security-constraint   
web-resource-collection
web-resource-nameDataPortal/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint   
web-resource-collection
web-resource-nameDataPortal/web-resource-name
url-pattern/Login.html/url-pattern
url-pattern/servlet/LoginServlet/url-pattern
http-methodGET/http-method
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint  


Also the second problem when i take off the Login page and off the
CONFIDENTIAL section so a person goes to the login page and then enters the
username and password, the information is sent to the server over ssl but my
LoginServlet code cannot pick out the parameters passed to it???

Can anybosy help me with this


Thanks glen

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




RE: Accessing Mapped Drives

2002-08-09 Thread Andrew

When tomcat is installed as service, it uses the System account.  Try
changing the account to something else.  Also, verify that when you log
on as that account, that the drives are mapped during logon.

- Andrew

 -Original Message-
 From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, August 09, 2002 1:34 AM
 To: Tomcat Users List
 Subject: Accessing Mapped Drives
 
 
 What permissions do I need to setup for Tomcat to be able to 
 access shared network drives on win2k?  I'm able to access 
 shares through an IDE of course, but Tomcat returns null for 
 all io calls to these mapped drives.
 
 If anyone has accomplished this or can point me in the right 
 direction, I would be much obliged :-)
 
 Regards,
 Jacob Hookom 
 Comprehensive Computer Science 
 University of Wisconsin, Eau Claire 
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
  
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Exception

2002-08-09 Thread ChinHo Tan

Thanks guy ..
I reinstall the tomcat again and now it works. I guess I didn't install it
correctly the first time.

- Original Message -
From: Robert L Sowders [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 09, 2002 1:26 AM
Subject: Re: Exception


 What I really needed to know was did you install the JDK or the JRE.  From
 your answer I take it you installed the JDK, that's good.

 If you are getting these errors while going to http://localhost/examples
 then apache is starting tomcat in process but tomcat is not able to find
 the JDK stuff if needs to operate.  This is actually good because the
 major hurdle of getting apache and tomcat to communicate is done.  Now all
 you need is to get tomcat to know where the JDK or the JRE is or both.

 I've seen this problem when I forgot to reboot after I installed J2SDK.  I
 also got this when I installed as a user who did not have administrator
 privileges.  You should get this same error even if you start Tomcat
 manually.  It can't find the Java libs and dll's it needs to function.  So
 start tomcat manually from startprogramsapache tomcat 4.1 then open a
 browser to http://localhost:8080.  If this works then go to the examples
 dir and select something.  It should blow up somewhere.  If it does then
 reinstall the J2SDK and pay particular attention to all your env variables
 and path statements, and I would install it as Administrator.

 BTW these env variables should be set in the system environment, and not
 the user environment.

 I've installed it in c:\www\Java so my 'system' environment variables are;
 JAVA_HOME = c:\www\Java
 and this is tacked onto the end of my 'system' PATH
 c:\www\Java;c:\www\Java\bin

 Check your apache error log for more clues.
 Check your tomcat error log for clues too.

 Here is a document I made to help with installs.
 ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc

 Hope it helps you.
 rls




 ChinHo Tan [EMAIL PROTECTED]
 08/07/2002 10:51 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: Exception

 I set to JDK .. is this correct ?

 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, August 07, 2002 2:50 PM
 Subject: RE: Exception


 Hi,
 Is your $JAVA_HOME set to a JDK or a JRE?

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: ChinHo Tan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 07, 2002 2:42 PM
 To: [EMAIL PROTECTED]
 Subject: Exception
 
 May I know what is the cause for the following errors ? Thanks ..
 
 
 type Exception report
 message Internal Server Error
 description The server encountered an internal error (Internal Server
 Error)
 that prevented it from fulfilling this request.
 exception
 
 javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
 atio
 n
 FilterChain.java:247)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
 terC
 h
 ain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
 ve.j
 a
 va:243)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
 ava:
 5
 66)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 472)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
 ve.j
 a
 va:190)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
 ava:
 5
 66)
  at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
 ava:
 2
 46)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
 ava:
 5
 64)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 472)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
 47)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
 a:18
 0
 )
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
 ava:
 5
 66)
  at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
 alve
 .
 java:170)
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
 ava:
 5
 64)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
 a:17
 0
 )
  at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
 ava:
 5
 64)
  at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
 8)
  at
 

RE: Missing constructor!??

2002-08-09 Thread Andrew

You should mark it public if you want to use it outside your package.

- Andrew

 -Original Message-
 From: Josh [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, August 09, 2002 12:38 AM
 To: Tomcat Users List
 Subject: Re: Missing constructor!??
 
 
 I thought constructors weren't supposed to be marked public? 
 Either way I tried and it made no difference.
 
 -Josh
 
 Rimmer, real dumplings, proper dumplings when they're properly
   cooked to perfection, proper dumplings, should not bounce.
 
 - Original Message -
 From: Ben Walding [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, August 09, 2002 2:34 PM
 Subject: Re: Missing constructor!??
 
 
  Shouldn't the constructor be declared public?
 
  Josh wrote:
 
  Hi,
  I'm getting the following from tomcat:
  
  C:\tomcat\work\Standalone\localhost\_\empty$jsp.java:66: No 
  constructor matching FormCheckbox(java.lang.String, 
 java.lang.String,
 java.lang.String)
  found in class au.com.multemedia.wf.ui.FormCheckbox.
   checkbox = new
 FormCheckbox(testform,check1,Checkbox
  1);
  
  Which seems to be bogus, as FormCheckbox.java contains this:
  
   FormCheckbox(String newformname, String newvarname, String
 newdescription)
  {
  
this.setFormName(newformname);  this.setVarName(newvarname);
this.setDescription(newdescription);
this.setValue(on);
  
   }
  
  And I know that package is being imported, as tomcat has 
 no problems 
  with the FormCheckbox checkbox; line before the one causing the 
  problem...
  
  Am I overlooking something in plain sight here?
  
  -Josh
  
  Rimmer, real dumplings, proper dumplings when they're properly
cooked to perfection, proper dumplings, should not bounce.
  
  
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
  
  
 
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 


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




RES: Apache2 - Tomcat4 Integration

2002-08-09 Thread Tiago Ferraz Machado

Hi,

I found this tutorial about Tomcat and Apache integration using the mod_webapp.so that 
explains each of the parameters that you have to set.

I hope that will help you if you're not going to do a default instalation.

See ya,

Tiago

-Mensagem original-
De: Turner, John [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 9 de agosto de 2002 8:53
Para: 'Tomcat Users List'
Assunto: RE: Apache2 - Tomcat4 Integration



Aw, shucks.

Any comments or suggestions you have towards making my HOWTO work with both
apache 1.3 and apache 2.0 would be greatly appreciated. That goes for tomcat
4.1.x beta comments as well.  I would be glad to add them to the document.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Lou Fox [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 08, 2002 4:44 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Apache2 - Tomcat4 Integration


Have you gotten any help on this?  Last night I started on practically the
same task, the only difference is that I'm using Tomcat4.18Beta (I hear the
performance is far superior to any other tomcat version), anyway I found
this page that gives great instructions for  apache 1.3.26 / tomcat 4.0.4 /
mod_jk.  I'm going to try to follow the directions tonight.  I'm hoping that
apache 1.3.26 is similar enough to apache 2, and tomcat 4.0.4 is similar to
tomcat 4.1.8 beta.  Here's the link:

http://www.johnturner.com/howto/apache-tomcat-howto.html

Let me know how it goes and I'll do the same for you.  Good luck.

- Original Message -
From: Brian Orledge [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 08, 2002 12:06 PM
Subject: Apache2 - Tomcat4 Integration


 Hello,

 I have spent over 3 days trying to integrate Apache2  and Tomcat4.0.3 on
 RH 7.2.  Standalone tomcat works fine.  I am using mod_jk2.so.  When I
 try to request a jsp page from Apache, I notice 2 main errors :

 In apache2/log/error.log :  [error] ajp14.service() error sending, retry
 on new endpoint tomcat1
 The page returned is Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
 configured to process this request

 I am trying to access a page
 /usr/local/jakarta-tomcat-4.0.3/webapps/examples/jsp/dates/date.jsp
 through the url http://localhost/examples/jsp/dates/date.jsp

 Thanks in advance.

 Brian Orledge
 Revenue Solutions, Inc.
 301.240.2182


 My config files follow :

 Server.xml:

 !-- Example Server 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=99

   !-- 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 (see the SSL
 Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR
 files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
 (Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
 (Unix)
with a password value of changeit for both the certificate
 and
the keystore itself.

  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
 

Persistence in Tomact

2002-08-09 Thread Ujwal Oswal

Hi,

Has anyone out there implemented Persistence Session using JDBC Based Store
 in Tomcat. If yes can you please let us know of the procedure. I tried
modifing the Server.xml file but
I am getting SQLException.

Here are the exception 

2002-08-08 15:50:42 JDBCStore[/examples]: The database connection is null or
was found to be closed. Trying to re-open it.
2002-08-08 15:50:42 JDBCStore[/examples]: A SQL exception occurred
java.sql.SQLException: invalid arguments in call


Heres part of my Server.xml (ONLY PERSISTENCE ELEMENT)

  Manager className=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=0
  maxIdleBackup=0
Store className=org.apache.catalina.session.JDBCStore
   debug=2
 
connectionURL=jdbc:oracle:thin:hocleunx02:1521:reqpro?user=x25agent_dev;pa
ssword=x25agent_dev
   driverName=oracle.jdbc.driver.OracleDriver
   sessionDataCol=session_data
   sessionIdCol=session_id
   sessionLastAccessedCol=last_access
   sessionMaxInactiveCol=max_inactive
   sessionTable=tomcat_sessions
   sessionValidCol=valid_session/
  /Manager

Thanks
Ujwal





using INCLUDE with crossContext

2002-08-09 Thread Christian J. Dechery

I'm trying to use the crossContext feature to include a file that is in a context 
(that I call /global/) in other contexts...
 
/global is is configured in server.xml with crossContext=true, but when I do 
%@include file=/global/includes/file.jsp%
it gives me an error message with file not found...
 
what is wrong?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




Classpath problem

2002-08-09 Thread Julie Jordan

I have a problem with Tomcat finding my Java.I've have Apache 1.3.9 working
fine. Then loaded JSDK2.0 with my existing JDK 1.1.7B. Am running UnixWare.
I loaded Tomcat and config'ed it (correctly I hope) and when I try to start
it I get the following:

Using classpath: ./../lib/tomcat.jar

Using JAVA_HOME: /usr/java

Using TOMCAT_HOME: ..

CSE8 UX:sh (./tomcat.sh): ERROR: /usr/java: Cannot execute

I've set the JAVA-HOME classpath in the shell, in the profile, etc. -
nothing seems to work. What am I doing wrong? Thanks, Julie



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




AW: SSL just for a login page

2002-08-09 Thread Ralph Einfeldt

Don't do it.

It has been pointed out several times that it is 
not recommanded to switch from https to http and
stay in the same session. That would open a 
!!!BIG!!! security hole.

If you really know what you are doing, you can write
a filter that redirects every request that came in  
over HTTPS (except the ones for your login pages) 
to HTTP.

 -Ursprüngliche Nachricht-
 Von: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 9. August 2002 15:11
 An: '[EMAIL PROTECTED]'
 Betreff: SSL just for a login page
 
 initial login page which sends the username and password to a 
 servlet that checks them against a database.  I want to have 
 the informatin sent over ssl but then i want the user to be sent

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




RE: SSL just for a login page

2002-08-09 Thread Drinkwater, GJ (Glen)

Hi

I am not am expert in the security of the web at the moment. 
Could you explain to me why this would open such a big secuirty hole from
swapping from https to https.

I was suggesting this because it read this i a 'professional j2ee' book?!! 

The problem i have is that i need the username and password to be encrypted
but i have heard that ssl hits performance quite badly!!  I dont think that
i could handle filtering, so what do you suggest for the security??

What is the 'norm' for these such problems.

Thanks Glen. 


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




Re: SSL just for a login page

2002-08-09 Thread peter lin


the problem is your own encryption isn't signed by a third party, which
means if someone hack into your server, they could compromise the
security.

Hackers are smart and have tons of free time. If there's a hole, it will
be found and exploited.

Most big e-comm sites use hardware acceleration to improve the
performance. If you're going to handle moderate SSL traffic, you should
get hardware acceleration that sits between the webservers and the
browser. Look at BigIP, network SSL modules or other hardware solutions.

there are companies selling ssl ethernet cards for systems if you don't
need heavy duty SSL.

peter lin


Drinkwater, GJ (Glen) wrote:
 
 Hi
 
 I am not am expert in the security of the web at the moment.
 Could you explain to me why this would open such a big secuirty hole from
 swapping from https to https.
 
 I was suggesting this because it read this i a 'professional j2ee' book?!!
 
 The problem i have is that i need the username and password to be encrypted
 but i have heard that ssl hits performance quite badly!!  I dont think that
 i could handle filtering, so what do you suggest for the security??
 
 What is the 'norm' for these such problems.
 
 Thanks Glen.
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Tomcat, JAXB and SecurityManager

2002-08-09 Thread Cédric Viaud

Hi,

i'm using JAXB and Tomcat 4.0.3 on NT 4.

I've got an application which generate HTML pages with XML and XSL-T. For some 
particular point i use classes generated by JAXB. If i test my code as a standard Java 
application (class with a main method), it works perfectly. If i launch it from a 
servlet, i failed.

It seems that there's a problem with the security manager.

Can anyone give me some pointers to security manager ?
Does someone got the same problem and solved it ?

One more point, if the same code is run under Tomcat 4.0.1, it work !!! Wasn't some 
security problems on this version ?

Thanks for help, regards,

 Cédric (very despited for two days).



RE: SSL just for a login page

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

Why don't you just build your redirect after they log in.  

response.sendRedirect(http://; + request.getHostName() + /myApp/home.jsp);




 -Original Message-
 From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 8:52 AM
 To: 'Tomcat Users List'
 Subject: RE: SSL just for a login page
 
 
 Hi
 
 I am not am expert in the security of the web at the moment. 
 Could you explain to me why this would open such a big 
 secuirty hole from
 swapping from https to https.
 
 I was suggesting this because it read this i a 'professional 
 j2ee' book?!! 
 
 The problem i have is that i need the username and password 
 to be encrypted
 but i have heard that ssl hits performance quite badly!!  I 
 dont think that
 i could handle filtering, so what do you suggest for the security??
 
 What is the 'norm' for these such problems.
 
 Thanks Glen. 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Horn, Rob
Title: RE: Is it possible to include via a directive snippets into the server.xml file





Thanks Andrew,


is there a naming convention that must be followed or do you know where I can get further info on this.


Cheers


Rob


-Original Message-
From: Andrew [mailto:[EMAIL PROTECTED]]
Sent: 09 August 2002 14:12
To: 'Tomcat Users List'
Subject: RE: Is it possible to include via a directive snippets into the
server.xml file



in Tomcat 4.1.x you can put XML files containing context information
into your webapps directory and TC adds them as contexts. this is how
the admin and manager apps are added.


- Andrew


-Original Message-
From: Horn, Rob [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 09, 2002 5:19 AM
To: '[EMAIL PROTECTED]'
Subject: Is it possible to include via a directive snippets into the
server.xml file




Within our project we have an overlap of responsibility between the
infrastructure team who are responsible for building the application
servers and the development team who are responsible for delivering an
application ready for deployment.


The overlap centres on server.xml 


The infrastructure guys need to put host specific information into
server.xml 


The development guys are dependent on a context definition and resources
defined within it. 


My question is therefore ... is it possible to include a snippet for
the context that the development team can maintain into the
infrastructure maintain server.xml file.


Cheers 


Rob Horn 




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


RE: Tomcat, JAXB and SecurityManager

2002-08-09 Thread Shapira, Yoav

Bonjour! ;)

If i launch it from a servlet, i failed.

Can you please provide more details?  The stack trace would be helpful.  Any 
suspicious or error messages in the tomcat logs?

One more point, if the same code is run under Tomcat 4.0.1, it work !!!

Then I would look at the release notes for 4.0.3 to see what changes were made to the 
security manager between 4.0.1 and 4.0.3 ;)

 Cédric (very despited for two days).

What does very despited mean? 

Yoav Shapira
Millennium ChemInformatics

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




Re: error in jsp??? Response has already been committed

2002-08-09 Thread Ashish Kulkarni

Hi 
I had this problem with tomcat so was verifying with
jrun, and got the same error, i have increades the
buffer size to 128k, so i guess buffer is not filled, 
when u say response has send back to client, does this
mean that i have started writing html from jsp, and
half way down i get the error and then i try to
forward the request???
if this is correct i think i will have to modify the
logic
Ashish
--- Tim Funk [EMAIL PROTECTED] wrote:
 Sneaky sneaky - posting a JRun problem on the
 tomcat-user list :0
 
 Anyhow - It appears you are trying to forward to
 another page but you 
 can't because you (actually your servlet engine)
 have already sent 
 data back to the client. (Why? I don't know. Maybe
 because you are using 
 a JSP that has lots of whitespace which is filling
 up a buffer?)
 
 Once data is sent back the to client - your can't do
 any of the following:
 - Send redirects
 - Forward to another JSP (or servlet)
 - Set response headers (Cookies, character encoding
 ...)
 
 
 Ashish Kulkarni wrote:
  Hi,
  
  I am developing some jsp pages, and i get the
  following error br
  java.lang.IllegalStateException: Response has
 already
  been committed
  at
 

allaire.jrun.servlet.JRunResponse.resetContent(../servlet/JRunResponse.java:172)
  at
 

allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1201)
  at
 

allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)br
  
  In my jsp, I have some logic which check if there
 is
  anydata in database or else forwards the request
 to
  other page, 
  so when i m trying to forward the request i get
 this
  error.
  I tried
 

request.getRequestDispatcher(PL1077Display.jsp).forward(request,
  response);
  
  also
  response.sendRedirect(PL1077Display.jsp);
  and also jsp:forward 
  br with same error...
  br how can i solve it
  br
  Ashish
  
   
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: SSL just for a login page

2002-08-09 Thread Drinkwater, GJ (Glen)

Hi

Let me reply to a few of the emails.

the problem is your own encryption isn't signed by a third party, which
means if someone hack into your server, they could compromise the
security.

wouldn't this still be a problem if my public key was signed by a CA??
isn't the cert. for the client to verify who i am, this would not effect the
SSL encryption??


Why don't you just build your redirect after they log in.  

  response.sendRedirect(http://; + request.getHostName() +
/myApp/home.jsp);

i have tried this.  What i am doing is using the login to set up a session
and adding a attribute to this session.  Every jsp checks the session for
this object to verify that the user has logged in, if they have not or they
have logged out the user is unable to bookmark or go backward into the
website.  Using the redirect like this some how interferes with the session
and messes up the checking.  I am not sure why this happens?


Glen


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




Re: filters

2002-08-09 Thread Cédric Viaud

Hi,

according to the spec, i think it is normal. It is written that you can have
these mappings :
- begining with '/' and ending with '/*' is for path mapping (not your
case)
- begining with '*.' is for extension mapping (not your case)
- only '/' indicate defaut servlet of the application (not your case)
- all other strings are used for EXACT matches only (so it is your case
by default)

I'm sorry but i thing you can't mapp what you want.

Why doesn't change you calls wich are :aaa by .aaa so
you can map on '*.aaa'

That's what i do. I use a specific extension for mapping to the right
controler (servlet).

Regards,

Cédric

- Original Message -
From: Mario Krolo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 08, 2002 8:18 PM
Subject: filters


 Hi,

 I have a few url patterns that I would like to
 filter (for example /aaaone,/aaatwo,/aaathree).
 They all start with the same three letters.

 If I do the following in my web.xml file my filter
 kicks in and everything works fine:

 filter-mapping
 filter-nameMyFilter/filter-name
 url-pattern/aaaone/url-pattern
 /filter-mapping

 filter-mapping
 filter-nameMyFilter/filter-name
 url-pattern/aaatwo/url-pattern
 /filter-mapping

 filter-mapping
 filter-nameMyFilter/filter-name
 url-pattern/aaathree/url-pattern
 /filter-mapping

 However, when I try

 filter-mapping
 filter-nameMyFilter/filter-name
 url-pattern/aaa*/url-pattern
 /filter-mapping

 my filter doesn't do anything.  It seems that
 the /aaa* pattern is wrong.

 I was wondering why and how can I get it to work
 with just one filter-mapping entry in web.xml.

 Thanks,

 Mario

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



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




Re: SSL just for a login page

2002-08-09 Thread peter lin



Drinkwater, GJ (Glen) wrote:
 
 Hi
 
 Let me reply to a few of the emails.
 
 the problem is your own encryption isn't signed by a third party, which
 means if someone hack into your server, they could compromise the
 security.
 
 wouldn't this still be a problem if my public key was signed by a CA??
 isn't the cert. for the client to verify who i am, this would not effect the
 SSL encryption??
 

For more details on SSL, here's the spec.
http://wp.netscape.com/eng/ssl3/draft302.txt

Remember that using SSL include a lot than just encrypting data. It
includes establishing secure session, cert management and other
processes.  In theory, if a hacker compromises your server they can
break both a custom encryption ans ssl. But breaking SSL is harder than
just decompiling java code to see which algo/padding/key scheme you are
using. Whereas breaking SSL would require much more work.

In reality, a hacker would more likely break into your database than
mess with decompiling your code. Casual hackers will be discouraged by
SSL. Hardcore hackers are hard to protect against. good luck with what
ever you choose.


peter

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




RE: SSL just for a login page

2002-08-09 Thread Durham David Cntr 805CSS/SCBE


Well, obviously the only thing being protected here is the login and password, user 
activity after the login will be open to snooping, hijacking, etc.  So here's what I 
think you should do.

1) User logs in through ssl.

2) After a successful login, (still ssl, don't put anything session yet) pass the 
user's ID and a one-way hashed version of their password to a non ssl page that 
authenticates this information and sets up their session.

Dave

 -Original Message-
 From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 9:19 AM
 To: 'Tomcat Users List'
 Subject: RE: SSL just for a login page
 
 
 Hi
 
 Let me reply to a few of the emails.
 
 the problem is your own encryption isn't signed by a third 
 party, which
 means if someone hack into your server, they could compromise the
 security.
 
 wouldn't this still be a problem if my public key was signed by a CA??
 isn't the cert. for the client to verify who i am, this would 
 not effect the
 SSL encryption??
 
 
 Why don't you just build your redirect after they log in.  
 
 response.sendRedirect(http://; + request.getHostName() +
 /myApp/home.jsp);
 
 i have tried this.  What i am doing is using the login to set 
 up a session
 and adding a attribute to this session.  Every jsp checks the 
 session for
 this object to verify that the user has logged in, if they 
 have not or they
 have logged out the user is unable to bookmark or go backward into the
 website.  Using the redirect like this some how interferes 
 with the session
 and messes up the checking.  I am not sure why this happens?
 


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

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




AW: SSL just for a login page

2002-08-09 Thread Ralph Einfeldt

That's no solution, as now the oneway hash can be snooped
and hijacked. You win absolutly nothing but wasted efford.

 -Ursprüngliche Nachricht-
 Von: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 9. August 2002 16:30
 An: Tomcat Users List
 Betreff: RE: SSL just for a login page
 
 2) After a successful login, (still ssl, don't put anything 
 session yet) pass the user's ID and a one-way hashed version 
 of their password to a non ssl page that authenticates this 
 information and sets up their session.
 

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




apache tomcat and ssl

2002-08-09 Thread Vincent Kerr

I have apache and tomcat working with mod_jk on Windows NT and can
access my tomcat apps through apache. I have installed ssl support and
can access apache's htdocs over https. However I cannot access my Tomcat
webapps over https.

Could someone tell me how to configure apache so that tomcat apps can be
accessed over https.

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




AW: SSL just for a login page

2002-08-09 Thread Ralph Einfeldt

If you switch from HTTPs to HTTP and keep the session,
that means that now the sessionid is send unencrypted
(either as cookie or as part of the url). So now everybody
who can listen to your traffic, can take that data and steel
the session and act as the owner of the session, and there 
is nothing you can do about it.

Yes SSL has some effect on the performance, but to really
feal it, you must get a high load on the server. In typical 
applications the main load comes from other hot spots.
The higher the needed tranfer rate is the higher will the 
risk be that you experience some penalties, but I think
it's cheaper to solve them by scaling the hardware.

I think you should stresstest your application with both
protocols and judge on your own, what impact HTTPs has 
and what you are willing to invest (in work or hardware)
to reduce the impact.

 -Ursprüngliche Nachricht-
 Von: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 9. August 2002 15:52
 An: 'Tomcat Users List'
 Betreff: RE: SSL just for a login page
 
 
 Could you explain to me why this would open such a big 
 secuirty hole from swapping from https to https.
 

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




AW: SSL just for a login page

2002-08-09 Thread Ralph Einfeldt

Yes, I know, if you spend some more effort,
you get a bit more security.
(- define a time window where the code is valid)
(- make the client IP part of the hashcode)

But in the end all variants are less secure 
than https.

 -Ursprüngliche Nachricht-
 Von: Ralph Einfeldt 
 Gesendet: Freitag, 9. August 2002 16:38
 An: Tomcat Users List
 Betreff: AW: SSL just for a login page
 
 
 That's no solution, as now the oneway hash can be snooped
 and hijacked. You win absolutly nothing but wasted efford.
 
  -Ursprüngliche Nachricht-
  Von: Durham David Cntr 805CSS/SCBE 
 [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 9. August 2002 16:30
  An: Tomcat Users List
  Betreff: RE: SSL just for a login page
  
  2) After a successful login, (still ssl, don't put anything 
  session yet) pass the user's ID and a one-way hashed version 
  of their password to a non ssl page that authenticates this 
  information and sets up their session.
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 

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




RE: SSL just for a login page

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

Like I said, you're session is open to snooping and hijacking, but your password is 
not revealed.

 -Original Message-
 From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 9:38 AM
 To: Tomcat Users List
 Subject: AW: SSL just for a login page
 
 
 That's no solution, as now the oneway hash can be snooped
 and hijacked. You win absolutly nothing but wasted efford.
 
  -Ursprüngliche Nachricht-
  Von: Durham David Cntr 805CSS/SCBE 
 [mailto:[EMAIL PROTECTED]]
  Gesendet: Freitag, 9. August 2002 16:30
  An: Tomcat Users List
  Betreff: RE: SSL just for a login page
  
  2) After a successful login, (still ssl, don't put anything 
  session yet) pass the user's ID and a one-way hashed version 
  of their password to a non ssl page that authenticates this 
  information and sets up their session.
  
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




Re: error in jsp??? Response has already been committed

2002-08-09 Thread Tim Funk

If that is how your page is programmed - then yes.

In a nutshell - try to ensure your JSP is doing display things only. 
Or if it needs to perform logic which may invoke errors 
(getting/checking data) - try to perform that logic at the very 
beginning of the JSP so a minimal amount of info is buffered and 
exceptions may be caught and you can effortlessly redirect to an error page.


Ashish Kulkarni wrote:
 Hi 
 I had this problem with tomcat so was verifying with
 jrun, and got the same error, i have increades the
 buffer size to 128k, so i guess buffer is not filled, 
 when u say response has send back to client, does this
 mean that i have started writing html from jsp, and
 half way down i get the error and then i try to
 forward the request???
 if this is correct i think i will have to modify the
 logic
 Ashish
 --- Tim Funk [EMAIL PROTECTED] wrote:
 
Sneaky sneaky - posting a JRun problem on the
tomcat-user list :0

Anyhow - It appears you are trying to forward to
another page but you 
can't because you (actually your servlet engine)
have already sent 
data back to the client. (Why? I don't know. Maybe
because you are using 
a JSP that has lots of whitespace which is filling
up a buffer?)

Once data is sent back the to client - your can't do
any of the following:
- Send redirects
- Forward to another JSP (or servlet)
- Set response headers (Cookies, character encoding
...)


Ashish Kulkarni wrote:

Hi,

I am developing some jsp pages, and i get the
following error br
java.lang.IllegalStateException: Response has

already

been committed
 at


 allaire.jrun.servlet.JRunResponse.resetContent(../servlet/JRunResponse.java:172)
 
 at


 allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1201)
 
 at


 
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)br
 
In my jsp, I have some logic which check if there

is

anydata in database or else forwards the request

to

other page, 
so when i m trying to forward the request i get

this

error.
I tried


 request.getRequestDispatcher(PL1077Display.jsp).forward(request,
 
response);

also
response.sendRedirect(PL1077Display.jsp);
and also jsp:forward 
br with same error...
br how can i solve it
br
Ashish

 


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

 
 
 __
 Do You Yahoo!?
 HotJobs - Search Thousands of New Jobs
 http://www.hotjobs.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 



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




Re: SSL just for a login page

2002-08-09 Thread peter lin


what's to stop a hacker from stealing the session, then going to the
user profile page and looking at the password? Of course if you do pass
the user to http from https, you can still require profile management go
through https, or simply never print the password to the browser.

I personally wouldn't want to use a insecure site for anything with
personal information.  as others have said, you have to weigh the cost
vs advantage of tight security. if you're prohibited by cost, ie paying
for cert, and hardware, then you really don't have a choice.


peter


Durham David Cntr 805CSS/SCBE wrote:
 
 Like I said, you're session is open to snooping and hijacking, but your password is 
not revealed.


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




RE: SSL just for a login page

2002-08-09 Thread Drinkwater, GJ (Glen)

Yes, you are probably right, I will have to use ssl.

Does anybody know of some good stress testing free software???

How does this sound.

1)User logs on and username and password send over ssl. password md5 hashed
and compared against users on a database.
2)If valid user logs on, if not user sent to error page.
3) rest of session ssl.

if database compromised, hash value would be no use???

Lastly, how do i enforce that the whole of the web site must be over ssl,
except the initial welcome page so the user doesn't have to type in port
numbers

is it something like this in the web.xml file.

security-constraint   
web-resource-collection
web-resource-name***/web-resource-name
url-pattern/index.html/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeNONE/transport-guarantee
/user-data-constraint
/security-constraint

security-constraint   
web-resource-collection
web-resource-name***/web-resource-name
url-pattern/*/url-pattern  //or will this overwrite the
index.html

url-pattern/*jsp/url-pattern //should it be like this
url-pattern/data/*/url-pattern
url-pattern/etc/*/url-pattern   //etc
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint  



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




Re: SSL just for a login page

2002-08-09 Thread Jose Francisco Junior

And what happens with the user session ??? Every single
 page a verify if the user session is Ok, if not I have to
 redirect him to the login page. But if I do what you are
 saying I will lost the user session.

Junior

On Fri, 9 Aug 2002 09:08:22 -0500
Durham David Cntr 805CSS/SCBE
 [EMAIL PROTECTED] wrote:
Why don't you just build your redirect after they log in.
  

   response.sendRedirect(http://; + request.getHostName() +
 /myApp/home.jsp);




 -Original Message-
 From: Drinkwater, GJ (Glen)
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 8:52 AM
 To: 'Tomcat Users List'
 Subject: RE: SSL just for a login page
 
 
 Hi
 
 I am not am expert in the security of the web at the
 moment. 
 Could you explain to me why this would open such a big 
 secuirty hole from
 swapping from https to https.
 
 I was suggesting this because it read this i a
 'professional 
 j2ee' book?!! 
 
 The problem i have is that i need the username and
 password 
 to be encrypted
 but i have heard that ssl hits performance quite badly!!
  I 
 dont think that
 i could handle filtering, so what do you suggest for the
 security??
 
 What is the 'norm' for these such problems.
 
 Thanks Glen. 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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


-
Prefiro as lágrimas da derrota
do que a vergonha de não ter lutado... 

Willan Brook
-

Don't E-Mail, ZipMail! http://www.zipmail.com/

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




migrating from gnuJSP to tomcat 4/apache 2

2002-08-09 Thread Steve Prior

I have happily been serving JSP pages from Apache 1.3/jserv/gnuJSP
for over a year now, and am starting to become motivated to move
to Apache2/Tomcat.

With GnuJSP I could have JSP files anywhere I wanted under the htdocs
directory for Apache and they would be passed to GnuJSP, but all
other files (html, jpg, shtml, whatever) would still be handled by
apache.

I have Tomcat already connected using mod_jk2 to apache2 so that I
can go to http://localhost/examples/jsp/whatever so it appears to
be functionioning mostly right.  What I cannot and really want to
do is to be able to put JSP files anywhere in the apache tree (like I
used to) and have apache pass them off to tomcat, but handle everything
else by itself.

Is this even possible with the new architecture of Tomcat?  I have so
many JSP pages scattered throughout my site that it seems that if every
directory that uses JSP pages needs to be handled by tomcat that I
won't be left with apache handling anything by itself.

Thanks
Steve


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




RE: SSL just for a login page

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

jmeter, available from jakarta.apache.org

 -Original Message-
 From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 9:59 AM
 To: 'Tomcat Users List'
 Subject: RE: SSL just for a login page
 
 
 Yes, you are probably right, I will have to use ssl.
 
 Does anybody know of some good stress testing free software???
 
 How does this sound.
 
 1)User logs on and username and password send over ssl. 
 password md5 hashed
 and compared against users on a database.
 2)If valid user logs on, if not user sent to error page.
 3) rest of session ssl.
 
 if database compromised, hash value would be no use???
 
 Lastly, how do i enforce that the whole of the web site must 
 be over ssl,
 except the initial welcome page so the user doesn't have to 
 type in port
 numbers
 
 is it something like this in the web.xml file.
 
 security-constraint 
   web-resource-collection
   web-resource-name***/web-resource-name
   url-pattern/index.html/url-pattern
   /web-resource-collection
   user-data-constraint
   transport-guaranteeNONE/transport-guarantee
   /user-data-constraint
 /security-constraint
 
 security-constraint 
   web-resource-collection
   web-resource-name***/web-resource-name
   url-pattern/*/url-pattern  //or will this 
 overwrite the
 index.html
   
   url-pattern/*jsp/url-pattern //should it be 
 like this
   url-pattern/data/*/url-pattern
   url-pattern/etc/*/url-pattern   //etc
   http-methodGET/http-method
   http-methodPOST/http-method
   /web-resource-collection
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
 /security-constraint
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




Re: SSL just for a login page

2002-08-09 Thread Richard Plukker

For stress testing use Apache JMeter.
good luck Richard


Drinkwater, GJ (Glen) wrote:

Yes, you are probably right, I will have to use ssl.

Does anybody know of some good stress testing free software???

How does this sound.

1)User logs on and username and password send over ssl. password md5 hashed
and compared against users on a database.
2)If valid user logs on, if not user sent to error page.
3) rest of session ssl.

if database compromised, hash value would be no use???

Lastly, how do i enforce that the whole of the web site must be over ssl,
except the initial welcome page so the user doesn't have to type in port
numbers

is it something like this in the web.xml file.

security-constraint  
   web-resource-collection
   web-resource-name***/web-resource-name
   url-pattern/index.html/url-pattern
   /web-resource-collection
   user-data-constraint
   transport-guaranteeNONE/transport-guarantee
   /user-data-constraint
/security-constraint

security-constraint  
   web-resource-collection
   web-resource-name***/web-resource-name
   url-pattern/*/url-pattern  //or will this overwrite the
index.html
   
   url-pattern/*jsp/url-pattern //should it be like this
   url-pattern/data/*/url-pattern
   url-pattern/etc/*/url-pattern   //etc
   http-methodGET/http-method
   http-methodPOST/http-method
   /web-resource-collection
   user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
/security-constraint 



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


  





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




RE: SSL just for a login page

2002-08-09 Thread Drinkwater, GJ (Glen)

just downloaded it version 1.7 using it with java 1.4 beta

installation says that you dont need to do anything (already got JAVA_HOME),
when i run it it just pulls up errors??


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




??? Bug in Tomcat Response Headers ???

2002-08-09 Thread Tony LaPaso

Hello all,

I posted this a few days ago but received no responseIf
someone intimately familiar with Tomcat internals (liek Craig M.)
could comment I'd appreciate it.

I'm not 100% sure about this but I think I found a problem with
the way Tomcat encodes characters. First I'll explain what I
think the problem is and then I'll say why I think it's a
problem. Please keep in mind that I'm not looking for alternative
solutions (i.e., please don't tell me to use UTF-8). I want to
stay focused on the problem. The behavior I'm seeing is not
correct, IMHO.

Assume I have these three lines of code in my doGet():

response.setContentType(text/html;charset=UTF-16);
PrintWriter pw = response.getWriter();
pw.print(htmlheadtitleTest/title +
 /headbody/body/html);

The PrintWriter returned from response.getWriter() will encode
all characters as UTF-16. This means that all the response body
(i.e., the HTML) gets encoded as UTF-16 before being sent to the
client. So far, so good.

Here's the problem: The reponse headers generated from the
servlet *ALSO* get encoded as UTF-16, which, I believe is in
violation of the HTTP spec. In reading the HTTP spec, response
headers should be encoded as US-ASCII.

So, it seems that Tomcat (or perhaps the Servlet API
implementation) needs to be modified so that the response headers
are *always* encoded as US-ASCII, regardless of the encoding for
the response body.

Again, please do not offer ways around this or ask me why I'm
sending UTF-16 encoded characters. I know UTF-8 can be used but
that's not the point.

Is this a bug or am I buggy?

Thanks,



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




RE: SSL just for a login page

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

post this on the jmeter-user list

 -Original Message-
 From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 10:26 AM
 To: 'Tomcat Users List'
 Subject: RE: SSL just for a login page
 
 
 just downloaded it version 1.7 using it with java 1.4 beta
 
 installation says that you dont need to do anything (already 
 got JAVA_HOME),
 when i run it it just pulls up errors??
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




AW: migrating from gnuJSP to tomcat 4/apache 2

2002-08-09 Thread Ralph Einfeldt

As I'm on the same road, here are my thoughts
(I didn't start trying it, that will not be so 
soon as we feel not pressure to do the switch):

If you have just one context (that what we will have)
you can do the following:

  - Keep your htdoc as it is.
  - Define a default context:
Context path= docBase=/{ServerRoot}/htdoc debug=0/)
  - Deny the access of apache to webapps/{context}/WEB-INF
  - Use the JkMount selectively:
JkMount /*.jsp ajp13/ajp14
JkMount /servlet/* ajp13/ajp14

If you want to have more than one context you may have 
to change all references to static or dynamic resources
in the jsp's to contain the context name. (As we don't 
use relative path's I don't know what happens with them)

I don't know if this enough, but it should be the right 
direction.
 -Ursprüngliche Nachricht-
 Von: Steve Prior [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 9. August 2002 17:06
 An: [EMAIL PROTECTED]
 Betreff: migrating from gnuJSP to tomcat 4/apache 2
 
 
 I have happily been serving JSP pages from Apache 1.3/jserv/gnuJSP
 for over a year now, and am starting to become motivated to move
 to Apache2/Tomcat.
 
 With GnuJSP I could have JSP files anywhere I wanted under the htdocs
 directory for Apache and they would be passed to GnuJSP, but all
 other files (html, jpg, shtml, whatever) would still be handled by
 apache.
 
 I have Tomcat already connected using mod_jk2 to apache2 so that I
 can go to http://localhost/examples/jsp/whatever so it appears to
 be functionioning mostly right.  What I cannot and really want to
 do is to be able to put JSP files anywhere in the apache tree (like I
 used to) and have apache pass them off to tomcat, but handle 
 everything
 else by itself.
 
 Is this even possible with the new architecture of Tomcat?  I have so
 many JSP pages scattered throughout my site that it seems 
 that if every
 directory that uses JSP pages needs to be handled by tomcat that I
 won't be left with apache handling anything by itself.
 
 Thanks
 Steve
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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




RE: SSL just for a login page

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i'm using j2sdk1.4.0_01 for linux, and you have to set JAVA_HOME in your
PATH.  now i do know that javac automatically sets the classpath to the
location of the tools.jar file located in /lib 

-Original Message-
From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: SSL just for a login page


just downloaded it version 1.7 using it with java 1.4 beta

installation says that you dont need to do anything (already got JAVA_HOME),
when i run it it just pulls up errors??


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

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




Error 500 need help

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

***i'm getting an error i can't solve. 
during the build process i get a message that states this:
[javadoc]
/Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
import sun.tools.javac.Main; 
 ^
the build is successful but the jsp examples generate the error below

any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux 7.2.
i'm assuming that i get this error because of the message above.


Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
Exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:536)
root cause 
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
Parser.java:347)
at
org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:201)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)

Re: AW: configuring tomcat for 100+ contexts

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, B. Duffee wrote:

 Date: Fri, 9 Aug 2002 11:59:48 +0100 (BST)
 From: B. Duffee [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED],
  B. Duffee [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: AW: configuring tomcat for 100+ contexts

 student in the servlet.xml.  I would _like_ to be able to say for every
  directory that you find a WEB-INF, such as
 /var/www/htdocs/$course/$student/WEB-INF
 
  Would
 Context path= docBase=/var/www/htdocs/*/*
 appBase=/var/www/htdocs/ reloadable=true debug=0/
  make any sense?
 
 I suggest a small perl script that produces the apps-X.xml files in
 $TOMCAT_HOME/conf .
 You could create/delete your students and courses and just run it to get the
 newest working config without
 touching server.xml. It can clone the webapps directory of each
 a.o.a.o.a.o  :)
 Just the restarting would take a while :-))

 I was sort of doing that the last time because adding in one person at a time
 (they never make it easy for you) started getting tedious.  I could care less
 about start up times (they're only users, after all ;)  Oh yes, I'm also using
 mod_webapp, if that makes a difference.

 I was hoping for an eloquent solution that would recognize that all WEB-INF
 directories beneath htdocs are a tomcat context.


Another approach to consider for this kind of use is the User Home
Directories capability (requires Tomcat 4).  This makes a URL like
http://www.myhost.com:8080/~craigmcc/; refer to the public_html
subdirectory of my user home directory (just like the similar feature in
Apache and other web servers).  At startup time, all the users who have
public_html directories accessible to the username Tomcat runs under will
be automatically recognized.

Documentation is on the Host page in the server configuration reference
(http://localhost:8080/tomcat-docs/config/host.html).

 danke,

Craig


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




Re: Is it possible to include via a directive snippets into theserve r.xml file

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Horn, Rob wrote:

 Date: Fri, 9 Aug 2002 10:18:50 +0100
 From: Horn, Rob [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Is it possible to include via a directive snippets into the
 serve r.xml file

 Within our project we have an overlap of responsibility between the
 infrastructure team who are responsible for building the application servers
 and the development team who are responsible for delivering an application
 ready for deployment.

 The overlap centres on server.xml

 The infrastructure guys need to put host specific information into
 server.xml

 The development guys are dependent on a context definition and resources
 defined within it.

 My question is therefore ... is it possible to include a snippet for the
 context that the development team can maintain into the infrastructure
 maintain server.xml file.


XML lets you do stuff like that directly with entities.

In Tomcat 4.1.x, you can also separate out the Context element for each
context into a separate context configuration file that can be
independently deployed, which would seem a better long term solution.

If all else fails, you can write a simple script that combines all the
stuff you need from file fragments just before invoking the startup.
Sometimes the simple solutions are the best ...

 Cheers

 Rob Horn


Craig



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




RE: Is it possible to include via a directive snippets into the server.xml file

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Horn, Rob wrote:

 Date: Fri, 9 Aug 2002 15:12:22 +0100
 From: Horn, Rob [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Is it possible to include via a directive snippets into the
 s erver.xml file

 Thanks Andrew,

 is there a naming convention that must be followed or do you know where I
 can get further info on this.


One approach is to do what Tomcat 4.1 itself does for the admin and
manager webapps -- for a context at path /foo, create a foo.xml file.
If you put that in $CATALINA_HOME/webapps, it will get auto-deployed.

 Cheers

 Rob

Craig



 -Original Message-
 From: Andrew [mailto:[EMAIL PROTECTED]]
 Sent: 09 August 2002 14:12
 To: 'Tomcat Users List'
 Subject: RE: Is it possible to include via a directive snippets into the
 server.xml file


 in Tomcat 4.1.x you can put XML files containing context information
 into your webapps directory and TC adds them as contexts.  this is how
 the admin and manager apps are added.


 - Andrew

 -Original Message-
 From: Horn, Rob [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 5:19 AM
 To: '[EMAIL PROTECTED]'
 Subject: Is it possible to include via a directive snippets into the
 server.xml file



 Within our project we have an overlap of responsibility between the
 infrastructure team who are responsible for building the application
 servers and the development team who are responsible for delivering an
 application ready for deployment.

 The overlap centres on server.xml

 The infrastructure guys need to put host specific information into
 server.xml

 The development guys are dependent on a context definition and resources
 defined within it.

 My question is therefore ... is it possible to include a snippet for
 the context that the development team can maintain into the
 infrastructure maintain server.xml file.

 Cheers

 Rob Horn




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




Authentication: Use Tomcat and Apache

2002-08-09 Thread Kevin Andryc

I have an application that currently uses Apache's authentication. In order
for this to work with Tomcat I had to specify it in my server.xml, like so:

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

I also have another application running under Tomcat that I would like
Tomcat to handle the authentication. Is there a way to have both methods?

Thanks,
Kevin

Kevin Andryc
Web Systems Engineer
MISER
http://www.umass.edu/miser/
Phone: (413)-545-3460
[EMAIL PROTECTED]





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




RE: SSL just for a login page

2002-08-09 Thread Craig R. McClanahan



On Fri, 9 Aug 2002, Drinkwater, GJ (Glen) wrote:

 Date: Fri, 9 Aug 2002 14:51:32 +0100
 From: Drinkwater, GJ (Glen) [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: SSL just for a login page

 Hi

 I am not am expert in the security of the web at the moment.
 Could you explain to me why this would open such a big secuirty hole from
 swapping from https to https.


Switching from http to https is not the problem.  Switching back is.

 I was suggesting this because it read this i a 'professional j2ee' book?!!

 The problem i have is that i need the username and password to be encrypted
 but i have heard that ssl hits performance quite badly!!  I dont think that
 i could handle filtering, so what do you suggest for the security??

 What is the 'norm' for these such problems.


On an http connection, anyone who has access to the physical network can
snoop packets and see what is going on.  That's why you're trying to
encrypt the username and password in the first place, right?

The problem is that username/password is not the only sensitive
information going back and forth -- the session identifier is also passed
up to the server on each request, either in a cookie or as part of the
URLs.  This is how the server knows that a subsequent request belongs to
the logged-in user.  Anyone who knows the session id can impersonate the
logged on user, and do anything that user is allowed to do.

If you switch back to http after logging in, that means the session id
will get transmitted in cleartext (and, no, there's nothing you can do to
encrypt *just* that).  Therefore, any snooper on the network can see this
session id and start submitting their own requests with that session id.
The server thinks that you've already authenticated, so it lets you do
whatever you want.

All the snooper has to do is wait for someone to log on, observe their
next submit to the server, and snarf the session id ...

The bottom line is that using SSL only for the username/password is a
total waste of time from a security perspective.  If you're not going to
encrypt the entire conversation (which includes the session ids), don't
even bother trying -- you will only get the illusion (or should I say,
*delusion*) of being more secure.  In reality, you'd accomplish
nothing useful.

A more general statement of the principle:  once you switch a session from
http to https, you should never again accept a non-https request for
that same session.  Applications that don't obey this rule are hopelessly
insecure, and should be avoided like the plague.

 Thanks Glen.


Craig McClanahan


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




jsp:forward revisited

2002-08-09 Thread Carl

Thank all for your responses but I am still in deep doodoo as nothing has
worked.

On the suggestion that the location of the page to be forwarded to was
incorrectly specified, I have tried all combinations of means of specifying
the page and nothing helps, does not change the error.

On the suggestion that I download Tomcat 4.0.3 (I am using Forte 4 with jsdk
1.4), I could not find a place to download Tomcat 4.0.3 but did download
Tomcat 4.0.4.  No help, Tomact 4.0.4 won't even run its own samples as it
fails as follows:

(from the localhost_log)

2002-08-09 10:46:41 WebappLoader[]: Deploying class repositories to work
directory C:\tomcat\Apache Tomcat 4.0\work\Standalone\localhost\_
2002-08-09 10:46:41 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2002-08-09 10:46:41 StandardManager[]: Seeding of random number generator
has been completed
2002-08-09 10:46:41 ContextConfig[]: Added certificates - request attribute
Valve
2002-08-09 10:46:41 ContextConfig[]: Configured an authenticator for method
FORM
2002-08-09 10:46:41 ContextListener: contextInitialized()
2002-08-09 10:46:41 SessionListener: contextInitialized()
2002-08-09 10:46:41 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@d10a5c')
2002-08-09 10:46:41 StandardWrapper[:default]: Loading container servlet
default
2002-08-09 10:46:41 default: init
2002-08-09 10:46:41 StandardWrapper[:invoker]: Loading container servlet
invoker
2002-08-09 10:46:41 invoker: init
2002-08-09 10:46:41 StandardWrapper[:jsp]: Marking servlet jsp as
unavailable
2002-08-09 10:46:41 StandardContext[]: Servlet  threw load() exception
javax.servlet.ServletException: Error instantiating servlet class
org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:89
5)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/apache/jasper/JasperError
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
 at java.lang.Class.getConstructor0(Class.java:1748)
 at java.lang.Class.newInstance0(Class.java:266)
 at java.lang.Class.newInstance(Class.java:249)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
6)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)

Anyone have any ideas why the Servlet jsp is marked unavailable?

My core problem remains as moving from one jsp page to another using the
construct:

jsp:forward page'somePage.jsp /

I am trying to bring up an application that has over 400 pages with that
construct on them so you can see that I have a substantial task.  With
Tomcat 4.0.1, included with Forte, I get a null pointer error:

2002-08-08 14:29:45 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
java.lang.NullPointerException
at
org.netbeans.modules.web.monitor.catalina.DispatchListener.instanceEvent(Dis
patchListener.java:65)
at
org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.j
ava:342)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:712)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:409)
at org.apache.jsp.forward$jsp._jspService(forward$jsp.java:93)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

jsp include question

2002-08-09 Thread Ashish Kulkarni

Hi

I am developing a web application and came accross
this problem.
when in my jsp page i have jsp:include runtime
include and then later in the code when i have
response.sendRedirect or
request.getRequestDispatcher() to forward the jsp page
i get error saying the
java.lang.IllegalStateException: Response has already
been committed.
but when i use %@ % compile time include i  dont get
this error, 
Can some one explain the why
Ashish

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: jsp include question

2002-08-09 Thread Jose Francisco Junior

If you want to redirect the request you have to do it
 before printing any other thing on the page.

Example:

it works:

redirect code here

html
head
...
/head
...

it does not work:

html
head
...
/head

redirect code here
...
On Fri, 9 Aug 2002 09:38:32 -0700 (PDT)
Ashish Kulkarni [EMAIL PROTECTED] wrote:
Hi

I am developing a web application and came accross
this problem.
when in my jsp page i have jsp:include runtime
include and then later in the code when i have
response.sendRedirect or
request.getRequestDispatcher() to forward the jsp page
i get error saying the
java.lang.IllegalStateException: Response has already
been committed.
but when i use %@ % compile time include i  dont get
this error, 
Can some one explain the why
Ashish

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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


-
Prefiro as lágrimas da derrota
do que a vergonha de não ter lutado... 

Willan Brook
-

Don't E-Mail, ZipMail! http://www.zipmail.com/

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




Servlet to JDBC connection

2002-08-09 Thread Peter O

What's wrong with this string? I can't get this string to connect to
the database, I'm trying to connect on a RH 7.2 system.

  protected String dbURL =
jdbc:interbase://66.18.29.95:8089/opt/jakarta-tomcat-4.0.4/webapps/ROOT/database/MAIN.GDB;

The servlet dir is working, there's no error message.

-Paul

 

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




Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with ok results, but I'm interested in any
suggestions or better explanations of some of the fields:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=200 maxProcessors=200
   enableLookups=true redirectPort=8443
   acceptCount=2000 debug=0 connectionTimeout=6/

Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


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




RE: Configuration for High TPS

2002-08-09 Thread Sullivan, Mark E

what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:23 PM
 To: Tomcat Users List
 Subject: Configuration for High TPS
 
 
 I'm attempting to configure Tomcat for a test environment to 
 handle a high
 number of transactions per second (TPS) and would like any 
 advice others may
 like to contribute.  The machine is a fairly powerful dual 
 processor machine
 (1+ GHz) running WinNT.  I'm using a tool to send requests, 
 where I can
 specify the TPS and number of requests total to send.
 
 I'm running the following with ok results, but I'm interested in any
 suggestions or better explanations of some of the fields:
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=200 maxProcessors=200
enableLookups=true redirectPort=8443
acceptCount=2000 debug=0 
 connectionTimeout=6/
 
 Perhaps my biggest problem is the number of connections 
 Tomcat accepts fills
 up rather quickly, some of the connections my tool generates 
 are refused
 (presumably due to the acceptCount limit being reached, and I 
 have increased
 it a couple times).
 
 Any advice would be appreciated!
 
 Jeff
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I knew I forgot a detail Running Tomcat 4.0.3 (or 4.0.4, I'll likely
upgrade to that version soon).

Quick follow up on this.

I'm testing a servlet I've written that does some caching, and is very quick
once it has cached all of its data.  During the first run, I test it going
40 TPS (over several thousand requests).  Then I start upping the TPS (same
set of requests), and I plan to stop at 200 TPS.

Now here's an intresting problem.  My tool has reported on several runs that
it cannot connect within only a second or two of starting the tool.  With an
accept count of over 1000, I find this rather odd as it should take at least
5 seconds at 200 TPS to fill an acceptCount of 1000 (typically the lowest
I've set acceptCount).  I normally run into can't connect errors early
during a test run, when my servlet is still caching its data (still working
on a way to better handle that problem also).

Any insight would be appreciated.  Thanks!

Jeff

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with ok results, but I'm interested in any
suggestions or better explanations of some of the fields:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=200 maxProcessors=200
   enableLookups=true redirectPort=8443
   acceptCount=2000 debug=0 connectionTimeout=6/

Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


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



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




Re: Error 500 need help

2002-08-09 Thread Carlos Ferreira


it looks like you have an xml parser conflict ( tomcat's xerces and the
jdk's xml parser ).

either download tomcat4-LE-jdk14 or reorder your xml parser's jar files in
your classpath ( ie put xml-apis.jar, xercesImpl.jar first in your
CLASSPATH). check xerces' documentation for further info.


good look

 ***i'm getting an error i can't solve.
 during the build process i get a message that states this:
 [javadoc]
 /Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
 r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
 import sun.tools.javac.Main;
  ^
 the build is successful but the jsp examples generate the error below

 any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux
 7.2. i'm assuming that i get this error because of the message above.


 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
 type Exception report
 message Internal Server Error
 description The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 Exception
 javax.servlet.ServletException: Servlet.init() for servlet jsp threw
 exception
   at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
 6)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:214)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:475)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1027)
   at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
 )
   at java.lang.Thread.run(Thread.java:536)
 root cause
 java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at
 org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
 Parser.java:347)
   at
 org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
 )
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
   at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
   at
 org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
 1)
   at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86) at
 org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:201)
   at
 org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
 che.java:165)
   at
 org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
   

Re: Configuration for High TPS

2002-08-09 Thread Jose Francisco Junior

Please,

I know it is a bit off-topic but I am trying to get a IP
 address from an URL like this:
new URL(http://java.sun.com;); //this is the URL

How can I get the IP address from this URL? Any idea ??


Thanks in advance,
Junior 

Don't E-Mail, ZipMail! http://www.zipmail.com/

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




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:23 PM
 To: Tomcat Users List
 Subject: Configuration for High TPS
 
 
 I'm attempting to configure Tomcat for a test environment to 
 handle a high
 number of transactions per second (TPS) and would like any 
 advice others may
 like to contribute.  The machine is a fairly powerful dual 
 processor machine
 (1+ GHz) running WinNT.  I'm using a tool to send requests, 
 where I can
 specify the TPS and number of requests total to send.
 
 I'm running the following with ok results, but I'm interested in any
 suggestions or better explanations of some of the fields:
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=200 maxProcessors=200
enableLookups=true redirectPort=8443
acceptCount=2000 debug=0 
 connectionTimeout=6/
 
 Perhaps my biggest problem is the number of connections 
 Tomcat accepts fills
 up rather quickly, some of the connections my tool generates 
 are refused
 (presumably due to the acceptCount limit being reached, and I 
 have increased
 it a couple times).
 
 Any advice would be appreciated!
 
 Jeff
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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



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




RE: Configuration for High TPS

2002-08-09 Thread Turner, John


Come on...RTFM:

java.net.InetAddress.getByName();

Sheesh.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Jose Francisco Junior [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:44 PM
To: Tomcat Users List
Subject: Re: Configuration for High TPS


Please,

I know it is a bit off-topic but I am trying to get a IP
 address from an URL like this:
new URL(http://java.sun.com;); //this is the URL

How can I get the IP address from this URL? Any idea ??


Thanks in advance,
Junior 

Don't E-Mail, ZipMail! http://www.zipmail.com/

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

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




RE: Configuration for High TPS

2002-08-09 Thread Turner, John


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

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:50 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:23 PM
 To: Tomcat Users List
 Subject: Configuration for High TPS
 
 
 I'm attempting to configure Tomcat for a test environment to 
 handle a high
 number of transactions per second (TPS) and would like any 
 advice others may
 like to contribute.  The machine is a fairly powerful dual 
 processor machine
 (1+ GHz) running WinNT.  I'm using a tool to send requests, 
 where I can
 specify the TPS and number of requests total to send.
 
 I'm running the following with ok results, but I'm interested in any
 suggestions or better explanations of some of the fields:
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=200 maxProcessors=200
enableLookups=true redirectPort=8443
acceptCount=2000 debug=0 
 connectionTimeout=6/
 
 Perhaps my biggest problem is the number of connections 
 Tomcat accepts fills
 up rather quickly, some of the connections my tool generates 
 are refused
 (presumably due to the acceptCount limit being reached, and I 
 have increased
 it a couple times).
 
 Any advice would be appreciated!
 
 Jeff
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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



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

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




java.endorsed.dirs

2002-08-09 Thread Neo

How can I configure my custom instance of the Tomcat service to append my
endorsed.dir?  I tried adding the flag (-Djava.endorsed.dirs='') to my
tomcat service installation script but the value is ignored by tomcat once
it starts up.

I stumbled across a couple web pages that lead me to believe it is not
possible to accomplish this given the current Tomcat classloader
implementation.  If that is indeed the case...has this issue been address
and what version of Tomcat can I find it in?

I'm using Tomcat 4.0.4 on Win32.

Thanks in advance,
Neo


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





RequestDispatcher question

2002-08-09 Thread Scott Purcell

Hello,

I am trying to send a (request, response) object to a server that lives at another IP 
(or URL). I have the need to pass parameters that are in the request object, but I 
cannot seem to forward the request to the other servlet. I keep getting a error: 
java.lang.IllegalArgumentException: Path 
http://xxx.xxx.xxx.xxx/testcode/servlet/allparams does not start with a / character 

When I try the same code on my local machine, within the same web app, all works 
great. So I think the coding is good.  So I am trying to figure how to get the request 
object from one box to another? Any ideas?

Thanks,


Test Code:
// from a method here
try {
gotoPage(http://XXX.XXX.X.XXX/testcode/servlet/allparams;, 
request, response);
response.sendRedirect(mm.getSomeURL());
}


private void gotoPage(String address,
  HttpServletRequest request,
  HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher = 
getServletContext().getRequestDispatcher(address);
dispatcher.forward(request, response);

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




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I have been looking through those online docs looking for any configuration
info that might be useful, but I'm using 4.0.3, so I've been reading the 4.0
docs.  It doesn't appear this is available in 4.0 (as it is under the 4.1
docs).

Thanks for the link though!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:52 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS



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

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:50 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:23 PM
 To: Tomcat Users List
 Subject: Configuration for High TPS
 
 
 I'm attempting to configure Tomcat for a test environment to 
 handle a high
 number of transactions per second (TPS) and would like any 
 advice others may
 like to contribute.  The machine is a fairly powerful dual 
 processor machine
 (1+ GHz) running WinNT.  I'm using a tool to send requests, 
 where I can
 specify the TPS and number of requests total to send.
 
 I'm running the following with ok results, but I'm interested in any
 suggestions or better explanations of some of the fields:
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=200 maxProcessors=200
enableLookups=true redirectPort=8443
acceptCount=2000 debug=0 
 connectionTimeout=6/
 
 Perhaps my biggest problem is the number of connections 
 Tomcat accepts fills
 up rather quickly, some of the connections my tool generates 
 are refused
 (presumably due to the acceptCount limit being reached, and I 
 have increased
 it a couple times).
 
 Any advice would be appreciated!
 
 Jeff
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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



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

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



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




RE: Configuration for High TPS

2002-08-09 Thread Sullivan, Mark E

I'm pretty sure that you can in fact use it with 4.0.*. You may have to
compile the connector distro in order to get it, but once you have the
necessary classes it should drop in with no problem. 

 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:57 PM
 To: 'Tomcat Users List'
 Subject: RE: Configuration for High TPS
 
 
 I have been looking through those online docs looking for any 
 configuration
 info that might be useful, but I'm using 4.0.3, so I've been 
 reading the 4.0
 docs.  It doesn't appear this is available in 4.0 (as it is 
 under the 4.1
 docs).
 
 Thanks for the link though!
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 10:52 AM
 To: 'Tomcat Users List'
 Subject: RE: Configuration for High TPS
 
 
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
 
 John Turner
 [EMAIL PROTECTED]
 
 
 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 1:50 PM
 To: 'Tomcat Users List'
 Subject: RE: Configuration for High TPS
 
 
 Where can I find documentation on the Coyote connector (such 
 as the exact
 class name)?
 
 What is really bothering me (currently), is once I start 
 getting connection
 errors, my CPU usage (roughly) doubles, and I get connection 
 errors much
 more easily (as if acceptCount was reduced somehow).  Any ideas on the
 cause/solution for this?
 
 -Original Message-
 From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 10:31 AM
 To: 'Tomcat Users List'
 Subject: RE: Configuration for High TPS
 
 
 what version of tomcat are you running? In the 4+ versions 
 the Coyote HTTP
 connector is supposed to perform better. 
 
  -Original Message-
  From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 09, 2002 12:23 PM
  To: Tomcat Users List
  Subject: Configuration for High TPS
  
  
  I'm attempting to configure Tomcat for a test environment to 
  handle a high
  number of transactions per second (TPS) and would like any 
  advice others may
  like to contribute.  The machine is a fairly powerful dual 
  processor machine
  (1+ GHz) running WinNT.  I'm using a tool to send requests, 
  where I can
  specify the TPS and number of requests total to send.
  
  I'm running the following with ok results, but I'm 
 interested in any
  suggestions or better explanations of some of the fields:
  
  Connector 
  className=org.apache.catalina.connector.http.HttpConnector
 port=8080 minProcessors=200 maxProcessors=200
 enableLookups=true redirectPort=8443
 acceptCount=2000 debug=0 
  connectionTimeout=6/
  
  Perhaps my biggest problem is the number of connections 
  Tomcat accepts fills
  up rather quickly, some of the connections my tool generates 
  are refused
  (presumably due to the acceptCount limit being reached, and I 
  have increased
  it a couple times).
  
  Any advice would be appreciated!
  
  Jeff
  
  
  --
  To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: Configuration for High TPS

2002-08-09 Thread Turner, John


As far as I know, the connectors aren't tied to specific tomcat versions
(separate projects).  If memory serves, that resource is the same resource
that has always been posted under the 4.0 docs.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:57 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


I have been looking through those online docs looking for any configuration
info that might be useful, but I'm using 4.0.3, so I've been reading the 4.0
docs.  It doesn't appear this is available in 4.0 (as it is under the 4.1
docs).

Thanks for the link though!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:52 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS



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

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 1:50 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


Where can I find documentation on the Coyote connector (such as the exact
class name)?

What is really bothering me (currently), is once I start getting connection
errors, my CPU usage (roughly) doubles, and I get connection errors much
more easily (as if acceptCount was reduced somehow).  Any ideas on the
cause/solution for this?

-Original Message-
From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


what version of tomcat are you running? In the 4+ versions the Coyote HTTP
connector is supposed to perform better. 

 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:23 PM
 To: Tomcat Users List
 Subject: Configuration for High TPS
 
 
 I'm attempting to configure Tomcat for a test environment to 
 handle a high
 number of transactions per second (TPS) and would like any 
 advice others may
 like to contribute.  The machine is a fairly powerful dual 
 processor machine
 (1+ GHz) running WinNT.  I'm using a tool to send requests, 
 where I can
 specify the TPS and number of requests total to send.
 
 I'm running the following with ok results, but I'm interested in any
 suggestions or better explanations of some of the fields:
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=200 maxProcessors=200
enableLookups=true redirectPort=8443
acceptCount=2000 debug=0 
 connectionTimeout=6/
 
 Perhaps my biggest problem is the number of connections 
 Tomcat accepts fills
 up rather quickly, some of the connections my tool generates 
 are refused
 (presumably due to the acceptCount limit being reached, and I 
 have increased
 it a couple times).
 
 Any advice would be appreciated!
 
 Jeff
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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



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

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



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

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




RE: Configuration for High TPS

2002-08-09 Thread Sexton, George

You might want to set enableLookups=false. You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with ok results, but I'm interested in any
suggestions or better explanations of some of the fields:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=200 maxProcessors=200
   enableLookups=true redirectPort=8443
   acceptCount=2000 debug=0 connectionTimeout=6/

Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


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


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




RE: Error 500 need help

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i tried the trick and it didn't work.  i still get the same error message.
it looked more like a java issue to me. have any more suggestions?

what i doing here is building tomcat straight from source and i have the
most recent src version off the jakarta website.  


-Original Message-
From: Carlos Ferreira [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Error 500 need help



it looks like you have an xml parser conflict ( tomcat's xerces and the
jdk's xml parser ).

either download tomcat4-LE-jdk14 or reorder your xml parser's jar files in
your classpath ( ie put xml-apis.jar, xercesImpl.jar first in your
CLASSPATH). check xerces' documentation for further info.


good look

 ***i'm getting an error i can't solve.
 during the build process i get a message that states this:
 [javadoc]

/Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
 r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
 import sun.tools.javac.Main;
  ^
 the build is successful but the jsp examples generate the error below

 any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux
 7.2. i'm assuming that i get this error because of the message above.


 Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
 type Exception report
 message Internal Server Error
 description The server encountered an internal error (Internal Server
 Error) that prevented it from fulfilling this request.
 Exception
 javax.servlet.ServletException: Servlet.init() for servlet jsp threw
 exception
   at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
 6)
   at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:214)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
   at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
   at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

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

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1027)
   at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
 )
   at java.lang.Thread.run(Thread.java:536)
 root cause
 java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at

org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
 Parser.java:347)
   at

org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
 )
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
   at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
   

RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

I was aware of that, but I thought I might want to leave that on for others
using Tomcat.  I'll turn it off for the tests, thanks.

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:01 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


You might want to set enableLookups=false. You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with ok results, but I'm interested in any
suggestions or better explanations of some of the fields:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=200 maxProcessors=200
   enableLookups=true redirectPort=8443
   acceptCount=2000 debug=0 connectionTimeout=6/

Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


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


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



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




RE: Configuration for High TPS

2002-08-09 Thread Sexton, George

Can your DNS server handle 200 reverse lookups per second?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 12:04 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


I was aware of that, but I thought I might want to leave that on for others
using Tomcat.  I'll turn it off for the tests, thanks.

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:01 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


You might want to set enableLookups=false. You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with ok results, but I'm interested in any
suggestions or better explanations of some of the fields:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=200 maxProcessors=200
   enableLookups=true redirectPort=8443
   acceptCount=2000 debug=0 connectionTimeout=6/

Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


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


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



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


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




RE: Configuration for High TPS

2002-08-09 Thread Marinko, Jeff

It can do at least 150... :-)

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:07 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


Can your DNS server handle 200 reverse lookups per second?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 12:04 PM
To: 'Tomcat Users List'
Subject: RE: Configuration for High TPS


I was aware of that, but I thought I might want to leave that on for others
using Tomcat.  I'll turn it off for the tests, thanks.

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:01 AM
To: Tomcat Users List
Subject: RE: Configuration for High TPS


You might want to set enableLookups=false. You realize, that's doing a
reverse DNS lookup for every connection don't you?

-Original Message-
From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 09 August, 2002 11:23 AM
To: Tomcat Users List
Subject: Configuration for High TPS


I'm attempting to configure Tomcat for a test environment to handle a high
number of transactions per second (TPS) and would like any advice others may
like to contribute.  The machine is a fairly powerful dual processor machine
(1+ GHz) running WinNT.  I'm using a tool to send requests, where I can
specify the TPS and number of requests total to send.

I'm running the following with ok results, but I'm interested in any
suggestions or better explanations of some of the fields:

Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=200 maxProcessors=200
   enableLookups=true redirectPort=8443
   acceptCount=2000 debug=0 connectionTimeout=6/

Perhaps my biggest problem is the number of connections Tomcat accepts fills
up rather quickly, some of the connections my tool generates are refused
(presumably due to the acceptCount limit being reached, and I have increased
it a couple times).

Any advice would be appreciated!

Jeff


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


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



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


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



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




error compiling mod_jk

2002-08-09 Thread Aaron

Hi-

I'm trying to build mod_jk on Mac OS X.  I am using libtool-1.4.2 and I  
see the -arch_only option in the documentation.  Does anyone know how  
to fix this?

Thanks,

Aaron

[mobile:local/jakarta-tomcat-connectors/jk] mobile# ant native
Buildfile: build.xml

jkant:
 [javac] Compiling 17 source files to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes
  [copy] Copying 1 file to  
/usr/local/jakarta-tomcat-connectors/jk/build/classes/META-INF
   [jar] Building jar:  
/usr/local/jakarta-tomcat-connectors/jk/build/lib/jkant.jar

detect:
  [echo]  jakarta-tomcat-connectors 

report:
  [echo] Tomcat33: ${tomcat33.detect}
  [echo] Tomcat40:  true ../../jakarta-tomcat-4.0.3
  [echo] Tomcat41: true ../../jakarta-tomcat-4.1.8
  [echo] Apache13: ${apache13.detect} ${apache13.home}
  [echo] Apache2: true /usr/local/apache2
  [echo] iPlanet:  ${iplanet.detect} ${iplanet.home}
  [echo] IIS:  ${iis.detect} ${iis.home}
  [echo] Using catalina.home:  ${catalina.home}

native:

init:
  [echo] /var/root
[available] DEPRECATED - available used to override an existing  
property.
[available]   Build file should not reuse the same property name for  
different values.
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk

apache20:
 [mkdir] Created dir:  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2
[so] Compiling 19 out of 19
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: missing initializer
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/apache-2.0/ 
mod_jk.c:1162: warning: (near initialization for `jk_cmds[16].func')
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp12_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp13_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp14_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_ajp_common.c:  
In function `ajp_process_callback':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_ajp_common.c:949: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_connect.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_context.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_jni_worker.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_lb_worker.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_map.c
Compiling /usr/local/jakarta-tomcat-connectors/jk/native/common/jk_md5.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_pool.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_sockbuf.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c
[so] Warnings:
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c: In function `map_uri_to_worker':
[so]  
/usr/local/jakarta-tomcat-connectors/jk/native/common/ 
jk_uri_worker_map.c:571: warning: comparison between signed and unsigned
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_util.c
Compiling  
/usr/local/jakarta-tomcat-connectors/jk/native/common/jk_worker.c
Linking  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/mod_jk.so
[so] Link failed 1
[so] Command:libtool --mode=link cc -module -avoid-version  
-rpath /usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2 -o  
mod_jk.la  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/apache-2.0/ 
mod_jk.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp12_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp13_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp14_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_ajp_common.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_connect.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_context.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 
jk_jni_worker.lo  
/usr/local/jakarta-tomcat-connectors/jk/build/jk/apache2/common/ 

Precompiling JSPs for Tomcat

2002-08-09 Thread Sean LeBlanc

Hi all, 

I'm having some issues with using Ant's jspc task (I have a thread going
on the Ant mailing list), is there any way to manually call the compilation
for Tomcat's build? Somehow, Tomcat must do it, so I figure there has to be
a way to kluge something together that does the same thing?

-- 
Sean LeBlanc - Nutros.com
Random fortune/quote:
The biggest difference between time and space is that you can't reuse
time.
-- Merrick Furst


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




RE: Configuration for High TPS

2002-08-09 Thread Durham David Cntr 805CSS/SCBE

You can set up an event listener to cache this data when the context is initialized.  
That's probably better than making the initial unlucky users wait.


 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 12:43 PM
 To: 'Tomcat Users List'
 Subject: RE: Configuration for High TPS
 
 
 I knew I forgot a detail Running Tomcat 4.0.3 (or 4.0.4, 
 I'll likely
 upgrade to that version soon).
 
 Quick follow up on this.
 
 I'm testing a servlet I've written that does some caching, 
 and is very quick
 once it has cached all of its data.  During the first run, I 
 test it going
 40 TPS (over several thousand requests).  Then I start upping 
 the TPS (same
 set of requests), and I plan to stop at 200 TPS.
 
 Now here's an intresting problem.  My tool has reported on 
 several runs that
 it cannot connect within only a second or two of starting the 
 tool.  With an
 accept count of over 1000, I find this rather odd as it 
 should take at least
 5 seconds at 200 TPS to fill an acceptCount of 1000 
 (typically the lowest
 I've set acceptCount).  I normally run into can't connect errors early
 during a test run, when my servlet is still caching its data 
 (still working
 on a way to better handle that problem also).



 
 Any insight would be appreciated.  Thanks!
 
 Jeff
 
 -Original Message-
 From: Marinko, Jeff [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 09, 2002 10:23 AM
 To: Tomcat Users List
 Subject: Configuration for High TPS
 
 
 I'm attempting to configure Tomcat for a test environment to 
 handle a high
 number of transactions per second (TPS) and would like any 
 advice others may
 like to contribute.  The machine is a fairly powerful dual 
 processor machine
 (1+ GHz) running WinNT.  I'm using a tool to send requests, 
 where I can
 specify the TPS and number of requests total to send.
 
 I'm running the following with ok results, but I'm interested in any
 suggestions or better explanations of some of the fields:
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=200 maxProcessors=200
enableLookups=true redirectPort=8443
acceptCount=2000 debug=0 
 connectionTimeout=6/
 
 Perhaps my biggest problem is the number of connections 
 Tomcat accepts fills
 up rather quickly, some of the connections my tool generates 
 are refused
 (presumably due to the acceptCount limit being reached, and I 
 have increased
 it a couple times).
 
 Any advice would be appreciated!
 
 Jeff
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

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




  1   2   >