How to apply HTTPS in JSP

2002-03-01 Thread Wiwi Wiwi

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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




Tomcat 4.0.2 exception triying to access a Jsp ...

2002-03-01 Thread Julien OIX

Apache Tomcat/4.0.2 - Error
report
Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server
Errortype Exception
reportmessage Internal Server
Errordescription The server encountered an internal
error (Internal Server Error) that prevented it from fulfilling this
request.exception javax.servlet.ServletException:
sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java: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)
root cause java.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
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcher

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:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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 :
>
>
>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.ja

RE: Jetty .vs. tomcat

2002-03-01 Thread Steve Wong

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:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:

> For additional commands:

> Troubles with the list:



--
To unsubscribe:

For additional commands:

Troubles with the list:



--
To unsubscribe:

For additional commands:

Troubles with the list:




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:

> For additional commands:

> Troubles with the list:



--
To unsubscribe:

For additional commands:

Troubles with the list:



--
To unsubscribe:

For additional commands:

Troubles with the list:




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Jetty .vs. tomcat

2002-03-01 Thread Manish Bhatnagar

Okay... we experienced the same problem some time back. The
memory used by Tomcat kept on increasing and at some point
in time the memory usage was so high that no other
application could be started and the only way to bring the
usage down was to restart Yomcat (sometimes NT). We tried
optimising the JNI code and the Java Servlet code. We have
noticed some success as far as memory usage is concerned but
even now the memory usage keeps on increasing but it comes
down at some point all of a sudden. The memory usage rises
to 200MB (!) and comes down (at no defined time) to, say,
600 KB (yes!). We are still exploring the reason behind
Tomcat's such unusual behavior.
Thanks
Manish

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


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:

> For additional commands:

> Troubles with the list:



--
To unsubscribe:

For additional commands:

Troubles with the list:



--
To unsubscribe:

For additional commands:

Troubles with the list:




--
To unsubscribe:

For additional commands:

Troubles with the list:



--
To unsubscribe:

For additional commands:


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

2002-03-01 Thread Randy Layman


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  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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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

> root cause java.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:   
For additional commands: 
Troubles with the list: 




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:

  


in my server.xml file.

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






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:   
For additional commands: 
Troubles with the list: 




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

2002-03-01 Thread CAM

I hate to repost but I can't get anywhere with this - the Proxy-Support Howto 
and the high level entity docs don't seem to be relevant (on an associated 
point, does anyone know of a searchable set of the tomcat docs?).

Am I trying to rewrite this URL in the wrong place - I mean should these 
requests be getting reformatted before they even arrive at Tomcat? I'm not sure 
if it will support this form of request.

I am currently attempting to decode RFC 2068 to see if these are legal requests 
but, as I say, other servers seem happy with them...

Any clues *very* gratefully accepted...

TIA
cam

CAM wrote:

> Hello all,
> 
> I'm sure I'm missing something very basic here but I can't think what. 
> I'm using a little proxy (HttpSniffer) to debug header and cookie info 
> between my browser and a remote Tomcat 4-b6. I'm getting failures to 
> requests (404's) when I go thru the proxy and I can see in my access 
> logs that this is because the requests are arriving as:
> 
> 192.x.x.x - - [28/Feb/2002:17:30:49 00] "GET 
> http://my.host.com:8080/dms/servlet/dms HTTP/1.0" 404 263
> 
> instead of:
> 
> 192.x.x.x - - [28/Feb/2002:17:24:16 00] "GET /dms/servlet/dms HTTP/1.1" 
> 200 2294
> 
> Rather than rewrite httpsniffer, I suspect I need some form of redirect 
> - besides, the sniffer works with other sites (e.g. Google). I haven't 
> managed to dig out anything about redirection from the docs - there are 
> a lot of facets to the information. Is redirection associated with the 
> Engine? The connector?
> 
> So, an RTFM is probably deserved but a clue as to where would be 
> tremendous.



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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [Dim Question] Redirecting GET http://blah.com/ resource -> GET /resource - Tomcat 4

2002-03-01 Thread Randy Layman


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!  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).

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.

Randy


> -Original Message-
> From: CAM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 7:38 AM
> To: Tomcat Users List
> Subject: Re: [Dim Question] Redirecting GET http://blah.com/ 
> resource ->
> GET /resource - Tomcat 4
> 
> 
> I hate to repost but I can't get anywhere with this - the 
> Proxy-Support Howto 
> and the high level entity docs don't seem to be relevant (on 
> an associated 
> point, does anyone know of a searchable set of the tomcat docs?).
> 
> Am I trying to rewrite this URL in the wrong place - I mean 
> should these 
> requests be getting reformatted before they even arrive at 
> Tomcat? I'm not sure 
> if it will support this form of request.
> 
> I am currently attempting to decode RFC 2068 to see if these 
> are legal requests 
> but, as I say, other servers seem happy with them...
> 
> Any clues *very* gratefully accepted...
> 
> TIA
> cam
> 
> CAM wrote:
> 
> > Hello all,
> > 
> > I'm sure I'm missing something very basic here but I can't 
> think what. 
> > I'm using a little proxy (HttpSniffer) to debug header and 
> cookie info 
> > between my browser and a remote Tomcat 4-b6. I'm getting 
> failures to 
> > requests (404's) when I go thru the proxy and I can see in 
> my access 
> > logs that this is because the requests are arriving as:
> > 
> > 192.x.x.x - - [28/Feb/2002:17:30:49 00] "GET 
> > http://my.host.com:8080/dms/servlet/dms HTTP/1.0" 404 263
> > 
> > instead of:
> > 
> > 192.x.x.x - - [28/Feb/2002:17:24:16 00] "GET 
> /dms/servlet/dms HTTP/1.1" 
> > 200 2294
> > 
> > Rather than rewrite httpsniffer, I suspect I need some form 
> of redirect 
> > - besides, the sniffer works with other sites (e.g. 
> Google). I haven't 
> > managed to dig out anything about redirection from the docs 
> - there are 
> > a lot of facets to the information. Is redirection 
> associated with the 
> > Engine? The connector?
> > 
> > So, an RTFM is probably deserved but a clue as to where would be 
> > tremendous.
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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

>   If I want apache to handle all html, php, cgi requests, I use:
> 
> className="org.apache.catalina.connector.http.HttpConnector"

>   And if I want the web_app module to handle "java" request I use:
> classname="org.apache.catalina.connector.warp.WarpConnector"


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:

  


in my server.xml file.

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






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:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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  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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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  tag, that is.  In
addition it is mapped to the root URL with a statement of the form:

  
MessageDispatcherServlet
/
  

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 
>  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:   
>  [EMAIL PROTECTED]>
> > For 
> additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> 
> --
> To 
> unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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 
>  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:   
>  [EMAIL PROTECTED]>
> > For 
> additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> 
> --
> To 
> unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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
 tag creates an instance.

Here are the possible reasons for getting multiple instances:
1.  Multiple  tags in web.xml
2.  One or more  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  tag, 
> that is.  In
> addition it is mapped to the root URL with a statement of the form:
> 
>   
> MessageDispatcherServlet
> /
>   
> 
> 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 
> >  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:   
> >  [EMAIL PROTECTED]>
> > > For 
> > additional commands: 
> > 
> > > Troubles with the list: 
> > 
> > > 
> > 
> > --
> > To 
> > unsubscribe:   
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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

2002-03-01 Thread Wagoner, Mark

I afraid I have had the good fortune to not have this problem.  :-)

Short of what you have already done, I'm not sure where else to look.  My
understanding is Tomcat invokes init when it loads the servlet.  Is it
possible that the servlet is dieing for some reason and is actually being
re-loaded?

Just a wild guess.

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


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 
>  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:   
>  [EMAIL PROTECTED]>
> > For 
> additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> 
> --
> To 
> unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




Deploying WAR with explicit context declaration in server.xml

2002-03-01 Thread Radim Kubacki

Hi all,

I have a problem that seems to be almost the same as

Automatic deployment of war files does not work properly
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4829

I try to deploy war file containing my application. This requires 
specifying of context in server.xml because I need to configure JDBC 
access through JNDI. Everything works for me when an application is 
expanded on disk but it fails when I want to use WAR file. I am not 
interested in fact whether it is expended or not. The problem is that 
Tomcat doesn't initialize the application properly. As the log shows the 
web.xml is not found and it means that it can't run correctly.

Either I don't understand Remy's suggestion how to make Tomcat unpacking 
it or this feature doesn't work. Remy: can you explain it better why it 
is not a bug?

-Radim

2002-03-01 15:16:04 WebappLoader[/bookstore]: Deploying class 
repositories to work directory 
/opt/jakarta/jakarta-tomcat-4.0.2/work/localhost/bookstore
2002-03-01 15:16:04 StandardManager[/bookstore]: Seeding random number 
generator class java.security.SecureRandom
2002-03-01 15:16:04 StandardManager[/bookstore]: Seeding of random 
number generator has been completed
2002-03-01 15:16:04 ContextConfig[/bookstore]: Missing application 
web.xml, using defaults only
2002-03-01 15:16:04 StandardWrapper[/bookstore:default]: Loading 
container servlet default
2002-03-01 15:16:04 default: init
2002-03-01 15:16:04 StandardWrapper[/bookstore:invoker]: Loading 
container servlet invoker
2002-03-01 15:16:04 invoker: init
2002-03-01 15:16:04 jsp: init
2002-03-01 15:16:04 Internal Error: File /WEB-INF/web.xml not found


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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  tags in web.xml

Nope.

>   2.  One or more  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:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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,"",cHtmlList+"");
}
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:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


--
--
 

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



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


--
--
 

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



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
>For additional commands: 
>Troubles with the list: 


--
--
 

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



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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  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("Hi there");
%>

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  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:   
For additional commands: 
Troubles with the list: 




RE: TOMCAT 4.0.2 server crash

2002-03-01 Thread Reynir Hübner

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:   

> For additional commands: 
> Troubles with the list: 
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 


--
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:   
For additional commands: 
Troubles with the list: 




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();
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

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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
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:   
For additional commands: 
Troubles with the list: 




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,"",cHtmlList+"");
> }
> 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:   
> > > For additional commands: 
> > > Troubles with the list: 
> > >
> > >
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
>
>
> --
> --
> 
>
> Stephan Mülhaus  [EMAIL PROTECTED]
> NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
> Phone: +49-231-986510 - 0
> FAX: +49-231-986522 - 2
> --
> 
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
>>For additional commands: 
>>Troubles with the list: 
>>
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: jspInit and load-on-startup

2002-03-01 Thread Larry Isaacs

Mark,

This is a bug in Tomcat 3.3.  See:



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  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("Hi there");
> %>
> 
> 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  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:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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 " will
allow you to see what's going on (where  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:   
For additional commands: 
Troubles with the list: 



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  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  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("Hi there");
> %>
> 
> 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  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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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

 


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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:



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  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("Hi there");
> %>
> 
> 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  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:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



  all
  zzz.jsp
  1


all
/*




-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  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  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("Hi there");
> %>
>
> 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  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:   
> For additional commands: 
> Troubles with the list: 
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 


--
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:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> 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:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
>
>
>

--
> 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:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
Aus Rechts- und Sich

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:

  
  
 factory

org.apache.naming.factory.TyrexDataSourceFactory
 userlive
 passwordlive
 serverNamel2

databaseNamelive

driverClassNameorg.postgresql.Driver<
/parameter>

driverNamejdbc:postgresql://l2/live
  

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.(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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:

> For additional commands: 
> Troubles with the list: 
>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


URL Problem with blanks in names

2002-03-01 Thread Zsolt Koppany

Hi,

how can I create a link (Open

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

Zsolt

-- 
Zsolt Koppany

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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
 within tomcat can be written to a specific file via the 
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  file and can I
specifiy the verbosity (the level of the entry 0-4) with each entry?

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

Thanks,
Jay

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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 ( directory or in the filename?
>
> I mean for example: Open
>
> I tried to create the link using URLEncoder.encode(..) but the created
link
> didn't work either.
>
> Zsolt
>
> --
> Zsolt Koppany
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> > For additional commands: 
> > Troubles with the list: 
>
>






> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Logging

2002-03-01 Thread Markus Spath



Jay Wright wrote:

...
> 
> I'm hesitant to use the  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:   
For additional commands: 
Troubles with the list: 




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 ( > directory or in the filename?
> >
> > I mean for example: Open
> >
> > I tried to create the link using URLEncoder.encode(..) but the created
> link
> > didn't work either.
> >
> > Zsolt
> >
> > --
> > Zsolt Koppany
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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)
>root cause java.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:   
For additional commands: 
Troubles with the list: 




Tomcat 4, just a simple question.

2002-03-01 Thread Gustavo Mejia

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:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4, just a simple question.

2002-03-01 Thread Brian Adams

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:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
> > > For additional commands: 
> > > Troubles with the list: 
>
> ---
>- 
>
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
> For additional commands: 
> Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
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:   
For additional commands: 
Troubles with the list: 




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

2002-03-01 Thread Dieter Lunn

Here it is anyway:













  


  
  








  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  

  

  
  

























  
  

  
  

  

  
  

  


  

  

  

  

  
  

















  
  

  



  
  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  
  


  



  

  

  
  






  
  

  
  



  




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:   
> > > For additional commands: 
> > > Troubles with the list: 
>
> ---
>- 
>
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: jspInit and load-on-startup

2002-03-01 Thread Mark Lines-Davies

Sorry, the JSP page looks like this:

<%@ page import="java.io.*" contentType="text/xml" %>
<%!
public void jspInit(){
System.out.println("Hello World");
}
%>
<%
System.out.println("Normal call");
out.println("Hi there");
%>


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Mark Lines-Davies
Sent: 01 March 2002 15:12
To: [EMAIL PROTECTED]
Subject: 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  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("Hi there");
%>

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  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] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Logging

2002-03-01 Thread Craig R. McClanahan



On Fri, 1 Mar 2002, Jay Wright wrote:

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

You can configure a  that uses the SystemOutLogger or
SystemErrLogger with timestamp="true", and anything logged there by Tomcat
(or your application calling the getServletContext().log() method) will be
timestamped.  However, this won't affect any output that is directly
written with things like System.out.println().

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

>From within your application, anything you write via the
HttpServlet.log() or ServletContext.log() methods is written directly to
the  associated with your web application (with optional
timestamps if you have asked for it).  There is no provision through the
servlet API to set verbosity levels, however.

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

Basic rule - *nothing* in server.xml is portable, but *everything* in your
own web.xml is portable.

> Thanks,
> Jay
>

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




IOException: HTTPS hostname wrong

2002-03-01 Thread Nathan Bell

I receive an "IOException: HTTPS hostname wrong" exception when using a 
self-signed certificate for SSL connections. I know that this should 
happen so to prevent bad people from fooling me, but I need to turn it 
off for testing purposes. I have tryed to cicurmvent this feature using 
HttpsURLConnection.setDefaultHostnameVerifier() to use a class that lets 
every hostname be correct. Tomcat 4.0.1 seems to be ignoring this, and 
using it's own HostnameVerifier instead. I would use 4.0.2 but there are 
problems with it and my servlet getting along.
Is there a different way to get Tomcat to ignore incorrect hostnames? or 
maybe I'm just doing it wrong?
I've included the code snippet that seems to hate me: It seems to work 
perfect for certificates that have the correct hostname.

Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("java.protocol.handler.pkgs", 
"com.sun.net.ssl.internal.ssl.protocol");

System.setProperty("javax.net.ssl.keyStore",keyStorePath1);
System.setProperty("javax.net.ssl.keyStorePassword",keyStorePassPhrase1);

if(!checkCertificates)
{
System.setProperty("javax.net.ssl.trustStore",keyStorePath2);

System.setProperty("javax.net.ssl.trustStorePassword",keyStorePassPhrase2);
   
HttpsURLConnection.setDefaultHostnameVerifier(
new HostnameVerifier()
{
public boolean verify(String urlHostname, String certHostname)
{
return true;
}
} );
}

-- 
Nathan Bell
Companion Corporation
Evelyn Manufacturing
www.companioncorp.com
[EMAIL PROTECTED]

 ><));>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Is this possible?

2002-03-01 Thread Michael Teter

Hello.

I would like to be able to create something like the
following example, and I need to know if this is
feasible with Tomcat...

Assume I have the domain blah.com, and I would like to
be able to create virtual names like "mary.blah.com",
"john.blah.com", "michael.blah.com", etc.

When someone goes to mary.blah.com, I would like the
pages they see to be dynamically generated, something
like this:


Welcome Mary!  Based on your ranking, you can do the
following actions:
  _View Production Reports_
  _Edit Report Profiles_


(or when someone goes to john.blah.com)

Welcome John!  Based on your ranking, you can do the
following actions:
  _Create Accounts_
  _Edit Accounts_
  _Input Production Numbers_



I wouldn't know how to classify my experience with
Tomcat/Servlets/JSP, but if this helps tailor the
answers, I'm fairly comfortable using the Model2
paradigm with JSP/Serlets and beans to generate fairly
complicated interfaces.  However, what I'm wanting to
do now seems well beyond my current knowledge, so any
pointers would be most welcome.

Much thanks,
Michael


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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.(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  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  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




Re: Classpath Issue

2002-03-01 Thread daishi


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.

Am I missing something?

TIA,
d


At Mon, 25 Feb 2002 18:15:15 +0100,
Jean-Luc BEAUDET wrote:
> 
> [EMAIL PROTECTED] a écrit :
> 
> > Tomcat takes care of this for you so that you don't have to mess around
> > with classpath issues. Put your  unpacked classes in the WEB-INF/classes
> > directory of you webapplication. jar files go under the WEB-INF/lib. And
> > you are good to go.
> > If you wish to make your classes visible to all applications then place
> > your unpacked classes under then /common/classes.
> 
> Not really recommended since common will have this lib/classes viewed by both
> CATALINA and all web applications. Could be confused in some way...
> 
> Prefer the method of shared:
> $CATALINA_HOME/classes and $CATALINA_HOME/lib assuming CATALINA_HOME is the
> dir where yur Tomcat's dist was installed.
> 
> Hope this will clear the situation...
> 
> Jean-Luc :O)
> 
> 
> >
> > And the packed jar files under /common/lib
> > And if you still wish to add classes to the classpath then check out
> > catalina.bat (or tomcat.bat). But be warned this may give rise to problems
> > with classloading in the future :-)
> >
> > RS
> >
> > "Rui Oliveira" <[EMAIL PROTECTED]> on 02/25/2002 10:51:46 AM
> >
> > Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> >
> > To:   "Tomcat Users List" <[EMAIL PROTECTED]>
> > cc:
> >
> > Subject:  Classpath Issue
> >
> > Hello,
> >
> > sorry for the newbie question...
> >
> > Can someone please tell me how to configure the classpath for a specific
> > application only, instead of defining it for all the tomcat applications?
> >
> > Thanks in advance
> > Rui Oliveira
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Classpath Issue

2002-03-01 Thread Craig R. McClanahan



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.

> Am I missing something?
>
> TIA,
> d

Craig


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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 /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:   
> For additional commands: 
> Troubles with the list: 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




RE: Is this possible?

2002-03-01 Thread Brian Adams

yep you can do that.
I would put apache web server as the front end then use mod_jk or mod_webapp
as the connector to the tomcat instance.
Are you going to have mary login?
easy stuff, no problem.
have fun.
B

-Original Message-
From: Michael Teter [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 4:13 PM
To: [EMAIL PROTECTED]
Subject: Is this possible?


Hello.

I would like to be able to create something like the
following example, and I need to know if this is
feasible with Tomcat...

Assume I have the domain blah.com, and I would like to
be able to create virtual names like "mary.blah.com",
"john.blah.com", "michael.blah.com", etc.

When someone goes to mary.blah.com, I would like the
pages they see to be dynamically generated, something
like this:


Welcome Mary!  Based on your ranking, you can do the
following actions:
  _View Production Reports_
  _Edit Report Profiles_


(or when someone goes to john.blah.com)

Welcome John!  Based on your ranking, you can do the
following actions:
  _Create Accounts_
  _Edit Accounts_
  _Input Production Numbers_



I wouldn't know how to classify my experience with
Tomcat/Servlets/JSP, but if this helps tailor the
answers, I'm fairly comfortable using the Model2
paradigm with JSP/Serlets and beans to generate fairly
complicated interfaces.  However, what I'm wanting to
do now seems well beyond my current knowledge, so any
pointers would be most welcome.

Much thanks,
Michael


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[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=notify&EID=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?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777497

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

I 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)?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=777478

Is it possible to call a custom tag from another custom tag?
If so how?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=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=notify&EID=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=notify&EID=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=notify&EID=775339

Is it possible to press a button in one frame and caused a form in another frame to be 
submitted? 
I 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=notify&EID=775280

I am aware of the technical differences between response.sendRedirect() and 
 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.However, 
can anyone tell me why one should be used instead of the other?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=775275

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

   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=notify&EID=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=notify&EID=775213

I'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.

The 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.

Example:

In shared.war, I have the file /htmlcommon/header.jsp. In search.war, I have the document /search.jsp In search.jsp, I have the following include statement: However, when I load the page, the header doesn't come in and I get an error 404 - not found. I'd appreciate any thoughts on this. Thanks much Michael Lundin [EMAIL PROTECTED] http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=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=notify&EID=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 database. http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EI

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:   
For additional commands: 
Troubles with the list: 




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 /common/lib 
2. copied XSQLConfig.xml to
/common/classes 
I have used the same XSQLConfig.xml with Apache/JServ
and it works. 
3. added the following two sections to the
/conf/web.xml file: 

 
 
xsql 
oracle.xml.xsql.XSQLServlet

 

 
xsql 
*.xsql 
 

4. copied helloworld.xsql into
/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:   
For additional commands: 
Troubles with the list: 




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:   
For additional commands: 
Troubles with the list: 




[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:   
For additional commands: 
Troubles with the list: