TOMCAT 4.0.2 server crash

2002-03-01 Thread Keith Ng

Hi

I set up my tomcat server from home and then went to school to try access.
for a while it was ok, but after repeatly doing many database queries and
processing, suddenly i wasnt able to access the server. It returned a
gateway timeout error. I den went home just now and realise the Tomcat does
window is gone. I went to the log and track the following.


ACCESS LOG
===
153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET
/ps/jscripts/validateRegister.js HTTP/1.1 304 -
153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET
/ps/jscripts/validateAdvSearch.js HTTP/1.1 304 -
//153.20.95.66 is my school's pc ip. its the last GET request
127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET /ps/css/PSCSS.css HTTP/1.1
304 -
==

LOG
2002-03-01 13:42:40 jsp: init
2002-03-01 13:42:40 jsp: init
2002-03-01 13:43:27 jsp: init
2002-03-01 13:43:29 jsp: init
2002-03-01 13:43:45 jsp: init

after this supposedly there is no more request from school pc
i went home and found tomcat server dos window gone

as u can see, there is no clear wat has happened at all. Is there any other
logs i have missed regarding the auto shutdown of tomcat? Can anyone tell me
wat could have happened to cause tomcat to auto shutdown? Thanks...



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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0.2 exception triying to access a Jsp ...

2002-03-01 Thread Julien OIX

htmlheadtitleApache Tomcat/4.0.2 - Error
report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color
: white;background-color : #0086b2;} BODY{font-family :
sans-serif,Arial,Tahoma;color : black;background-color : white;} B{color
: white;background-color : #0086b2;} HR{color : #0086b2;} --/STYLE
/headbodyh1Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server
Error/h1HR size=1 noshadepbtype/b Exception
report/ppbmessage/b uInternal Server
Error/u/ppbdescription/b uThe server encountered an internal
error (Internal Server Error) that prevented it from fulfilling this
request./u/ppbexception/b prejavax.servlet.ServletException:
sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
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:2343)
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.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.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:498)
/pre/ppbroot cause/b prejava.lang.NoClassDefFoundError:
sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
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:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at

Re: How to apply HTTPS in JSP

2002-03-01 Thread Amine AMAR

Hi,
You configure SSL with TC4 in the server.xml file. the configuration is very
simple. The steps can be found at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

Amine,

- Original Message -
From: Wiwi Wiwi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 9:16 AM
Subject: How to apply HTTPS in JSP


 Hi all,
If I wanna apply SSL (HTTPS) on JSP page, what are the steps to apply
it.
 I heard that somebody say using Apache SSL, however, I'm currently using
 Tomcat 4.0.1 only. What should I do?
By the way, can the Tomcat 4.0.2 integrate with JDK 1.4? Your advice is
 highly appreciated. Thanks in advance.

 Best regards,
 Pat

 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with ISAPI redirector for Tomcat 4.0.2

2002-03-01 Thread twidmer

 [ISAPI redirector for Tomcat 4.0.2 does not work but Version 3.3 works]

I've got the same problem. I think the problem are 
the different names of the filter.
My solution is:

Rename the filter for 4.0.2 to isapi_redirect.dll
or change the name in the registry 

[HKEY_LOCAL_MACHINE\SOFTWARE\
Apache Software Foundation\Jakarta Isapi Redirector\1.0]
extension_uri=/jakarta/isapi_redirector.dll

(autoconf creates also the wrong name).


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: IMPORTANT - error while using LDAP/JDNI authentication with tomcat 4.0

2002-03-01 Thread John Holman

Frederic

# Define an entry to base role searches on
dn: dc=roles,dc=mycompany,dc=com
cn: roles
objectClass: person
sn: Roles Entry

This entry has the wrong object class - should be dcObject. Probably it has 
not been created in the directory, so the role search is failing with the 
no such object error you are seeing.

You should have seen an error when you tried to load the LDIF file, by the 
way. You can check whether it has been created using
the ldapsearch utility.

John



At 09:29 27/02/02, Fredrick Rinald wrote
Hello,

Please help me.
I'm a french student and I need to implement LDAP authentication with 
tomcat 4 for my project. The user authentication is correct but the 
authorization failed because of the role search. Tomcat is unable to get 
the corresponding role in my ldap directory.

Here's my LDAP directory definition (I use openldap):

include/usr/local/etc/openldap/schema/core.schema
pidfile/usr/local/var/slapd.pid
argsfile/usr/local/var/slapd.args
database ldbm
suffix dc=mycompany,dc=com
rootdn cn=Manager,dc=mycompany,dc=com
directory /usr/local/var/openldap-ldbm
rootpw secret
indexobjectClasseq


Here's my LDAP directory (LDIF file):

dn : dc=mycompany,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company

# Define a user named 'tomcat'
dn: cn=tomcat,dc=mycompany,dc=com
cn: tomcat
userPassword: tomcat
sn: Tomcat User
objectClass: person

# Define a user named 'role1'
dn: cn=role1,dc=mycompany,dc=com
cn: role1
userPassword: tomcat
sn: Role1 User
objectClass: person

# Define a user named 'both'
dn: cn=both,dc=mycompany,dc=com
cn: both
userPassword: tomcat
sn: Both User
objectClass: person

# Define an entry to base role searches on
dn: dc=roles,dc=mycompany,dc=com
cn: roles
objectClass: person
sn: Roles Entry

# Define all members of the 'tomcat' role
dn: cn=tomcat,dc=roles,dc=mycompany,dc=com
cn: tomcat
objectClass: groupOfUniqueNames
uniqueMember: cn=tomcat,dc=mycompany,dc=com
uniqueMember: cn=both,dc=mycompany,dc=com

# Define all members of the 'role1' role
dn: cn=role1,dc=roles,dc=mycompany,dc=com
cn: role1
objectClass: groupOfUniqueNames
uniqueMember: cn=role1,dc=mycompany,dc=com
uniqueMember: cn=both,dc=mycompany,dc=com


Here's my Tomcat 4 REALM declaration :


Realm   className=org.apache.catalina.realm.JNDIRealm debug=99
connectionName=cn=Manager,dc=mycompany,dc=com
connectionPassword=secret
connectionURL=ldap://localhost;
roleBase=dc=roles
roleName=cn
roleSearch=(uniqueMember={0})
roleSubtree=false
userPassword=userPassword
userPattern=cn={0},dc=mycompany,dc=com
/

Here's my catalina_log.2002-02-27.txt file :


2002-02-27 10:15:46 HttpConnector Opening server socket on all host
IP addresses
2002-02-27 10:15:46 JNDIRealm[Standalone]: Connecting to URL
ldap://localhost
2002-02-27 10:15:59 HttpConnector[8080] Starting background thread
2002-02-27 10:15:59 HttpProcessor[8080][1] Starting background thread
2002-02-27 10:15:59 HttpProcessor[8080][0] Starting background thread
2002-02-27 10:15:59 HttpProcessor[8080][2] Starting background thread
2002-02-27 10:15:59 HttpProcessor[8080][3] Starting background thread
2002-02-27 10:15:59 HttpProcessor[8080][4] Starting background thread
2002-02-27 10:16:19 JNDIRealm[Standalone]: getUserDN(tomcat)
2002-02-27 10:16:19 JNDIRealm[Standalone]:
dn=cn=tomcat,dc=mycompany,dc=com
2002-02-27 10:16:19 JNDIRealm[Standalone]:   retrieving attribute
userPassword
2002-02-27 10:16:19 JNDIRealm[Standalone]:   retrieving value
2002-02-27 10:16:19 JNDIRealm[Standalone]:   validating credentials
2002-02-27 10:16:19 JNDIRealm[Standalone]: Username tomcat
successfully authenticated
2002-02-27 10:16:19 JNDIRealm[Standalone]:
getRoles(cn=tomcat,dc=mycompany,dc=com)
2002-02-27 10:16:19 JNDIRealm[Standalone]:   Searching role base
'dc=roles' for attribute 'cn'
2002-02-27 10:16:19 JNDIRealm[Standalone]:   With filter expression
'(uniqueMember=cn=tomcat,dc=mycompany,dc=com)'
2002-02-27 10:16:19 JNDIRealm[Standalone]: Exception performing
authentication
javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such
Object]; remaining name 'dc=roles'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2761)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2682)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2488)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1660)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1583)
at
 

RE: virtual hosts/certificates

2002-03-01 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Bernhard Wraase [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 28, 2002 6:59 PM
 To: [EMAIL PROTECTED]
 Subject: virtual hosts/certificates
 
 
 Hello,
 
 is it possible to use several certificates in one tomcat?
 I would like to configure a different cert for each virtual host.
 I.e.:
 cert A for virtual host 1
 cert B for virtual host 2
 cert C for virtual host 3
 As far as I understand the docs it is not possible.
 
 Does anybody know a trick?

IMHO it isn't possible on SSL (TLS) specification layer.
AFAIK SSL protects connections on host basis.
You can do tricks only if your virtual hosts are real hosts with
different IPs.

 -- 
 Regards Bernhard
 

Anton

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jetty .vs. tomcat

2002-03-01 Thread Manish Bhatnagar

By any chance are you using JNI in your webapp?

-Original Message-
From: Steve Wong [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:10 PM
To: Tomcat Users List
Subject: RE: Jetty .vs. tomcat


Hi mingfai,

I am trying other application servers because I have some
problems using tomcat in a production environment.

The environment is Solaris 8, JRE1.2.2, tomcat3.3,
Apache1.3.23 with mod_ssl and mod_jk.
What I discovered is that when I use apache benchmark
tool(ab) to generate many requests on apache, the java heap
allocated
in tomcat continuously increases.  Up to a point that there
is OutOfMemoryError.
If I generate the requests on tomcat instead, there is no
problem.
I am using the OptimizeIt to see the above result.

And What I can find in cvs log of mod_jk is that there was
a memory leak bug in May last year.  But this bug is said to
be fixed.
If I use Apache1.3.23 without mod_ssl, I find that the java
heap remains stable.  However, I discovered that the
allocated memory
of the java process of tomcat continuously increases.
Because I am afraid that there will be OutOfMemeryError in
the production
environment.  So, I restart the tomcat process regularly.

Have you discovered the same things for your web
application??

Thx. and Regards.
Steve.

-Original Message-
From: Ming Fai [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:05 PM
To: Tomcat Users List
Subject: RE: Jetty .vs. tomcat


hi Steve,

I'm a Tomcat user. from what I read on the web, I believe
Jetty does
outperform Tomcat significantly in static pages and also
outperform Tomcat
to a unknown degree in dynamic pages. so, why i still choose
Tomcat?

My main consideration is in scalability. Multiple instance
of Tomcat can be
run and load balanced with Apache and mod_jk. I believe it
can achieve a
very high scalability in handling simultanceous requests.
Other
considerations are: good integration with other Apache and
commercial
products, better support (i personally think the 'support'
from Apache group
is better than other open src groups), full implementation
of JCP
specification etc.

And Tomcat should not be used together with Apache if there
is heavy loading
of static pages.

Other than Tomcat and Jetty, Resin is also quite famous. And
there are other
commercial choice like WebLogic, JRun and Orion.  You should
make decision
base on your need.

In my opinion, if your site is small in scale, and requires
a very good
response time, then Jetty or Resin are your choice.
Otherwise, Tomcat is a
good choice in general and it is a proven product. It
occupies about 50% of
the servlet engine market as of mid 2001.
(http://www.devx.com/judgingjava/articles/sixyears/printable
/sixyearsp2.asp#
fig7)

Any comment are welcome!

Regards,
mingfai






 -Original Message-
 From: Steve Wong [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 3:17 PM
 To: [EMAIL PROTECTED]
 Subject: Jetty .vs. tomcat



   How will you compare jetty with tomcat?
   Which one will you choose for a production environment?
Why?
   Any Performance figures about these 2 servlet containers?

 Thx. and Regards.
 Steve.

 --
 To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]


--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]


--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jetty .vs. tomcat

2002-03-01 Thread Steve Wong

Yes, I have used JNI.
What's the problem??

-Original Message-
From: Manish Bhatnagar [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 6:35 PM
To: Tomcat Users List
Subject: RE: Jetty .vs. tomcat


By any chance are you using JNI in your webapp?

-Original Message-
From: Steve Wong [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:10 PM
To: Tomcat Users List
Subject: RE: Jetty .vs. tomcat


Hi mingfai,

I am trying other application servers because I have some
problems using tomcat in a production environment.

The environment is Solaris 8, JRE1.2.2, tomcat3.3,
Apache1.3.23 with mod_ssl and mod_jk.
What I discovered is that when I use apache benchmark
tool(ab) to generate many requests on apache, the java heap
allocated
in tomcat continuously increases.  Up to a point that there
is OutOfMemoryError.
If I generate the requests on tomcat instead, there is no
problem.
I am using the OptimizeIt to see the above result.

And What I can find in cvs log of mod_jk is that there was
a memory leak bug in May last year.  But this bug is said to
be fixed.
If I use Apache1.3.23 without mod_ssl, I find that the java
heap remains stable.  However, I discovered that the
allocated memory
of the java process of tomcat continuously increases.
Because I am afraid that there will be OutOfMemeryError in
the production
environment.  So, I restart the tomcat process regularly.

Have you discovered the same things for your web
application??

Thx. and Regards.
Steve.

-Original Message-
From: Ming Fai [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:05 PM
To: Tomcat Users List
Subject: RE: Jetty .vs. tomcat


hi Steve,

I'm a Tomcat user. from what I read on the web, I believe
Jetty does
outperform Tomcat significantly in static pages and also
outperform Tomcat
to a unknown degree in dynamic pages. so, why i still choose
Tomcat?

My main consideration is in scalability. Multiple instance
of Tomcat can be
run and load balanced with Apache and mod_jk. I believe it
can achieve a
very high scalability in handling simultanceous requests.
Other
considerations are: good integration with other Apache and
commercial
products, better support (i personally think the 'support'
from Apache group
is better than other open src groups), full implementation
of JCP
specification etc.

And Tomcat should not be used together with Apache if there
is heavy loading
of static pages.

Other than Tomcat and Jetty, Resin is also quite famous. And
there are other
commercial choice like WebLogic, JRun and Orion.  You should
make decision
base on your need.

In my opinion, if your site is small in scale, and requires
a very good
response time, then Jetty or Resin are your choice.
Otherwise, Tomcat is a
good choice in general and it is a proven product. It
occupies about 50% of
the servlet engine market as of mid 2001.
(http://www.devx.com/judgingjava/articles/sixyears/printable
/sixyearsp2.asp#
fig7)

Any comment are welcome!

Regards,
mingfai






 -Original Message-
 From: Steve Wong [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 3:17 PM
 To: [EMAIL PROTECTED]
 Subject: Jetty .vs. tomcat



   How will you compare jetty with tomcat?
   Which one will you choose for a production environment?
Why?
   Any Performance figures about these 2 servlet containers?

 Thx. and Regards.
 Steve.

 --
 To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands:
mailto:[EMAIL PROTECTED]
 Troubles with the list:
mailto:[EMAIL PROTECTED]


--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]


--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TOMCAT 4.0.2 server crash

2002-03-01 Thread Randy Layman


Stop using the JDBC-ODBC bridge.  Its not thread safe and will crash
Tomcat (or any other JVM for that matter) that attempts concurrent database
access.

Randy

 -Original Message-
 From: Keith Ng [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 4:19 AM
 To: Tomcat Users List
 Subject: TOMCAT 4.0.2 server crash
 
 
 Hi
 
 I set up my tomcat server from home and then went to school 
 to try access.
 for a while it was ok, but after repeatly doing many database 
 queries and
 processing, suddenly i wasnt able to access the server. It returned a
 gateway timeout error. I den went home just now and realise 
 the Tomcat does
 window is gone. I went to the log and track the following.
 
 
 ACCESS LOG
 ===
 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET
 /ps/jscripts/validateRegister.js HTTP/1.1 304 -
 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET
 /ps/jscripts/validateAdvSearch.js HTTP/1.1 304 -
 //153.20.95.66 is my school's pc ip. its the last GET request
 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET 
 /ps/css/PSCSS.css HTTP/1.1
 304 -
 ==
 
 LOG
 2002-03-01 13:42:40 jsp: init
 2002-03-01 13:42:40 jsp: init
 2002-03-01 13:43:27 jsp: init
 2002-03-01 13:43:29 jsp: init
 2002-03-01 13:43:45 jsp: init
 
 after this supposedly there is no more request from school pc
 i went home and found tomcat server dos window gone
 
 as u can see, there is no clear wat has happened at all. Is 
 there any other
 logs i have missed regarding the auto shutdown of tomcat? Can 
 anyone tell me
 wat could have happened to cause tomcat to auto shutdown? Thanks...
 
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.2 exception triying to access a Jsp ...

2002-03-01 Thread Randy Layman



 -Original Message-
 From: Julien OIX [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 4:25 AM
 To: Tomcat list
 Subject: Tomcat 4.0.2 exception triying to access a Jsp ...
 
 

 /pre/ppbroot cause/b prejava.lang.NoClassDefFoundError:
 sun/tools/javac/Main

.
 any ideas ... ?
 
 

You haven't correctly set your JAVA_HOME environment variable.  You
must set JAVA_HOME so that JAVA_HOME\bin\java.exe and
JAVA_HOME\lib\tools.jar are both valid paths.

Randy

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Just trying to get things stright...

2002-03-01 Thread chad kellerman

Good morning, afternoon, and evening,


 Just one little clarification.

  If I want apache to handle all html, php, cgi requests, I use:

  Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=50
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/


in my server.xml file.

   And if I want the web_app module to handle java request I use:

Connector classname=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=50
 enableLookups=false acceptCount=10 debug=0/




I am having trouble distinguishing the difference between the Connectors and how 
Apache handles html requests as compared to java requests.


Thanks
-chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Just trying to get things stright...

2002-03-01 Thread Ralph Einfeldt

Partly Wrong.

With the HttpConnector you can use tomcat as a stand alone web server.
So this hasn't much to do with apache. (It's just a replacement for 
apache if you don't need the features of apache)

The web_app module connects apache with tomcat.
To use mod_webapp you need some settings in httpd.conf. have a look at:

http://www.webmasterbase.com/article/305

 -Ursprüngliche Nachricht-
 Von: chad kellerman [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 1. März 2002 13:34
 An: [EMAIL PROTECTED]
 Betreff: Just trying to get things stright...
snip/
   If I want apache to handle all html, php, cgi requests, I use:
 
 className=org.apache.catalina.connector.http.HttpConnector
snip/
   And if I want the web_app module to handle java request I use:
 classname=org.apache.catalina.connector.warp.WarpConnector
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Just trying to get things stright...

2002-03-01 Thread Mike Millson

No, I don't think you can get Apache to do anything from inside server.xml.
That file only impacts the configuration of Tomcat. The HttpConnector
settings basically says Tomcat will handle http requests on port 8080. The
WarpConnector settings basically say Tomcat will handle Warp requests on
port 8008.

Apache is UPSTREAM of Tomcat, so if you want to integrate Tomcat into
Apache, you have to change your Apache settings in the httpd.conf file.

What Apache can do is look at the URL of the request and determine based on
the URL how it gets processed. In httpd.conf you can set up URL patterns
that tell Apache which request get forwarded to Tomcat using the Warp
connector. (The README file that comes w/ Tomcat explains how to do this,
plus many other places.).

Mike

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 7:34 AM
To: [EMAIL PROTECTED]
Subject: Just trying to get things stright...


Good morning, afternoon, and evening,


 Just one little clarification.

  If I want apache to handle all html, php, cgi requests, I use:

  Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=50
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/


in my server.xml file.

   And if I want the web_app module to handle java request I use:

Connector classname=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=50
 enableLookups=false acceptCount=10 debug=0/




I am having trouble distinguishing the difference between the Connectors
and how Apache handles html requests as compared to java requests.


Thanks
-chad

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Using mod_webapp on Debian Woody

2002-03-01 Thread Björn Nilsson

Hello, im trying to use mod_webapp, with

Tomcat 4.0.2
Apache 1.3.22
Debian Woody i386

I have tried with all mod_webapp.so files i could find on the jakarta 
site, but i always get the same error in Apache's
error.log

[Fri Mar  1 14:14:12 2002] [notice] child pid 4657 exit signal 
Segmentation fault (11)


with some mod_webapp.so files apachectl configtest warns for crashes 
du to EAPI with others it doesnt warn...
Same error regardless.

I have tried building from source but failed du to missing aps, 
missing ./configure files, missing wa.h etc...

My question is: Is it currently possible to use mod_webapp on Debian? If 
yes what am I missing?

/Björn





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: [Dim Question] Redirecting GET http://blah.com/ resource - G ET /resource - Tomcat 4

2002-03-01 Thread CAM

Thanks for the reply Randy...

Randy Layman wrote:

   The HTTP Protocol says requests must be formatted as:
 GET /resource
 
 and you are sending:
 GET http://server/...;
 
 and you want to know if these should be reformatted before they get to
 Tomcat?  The should be reformatted before they are sent!  


This is, of course, what I mean.

I would guess that
 your proxy can't deal with HTTP requests on non-standard ports.  Probably
 the only way to solve this without recoding the proxy would be to run Tomcat
 on port 80 (the standard).


The proxy seems quite robust about this and works when connecting to other sites 
on non-standard ports. (Its Tim Meadowcroft's HttpSniffer, about 1000 lines of 
densely packed perl and has been used as the basis for a few opensource http 
diagnostic projects)

 
   However, the question remains as to why you are even trying to use a
 proxy for this - Tomcat 4's filters give you a good opportunity to read and
 log all parts of the request.


This is good advice and probably the best course to take... The truth is that I 
am shamelessly looking for a quick fix to help me debug a webapp which is 
incidentally hosted on ApacheJserv - I thought that a quick verification of the 
proxy on Tomcat would allow me to get started - short cuts make long delays.

Its a bit of a long story and the end of an unproductive week...

Thanks for taking the time to reply,

cam





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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Wagoner, Mark

I don't think this is exactly true.  I have an app using the mediator design
pattern, in which there is only one servlet handling all requests (all of my
servlet mappings point to the same servlet).  It in turn hands the requests
off to various classes and/or JSP pages for actual processing.  Within this
servlet's init method is where I create my connection pool, configure Log4j
logging, etc.  I have never seen any case of init being called more than
once.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 6:38 AM
To: 'Tomcat Users List'
Subject: RE: Getting multiple instances of my servlet, although it
doesn't implement SingleThreadModel



Basically, Tomcat will create a separate instance for each unique
URL that the servlet responses to.

(Technically, every time you define the servlet in the web.xml there
is a separate instance, and another instance is created when you use the
ServletInvoker to invoke the servlet by /servlet/className.)

Randy


 -Original Message-
 From: Scott Shorter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 28, 2002 4:34 PM
 To: 'Tomcat Users List'
 Subject: Getting multiple instances of my servlet, although it doesn't
 implement SingleThreadModel
 
 
 All,
 
 I have a servlet that loads on startup, per the load-on-startup/ tag
 in web.xml.  It does *not* implement SingleThreadModel.
 
 Unfortunately, two instances start up every time Tomcat starts - I can
 tell because I have a System.out.println call in init().  I need for
 there to be only one instance.
 
 What other settings could be causing multiple instances to happen?
 
 Thanks in advance,
 Scott
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter

Randy,

The servlet is defined once in web.xml - one servlet tag, that is.  In
addition it is mapped to the root URL with a statement of the form:

  servlet-mapping
servlet-nameMessageDispatcherServlet/servlet-name
url-pattern//url-pattern
  /servlet-mapping

Are you saying the servlet mapping is responsible for the multiple
instances?

I don't think that's the case, because I can comment out the mapping and
still get the same results.

Thanks, though.  I'll keep working at it.
-
Scott

 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, March 01, 2002 6:38 AM
 To: 'Tomcat Users List'
 Subject: RE: Getting multiple instances of my servlet, 
 although it doesn't implement SingleThreadModel
 
 
 
   Basically, Tomcat will create a separate instance for 
 each unique URL that the servlet responses to.
 
   (Technically, every time you define the servlet in the 
 web.xml there is a separate instance, and another instance is 
 created when you use the ServletInvoker to invoke the servlet 
 by /servlet/className.)
 
   Randy
 
 
  -Original Message-
  From: Scott Shorter [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 28, 2002 4:34 PM
  To: 'Tomcat Users List'
  Subject: Getting multiple instances of my servlet, although 
 it doesn't 
  implement SingleThreadModel
  
  
  All,
  
  I have a servlet that loads on startup, per the 
 load-on-startup/ tag 
  in web.xml.  It does *not* implement SingleThreadModel.
  
  Unfortunately, two instances start up every time Tomcat 
 starts - I can 
  tell because I have a System.out.println call in init().  I 
 need for 
  there to be only one instance.
  
  What other settings could be causing multiple instances to happen?
  
  Thanks in advance,
  Scott
  
  
  --
  To unsubscribe:   
 mailto:tomcat-user- [EMAIL PROTECTED]
  For 
 additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To 
 unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter

Mark,

This sounds kinda similar to what my servlet is for - the overall
application is a testing tool that sometimes acts as a client, sending
messages out, and sometimes as a server.  The servlet that's giving me
problems does two main things - it kicks off the tests in its init()
method (which it why it's important that it be called only once) and it
also receives incoming messages and dispatches them to the correct test
object.

The interesting/odd thing is that this problem occurs on only two of the
three machines on which the system runs.  I've pored over the
configurations of the three machines, and can't figure out what
difference could be causing this.  Can you suggest where I can look,
beyond the web.xml and server.xml files?

Thanks,
Scott

 -Original Message-
 From: Wagoner, Mark [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, March 01, 2002 9:06 AM
 To: 'Tomcat Users List'
 Subject: RE: Getting multiple instances of my servlet, 
 although it doesn't implement SingleThreadModel
 
 
 I don't think this is exactly true.  I have an app using the 
 mediator design pattern, in which there is only one servlet 
 handling all requests (all of my servlet mappings point to 
 the same servlet).  It in turn hands the requests off to 
 various classes and/or JSP pages for actual processing.  
 Within this servlet's init method is where I create my 
 connection pool, configure Log4j logging, etc.  I have never 
 seen any case of init being called more than once.
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 6:38 AM
 To: 'Tomcat Users List'
 Subject: RE: Getting multiple instances of my servlet, 
 although it doesn't implement SingleThreadModel
 
 
 
   Basically, Tomcat will create a separate instance for 
 each unique URL that the servlet responses to.
 
   (Technically, every time you define the servlet in the 
 web.xml there is a separate instance, and another instance is 
 created when you use the ServletInvoker to invoke the servlet 
 by /servlet/className.)
 
   Randy
 
 
  -Original Message-
  From: Scott Shorter [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, February 28, 2002 4:34 PM
  To: 'Tomcat Users List'
  Subject: Getting multiple instances of my servlet, although 
 it doesn't 
  implement SingleThreadModel
  
  
  All,
  
  I have a servlet that loads on startup, per the 
 load-on-startup/ tag 
  in web.xml.  It does *not* implement SingleThreadModel.
  
  Unfortunately, two instances start up every time Tomcat 
 starts - I can 
  tell because I have a System.out.println call in init().  I 
 need for 
  there to be only one instance.
  
  What other settings could be causing multiple instances to happen?
  
  Thanks in advance,
  Scott
  
  
  --
  To unsubscribe:   
 mailto:tomcat-user- [EMAIL PROTECTED]
  For 
 additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 --
 To 
 unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Randy Layman


I guess what I said has led to some confusion.  I meant that each
servlet tag creates an instance.

Here are the possible reasons for getting multiple instances:
1.  Multiple servlet tags in web.xml
2.  One or more servet tag(s) in web.xml and using /servlets/ to
access your servlet
3.  Having the same context loaded multiple times.  This generally
happens because the AutoContextLoader (or whatever its called) is still
enabled and an explicit Context is also defined, making two contexts (and
two instances of the servlets).

Randy


 -Original Message-
 From: Scott Shorter [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 9:05 AM
 To: 'Tomcat Users List'
 Subject: RE: Getting multiple instances of my servlet, although it
 doesn't implement SingleThreadModel
 
 
 Randy,
 
 The servlet is defined once in web.xml - one servlet tag, 
 that is.  In
 addition it is mapped to the root URL with a statement of the form:
 
   servlet-mapping
 servlet-nameMessageDispatcherServlet/servlet-name
 url-pattern//url-pattern
   /servlet-mapping
 
 Are you saying the servlet mapping is responsible for the multiple
 instances?
 
 I don't think that's the case, because I can comment out the 
 mapping and
 still get the same results.
 
 Thanks, though.  I'll keep working at it.
 -
 Scott
 
  -Original Message-
  From: Randy Layman [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, March 01, 2002 6:38 AM
  To: 'Tomcat Users List'
  Subject: RE: Getting multiple instances of my servlet, 
  although it doesn't implement SingleThreadModel
  
  
  
  Basically, Tomcat will create a separate instance for 
  each unique URL that the servlet responses to.
  
  (Technically, every time you define the servlet in the 
  web.xml there is a separate instance, and another instance is 
  created when you use the ServletInvoker to invoke the servlet 
  by /servlet/className.)
  
  Randy
  
  
   -Original Message-
   From: Scott Shorter [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 28, 2002 4:34 PM
   To: 'Tomcat Users List'
   Subject: Getting multiple instances of my servlet, although 
  it doesn't 
   implement SingleThreadModel
   
   
   All,
   
   I have a servlet that loads on startup, per the 
  load-on-startup/ tag 
   in web.xml.  It does *not* implement SingleThreadModel.
   
   Unfortunately, two instances start up every time Tomcat 
  starts - I can 
   tell because I have a System.out.println call in init().  I 
  need for 
   there to be only one instance.
   
   What other settings could be causing multiple instances to happen?
   
   Thanks in advance,
   Scott
   
   
   --
   To unsubscribe:   
  mailto:tomcat-user- [EMAIL PROTECTED]
   For 
  additional commands: 
  mailto:[EMAIL PROTECTED]
   Troubles with the list: 
  mailto:[EMAIL PROTECTED]
   
  
  --
  To 
  unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem with Tomcat or Servlet?

2002-03-01 Thread Stephan Mülhaus

Hi everybody,

i have a strange Problem, i have developed a servlet in which i can create 
new records in a mysql database and where i can list these records in a 
htmlpage.
Now the strange behaviour:
If i try to get the list of records Tomcat throws an NullPointerException 
although the source is okay but if i create a new record and let my servlet 
list all my records it shows me all my records!
I couldn't find any strange entries in my logfiles, everything is normal...
Now, perhaps you can help me, is this a problem of my servlet or a problem 
of my tomcat?

Thanx in Advance
Stephan


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter

Randy,

Thanks for clarifying what you meant.

   1.  Multiple servlet tags in web.xml

Nope.

   2.  One or more servet tag(s) in web.xml and using 
 /servlets/ to access your servlet

Nope.

   3.  Having the same context loaded multiple times.  
 This generally happens because the AutoContextLoader (or 
 whatever its called) is still enabled and an explicit Context 
 is also defined, making two contexts (and two instances of 
 the servlets).

Maybe.  I do have a context explicitly defined (I need to, so I can
create an authentication realm for the user interface portion of the
application).  I will look into how to not automatically load contexts
and see if that helps.
-
Scott


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Randy Layman


Since Tomcat knows nothing about MySQL (or your database in
particular), I would be willing to be that you have a problem in your code.
You probably want to look at the line where the NullPointer is being thrown.

A random guess - you only create your Connection or Statement object
when you create a new record and not for select.

Randy

 -Original Message-
 From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 9:28 AM
 To: Tomcat Users List
 Subject: Problem with Tomcat or Servlet?
 
 
 Hi everybody,
 
 i have a strange Problem, i have developed a servlet in which 
 i can create 
 new records in a mysql database and where i can list these 
 records in a 
 htmlpage.
 Now the strange behaviour:
 If i try to get the list of records Tomcat throws an 
 NullPointerException 
 although the source is okay but if i create a new record and 
 let my servlet 
 list all my records it shows me all my records!
 I couldn't find any strange entries in my logfiles, 
 everything is normal...
 Now, perhaps you can help me, is this a problem of my servlet 
 or a problem 
 of my tomcat?
 
 Thanx in Advance
 Stephan
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Jim Urban

Sounds like a servlet problem.  To determine the cause of your problem we
will need to see the servlet source code (at least the part that builds the
list).

Jim

 -Original Message-
 From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 8:28 AM
 To: Tomcat Users List
 Subject: Problem with Tomcat or Servlet?


 Hi everybody,

 i have a strange Problem, i have developed a servlet in which i
 can create
 new records in a mysql database and where i can list these records in a
 htmlpage.
 Now the strange behaviour:
 If i try to get the list of records Tomcat throws an NullPointerException
 although the source is okay but if i create a new record and let
 my servlet
 list all my records it shows me all my records!
 I couldn't find any strange entries in my logfiles, everything is
 normal...
 Now, perhaps you can help me, is this a problem of my servlet or
 a problem
 of my tomcat?

 Thanx in Advance
 Stephan


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter

  3.  Having the same context loaded multiple times.
  This generally happens because the AutoContextLoader (or 
  whatever its called) is still enabled and an explicit Context 
  is also defined, making two contexts (and two instances of 
  the servlets).
 
 Maybe.  I do have a context explicitly defined (I need to, so 
 I can create an authentication realm for the user interface 
 portion of the application).  I will look into how to not 
 automatically load contexts and see if that helps.

Well after reading
tomcat-docs/config/host.html#Automatic%20Application%20Deployment I am
discouraged.  It says that WARs are automatically unpacked (which you
*can* turn off using unpackWARs=false in the Host tag) and that contexts
are automatically generated for all contents of webapps.  It doesn't say
how to turn that feature off.

I guess I can deploy to somewhere besides webapps - that should do it,
huh?

I'll try that and let all know.
-
Scott


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Jim Urban

   A random guess - you only create your Connection or Statement object
 when you create a new record and not for select.

Another guess...
Do you have fields in your table(s) which allow nulls?  If so, the result
set will return a null when you get the contents of one of these fields and
the field in the current row is null.

Jim


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Scott Shorter

 I guess I can deploy to somewhere besides webapps - that 
 should do it, huh?
 
 I'll try that and let all know.

That did the trick.  Thanks for the pointers, Randy and Mark.
-
Scott


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Stephan Mülhaus

okay, here is the part that builds the list:

//My Query to get all records from my table
r = s.executeQuery(SELECT * FROM fahrzeuge ORDER BY kaufdatum);

//a loop to parse the content of my records in my htmlpage
//chtml is my htmlpage as a String
//helpers.StrTran is a method to replace my placeholder in the htmlpage 
with the String of my table
while(r.next()){
 chtml = helpers.StrTran(chtml,-CAR-,r.getString(car));
 chtml = 
helpers.StrTran(chtml,-PRODUCER-,r.getString(producer));
 chtml = helpers.StrTran(chtml,-COLOR-,r.getString(color));
 chtml = 
helpers.StrTran(chtml,-CODEPLATE-,r.getString(codeplate));
 chtml = 
helpers.StrTranList(chtml,!---marker---,cHtmlList+!---marker---);
}
out.println(chtml);

r.close();
I hope this helps you to solve my prob

At 08:38 01.03.2002 -0600, you wrote:
Sounds like a servlet problem.  To determine the cause of your problem we
will need to see the servlet source code (at least the part that builds the
list).

Jim

  -Original Message-
  From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 01, 2002 8:28 AM
  To: Tomcat Users List
  Subject: Problem with Tomcat or Servlet?
 
 
  Hi everybody,
 
  i have a strange Problem, i have developed a servlet in which i
  can create
  new records in a mysql database and where i can list these records in a
  htmlpage.
  Now the strange behaviour:
  If i try to get the list of records Tomcat throws an NullPointerException
  although the source is okay but if i create a new record and let
  my servlet
  list all my records it shows me all my records!
  I couldn't find any strange entries in my logfiles, everything is
  normal...
  Now, perhaps you can help me, is this a problem of my servlet or
  a problem
  of my tomcat?
 
  Thanx in Advance
  Stephan
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
--
 

Stephan Mülhaus  [EMAIL PROTECTED]
NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
Phone: +49-231-986510 - 0
FAX: +49-231-986522 - 2
--
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Stephan Mülhaus

Well, i don't get any linenumbers where the problem occurs...
No, my Connection is correct, i made this in several servlet and i don't 
have any problems with them.

Since Tomcat knows nothing about MySQL (or your database in
particular), I would be willing to be that you have a problem in your code.
You probably want to look at the line where the NullPointer is being thrown.

A random guess - you only create your Connection or Statement object
when you create a new record and not for select.

Randy




  -Original Message-
  From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 01, 2002 9:28 AM
  To: Tomcat Users List
  Subject: Problem with Tomcat or Servlet?
 
 
  Hi everybody,
 
  i have a strange Problem, i have developed a servlet in which
  i can create
  new records in a mysql database and where i can list these
  records in a
  htmlpage.
  Now the strange behaviour:
  If i try to get the list of records Tomcat throws an
  NullPointerException
  although the source is okay but if i create a new record and
  let my servlet
  list all my records it shows me all my records!
  I couldn't find any strange entries in my logfiles,
  everything is normal...
  Now, perhaps you can help me, is this a problem of my servlet
  or a problem
  of my tomcat?
 
  Thanx in Advance
  Stephan
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
--
 

Stephan Mülhaus  [EMAIL PROTECTED]
NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
Phone: +49-231-986510 - 0
FAX: +49-231-986522 - 2
--
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Stephan Mülhaus

No, i don't allow any nulls in my fields.

Stephan

At 08:43 01.03.2002 -0600, you wrote:
A random guess - you only create your Connection or Statement object
  when you create a new record and not for select.

Another guess...
Do you have fields in your table(s) which allow nulls?  If so, the result
set will return a null when you get the contents of one of these fields and
the field in the current row is null.

Jim


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
--
 

Stephan Mülhaus  [EMAIL PROTECTED]
NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
Phone: +49-231-986510 - 0
FAX: +49-231-986522 - 2
--
 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TOMCAT 4.0.2 server crash

2002-03-01 Thread Keith Ng


Oooh I didnt noe tat matters. So wat about other drivers? which is thread
safe and which is not?
I also realise i do have many problems regarding database access.
Im using MSSQL 2000 btw. whcih driver do u recommend?


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 7:43 PM
To: 'Tomcat Users List'
Subject: RE: TOMCAT 4.0.2 server crash



Stop using the JDBC-ODBC bridge.  Its not thread safe and will crash
Tomcat (or any other JVM for that matter) that attempts concurrent database
access.

Randy

 -Original Message-
 From: Keith Ng [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 4:19 AM
 To: Tomcat Users List
 Subject: TOMCAT 4.0.2 server crash


 Hi

 I set up my tomcat server from home and then went to school
 to try access.
 for a while it was ok, but after repeatly doing many database
 queries and
 processing, suddenly i wasnt able to access the server. It returned a
 gateway timeout error. I den went home just now and realise
 the Tomcat does
 window is gone. I went to the log and track the following.


 ACCESS LOG
 ===
 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET
 /ps/jscripts/validateRegister.js HTTP/1.1 304 -
 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET
 /ps/jscripts/validateAdvSearch.js HTTP/1.1 304 -
 //153.20.95.66 is my school's pc ip. its the last GET request
 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET
 /ps/css/PSCSS.css HTTP/1.1
 304 -
 ==

 LOG
 2002-03-01 13:42:40 jsp: init
 2002-03-01 13:42:40 jsp: init
 2002-03-01 13:43:27 jsp: init
 2002-03-01 13:43:29 jsp: init
 2002-03-01 13:43:45 jsp: init

 after this supposedly there is no more request from school pc
 i went home and found tomcat server dos window gone

 as u can see, there is no clear wat has happened at all. Is
 there any other
 logs i have missed regarding the auto shutdown of tomcat? Can
 anyone tell me
 wat could have happened to cause tomcat to auto shutdown? Thanks...



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


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




FW: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies

Hello

I would like to have a JSP page loaded by Tomcat 3.3 when it starts up.

I have added load-on-startup to the web.xml file and my JSP page looks
like this:

%@ page import=java.io.* contentType=text/xml %
%!
public void
Init(){
System.out.println(Hello World);
}
%
%
System.out.println(Normal call);
out.println(HTMLHi there/HTML);
%

I assumed that when Tomcat starts, I would see the Hello World message
displayed in my Tomcat console window. Instead, I see a message saying
LoadOnStartupInterceptor: Initializing JSP with JspWrapper.

If I then make a browser call to this JSP page I get

Hello World
Normal call

and subsequent calls just give Normal call.

I guess I have misunderstood what load-on-startup is for?

regards

Mark Lines-Davies




*
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Own Threads within TC ?

2002-03-01 Thread Lauer, Oliver

Hi, 

I know within an EJB container you mustn't use threads although in some you
can either. How is that topic related to TC. 
I know I can use threads within TC but what does the spec. says about
threads ? I want to start some within a servlet's init() and stop those
using the destroy() method. 

Is that ok and allowed as well ? 

Thanks
Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 
 

--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: XSL - Reload a resource without restarting

2002-03-01 Thread Lauer, Oliver

Doesn't work thus getLastModified() on a XSL file using URLConnection always
return 0 - at least in my case :-).
Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 28. Februar 2002 17:51
An: Tomcat Users List
Betreff: Re: XSL - Reload a resource without restarting



Hi, Oliver.

   I can offer an idea (doubt it would qualify as brilliant though - sorry).
If you do a getResource from the ServletContext, it will give you a
java.net.URL.  Then, maybe you could do an openConnection on the URL to get
a
URLConnection.  Then, try the getLastModified method on that...  Don't know
if
this will work, but figured I'd throw it out there as a suggestion.

Best of luck,
-Jeff

 -Ursprüngliche Nachricht-
 Von: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 28. Februar 2002 17:16
 An: Tomcat Users List (E-Mail)
 Betreff: XSL - Reload a resource without restarting
[snip]
 somebody a brilliant idea how to reload a resource
 dynamically within a
 webapp without having to restart.
 In my case I want to reload a XSL file only if it was changed.
[snip]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: XSL - Reload a resource without restarting

2002-03-01 Thread Lauer, Oliver

Works fine...thanks !
Oliver

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 28. Februar 2002 18:15
An: Tomcat Users List
Betreff: AW: XSL - Reload a resource without restarting


I thought that the problem was, how to handle the change not
how to recognize it.

If the xsl is just file and you know where it is, 
what about this:

long mLastLoad = 0;
File mXSLFile = new File(path-to-file);
if (mXSLFile.lastModified()  mLastLoad) {
  doWhatEverToReRead();
  mLastLoad = (new Date()).getTime();
}

P.S.:

I still beg that the real problem lies in doWhatEverToReRead()

 -Ursprüngliche Nachricht-
 Von: Lauer, Oliver [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 28. Februar 2002 18:01
 An: 'Tomcat Users List'
 Betreff: AW: XSL - Reload a resource without restarting

 I'm going to try it. Thanks !
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 28. Februar 2002 17:51
 An: Tomcat Users List
 Betreff: Re: XSL - Reload a resource without restarting
snip/
 If you do a getResource from the ServletContext, it will give you a
 java.net.URL.  Then, maybe you could do an openConnection on 
 the URL to get a URLConnection.  Then, try the getLastModified method
on 
 that...  Don't know if this will work, but figured I'd throw it out
there
 as a suggestion.
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Jim Urban

Stephan,

I don't see any glaring errors in this code, granted chtml, your statement
and any of the columns returned by your result set are not null.  You need
to compile your application with debug (-g) so you can examine the stack
trace produced by the exception.  This will at least show you what line is
causing the problem and should lead you to the bug.

Jim

 -Original Message-
 From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 8:52 AM
 To: Tomcat Users List
 Subject: RE: Problem with Tomcat or Servlet?


 okay, here is the part that builds the list:

 //My Query to get all records from my table
 r = s.executeQuery(SELECT * FROM fahrzeuge ORDER BY kaufdatum);

 //a loop to parse the content of my records in my htmlpage
 //chtml is my htmlpage as a String
 //helpers.StrTran is a method to replace my placeholder in the htmlpage
 with the String of my table
 while(r.next()){
  chtml =
 helpers.StrTran(chtml,-CAR-,r.getString(car));
  chtml =
 helpers.StrTran(chtml,-PRODUCER-,r.getString(producer));
  chtml =
 helpers.StrTran(chtml,-COLOR-,r.getString(color));
  chtml =
 helpers.StrTran(chtml,-CODEPLATE-,r.getString(codeplate));
  chtml =
 helpers.StrTranList(chtml,!---marker---,cHtmlList+!---marker---);
 }
 out.println(chtml);

 r.close();
 I hope this helps you to solve my prob

 At 08:38 01.03.2002 -0600, you wrote:
 Sounds like a servlet problem.  To determine the cause of your problem we
 will need to see the servlet source code (at least the part that
 builds the
 list).
 
 Jim
 
   -Original Message-
   From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
   Sent: Friday, March 01, 2002 8:28 AM
   To: Tomcat Users List
   Subject: Problem with Tomcat or Servlet?
  
  
   Hi everybody,
  
   i have a strange Problem, i have developed a servlet in which i
   can create
   new records in a mysql database and where i can list these
 records in a
   htmlpage.
   Now the strange behaviour:
   If i try to get the list of records Tomcat throws an
 NullPointerException
   although the source is okay but if i create a new record and let
   my servlet
   list all my records it shows me all my records!
   I couldn't find any strange entries in my logfiles, everything is
   normal...
   Now, perhaps you can help me, is this a problem of my servlet or
   a problem
   of my tomcat?
  
   Thanx in Advance
   Stephan
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


 --
 --
 

 Stephan Mülhaus  [EMAIL PROTECTED]
 NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
 Phone: +49-231-986510 - 0
 FAX: +49-231-986522 - 2
 --
 



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat startup problems on Linux box.

2002-03-01 Thread Sean Machin

Hi All,

I am running Tomcat 4.0 on a Redhat 7.1 machine.
Everything is fine, except the startup/shutdown
scripts do not seem to work reliably.
I installed Tomcat from the RPM, so use the script
/etc/init.d/tomcat4 {shutdown|start}.
Sometimes they work, sometimes they don't.
I can always restart the service with a reboot,
but don't want to have to do that.

Any ideas what could be going wrong?

Thanks,
Sean

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Jetty .vs. tomcat

2002-03-01 Thread hanasaki

Just a thought.  Try the most current Production JDK (1.4) and the most 
current Tomcat (4+).  That JDK version is a bit old.  I am not preaching 
always do the latest and greatest or Use Beta Stuff in Prod.

Also, It might not hurt to check your code.  It is possible to introduce 
a memory leak in your own code by accidently maintaining a reference 
to objects you no longer use.  If the ref count never goes to zero, it 
will never be scheduled for GC.

Steve Wong wrote:
 Hi mingfai,
 
   I am trying other application servers because I have some problems using 
tomcat in a production environment.
 
   The environment is Solaris 8, JRE1.2.2, tomcat3.3, Apache1.3.23 with mod_ssl 
and mod_jk.
   What I discovered is that when I use apache benchmark tool(ab) to generate 
many requests on apache, the java heap allocated
 in tomcat continuously increases.  Up to a point that there is OutOfMemoryError.  
   If I generate the requests on tomcat instead, there is no problem.
   I am using the OptimizeIt to see the above result.
 
   And What I can find in cvs log of mod_jk is that there was a memory leak bug 
in May last year.  But this bug is said to be fixed.
   If I use Apache1.3.23 without mod_ssl, I find that the java heap remains 
stable.  However, I discovered that the allocated memory
 of the java process of tomcat continuously increases.  Because I am afraid that 
there will be OutOfMemeryError in the production
 environment.  So, I restart the tomcat process regularly.
 
   Have you discovered the same things for your web application??
 
 Thx. and Regards.
 Steve.
 
 -Original Message-
 From: Ming Fai [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 4:05 PM
 To: Tomcat Users List
 Subject: RE: Jetty .vs. tomcat
 
 
 hi Steve,
 
 I'm a Tomcat user. from what I read on the web, I believe Jetty does
 outperform Tomcat significantly in static pages and also outperform Tomcat
 to a unknown degree in dynamic pages. so, why i still choose Tomcat?
 
 My main consideration is in scalability. Multiple instance of Tomcat can be
 run and load balanced with Apache and mod_jk. I believe it can achieve a
 very high scalability in handling simultanceous requests. Other
 considerations are: good integration with other Apache and commercial
 products, better support (i personally think the 'support' from Apache group
 is better than other open src groups), full implementation of JCP
 specification etc.
 
 And Tomcat should not be used together with Apache if there is heavy loading
 of static pages.
 
 Other than Tomcat and Jetty, Resin is also quite famous. And there are other
 commercial choice like WebLogic, JRun and Orion.  You should make decision
 base on your need.
 
 In my opinion, if your site is small in scale, and requires a very good
 response time, then Jetty or Resin are your choice. Otherwise, Tomcat is a
 good choice in general and it is a proven product. It occupies about 50% of
 the servlet engine market as of mid 2001.
 (http://www.devx.com/judgingjava/articles/sixyears/printable/sixyearsp2.asp#
 fig7)
 
 Any comment are welcome!
 
 Regards,
 mingfai
 
 
 
 
 
 
 
-Original Message-
From: Steve Wong [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 3:17 PM
To: [EMAIL PROTECTED]
Subject: Jetty .vs. tomcat



  How will you compare jetty with tomcat?
  Which one will you choose for a production environment? Why?
  Any Performance figures about these 2 servlet containers?

Thx. and Regards.
Steve.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


-- 
=
= [EMAIL PROTECTED]  =
= Spam : Unhealthy and High in Sodium and Cholesterol   =
=


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: jspInit and load-on-startup

2002-03-01 Thread Larry Isaacs

Mark,

This is a bug in Tomcat 3.3.  See:

http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=5390

It is fixed in Tomcat 3.3.1-b1.

Cheers,
Larry

 -Original Message-
 From: Mark Lines-Davies [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: FW: jspInit and load-on-startup
 
 
 Hello
 
 I would like to have a JSP page loaded by Tomcat 3.3 when it 
 starts up.
 
 I have added load-on-startup to the web.xml file and my JSP 
 page looks
 like this:
 
 %@ page import=java.io.* contentType=text/xml %
 %!
 public void
 Init(){
 System.out.println(Hello World);
 }
 %
 %
 System.out.println(Normal call);
 out.println(HTMLHi there/HTML);
 %
 
 I assumed that when Tomcat starts, I would see the Hello 
 World message
 displayed in my Tomcat console window. Instead, I see a message saying
 LoadOnStartupInterceptor: Initializing JSP with JspWrapper.
 
 If I then make a browser call to this JSP page I get
 
 Hello World
 Normal call
 
 and subsequent calls just give Normal call.
 
 I guess I have misunderstood what load-on-startup is for?
 
 regards
 
 Mark Lines-Davies
 
 
 
 
 **
 ***
 The information contained in this message or any of its
 attachments may be privileged and confidential and intended 
 for the exclusive use of the addressee. If you are not the
 addressee any disclosure, reproduction, distribution or other
 dissemination or use of this communication is strictly prohibited
 **
 ***
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat startup problems on Linux box.

2002-03-01 Thread Steve Madonna

It would be hard to identify your specific problem based on what you have
written here, but there some places you can start looking. First, check your
log files, specifically the 'catalina.out' file for startup and shutdown
errors. Typcially it takes tomcat 4-5 seconds to startup or shutdown on my
redhat 7.2 machine running java 1.4. Running a tail -f log.file will
allow you to see what's going on (where log.file is the logfile you're
watching).

-Steve


-Original Message-
From: Sean Machin
To: 'Tomcat Users List'
Sent: 3/1/2002 8:05 AM
Subject: tomcat startup problems on Linux box.

Hi All,

I am running Tomcat 4.0 on a Redhat 7.1 machine.
Everything is fine, except the startup/shutdown
scripts do not seem to work reliably.
I installed Tomcat from the RPM, so use the script
/etc/init.d/tomcat4 {shutdown|start}.
Sometimes they work, sometimes they don't.
I can always restart the service with a reboot,
but don't want to have to do that.

Any ideas what could be going wrong?

Thanks,
Sean

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: jspInit and load-on-startup

2002-03-01 Thread Randy Layman


What does your web.xml file look like for this tag?  (Please include
the entire servlet declaration.)

Randy

 -Original Message-
 From: Mark Lines-Davies [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: FW: jspInit and load-on-startup
 
 
 Hello
 
 I would like to have a JSP page loaded by Tomcat 3.3 when it 
 starts up.
 
 I have added load-on-startup to the web.xml file and my JSP 
 page looks
 like this:
 
 %@ page import=java.io.* contentType=text/xml %
 %!
 public void
 Init(){
 System.out.println(Hello World);
 }
 %
 %
 System.out.println(Normal call);
 out.println(HTMLHi there/HTML);
 %
 
 I assumed that when Tomcat starts, I would see the Hello 
 World message
 displayed in my Tomcat console window. Instead, I see a message saying
 LoadOnStartupInterceptor: Initializing JSP with JspWrapper.
 
 If I then make a browser call to this JSP page I get
 
 Hello World
 Normal call
 
 and subsequent calls just give Normal call.
 
 I guess I have misunderstood what load-on-startup is for?
 
 regards
 
 Mark Lines-Davies
 
 
 
 
 **
 ***
 The information contained in this message or any of its
 attachments may be privileged and confidential and intended 
 for the exclusive use of the addressee. If you are not the
 addressee any disclosure, reproduction, distribution or other
 dissemination or use of this communication is strictly prohibited
 **
 ***
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Own Threads within TC ?

2002-03-01 Thread Craig R. McClanahan



On Fri, 1 Mar 2002, Lauer, Oliver wrote:

 Date: Fri, 1 Mar 2002 16:41:17 +0100
 From: Lauer, Oliver [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List (E-Mail) [EMAIL PROTECTED]
 Subject: Own Threads within TC ?

 Hi,

 I know within an EJB container you mustn't use threads although in some you
 can either. How is that topic related to TC.
 I know I can use threads within TC but what does the spec. says about
 threads ? I want to start some within a servlet's init() and stop those
 using the destroy() method.

 Is that ok and allowed as well ?


Tomcat itself doesn't stop you from doing this (unless you run under a
security manager with a policy that prohibits thread creation).  A couple
of things to keep in mind:

* Threads should normally be created as daemon threads
  (thread.setDaemon(true) after creation).  Otherwise,
  Tomcat will hang forever at shutdown time unless your
  code correctly cleans up the threads it created.

* It is not valid to keep a reference to objects provided
  by the container (HttpServletRequest, HttpServletResponse)
  beyond the scope of a particular call to the service()
  method of your servlet.  You'll need to copy everything
  you need out of these objects before the servlet call
  finishes.

 Thanks
 Oliver


Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




JDBC Relam, Tomcat 4.0.1, JDK1.3.1_02, Sybase issues?

2002-03-01 Thread julie . f . mccabe

Hello,

I am using Tomcat 4.0.1,  JDK1.3.1_02, Sybase for user authenication, when
I start Transmit I receive the following error from the jdbc driver

java.sql.SQLException: JZ001: User name property 'user_dbo:password=pass_dbo' too 
long. Maximum length is 30.

In the server.xml I have

 Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=com.sybase.jdbc2.jdbc.SybDriver  digest=SHA
  connectionURL=
jdbc:sybase:Tds:server:port/dbname?user=user_dbo;password=pass_dbo
   userTable=realmUsers userNameCol=user_name userCredCol=
user_pswd
 userRoleTable=realmRoles roleNameCol=role_name /


I have done some searches on this but found little - any ideas?

Thanks
Julie.



This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with ISAPI redirector for Tomcat 4.0.2

2002-03-01 Thread Bryan Baker

I think you're absolutely correct. I was using a .reg file created from the
documentation for AJP, which has the old name for the .dll.

Thanks,
Bryan Baker

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 1:33 AM
To: Tomcat Users List
Subject: RE: Problem with ISAPI redirector for Tomcat 4.0.2


 [ISAPI redirector for Tomcat 4.0.2 does not work but Version 3.3 works]

I've got the same problem. I think the problem are 
the different names of the filter.
My solution is:

Rename the filter for 4.0.2 to isapi_redirect.dll
or change the name in the registry 

[HKEY_LOCAL_MACHINE\SOFTWARE\
Apache Software Foundation\Jakarta Isapi Redirector\1.0]
extension_uri=/jakarta/isapi_redirector.dll

(autoconf creates also the wrong name).


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies

Larry

I've downloaded 3.3.1 and it works as expected. 

many, many thanks

Mark

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 16:18
To: 'Tomcat Users List'
Subject: RE: jspInit and load-on-startup


Mark,

This is a bug in Tomcat 3.3.  See:

http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=5390

It is fixed in Tomcat 3.3.1-b1.

Cheers,
Larry

 -Original Message-
 From: Mark Lines-Davies [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: FW: jspInit and load-on-startup
 
 
 Hello
 
 I would like to have a JSP page loaded by Tomcat 3.3 when it 
 starts up.
 
 I have added load-on-startup to the web.xml file and my JSP 
 page looks
 like this:
 
 %@ page import=java.io.* contentType=text/xml %
 %!
 public void
 Init(){
 System.out.println(Hello World);
 }
 %
 %
 System.out.println(Normal call);
 out.println(HTMLHi there/HTML);
 %
 
 I assumed that when Tomcat starts, I would see the Hello 
 World message
 displayed in my Tomcat console window. Instead, I see a message saying
 LoadOnStartupInterceptor: Initializing JSP with JspWrapper.
 
 If I then make a browser call to this JSP page I get
 
 Hello World
 Normal call
 
 and subsequent calls just give Normal call.
 
 I guess I have misunderstood what load-on-startup is for?
 
 regards
 
 Mark Lines-Davies
 
 
 
 
 **
 ***
 The information contained in this message or any of its
 attachments may be privileged and confidential and intended 
 for the exclusive use of the addressee. If you are not the
 addressee any disclosure, reproduction, distribution or other
 dissemination or use of this communication is strictly prohibited
 **
 ***
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies

Hi Randy

My web.xml file is as below, but it turns out to be a bug in Tomcat 3.3, and
3.3.1 has fixed it.

cheers

Mark

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

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
servlet
  servlet-nameall/servlet-name
  jsp-filezzz.jsp/jsp-file
  load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameall/servlet-name
url-pattern/*/url-pattern
/servlet-mapping

/web-app

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 15:23
To: 'Tomcat Users List'
Subject: RE: jspInit and load-on-startup



What does your web.xml file look like for this tag?  (Please include
the entire servlet declaration.)

Randy

 -Original Message-
 From: Mark Lines-Davies [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 10:21 AM
 To: [EMAIL PROTECTED]
 Subject: FW: jspInit and load-on-startup


 Hello

 I would like to have a JSP page loaded by Tomcat 3.3 when it
 starts up.

 I have added load-on-startup to the web.xml file and my JSP
 page looks
 like this:

 %@ page import=java.io.* contentType=text/xml %
 %!
 public void
 Init(){
 System.out.println(Hello World);
 }
 %
 %
 System.out.println(Normal call);
 out.println(HTMLHi there/HTML);
 %

 I assumed that when Tomcat starts, I would see the Hello
 World message
 displayed in my Tomcat console window. Instead, I see a message saying
 LoadOnStartupInterceptor: Initializing JSP with JspWrapper.

 If I then make a browser call to this JSP page I get

 Hello World
 Normal call

 and subsequent calls just give Normal call.

 I guess I have misunderstood what load-on-startup is for?

 regards

 Mark Lines-Davies




 **
 ***
 The information contained in this message or any of its
 attachments may be privileged and confidential and intended
 for the exclusive use of the addressee. If you are not the
 addressee any disclosure, reproduction, distribution or other
 dissemination or use of this communication is strictly prohibited
 **
 ***

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: Own Threads within TC ?

2002-03-01 Thread Lauer, Oliver

Thanks, good to know, is it ok to reference my ServletContext within 'my'
threads ?
Oliver  

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 1. März 2002 17:42
An: Tomcat Users List
Betreff: Re: Own Threads within TC ?




On Fri, 1 Mar 2002, Lauer, Oliver wrote:

 Date: Fri, 1 Mar 2002 16:41:17 +0100
 From: Lauer, Oliver [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List (E-Mail) [EMAIL PROTECTED]
 Subject: Own Threads within TC ?

 Hi,

 I know within an EJB container you mustn't use threads although in some
you
 can either. How is that topic related to TC.
 I know I can use threads within TC but what does the spec. says about
 threads ? I want to start some within a servlet's init() and stop those
 using the destroy() method.

 Is that ok and allowed as well ?


Tomcat itself doesn't stop you from doing this (unless you run under a
security manager with a policy that prohibits thread creation).  A couple
of things to keep in mind:

* Threads should normally be created as daemon threads
  (thread.setDaemon(true) after creation).  Otherwise,
  Tomcat will hang forever at shutdown time unless your
  code correctly cleans up the threads it created.

* It is not valid to keep a reference to objects provided
  by the container (HttpServletRequest, HttpServletResponse)
  beyond the scope of a particular call to the service()
  method of your servlet.  You'll need to copy everything
  you need out of these objects before the servlet call
  finishes.

 Thanks
 Oliver


Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: Own Threads within TC ?

2002-03-01 Thread Craig R. McClanahan



On Fri, 1 Mar 2002, Lauer, Oliver wrote:

 Date: Fri, 1 Mar 2002 17:47:11 +0100
 From: Lauer, Oliver [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: AW: Own Threads within TC ?

 Thanks, good to know, is it ok to reference my ServletContext within 'my'
 threads ?
 Oliver


As long as the webapp is still running, that should be ok.

How do you know?  You should register a ServletContextListener that is
notified when the application is started and shut down.  (This is also a
good place to create and destroy the threads themselves.)

Craig


  AXA eSolutions GmbH
  AXA Konzern AG Germany
  Oliver Lauer
  Web Architect
  Wörthstraße 34
  D-50668 Köln
  Germany
  Tel.: +49 221 148 31277
  Fax: +49 221 148 43963
  Mobil: +49 179 59 064 59
  e-Mail: [EMAIL PROTECTED]
  _
 


 -Ursprüngliche Nachricht-
 Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 1. März 2002 17:42
 An: Tomcat Users List
 Betreff: Re: Own Threads within TC ?




 On Fri, 1 Mar 2002, Lauer, Oliver wrote:

  Date: Fri, 1 Mar 2002 16:41:17 +0100
  From: Lauer, Oliver [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List (E-Mail) [EMAIL PROTECTED]
  Subject: Own Threads within TC ?
 
  Hi,
 
  I know within an EJB container you mustn't use threads although in some
 you
  can either. How is that topic related to TC.
  I know I can use threads within TC but what does the spec. says about
  threads ? I want to start some within a servlet's init() and stop those
  using the destroy() method.
 
  Is that ok and allowed as well ?
 

 Tomcat itself doesn't stop you from doing this (unless you run under a
 security manager with a policy that prohibits thread creation).  A couple
 of things to keep in mind:

 * Threads should normally be created as daemon threads
   (thread.setDaemon(true) after creation).  Otherwise,
   Tomcat will hang forever at shutdown time unless your
   code correctly cleans up the threads it created.

 * It is not valid to keep a reference to objects provided
   by the container (HttpServletRequest, HttpServletResponse)
   beyond the scope of a particular call to the service()
   method of your servlet.  You'll need to copy everything
   you need out of these objects before the servlet call
   finishes.

  Thanks
  Oliver
 

 Craig


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


 --
 Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, 
sich mit dem Absender der E-Mail in Verbindung zu setzen.
 
 For legal and security reasons the information provided in this e-mail is not 
legally binding. Upon request we would be pleased to provide you with a legally 
binding confirmation in written form. Any form of unauthorised use, publication, 
reproduction, copying or disclosure of the content of this e-mail is not permitted. 
This message is exclusively for the person addressed or their representative. If you 
are not the intended recipient of this message and its contents, please notify the 
sender immediately.

 ==


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: AW: Own Threads within TC ?

2002-03-01 Thread Lauer, Oliver

Craig, I did it in the Servlet's init() and destroy() ?? 
Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 1. März 2002 17:52
An: Tomcat Users List
Betreff: Re: AW: Own Threads within TC ?




On Fri, 1 Mar 2002, Lauer, Oliver wrote:

 Date: Fri, 1 Mar 2002 17:47:11 +0100
 From: Lauer, Oliver [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: AW: Own Threads within TC ?

 Thanks, good to know, is it ok to reference my ServletContext within 'my'
 threads ?
 Oliver


As long as the webapp is still running, that should be ok.

How do you know?  You should register a ServletContextListener that is
notified when the application is started and shut down.  (This is also a
good place to create and destroy the threads themselves.)

Craig


  AXA eSolutions GmbH
  AXA Konzern AG Germany
  Oliver Lauer
  Web Architect
  Wörthstraße 34
  D-50668 Köln
  Germany
  Tel.: +49 221 148 31277
  Fax: +49 221 148 43963
  Mobil: +49 179 59 064 59
  e-Mail: [EMAIL PROTECTED]
  _
 


 -Ursprüngliche Nachricht-
 Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 1. März 2002 17:42
 An: Tomcat Users List
 Betreff: Re: Own Threads within TC ?




 On Fri, 1 Mar 2002, Lauer, Oliver wrote:

  Date: Fri, 1 Mar 2002 16:41:17 +0100
  From: Lauer, Oliver [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List (E-Mail) [EMAIL PROTECTED]
  Subject: Own Threads within TC ?
 
  Hi,
 
  I know within an EJB container you mustn't use threads although in some
 you
  can either. How is that topic related to TC.
  I know I can use threads within TC but what does the spec. says about
  threads ? I want to start some within a servlet's init() and stop those
  using the destroy() method.
 
  Is that ok and allowed as well ?
 

 Tomcat itself doesn't stop you from doing this (unless you run under a
 security manager with a policy that prohibits thread creation).  A couple
 of things to keep in mind:

 * Threads should normally be created as daemon threads
   (thread.setDaemon(true) after creation).  Otherwise,
   Tomcat will hang forever at shutdown time unless your
   code correctly cleans up the threads it created.

 * It is not valid to keep a reference to objects provided
   by the container (HttpServletRequest, HttpServletResponse)
   beyond the scope of a particular call to the service()
   method of your servlet.  You'll need to copy everything
   you need out of these objects before the servlet call
   finishes.

  Thanks
  Oliver
 

 Craig


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
 Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten
Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung,
Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet
ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten Adressaten
oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat
dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem
Absender der E-Mail in Verbindung zu setzen.
 
 For legal and security reasons the information provided in this e-mail is
not legally binding. Upon request we would be pleased to provide you with a
legally binding confirmation in written form. Any form of unauthorised use,
publication, reproduction, copying or disclosure of the content of this
e-mail is not permitted. This message is exclusively for the person
addressed or their representative. If you are not the intended recipient of
this message and its contents, please notify the sender immediately.



==


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in 

JNDI / DB Connection pooling

2002-03-01 Thread Mark Muffett

Has anyone successfully got JNDI Connection pooling to work with Tomcat
(vers 4.0.2) and Postgres?

I think my server.xml must be wrong.  It's got:

  Resource name=jdbc/LiveDb auth=Container
type=tyrex.jdbc.ServerDataSource /
  ResourceParams name=jdbc/LiveDb
 parameternamefactory/name

valueorg.apache.naming.factory.TyrexDataSourceFactory/value/parameter
 parameternameuser/namevaluelive/value/parameter
 parameternamepassword/namevaluelive/value/parameter
 parameternameserverName/namevaluel2/value/parameter

parameternamedatabaseName/namevaluelive/value/parameter

parameternamedriverClassName/namevalueorg.postgresql.Driver/value
/parameter

parameternamedriverName/namevaluejdbc:postgresql://l2/live/value/
parameter
  /ResourceParams

But I get an error:

java.security.AccessControlException: access denied
(tyrex.tm.TyrexPermission manager)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at tyrex.tm.Tyrex.getTransactionManager(Tyrex.java:89)
at tyrex.tm.ResourceManager.run(ResourceManager.java:118)
at java.security.AccessController.doPrivileged(Native Method)
at tyrex.tm.ResourceManager.enlistResource(ResourceManager.java:91)
at tyrex.jdbc.EnlistedConnection.enlist(EnlistedConnection.java:241)
at tyrex.jdbc.EnlistedConnection.init(EnlistedConnection.java:129)
at
tyrex.jdbc.ServerDataSource.getConnection(ServerDataSource.java:258)
at
tyrex.jdbc.ServerDataSource.getConnection(ServerDataSource.java:223)
at AccessLog.doGet(AccessLog.java:192)
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(Application
FilterChain.java:247)
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: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.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:2343)
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:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


Any ideas???

Thanks for any help

Mark


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can someone help me please?????

2002-03-01 Thread j-y ciccoli

Hi,
send us ( or me ) your server configuration file (/conf/server.xml)

- Original Message -
From: Dieter Lunn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 6:25 PM
Subject: Can someone help me please?


 Hi,

 I downloaded the nightly build and it started fine but it won't deploy an
 app I have and I can't connect using localhost:8080. Could someone please
 help?





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TOMCAT 4.0.2 server crash

2002-03-01 Thread Keith Ng

Hi

tat msSql jdbc driver is for both 7 and 2000?

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:23 PM
To: Tomcat Users List
Subject: RE: TOMCAT 4.0.2 server crash


Microsoft licensed the Merant msSQL JDBC driver, it´s downloadable for
free from the Microsoft website.

Last time I checked it was quite good.

hope it helps
[EMAIL PROTECTED]


 -Original Message-
 From: Keith Ng [mailto:[EMAIL PROTECTED]]
 Sent: 1. mars 2002 15:12
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: RE: TOMCAT 4.0.2 server crash



 Oooh I didnt noe tat matters. So wat about other drivers?
 which is thread
 safe and which is not?
 I also realise i do have many problems regarding database access.
 Im using MSSQL 2000 btw. whcih driver do u recommend?


 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 7:43 PM
 To: 'Tomcat Users List'
 Subject: RE: TOMCAT 4.0.2 server crash



   Stop using the JDBC-ODBC bridge.  Its not thread safe
 and will crash
 Tomcat (or any other JVM for that matter) that attempts
 concurrent database
 access.

   Randy

  -Original Message-
  From: Keith Ng [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 01, 2002 4:19 AM
  To: Tomcat Users List
  Subject: TOMCAT 4.0.2 server crash
 
 
  Hi
 
  I set up my tomcat server from home and then went to school
  to try access.
  for a while it was ok, but after repeatly doing many database
  queries and
  processing, suddenly i wasnt able to access the server. It
 returned a
  gateway timeout error. I den went home just now and realise
  the Tomcat does
  window is gone. I went to the log and track the following.
 
 
  ACCESS LOG
  ===
  153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET
  /ps/jscripts/validateRegister.js HTTP/1.1 304 -
  153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET
  /ps/jscripts/validateAdvSearch.js HTTP/1.1 304 -
  //153.20.95.66 is my school's pc ip. its the last GET request
  127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET
  /ps/css/PSCSS.css HTTP/1.1
  304 -
  ==
 
  LOG
  2002-03-01 13:42:40 jsp: init
  2002-03-01 13:42:40 jsp: init
  2002-03-01 13:43:27 jsp: init
  2002-03-01 13:43:29 jsp: init
  2002-03-01 13:43:45 jsp: init
 
  after this supposedly there is no more request from school pc
  i went home and found tomcat server dos window gone
 
  as u can see, there is no clear wat has happened at all. Is
  there any other
  logs i have missed regarding the auto shutdown of tomcat? Can
  anyone tell me
  wat could have happened to cause tomcat to auto shutdown? Thanks...
 
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 
  --
  To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can someone help me please?????

2002-03-01 Thread Dieter Lunn

Here is the file.  I also want to have the apache integration which doesn't 
start
 

On March  1, 2002 11:32 am, you wrote:
 Hi,
 send us ( or me ) your server configuration file (/conf/server.xml)

 - Original Message -
 From: Dieter Lunn [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 01, 2002 6:25 PM
 Subject: Can someone help me please?

  Hi,
 
  I downloaded the nightly build and it started fine but it won't deploy an
  app I have and I can't connect using localhost:8080. Could someone please
  help?

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


URL Problem with blanks in names

2002-03-01 Thread Zsolt Koppany

Hi,

how can I create a link (A HREF...) to a file with blank in either the 
directory or in the filename?

I mean for example: A HREF=/images/a b.gifOpen/A

I tried to create the link using URLEncoder.encode(..) but the created link 
didn't work either.

Zsolt

-- 
Zsolt Koppany

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Logging

2002-03-01 Thread Jay Wright


Using Tomcat 4, I am trying to accomplish writing logs (preferrably via
System.out and System.err) that have a timestamp on each and every write.
Iplanet and JavaWebServer did this automatically.  It is important to write
to these logs and have them timestamped, WITHOUT writing code that is in any
way web-server specific.

What I have learned about Tomcat 4 logging is this:  All System.out and
System.err print statements go by default to the catalina.out file.  Each
context within tomcat can be written to a specific file via the logger
component.  

There are a couple of questions that I'm trying to understand.

First - can the catalina.out file be configured through tomcat components
such that all System.out and System.err entries are timestamped.  

Two - What are the api calls to write to the logger file and can I
specifiy the verbosity (the level of the entry 0-4) with each entry?

I'm hesitant to use the logger since I'm unfamiliar with whether or not
that code would be portable to other web servers?

Thanks,
Jay

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: URL Problem with blanks in names

2002-03-01 Thread j-y ciccoli

try to replace your blanks by the character '%'

- Original Message -
From: Zsolt Koppany [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 6:22 PM
Subject: URL Problem with blanks in names


 Hi,

 how can I create a link (A HREF...) to a file with blank in either the
 directory or in the filename?

 I mean for example: A HREF=/images/a b.gifOpen/A

 I tried to create the link using URLEncoder.encode(..) but the created
link
 didn't work either.

 Zsolt

 --
 Zsolt Koppany

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can someone help me please?????

2002-03-01 Thread j-y ciccoli

is my mailer down or your attachment is really empty?

- Original Message -
From: Dieter Lunn [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 6:40 PM
Subject: Re: Can someone help me please?


 Here is the file.  I also want to have the apache integration which
doesn't
 start


 On March  1, 2002 11:32 am, you wrote:
  Hi,
  send us ( or me ) your server configuration file (/conf/server.xml)
 
  - Original Message -
  From: Dieter Lunn [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, March 01, 2002 6:25 PM
  Subject: Can someone help me please?
 
   Hi,
  
   I downloaded the nightly build and it started fine but it won't deploy
an
   app I have and I can't connect using localhost:8080. Could someone
please
   help?
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]








 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Logging

2002-03-01 Thread Markus Spath



Jay Wright wrote:

...
 
 I'm hesitant to use the logger since I'm unfamiliar with whether or not
 that code would be portable to other web servers?
 



have a look at log4j !

anyway, configurations in tomcat wouldn't break your code either.

markus






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: URL Problem with blanks in names

2002-03-01 Thread j-y ciccoli

sorry, it's %20 instead of %

- Original Message - 
From: j-y ciccoli [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 6:46 PM
Subject: Re: URL Problem with blanks in names


 try to replace your blanks by the character '%'
 
 - Original Message -
 From: Zsolt Koppany [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, March 01, 2002 6:22 PM
 Subject: URL Problem with blanks in names
 
 
  Hi,
 
  how can I create a link (A HREF...) to a file with blank in either the
  directory or in the filename?
 
  I mean for example: A HREF=/images/a b.gifOpen/A
 
  I tried to create the link using URLEncoder.encode(..) but the created
 link
  didn't work either.
 
  Zsolt
 
  --
  Zsolt Koppany
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Starting tomcat with a different user

2002-03-01 Thread Pascal Forget

Nelson Yip wrote:

Hi,
 
I finally installed tomcat but I want to start up tomcat with a
different user and not root.
I created a user called tomcat and I want this user to startup tomcat
automatically.  What is the best way to do it?


Have Apache run on port 80 and have it delegate requests for JSP pages 
and Servlets to
your Tomcat instance which has an AJP13 or Warp connector listening on a 
port higher
than 1024.  Since Tomcat will nto be listening on a port numbered 1024 
or less, it can
be run by a non-root user.

Pascal




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.2 exception triying to access a Jsp ...

2002-03-01 Thread Pascal Forget

Julien OIX wrote:


org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:498)
/pre/ppbroot cause/b prejava.lang.NoClassDefFoundError:
sun/tools/javac/Main



Make sure that the java compiler is in Catalina's classpath.  the 
compiler is in
/${JAVA_HOME}/lib/tools.jar




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Messages in Log files

2002-03-01 Thread Nancy Crisostomo Martinez

Hi!

I'm just trying to test a simple .CLASS file wich is imported by one of
my servlets. So, because of this, I put some System.out.println lines
to see the results... but the problem is that I can't find the messages
I'm sending in these lines on the log files neither in the console.. The
only messages I can see are those wich are placed in the servlets, jsp
or applets

Could you please tell me what I have to do to see these messages?

Thanks in advance!

Nancy.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Someone can help me???

2002-03-01 Thread dark.wizzard

Hi, people!

Someone can help me ?? I don't understand where I can
deploy my .class files or .jar ...

I don't know which dir in TomCat structure I have to put
these files ...

thanks so much

dark.Wizzard




__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can someone help me please?????

2002-03-01 Thread Dieter Lunn

Must be the mailer 

On March  1, 2002 11:50 am, you wrote:
 is my mailer down or your attachment is really empty?

 - Original Message -
 From: Dieter Lunn [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, March 01, 2002 6:40 PM
 Subject: Re: Can someone help me please?

  Here is the file.  I also want to have the apache integration which

 doesn't

  start
 
  On March  1, 2002 11:32 am, you wrote:
   Hi,
   send us ( or me ) your server configuration file (/conf/server.xml)
  
   - Original Message -
   From: Dieter Lunn [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, March 01, 2002 6:25 PM
   Subject: Can someone help me please?
  
Hi,
   
I downloaded the nightly build and it started fine but it won't
deploy

 an

app I have and I can't connect using localhost:8080. Could someone

 please

help?
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]

 ---
- 

  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4, just a simple question. Thanks

2002-03-01 Thread Gustavo Mejia

Thanks brian !

Brian Adams wrote:

 nope! no container.
 some people use JBoss (http://www.jboss.org)
 B

 -Original Message-
 From: Gustavo Mejia [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 12:18 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 4, just a simple question.

 Hi everyone,

 I have a very simple question, do you know how Tomcat 4, manage the
 EJBs, do you know if this has a EJB container ??

 Thanks a lot !

 --
 Saludos

 Gustavo Mejía Mora
 INFOTEC
 Tel: +(55) 5 624 28 00
 Ext: 253 / 220
 
 -

 We should take care not to make the intellect our god; it has, of
 course,
 powerful muscles, but no personality. - Albert Einstein

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
Saludos

Gustavo Mejía Mora
INFOTEC
Tel: +(55) 5 624 28 00
Ext: 253 / 220
-

We should take care not to make the intellect our god; it has, of course,
powerful muscles, but no personality. - Albert Einstein



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Can someone help me please?????

2002-03-01 Thread Dieter Lunn

Here it is anyway:





!-- 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=0


  !-- Uncomment these entries to enable JMX MBeans support --
!--
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
--

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- 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 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --

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

!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

!-- Define a Proxied HTTP/1.1 Connector on port 8081 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8081 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=10 debug=0 connectionTimeout=6
   proxyPort=80/
--

!-- Define a non-SSL HTTP/1.0 Test Connector on 

Help? tomcat 4.0.2 and jdk1.4 with poolman

2002-03-01 Thread Cavan Morris

Hey everybody,
I've been running tomcat 4.0.2 with jdk 1.3.1 and poolman 2.0.4 supported JDBC Realms 
for a while now with no problems.  I recently tried to switch to jdk 1.4 (Something 
that I think I need to do for it's Headless support on my Linux box) and it gave me 
the following exception on startup.

java.lang.NullPointerException
at 
com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfiguration.java:117)
at 
com.codestudio.management.PoolManConfiguration.loadConfiguration(PoolManConfiguration.java:75)
at com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.java:61)
at com.codestudio.util.SQLManager.assertLoaded(SQLManager.java:109)
at com.codestudio.util.SQLManager.requestConnection(SQLManager.java:190)

at com.codestudio.sql.PoolMan.connect(PoolMan.java:184)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:548)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
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:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

Line 117 of PoolManConfiguration.java is the following.
URL confURL = PoolManConfiguration.class.getClassLoader().getResource(configFile);
It's basically trying to load poolman.xml from common/classes.

It looks like it's having a major problem with the classloader.  I.e., 
PoolManConfiguration.class.getClassLoader() is what is null.  I've checked this with 
some println()'s.
The strange thing is that this is not simply due to the change from jdk1.3.1 to jdk1.4 
because I can run tomcat 4.0.1 with the same configuration with no problems.  
Incidentally, I have to use 4.0.2 because I need to use the error-page element in my 
application and it is broken in 4.0.1.

Does anyone have any idea what changed in both tomcat and the jdk from versions 4.0.1 
and 1.3.1 to versions 4.0.2 and 1.4 that would account for this?

Does anyone know of an easy way to fix the error-page problem in 4.0.1?  If so I'll 
just use that.

If not I'll have to investigate another connection pooler for MySQL.  Any ideas on 
that?

Hope I hear from you guys.
Cavan Morris




mod_webapp with apache 2.0

2002-03-01 Thread John Chan

Hi,

I'm trying to build webapp on Red Hat 7.2 to use with Apache 2.0. All
the documentation refers to the output being a .so file but I don't get one.
I get a .o .la .slo and a .lo (which is pointing to the .o file). I took a
look at the make file, and it doesn't make any mention of .so. I also tried
a couple different versions of libtool (shot in the dark) but no go. Not
being very knowledgeable in this matter, is there a problem or is this the
expected output. Thanks.

John



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mod_webapp with apache 2.0

2002-03-01 Thread Cavan Morris

I believe the makefile is wrong.  I had to look at the output of the make command and 
find a command near the end that was run in the base/apache-2.0 dir that was linking 
mod_webapp.la.  I then copies that command, added the -shared flag and changed the 
output to mod_webapp.so.
This worked for me with apache 2.0.32 but not 2.0.28.

- Original Message - 
From: John Chan [EMAIL PROTECTED]
To: Tomcat [EMAIL PROTECTED]
Sent: Friday, March 01, 2002 4:27 PM
Subject: mod_webapp with apache 2.0


 Hi,
 
 I'm trying to build webapp on Red Hat 7.2 to use with Apache 2.0. All
 the documentation refers to the output being a .so file but I don't get one.
 I get a .o .la .slo and a .lo (which is pointing to the .o file). I took a
 look at the make file, and it doesn't make any mention of .so. I also tried
 a couple different versions of libtool (shot in the dark) but no go. Not
 being very knowledgeable in this matter, is there a problem or is this the
 expected output. Thanks.
 
 John
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Classpath Issue

2002-03-01 Thread daishi


Hi Craig,

Thanks for the response; however, perhaps I could provide you
with a concrete use-case example to motivate why I might want
to share from ${CATALINA_BASE}. Alternatively, perhaps you
could advise me on the correct way to address this situation:

We develop several related webapps which rely on the same libraries,
some of which have static content. E.g., we have a DBPoolManager.

In Tomcat 3.x we simply added dbpool.jar to our CLASSPATH before
starting tomcat.

In Tomcat 4, it appears that if we want to share any resources
across two webapps we need to put them into ${CATALINA_HOME}/lib
(or classes).

The libraries for the shared resources are being developed
concurrently with the webapps, so we'd really prefer not to
deploy them out to into the main ${CATALINA_HOME} installation.

Of course, as you said, we could have each developer have a
private copy of Tomcat, but that raises other issues, as I'm
sure you can imagine.

I took a look a the current CVS source for Tomcat 4 and it
looks like in fact this functionality has been added:

% cvs log Bootstrap.java
...
revision 1.30
date: 2001/10/19 05:58:57;  author: remm;  state: Exp;  lines: +14 -6
- The shared classloader is created based on catalina.base
  (instead of catalinaHome). This is experimental.
...

I was able to to add the equivalent changes into the released
Bootstrap.java (-r tomcat_402: 1.26.2.2) and patch them into
${CATALINA_HOME}/bin/bootstrap.jar, so I'm okay for now.

However, I do still believe it's not unreasonable to want this
feature enabled by default.

Thanks,
d


At Fri, 1 Mar 2002 16:26:33 -0800 (PST),
Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 
 On Fri, 1 Mar 2002 [EMAIL PROTECTED] wrote:
 
  Date: Fri, 01 Mar 2002 15:12:41 -0800
  From: [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Cc: Jean-Luc BEAUDET [EMAIL PROTECTED]
  Subject: Re: Classpath Issue
 
 
  Is there a reason why ${CATALINA_HOME}/classes and
  ${CATALINA_HOME}/lib is used for shared classes but the corresponding
  directories for ${CATALINA_BASE} are not?
 
  We are using ${CATALINA_BASE} to maintain a clean installation of
  tomcat4 (which seems to be the point of ${CATALINA_BASE}), but the
  problem above is biting us.
 
 
 The original assumption was that, if you wanted to share your Tomcat
 installation, that meant you want to share everything except the
 dynamic stuff (conf, logs, webapps, and work).
 
 If you really want unique sets of shared JARs as well, you're getting to
 the point where you might just as well install Tomcat more than once.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Can't make WebAppConectionWork

2002-03-01 Thread Daniel R Thomas

I've been trying to install tomcat4 onto my apache server today(windows
98).  I downloaded the executable installed and installed tomcat.  I then
ran it, and it worked at port 8080 of my machine.  I then downloaded the
mod_webapp package and installed it as per its instructions.  I then added
the following 4 lines to my httpd.conf file
LoadModule webapp_module modules/mod_webapp.so
AddModule_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

to attemp to access the examples directory in the tomcat intallation
folder.  after restarting both servers, I am gettting a 404 on
myServer/examples/  is there something I'm forgetting to do?
Thanks


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Can't make WebAppConectionWork

2002-03-01 Thread Brian Adams

Hi Daniel,
1. have you looked at the logs on apache and tomcat?
2. FYI, start tomcat first then start apache
3. there may be a bug that is affecting you (not sure)
when you restart try
http://localhost/examples/jsp/num/numguess.jsp

there are binary images(jpg) that would crash the web_app mod if you are
suffering from this bug.


B

-Original Message-
From: Daniel R Thomas [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 8:36 PM
To: [EMAIL PROTECTED]
Subject: Can't make WebAppConectionWork


I've been trying to install tomcat4 onto my apache server today(windows
98).  I downloaded the executable installed and installed tomcat.  I then
ran it, and it worked at port 8080 of my machine.  I then downloaded the
mod_webapp package and installed it as per its instructions.  I then added
the following 4 lines to my httpd.conf file
LoadModule webapp_module modules/mod_webapp.so
AddModule_webapp.c
WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples

to attemp to access the examples directory in the tomcat intallation
folder.  after restarting both servers, I am gettting a 404 on
myServer/examples/  is there something I'm forgetting to do?
Thanks


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[FAQ] jGuru FAQ Update

2002-03-01 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

Does anyone know the pro's or con's between developing a site for 2k users in either 
JSP or ColdFusion?  What is faster development done in?  How well does JSP scale when 
compared to coldfusion?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777501

Are Page scoped variables available across multiple requests to the same page?
If this is not the case, what is the difference between request scope and page scope 
for JSP? Also, is this data available even when something like a query string is 
changed?/p
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777497

How can I retrieve an expired session?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777496

pI have a JSP that uses frames inside frames. How can say to the browser to open the 
Error Page in the main frame (the topmost frame)?/p
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777478

Is it possible to call a custom tag from another custom tag?
If so how?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=777473

I have downloaded the Tomcat 3.3a. After I start up the server.. it puts out this 
strange message: embeded Tomcat: exception initializing ContextManager. What do I have 
to do to start my Server without any error messages?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775521

We have multiple RquestDspacter.forward() in a single JSP file. This JSP runs OK with 
JRun 3.0 but gives Error 500 (response has already been commited) with Web Sphere 3.4. 
Is there any restriction in WebSphere that we can have only 1 
RequestDispatcher.forward() call in a single JSP?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775349

Does Buffer size affects the performance in any way?
I am using buffer size as 100kb.will it in anyway affect the performance?
If yes what is the optimum size that can be used?
If no why?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775339

Is it possible to press a button in one frame and caused a form in another frame to be 
submitted? 
pI have a scrollable jsp in one frame and another frame with just buttons. 
I want to be able to press a button and sumbit a form from the jsp page. Thanks for 
any replies.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775280

I am aware of the technical differences between response.sendRedirect() and 
lt;jsp:forward...gt; i.e. that the first one sends an instruction to the browser to 
request the specified page, and the second simply sends the specified page.pHowever, 
can anyone tell me why one should be used instead of the other?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775275

nbsp;nbsp;nbsp;How to pass parameters to a bean constructor. I can create a bean 
constructor with parameters. but bow do I pass values to the bean from a JSP page on 
creation..Is there any way to do this..
br
nbsp;nbsp;nbsp;Also, is there any way to access bean properties which are set using 
jsp:setProperty, from another bean. I am able to access properties which are 
initialized in the bean itself.
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775216

How can I find out the name of the machine on which the JSP is executing?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=775213

pI'm kind of new to JSP, and am working on putting together a framework wherein I 
include common elements of a page (title bar, menu, etc.) in a single WAR file and 
then attach those elements to my content pages that belong to another WAR file./p

pThe problem I'm running into is that my include statements in my content pages 
don't work when I try to include items from the different WAR.  I can bring the 
included pages up, but can't get a JSP to include them./p

lt;h4gt;Example:lt;/h4gt;

pIn shared.war, I have the file /htmlcommon/header.jsp.  In search.war, I have the 
document /search.jsp/p

pIn search.jsp, I have the following include statement:/p

codelt;jsp:include page=/shared/htmlcommon/header.jsp/gt;/code

pHowever, when I load the page, the header doesn't come in and I get an error 404 - 
not found./p

pI'd appreciate any thoughts on this.  Thanks much/p

pMichael Lundinbr/
[EMAIL PROTECTED]/p
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=773526

Using Jigsaw, W3C's Server, I have to find out how many sessions are there at a given 
time. Any help will be greatly appreciated
http://www.jguru.com/misc/faqtrampoline.jsp?src=notifyEID=773521

In my jsp page I have 2 combo boxes--data of 2nd comboBox is dependent on the 1st. The 
data for both is previously obtained from a 

Form based authentication - TC4.0.2 - Invalid Direct Reference toform login page Error

2002-03-01 Thread Peter Carlson

Hi I am using tomcat 4.0.2 with form based authentication.

I works great except in one scenario.
When someone directly goes to a login page, then logs in it give the
Invalid Direct Reference to form login page error

This problem occurs when people bookmark the login page (which happens to be
the first page).

The code does not store the request if it is from the login page (I think so
it can go back to the original page they went to).


What is the standard work around for this?

Thanks

--Peter


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat 4.0.2 and oracles XDK (xsql) Urgent

2002-03-01 Thread Thor Tall

I am trying to install some *.xsql pages under tomcat
4.0.2 with out luck. 

I am using : 
Oracle 9.0.1 rdbms 
Oracle XSQL Servlet Page Processor 9.0.1.0.0
(Production) 
from the 9.0.1 Linux distribution. 
Redhat 7.2 
Java - j2sdk1.4.0 

I have: 
1. copied classes12.jar, oraclexsql.jar, xsu12.jar and
xmlparserv2.jar to tomcathome/common/lib 
2. copied XSQLConfig.xml to
tomcathome/common/classes 
I have used the same XSQLConfig.xml with Apache/JServ
and it works. 
3. added the following two sections to the
tomcathome/conf/web.xml file: 

!-- Oracle xsql processing -- 
servlet 
servlet-namexsql/servlet-name 
servlet-classoracle.xml.xsql.XSQLServlet/servlet-class

/servlet 

servlet-mapping 
servlet-namexsql/servlet-name 
url-pattern*.xsql/url-pattern 
/servlet-mapping 

4. copied helloworld.xsql into
tomcathome/webapps/ROOT/ 

5. started tomcat with the new files. 


Now when I access the example as: 
http://myhost:8180/helloworld.xsql 

I get : 
Oracle XSQL Servlet Page Processor 9.0.1.0.0
(Production) 

XSQL-007: Cannot acquire a database connection to
process page. 
java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver 


What could possibly be wrong ??? 

Thanks 
Thor

__
Do You Yahoo!?
Yahoo! Sports - sign up for Fantasy Baseball
http://sports.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Modify Directory Listing

2002-03-01 Thread Christian Fuchs

Hi,

we want to add some meta tags( like noindex nofollow)  in the head 
section of the directory listing.
The reason is we want to prevent our search engine from indexing the 
directory listing itself.
In apache you can specify a template for this purpose.
Is there something similar in tomcat???


Thanks
Christian Fuchs





-- 
---
Unico Media GmbH
Christian Fuchs
Geschäftsführer
Falkenstr. 2
81541 München
Germany

http://www.unico-consulting.com

Tel. Office: ++49-(0)89-62500627
Fax  Office: ++49-(0)89-62500628
Mobile : 0170-2400414
Tel. Home-Office: ++49-(0)8192-998256
Fax  Home-Office: ++49-(0)8192-998257


PGP KeyID: 0xEC013B39
PGP Fingerprint: 724D D65D ABFC EE2F 41AF  4DCB 93D3 724B EC01 3B39



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




[ANNOUNCEMENT] Tomcat 4.0.3 security hotfix release

2002-03-01 Thread Remy Maucherat

A security vulnerability affecting the sandboxing provided by the Java
Security Manager has been discovered. The request dipatcher functionality of
the Servlet API could be used by a malicious servlet or JSP page to get
access to any resource located on the server's filesystem, bypassing the
Security Manager protection.

Note: People who are not using Tomcat with the Security Manager are not
affected by this problem, and do not need to upgrade.

Tomcat 4.0.3 has been released, and is identical to Tomcat 4.0.2 with the
only change being the fix for the problem described above:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/

The security patch can also be downloaded as a binary patch for Tomcat 4.0.2
and can be applied to an existing Tomcat 4.0.2 installation:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.2/bin/hotfi
x/

The source code for the hotfix is included in the archive.

The upcoming Tomcat 4.0.4 Beta 1 release will also include this fix.

Issue report:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6772

Remy



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]