RE: tomcat v. resin

2002-09-07 Thread Martin Cooper



 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 10:52 PM
 To: Tomcat Users List
 Subject: Re: tomcat v. resin
 
 
 Resin is, I think, noticeably faster in my limited 
 experience.  But, Resin 
 has serious features restrictions for me.

What sort of serious feature restrictions? Are they Servlet / JSP related,
or related to Resin-specific functionality?

--
Martin Cooper


 
 At 05:30 PM 9/6/2002 -0700, you wrote:
 Hey does anyone here have an opinion on Resin versus Tomcat? 
   I've heard
 that Resin is screaming fast but I never see anyone using it 
 ... always
 Tomcat if they want something free.
 
 Thanks.
 Neal
 
 
 --
 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]




javax.servlet.ServletException: Name java:comp is not bound in this Context

2002-09-07 Thread Richard Chamberlain

Hello,

I'm struggling setting up a database resource.

I've copied the xml pretty much verbatim from the docs in the JNDI 
Datasource HOW-TO.

However when I try and access the database I get a ServletException as 
follows:

javax.servlet.ServletException: Name java:comp is not bound in this 
Context

This is the code that gets the connection:

Context env=(Context) new InitialContext().lookup(java:comp/env);
DataSource source=(DataSource) env.lookup(jdbc/db-pool);
Connection conn=source.getConnection();

and this is from server.xml:

Resource name=jdbc/db-pool
auth=Container
type=javax.sql.DataSource/

   ResourceParams name=jdbc/db-pool
 parameter
   namefactory/name
   
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   namemaxActive/name
   value100/value
 /parameter
 parameter
   namemaxIdle/name
   value30/value
 /parameter
 parameter
   namemaxWait/name
   value1/value
 /parameter
 parameter
  nameusername/name
  valuetestuser/value
 /parameter
 parameter
  namepassword/name
  valuemypassword/value
 /parameter
 parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
 /parameter
 parameter
   nameurl/name
   
valuejdbc:mysql://localhost:3306/test?autoReconnect=true/value
 /parameter
   /ResourceParams

and the web.xml file:

resource-ref
descriptionDB Connection/description
res-ref-namejdbc/db-pool/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

Please help!

Thanks,

Richard


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




onLoad Servlet

2002-09-07 Thread neal

In a previous thread someone mentioned that it is possible to set a servlet
to run as Tomcat is started.

Could someone please provide me with a syntactical example of how to set
this up?

I have searched the documentation, I've searched for exmaples in the web.xml
files, and I've scoured the Internet and I can not find any documentation or
examples.

I guess I'm just looking int he wrong places???

Thanks.
Neal


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




Re: onLoad Servlet

2002-09-07 Thread Ben Walding

You're probably searching for the wrong thing!
 From web.xml (see http://java.sun.com/dtd/web-app_2_3.dtd)

!--
The load-on-startup element indicates that this servlet should be
loaded (instantiated and have its init() called) on the startup
of the web application. The optional contents of
these element must be an integer indicating the order in which
the servlet should be loaded. If the value is a negative integer,
or the element is not present, the container is free to load the
servlet whenever it chooses. If the value is a positive integer
or 0, the container must load and initialize the servlet as the
application is deployed. The container must guarantee that
servlets marked with lower integers are loaded before servlets
marked with higher integers. The container may choose the order
of loading of servlets with the same load-on-start-up value.

Used in: servlet
--
!ELEMENT load-on-startup (#PCDATA)

!--




neal wrote:

In a previous thread someone mentioned that it is possible to set a servlet
to run as Tomcat is started.

Could someone please provide me with a syntactical example of how to set
this up?

I have searched the documentation, I've searched for exmaples in the web.xml
files, and I've scoured the Internet and I can not find any documentation or
examples.

I guess I'm just looking int he wrong places???

Thanks.
Neal


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




Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same webapp to2 contexts instead of 1)

2002-09-07 Thread Ben Walding

I've found a minor oddity when using auto deployment in 4.1.10.



Take a simple web application (called montage),  create a 
montage_prod.war and montage_prod.xml for it and copy them to the 
webapps directory.  However before doing that, change the  path i.e.

Context path=/montage docBase=montage_prod.war debug=0

Restart tomcat.

TomCat proceeds to merrily deploy montage_prod.war to /montage and this 
context works.

However it also deploys montage_prod.war to /montage_prod and this 
context doesn't work properly (I dispute whether it should even exist at 
all).  It appears to be missing the environment settings from 
montage_prod.xml.

Admittedly this won't affect many people and I only noticed because I've 
started using the built-in TomCat manager.


Is this intentional behaviour?

(I realise I can rename montage_prod.war to montage.war  and similarly 
for the xml, but that isn't really the point).
(I've looked at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment,
 
but it skates around this question)

Cheers,


Ben


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




JRE and JSP

2002-09-07 Thread RAJESH KANNAN


Hi all,

We have a special requirement which warrants the use of tomcat with only 
JRE. (Not JDK).

In our web application we have JSPs also in addition to Java classes.

Is there any way by which we can operate TOMCAT only with JRE. (which 
supports JSP execution).

We are using TOMCAT-4.0.3 with JRE 1.4.1.

Can you please give some directions to go about.

Thanks in anticipation.

With Regards
K.RajeshKannan

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: tomcat v. resin

2002-09-07 Thread Dionisio Ruiz de Zarate

i am usin tomcat and resin.
my opinion, only my opinion, is thar resins is faster and easy for configure
than tomcat. this with the old versions.
but i have see the tomcat 4.1.10 and tomcat is more fast.

but i can say that is, resin, more easy for configure.
Else i have see that there is some thigs, jsp pages, that runs well with
resin and whit tomcat not, tomcat produce exceptions, bugs?



- Original Message -
From: neal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, September 07, 2002 2:30 AM
Subject: tomcat v. resin


 Hey does anyone here have an opinion on Resin versus Tomcat?   I've heard
 that Resin is screaming fast but I never see anyone using it ... always
 Tomcat if they want something free.

 Thanks.
 Neal


 --
 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: Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same webapp to 2contexts instead of 1)

2002-09-07 Thread Robert L Sowders

Does this still happen if you don't copy it to the webapps directory and 
instead deploy it using the manager?

rls





Ben Walding [EMAIL PROTECTED]
09/07/2002 01:28 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same webapp 
to 2 
contexts instead of 1)

I've found a minor oddity when using auto deployment in 4.1.10.



Take a simple web application (called montage),  create a 
montage_prod.war and montage_prod.xml for it and copy them to the 
webapps directory.  However before doing that, change the  path i.e.

Context path=/montage docBase=montage_prod.war debug=0

Restart tomcat.

TomCat proceeds to merrily deploy montage_prod.war to /montage and this 
context works.

However it also deploys montage_prod.war to /montage_prod and this 
context doesn't work properly (I dispute whether it should even exist at 
all).  It appears to be missing the environment settings from 
montage_prod.xml.

Admittedly this won't affect many people and I only noticed because I've 
started using the built-in TomCat manager.


Is this intentional behaviour?

(I realise I can rename montage_prod.war to montage.war  and similarly 
for the xml, but that isn't really the point).
(I've looked at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment,
 
but it skates around this question)

Cheers,


Ben


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




How to configure tc-4.1.10 to use Jikes?

2002-09-07 Thread Zsolt Koppany

Hi,

I try to configure tc-4.1.10 to use Jikes to compile jsp files. The configure 
below in web.xml does work with tc-4.0.4. Why doesn't it work tc-4.1.10? I 
don't have any errors, just jikes it not called.

init-param
  param-namejspCompilerPlugin/param-name
  param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
/init-param

Zsolt

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




Issue with Filtering after restart

2002-09-07 Thread Arjen Smedes

Hi,

I am encountering the following problem. I have a filter wrapping a HttpRequest in a 
MultipartWrapper (extending HttpServletRequestWrapper). After a restart of Tomcat 
(4.0.4), the first time I hit a page calling a servlet with something like this :

if (request instanceof MultipartWrapper) {

do something
}

is ignored (this servlet is configured properly with the filter etc, no problems 
there, I have extensively tested it.

I log the type of the request object and the first time it is this :

Request is type : org.apache.catalina.servlets.InvokerHttpRequest

After reloads of the browser or any other operation it logs that the request IS of 
type MultipartWrapper  (which is what I want the first time as well !)

Any ideas ?

By the way, I have just tested this mechanism on 4.0.4, and it works the same way 
(i.e. wrong (?)).

Regards,

Arjen Smedes.



Memory Consumed by NT Service does not come down if Tomcat 4.1.9 is run as a Service in W2K

2002-09-07 Thread Sankar B

Dear All,

Im new to this list. Ive not subscribed anywhere. I
dont know whether Ill get reply if i mail to this id
[EMAIL PROTECTED] I got this id in
JGuru Forum. Please help me out.

The details given by tomcat in its manager application
are as follows:

Apache Tomcat/4.1.9 JVM Version: 1.3.1_02-b02 - Sun
Microsystems Inc. 
Windows 2000 
5.0 
x86 

As it said, I run Win 2K with Tomcat 4.1.9 Beta
installed using the EXE and Ive installed the NT
Service also.

Here my problem is, If I run my Tomcat using the NT
Service, it consumes nearly 20,000K Memory immediatly.
If I start my Web Application, it start consuming
40,000K and after few minutes it goes upto 60,000K.
EVen If i comeout of my application and does not use
TOmcat also, the memory is still at 60-70,000K and
does not come down. But, If I start Tomcat using the
Startup.bat file, instead of NT Service, if i do the
same process, the memory comes down, if im not using
any application. 

So, the problem is with this JavaService.exe which is
an opensource which is used to make tomcat to run as a
service. How to solve this. Please help me out.

Yours,
Sankar.B



__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




Where to place JAR file???

2002-09-07 Thread Michael Petres

Hello,

I have a problem that is probably silly if you know tomcat well…

I have configured tomcat to load a context (eBMF). In order to avoid loading
the servlet twice I have set the ‘appBase’ in the server.xml file to an
empty string and I have placed the applet related stuff in a directory at
the same level as the default ‘webapps’, but called eBMF. This directory now
has /WEB-INF/classes and /WEB-INF/lib in it.

The servlet code itself resides in server.jar and is placed in
eBMF/WEB-INF/lib. I am using an HTML page with an embedded object tag to
load the applet (packaged in applet.jar) that will interact with the
servlet. Both applet and servlet use stuff in a third jar, library.jar.

My serlvet context is started by tomcat without problems as long as
server.jar and library.jar are in eBMF/WEB-INF/lib, as expected…
In order to run the applet I however must place the applet.jar and
library.jar in the eBMF directory and use the following parameter on the
object tag ‘PARAM NAME = ARCHIVE VALUE = applet.jar, library.jar.

I would for obvious reasons like to keep all my jars in eBMF/WEB-INF/lib,
for one to avoid having multiple copies of the same jar file under the
directory structure. The browser is unable to gain access to applet.jar if
it is moved from the context base, eBMF to eBMF/WEB-INF/lib, regardless of
the way I sepecify the archive parameter in the html page, e.g. I tried
‘PARAM NAME = ARCHIVE VALUE = WEB-INF/lib/applet.jar,
WEB-INF/lib/library.jar’. But it won’t work!

Is there some configuration issue I am missing here? Obviously Tomcat will
ensure the proper context to the servlet base, which is eBMF, but why can
files NOT be accessed in directories under it?


Michael Petres
~
InnovObjX Corp.
Web: www.innovobjx.com
Tel: 905-729-2235 x3
Fax: 905-729-2235
~




Post operation failure in Apache/Tomcat 4.0.3 load balancing

2002-09-07 Thread Xiaoyu Zhang


Hi All,

I have set up Apache 1.3.29 distribute loads across 2 Catalina 4.0.3. For
http get operation, every thing works fine. For HTTP post operation, apache
can figure out the righ server to send the request, however catalina 4.0.3
can not identify the correct session, it can not find the data we stored in
the session.

Anyone has similar experience?

TIA
Xiaoyu


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




passing a session from non-SSL to SSL

2002-09-07 Thread Joshua Szmajda

Hi all,

I'm upgrading an application from Tomcat 3.2 to Tomcat 4.0, and I'm 
noticing that my application is now losing track of its sessions when I 
switch from non-SSL to SSL. The code worked fine in Tomcat 3.2.. I was 
wondering if there's something I'm missing. My server.xml has a single 
Ajp13 connector and a plain vanilla host / context configuration. I've 
JKMount'ed /* to ajp13 in apache on both the normal and SSL virtual hosts.

I'm sure it's something in the spec that's changed, but I can't for 
the life of me find out what. Changing the code is possible, but 
preferably avoidable as I didn't write it.

Thanks in advance!
-Joshua Szmajda


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




Re: Where to place JAR file???

2002-09-07 Thread Ben Walding

Anything under WEB-INF is invisible to a web user, it's just the way 
things are.
Hence, I believe that you are going to need to put the library.jar in 
two places, once in the WEB-INF/lib and once in the same dir as 
applet.jar (but not under WEB-INF)

Michael Petres wrote:

Hello,

I have a problem that is probably silly if you know tomcat well

I have configured tomcat to load a context (eBMF). In order to avoid loading
the servlet twice I have set the appBase in the server.xml file to an
empty string and I have placed the applet related stuff in a directory at
the same level as the default webapps, but called eBMF. This directory now
has /WEB-INF/classes and /WEB-INF/lib in it.

The servlet code itself resides in server.jar and is placed in
eBMF/WEB-INF/lib. I am using an HTML page with an embedded object tag to
load the applet (packaged in applet.jar) that will interact with the
servlet. Both applet and servlet use stuff in a third jar, library.jar.

My serlvet context is started by tomcat without problems as long as
server.jar and library.jar are in eBMF/WEB-INF/lib, as expected
In order to run the applet I however must place the applet.jar and
library.jar in the eBMF directory and use the following parameter on the
object tag PARAM NAME = ARCHIVE VALUE = applet.jar, library.jar.

I would for obvious reasons like to keep all my jars in eBMF/WEB-INF/lib,
for one to avoid having multiple copies of the same jar file under the
directory structure. The browser is unable to gain access to applet.jar if
it is moved from the context base, eBMF to eBMF/WEB-INF/lib, regardless of
the way I sepecify the archive parameter in the html page, e.g. I tried
PARAM NAME = ARCHIVE VALUE = WEB-INF/lib/applet.jar,
WEB-INF/lib/library.jar. But it wont work!

Is there some configuration issue I am missing here? Obviously Tomcat will
ensure the proper context to the servlet base, which is eBMF, but why can
files NOT be accessed in directories under it?


Michael Petres
~
InnovObjX Corp.
Web: www.innovobjx.com
Tel: 905-729-2235 x3
Fax: 905-729-2235
~


  





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




webapss.so for tomcat 4.1.10

2002-09-07 Thread Dionisio Ruiz de Zarate

Hello.
can anybody says me where can i find the webapp.so file for linux for the
new tomcat 4.1.10 vesion?
or how can i generate?
thanks



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




Re: How to configure tc-4.1.10 to use Jikes?

2002-09-07 Thread Glenn Nielsen

Tomcat 4.1 uses Jasper 2.

Jasper 2 was changed to use Ant to compile JSP pages and no longer supports
the config below for using Jikes.

But you can tell Ant to use jikes for compiling by defining the following
property to java when starting Tomcat:

-Dbuild.compiler=jikes

Regards,

Glenn

Zsolt Koppany wrote:
 Hi,
 
 I try to configure tc-4.1.10 to use Jikes to compile jsp files. The configure 
 below in web.xml does work with tc-4.0.4. Why doesn't it work tc-4.1.10? I 
 don't have any errors, just jikes it not called.
 
 init-param
   param-namejspCompilerPlugin/param-name
   param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value
 /init-param
 
 Zsolt
 
 --
 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: Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same webappto 2 contexts instead of 1)

2002-09-07 Thread Ben Walding

Using the manager, I deployed the application (removed it from webapps 
dir first and restarted tomcat).

/montage was then available (no /montage_prod)

Stopping  restarting tomcat made /montage disappear as expected.


It's seems like the auto deploy system doesn't check if you had a 
context descriptor xml file for your .war file.  


Robert L Sowders wrote:

Does this still happen if you don't copy it to the webapps directory and 
instead deploy it using the manager?

rls





Ben Walding [EMAIL PROTECTED]
09/07/2002 01:28 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same 
webapp to 2 
contexts instead of 1)

I've found a minor oddity when using auto deployment in 4.1.10.



Take a simple web application (called montage),  create a 
montage_prod.war and montage_prod.xml for it and copy them to the 
webapps directory.  However before doing that, change the  path i.e.

Context path=/montage docBase=montage_prod.war debug=0

Restart tomcat.

TomCat proceeds to merrily deploy montage_prod.war to /montage and this 
context works.

However it also deploys montage_prod.war to /montage_prod and this 
context doesn't work properly (I dispute whether it should even exist at 
all).  It appears to be missing the environment settings from 
montage_prod.xml.

Admittedly this won't affect many people and I only noticed because I've 
started using the built-in TomCat manager.


Is this intentional behaviour?

(I realise I can rename montage_prod.war to montage.war  and similarly 
for the xml, but that isn't really the point).
(I've looked at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment,
 
but it skates around this question)

Cheers,


Ben


--
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: Bringing up DBCP pooling again

2002-09-07 Thread Nikola Milutinovic

Andrew Conrad wrote:

 You might get more responses if you post it to
 [EMAIL PROTECTED]

If anyone gets an answer to this question, could it be circulated here, as well? 
Most of us would like to know. A DB server rebooting scenario is not all that 
impossible. And if it happens on Saturday night, who's gonna fix it and when, 
unles the pool automagically re-connects?

Nix.


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




Problems getting roles in JNDI Realm

2002-09-07 Thread Mark R. Diggory

I'm trying to get a realm set up via JNDI to an Openldap server. Here is 
my current server.xml config.

   Realm   
className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://vdc.fas.harvard.edu:389;
userPattern=uid={0},ou=vdcid,ou=hmdc,o=vdc
roleBase=o=vdc
roleSubtree=true
roleName=vdcGroup
roleSearch=(member={0})
digest=SHA
/

I'm using vdcGroup entries to store unique member attributes named 
'member'. I can do this search using straight JNDI in a Test Java 
Application. But the realm will not return the vdcGroups that jadmin is 
a member of. Is there something obvious I am missing?

-Mark

2002-09-07 10:40:51 JNDIRealm[Standalone]: Connecting to URL 
ldap://vdc.fas.harvard.edu:389
2002-09-07 10:41:11 JNDIRealm[Standalone]: lookupUser(jadmin)
2002-09-07 10:41:11 JNDIRealm[Standalone]:   
dn=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc
2002-09-07 10:41:11 JNDIRealm[Standalone]:   validating credentials by 
binding as the user
2002-09-07 10:41:11 JNDIRealm[Standalone]:   binding as 
uid=jadmin,ou=vdcid,ou=hmdc,o=vdc
2002-09-07 10:41:11 JNDIRealm[Standalone]: Username jadmin successfully 
authenticated
2002-09-07 10:41:11 JNDIRealm[Standalone]:   
getRoles(uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)
2002-09-07 10:41:11 JNDIRealm[Standalone]:   Searching role base 'o=vdc' 
for attribute 'vdcGroup'
2002-09-07 10:41:11 JNDIRealm[Standalone]:   With filter expression 
'(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)'
2002-09-07 10:41:11 JNDIRealm[Standalone]:   Returning 0 roles
2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT have 
role tomcat
2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT have 
role role1
2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT have 
role administrators


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




PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3

2002-09-07 Thread Joshua D. Drake

Hello,

 I am running RedHat 7.3, Apache 1.3.26 and Tomcat-3.3.1. I am having 
problems getting Tomcat to pick up new
classpaths for virtual hosts. We can successfully run jsp files from the 
virtual hosts but once we try to add a class
(for JavaBeans in this case) it fails. Here is the exact error:

java.lang.ClassNotFoundException: SimpleBean
at 
org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(DependClassLoader.java)
at 
org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at 
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java)
at 
org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java)
at 
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java)
at 
org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java)
at 
org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java)
at org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java)
at 
org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java)
at 
org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java)
at 
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java)
at java.lang.Thread.run(Thread.java:536)

 Here is my apps-vhosts.xml:

 ?xml version=1.0 encoding=ISO-8859-1?
Server
Host name=dev.sflsoccer.us
 Context path=
   docBase=/home/vhosting/sfl/htdocs/
   debug=5
   /
/Host
/Server

Also I have the following lines in my tomcat.properties:

wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/bin:/usr/java/j2sdk1.4.0_01/bin
 

wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhosting/sfl/htdocs

I have also tried the following:
wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/bin:/usr/java/j2sdk1.4.0_01/bin
 

wrapper.classpath=@JSERV_CLASSES@
wrapper.classpath=@JSDK_CLASSES@
wrapper.classpath=/home/vhosting/sfl/htdocs/classes


Normally I would call to a separate class directory but I am just trying 
to get it to work at this point.
I also added the following to my tomcat3.conf although it is my 
understanding that tomcat3 doesn't
care about shell variables for the classpath:

CLASSPATH=/home/vhosting/sfl/htdocs/classes:/home/vhostings/sfl/htdocs/classes
export CLASSPATH

Help would be greatly appreciated,

Sincerely,

Joshua D. Drake


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




Off topis - building pc's

2002-09-07 Thread Ron Day

Sorry its off topic

Anyone have a good site for how to build a PC ??

Ron


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




404 errors with new context

2002-09-07 Thread Steve

Hi;

I'm using Tomcat 4.03 with Red Hat 7.3.

I'm having trouble setting up a Context for a web application and I
was hoping someone could give me a clue to what I missed in reading the
manual.

First I set up a test web app like this:
Context path=/Projects docBase=/home/srussell/Projects debug=0
reloadable=true/


It worked.


Then, I did the same thing, but for a different directory:


Context path=/zoora docBase=/zoora debug=0 reloadable=true/

Did *NOT* work ( 404 cannot find error ) yet when I set the docBase to 
/zoora/mysubdir it worked.

Is Tomcat 4.03 blind to directories right off of root ?

I am the owner of /zoora.  It and all of its subdirs are chmoded to 777.

Any ideas?

Thanks in advance




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




Re: Problems getting roles in JNDI Realm (more info)

2002-09-07 Thread Mark R. Diggory

I know my request should work at the LDAP Server through JNDI because 
the following does work when I make a request to the LDAP server. I do 
get back the groups.

%
Hashtable env = new Hashtable();
env.put(DirContext.INITIAL_CONTEXT_FACTORY,com.sun.jndi.ldap.LdapCtxFactory);
env.put(DirContext.SECURITY_PRINCIPAL,uid=jadmin,ou=vdcid,ou=hmdc,o=vdc);
env.put(DirContext.SECURITY_CREDENTIALS,**);
env.put(DirContext.PROVIDER_URL,ldap://vdc.fas.harvard.edu:389;);

DirContext ctx = new InitialDirContext(env);

SearchControls controls = new SearchControls();
controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
controls.setReturningAttributes(new String[] {vdcGroup});

NamingEnumeration enum = 
ctx.search(o=vdc,(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc),controls);
   
while(enum.hasMore()){
SearchResult sr = (SearchResult)enum.next();
out.print(sr.getAttributes().get(vdcGroup) + BR);
}
%

is returning
vdcGroup: public
vdcGroup: researchers
vdcGroup: curators
vdcGroup: administrators

-Mark

Mark R. Diggory wrote:

 I'm trying to get a realm set up via JNDI to an Openldap server. Here 
 is my current server.xml config.

   Realm   
 className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://vdc.fas.harvard.edu:389;
userPattern=uid={0},ou=vdcid,ou=hmdc,o=vdc
roleBase=o=vdc
roleSubtree=true
roleName=vdcGroup
roleSearch=(member={0})
digest=SHA
/

 I'm using vdcGroup entries to store unique member attributes named 
 'member'. I can do this search using straight JNDI in a Test Java 
 Application. But the realm will not return the vdcGroups that jadmin 
 is a member of. Is there something obvious I am missing?

 -Mark

 2002-09-07 10:40:51 JNDIRealm[Standalone]: Connecting to URL 
 ldap://vdc.fas.harvard.edu:389
 2002-09-07 10:41:11 JNDIRealm[Standalone]: lookupUser(jadmin)
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   
 dn=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   validating credentials by 
 binding as the user
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   binding as 
 uid=jadmin,ou=vdcid,ou=hmdc,o=vdc
 2002-09-07 10:41:11 JNDIRealm[Standalone]: Username jadmin 
 successfully authenticated
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   
 getRoles(uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   Searching role base 
 'o=vdc' for attribute 'vdcGroup'
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   With filter expression 
 '(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)'
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   Returning 0 roles
 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT 
 have role tomcat
 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT 
 have role role1
 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT 
 have role administrators


 --
 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: Off topis - building pc's

2002-09-07 Thread Paul DuBois

At 14:09 -0500 9/7/02, Ron Day wrote:
Sorry its off topic

Anyone have a good site for how to build a PC ??

Ron

I imagine you can get tons of good information for that on the Tomcat
mailing list.  That's what they discuss there, right?

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




Re[2]: Bringing up DBCP pooling again

2002-09-07 Thread Rick Reumann

On Saturday, September 7, 2002, 10:15:04 AM, Nikola Milutinovic wrote:

NM Andrew Conrad wrote:

 You might get more responses if you post it to
 [EMAIL PROTECTED]

   I posted my question there. Not a very active list. Only received
   like 3 e-mails over the past two days. Of course no answer to my
   question:)

NM If anyone gets an answer to this question, could it be circulated here, as well? 
NM Most of us would like to know. A DB server rebooting scenario is not all that 
NM impossible. And if it happens on Saturday night, who's gonna fix it and when, 
NM unles the pool automagically re-connects?

Exactly. The problem is compounded more when your DBA doesn't have
a clue about the Tomcat server running on a different box, so if
even the DBA is called in to make sure the database is all up and
ok, it would be nice of any pooling would take care of itself
without having to restart the Tomcat server.


--

Rick

mailto:[EMAIL PROTECTED]


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




Re: onLoad Servlet

2002-09-07 Thread micael

Hi, neal,

I am going to do my best to state this without being offensive, which I 
don't intend to be.  You really need to look at what I am saying, however 
you take this, neal.

The problem you are having is why I asked the questions which, 
unfortunately, you took as insults.  I thought you were missing this 
information and was trying to find out if that was true.  You need to look 
at the web.xml for struts, and the dtd for web.xmls generally.  If you look 
at the struts example, you will find something like the following in web.xml:

web-app
..

   !-- Example Database Initialization Servlet Configuration
   servlet
 servlet-namedatabase/servlet-name
 servlet-classorg.apache.struts.example.DatabaseServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 load-on-startup1/load-on-startup
   /servlet
   --


   !-- Standard Action Servlet Configuration (with debugging) --
   servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
   param-valuecom.tresbeau.i18n.messages/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/xml/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namevalidate/param-name
   param-valuetrue/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet


   !-- Standard Action Servlet Mapping --
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
   /servlet-mapping


..
/web-app

Additionally, you will find that servlets themselves have an initialization 
method (init).  So, you need to delve more into servlets and more into the 
way the xml is used to configure things in the Model 2 architecture.

The core of the struts app, of course, is the ActionServlet.  With that in 
mind, consider the following class:

package com.oreilly.struts.storefront.framework;

import javax.servlet.ServletException;
import javax.servlet.UnavailableException;
import org.apache.struts.action.ActionServlet;
import com.oreilly.struts.storefront.service.IStorefrontService;
import com.oreilly.struts.storefront.service.StorefrontServiceImpl;
import com.oreilly.struts.storefront.framework.util.IConstants;
import com.oreilly.struts.storefront.framework.exceptions.DatastoreException;
/**
  * Extend the Struts ActionServlet to perform your own special
  * initialization.
  */
public class ExtendedActionServlet extends ActionServlet {

   public void init() throws ServletException {

 // Make sure to always call the super's init() first
 super.init();

 // Initialize the persistence service
 try{
   // Create an instance of the service interface
   StorefrontServiceImpl serviceImpl = new StorefrontServiceImpl();

   // Store the service into the application scope
   getServletContext().setAttribute( IConstants.SERVICE_INTERFACE_KEY,
 serviceImpl );
 }catch( DatastoreException ex ){
   // If there's a problem initializing the service, disable the web app
   ex.printStackTrace();
   throw new UnavailableException( ex.getMessage() );
 }
   }
}
This is from Chuck's upcoming (soon) book.  This ought to be enough to get 
you kick started.  I once again highly recommend that you read Jason 
Hunter's book on servlets.

micael


At 12:48 AM 9/7/2002 -0700, you wrote:
In a previous thread someone mentioned that it is possible to set a servlet
to run as Tomcat is started.

Could someone please provide me with a syntactical example of how to set
this up?

I have searched the documentation, I've searched for exmaples in the web.xml
files, and I've scoured the Internet and I can not find any documentation or
examples.

I guess I'm just looking int he wrong places???

Thanks.
Neal


--
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: onLoad Servlet

2002-09-07 Thread neal

Micael,

Thank you and that was not offensive at all.  Actually, that is a good
point.  I will look at the Struts web.xml file (presumably in the example
app).  I just didn't know what I was looking for.  :)

Thanks!
neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 07, 2002 12:47 PM
To: Tomcat Users List
Subject: Re: onLoad Servlet


Hi, neal,

I am going to do my best to state this without being offensive, which I
don't intend to be.  You really need to look at what I am saying, however
you take this, neal.

The problem you are having is why I asked the questions which,
unfortunately, you took as insults.  I thought you were missing this
information and was trying to find out if that was true.  You need to look
at the web.xml for struts, and the dtd for web.xmls generally.  If you look
at the struts example, you will find something like the following in
web.xml:

web-app
..

   !-- Example Database Initialization Servlet Configuration
   servlet
 servlet-namedatabase/servlet-name

servlet-classorg.apache.struts.example.DatabaseServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 load-on-startup1/load-on-startup
   /servlet
   --


   !-- Standard Action Servlet Configuration (with debugging) --
   servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
   param-valuecom.tresbeau.i18n.messages/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/xml/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namevalidate/param-name
   param-valuetrue/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet


   !-- Standard Action Servlet Mapping --
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
   /servlet-mapping


..
/web-app

Additionally, you will find that servlets themselves have an initialization
method (init).  So, you need to delve more into servlets and more into the
way the xml is used to configure things in the Model 2 architecture.

The core of the struts app, of course, is the ActionServlet.  With that in
mind, consider the following class:

package com.oreilly.struts.storefront.framework;

import javax.servlet.ServletException;
import javax.servlet.UnavailableException;
import org.apache.struts.action.ActionServlet;
import com.oreilly.struts.storefront.service.IStorefrontService;
import com.oreilly.struts.storefront.service.StorefrontServiceImpl;
import com.oreilly.struts.storefront.framework.util.IConstants;
import
com.oreilly.struts.storefront.framework.exceptions.DatastoreException;
/**
  * Extend the Struts ActionServlet to perform your own special
  * initialization.
  */
public class ExtendedActionServlet extends ActionServlet {

   public void init() throws ServletException {

 // Make sure to always call the super's init() first
 super.init();

 // Initialize the persistence service
 try{
   // Create an instance of the service interface
   StorefrontServiceImpl serviceImpl = new StorefrontServiceImpl();

   // Store the service into the application scope
   getServletContext().setAttribute( IConstants.SERVICE_INTERFACE_KEY,
 serviceImpl );
 }catch( DatastoreException ex ){
   // If there's a problem initializing the service, disable the web app
   ex.printStackTrace();
   throw new UnavailableException( ex.getMessage() );
 }
   }
}
This is from Chuck's upcoming (soon) book.  This ought to be enough to get
you kick started.  I once again highly recommend that you read Jason
Hunter's book on servlets.

micael


At 12:48 AM 9/7/2002 -0700, you wrote:
In a previous thread someone mentioned that it is possible to set a servlet
to run as Tomcat is started.

Could someone please provide me with a syntactical example of how to set
this up?

I have searched the documentation, I've searched for exmaples in the
web.xml
files, and I've scoured the Internet and I can not find any documentation
or
examples.

I guess I'm just looking int he wrong places???

Thanks.
Neal


--
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: Problems getting roles in JNDI Realm (This *IS* a problem.)

2002-09-07 Thread Mark R. Diggory

Looking over the JNDIRealm Code I notice that in the bindAsUser method 
that the users principle and credentials are stripped out of the 
context. It is after this point that the JNDI search request is made to 
gather the roles from the ldap server. Shouldn't it be *after* the 
search for the roles that the users principle and credentials is removed 
from the DirContext?

This would mean that I can never *really* use bindAsUser(...) strategy 
because I'd always have to provide a connectionUser 
and connectionPassword to do the role lookup. Not good at all. This 
means the configuration is impossible because if you provide the 
connectionName and connectionPassword attributes, then it just looks up 
the password on authentication instead of binding as the user.

-M.

Mark R. Diggory wrote:

 I know my request should work at the LDAP Server through JNDI because 
 the following does work when I make a request to the LDAP server. I do 
 get back the groups.

 %
 Hashtable env = new Hashtable();
 env.put(DirContext.INITIAL_CONTEXT_FACTORY,com.sun.jndi.ldap.LdapCtxFactory); 

 env.put(DirContext.SECURITY_PRINCIPAL,uid=jadmin,ou=vdcid,ou=hmdc,o=vdc); 

 env.put(DirContext.SECURITY_CREDENTIALS,**);
 env.put(DirContext.PROVIDER_URL,ldap://vdc.fas.harvard.edu:389;);

 DirContext ctx = new InitialDirContext(env);

 SearchControls controls = new SearchControls();
 controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
 controls.setReturningAttributes(new String[] {vdcGroup});

 NamingEnumeration enum = 
 ctx.search(o=vdc,(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc),controls); 

   while(enum.hasMore()){
SearchResult sr = (SearchResult)enum.next();
out.print(sr.getAttributes().get(vdcGroup) + BR);
}
 %

 is returning
 vdcGroup: public
 vdcGroup: researchers
 vdcGroup: curators
 vdcGroup: administrators

 -Mark

 Mark R. Diggory wrote:

 I'm trying to get a realm set up via JNDI to an Openldap server. Here 
 is my current server.xml config.

   Realm   
 className=org.apache.catalina.realm.JNDIRealm debug=99
connectionURL=ldap://vdc.fas.harvard.edu:389;
userPattern=uid={0},ou=vdcid,ou=hmdc,o=vdc
roleBase=o=vdc
roleSubtree=true
roleName=vdcGroup
roleSearch=(member={0})
digest=SHA
/

 I'm using vdcGroup entries to store unique member attributes named 
 'member'. I can do this search using straight JNDI in a Test Java 
 Application. But the realm will not return the vdcGroups that jadmin 
 is a member of. Is there something obvious I am missing?

 -Mark

 2002-09-07 10:40:51 JNDIRealm[Standalone]: Connecting to URL 
 ldap://vdc.fas.harvard.edu:389
 2002-09-07 10:41:11 JNDIRealm[Standalone]: lookupUser(jadmin)
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   
 dn=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   validating credentials 
 by binding as the user
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   binding as 
 uid=jadmin,ou=vdcid,ou=hmdc,o=vdc
 2002-09-07 10:41:11 JNDIRealm[Standalone]: Username jadmin 
 successfully authenticated
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   
 getRoles(uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   Searching role base 
 'o=vdc' for attribute 'vdcGroup'
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   With filter expression 
 '(member=uid=jadmin,ou=vdcid,ou=hmdc,o=vdc)'
 2002-09-07 10:41:11 JNDIRealm[Standalone]:   Returning 0 roles
 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT 
 have role tomcat
 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT 
 have role role1
 2002-09-07 10:41:12 JNDIRealm[Standalone]: Username jadmin does NOT 
 have role administrators


 --
 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: Tomcat standalone Versus Apache

2002-09-07 Thread neal

By static content, you mean HTML files probably, right?

I read recently that thanks to the recently advanced JIT compilers that a
typical JSP can be served nearly s quickly as a standard HTML file.  That
said, should Apache serving HTML really be way, way, way faster than
Tomcat sreving JSPs?  And why/how might this be different than Tomcat
serving HTML?

Perhaps this (that JSPs are almost as fast as HTML now) was said in general
but doesn't apply to all app servers?

Do you know of any benchmarks on this or can anyone quantify just how much
faster Apache is or shed some light on why?

Oh and btw, does anyone know if its possible to cache page output via
Tomcat?  This also might increase performance on static content.  Perhaps
this affects that Tomcat/Apache performance gap?

Thanks
Neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:51 PM
To: Tomcat Users List
Subject: RE: Tomcat standalone Versus Apache


Depends on if you have static content, neal.  Apache is way, way, way
faster, of course, if you have static content running.

At 05:25 PM 9/6/2002 -0700, you wrote:
Alright,

So there's no taboo here that I'm not aware of. It sounds like a lot of
people do run Tomcat with Apache but not all and its simply a matter of
what
fits my needs best.  So, there are no silver bullet issues (other than
posibly this roon daemon thing) which suggests running Tomcat standalone in
production is foolish, right?

Thanks.
Neal



-Original Message-
From: Randy Secrist [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 2:44 PM
To: Tomcat Users List
Subject: Re: Tomcat standalone Versus Apache


I have heard reports, (although never seen actual numbers or data) that
suggest that if you have a lot of static pages for a large site, standalone
Tomcat decreases in performace pretty quickly.  That said - Apache has also
been tested and proven with static pages, and has a great system for adding
extentions.  As such, many production environments run cgi, php, and other
scripting languages for their web pages.  Apache's role as a fully
serviceable http server is much more broad than the http services Tomcat
connectors provide.  Tomcat connectors CAN interface with Apache to give
jsp
/ servlet container abilities to Apache.

Usually, people run Apache + Tomcat so they can use multiple scripting
languages - since the entire world doesn't use java.  While Tomcat does
support cgi (via servlet calls), jsp / servlet containers were not designed
with this explicitly designed as their main role - while Apache was.  I
have
also never heard of a servlet that imitates php...although someone who
never
sleeps at night has probably implemented it.

Randy

- Original Message -
From: neal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 06, 2002 3:24 PM
Subject: Tomcat standalone Versus Apache


  What do most people run for production and why?  Tomcat standalone or
Tomcat
  with Apache? And for that matter, isn't the http server for Tomcat
Apache -
  or is it something else?
 
  John Turner mentioned the possible concern with running Tomcat as root.
Are
  there any other concerns?  Performance?  Security?
 
  Thanks.
  Neal
 
 
  --
  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: Tomcat standalone Versus Apache

2002-09-07 Thread micael

I did the comparison about a year ago, and things change.  I have no heard 
of a change in this regard.  That would be a huge, unprecedented change for 
Tomcat, and I have been following Tomcat daily.  I notice that no one 
disputed the suggestions I made, so I assume the tests are still at least 
roughly valid.  The issue is thousands versus hundreds, neal.

There are lots of benchmark studies.  Just look around.  It is not close, 
neal.  If you find something different, I would be really interested.

Maybe your source meant that Tomcat and like servers can serve jsp almost 
like html.  That is not saying that Tomcat can serve jsp like Apache can 
serve html.

I cannot think of a good reason to have Tomcat serve html off hand.

You can cache anything.  The question is whether there is an efficient way 
to make that useful to do.  Why do it when Apache is there?

Do you have some reason why you don't want to use Apache?

I hope, again, that this is not offensive.  Not meant to be.

Micael

At 03:22 PM 9/7/2002 -0700, you wrote:
By static content, you mean HTML files probably, right?

I read recently that thanks to the recently advanced JIT compilers that a
typical JSP can be served nearly s quickly as a standard HTML file.  That
said, should Apache serving HTML really be way, way, way faster than
Tomcat sreving JSPs?  And why/how might this be different than Tomcat
serving HTML?

Perhaps this (that JSPs are almost as fast as HTML now) was said in general
but doesn't apply to all app servers?

Do you know of any benchmarks on this or can anyone quantify just how much
faster Apache is or shed some light on why?

Oh and btw, does anyone know if its possible to cache page output via
Tomcat?  This also might increase performance on static content.  Perhaps
this affects that Tomcat/Apache performance gap?

Thanks
Neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:51 PM
To: Tomcat Users List
Subject: RE: Tomcat standalone Versus Apache


Depends on if you have static content, neal.  Apache is way, way, way
faster, of course, if you have static content running.

At 05:25 PM 9/6/2002 -0700, you wrote:
 Alright,
 
 So there's no taboo here that I'm not aware of. It sounds like a lot of
 people do run Tomcat with Apache but not all and its simply a matter of
what
 fits my needs best.  So, there are no silver bullet issues (other than
 posibly this roon daemon thing) which suggests running Tomcat standalone in
 production is foolish, right?
 
 Thanks.
 Neal
 
 
 
 -Original Message-
 From: Randy Secrist [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 2:44 PM
 To: Tomcat Users List
 Subject: Re: Tomcat standalone Versus Apache
 
 
 I have heard reports, (although never seen actual numbers or data) that
 suggest that if you have a lot of static pages for a large site, standalone
 Tomcat decreases in performace pretty quickly.  That said - Apache has also
 been tested and proven with static pages, and has a great system for adding
 extentions.  As such, many production environments run cgi, php, and other
 scripting languages for their web pages.  Apache's role as a fully
 serviceable http server is much more broad than the http services Tomcat
 connectors provide.  Tomcat connectors CAN interface with Apache to give
jsp
 / servlet container abilities to Apache.
 
 Usually, people run Apache + Tomcat so they can use multiple scripting
 languages - since the entire world doesn't use java.  While Tomcat does
 support cgi (via servlet calls), jsp / servlet containers were not designed
 with this explicitly designed as their main role - while Apache was.  I
have
 also never heard of a servlet that imitates php...although someone who
never
 sleeps at night has probably implemented it.
 
 Randy
 
 - Original Message -
 From: neal [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 3:24 PM
 Subject: Tomcat standalone Versus Apache
 
 
   What do most people run for production and why?  Tomcat standalone or
 Tomcat
   with Apache? And for that matter, isn't the http server for Tomcat
 Apache -
   or is it something else?
  
   John Turner mentioned the possible concern with running Tomcat as root.
 Are
   there any other concerns?  Performance?  Security?
  
   Thanks.
   Neal
  
  
   --
   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:   

RE: Tomcat standalone Versus Apache

2002-09-07 Thread neal

Yeah, you're right ... no one was refuting that.  If anything, several
people said the same thing you did. I guess I just don't understand why or
to what extent that's true.  I'll look into it some more and let you know
anything I find.


:)

Neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 07, 2002 4:53 PM
To: Tomcat Users List
Subject: RE: Tomcat standalone Versus Apache


I did the comparison about a year ago, and things change.  I have no heard
of a change in this regard.  That would be a huge, unprecedented change for
Tomcat, and I have been following Tomcat daily.  I notice that no one
disputed the suggestions I made, so I assume the tests are still at least
roughly valid.  The issue is thousands versus hundreds, neal.

There are lots of benchmark studies.  Just look around.  It is not close,
neal.  If you find something different, I would be really interested.

Maybe your source meant that Tomcat and like servers can serve jsp almost
like html.  That is not saying that Tomcat can serve jsp like Apache can
serve html.

I cannot think of a good reason to have Tomcat serve html off hand.

You can cache anything.  The question is whether there is an efficient way
to make that useful to do.  Why do it when Apache is there?

Do you have some reason why you don't want to use Apache?

I hope, again, that this is not offensive.  Not meant to be.

Micael

At 03:22 PM 9/7/2002 -0700, you wrote:
By static content, you mean HTML files probably, right?

I read recently that thanks to the recently advanced JIT compilers that a
typical JSP can be served nearly s quickly as a standard HTML file.  That
said, should Apache serving HTML really be way, way, way faster than
Tomcat sreving JSPs?  And why/how might this be different than Tomcat
serving HTML?

Perhaps this (that JSPs are almost as fast as HTML now) was said in general
but doesn't apply to all app servers?

Do you know of any benchmarks on this or can anyone quantify just how much
faster Apache is or shed some light on why?

Oh and btw, does anyone know if its possible to cache page output via
Tomcat?  This also might increase performance on static content.  Perhaps
this affects that Tomcat/Apache performance gap?

Thanks
Neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 10:51 PM
To: Tomcat Users List
Subject: RE: Tomcat standalone Versus Apache


Depends on if you have static content, neal.  Apache is way, way, way
faster, of course, if you have static content running.

At 05:25 PM 9/6/2002 -0700, you wrote:
 Alright,
 
 So there's no taboo here that I'm not aware of. It sounds like a lot of
 people do run Tomcat with Apache but not all and its simply a matter of
what
 fits my needs best.  So, there are no silver bullet issues (other than
 posibly this roon daemon thing) which suggests running Tomcat standalone
in
 production is foolish, right?
 
 Thanks.
 Neal
 
 
 
 -Original Message-
 From: Randy Secrist [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 2:44 PM
 To: Tomcat Users List
 Subject: Re: Tomcat standalone Versus Apache
 
 
 I have heard reports, (although never seen actual numbers or data) that
 suggest that if you have a lot of static pages for a large site,
standalone
 Tomcat decreases in performace pretty quickly.  That said - Apache has
also
 been tested and proven with static pages, and has a great system for
adding
 extentions.  As such, many production environments run cgi, php, and
other
 scripting languages for their web pages.  Apache's role as a fully
 serviceable http server is much more broad than the http services Tomcat
 connectors provide.  Tomcat connectors CAN interface with Apache to give
jsp
 / servlet container abilities to Apache.
 
 Usually, people run Apache + Tomcat so they can use multiple scripting
 languages - since the entire world doesn't use java.  While Tomcat does
 support cgi (via servlet calls), jsp / servlet containers were not
designed
 with this explicitly designed as their main role - while Apache was.  I
have
 also never heard of a servlet that imitates php...although someone who
never
 sleeps at night has probably implemented it.
 
 Randy
 
 - Original Message -
 From: neal [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, September 06, 2002 3:24 PM
 Subject: Tomcat standalone Versus Apache
 
 
   What do most people run for production and why?  Tomcat standalone or
 Tomcat
   with Apache? And for that matter, isn't the http server for Tomcat
 Apache -
   or is it something else?
  
   John Turner mentioned the possible concern with running Tomcat as
root.
 Are
   there any other concerns?  Performance?  Security?
  
   Thanks.
   Neal
  
  
   --
   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, 

RE: Tomcat standalone Versus Apache

2002-09-07 Thread micael

Here is a benchmark test.  I don't know if it is generally reliable, but it 
fits with experience I have had where they match up.

http://www.chamas.com/bench/index.html



At 05:07 PM 9/7/2002 -0700, you wrote:
Yeah, you're right ... no one was refuting that.  If anything, several
people said the same thing you did. I guess I just don't understand why or
to what extent that's true.  I'll look into it some more and let you know
anything I find.


:)

Neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 07, 2002 4:53 PM
To: Tomcat Users List
Subject: RE: Tomcat standalone Versus Apache


I did the comparison about a year ago, and things change.  I have no heard
of a change in this regard.  That would be a huge, unprecedented change for
Tomcat, and I have been following Tomcat daily.  I notice that no one
disputed the suggestions I made, so I assume the tests are still at least
roughly valid.  The issue is thousands versus hundreds, neal.

There are lots of benchmark studies.  Just look around.  It is not close,
neal.  If you find something different, I would be really interested.

Maybe your source meant that Tomcat and like servers can serve jsp almost
like html.  That is not saying that Tomcat can serve jsp like Apache can
serve html.

I cannot think of a good reason to have Tomcat serve html off hand.

You can cache anything.  The question is whether there is an efficient way
to make that useful to do.  Why do it when Apache is there?

Do you have some reason why you don't want to use Apache?

I hope, again, that this is not offensive.  Not meant to be.

Micael

At 03:22 PM 9/7/2002 -0700, you wrote:
 By static content, you mean HTML files probably, right?
 
 I read recently that thanks to the recently advanced JIT compilers that a
 typical JSP can be served nearly s quickly as a standard HTML file.  That
 said, should Apache serving HTML really be way, way, way faster than
 Tomcat sreving JSPs?  And why/how might this be different than Tomcat
 serving HTML?
 
 Perhaps this (that JSPs are almost as fast as HTML now) was said in general
 but doesn't apply to all app servers?
 
 Do you know of any benchmarks on this or can anyone quantify just how much
 faster Apache is or shed some light on why?
 
 Oh and btw, does anyone know if its possible to cache page output via
 Tomcat?  This also might increase performance on static content.  Perhaps
 this affects that Tomcat/Apache performance gap?
 
 Thanks
 Neal
 
 
 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 10:51 PM
 To: Tomcat Users List
 Subject: RE: Tomcat standalone Versus Apache
 
 
 Depends on if you have static content, neal.  Apache is way, way, way
 faster, of course, if you have static content running.
 
 At 05:25 PM 9/6/2002 -0700, you wrote:
  Alright,
  
  So there's no taboo here that I'm not aware of. It sounds like a lot of
  people do run Tomcat with Apache but not all and its simply a matter of
 what
  fits my needs best.  So, there are no silver bullet issues (other than
  posibly this roon daemon thing) which suggests running Tomcat standalone
in
  production is foolish, right?
  
  Thanks.
  Neal
  
  
  
  -Original Message-
  From: Randy Secrist [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 2:44 PM
  To: Tomcat Users List
  Subject: Re: Tomcat standalone Versus Apache
  
  
  I have heard reports, (although never seen actual numbers or data) that
  suggest that if you have a lot of static pages for a large site,
standalone
  Tomcat decreases in performace pretty quickly.  That said - Apache has
also
  been tested and proven with static pages, and has a great system for
adding
  extentions.  As such, many production environments run cgi, php, and
other
  scripting languages for their web pages.  Apache's role as a fully
  serviceable http server is much more broad than the http services Tomcat
  connectors provide.  Tomcat connectors CAN interface with Apache to give
 jsp
  / servlet container abilities to Apache.
  
  Usually, people run Apache + Tomcat so they can use multiple scripting
  languages - since the entire world doesn't use java.  While Tomcat does
  support cgi (via servlet calls), jsp / servlet containers were not
designed
  with this explicitly designed as their main role - while Apache was.  I
 have
  also never heard of a servlet that imitates php...although someone who
 never
  sleeps at night has probably implemented it.
  
  Randy
  
  - Original Message -
  From: neal [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, September 06, 2002 3:24 PM
  Subject: Tomcat standalone Versus Apache
  
  
What do most people run for production and why?  Tomcat standalone or
  Tomcat
with Apache? And for that matter, isn't the http server for Tomcat
  Apache -
or is it something else?
   
John Turner mentioned the possible concern with running Tomcat as

RE: Tomcat standalone Versus Apache

2002-09-07 Thread micael

Keep in mind, neal, that the servlet created in the work directory is 
really what is doing the work.  I don't know in these tests what some of 
the configurations are either.  If they did not, for example, turn off the 
reloadable attribute, then that would be really 
unfair.  UNFAIR!  lol!  The jsp is only good the first time through, so 
that you really are comparing html to servlets in a sense, not to jsp.

At 05:07 PM 9/7/2002 -0700, you wrote:
Yeah, you're right ... no one was refuting that.  If anything, several
people said the same thing you did. I guess I just don't understand why or
to what extent that's true.  I'll look into it some more and let you know
anything I find.


:)

Neal


-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 07, 2002 4:53 PM
To: Tomcat Users List
Subject: RE: Tomcat standalone Versus Apache


I did the comparison about a year ago, and things change.  I have no heard
of a change in this regard.  That would be a huge, unprecedented change for
Tomcat, and I have been following Tomcat daily.  I notice that no one
disputed the suggestions I made, so I assume the tests are still at least
roughly valid.  The issue is thousands versus hundreds, neal.

There are lots of benchmark studies.  Just look around.  It is not close,
neal.  If you find something different, I would be really interested.

Maybe your source meant that Tomcat and like servers can serve jsp almost
like html.  That is not saying that Tomcat can serve jsp like Apache can
serve html.

I cannot think of a good reason to have Tomcat serve html off hand.

You can cache anything.  The question is whether there is an efficient way
to make that useful to do.  Why do it when Apache is there?

Do you have some reason why you don't want to use Apache?

I hope, again, that this is not offensive.  Not meant to be.

Micael

At 03:22 PM 9/7/2002 -0700, you wrote:
 By static content, you mean HTML files probably, right?
 
 I read recently that thanks to the recently advanced JIT compilers that a
 typical JSP can be served nearly s quickly as a standard HTML file.  That
 said, should Apache serving HTML really be way, way, way faster than
 Tomcat sreving JSPs?  And why/how might this be different than Tomcat
 serving HTML?
 
 Perhaps this (that JSPs are almost as fast as HTML now) was said in general
 but doesn't apply to all app servers?
 
 Do you know of any benchmarks on this or can anyone quantify just how much
 faster Apache is or shed some light on why?
 
 Oh and btw, does anyone know if its possible to cache page output via
 Tomcat?  This also might increase performance on static content.  Perhaps
 this affects that Tomcat/Apache performance gap?
 
 Thanks
 Neal
 
 
 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 10:51 PM
 To: Tomcat Users List
 Subject: RE: Tomcat standalone Versus Apache
 
 
 Depends on if you have static content, neal.  Apache is way, way, way
 faster, of course, if you have static content running.
 
 At 05:25 PM 9/6/2002 -0700, you wrote:
  Alright,
  
  So there's no taboo here that I'm not aware of. It sounds like a lot of
  people do run Tomcat with Apache but not all and its simply a matter of
 what
  fits my needs best.  So, there are no silver bullet issues (other than
  posibly this roon daemon thing) which suggests running Tomcat standalone
in
  production is foolish, right?
  
  Thanks.
  Neal
  
  
  
  -Original Message-
  From: Randy Secrist [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 2:44 PM
  To: Tomcat Users List
  Subject: Re: Tomcat standalone Versus Apache
  
  
  I have heard reports, (although never seen actual numbers or data) that
  suggest that if you have a lot of static pages for a large site,
standalone
  Tomcat decreases in performace pretty quickly.  That said - Apache has
also
  been tested and proven with static pages, and has a great system for
adding
  extentions.  As such, many production environments run cgi, php, and
other
  scripting languages for their web pages.  Apache's role as a fully
  serviceable http server is much more broad than the http services Tomcat
  connectors provide.  Tomcat connectors CAN interface with Apache to give
 jsp
  / servlet container abilities to Apache.
  
  Usually, people run Apache + Tomcat so they can use multiple scripting
  languages - since the entire world doesn't use java.  While Tomcat does
  support cgi (via servlet calls), jsp / servlet containers were not
designed
  with this explicitly designed as their main role - while Apache was.  I
 have
  also never heard of a servlet that imitates php...although someone who
 never
  sleeps at night has probably implemented it.
  
  Randy
  
  - Original Message -
  From: neal [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, September 06, 2002 3:24 PM
  Subject: Tomcat standalone Versus Apache
  
  
What do most people 

On Resin, Tomcat and Apache.

2002-09-07 Thread Sriram N

Hi all,

I saw the past few days' posts on resin vs tomcat, and tomcat vs apache.

I just went over to resin's site, and here's what they have to say:


Resin includes a full-featured HTTP/1.1 web server dedicated to serving fast
Java dynamic content. While Resin is tuned for dynamic content, its static file
performance matches or beats Apache's static performance. Many, if not most,
sites will use Resin's web server for all their web server requests.


But if you go over to http://www.caucho.com/articles/jsp_benchmarks.xtp;,
which is available as a link on the same page, you'll notice that they're
talking only about serving JSPs. And they use JDK 1.1.7, and they compare with
JServ, and not Tomcat. 

I can't comment on JServ, since I'd used it for just day before I discovered
Tomcat.

I remember coming across a post by Craig (in either of Tomcat-user or
Tomcat-dev) that with today's JDKs reflection etc is very fast, and Tomcat by
itself is very fast.

For a web-solution that we gave to a bank, I built a app that contained
Embedded Tomcat 4.0.1, and the customers are satisfied with the performance.
And with the new Jasper and the whole lot of improvements that have been, I'd
say that Tomcat today is much more improved than what it was a year ago.

Sriram

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

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




How to set tomcat to use port 80...

2002-09-07 Thread Keith Pemberton

Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type tomcat4 run as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith





Re: passing a session from non-SSL to SSL

2002-09-07 Thread Milt Epstein

On Fri, 6 Sep 2002, Joshua Szmajda wrote:

 Hi all,

 I'm upgrading an application from Tomcat 3.2 to Tomcat 4.0, and
 I'm noticing that my application is now losing track of its sessions
 when I switch from non-SSL to SSL. The code worked fine in Tomcat
 3.2.. I was wondering if there's something I'm missing. My
 server.xml has a single Ajp13 connector and a plain vanilla host /
 context configuration. I've JKMount'ed /* to ajp13 in apache on both
 the normal and SSL virtual hosts.

 I'm sure it's something in the spec that's changed, but I can't
 for the life of me find out what. Changing the code is possible, but
 preferably avoidable as I didn't write it.

It's well known that Tomcat does not preserve sessions when switching
from SSL to non-SSL (and/or vice-versa).  Don't know about earlier
versions, but that's true of the current version.  You can check the
archives to see where others have brought this up.

I don't think this is a spec issue, so I guess either it was an
implementation choice by the Tomcat developers or perhaps there's no
way (or no easy way) around it.  If it was an implementation choice, I
don't know what it was based on.  I believe there are other servlet
containers that you can set up so that such switching does not lose
sessions.  I'm not sure of all the technical issues involved.

Also note that some will say that it doesn't make sense to switch back
and forth between SSL and non-SSL because security is compromised.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: How to set tomcat to use port 80...

2002-09-07 Thread neal

That's all I did ... change the port from 8080 to 80 and that worked for me
on both Windows and Linux.  As to the permissions issue I don't really know
enough to comment per se ... but someone mentioned in a prior conversation
that in order for Tomcat to run on any port  1024 it must run as root.  I
don't know exactly how this may speak to your problem but perhaps its enough
of a clue to put you on the path to finding an answer (??).

Good luck.  :)

Neal


-Original Message-
From: Keith Pemberton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 07, 2002 8:20 PM
To: [EMAIL PROTECTED]
Subject: How to set tomcat to use port 80...


Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type tomcat4 run as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith




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




RE: Tomcat standalone Versus Apache

2002-09-07 Thread Milt Epstein

On Sat, 7 Sep 2002, micael wrote:

 I did the comparison about a year ago, and things change.  I have no
 heard of a change in this regard.  That would be a huge,
 unprecedented change for Tomcat, and I have been following Tomcat
 daily.  I notice that no one disputed the suggestions I made, so I
 assume the tests are still at least roughly valid.  The issue is
 thousands versus hundreds, neal.

I wouldn't attribute much significance to the fact that no one has
disputed your comments, there are plenty of other possible
explanations for that.


 There are lots of benchmark studies.  Just look around.  It is not
 close, neal.  If you find something different, I would be really
 interested.

 Maybe your source meant that Tomcat and like servers can serve jsp
 almost like html.  That is not saying that Tomcat can serve jsp like
 Apache can serve html.

 I cannot think of a good reason to have Tomcat serve html off hand.

The thing is, that may not be the right way to look at it.  For
example, one can just as easily say I cannot think of a good reason
to have Apache involved with serving dynamic content off hand.
Remember that just as there is a penalty for having Tomcat serve
static content, there is a penalty for having Apache involved with
dynamic content.  You have to look at the total picture.  If a site is
90% dynamic content, it may very well work out better going with
Tomcat standalone.  (I have no idea where the exact break-even point
lies.)


 You can cache anything.  The question is whether there is an
 efficient way to make that useful to do.  Why do it when Apache is
 there?

 Do you have some reason why you don't want to use Apache?
[ ... ]

Not using Apache improves performance on dynamic content (well,
servlets/JSPs), and makes setup/configuration much simpler.

I'm not saying Tomcat standalone is always the way to go, I'm just
saying that I can imagine situations where it is.


 At 03:22 PM 9/7/2002 -0700, you wrote:
 By static content, you mean HTML files probably, right?
 
 I read recently that thanks to the recently advanced JIT compilers that a
 typical JSP can be served nearly s quickly as a standard HTML file.  That
 said, should Apache serving HTML really be way, way, way faster than
 Tomcat sreving JSPs?  And why/how might this be different than Tomcat
 serving HTML?
 
 Perhaps this (that JSPs are almost as fast as HTML now) was said in general
 but doesn't apply to all app servers?
 
 Do you know of any benchmarks on this or can anyone quantify just how much
 faster Apache is or shed some light on why?
 
 Oh and btw, does anyone know if its possible to cache page output via
 Tomcat?  This also might increase performance on static content.  Perhaps
 this affects that Tomcat/Apache performance gap?
 
 Thanks
 Neal
 
 
 -Original Message-
 From: micael [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 06, 2002 10:51 PM
 To: Tomcat Users List
 Subject: RE: Tomcat standalone Versus Apache
 
 
 Depends on if you have static content, neal.  Apache is way, way, way
 faster, of course, if you have static content running.
 
 At 05:25 PM 9/6/2002 -0700, you wrote:
  Alright,
  
  So there's no taboo here that I'm not aware of. It sounds like a lot of
  people do run Tomcat with Apache but not all and its simply a matter of
 what
  fits my needs best.  So, there are no silver bullet issues (other than
  posibly this roon daemon thing) which suggests running Tomcat standalone in
  production is foolish, right?
  
  Thanks.
  Neal
  
  
  
  -Original Message-
  From: Randy Secrist [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 06, 2002 2:44 PM
  To: Tomcat Users List
  Subject: Re: Tomcat standalone Versus Apache
  
  
  I have heard reports, (although never seen actual numbers or data) that
  suggest that if you have a lot of static pages for a large site, standalone
  Tomcat decreases in performace pretty quickly.  That said - Apache has also
  been tested and proven with static pages, and has a great system for adding
  extentions.  As such, many production environments run cgi, php, and other
  scripting languages for their web pages.  Apache's role as a fully
  serviceable http server is much more broad than the http services Tomcat
  connectors provide.  Tomcat connectors CAN interface with Apache to give
 jsp
  / servlet container abilities to Apache.
  
  Usually, people run Apache + Tomcat so they can use multiple scripting
  languages - since the entire world doesn't use java.  While Tomcat does
  support cgi (via servlet calls), jsp / servlet containers were not designed
  with this explicitly designed as their main role - while Apache was.  I
 have
  also never heard of a servlet that imitates php...although someone who
 never
  sleeps at night has probably implemented it.
  
  Randy
  
  - Original Message -
  From: neal [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, September 06, 2002 3:24 PM
  Subject: Tomcat standalone 

Re: How to set tomcat to use port 80...

2002-09-07 Thread Rick Reumann

On Saturday, September 7, 2002, 11:19:41 PM, Keith Pemberton wrote:

KP   I keep getting Permission Denied messages
KP when I type tomcat4 run as the root user.  That command does
KP work, though, if I change the port back to 8080.  Any insights
KP would be much appreciated!  Thanks!

Could it be that there is something else also running on port 80
that you aren't aware of. I 'think' I had that problem at work
when some other program was using port 80.. I'm not certain that
was the error had, but just thought I'd throw out the possibility.

--

Rick

mailto:[EMAIL PROTECTED]


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




RE: How to set tomcat to use port 80...

2002-09-07 Thread Keith Pemberton

tomcat4 run is a script file that I can run to start and stop tomcat4
because I installed an rpm version on tomcat.  I found the solution and
thanks for everyone that was trying to help me out.  Turns out that the
tomcat4.conf file has a line TOMCAT_USER which was assigned to tomcat4. 
When I installed the rpm version it created a tomcat4 user and group. 
Eventhough I was logged in as root and trying to run tomcat4 run it
was using the user specified as TOMCAT_USER in the conf file as the user
to start the server.  That is why it kept giving me permission denied
errors.  A simple change in that conf file to read root as opposed to
tomcat4 quickly fixed the problem.  Again, thanks so much for the help
everyone... I'm sure that I will have more questions later

Keith

On Sat, 2002-09-07 at 22:56, Turner, John wrote:

 What is tomcat4 run?  What happens if you run
$CATALINA_HOME/bin/startup.sh as root?  Do you get the same error message?
Whatever tomcat4 is, it might be doing some sort of su or setuid/setgid
before actually trying to start Tomcat.

John

-Original Message-
From: Keith Pemberton
To: [EMAIL PROTECTED]
Sent: 9/7/02 11:19 PM
Subject: How to set tomcat to use port 80...

Ok, so I want tomcat to use port 80 so that I don't have to type in
http://url:8080 all the time and can just accesses it with the straight
url.  I have changed the server.xml file to read port 80 in replace of
the 8080 that was there originally under the HttpConnector.  Is there
anything else that needs to be done for tomcat to use port 80?  I keep
getting Permission Denied messages when I type tomcat4 run as the root
user.  That command does work, though, if I change the port back to
8080.  Any insights would be much appreciated!  Thanks!

Keith