Re: Apache, tomcat and virtual host

2005-04-06 Thread david joffrin
Yes,
I'd like to set up the following set up the following URLs:
http://www.domain1.com/
http://www.domain2.com/
https://sthg.domain1.com/
but this http://www.domain1.com/ must redirects to a tomcat instance and I 
would like to implement load balancing on this one (so using mod_jk).

How should I configure my httpd.conf to realize that as so far if I 
implement mod_jk on my https instance, all domains are redirected to the 
tomcat instance.

Thanks.
DvJ
From: David Rees [EMAIL PROTECTED]
Reply-To: David Rees [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Apache, tomcat and virtual host
Date: Tue, 5 Apr 2005 17:54:22 -0700
On Apr 5, 2005 4:17 AM, david joffrin [EMAIL PROTECTED] wrote:

 I would like to run the following configurations with only one
 machine: 3 domains. Let's name them, www.domain1.com and
 sthg.domain2.com and www.domain2.com.

 www.domain1.com runs on 80 using apache and php
 www.domain2.com runs on 8080 using tomcat, mysql...
 sthg.domain2.com runs on 443 using apache and php

 Using the virtual hosts, I managed to set-up successfully
 www.domain1.com and sthg.domain2.com. I am now trying to include
 mod_jk, but when doing that, I am loosing the virtual hosts features
 and all my requests (for all sites) are sent to the tomcat instance
 (including the https one).

 Is that possible should probably my first question?
 Has anyone some experience with a similar set-up?
Yes, it is possible to configure multiple virtual hosts with Apache
and Tomcat...
Your explanation of your current setup is confusing.  Are you trying
to setup the following URLs?
http://www.domain1.com/
http://www.domain2.com/
https://sthg.domain1.com/
-Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


apache + jakarta tomcat twice a time?

2005-04-06 Thread Tamer Higazi
Hi! 
I am asking myself if it is possible to run both servers twice a time?!
The goal is that different Webapplications with different engines (php,
JSP) should run on the server. 

For any comment, 

Thank you


Tamer


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



Re: Performance monitoring

2005-04-06 Thread Francesco Del Moro
CHESS-CODE:s04hchmi42m2t3k3s41ktl27o8s9c9pa8b9c0c8cpt8dge8v2voo0
- Original Message - 
From: Tony Tomcat [EMAIL PROTECTED]
To: Peter Lin [EMAIL PROTECTED]
Cc: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 05, 2005 8:48 PM
Subject: Re: Performance monitoring


 yeah.  I was looking at the status servlet but I wanted a little more
 control of the output which is when I started digging through the code
 and found that it was using MBeanServer.   I didn't know there was an
 XML output option so I'll look into that.
 
 Thanks for the Jmeter pointer too.  I have been using jmeter for
 stress testing but I have never tried setting up a monitor.
 
 
 
 On Apr 5, 2005 2:23 PM, Peter Lin [EMAIL PROTECTED] wrote:
  there's this little thing called the status servlet. It displays
  information in HTML format for each webapp.
  
  it can also show a subset of the full stats in XML.  there's this
  other project in jakarta called JMeter. It has a monitor for
  tomcat5.0.19 and newer that can monitor one or more Tomcat instances.
  
  so if you don't count the status servlet and tomcat, nothing exists :)
  
  peter
  
  
  On Apr 5, 2005 2:20 PM, Tony Tomcat [EMAIL PROTECTED] wrote:
   I started writing a Filter for my tomcat to monitor performance but
   then I started wondering..  Is there a solution already out there that
   I can use?  Can I pull data from Tomcat's MBeanServer?
  
   What I would like to know is how long my servlets are taking to run.
   I need the Min, Max and  Average times.   I then would build a servlet
   to output the data in XML or HTML format.  I also would want the data
   over the past hour and past 24 hours.
  
   Thanks in advance for any pointers or suggestions!
   Tony
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



Re: Apache, tomcat and virtual host

2005-04-06 Thread David Rees
On Apr 5, 2005 11:23 PM, david joffrin [EMAIL PROTECTED] wrote:
 Yes,
 
 I'd like to set up the following set up the following URLs:
 http://www.domain1.com/
 http://www.domain2.com/
 https://sthg.domain1.com/
 but this http://www.domain1.com/ must redirects to a tomcat instance and I
 would like to implement load balancing on this one (so using mod_jk).
 
 How should I configure my httpd.conf to realize that as so far if I
 implement mod_jk on my https instance, all domains are redirected to the
 tomcat instance.

Why don't you post links to or paste in your httpd.conf and
tomcat-workers.properties so that we have half a chance of figuring
out your problem?

-Dave

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



Re: apache + jakarta tomcat twice a time?

2005-04-06 Thread Trond G. Ziarkowski
Hi,
not sure I understand your question (twice a time?). If you are 
wondering if you can have them both running at the same time the answer 
is yes. To have Tomcat and Apache work together you need mod_jk or 
mod_proxy.

mod_jk can be found here:
http://jakarta.apache.org/tomcat/connectors-doc/
Trond
Tamer Higazi wrote:
Hi! 
I am asking myself if it is possible to run both servers twice a time?!
The goal is that different Webapplications with different engines (php,
JSP) should run on the server. 

For any comment, 

Thank you
Tamer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 


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


error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David

I'm using response.setHeader(cache-control,no-cache);

and tomcat is correctly telling me that the page has expired
when I use the browser back button.

I can't find out what error (if any) this is, to trap it
using the error-page element.

Is it possible to trap this error please?


Regards DaveP.

 snip here *

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE: Webdav Webfolder issue when container security enabled

2005-04-06 Thread Fernando Salazar de Paz
Now, my web.xml looks like

- C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml --

  !-- The mapping for the webdav servlet --
  servlet-mapping
servlet-namewebdav/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping

- C:\Tomcat 4.1\webapps\webdav\WEB-INF\web.xml --


But I am still having the same problems. I cannot see file listings
Am I modifying the wrong mapping ?


1. Run Internet explorer
2. Navigate to http://localhost:8080/webdav
3. Auth dialog
4. Follow BizObj.pdf link

Works

1. Run Internet Explorer
2. Navigate to http://localhost:8080/webdav/BizObj.pdf
3. Auth dialog

Fails

Cheers,

Fer



-Mensaje original-
De: Mark Thomas [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 05 de abril de 2005 23:32
Para: Tomcat Users List
Asunto: Re: Webdav Webfolder issue when container security enabled

Use /* as the servlet mapping. This will override any welcome file 
processing etc.

Let me know which test fail with this mapping.

Cheers,

Mark

Fernando Salazar de Paz wrote:
 Thanks for your help, Mark
 
 I have uncommented the servlet's readonly init parameter and security
 constraints for testing. I have tried to comment welcome-file-list, but
 web.xml in C:\Tomcat 4.1\conf have the same welcome-file-list, finally
 I have removed index.html (I think I am doing something wrong). 
 
 In my last test I have removed mime-types and welcome-file-list in 
 C:\Tomcat 4.1\webapps\webdav\web.xml, with the same result (it could take
 the defaults defined in C:\Tomcat 4.1\conf\web.xml, right ? )
 
 
  C:\Tomcat
4.1\webapps\webdav\web.xml---
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 
   display-nameWebdav Content Management/display-name
   description
  Webdav Content Management
   /description
 
   servlet
 servlet-namewebdav/servlet-name
  
 servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value0/param-value
 /init-param
 init-param
   param-namelistings/param-name
   param-valuetrue/param-value
 /init-param
 !-- Uncomment this to enable read and write access --
 init-param
   param-namereadonly/param-name
   param-valuefalse/param-value
 /init-param
 load-on-startup1/load-on-startup
   /servlet
 
   !-- The mapping for the webdav servlet --
   servlet-mapping
 servlet-namewebdav/servlet-name
 url-pattern//url-pattern
   /servlet-mapping
 
   !-- Establish the default MIME type mappings --
   mime-mapping
 extensiontxt/extension
 mime-typetext/plain/mime-type
   /mime-mapping
   mime-mapping
 extensionhtml/extension
 mime-typetext/html/mime-type
   /mime-mapping
   mime-mapping
 extensionhtm/extension
 mime-typetext/html/mime-type
   /mime-mapping
   mime-mapping
 extensiongif/extension
 mime-typeimage/gif/mime-type
   /mime-mapping
   mime-mapping
 extensionjpg/extension
 mime-typeimage/jpeg/mime-type
   /mime-mapping
   mime-mapping
 extensionjpe/extension
 mime-typeimage/jpeg/mime-type
   /mime-mapping
   mime-mapping
 extensionjpeg/extension
 mime-typeimage/jpeg/mime-type
   /mime-mapping
   mime-mapping
 extensionjava/extension
 mime-typetext/plain/mime-type
   /mime-mapping
   mime-mapping
 extensionbody/extension
 mime-typetext/html/mime-type
   /mime-mapping
   mime-mapping
 extensionrtx/extension
 mime-typetext/richtext/mime-type
   /mime-mapping
   mime-mapping
 extensiontsv/extension
 mime-typetext/tab-separated-values/mime-type
   /mime-mapping
   mime-mapping
 extensionetx/extension
 mime-typetext/x-setext/mime-type
   /mime-mapping
   mime-mapping
 extensionps/extension
 mime-typeapplication/x-postscript/mime-type
   /mime-mapping
   mime-mapping
 extensionclass/extension
 mime-typeapplication/java/mime-type
   /mime-mapping
   mime-mapping
 extensioncsh/extension
 mime-typeapplication/x-csh/mime-type
   /mime-mapping
   mime-mapping
 extensionsh/extension
 mime-typeapplication/x-sh/mime-type
   /mime-mapping
   mime-mapping
 extensiontcl/extension
 mime-typeapplication/x-tcl/mime-type
   /mime-mapping
   mime-mapping
 extensiontex/extension
 mime-typeapplication/x-tex/mime-type
   /mime-mapping
   mime-mapping
 extensiontexinfo/extension
 mime-typeapplication/x-texinfo/mime-type
   /mime-mapping
   mime-mapping
 extensiontexi/extension
 mime-typeapplication/x-texinfo/mime-type
   /mime-mapping
   mime-mapping
 extensiont/extension
 mime-typeapplication/x-troff/mime-type
   /mime-mapping
   mime-mapping
 extensiontr/extension
 mime-typeapplication/x-troff/mime-type
   /mime-mapping
   mime-mapping
 extensionroff/extension
 

== ADDENDA 2 very strange.... : the Isapi Log : Isapi redirector Installation problem betweeen IIs 6.0 and Tomcat 5.0.28 with redirector 1.2.8

2005-04-06 Thread samuel . goblet
Hi,

I'm looking for some help, again Thanx in advance.

Last test : When I'm installing on another server : Windows Server 200 
SP4, it works fine !!

So what  ?? 4 days for nothing ??? Does Tomcat 5.0.x works on Windows 2003 
? Could windows 2003 works with Tomcat 5.0.x ?

Could you help me please 

**
 SOFT RELEASE 
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : 1.2.8
*
After the last mail exchange, I delete my jk2 connector and config. But 
all over the web I find only some help for an installation of Tomcat 4.x 
and IIS.

With tomcat 5.0.28, the path for the samples directory and servlets are 
not the same. But even with some modifications in the 
uriworkermap.properties, I've got an error 404 from Tomcat...
**
== Log ISAPI.log
**
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1040): Using registry.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1043): Using log file c:\Tomcat5\logs\isapi.log.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1044): Using log level 1.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1046): Using worker file C:\Tomcat5\conf\worker.properties.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1047): Using worker mount file c:\Tomcat5\conf\uriworkermap.properties.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1049): Using uri select 0.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 7
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (406): exact rule 
/jsp-examples=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/jsp-examples/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule 
/jsp-examples/.jsp=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/servlets-examples/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (406): exact rule 
/tomcat-docs=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/tomcat-docs/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule /.jsp=ajp13 was 
added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (478): there are 7 rules
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
build_worker_map::jk_worker.c (196): creating worker ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
wc_create_worker::jk_worker.c (120): about to create instance ajp13 of 
ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
wc_create_worker::jk_worker.c (133): about to validate and init ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_validate::jk_ajp_common.c (1721): worker ajp13 contact is 
localhost:8009
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1767): setting socket keepalive to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1806): setting socket timeout to -1
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1810): setting connection recycle timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1814): setting cache timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1818): setting connect timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1822): setting reply timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1826): setting prepost timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1830): setting recovery opts to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1834): setting number of retries to 3
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1854): setting connection cache size to 1
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
build_worker_map::jk_worker.c (208): removing old ajp13 worker 
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Tue Apr 05 16:38:25 

Re: == ADDENDA 2 very strange.... : the Isapi Log : Isapi redirector Installation problem betweeen IIs 6.0 and Tomcat 5.0.28 with redirector 1.2.8

2005-04-06 Thread reynir
I replyed to you yesterday.
you are missing configuration for a coyote JK or AJP connector on port
8009 in server.xml
bye
-reynir



[EMAIL PROTECTED] wrote:

Hi,

I'm looking for some help, again Thanx in advance.

Last test : When I'm installing on another server : Windows Server 200 
SP4, it works fine !!

So what  ?? 4 days for nothing ??? Does Tomcat 5.0.x works on Windows 2003 
? Could windows 2003 works with Tomcat 5.0.x ?

Could you help me please 

**
 SOFT RELEASE 
My server : Windows server 2003
My Web server : IIS 6.0
My Tomcat server : 5.0.28
My JDK : JDK 1.4.2
My redirector : 1.2.8
*
After the last mail exchange, I delete my jk2 connector and config. But 
all over the web I find only some help for an installation of Tomcat 4.x 
and IIS.

With tomcat 5.0.28, the path for the samples directory and servlets are 
not the same. But even with some modifications in the 
uriworkermap.properties, I've got an error 404 from Tomcat...
**
== Log ISAPI.log
**
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1040): Using registry.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1043): Using log file c:\Tomcat5\logs\isapi.log.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1044): Using log level 1.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1046): Using worker file C:\Tomcat5\conf\worker.properties.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1047): Using worker mount file c:\Tomcat5\conf\uriworkermap.properties.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] init_jk::jk_isapi_plugin.c 
(1049): Using uri select 0.
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 7
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (406): exact rule 
/jsp-examples=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/jsp-examples/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule 
/jsp-examples/.jsp=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/servlets-examples/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (406): exact rule 
/tomcat-docs=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (382): match rule 
/tomcat-docs/=ajp13 was added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (360): suffix rule /.jsp=ajp13 was 
added
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (478): there are 7 rules
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
build_worker_map::jk_worker.c (196): creating worker ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
wc_create_worker::jk_worker.c (120): about to create instance ajp13 of 
ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
wc_create_worker::jk_worker.c (133): about to validate and init ajp13
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
ajp_validate::jk_ajp_common.c (1721): worker ajp13 contact is 
localhost:8009
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1767): setting socket keepalive to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1806): setting socket timeout to -1
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1810): setting connection recycle timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1814): setting cache timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1818): setting connect timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1822): setting reply timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1826): setting prepost timeout to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1830): setting recovery opts to 0
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1834): setting number of retries to 3
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] ajp_init::jk_ajp_common.c 
(1854): setting connection cache size to 1
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 
build_worker_map::jk_worker.c (208): removing old ajp13 worker 
[Tue Apr 05 16:38:25 2005] [2440:3504] [debug] 

creating a BBS with tomcat - how secure is it?

2005-04-06 Thread Christoph Kukulies

Anyone knowing of a BBS (Bulletin Board System) based on tomcat?
I'm planning to do something like that but want to be sure
that tomcat doesn't carry any inherent security risks making it 
only suitable for so called benign environments like intranets
with trusted users rather than exposing it to the 
'hard radiation' of cyberspace. (thinking of more or less
recent php4 vulnerabilities in that vein).


--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org


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



Re: error-page in web.xml and cache-control

2005-04-06 Thread Anto Paul
On Apr 6, 2005 1:46 PM, Pawson, David [EMAIL PROTECTED] wrote:
 
 I'm using response.setHeader(cache-control,no-cache);
 
 and tomcat is correctly telling me that the page has expired
 when I use the browser back button.
 
 I can't find out what error (if any) this is, to trap it
 using the error-page element.
 
 Is it possible to trap this error please?
 
 Regards DaveP.
 
  snip here *
 
 --
 DISCLAIMER:
 
 NOTICE: The information contained in this email and any attachments is
 confidential and may be privileged.  If you are not the intended
 recipient you should not use, disclose, distribute or copy any of the
 content of it or of any attachment; you are requested to notify the
 sender immediately of your receipt of the email and then to delete it
 and any attachments from your system.
 
 RNIB endeavours to ensure that emails and any attachments generated by
 its staff are free from viruses or other contaminants.  However, it
 cannot accept any responsibility for any  such which are transmitted.
 We therefore recommend you scan all attachments.
 
 Please note that the statements and views expressed in this email and
 any attachments are those of the author and do not necessarily represent
 those of RNIB.
 
 RNIB Registered Charity Number: 226227
 
 Website: http://www.rnib.org.uk
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

What is the exact message you get when clicking back button in browser
?. What browser you use ?. I think it is issued by browser not Tomcat.

-- 
Anto Paul
www.benchmarksoft.com

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



Re: error-page in web.xml and cache-control

2005-04-06 Thread Jon Wingfield
Sounds like the message IE gives when you hit back to a page served in 
response to a POST request.

http://theserverside.com/news/thread.tss?thread_id=28366
http://theserverside.com/news/thread.tss?thread_id=29758
Anto Paul wrote:
On Apr 6, 2005 1:46 PM, Pawson, David [EMAIL PROTECTED] wrote:
I'm using response.setHeader(cache-control,no-cache);
and tomcat is correctly telling me that the page has expired
when I use the browser back button.
I can't find out what error (if any) this is, to trap it
using the error-page element.
Is it possible to trap this error please?
Regards DaveP.


What is the exact message you get when clicking back button in browser
?. What browser you use ?. I think it is issued by browser not Tomcat.

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


RE: error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David
 

-Original Message-
From: Anto Paul 
 
 I'm using response.setHeader(cache-control,no-cache);
 
 and tomcat is correctly telling me that the page has 
expired when I 
 use the browser back button.

What is the exact message you get when clicking back button 
in browser ?. What browser you use ?. I think it is issued 
by browser not Tomcat.



Warning: Page has Expired The page you requested was created using information 
you submitted in a form. This page is no longer available. As a security 
precaution, Internet Explorer does not automatically resubmit your information 
for you. 

To resubmit your information and view this Web page, click the Refresh button. 



Its ie 6.

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE: error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David
 

-Original Message-
From: Jon Wingfield

Sounds like the message IE gives when you hit back to a 
page served in response to a POST request.

http://theserverside.com/news/thread.tss?thread_id=28366
http://theserverside.com/news/thread.tss?thread_id=29758


It is Jon. As that (rather long:-) thread indicates, I'm similarly
trying to maintain state through the website, and a user hitting
back screws that up.

Hence I'm looking for a means of trapping that error for either
a re-direct, or to an error page. HTTP 1.1 seems not to class
that as an error, hence I'm looking for another way to access that
'bad' state.

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE: error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David
Bit of clarification. 
A = initial page
B = target of link
both pages have cachecontrol set to no-cache.

Follow link from A
Hit back button

then the message shows.

The only time I get *any* of my error pages to show
is when I do a refresh on A, after getting there by a back button.
Then it goes to the 

   error-page
error-code404/error-code
location/file_not_found.html/location
/error-page   

page. 

Typing in a bad address shows the standard ie6 404 page.

regards DaveP


-Original Message-
From: Jon Wingfield

Sounds like the message IE gives when you hit back to a 
page served in response to a POST request.

http://theserverside.com/news/thread.tss?thread_id=28366
http://theserverside.com/news/thread.tss?thread_id=29758


It is Jon. As that (rather long:-) thread indicates, I'm 
similarly trying to maintain state through the website, and 
a user hitting back screws that up.

Hence I'm looking for a means of trapping that error for 
either a re-direct, or to an error page. HTTP 1.1 seems not 
to class that as an error, hence I'm looking for another 
way to access that 'bad' state.

regards DaveP

--
DISCLAIMER:

NOTICE: The information contained in this email and any 
attachments is confidential and may be privileged.  If you 
are not the intended recipient you should not use, 
disclose, distribute or copy any of the content of it or of 
any attachment; you are requested to notify the sender 
immediately of your receipt of the email and then to delete 
it and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments 
generated by its staff are free from viruses or other 
contaminants.  However, it cannot accept any responsibility 
for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this 
email and any attachments are those of the author and do 
not necessarily represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk





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



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



RE: Tomcat + Apache Web Server

2005-04-06 Thread Pete Stevens
 Consider the following Apache modules:
 mod_headers
 mod_expire
 mod_deflate

 I've never seen a web application that wouldn't benefit from one or all
 of these modules. And the performance improvements would likely more
 than outweigh any overhead.

 If Tomcat provides any of the functionality of mod_headers, mod_expire,
 or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a
 filter) when this functionality is available in Apache?

 I'm still unconvinced that running Apache in front of Tomcat isn't
 almost always a good thing. But I'm listening if someone can convince me
 otherwise.

Configuring Tomcat is a challenge. Configuring Tomcat + mod_jk + apache is
even more of a challenge (see the number of posts on this list alone!). The
chance of you dropping a security screw-up into the more complicated setup is
much higher than the simple set up.[*] Unless you really need the performance
benefit of the above modules - and many many people don't - why go to the
extra setup effort, and extra risk of making mistakes?

My benchmarks showed that on cheap new hardware (P4, 2.5Ghz) that apache and
tomcat were both capable at webserving at a speed that would cost me a fortune
in bandwidth and any delay would be in the application code, not the
performance of the webserver. My tomcat install survived a direct slashdot
without issue, so all I care about is manageability, performance (for me) is a
solved problem.

Of course, if you're trying to run something the size of ebay it's a little
different.

Pete

[*] Pick a random website running java. Try to download
foo.com/WEB-INF/web.xml. Be scared how often it succeeds.

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

 I have kleptomania, but when it gets bad, I take something for it.
   -- Anonymous

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



mod_jk2 connection

2005-04-06 Thread Jobish P

Hi,

Could any one guide me to connect apache to tomcat through mod_jk.
I tried some documents but each differ from one another. I have to connect
apache2, with tomcat 5.0.19 using modjk2.so.

Thanks in advance,
---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12

Get it down. Take chances. It may be bad, but it's the only way you can
do anything really good. William Faulkner
---


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



NullPointerException in CoyoteRequestFacade in tomcat 5.0.28

2005-04-06 Thread DEMOTTIE Christophe ROSI/DPS

Hi,

I have a null exception in CoyoteRequestFacade with Tomcat 5.0.28 and 4.1.27


== org.apache.coyote.tomcat5.CoyoteRequestFacade
java.lang.NullPointerException
at 
org.apache.coyote.tomcat5.CoyoteRequestFacade.isSecure(CoyoteRequestFacade.java:379)
at myPackage.MyServlet.baseURL(WServlet.java:87)
at myPackage.MyPage.getBaseURL(WPage.java:193)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at myPackage.MethodBinder.get(MethodBinder.java:26)

I look source code and it seem it correspond to a null request attribute in
the class CoyoteRequestFacade.java
---
public boolean isSecure() {
return request.isSecure();  // line 379
}
---

Here is the code of the method in my servlet :
  public String baseURL(ServletRequest request) {
System.out.println(==  + ((request == null)? null : 
request.getClass().getName()));
if (request.isSecure())
return securedURL(request);
  else
return normalURL(request);
  }

My servlet method is called with the invoke method
in my MethodBinder class like that :

   protected java.lang.Object get(java.lang.Object object) throws Throwable 
   {
try {
  return method.invoke(object,null);
}
  catch (InvocationTargetException e0) {
throw e0.getTargetException();
  }
   }


why request is null in CoyoteRequestFacade ?

Thanks in advance,

Christophe.

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



Re: still not clear with connection pooling in tomcat

2005-04-06 Thread Krishnakant Mane
never mind doug,
in fact it seams that your asking questions reflects
nothing but professionalism and perfection.  that's
the way to do it.
by the way the relation to databases is one  to one
with web apps.  one web app is going to refer to only
one database.
so that is the way it is going to be.
thanks
Krishnakant.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: error-page in web.xml and cache-control

2005-04-06 Thread Anto Paul
On Apr 6, 2005 3:39 PM, Pawson, David [EMAIL PROTECTED] wrote:
 Bit of clarification.
 A = initial page
 B = target of link
 both pages have cachecontrol set to no-cache.
 
 Follow link from A
 Hit back button
 
 then the message shows.
 
 The only time I get *any* of my error pages to show
 is when I do a refresh on A, after getting there by a back button.
 Then it goes to the
 
error-page
 error-code404/error-code
 location/file_not_found.html/location
 /error-page
 
 page.
 
 Typing in a bad address shows the standard ie6 404 page.
 
 regards DaveP
 
 
 -Original Message-
 From: Jon Wingfield
 
 Sounds like the message IE gives when you hit back to a
 page served in response to a POST request.
 
 http://theserverside.com/news/thread.tss?thread_id=28366
 http://theserverside.com/news/thread.tss?thread_id=29758
 
 It is Jon. As that (rather long:-) thread indicates, I'm
 similarly trying to maintain state through the website, and
 a user hitting back screws that up.
 
 Hence I'm looking for a means of trapping that error for
 either a re-direct, or to an error page. HTTP 1.1 seems not
 to class that as an error, hence I'm looking for another
 way to access that 'bad' state.
 
 regards DaveP
 
 --
 DISCLAIMER:
 
 NOTICE: The information contained in this email and any
 attachments is confidential and may be privileged.  If you
 are not the intended recipient you should not use,
 disclose, distribute or copy any of the content of it or of
 any attachment; you are requested to notify the sender
 immediately of your receipt of the email and then to delete
 it and any attachments from your system.
 
 RNIB endeavours to ensure that emails and any attachments
 generated by its staff are free from viruses or other
 contaminants.  However, it cannot accept any responsibility
 for any  such which are transmitted.
 We therefore recommend you scan all attachments.
 
 Please note that the statements and views expressed in this
 email and any attachments are those of the author and do
 not necessarily represent those of RNIB.
 
 RNIB Registered Charity Number: 226227
 
 Website: http://www.rnib.org.uk
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

First you come to page A using HTTP POST method and browser is
complaining about that when you go back to that page.
You can check browser refresh in server side using tokens. If you
use Struts it has built in APIs for it.

-- 
Anto Paul
www.benchmarksoft.com

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



I want to install Apache+Tomcat

2005-04-06 Thread Victor Daniel Diaz Suarez
Hello, I want to install Apache+Tomcat to run a java application that is 
a servlet. How I can install?
I download Tomcat ande install, but when I try to test tomcat using 
http://localhost:8080 the navigator say cann´t find web.

Thanks
--
##
  Víctor Daniel Díaz Suárez
Centro de Tecnología Médica-Universidad de Las Palmas de  G.C.
##
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: I want to install Apache+Tomcat

2005-04-06 Thread Viorel Dragomir

After you install you must run [execute] the Tomcat using startup.(sh|bat) from 
bin directory.
I guess for windows there is an application to install/run the service.



Viorel Dragomir

.
..
---



- Original Message - 
From: Victor Daniel Diaz Suarez 
To: tomcat-user@jakarta.apache.org 
Sent: Wednesday, April 06, 2005 14:30
Subject: I want to install Apache+Tomcat


Hello, I want to install Apache+Tomcat to run a java application that is 
a servlet. How I can install?
I download Tomcat ande install, but when I try to test tomcat using 
http://localhost:8080 the navigator say cann´t find web.

Thanks

-- 
##

   Víctor Daniel Díaz Suárez
Centro de Tecnología Médica-Universidad de Las Palmas de  G.C.

##


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


Tomcat Timers/threads?

2005-04-06 Thread Charl Gerber
Does Tomcat 4.1 provide a way to schedule tasks?
Something similar to java.util.Timer?

BEA WebLogic eg offers a
weblogic.management.timer.Timer which has the same
affect, but is controlled by the application server.

I've been using a java.util.Timer up to now in Tomcat
4.1. I initialize it in the a ServletContextListener
and gracefully kill it there again when the
application stops, but strickly speaking this is
probably not correct. I've had no problems up to now,
though.

Does Tomcat offer a correct(er) solution, or can I
continue with the java.util.Timer?

Thanks!


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



filter mapping

2005-04-06 Thread Faine, Mark
Sorry this may be a little off-topic but is there a way to get the mapping
for a filter.  I'd like to determine what mapping set off the filter to use
it to rewrite a URL.  I know I can get the same information from the servlet
request but then I'd have to parse it and that complicates things.
 
Thanks,
-Mark
 
 

_ 

Mark Faine 
Computer Programmer III 
Administrator, Marshall Technical Reports Server 
http://trs.nis.nasa.gov http://trs.nis.nasa.gov/ 
UNITeS
256-961-1295 

This message is intended only for the use of the person(s) to whom it is
addressed. It may contain information which is privileged and confidential.
If you are not the intended recipient, please contact the sender as soon as
possible. The views expressed in this communication may not be the views
held by UNITeS or NASA. No responsibility is accepted by UNITeS or NASA for
personal emails, or emails unconnected with the company's business.

 


RE: mod_jk2 connection

2005-04-06 Thread David Owens
Here's a good article:

http://raibledesigns.com/tomcat/


-Original Message-
From: Jobish P [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 6:07 AM
To: tomcat-user@jakarta.apache.org
Subject: mod_jk2 connection


Hi,

Could any one guide me to connect apache to tomcat through mod_jk.
I tried some documents but each differ from one another. I have to
connect
apache2, with tomcat 5.0.19 using modjk2.so.

Thanks in advance,

---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12


Get it down. Take chances. It may be bad, but it's the only way you can
do anything really good. William Faulkner

---


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


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



Re: I want to install Apache+Tomcat

2005-04-06 Thread Victor Daniel Diaz Suarez
I had this (in windows) and I can see the icon in green that means that 
tomcat are running?

Can any give me which is the problem?
Viorel Dragomir wrote:
After you install you must run [execute] the Tomcat using startup.(sh|bat) from 
bin directory.
I guess for windows there is an application to install/run the service.

Viorel Dragomir
.
..
---

- Original Message - 
From: Victor Daniel Diaz Suarez 
To: tomcat-user@jakarta.apache.org 
Sent: Wednesday, April 06, 2005 14:30
Subject: I want to install Apache+Tomcat

Hello, I want to install Apache+Tomcat to run a java application that is 
a servlet. How I can install?
I download Tomcat ande install, but when I try to test tomcat using 
http://localhost:8080 the navigator say cann´t find web.

Thanks
 


--
##
  Víctor Daniel Díaz Suárez
Centro de Tecnología Médica-Universidad de Las Palmas de  G.C.
##
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: still not clear with connection pooling in tomcat

2005-04-06 Thread Parsons Technical Services
No problem.
With a one to one, set up the dataresource in the context element of the 
app.

Place this after your context element. You will need to either declare one 
in the server.xml, in your app war file or create a file yourapp.xml and 
place it in the Tomcat dir:
tomcat_home/conf/Catalina/localhost or the matching host for the app.

Resource name=jdbc/TestDB
  auth=Container
  type=javax.sql.DataSource/
 ResourceParams name=jdbc/TestDB
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxActive/name
 value100/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
parameter
 namemaxWait/name
 value1/value
   /parameter
parameter
nameusername/name
valuejavauser/value
   /parameter
   parameter
namepassword/name
valuejavadude/value
   /parameter
parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
   /parameter
 /ResourceParams
Make sure the resource name= resourceParams name= and the name called out in 
the class I sent in the last email all match including case.
Set the url to match the database name in place of javatest. And use the 
user and password you created for the database.

I create a user in the database and limit the rights to only the one databse 
and with limited rights.

Add this to the web.xml for the app:
  resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/TestDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
Again match the res-ref-name to the name used above for the resource.
And that should get things talking if you have set up all the database and 
users.

The above examples are from:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
Good luck.
- Original Message - 
From: Krishnakant Mane [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 8:08 AM
Subject: Re: still not clear with connection pooling in tomcat


never mind doug,
in fact it seams that your asking questions reflects
nothing but professionalism and perfection.  that's
the way to do it.
by the way the relation to databases is one  to one
with web apps.  one web app is going to refer to only
one database.
so that is the way it is going to be.
thanks
Krishnakant.
Send instant messages to your online friends http://uk.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: mod_jk2 connection

2005-04-06 Thread Victor Daniel Diaz Suarez
It´s very interesting, but do you Know any good and simple  manual for 
windows?

David Owens wrote:
Here's a good article:
http://raibledesigns.com/tomcat/
-Original Message-
From: Jobish P [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 6:07 AM
To: tomcat-user@jakarta.apache.org
Subject: mod_jk2 connection

Hi,
Could any one guide me to connect apache to tomcat through mod_jk.
I tried some documents but each differ from one another. I have to
connect
apache2, with tomcat 5.0.19 using modjk2.so.
Thanks in advance,

---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12


Get it down. Take chances. It may be bad, but it's the only way you can
do anything really good. William Faulkner

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


--
##
  Víctor Daniel Díaz Suárez
Centro de Tecnología Médica-Universidad de Las Palmas de  G.C.
##
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: mod_jk2 connection

2005-04-06 Thread David Owens
This is a fairly simple example.  (Basically as simple as it can be due to all 
the configuration that needs to happen.)  To make it work for windows just get 
the .zip instead of the .tar.gz and you should be fine.  Don't use the 
self-installing tomcat because you can't have 2 on the same windows box
very easily.

Hope this helps.

-Original Message-
From: Victor Daniel Diaz Suarez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 7:41 AM
To: Tomcat Users List
Subject: Re: mod_jk2 connection

It´s very interesting, but do you Know any good and simple  manual for 
windows?

David Owens wrote:

Here's a good article:

http://raibledesigns.com/tomcat/


-Original Message-
From: Jobish P [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 6:07 AM
To: tomcat-user@jakarta.apache.org
Subject: mod_jk2 connection


Hi,

Could any one guide me to connect apache to tomcat through mod_jk.
I tried some documents but each differ from one another. I have to
connect
apache2, with tomcat 5.0.19 using modjk2.so.

Thanks in advance,

---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12


Get it down. Take chances. It may be bad, but it's the only way you can
do anything really good. William Faulkner

---


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


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



-- 
##

   Víctor Daniel Díaz Suárez
Centro de Tecnología Médica-Universidad de Las Palmas de  G.C.

##


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


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



Re: Tomcat Timers/threads?

2005-04-06 Thread Harry Mantheakis
 Does Tomcat 4.1 provide a way to schedule tasks?
 Something similar to java.util.Timer?

AFAIK not in Tomcat, but Quartz might be of interest to you:

http://www.opensymphony.com/quartz/

HTH

Harry Mantheakis
London, UK


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



JSP compilation errors

2005-04-06 Thread Neuman, Ben J., AM IRM
I have a web-app (J2EE 1.3, Servlet 2.3, JSP 1.2) that builds and deploys
successfully on Tomcat (5.0.28). However, when pre-compiling all JSPs,
countless Exceptions are thrown, all of which are of the flavor cannot be
applied to. I realize this must be a classpath problem when compiling,
however, I can not find it. I am hoping someone has seen this before.

_jspx_method_some_tag_#(someTag, java.servlet.PageContext) in
org.apache.jsp.xxx.some_jsp cannot be applied to (org.apache.SomeTag,
javax.servlet.jsp.PageContext)

Here is one error word for word and the associated JSP:

D:\dev\HRMS\Modules\WebModule\build\generated\src\org\apache\jsp\common\mess
agePane_jsp.java:107:
_jspx_meth_jstl_out_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.Page
Context) in org.apache.jsp.common.messagePane_jsp cannot be applied to
(org.apache.struts.taglib.html.MessagesTag,javax.servlet.jsp.PageContext)



%@ taglib uri=/struts-bean prefix=bean %
%@ taglib uri=/struts-html prefix=html %
%@ taglib uri=/struts-logic prefix=logic %

div id=messagePane
logic:messagesPresent message=true
table cellspacing=1 cellpadding=1 border=0 width=100%
tr
  td
table width=100% align=center border=0
  tr
td  
html:messages id='message' message='true'
  bean:write name=message/
/html:messages  
/td
  /tr
/table  
  /td
/tr
/table
/logic:messagesPresent   
/div


...

This is a struts app (v1.2.4) and I do use JSTL v1.0.

Thanks! 

Ben



RE: Authentication problems with tomcat clustering.

2005-04-06 Thread David Owens
That was exactly it!  Thank you.  I had changed the configs, but had not
commented in that section.  All is well now.  Thank you very much!

|)ave

-Original Message-
From: David Rees [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 6:51 PM
To: Tomcat Users List
Subject: Re: Authentication problems with tomcat clustering.

On Apr 5, 2005 3:13 PM, David Owens [EMAIL PROTECTED] wrote:
 After further debug, I see this is happening because mod_jk is
 ignoring the sticky sessions, and continuing to lb back and forth.
 After looking at the mod_jk code, I see it is looking for something
 after the '.' character in the JSESSIONID to tell it where the session
 should stick.
 
 How do I setup tomcat (or is it httpd) to provide this piece of
 information?

The name of your worker in the mod_jk config must match the value in
each Tomcat instance's server.xml.

For example (abbreviated configs) in tomcat-workers.properties:

worker.list=tomcat1,tomcat2

And in tomcat1's server.xml:
Engine jvmRoute=tomcat1/

And in tomcat2's server.xml:
Engine jvmRoute=tomcat2/

Hope this helps...

-Dave

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


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



URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Steve Bosman
I raised this on the struts mailing list and had no joy there, but
since then I've found out that it appears to be a tomcat specific
problem.

The struts 1.1. application I am working on has some frameset stuff
(which I personally hate, but some things you are forced to live
with), occasionally frames within the frameset are set with parameters
in the URL which is output using html:rewrite (normally as the result
of failed actions). If a parameter has UTF-8 characters, e.g.
5--2005 this is encoded as this:

/foo.do?date=5-%D0%B0%D0%BF%D1%80-2005

By the time the date arrives in my ActionForm the value is now
5-?-2005. I have tried this on weblogic, websphere and oc4j and
it returns the correct string using those servers. This application is
running on tomcat 5.0.28 and what I would like to know is: is this a
struts problem, a tomcat problem or my problem and if so does anyone
have suggestions as to how to fix it?

thanks for any help,

Steve Bosman

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



Nested tag problem in tomcat 5.0.29

2005-04-06 Thread Narayan, Satya
Hi all,
I am having problem compiling jsp pages with nested struts
tags.
Is this a known error ? It says 

Unable to compile class for JSP

 Generated servlet error:
%CATALINA_HOME%\work\Catalina\localhost\test\org\apache\jsp\ui\Showjsp.j
ava:124:
_jspx_meth_logic_equal_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.j
sp.PageContext) in org.apache.jsp.ui.ShowPricingConditionPanel_jsp
cannot be applied to
(org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
  if (_jspx_meth_logic_equal_0(_jspx_th_html_form_0,
_jspx_page_context))


Has anybody got this error.
Kindly advise.

Thanks and Regards,
Satya


Re: error-page in web.xml and cache-control

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 5:01 AM, Pawson, David [EMAIL PROTECTED] wrote:

 Hence I'm looking for a means of trapping that error for either
 a re-direct, or to an error page. HTTP 1.1 seems not to class
 that as an error, hence I'm looking for another way to access that
 'bad' state.

I don't think you can do anything about that, I don't think a request
even hits the server for it, install ieHttpHeaders (google it) and
monitor the request/response headers to see what is going on but I'm
fairly sure you won't see anything hitting the server from that back
button press.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



How to read JNDI resources?

2005-04-06 Thread Andrew Watters
Using tomcat 4.3.1 I have included the following in server.xml
GlobalNamingResources
   Environment name=config_file type=java.lang.String value=test/
 /GlobalNamingResources
In a servlet loaded on startup I try to read in the property
InitialContext ic = new InitialContext();
Context ctx = (Context) ic.lookup(java:comp/env);
String configFilename = (String)(ctx.lookup(config_file));
This code throws a NamingException. Where have I gone wrong?
Thanks
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


New Session on Authentication?

2005-04-06 Thread William Stranathan
Is there a configuration setting to force Tomcat to expire the old
session and put the user in a new one when they log in using any of
the Realm's?  For example, this is a problem:

- User tries to access a restricted page - no session set up
- Tomcat redirects to the login page, appends ;jsessionid=id to the URL
- User successfully authenticates

Now, a URL with a valid session ID is in the user's history, might be
logged, and an unknowing user could copy/paste that URL to somebody
say in a newsgroup or something.

I'm using mod-rewrite on an Apache server in front of Tomcat to fix
the jsessionid going in the URL, but is there any way to force Tomcat
to make a new session upon authentication?  I know that this is not
always desirable - a user may have preferences in their session before
they authenticate, so I think it should be optional.

Thanks for any help.
Will Stranathn

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



java linux system call fails

2005-04-06 Thread Neil Upfalow
When a JSP calls 'gzip -d /opt/tomcat5/3.05.tar.gz'
Like this:
Runtime.getRuntime().exec(gzip -d /opt/tomcat5/3.05.tar.gz');
I get:
ERROR java.io.IOException: java.io.IOException: Cannot allocate memory
 
I don't believe it's a memory issue at all. Maybe this is just something
you can't do from a jsp or servlet?
 
Thanks alot in advance.
 
neil
 


AW: URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Michael Sdkamp
Hi,

We have all our pages UTF-8-encoded so I think what I am talking about:
At least in Tomcat you must UTF-8-decode the request parameters obtained from 
method getParameter() of interface ServletRequest yourself. Our web-apps runs 
also at some customer sites with other app servers like JRun or WebSphere where 
this works too.

Michael


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



Re: URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Mark Thomas
It is a lack of agreed standard problem. You can force Tomcat to use 
UTF-8 encoding by setting the URIEncoding parameter on the connector.
There are some other parameters that you can set as well. See 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html

Mark
Steve Bosman wrote:
I raised this on the struts mailing list and had no joy there, but
since then I've found out that it appears to be a tomcat specific
problem.
The struts 1.1. application I am working on has some frameset stuff
(which I personally hate, but some things you are forced to live
with), occasionally frames within the frameset are set with parameters
in the URL which is output using html:rewrite (normally as the result
of failed actions). If a parameter has UTF-8 characters, e.g.
5--2005 this is encoded as this:
/foo.do?date=5-%D0%B0%D0%BF%D1%80-2005
By the time the date arrives in my ActionForm the value is now
5-?-2005. I have tried this on weblogic, websphere and oc4j and
it returns the correct string using those servers. This application is
running on tomcat 5.0.28 and what I would like to know is: is this a
struts problem, a tomcat problem or my problem and if so does anyone
have suggestions as to how to fix it?
thanks for any help,
Steve Bosman
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


jndi.properties file and classpath

2005-04-06 Thread Eric J Kaplan
We are using tomcat 5.0.28 and our servlet needs to load jndi.properties
from a jndi.properties file in our WEB-INF/classes directory but it seems to
be getting it from elsewhere and so our servlet, which needs to call a bean
on a separate application server instance (in this case jboss) fails because
its jndi context it pointing it at, I assume, the jndi instance running in
tomcat. I even tried appending this classes directory to the front of the
classpath when starting within the script (shiver) but that didn't work.
What do I need to do?

 

Regards

 

Eric 

 



New website searches Tomcat source code for Java examples

2005-04-06 Thread Pete Eakle
JExamples.com is a new, free website that helps Java developers find
high quality example code for virtually any Java API. JExamples uses
sophisticated source analysis and a powerful search engine to find
examples in well known Java open source products (e.g.  Ant, Tomcat). 
The search results help you pick the best example (via user rating),
and can show you entire source files, with examples highlighted.
http://www.jexamples.com

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



Re: How to read JNDI resources?

2005-04-06 Thread Mark Thomas
You need to include a ResourceLink element in your context.
Mark
Andrew Watters wrote:
Using tomcat 4.3.1 I have included the following in server.xml
GlobalNamingResources
   Environment name=config_file type=java.lang.String value=test/
 /GlobalNamingResources
In a servlet loaded on startup I try to read in the property
InitialContext ic = new InitialContext();
Context ctx = (Context) ic.lookup(java:comp/env);
String configFilename = (String)(ctx.lookup(config_file));
This code throws a NamingException. Where have I gone wrong?
Thanks
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: URL encoding/decoding of UTF-8 characters

2005-04-06 Thread Quinten Verheyen
Indeed, I had the same problem on 5.0.25 once, use this filter in your web.xml 
to have UTF-8 encoding for all requests.

filter
filter-nameencodingFilter/filter-name
filter-classfilters.SetCharacterEncodingFilter/filter-class
init-param
param-nameencoding/param-name
param-valueUTF-8/param-value
/init-param
/filter
filter-mapping
filter-nameencodingFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

Regards,
Q

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: 06 April 2005 17:15
 To: Tomcat Users List
 Subject: Re: URL encoding/decoding of UTF-8 characters
 
 
 It is a lack of agreed standard problem. You can force Tomcat to use 
 UTF-8 encoding by setting the URIEncoding parameter on the connector.
 There are some other parameters that you can set as well. See 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
 
 Mark
 
 Steve Bosman wrote:
  I raised this on the struts mailing list and had no joy there, but
  since then I've found out that it appears to be a tomcat specific
  problem.
  
  The struts 1.1. application I am working on has some frameset stuff
  (which I personally hate, but some things you are forced to live
  with), occasionally frames within the frameset are set with 
 parameters
  in the URL which is output using html:rewrite (normally as 
 the result
  of failed actions). If a parameter has UTF-8 characters, e.g.
  5--2005 this is encoded as this:
  
  /foo.do?date=5-%D0%B0%D0%BF%D1%80-2005
  
  By the time the date arrives in my ActionForm the value is now
  5-?-2005. I have tried this on weblogic, websphere and oc4j and
  it returns the correct string using those servers. This 
 application is
  running on tomcat 5.0.28 and what I would like to know is: is this a
  struts problem, a tomcat problem or my problem and if so does anyone
  have suggestions as to how to fix it?
  
  thanks for any help,
  
  Steve Bosman
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


Can you use Tomcat when you are not on line?

2005-04-06 Thread Walter Lee
I have Tomcat installed on W2K and it says it is installed correctly. When I 
try the examples it tells me that I must be on line.  If I am using 
localhost:8080 why does it need to be on line?

RE: Can you use Tomcat when you are not on line?

2005-04-06 Thread Vaneet Sharma
:)

Well to test to examples, it connects to internet ( may be)

Best way is to write a small servet displaying Hello

Try using velocity and servlet  ( mvc )

Once, u make one class, u will make many  :)

Vaneet

-Original Message-
From: Walter Lee [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 5:44 PM
To: tomcat-user@jakarta.apache.org
Subject: Can you use Tomcat when you are not on line?


I have Tomcat installed on W2K and it says it is installed correctly.
When I try the examples it tells me that I must be on line.  If I am
using localhost:8080 why does it need to be on line?


Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses. 
 iwg founders are pioneers in creating multi-billion dollar mobile and Internet 
businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message and kindly notify the 
sender by reply email.

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



Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Mark Thomas
It is an IE setting - I forget which one as I don't use IE any more.
Mark
Walter Lee wrote:
I have Tomcat installed on W2K and it says it is installed correctly. When I try the examples it tells me that I must be on line.  If I am using localhost:8080 why does it need to be on line?

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


Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Parsons Technical Services
Assuming you are running this under IE:
Tools
Internet Options
Connections (Tab)
Change the setting to the second box.
My guess is that you use a dialup connection. It wants to connect to lookup 
the DNS.
Set it to the second one so it only dials when there is no network 
connection or the first one so that it never dials.
In either case you will either have to change it back or dial manually to 
get back on the Internet.

Doug
- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 11:44 AM
Subject: Can you use Tomcat when you are not on line?

I have Tomcat installed on W2K and it says it is installed correctly. When I 
try the examples it tells me that I must be on line.  If I am using 
localhost:8080 why does it need to be on line? 


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


tomcat and usb token (using pkcs#11)

2005-04-06 Thread Lapo TIN
Hello,
I would like to use TOMCAT as HTTPS server on linux machine, with a USB
token that stores key for SSL criptography.
I know that I 'll not have good performances, but I don't care.
what I did:
I have installed correctly PKCS#11 support library of my usb token on Linux
machine.
I have installed TOMCAT.
I would like to tell to TOMCAT to use my usb token for SSL cripto functions.
I know that with JSSE it's possible to use PKCS#11 tokens as JSSE keystores.
How can I tell to TOMCAT ?
thanks in advance
Lapo 


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


Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Robert r. Sanders
Try using the 'full' path - add the http:// before localhost:8080.  IE 
automatically adds it if the port is 80 or unspecified, otherwise it 
gets confused. 

Walter Lee wrote:
I have Tomcat installed on W2K and it says it is installed correctly. When I try the examples it tells me that I must be on line.  If I am using localhost:8080 why does it need to be on line?
 

--
   Robert r. Sanders
   Chief Technologist
   iPOV
   (334) 821-5412
   www.ipov.net
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 5.0.x and IIS 5

2005-04-06 Thread SARMIENTO Claudia COGA
Hi all:
Could you help me to found a connector and the instructions to make iis and
tomcat work together?, i'm looking into the jakarta web and only found this
page:
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.html
i don't know if there is a more recent document about this


Thanks!
Claudia

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



Re: How to read JNDI resources?

2005-04-06 Thread Andrew Watters
Thank you, I appreciate your reply. I didn't have a context entry so I 
added a minimal one (copied from the /examples one) before proceeding 
further as shown below.

   Context path=/xxx docBase=xxx debug=0 reloadable=true 
crossContext=true /

Unfortunately tomcat doesn't start now. I get a 'Document base 
C:\Development\Java\jakarta-tomcat-4.1.31\webapps\xxx does not exist or 
is not a readable directory'

So I added a direcory xxx. Now tomcat starts ok but it doesn't unpack 
the xxx.war. Again I'm probably making some very simple mistake but 
can't see the problem or an answer in the docs or by googling...


Mark Thomas wrote:
You need to include a ResourceLink element in your context.
Mark
Andrew Watters wrote:
Using tomcat 4.3.1 I have included the following in server.xml
GlobalNamingResources
   Environment name=config_file type=java.lang.String 
value=test/
 /GlobalNamingResources

In a servlet loaded on startup I try to read in the property
InitialContext ic = new InitialContext();
Context ctx = (Context) ic.lookup(java:comp/env);
String configFilename = (String)(ctx.lookup(config_file));
This code throws a NamingException. Where have I gone wrong?
Thanks
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


RE: How to read JNDI resources?

2005-04-06 Thread Vaneet Sharma

U need to read this page

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/deployment.html

Have fun reading

Vaneet

-Original Message-
From: Andrew Watters [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 6:14 PM
To: Tomcat Users List
Subject: Re: How to read JNDI resources?


Thank you, I appreciate your reply. I didn't have a context entry so I 
added a minimal one (copied from the /examples one) before proceeding 
further as shown below.

Context path=/xxx docBase=xxx debug=0 reloadable=true 
crossContext=true /

Unfortunately tomcat doesn't start now. I get a 'Document base 
C:\Development\Java\jakarta-tomcat-4.1.31\webapps\xxx does not exist or 
is not a readable directory'

So I added a direcory xxx. Now tomcat starts ok but it doesn't unpack 
the xxx.war. Again I'm probably making some very simple mistake but 
can't see the problem or an answer in the docs or by googling...




Mark Thomas wrote:

 You need to include a ResourceLink element in your context.

 Mark

 Andrew Watters wrote:

 Using tomcat 4.3.1 I have included the following in server.xml 
 GlobalNamingResources
Environment name=config_file type=java.lang.String
 value=test/
  /GlobalNamingResources

 In a servlet loaded on startup I try to read in the property 
 InitialContext ic = new InitialContext(); Context ctx = (Context) 
 ic.lookup(java:comp/env); String configFilename = 
 (String)(ctx.lookup(config_file));

 This code throws a NamingException. Where have I gone wrong?

 Thanks
 Andrew

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





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




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



Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET

Want a signature like this? - www.plaxo.com\signature

iwg is a global e-mobile company creating, building and growing new businesses. 
 iwg founders are pioneers in creating multi-billion dollar mobile and Internet 
businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt


Privileged/Confidential Information may be contained in this message.  If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message and kindly notify the 
sender by reply email.

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



RE: Tomcat + Apache Web Server

2005-04-06 Thread Mike Millson
On Wed, 2005-04-06 at 07:18, Pete Stevens wrote:
  Consider the following Apache modules:
  mod_headers
  mod_expire
  mod_deflate
 
  I've never seen a web application that wouldn't benefit from one or all
  of these modules. And the performance improvements would likely more
  than outweigh any overhead.
 
  If Tomcat provides any of the functionality of mod_headers, mod_expire,
  or mod_deflate, it's news to me. So, why reinvent the wheel (e.g. w/ a
  filter) when this functionality is available in Apache?
 
  I'm still unconvinced that running Apache in front of Tomcat isn't
  almost always a good thing. But I'm listening if someone can convince me
  otherwise.
 
 Configuring Tomcat is a challenge. Configuring Tomcat + mod_jk + apache is
 even more of a challenge (see the number of posts on this list alone!). The
 chance of you dropping a security screw-up into the more complicated setup is
 much higher than the simple set up.[*] Unless you really need the performance
 benefit of the above modules - and many many people don't - why go to the
 extra setup effort, and extra risk of making mistakes?
 
 
Every web application can benefit from compressing and caching static
resources. It decreases the number of connections your server must
handle. To not have caching, I think, is to ignore a best practice. Or
at the very least ignore the opportunity to improve the user experience
with faster response times. It's not that hard to integrate Apache w/
Tomcat, and I still benefits to this approach that standalone Tomcat
does not offer.

Mike
-- 
Merit Online Systems, Inc.
http://www.meritonlinesystems.com



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



RE: mod_jk2 connection

2005-04-06 Thread Jobish P

Hi ,

Thanks Owens. That was a nice article.

Howewer I encountered a problem while starting my apache server.
The error message was,

Syntax error on line 270 of /apache/conf/httpd.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
module not included in the server configuration

This repeats for other directives also,

 Eg :   JkLogFile logs/mod_jk.log
JkLogLevel info
JkMount /*.jsp loadbalancer
JkMount /servlet/* loadbalancer etc.

I wonder what I missed here. Any observations ?

Thanks in advance,
---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12



On Wed, 6 Apr 2005, David Owens wrote:

 Here's a good article:

 http://raibledesigns.com/tomcat/


 -Original Message-
 From: Jobish P [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 06, 2005 6:07 AM
 To: tomcat-user@jakarta.apache.org
 Subject: mod_jk2 connection


 Hi,

 Could any one guide me to connect apache to tomcat through mod_jk.
 I tried some documents but each differ from one another. I have to
 connect
 apache2, with tomcat 5.0.19 using modjk2.so.

 Thanks in advance,
 
 ---
 JOBISH P
 NCSI
 Indian Institute of Science
 Bangalore-12
 
 
 Get it down. Take chances. It may be bad, but it's the only way you can
 do anything really good. William Faulkner
 
 ---


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


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



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



Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Rhino
You are correct. I use Tomcat on XP via localhost:8080 all the time and it
works fine. I am using a DSL connection that is on all the time so I suppose
it is possible that Tomcat is using that somehow but I'd be surprised

Perhaps you should post the exact error message you are getting and some of
your configuration information so that people can figure out what is
*really* causing your problem.

Rhino

- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 11:44 AM
Subject: Can you use Tomcat when you are not on line?


I have Tomcat installed on W2K and it says it is installed correctly. When I
try the examples it tells me that I must be on line.  If I am using
localhost:8080 why does it need to be on line?






No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005


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



Re: mod_jk2 connection

2005-04-06 Thread Mladen Turk
David Owens wrote:
Here's a good article:
http://raibledesigns.com/tomcat/
Actually it has one error:
# list the workers by name
worker.list=tomcat1, tomcat2, loadbalancer
It should be:
worker.list=loadbalancer
See the:
http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html
balance_workers:
A comma separated list of workers that the load balancer need to manage.
This directive replaces old balanced_workers directive and can be used 
only with mod_jk versions 1.2.7 and up.

!These workers should not appear in the worker.list property!
Right now this is still allowed for backward compatibility, but in
future mod_jk released, this will be mandatory.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Custom 404 page when a webapp is stopped by the manager

2005-04-06 Thread Pascal Gauthier
Hi,

we have a tomcat webapp that needs to be down if we are doing a maintenance to 
the database. The manager seems to be the perfect solution to make the 
application unavailable but we found out that the 404 error-page cannot be 
customized.

Even if we modified the default web.xml (in conf/) to add the error-page 404,  
it doesn't seems to be resolved when the context is stopped.

If I type an URL that doesn't exists, that doesn't map to any context, I get 
the right error page. But if it match a context path of a webapp that is 
stopped, I have the Tomcat default error page. Is there a way to fix this?

Are we the only one trying to have a custom error page when the webapp is down? 

thanks in advance
pascal.



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



RE: mod_jk2 connection

2005-04-06 Thread David Owens
You should have something like this:

JkWorkersFile conf/workers.properties

Now, let me clarify that I am using mod_jk, not mod_jk2 (which is no
longer supported by the way).

-Original Message-
From: Jobish P [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 10:47 AM
To: Tomcat Users List
Subject: RE: mod_jk2 connection


Hi ,

Thanks Owens. That was a nice article.

Howewer I encountered a problem while starting my apache server.
The error message was,

Syntax error on line 270 of /apache/conf/httpd.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
module not included in the server configuration

This repeats for other directives also,

 Eg :   JkLogFile logs/mod_jk.log
JkLogLevel info
JkMount /*.jsp loadbalancer
JkMount /servlet/* loadbalancer etc.

I wonder what I missed here. Any observations ?

Thanks in advance,

---
JOBISH P
NCSI
Indian Institute of Science
Bangalore-12




On Wed, 6 Apr 2005, David Owens wrote:

 Here's a good article:

 http://raibledesigns.com/tomcat/


 -Original Message-
 From: Jobish P [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 06, 2005 6:07 AM
 To: tomcat-user@jakarta.apache.org
 Subject: mod_jk2 connection


 Hi,

 Could any one guide me to connect apache to tomcat through mod_jk.
 I tried some documents but each differ from one another. I have to
 connect
 apache2, with tomcat 5.0.19 using modjk2.so.

 Thanks in advance,


 ---
 JOBISH P
 NCSI
 Indian Institute of Science
 Bangalore-12


 
 Get it down. Take chances. It may be bad, but it's the only way you
can
 do anything really good. William Faulkner


 ---


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


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



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


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



Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Hein Behrens
It is more than likely you browser needs to be told localhost is local.

Go to a command line and ping localhost and see if it works
- Original Message - 
From: Rhino [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 6:42 PM
Subject: Re: Can you use Tomcat when you are not on line?


 You are correct. I use Tomcat on XP via localhost:8080 all the time and it
 works fine. I am using a DSL connection that is on all the time so I
suppose
 it is possible that Tomcat is using that somehow but I'd be surprised

 Perhaps you should post the exact error message you are getting and some
of
 your configuration information so that people can figure out what is
 *really* causing your problem.

 Rhino

 - Original Message - 
 From: Walter Lee [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Wednesday, April 06, 2005 11:44 AM
 Subject: Can you use Tomcat when you are not on line?


 I have Tomcat installed on W2K and it says it is installed correctly. When
I
 try the examples it tells me that I must be on line.  If I am using
 localhost:8080 why does it need to be on line?


 --
--
 


 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005



 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005


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



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



Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Parsons Technical Services
If the browser is set to always dial a connection, it doesn't matter what 
the address is. Even if it is a local file. About the only way it doesn't 
prompt is if you open a html file directly. And sometimes even then it will, 
especially if the sync files setting is turned up. Every time IE opens it 
wants to update the files.

Isn't IE wonderful.
Doug
- Original Message - 
From: Hein Behrens [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 1:28 PM
Subject: Re: Can you use Tomcat when you are not on line?


It is more than likely you browser needs to be told localhost is local.
Go to a command line and ping localhost and see if it works
- Original Message - 
From: Rhino [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 6:42 PM
Subject: Re: Can you use Tomcat when you are not on line?


You are correct. I use Tomcat on XP via localhost:8080 all the time and 
it
works fine. I am using a DSL connection that is on all the time so I
suppose
it is possible that Tomcat is using that somehow but I'd be surprised
Perhaps you should post the exact error message you are getting and some
of
your configuration information so that people can figure out what is
*really* causing your problem.
Rhino
- Original Message - 
From: Walter Lee [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 11:44 AM
Subject: Can you use Tomcat when you are not on line?

I have Tomcat installed on W2K and it says it is installed correctly. 
When
I
try the examples it tells me that I must be on line.  If I am using
localhost:8080 why does it need to be on line?
--
--

No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


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


Re: Host level JNDI Variable

2005-04-06 Thread Gurumoorthy
Hello,
Many thanks for your reply ... I have set the Global database
JNDI, No problem about this.

The way we deploy the code is just drop the .war files in the
webapps directory. ( The administrator does not allow us to change the
server.xml file )

So what I suggested is that I declare a JNDI variable for each
the virtual host ( one time change to server.xml )

So that when I add new .war files to the webapps directory  the
war files will get the common JNDI name for that virtual host and hence
corresponding database connection.

Hope that i am clear
Regards
Guru



- Original Message -
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 06, 2005 4:06 AM
Subject: Re: Host level JNDI Variable


 To use pooling provided by Tomcat, one way to do it is to set up four
 Globalresources in the server.xml

 Then from your apps call the one you want. You will need the resource link
 in the context for each app for the matching Globalresource.

 So set up four globals: dataDev, dataSit, dataUat and dataProd
 Place links in the context for apps in the DEV to dataDev
 for apps in SIT to dataSit and so on.

 Since the connections are established to the database and not the engine,
 each pool is dedicated to that database. So in effect you will be creating
a
 pool for each database and then connecting to the appropriate pool. And in
 order to create the pool the database must be specified, so it cannot be
 selected at any point later in the process.

 Doug


 - Original Message -
 From: Gurumoorthy [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] tomcat-user@jakarta.apache.org
 Sent: Tuesday, April 05, 2005 8:28 PM
 Subject: Host level JNDI Variable


 Hi,
 The senario

 I have 4 VIRTUAL HOST on tomcat dev / sit / uat / prod
 Based on host information i need to access different database
 instance
 jdbc:/DEV : for dev
 jdbc:/SIT : for sit
 and so on...
 Can anyone let me know how to set the JNDI variable at host level or
service
 level ?

 Many thanks
 Guru



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



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



Re: Tomcat + Apache Web Server

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 11:20 AM, Mike Millson [EMAIL PROTECTED] wrote:

 Every web application can benefit from compressing and caching static
 resources. It decreases the number of connections your server must
 handle. To not have caching, I think, is to ignore a best practice. Or
 at the very least ignore the opportunity to improve the user experience
 with faster response times. It's not that hard to integrate Apache w/
 Tomcat, and I still benefits to this approach that standalone Tomcat
 does not offer.

Well the Coyote connector for one definitely has compression available
and compresses content nicely, even dynamic content. I'm not sure of
the specifics of the caching mechanisms used internally to Tomcat but
it achieves caching nicely giving 304 not modified responses where
applicable and often the browser will cache the static content so a
request isn't even made.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

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



Re: java.library.path - DLL - Domino

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 3:33 PM, Durfee, Bernard [EMAIL PROTECTED] wrote:
 I am trying to use the native library for connecting to Domino from a
 servlet. I was under the impression that the DLL needed to be in the
 path specified by the java.library.path system property. However, this
 does not seem to work.

Try manually registering the DLL:

regsvr32 D:\Lotus\Domino\nlsxbe.dll

REgards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Premature EOF exception.

2005-04-06 Thread Josh Berry
I apologize if this is addressed elsewhere, I have been unable to find
any answers, though.  Hopefully, I am just investigating the wrong
question.

We are currently running some applications that hit a web application
being served by Tomcat and under heavy load we are receiving a
Premature EOF in responses from the server.  It is as if the server
just gives up on the socket under heavy use.  I have found that
changing to a 4.x version of Tomcat instead of a 5.x will cause the
problem to go away.  Unfortunately, I do not know if we can enforce
this in all environments our application will be run in.

If there is any other information I need to supply, please let me
know.  Thanks for any help,

-
Josh Berry

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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
No dice. It just seems that a call to System.loadLibrary() is not using
the 'java.library.path', otherwise how could it possibly not see the
DLL?

Bernard Durfee


-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 4:43 PM
To: Tomcat Users List
Subject: Re: java.library.path - DLL - Domino


On Apr 6, 2005 3:33 PM, Durfee, Bernard [EMAIL PROTECTED] wrote:
 I am trying to use the native library for connecting to Domino from a 
 servlet. I was under the impression that the DLL needed to be in the 
 path specified by the java.library.path system property. However, this

 does not seem to work.

Try manually registering the DLL:

regsvr32 D:\Lotus\Domino\nlsxbe.dll

REgards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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


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



Re: java.library.path - DLL - Domino

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 3:53 PM, Durfee, Bernard [EMAIL PROTECTED] wrote:
 No dice. It just seems that a call to System.loadLibrary() is not using
 the 'java.library.path', otherwise how could it possibly not see the
 DLL?
 
 Bernard Durfee

Next try adding the Domino's executable directory to the system PATH,
the problem is likely down further in the stack trace and not related
to the Java side of things.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



[Slightly OT] Catalina Policy and log4j

2005-04-06 Thread Robert Bateman
I'm transitioning a web site from 4.x over to 5.5.7.  Everything is
going well *except* for logging (a sore subject for me.)

I've created a small log4j.properties file and placed it in
${catalina.home}/common/classes.  The file contains:

#log4j.properties
log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
#
log4j.logger.org.apache.catalina=DEBUG, R
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG,
 R
log4j.logger.org.apache.catalina.core=DEBUG, R
log4j.logger.org.apache.catalina.session=DEBUG, R

I took all of the above *straight* from the documentation...  I placed
the commons-logging.jar (NOT the api.jar file) and log4j-1.2.9.jar into
${catalina.home}/common/lib.  Again - per the *excellent* documentation.


When I load TC with -Dlog4j.debug=true, log4j tells me it's finding a
log4j.properties file in the axis-ant.jar file in my CLASSPATH - NOT
perfect, but something...  When I load TC with -Dlog4j.debug=true AND
specify -security to cause Tomcat to use conf/catalina.policy - log4j no
longer locates a log4j.properties file.

*Knowing* that I *must* insure I give TC permission to locate and read
the log4j.properties file, I added the following line to catalina.policy

grant {
  permission java.io.FilePermission
file:${catalina.home}/common/classes/log4j.properties, read;
}

Reloading TC with -Dlog4j.debug=true produces:

log4j: Trying to find [log4j.xml] using context classloader
[EMAIL PROTECTED]
log4j: Trying to find [log4j.xml] using
[EMAIL PROTECTED] class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader
[EMAIL PROTECTED]
log4j: Trying to find [log4j.properties] using
[EMAIL PROTECTED] class loader.
log4j: Trying to find [log4j.properties] using
ClassLoader.getSystemResource().
log4j: Could not find resource: [null].


According to the log entries, TC can't see my properties file!  Any one
have a clue what I'm doing wrong???


Bob


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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Jay Burgess
Have you tried putting it into your system path via the PATH environment
variable?  (If you're running Tomcat as a service, you'll need to reboot to have
it take effect I think.)

If it's there, what happens if you run rundll32 nlsxbe SomeDummyEntryPoint? 
it should find the DLL, but complain about the invalid entry point.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 3:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

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






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



RE: jndi.properties file and classpath

2005-04-06 Thread Eric J Kaplan
Perhaps this was missed the first time. I think the answer should be fairly
simple. How do I get my servlet to pull in my jndi.properties file, which
right now is in the WEB-INF/classes directory, instead of whatever one it
seems to be pulling in that is directing it to tomcat?

Regards

Eric

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 11:18 AM
To: 'Tomcat Users List'
Subject: jndi.properties file and classpath

We are using tomcat 5.0.28 and our servlet needs to load jndi.properties
from a jndi.properties file in our WEB-INF/classes directory but it seems to
be getting it from elsewhere and so our servlet, which needs to call a bean
on a separate application server instance (in this case jboss) fails because
its jndi context it pointing it at, I assume, the jndi instance running in
tomcat. I even tried appending this classes directory to the front of the
classpath when starting within the script (shiver) but that didn't work.
What do I need to do?

 

Regards

 

Eric 

 



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



[Slightly OT] CLASSPATH variable in catalina.sh

2005-04-06 Thread Robert Bateman
While debugging a log4j problem this afternoon... I happened to attempt
to rearrange the contents of my CLASSPATH on my Fedora Core 2 machine in
order to insure a correct log4j.properties file is being loaded by TC.

To insure the proper file is loaded, I placed
${catalina.home}/common/classes/log4j.properties as the *first* entry in
the CLASSPATH that catalina.sh passes into the bootstrap process. 
Looking at 'ps -aef | grep java' I see my properties file listed first
in the classpath.

HOWEVER, it appears that classloader sun.misc.Launcher$AppClassLoader in
Java 1.4.2_05 doesn't honor the -classpath in it's entirety - as
1.4.2_05 *never* loads the log4j.properties file that's in the
classpath.  Instead - it decides to load the log4j.properties file that
is contained in the axis-ant.jar file.

Am I crazy  Or did I do something wrong???

Bob


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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
Yes, I started by making sure that the DLL was in the Windows system
path. I also tried running the DLL as you suggested and it did indeed
find the DLL and complain about the bad entry point. I believe that
Tomcat supplies a special class loader to each web application. I also
believe that the class loader is expected to find libraries and such. So
the question is, where do I put my DLL so that the web application class
loader can find it? Apparently the answer is not java.library.path,
unless there is a bug in Tomcat preventing it from properly parsing the
path.

Bernard Durfee


-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 5:01 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: java.library.path - DLL - Domino


Have you tried putting it into your system path via the PATH environment
variable?  (If you're running Tomcat as a service, you'll need to reboot
to have it take effect I think.)

If it's there, what happens if you run rundll32 nlsxbe
SomeDummyEntryPoint? 
it should find the DLL, but complain about the invalid entry point.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 3:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

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






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


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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Jay Burgess
Having just done something similar with a different app's DLL and seen the same
error, all I had to do was make sure the DLL was in my system PATH (and reboot
as I had Tomcat running as a service).  Sorry I don't have another idea.

Jay
Vertical Technology Group
http://www.vtgroup.com/


-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 4:18 PM
To: Tomcat Users List
Subject: RE: java.library.path - DLL - Domino

Yes, I started by making sure that the DLL was in the Windows system
path. I also tried running the DLL as you suggested and it did indeed
find the DLL and complain about the bad entry point. I believe that
Tomcat supplies a special class loader to each web application. I also
believe that the class loader is expected to find libraries and such. So
the question is, where do I put my DLL so that the web application class
loader can find it? Apparently the answer is not java.library.path,
unless there is a bug in Tomcat preventing it from properly parsing the
path.

Bernard Durfee


-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 5:01 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: java.library.path - DLL - Domino


Have you tried putting it into your system path via the PATH environment
variable?  (If you're running Tomcat as a service, you'll need to reboot
to have it take effect I think.)

If it's there, what happens if you run rundll32 nlsxbe
SomeDummyEntryPoint? 
it should find the DLL, but complain about the invalid entry point.

Jay
Vertical Technology Group
http://www.vtgroup.com/
 

-Original Message-
From: Durfee, Bernard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 3:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

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



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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
The DLL was found when I put it in the C:\JavaTools\JRE1.5.0\bin which
is in the sun.boot.library.path. Looking through the code in
ClassLoader.java, it should search the paths in java.library.path
after it searches sun.boot.library.path. ClassLoader parses
java.library.path once at the first call to loadLibrary...

usr_paths = initializePath(java.library.path);

...so why is it not finding the DLL on that path? The only possible
reason would have something to do with Tomcat or Java security
interfering, but I can find no evidence of this.

Bernard Durfee


-Original Message-
From: Durfee, Bernard 
Sent: Wednesday, April 06, 2005 4:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino


I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

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


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



RE: java.library.path - DLL - Domino

2005-04-06 Thread Durfee, Bernard
Problem solved, I restarted Eclipse, waved my hands a couple times and
presto, the DLL is found no problem. The wonders of Java on Windows.
Although it would be great if someone could explain how with a DLL in a
path in the java.library.path could not be found.

Bernard Durfee


-Original Message-
From: Durfee, Bernard 
Sent: Wednesday, April 06, 2005 4:34 PM
To: Tomcat Users List
Subject: java.library.path - DLL - Domino


I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However, this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

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


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



Authenticated user home folders with WebDAV

2005-04-06 Thread Martin Lidgard
Hello.
 
I would like to achieve the following using Tomcat 4.1:
 
1. use a JDBCRealm to access a mysql database containing users, passwords,
and roles
2. grant WebDAV access to authenticated users, allowing them to access and
upload files to personal home directories
3. personal directories should be grouped by role: ie.  user charlie with
role sitemember has WebDAV access to
$CATALINA_HOME/webapps/myapp/data/sitemember/charlie
4. directories should be created when the user first accesses the WebDAV
account, and if there is no directory for the role, it should be created too
5. it should be possible to limit the amount of space granted to each user
on a role or context basis
6. the personal home directories should be accessible using WebDAV as
http://upload.mydomain.com, automatically returning content for the correct
personal directory depending on authenticated username.
 
How much of this is possible to achieve through smart configuration schemes?
Does anyone know of tools that could do some of the work?
I haven't found any indications that personal home directories have been
used in a Tomcat standalone configuration -- anyone?
 
Thanks,
 
Martin
 
Arkatay Consulting
www.arkatay.com




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



Apache 2.0.53 + Tomcat 5.5.7 + mod_jk 1.2.10 on GNU/Linux

2005-04-06 Thread jesper
I made a brief how-to on SUBJECT.
hope somebody finds use of it
regards.

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



Re: Apache 2.0.53 + Tomcat 5.5.7 + mod_jk 1.2.10 on GNU/Linux

2005-04-06 Thread jesper
Torsdag den 7. april 2005 01:36 skrev jesper:
 I made a brief how-to on SUBJECT.
I guess an url would be usefull to
http://zvf.dk/how-to/index.html

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



Struts, Tomcat 5.0, JBuilder JPetstore

2005-04-06 Thread Folashade Adeyosoye
Was wondering if anyone has successfully loaded JPetStore Demo into
JBuilder 2005. After trying and compiling not all the classes were
compiled



Struts
JBuilder
JDK 1.5
Tomcat 5
iBatis DAO
iBatis SQLMapper

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



Re: ANN: scalable clustered session manager

2005-04-06 Thread Gmail User
I hope I did not miss any relevant communication regarding this thead. I
was wondering though if your code could be used for Tomcat 4.1.30 (I am
not quite ready to move my stuff to 5.x).

Thanks,

Ed

On Tue, 2005-02-22 at 00:59 -0800, Rob Block wrote:
 Tomcat users,
 
 I have created a plugin for Tomcat 5 that provides scalable session
 clustering by replicating each session to a single node rather than
 the whole cluster.  For large-cluster deployments (the primary target
 audience of this work), the resource savings for both bandwidth and
 per-node memory usage can be dramatic compared to the current full
 replication scheme.
 
 The tomcat plugin is hosted at
 https://sourceforge.net/projects/tomcat-jg (formerly home to the
 full-replication jgroups-based session manager that is now integrated
 into Tomcat 5).  The initial (alpha quality) release of the plugin is
 available to users and developers now and is under active
 development. 
 
 To download the plugin: go to tomcat-jg site (above) and select
 tomcat-jcluster package under File Releases.  It contains three jar
 files, plus release notes for setting it up:
 
  - catalina-ha.jar  the tomcat plugin 
  - jcluster.jar  jcluster API 
  - jcluster-plugin.jar  jgroups impl of jcluster 
 
 The plugin uses the jcluster API (http://jcluster.dev.java.net) for
 communication, membership and failover.  Jcluster is a BSD-licensed
 set of APIs that specifies group communication functionality similar
 to jgroups.  Jgroups is currently required as a separate download as
 it is the only jcluster impl.  However, this is only temporary as I
 am working on a port to use Tomcat's internal communication classes. 
 The jcluster javadoc is online at
 https://jcluster.dev.java.net/nonav/javadoc/index.html.
 
 The tomcat plugin source is viewable at:
 http://cvs.sourceforge.net/viewcvs.py/tomcat-jg/tomcat-javagroups/src/org/apache/catalina/cluster/session/
 
 I would appreciate feedback about the usefulness of this project, in
 particular, how many of you are deploying Tomcat in large cluster
 configurations where current scalability limitations are a concern.
 
 Please address any questions to me at [EMAIL PROTECTED]
 
 Regards,
 Rob
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Tomcat scalability

2005-04-06 Thread Shrikant Navelkar
Hi,
We are planning to deploy an application (JSP/Tomcat/Oracle) for 300-400 
concurrent users.  The hardware is HP/True UNIX platform and it is very 
powerful.  Unfortunately we can not deploy the application in a phased 
wise manner.

Can somebody help us to understand :
1.  How scalable Tomcat is ? Are there sufficient examples of Tomcat for 
300 + users ?
1.  What are the tools available for scalability testing ?
2.  Any document  describing performance tuning of Tomcat server
3.  Can we implement multiple tomcat instances on same server for better 
performance ?

Thanks in advance
Shrikant

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


Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Nikola Milutinovic
Vaneet Sharma wrote:
:)
Well to test to examples, it connects to internet ( may be)
 

The problem is in IE. If you're offline, it is also offline. And IE 
cannot connect to a server (any server) if it is offline. Just go to 
file menu and place it online, no need to connect. Or use Mozilla (I 
just love that HTML validator in Mozilla, it rocks - look for Tidy HTML 
validator for Mozilla).

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


Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Walter Lee
Thanks for responding. I always use the complete path, I just forgot to put it 
in my posting.
Wally
  - Original Message - 
  From: Robert r. Sandersmailto:[EMAIL PROTECTED] 
  To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org 
  Sent: Wednesday, April 06, 2005 12:04 PM
  Subject: Re: Can you use Tomcat when you are not on line?


  Try using the 'full' path - add the http:// before localhost:8080.  IE 
  automatically adds it if the port is 80 or unspecified, otherwise it 
  gets confused. 

  Walter Lee wrote:

  I have Tomcat installed on W2K and it says it is installed correctly. When I 
try the examples it tells me that I must be on line.  If I am using 
localhost:8080 why does it need to be on line?

  

  -- 
  Robert r. Sanders
  Chief Technologist
  iPOV
  (334) 821-5412
  www.ipov.nethttp://www.ipov.net/


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



Re: Can you use Tomcat when you are not on line?

2005-04-06 Thread Walter Lee
Thanks for responding. I tried the ping test and it works when I am off line. I 
will keep searching.
Wally
  - Original Message - 
  From: Hein Behrensmailto:[EMAIL PROTECTED] 
  To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org 
  Sent: Wednesday, April 06, 2005 1:28 PM
  Subject: Re: Can you use Tomcat when you are not on line?


  It is more than likely you browser needs to be told localhost is local.

  Go to a command line and ping localhost and see if it works
  - Original Message - 
  From: Rhino [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  To: Tomcat Users List 
tomcat-user@jakarta.apache.orgmailto:tomcat-user@jakarta.apache.org
  Sent: Wednesday, April 06, 2005 6:42 PM
  Subject: Re: Can you use Tomcat when you are not on line?


   You are correct. I use Tomcat on XP via localhost:8080 all the time and it
   works fine. I am using a DSL connection that is on all the time so I
  suppose
   it is possible that Tomcat is using that somehow but I'd be surprised
  
   Perhaps you should post the exact error message you are getting and some
  of
   your configuration information so that people can figure out what is
   *really* causing your problem.
  
   Rhino
  
   - Original Message - 
   From: Walter Lee [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   To: tomcat-user@jakarta.apache.orgmailto:tomcat-user@jakarta.apache.org
   Sent: Wednesday, April 06, 2005 11:44 AM
   Subject: Can you use Tomcat when you are not on line?
  
  
   I have Tomcat installed on W2K and it says it is installed correctly. When
  I
   try the examples it tells me that I must be on line.  If I am using
   localhost:8080 why does it need to be on line?
  
  
   --
  --
   
  
  
   No virus found in this incoming message.
   Checked by AVG Anti-Virus.
   Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005
  
  
  
   -- 
   No virus found in this outgoing message.
   Checked by AVG Anti-Virus.
   Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 05/04/2005
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  
  

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