Re: Newbie problem with JSP contexts virtual hosts

2004-04-13 Thread James Bucanek
While I didn't get any suggestions or feedback on my original question, I believe I've 
found a solution.  Now I just need to run it by the group to see if it's Kosher.

James Bucanek wrote on Sunday, April 11, 2004:
  !-- Virtual host: www.hotelmidnight.net --
  !-- (jlb 11-April-2004) Added virtual host --
  Host name=www.hotelmidnight.net debug=0 appBase=/Users/darkthirty/Sites
unpackWARs=false autoDeploy=true

!-- Context for the top-level web application --
Context path= docBase=. debug=99 reloadable=true/

  /Host

clip

web-app
display-namedarkthirty/display-name
descriptiondarkthirty.net artwork application/description

!-- Global parameters for this web application --
context-param
param-nametest/param-name
param-valueSome Value/param-value
/context-param
/web-app

The basic problem with this arrangement is that my JSP pages ran in the context of the 
'jsp' servlet that's defined in ${CATALINA_HOME}/conf/web.xml for the default 
Host, not the Context that I defined in my web-app that I want to run in my virtual 
Host.

So, it occurred to me that I could create may own instance of the JSP engine as my 
Servlet.  Now that I have a Servlet to reference, I can then map all of the *.jsp 
files in my virtual host to that:

web-app
display-namedarkthirty/display-name
descriptiondarkthirty.net artwork application/description

!-- Global parameters available to all web applications --
context-param
param-nametest/param-name
param-valueSome Value/param-value
/context-param

servlet
servlet-namejsp2/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namelogVerbosityLevel/param-name
param-valueINFORMATION/param-value
/init-param
/servlet

!-- The mapping for the JSP servlet --
servlet-mapping
servlet-namejsp2/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping

/web-app

This seems to work just great.  The Manager sees my application (by name), and all of 
the context parameters appear in my JSP pages.

As far as I can tell, there doesn't seem to be anything really bad about this 
solution.  Except that I end up with a new instance of the JspServlet for each virtual 
host, which is probably a tolerable amount of overhead.

My question is this: Is this the right way to accomplish this?

__
James Bucanek   mailto:[EMAIL PROTECTED]

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



RE: JNDI and DataSource

2004-04-13 Thread Freddy Villalba Arias
Yeap, Daniel. It's there.

As I mentioned, I performed the very same test I'm doing right now, but
without DataSource and it works.

Now that you mention it, I read in some place that it was necessary to
remove the java.sql.* package from the jdbc jar file. I don't know if
that is true and, if so, why would that be necessary? Could that have
something to do with this problem? (it would be something very odd since
it would be affecting exclusively the behaviour of the DataSource,
according to what I stated on the previous paragraph.

Regards,
Freddy.



-Mensaje original-
De: Daniel Huang [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de abril de 2004 20:57
Para: Tomcat Users List
Asunto: RE: JNDI and DataSource

Where did you put your db driver jar file? You want to put it under
$CATILINA/common/lib.

Regards,
Daniel

-Original Message-
From: Freddy Villalba Arias [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 10:19 AM
To: Tomcat Users List
Subject: RE: JNDI and DataSource

Tested it. Same result... same problem.

A side comment: the positive part of the other config file (the one I
had originally) was that you could trace how Tomcat loaded the
Resources. Then, you could see how the tags actually got processed
(read) correctly. But then, something happens when the factory builds
the DataSource object.

Regards,
Freddy.

-Mensaje original-
De: Guy Pardon [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 12 de abril de 2004 19:02
Para: Tomcat Users List
Asunto: Re: JNDI and DataSource


Hi,

The fact that you get 'No suitable driver' could also mean that the
chosen properties are incompatible (as opposed to not set).

Just a guess: did you try to specify the user and password as part of
the URL? (jdbc:oracle:thin:user/[EMAIL PROTECTED])
That's the way I usually connect to oracle.

You never know, maybe that's it...

HTH,

Guy

http://www.atomikos.com - Our JTA for your transactions

On maandag, apr 12, 2004, at 18:35 Europe/Brussels, Freddy Villalba
Arias wrote:

image.tiff





 Hi Sandy,



 Thanks, it certainly looked better than mine. I appreciate it.
 However, the problem persists...



 Any other suggestion? (I'll keep looking at it, too... obviously)





 -Mensaje original-
 De: Sandy McArthur [mailto:[EMAIL PROTECTED]
 Enviado el: lunes, 12de abril de 2004 18:29
 Para: Tomcat Users List
 Asunto: Re: JNDI and DataSource



 This shouldn't be all that different, but this is the server.xml I'd

 use on my setup.



 ?xml version=1.0 encoding=UTF-8?



 Server debug=5 port=8081 shutdown=SHUTDOWN

GlobalNamingResources



Resource name=jdbc/cnid scope=Shareable

 type=javax.sql.DataSource cached=false/



ResourceParams name=jdbc/cnid

  parameter

namefactory/name



 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

  /parameter



  parameter

namedriverClassName/name

valueoracle.jdbc.driver.OracleDriver/value

  /parameter



  parameter

nameurl/name



 valuejdbc:oracle:thin:@BMSRVORACLE:1521:BMSRVMS/value

  /parameter



  parameter

nameusername/name

valueSGC_CNID/value

  /parameter



  parameter

namepassword/name

value/value

  /parameter



  parameter

namedriverClassName/name

valueoracle.jdbc.driver.OracleDriver/value

  /parameter



  parameter

namemaxActive/name

value20/value

  /parameter



  parameter

namemaxIdle/name

value10/value

  /parameter



  parameter

namemaxWait/name

value-1/value

  /parameter



/ResourceParams

/GlobalNamingResources





Service name=Tomcat-Standalone



  Connector acceptCount=10

 className=org.apache.coyote.tomcat4.CoyoteConnector

 connectionTimeout=6 debug=0 maxProcessors=75
 minProcessors=5

 port=8080/



  Engine debug=5 defaultHost=localhost name=Standalone



Host


appBase=C:\Usuarios\fvillalba\project\SGC\SGC_CNID\FUENTES\java\Acceso

 a datos\Tomcat\webapps debug=5 name=localhost unpackWARs=true



  DefaultContext

 ResourceLink name=jdbc/cnid

 global=jdbc/cnid

 type=javax.sql.DataSource/

  /DefaultContext



  Context path=wa docBase=..\..\Testing debug=5

 reloadable=true

  /Context



  Context path= docBase=..\..\Testing debug=5

 reloadable=true

  /Context




Followup jk2 + apache vhosts + tomcat sessions

2004-04-13 Thread Jens Saade
Hi,

I already sent an email named jk2 + apache vhosts + tomcat sessions 
but no response yet. Maybe I didn't describe my problem clearly enough 
so here is another go:

I've got an apache http 1.3.x running in front with multiple vhosts. 
Some of those vhosts are redirected to a single tomcat 5 instance via 
jk2 connector. I use these vhosts as entry points to the application 
running inside the tomcat server. They should share tomcats http 
session. Atm each vhost opens a new session for e.g. vhost 1-3. Is it 
possible to make them somehow share the same tomcat http session? Or is 
there a better way to achieve what I want?

 apache http
with   
  |
 +-+--+---+-+
vhost1vhost2 vhost3 vhost4vhost5
 | |  |   | |
 jk2   jk2   jk2 phpsimple html
 | |  |
single .. tomcat .. instance
with application

Cheers,
Jens


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


Re: Followup jk2 + apache vhosts + tomcat sessions

2004-04-13 Thread Nikola Milutinovic
Jens Saade wrote:

Hi,

I already sent an email named jk2 + apache vhosts + tomcat sessions 
but no response yet. Maybe I didn't describe my problem clearly enough 
so here is another go:

I've got an apache http 1.3.x running in front with multiple vhosts. 
Some of those vhosts are redirected to a single tomcat 5 instance via 
jk2 connector. I use these vhosts as entry points to the application 
running inside the tomcat server. They should share tomcats http 
session. Atm each vhost opens a new session for e.g. vhost 1-3. Is it 
possible to make them somehow share the same tomcat http session? Or is 
there a better way to achieve what I want?

 apache http
with |
 +-+--+---+-+
vhost1vhost2 vhost3 vhost4vhost5
 | |  |   | |
 jk2   jk2   jk2 phpsimple html
 | |  |
single .. tomcat .. instance
with application
All those Tomcat web-apps (contexts) should/must be on matching VHosts (see 
Host ... tag for server.xml). There is no way to share a session between 
different contexts, unless you wish to implement something external.

Nix.

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


Tomcat 5 : Connection Pool to Access database

2004-04-13 Thread Francesco Pellegrini
Hi All,

I'm working on Tomcat 5.0.18 web server with Access 2000 database on Windows
2000 server environment.

At the moment I use simple connection to database by direct calling in the
Java code like:

Connection Con=DriverManager.getConnection(jdbc:odbc:MyDatabase);

where MyDatabase is the ODBC source.

I'would like to configure a connection pool instead of direct connection,
but after I did this changes in server.xml :



**

 GlobalNamingResources


Resource name=jdbc/myoracle auth=CONTAINER
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myoracle
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory
/value
  /parameter
  parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
 /parameter
   parameter
nameurl/name
valuejdbc:odbc:MyDatabase/value
  /parameter
 /ResourceParams

  /GlobalNamingResources





**


and this changes in web.xml of my web application :


**
resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

**

I got on this error :

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:743)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)


Could someone help me?

Thanks

Franz.


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



Re: Request parameters getting lost

2004-04-13 Thread David Rees
Frank W. Zammetti wrote, On 4/12/2004 4:50 PM:
So, my question is twofold... One, has anyone ever seen such an issue as
missing parameters before, and if so, what information can you share with me
about it?  Two, am I off my rocker to think that connector config is way out
of wack, and assuming it is, what suggestions would you guys have to fix it,
given the approximate load I've stated here?
Let me guess, you're using SSL, have keep-alive enabled, and are using 
MSIE with all the latest patches.  Right?

Turns out a patch released by MS around Feb 4 (KB832894) which causes 
MSIE to lose request parameters if the KeepAlive session expires, in 
other words, when the server drops the connection.

The fix is to either tell your users to use a different browser (like 
Mozilla) or to disable KeepAlive under SSL for all MSIE browsers.

See 
http://www.icdevgroup.org/pipermail/interchange-users/2004-February/037840.html

-Dave

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


FOUND VIRUS IN MAIL from tomcat-user@jakarta.apache.org to almamons@nspoint.net

2004-04-13 Thread virusalert

   V I R U S  A L E R T

  Our viruschecker found a VIRUS in your email to [EMAIL PROTECTED].
   We stopped delivery of this email!

Now it is on you to check your system for viruses   

In file:
/usr/local/mav/basedir/i3D7w9mh016956/i3D7w9mh016956
Found the W32/Netsky.s.eml!exe virus !!!
/usr/local/mav/basedir/i3D7w9mh016956/order6.pif
Found the W32/[EMAIL PROTECTED] virus !!!


For your reference, here are the headers from your email:

- BEGIN HEADERS -
Received: from [212.200.88.30]
  by pluton.nspoint.net [195.252.123.15] with SMTP id i3D7w9mh016956;
  Tue Apr 13 09:58:15 2004 +0200
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Approved
Date: Tue, 13 Apr 2004 09:58:13 +0200
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_0016=_NextPart_000_0016
X-Priority: 3
X-MSMail-Priority: Normal
-- END HEADERS --

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



RE: Tomcat 5 : Connection Pool to Access database

2004-04-13 Thread Freddy Villalba Arias
Hi Franz,

I'm experiencing EXACTLY the same problem, but in Tomcat 4.1 (running
from a Jbuilder X). HAVEN't solved it yet. However, I've received some
valid feedback that may prove to be effective for you.

Let me know of any adavances you make in this regard.

Jee... it's good to know I'm not the only one with this bizarre problem!

Regards,
Freddy.

-Mensaje original-
De: Francesco Pellegrini [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 13 de abril de 2004 9:28
Para: Tomcat-User-ML
Asunto: Tomcat 5 : Connection Pool to Access database 
Importancia: Alta

Hi All,

I'm working on Tomcat 5.0.18 web server with Access 2000 database on
Windows
2000 server environment.

At the moment I use simple connection to database by direct calling in
the
Java code like:

Connection Con=DriverManager.getConnection(jdbc:odbc:MyDatabase);

where MyDatabase is the ODBC source.

I'would like to configure a connection pool instead of direct
connection,
but after I did this changes in server.xml :




**

 GlobalNamingResources


Resource name=jdbc/myoracle auth=CONTAINER
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myoracle
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory
/value
  /parameter
  parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
 /parameter
   parameter
nameurl/name
valuejdbc:odbc:MyDatabase/value
  /parameter
 /ResourceParams

  /GlobalNamingResources






**


and this changes in web.xml of my web application :



**
resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref


**

I got on this error :

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.jav
a:743)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:5
18)


Could someone help me?

Thanks

Franz.


-
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 5 : Connection Pool to Access database

2004-04-13 Thread Freddy Villalba Arias
BTW, the topic is JNDI and DataSource and I'm trying to connect to an
Oracle DB.  :)

Freddy.

-Mensaje original-
De: Francesco Pellegrini [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 13 de abril de 2004 9:28
Para: Tomcat-User-ML
Asunto: Tomcat 5 : Connection Pool to Access database 
Importancia: Alta

Hi All,

I'm working on Tomcat 5.0.18 web server with Access 2000 database on
Windows
2000 server environment.

At the moment I use simple connection to database by direct calling in
the
Java code like:

Connection Con=DriverManager.getConnection(jdbc:odbc:MyDatabase);

where MyDatabase is the ODBC source.

I'would like to configure a connection pool instead of direct
connection,
but after I did this changes in server.xml :




**

 GlobalNamingResources


Resource name=jdbc/myoracle auth=CONTAINER
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myoracle
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory
/value
  /parameter
  parameter
namedriverClassName/name
valuesun.jdbc.odbc.JdbcOdbcDriver/value
 /parameter
   parameter
nameurl/name
valuejdbc:odbc:MyDatabase/value
  /parameter
 /ResourceParams

  /GlobalNamingResources






**


and this changes in web.xml of my web application :



**
resource-ref
descriptionOracle Datasource example/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref


**

I got on this error :

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.jav
a:743)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:5
18)


Could someone help me?

Thanks

Franz.


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



Hi!

2004-04-13 Thread tomcat-user


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Oh my God

2004-04-13 Thread tomcat-user


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Virtual Host, Locations and Mod_JK2

2004-04-13 Thread Alexander F. Hartner
I host several websites on my apache2 (2.0.49) using virtual hosts. One 
of the hosts I would like to forward fully to a web application 
deployed on tomat via Mod_JK. What I have done is the following:

Installed the webapplication in tomcat's root / context

Configured a worker in workers2.properties

Configured a virutal host on apache2

VirtualHost 196.22.194.227
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/www/solms.co.za/
ServerName www.solms.co.za
ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
*.solmstraining.co.za
ErrorLog logs/solms.co.za-error_log
CustomLog logs/solms.co.za-access_log combined
Location /
  JkUriSet worker ajp13:localhost:28009
/Location
/VirtualHost

Everything is working, except the Location directive spans all my other 
virtual hosts as well. A request to any of the virtual hosts is 
redirected to /index.jsp, which I guess comes from my web application's 
deployment descriptor. Direct requests to otherhost.com/index.html are 
still processed by apache correctly, but general request to 
otherhost.com are redirected to otherhost.com/index.jsp.

Ugly solution:
What I have done in the mean time is to either
-create index.jsp files which are typically copies of the index.html
-modify the webapplication to redirect to index.html
I should not have to do this as the location should only work for the 
virtual host in which it is configured.

Any suggestions welcome

Alex

Hi, it's me

2004-04-13 Thread tomcat-user


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Logout-Problem

2004-04-13 Thread marc . baumgartner




Hello All,

I have got 2 machines (Tomcat 5.0  Apache 2.0) connected with mod_jk2.

In our application the user has to log in. When he wants to log out in a
servlet I call session.invalidate() to kill the session and redirects to
the login page. The session is definitly not existing anymore, but the user
can't login until a timeout.

When I disable cookies on the client, everything works fine. So it seems
that there is any information in the cookie that is not totally removed.

Any suggestions?

Thanks  Regards

Marc


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



Re: Followup jk2 + apache vhosts + tomcat sessions

2004-04-13 Thread Jens Saade
Thank Nicola.
The context you mentioned would be just the single context of one 
application which the all vhosts1-3 refer to. I don't need to share 
session betweeb different application contexts though. So if I 
understand correctly I just need to match my vhosts on the apache httpd 
with the tomcat vhosts? Or do they still not share the same tomcat 
http session on this single application?

Jens

Nikola Milutinovic wrote:

Jens Saade wrote:

Hi,

I already sent an email named jk2 + apache vhosts + tomcat sessions 
but no response yet. Maybe I didn't describe my problem clearly 
enough so here is another go:

I've got an apache http 1.3.x running in front with multiple vhosts. 
Some of those vhosts are redirected to a single tomcat 5 instance via 
jk2 connector. I use these vhosts as entry points to the 
application running inside the tomcat server. They should share 
tomcats http session. Atm each vhost opens a new session for e.g. 
vhost 1-3. Is it possible to make them somehow share the same tomcat 
http session? Or is there a better way to achieve what I want?

 apache http
with |
 +-+--+---+-+
vhost1vhost2 vhost3 vhost4vhost5
 | |  |   | |
 jk2   jk2   jk2 phpsimple html
 | |  |
single .. tomcat .. instance
with application


All those Tomcat web-apps (contexts) should/must be on matching VHosts 
(see Host ... tag for server.xml). There is no way to share a 
session between different contexts, unless you wish to implement 
something external.

Nix.

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


--
PIRONET NDH AG
Jens Saade - Application Developer - Business Center Industry
Maarweg 149-161, 50825 Cologne - Germany
Phone: +49 (0)221-770-1794 - Fax: +49 (0)221-770 1005
Mail to: [EMAIL PROTECTED] - http://www.pironet-ndh.com 



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


Re: Logout-Problem

2004-04-13 Thread Paul Mansfield
On Tue, 2004-04-13 at 09:54, [EMAIL PROTECTED] wrote:
 In our application the user has to log in. When he wants to log out in a
 servlet I call session.invalidate() to kill the session and redirects to
 the login page. The session is definitly not existing anymore, but the user
 can't login until a timeout.
 
 When I disable cookies on the client, everything works fine. So it seems
 that there is any information in the cookie that is not totally removed.

I presume you're using forms/session authentication.

do you have any local session data which you can set to null?
do you create a cookie yourself on the client, whose timeout you can set
to 1 second and thus force it to expire?

if you're using opera, there's bugs in its cookie handling, especially
when you set the privacy to a high level.

Paul


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



Re: Tomcat for FreeBSD

2004-04-13 Thread Ronald Klop
If you have installed the FreeBSD ports collection (which you probably have), than do this:

cd /usr/ports/www/jakarta-tomcat5
make
make install
make clean
The 'make' command wil show some settings, which may be readable depending on how fast your computer scrolls text.

Greetings,

Ronald.

On Sat Apr 10 17:43:04 CEST 2004 Shawn Zernik [EMAIL PROTECTED] wrote:



Tomcat Gurus:

Is their a *current* version of Java/Tomcat that been assembled for FreeBSD
5.0?
Shawn Zernik
Internetwork Consulting
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat for FreeBSD

2004-04-13 Thread Paul Mansfield
On Tue, 2004-04-13 at 10:09, Ronald Klop wrote:
 If you have installed the FreeBSD ports collection (which you probably have), than 
 do this:


AOL
me too... we are using tomcat-5 on freebsd-current.

works well, no complaints

Paul


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



tomcat 3.3 and jstl

2004-04-13 Thread Peter Bosmans
Hi all,

Short question.
I'm using JSTL within tomcat3.3, but i've got the next error message :
org.apache.jasper.compiler.CompileException: 
D:\jakarta-tomcat-3.3.2\webapps\standard-examples\elsupport\Out.jsp(10,2) 
Unable to load class null

Is it possible to use JSTL with tomcat3.3 ?
If so, what can i do, to resolv this problem ?
Thanks,

--
Peter Bosmans
Katholieke Hogeschool Limburg
Universitaire Campus Gebouw B Bus 1
3590 Diepenbeek
Tel. +32 11 230 770
Fax. +32 11 230 789
Mail. [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


deployment questions

2004-04-13 Thread Riaan Oberholzer
Hi,

I have a setup that works 100% in my development
(Windows) and test (linux) environments, but just
refuses to work in a linux environment provided by a
commercial hosting company. A number of issues arise,
one which some of you could perhaps comment:

I have a .war which is NOT unpacked. My jsp's are
precompiled as java classes with servlet mappings in
the web.xml. I have an myapp.xml in the tomcat/webapp
directory which has as docbase this .war (in a
non-Tomcat directory) and defining some JDBC
datasources.

In the production environment, the exact same files
and setup fail to work with the popular
driverclass=null attribute. Ie, the datasource
cannot be initialised. mysql.jar is where it should be
etc. I've tried everything, can't get it to work. It
sucks.

The provider also requires me to dump my .war in a
directory where it gets extracted and that often leads
to file not found exceptions. Its seems the
precompiled JSP's aren't always detected and instead
Apache web server searches for the actual jsp file,
which does not exist.

I eventually got the app to work, but every few hours
Tomcat crashes with an internal server error
reported in the browser. Tomcat logs are empty and
when I stop Tomcat, I get a connection exception.

Furthermore there are static html files in the .war
and as soon as one of those are called, the
application seems to lose track if it should call
Tomcat or try to read files directly from the
filesystem.

We run Tomcat 4.1.30 on JDK 1.4.2_03. RedHat linux.

Any comments about where I should simplify or look for
solutions? Thanks.





__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



Delivery FAILURE notification!!!

2004-04-13 Thread MAILER-DAEMON
I'm sorry but your recent email to [EMAIL PROTECTED] couldn't be delivered.
E-mail attachment files: YOURS.PIF
Our mailserver doesn't accept emails with such file attachments for security reasons.

-The rohlig.pl team

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



headers --

2004-04-13 Thread Alex

http://support.microsoft.com/default.aspx?scid=kb;en-us;812935

When I moved the web application to a more secure, robust offering, we
have discovered our second significant bug related to Internet Explorer
users.  This bug prohibits users from downloading files from the portal.

I've tried suggestions noted above by microsoft, removing some content
headers, however that still doesn't work.  The web app sits behind SSL and
if i revert the information to a non-ssl i loose all the session info.

is there a way in tomcat that session info is duplicated between
ssl/non-ssl ?


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



Re: Virtual Host, Locations and Mod_JK2

2004-04-13 Thread staf wagemakers
On Tue, Apr 13, 2004 at 10:23:13AM +0200, Alexander F. Hartner wrote:
 I host several websites on my apache2 (2.0.49) using virtual hosts. One 
 of the hosts I would like to forward fully to a web application 
 deployed on tomat via Mod_JK. What I have done is the following:
 
 Installed the webapplication in tomcat's root / context
 
 Configured a worker in workers2.properties
 
 Configured a virutal host on apache2
 
 VirtualHost 196.22.194.227
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/www/solms.co.za/
 ServerName www.solms.co.za
 ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
 *.solmstraining.co.za
 ErrorLog logs/solms.co.za-error_log
 CustomLog logs/solms.co.za-access_log combined
 Location /
   JkUriSet worker ajp13:localhost:28009
 /Location
 /VirtualHost
 
 Everything is working, except the Location directive spans all my other 
 virtual hosts as well. A request to any of the virtual hosts is 
 redirected to /index.jsp, which I guess comes from my web application's 
 deployment descriptor. Direct requests to otherhost.com/index.html are 
 still processed by apache correctly, but general request to 
 otherhost.com are redirected to otherhost.com/index.jsp.
 
 Ugly solution:
 What I have done in the mean time is to either
 -create index.jsp files which are typically copies of the index.html
 -modify the webapplication to redirect to index.html
 
 I should not have to do this as the location should only work for the 
 virtual host in which it is configured.


There is a bug in jk2
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22045

at the bottom of the bugreport there is also workaround 
(I didn't tried to implement it, I'm sticking to apache 1.3.xx and jk1)

-- 
Staf Wagemakers

email:  staf at patat.org
homepage:   http://staf.patat.org

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



Re: Its me

2004-04-13 Thread tomcat-user
I have attached your file. Your password is jkl44563.



Norton AntiVirus eliminato1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: deployment questions

2004-04-13 Thread Shapira, Yoav

Hi,
So in your dev and test environments, mysql.jar is in your WAR as well?
My guess is it's in common/lib, where it should be, in your dev/test
environments, but it's in your WAR for your production environment,
hence the error.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 6:09 AM
To: [EMAIL PROTECTED]
Subject: deployment questions

Hi,

I have a setup that works 100% in my development
(Windows) and test (linux) environments, but just
refuses to work in a linux environment provided by a
commercial hosting company. A number of issues arise,
one which some of you could perhaps comment:

I have a .war which is NOT unpacked. My jsp's are
precompiled as java classes with servlet mappings in
the web.xml. I have an myapp.xml in the tomcat/webapp
directory which has as docbase this .war (in a
non-Tomcat directory) and defining some JDBC
datasources.

In the production environment, the exact same files
and setup fail to work with the popular
driverclass=null attribute. Ie, the datasource
cannot be initialised. mysql.jar is where it should be
etc. I've tried everything, can't get it to work. It
sucks.

The provider also requires me to dump my .war in a
directory where it gets extracted and that often leads
to file not found exceptions. Its seems the
precompiled JSP's aren't always detected and instead
Apache web server searches for the actual jsp file,
which does not exist.

I eventually got the app to work, but every few hours
Tomcat crashes with an internal server error
reported in the browser. Tomcat logs are empty and
when I stop Tomcat, I get a connection exception.

Furthermore there are static html files in the .war
and as soon as one of those are called, the
application seems to lose track if it should call
Tomcat or try to read files directly from the
filesystem.

We run Tomcat 4.1.30 on JDK 1.4.2_03. RedHat linux.

Any comments about where I should simplify or look for
solutions? Thanks.





__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Returned Mail: Error During Delivery

2004-04-13 Thread Webshield . SMTP . V4 . 5 . MR1a . Mail . Service
-- Here is your List of Failed Recipients --
[EMAIL PROTECTED]


Requested action not taken: mailbox unavailable. [SMTP Error Code 550]

 Here Is Your Returned Mail 
Received: FROM mailgate4.nec.co.jp BY nismsdt2e106.nis-msd-t2e01 ; Tue Apr 13 21:38:37 
2004 +0900
Received: (from [EMAIL PROTECTED]) by mailgate4.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC)
id i3DCcgE22762 for [EMAIL PROTECTED]; Tue, 13 Apr 2004 21:38:42 +0900 (JST)
Received: from eg.msd.nis.nec.co.jp (YahooBB219011084059.bbtec.net [219.11.84.59])
by TYO204.gate.nec.co.jp (8.11.7/3.7W02122014) with ESMTP id i3DCcev10386
for [EMAIL PROTECTED]; Tue, 13 Apr 2004 21:38:41 +0900 (JST)
Message-Id: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Developement
Date: Tue, 13 Apr 2004 21:39:06 +0900
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_0016=_NextPart_000_0016
X-Priority: 3
X-MSMail-Priority: Normal

This is a multi-part message in MIME format.

--=_NextPart_000_0016=_NextPart_000_0016
Content-Type: text/plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

--  Virus Warning Message ---

Found virus WORM_NETSKY.P in file document09.doc   
.pif
The uncleanable file is deleted.

Have detected viruses in mails sent to you. MAILGATE deleted viruses or files  
contained viruses. If you have questions about this message, please consult with 
[EMAIL PROTECTED]| 
$B$$J$?08$KAwIU$5$l$?%a!%k$+$i%%$%k%9$,8!=P$5$l$?$?$a!3:EvE:IU%U%!%$%k$N$_%a!%k$+$i6n=|(B/$B:o=|$7$^$7$?!#25-(BURL$B$r;2H$Ne![EMAIL
 PROTECTED]@$,$$kl9g!([EMAIL PROTECTED]$5$$!#(B

-About Virus Scan Gate(Only jp): http://www.ipc.nec.co.jp/virus/mgate/ -

--=_NextPart_000_0016=_NextPart_000_0016
Content-Type: text/plain;
charset=Windows-1252
Content-Transfer-Encoding: 7bit

I hope you accept the result!

+++ Attachment: No Virus found
+++ MessageLabs AntiVirus - www.messagelabs.com


--=_NextPart_000_0016=_NextPart_000_0016
Content-Type: text/plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit


--  Virus Warning Message ---

document09.doc   .pif 
is removed from here because it contains a virus.

-About Virus Scan Gate(Only jp): http://www.ipc.nec.co.jp/virus/mgate/ -
--=_NextPart_000_0016=_NextPart_000_0016--



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



[Q] Tomcat, Apache Webserver and Datasources

2004-04-13 Thread Riaan Oberholzer
On a standalone Tomcat server, I can define JDBC
resources in a context without problems. As soon as
Apache webserver is brought into the equation, the
JDBC datasources fail to initialize, exceptions
indicating that the resoruce parameters where null.

I don't know anything about Apache webserver, but it
somehow sounds as if Apache creates a new context that
doesn't include my datasource settings. I've also
tried to define the resources in the server.xml under
GlobalNamingResources - still no luck.

Are there issues around this that I need to focus on?
Ie, do I need to setup datasources differently when
working with Apache webserver?




__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



RE: Prevent context startup on servlet init failure?

2004-04-13 Thread Shapira, Yoav

Hi,
You can't do it from a servlet's init method.  System.exit is an ugly
solution: what if there are other webapps on the container?

Two options come to mind:
- Move this init code to a ServletContextListener's contextInitialized
method.  If an error occurs, throw a RuntimeException (or any subclass
thereof).  The container will mark the context as unavailable and
requests will be rejected with a 500-level response.

- Have the init servlet set some sort of marker variable in a singleton,
making the app unavailable.  Have a filter mapped to /* check this
marker variable for every request, and reject the request in whatever
way you see fit if the app is marked as unavailable.

Whatever you do, remember to handle the case of a webapp reload
appropriately.  (This is one reason why the ContextListener approach is
good).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Josh Rehman [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 8:13 PM
To: Tomcat Users List
Subject: Prevent context startup on servlet init failure?

Is there a way to prevent the context from starting up if a servlet
init() call throws an exception or otherwise fails?

Here's the situation: we have a utility servlet that loads first (using
load-on-startup) and accesses some external resources, checks
database
connections, etc. Then our main application servlet loads. In the case
where the external dependancy fails, the context still comes up and
fails at a later point. It would be better practice to have the context
load fail when our utility servlet init() method throws it's exception.

I was thinking that there might be something in ServletContext that
would allow the servlet to force the context to dump out. Or perhaps a
call to System.exit(1) would be appropriate.

I'd really appreciate some advice. Thanks.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: deployment questions

2004-04-13 Thread Riaan Oberholzer
 So in your dev and test environments, mysql.jar is
 in your WAR as well?

No, in all 3 environments it is under /common/lib.

 My guess is it's in common/lib, where it should be,
 in your dev/test environments, but it's in your WAR 
 for your production environment, hence the error.

I just posted another mail that makes me think it has
something to do with the apache setup ?



 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Riaan Oberholzer
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 6:09 AM
 To: [EMAIL PROTECTED]
 Subject: deployment questions
 
 Hi,
 
 I have a setup that works 100% in my development
 (Windows) and test (linux) environments, but just
 refuses to work in a linux environment provided by
 a
 commercial hosting company. A number of issues
 arise,
 one which some of you could perhaps comment:
 
 I have a .war which is NOT unpacked. My jsp's are
 precompiled as java classes with servlet mappings
 in
 the web.xml. I have an myapp.xml in the
 tomcat/webapp
 directory which has as docbase this .war (in a
 non-Tomcat directory) and defining some JDBC
 datasources.
 
 In the production environment, the exact same files
 and setup fail to work with the popular
 driverclass=null attribute. Ie, the datasource
 cannot be initialised. mysql.jar is where it should
 be
 etc. I've tried everything, can't get it to work.
 It
 sucks.
 
 The provider also requires me to dump my .war in a
 directory where it gets extracted and that often
 leads
 to file not found exceptions. Its seems the
 precompiled JSP's aren't always detected and
 instead
 Apache web server searches for the actual jsp file,
 which does not exist.
 
 I eventually got the app to work, but every few
 hours
 Tomcat crashes with an internal server error
 reported in the browser. Tomcat logs are empty and
 when I stop Tomcat, I get a connection exception.
 
 Furthermore there are static html files in the .war
 and as soon as one of those are called, the
 application seems to lose track if it should call
 Tomcat or try to read files directly from the
 filesystem.
 
 We run Tomcat 4.1.30 on JDK 1.4.2_03. RedHat linux.
 
 Any comments about where I should simplify or look
 for
 solutions? Thanks.
 
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Small Business $15K Web Design Giveaway
 http://promotions.yahoo.com/design_giveaway/
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
 
 

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





__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



RE: ApplicationHttpRequest not using HttpServletRequestWrapper problem

2004-04-13 Thread Shapira, Yoav

Hi,
Without going into excessive detail, I wanted to point out two things:
1. This sort of thing is widely available:
http://www.google.com/search?sourceid=navclientq=showing+a+please+wait+
page+java.  I even see a Matt Raible solution on the search result list,
so I'd be inclined to try that one first ;)
2. One of the reasons this is failing is because you're mucking with the
request processor threading model imposed by the ServletSpec.  A lot of
things depend on the request being served by one thread, so when you
launch yours to handle things, you're at risk of seeing indeterminate
behavior.  And hey, that's what you're seeing, what a coincidence ;)  

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Phillip Rhodes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 1:22 AM
To: [EMAIL PROTECTED]
Subject: ApplicationHttpRequest not using HttpServletRequestWrapper
problem

I wrote a really neat servlet filter that I will release open source.
What it does is allow any servlet or jsp that runs long to be
intercepted and display a processing your request page to the user
while
the request is processing on the server.

The filter intercepts a request, wrappers the response and request and
kicks off the request in a different thread.  The filter will
immediately
return to the client browser with a wait page that will periodically
poll the working thread to see if the long running request is done.

However, things are not working as I planned.  I have been testing it
thoroughly and the wrapped response is fine.  All my code works
correctly
if I just block the request.  By block i mean, I don't respond to
the
request to the client until the jsp, servlet or whatever completes the
chain processing.

It seems that the ApplicationHttpRequest is not calling my subclass of
HttpServletRequestWrapper.  I declared a getAttributeNames method in
my
RequestWrapper, but it is not invoked.  Instead Tomcat is calling the
getAttributeNames method on the ORIGINAL request object.   This also
happens to be the same request object that I returned from already
(substituting a wait page for the actual expected content).  I *think*
that when I respond to the request, tomcat invalidates it.
Unfortunately,
the request is still being processed, just in a different thread.

I threw the war file on at server of mine (tomcat 4.1.27) so you can
check
it out and see it in action.
All source is here
http://test.rhoderunner.com/longrequest/

What I am looking for is some advice on how to solve this problem.  I
am
almost totally out of ideas on how to solve this one.
Thanks.

Here is a stacktrace from Tomcat 4.1.30

java.lang.NullPointerException
at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getAttributeNames(CoyoteR
eque
stFacade.java:142)
at
org.apache.catalina.core.ApplicationHttpRequest.setRequest(ApplicationH
ttpR
equest.java:512)
at
org.apache.catalina.core.ApplicationHttpRequest.init(ApplicationHttpR
eque
st.java:125)
at
org.apache.catalina.core.ApplicationDispatcher.wrapRequest(ApplicationD
ispa
tcher.java:921)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis
patc
her.java:547)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa
tche
r.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Problems compiling jsps

2004-04-13 Thread John Trollinger
My jsp pages compile fine until I add %@ taglib tagdir=/WEB-INF/tags
prefix=tags % to our common header.  Then I get the following error.
The error happens when parsing the jsp page (as I get a 0 length .java
file)

What bothers me is that I am NOT using any tag files yet.  All I did was
add the page decleration for the tag files.

Any suggestions?


/testsystem/properties/lvl5/lstatctrl.jsp(1,1)
/_common/lvl5/includes/properties_header.jsp(55,0)
/_common/lvl5/includes/print_header_include.jsp(37,8) %@ page directive
cannot be used in a tag file


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



RE: Require a tomcat build with bug fix....

2004-04-13 Thread Shapira, Yoav

Hi,
You're also not going to get a tomcat 4.0 official build for this fix.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Philip Baruc [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 4:42 PM
To: Tomcat Users List
Subject: RE: Require a tomcat build with bug fix

I just tried to run tomcat 5.0.22 and i don't belive
the bug(10469) is resolved in this build.
I see the fix here:
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-
4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.jav
a

This also were i got the version 1.50 that i alluded
to in an earlier email.

from what i can see. IN the 1.50 version. there has
been a change made to the getURL(File file) function:

   /**
 * Get URL.
 */
protected URL getURL(File file)
throws MalformedURLException {

File realFile = file;
try {
realFile = realFile.getCanonicalFile();
} catch (IOException e) {
// Ignore
}

//return new URL(file: +
realFile.getPath());
URLEncoder urlEncoder = new URLEncoder();
urlEncoder.addSafeCharacter(',');
urlEncoder.addSafeCharacter(':');
urlEncoder.addSafeCharacter('-');
urlEncoder.addSafeCharacter('_');
urlEncoder.addSafeCharacter('.');
urlEncoder.addSafeCharacter('*');
urlEncoder.addSafeCharacter('/');
urlEncoder.addSafeCharacter('!');
urlEncoder.addSafeCharacter('~');
urlEncoder.addSafeCharacter('\'');
urlEncoder.addSafeCharacter('(');
urlEncoder.addSafeCharacter(')');

return new
URL(urlEncoder.encode(realFile.toURL().toString()));
}


In the tomcat 5.0.22 version, it appears that the
getURL(File) still looks as it did before markt made
his feb 22 fix to the bug.

It appears that the fix is in the tomcat 4.0 branch
but not in the tomcat 5.0 branchs. I hope i am reading
the cvs repositories correctly. If not perhaps you can
help me. Basially I'm looking for a build of tomcat
(perferably a 4.0 build) that has this fix. I am
reluctant to build the tomcat source files myself and
distribute a custom bug fixed version of tomcat to our
customers.

I'm running into a problem without this fix because
i'm attempting to make an RMI call from with in
tomcat. When tomcat attempts to resolve the remove
interface i get an exception like:

java.rmi.UnmarshalException: error unmarshalling
arguments; nested exception is:
   java.net.MalformedURLException: no protocol:
Files/Apache

I belive that this is cause WebAppClassLoader
getURL(File) function is suffering from a bug encoding
problem in the jdk.

http://developer.java.sun.com/developer/bugParade/bugs/4273532.html

I belive that Apache has recognized this problem and
has implemented its fix in its cvs repositories in its
tomcat 4.0 branch, but no in any of the builds on the
4.0 branch.

Please advice...

Thank You,
P.B.


--- Shapira, Yoav [EMAIL PROTECTED] wrote:


http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Philip Baruc [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 12, 2004 3:04 PM
 To: Tomcat Users List
 Subject: RE: Require a tomcat build with bug
 fix
 
 Is there a place where i can download a build of
 the
 5.0.22-alpha version of tomcat, or does this
 require
 me pulling the 5.0.22 branch from cvs and building
 it?
 
 philip b
 
 --- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I've also downloaded
  the 4.1.30 source and noticed that the
  WebAppClassLoader is only at version 1.48 where
 as
  the
  bug fix is applied to a 1.50 version of the
  WebAppClassLoader.
 
  I'm not sure where you're getting your version
  numbers.
 

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src
/
 s
  hare/org/apache/catalina/loader/ shows that 1.31
 is
  the current CVS
  version of WebAppClassLoader, so what's 1.48 and
  1.50 that you're
  talking about?
 
  Mark marked the issue as fixed on 2004-02-22.
  4.1.30 was released on
  2004-01-25.  So what I said before was wrong:
 4.1.30
  doesn't have your
  fix.  For that matter, 5.0.19 is from 2004-02-14,
 so
  it doesn't have
  your fix either.  5.0.22-alpha is from last week
 and
  should have your
  fix.
 
  Tomcat 5 is not so different that you should be
  afraid to try it.
 
  Yoav Shapira
 
 
 
 
 
  This e-mail, including any attachments, is a
  confidential business communication, and may
 contain
  information that is confidential, proprietary
 and/or
  privileged.  This e-mail is intended only for the
  individual(s) to whom it is addressed, and may
 not
  be saved, copied, printed, disclosed or used by
  anyone else.  If you are not the(an) intended
  recipient, please immediately delete this e-mail
  from your computer system and notify the sender.
  Thank you.
 
 
 

-
  To unsubscribe, 

RE: Session exists even after server restart

2004-04-13 Thread Shapira, Yoav

Hi,
Session persistence until timeout/invalidation and across server
restarts is mandated by the Servlet Specification.  We didn't just do it
(and make it a default) for kicks ;)

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: James Bucanek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 1:50 AM
To: Tomcat Users List
Subject: Re: Session exists even after server restart

[EMAIL PROTECTED] wrote on Tuesday, April 13, 2004:
Now I have shutdown my tomcat and started it immediately. And my
session
still works !!!

Pretty cool, huh?

Is this a BUG?

If it is, then a lot of people spent an aweful lot of time introducing
it.

I just read Tomcat: The Definitive Guide by Jason Brittain  Ian
Darwin.
While this covers Tomcat 4, I'm pretty sure this applies to 5 as well.

The Manager tag in the server.xml file defines the session manager
class.
As example would be

Manager className=org.apache.catalina.session.PersistentManager
...

The default session manger is StandardManager.  The StandardManager
class
preserves the state of sessions by serializing them to a file called
SESSIONS.ser when the server shuts down, then restores them when it
starts
up again.

Alternatively, you can use PersistentManager which dynamically stores
session data in some kind of data store (be that files, or a database,
or
whatever).

If you don't want this persistence behavior, replace the Manager with
one
which doesn't preserve sessions between server shutdown and startup.

__
James Bucanek   mailto:[EMAIL PROTECTED]

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Request parameters getting lost

2004-04-13 Thread Shapira, Yoav

Hi,
Whatever the root cause of this issue is, your servlets should be
tolerant of these parameters not being specified, i.e. being null.  You
should never NPE in your own code due to improper input parameter
checking.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 7:51 PM
To: [EMAIL PROTECTED]
Subject: Request parameters getting lost

I have a very odd situation...

I have an app running on Tomcat 5.0.1.8.  We're using it as both a web
server and servlet container.  What's happening is I'm getting
NullPointerExceptions in both JSP's and servlets that is a result of
request
parameters seemingly being lost somewhere along the way.  In other
words,
if
I submit a form to a servlet with a couple of fields, the parameters
are
not
showing up in the request object, hence I get NullPointerExceptions
trying
to access them.

This is an intermittent problem, in fact it's fairly rare (which has
saved
my a** at work thus far!), but I still have not been able to explain
it.
It
is happening at various points in my app, no consistent pattern that
I've
been able to discern, all of which should theoretically be impossible
to
have no parameters because the user is forced to enter things via
JavaScript, or clicking a button submits a hidden form, things like
that.
I've tried the best I can to get it to happen on my development
installation, but of course I've been unable to replicate it, but I
have
seen it on the production server so I know it's not just a stupid user
trick
(although I can't rule out them doing something stupid that I just
haven't
imagined).

I have a sneaking suspicion that it's a server tuning issue, and in
fact I
just did some reading and it looks like my predecessor in charge of
tuning
Tomcat really screwed up some things.  Here's his connector
configuration:

Connector
   allowTrace=true
   enableLookups=false
   redirectPort=8443
   secure=false
   acceptCount=100
   bufferSize=4096
   compression=off
   connectionLinger=-1
   connectionTimeout=6
   debug=0
   disableUploadTimeout=true
   maxHttpHeaderSize=8192
   maxKeepAliveRequests=200
   maxSpareThreads=175
   maxThreads=300
   minSpareThreads=100
   port=8181
   socketBuffer=12000
   tcpNoDelay=true
/

That looks incredibly wrong to me in terms of tuning.  The app has a
TOTAL
of 87 users, and not all of them are using the app at the same time,
and
the
requests are certainly not coming all at the same time.  I'm guessing
we're
talking about an average of maybe 20 concurrent requests at any given
time,
not a huge load by any stretch.

So, my question is twofold... One, has anyone ever seen such an issue
as
missing parameters before, and if so, what information can you share
with
me
about it?  Two, am I off my rocker to think that connector config is
way
out
of wack, and assuming it is, what suggestions would you guys have to
fix
it,
given the approximate load I've stated here?

Thanks in advance everyone!

Frank



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat 5 : Connection Pool to Access database

2004-04-13 Thread Shapira, Yoav

Hi,
Search the archives.  This is a common configuration problem.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Freddy Villalba Arias [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 3:57 AM
To: Tomcat Users List
Subject: RE: Tomcat 5 : Connection Pool to Access database

BTW, the topic is JNDI and DataSource and I'm trying to connect to an
Oracle DB.  :)

Freddy.

-Mensaje original-
De: Francesco Pellegrini [mailto:[EMAIL PROTECTED]
Enviado el: martes, 13 de abril de 2004 9:28
Para: Tomcat-User-ML
Asunto: Tomcat 5 : Connection Pool to Access database
Importancia: Alta

Hi All,

I'm working on Tomcat 5.0.18 web server with Access 2000 database on
Windows
2000 server environment.

At the moment I use simple connection to database by direct calling
in
the
Java code like:

Connection Con=DriverManager.getConnection(jdbc:odbc:MyDatabase);

where MyDatabase is the ODBC source.

I'would like to configure a connection pool instead of direct
connection,
but after I did this changes in server.xml :


***
*

**

 GlobalNamingResources


Resource name=jdbc/myoracle auth=CONTAINER
type=javax.sql.DataSource/
  ResourceParams name=jdbc/myoracle
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory
   /value
  /parameter
  parameter
   namedriverClassName/name
   valuesun.jdbc.odbc.JdbcOdbcDriver/value
 /parameter
   parameter
   nameurl/name
   valuejdbc:odbc:MyDatabase/value
  /parameter
 /ResourceParams

  /GlobalNamingResources




***
*

**


and this changes in web.xml of my web application :

***
*

**
resource-ref
   descriptionOracle Datasource example/description
   res-ref-namejdbc/myoracle/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref
***
*

**

I got on this error :

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
class '' for connect URL 'null', cause:
java.sql.SQLException: No suitable driver
   at java.sql.DriverManager.getDriver(Unknown Source)
   at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e
.jav
a:743)
   at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
a
va:5
18)


Could someone help me?

Thanks

Franz.


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat performance issue?

2004-04-13 Thread Shapira, Yoav

Hi,
Absolutely.  Peter and I have been preaching this for years now ;)  I'm
glad this has helped you...

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 10:17 PM
To: Tomcat Users List
Subject: RE: Tomcat performance issue?


glad the suggestion helps. I firmly believe in
profiling code to make sure simple little mistakes
that appear harmless aren't killing performance.

I'm constantly amazed at how little things improve
performance. the benefit of using OptimizeIt or any
other good profiling tool is well worth it. that's my
biased perspective :)

peter lin


--- Allistair Crossley [EMAIL PROTECTED]
wrote:
 This evening I did the same with JProbe under 360
 requests as you describe and this led to me gaining
 a 38% speedup.

 The main bottleneck I found was some very simple
 tags I have were calling out.flush() at the end.
 Thiw was consuming 14 seconds of time to flush 1
 string from the tag. The tag is called many times
 within our JSPs because it calls the current skin
 label.

 By simply removing the flush call the tag call
 method time across the load test went down to 2s.
 Not bad hey. There were other areas which I solved
 with application scope caching and a bean pool for a
 3rd party bean that takes ages to initialise a
 connection.

 I am getting there slowly but surely but Yoav I
 think was right all along and it is the code and you
 have to profile it and examine those call graphs!!!

 ADC

  -Original Message-
  From: Peter Lin [mailto:[EMAIL PROTECTED]
  Sent: Mon 12/04/2004 19:53
  To: Tomcat Users List
  Cc:
  Subject: Re: Tomcat performance issue?




  luckily I have a license of Borland OptimizeIt.

  What I do is I start tomcat using OptimizeIt. Then
 I create a test plan in JMeter. Once tomcat is
 running, I warm it up by sending it a couple hundred
 requests to make sure all the pages are compiled.

  before the test starts, use OptimizeIt to garbage
 collect. Once that is done, I start the test and
 look at the number of threads and size of the heap.
 If there's a memory leak, either the thread count
 will increase, or the heap will grow rapidly. Once I
 see either one, I then switch to the call graph to
 get a better picture of which methods are getting
 called. Usually, that is enough to point towards a
 culprit.

  repeat, and rinse as many times as needed until
 you've squashed all bugs and leaks.

  peter lin




  Matt Woodings [EMAIL PROTECTED] wrote:
  I just read your post this morning (I am lurking
 today as I have a few
  issues of my own to clear up :-) ) and I think that
 is some really good
  advice you gave. I do have a question though.

  Once you have noticed you have a memory leak, how
 do you go about locating
  it?

  Matt


  -
  Do you Yahoo!?
  Yahoo! Tax Center - File online by April 15th



 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE

---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474

---
 /FONT

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





__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Problems compiling jsps

2004-04-13 Thread John Trollinger
This issue seems to be fixed in the latest from CVS

-Original Message-
From: John Trollinger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 8:25 AM
To: [EMAIL PROTECTED]
Subject: Problems compiling jsps 


My jsp pages compile fine until I add %@ taglib tagdir=/WEB-INF/tags
prefix=tags % to our common header.  Then I get the following error.
The error happens when parsing the jsp page (as I get a 0 length .java
file)

What bothers me is that I am NOT using any tag files yet.  All I did was
add the page decleration for the tag files.

Any suggestions?


/testsystem/properties/lvl5/lstatctrl.jsp(1,1)
/_common/lvl5/includes/properties_header.jsp(55,0)
/_common/lvl5/includes/print_header_include.jsp(37,8) %@ page directive
cannot be used in a tag file


-
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: [Q] Tomcat, Apache Webserver and Datasources

2004-04-13 Thread Shapira, Yoav

Hi,
Hmm, others can help more, but maybe the mapping between apache and
tomcat is wrong?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 8:39 AM
To: [EMAIL PROTECTED]
Subject: [Q] Tomcat, Apache Webserver and Datasources

On a standalone Tomcat server, I can define JDBC
resources in a context without problems. As soon as
Apache webserver is brought into the equation, the
JDBC datasources fail to initialize, exceptions
indicating that the resoruce parameters where null.

I don't know anything about Apache webserver, but it
somehow sounds as if Apache creates a new context that
doesn't include my datasource settings. I've also
tried to define the resources in the server.xml under
GlobalNamingResources - still no luck.

Are there issues around this that I need to focus on?
Ie, do I need to setup datasources differently when
working with Apache webserver?




__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Unexpected tomcat 4.1.27-30 shutdown problem

2004-04-13 Thread Shapira, Yoav

Hi,

Would an exeception in the code cause tomcat to stop?

Depends what code: it'd have to be something that percolates all the way
to the main launcher clause...

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: overriding service

2004-04-13 Thread Shapira, Yoav

Hi,
There are very few never statements that are strictly true in
programming.  But it's fair to say you should rarely override the
service method.  Mostly it just checks the incoming request's method
(GET, POST, etc.) and called the appropriate method (doGet, doPost,
etc.).  Since you don't want to duplicate this logic, nor do you
normally want to deal with PUT, TRACE, and other misc requests, the most
common course is to implement doGet/doPost or both (usually one just
calling the other).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 5:34 PM
To: Tomcat Users List
Subject: overriding service

I've read somewhere that you should never override service method (from
Servlet) and just override get/post methods???

Is that true? Or the only problem is that overriding service method, no
other method types will be called?
--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: headers --

2004-04-13 Thread QM
On Tue, Apr 13, 2004 at 07:14:26AM -0400, Alex wrote:
: is there a way in tomcat that session info is duplicated between
: ssl/non-ssl ?

This has been discussed recently on the list -- please check the
archives.

A search for session hijacking in the message body should give you the
whats and whys (or why nots)...

btw -- please start new threads, instead of replying to old messages.  

Thanks!

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Virtual Host, Locations and Mod_JK2

2004-04-13 Thread Dean Searle
I have found that if you do the following it works for me:

Location /*.jsp
JkUriSet worker ajp13:localhost:28009
/Location

Hope that this helps, I have found that by doing this I can redirect any file type to 
be handled by Tomcat.

Dean


-Original Message-
From: Alexander F. Hartner [mailto:[EMAIL PROTECTED]
Sent: Tue 4/13/2004 4:23 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Virtual Host, Locations and Mod_JK2
 
I host several websites on my apache2 (2.0.49) using virtual hosts. One 
of the hosts I would like to forward fully to a web application 
deployed on tomat via Mod_JK. What I have done is the following:

Installed the webapplication in tomcat's root / context

Configured a worker in workers2.properties

Configured a virutal host on apache2

VirtualHost 196.22.194.227
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /home/www/solms.co.za/
 ServerName www.solms.co.za
 ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
*.solmstraining.co.za
 ErrorLog logs/solms.co.za-error_log
 CustomLog logs/solms.co.za-access_log combined
 Location /
   JkUriSet worker ajp13:localhost:28009
 /Location
/VirtualHost

Everything is working, except the Location directive spans all my other 
virtual hosts as well. A request to any of the virtual hosts is 
redirected to /index.jsp, which I guess comes from my web application's 
deployment descriptor. Direct requests to otherhost.com/index.html are 
still processed by apache correctly, but general request to 
otherhost.com are redirected to otherhost.com/index.jsp.

Ugly solution:
What I have done in the mean time is to either
-create index.jsp files which are typically copies of the index.html
-modify the webapplication to redirect to index.html

I should not have to do this as the location should only work for the 
virtual host in which it is configured.

Any suggestions welcome

Alex



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

RE: Apache2+Jk2+Tomcat5

2004-04-13 Thread Yang Xiao


-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 8:18 PM
To: Tomcat Users List
Subject: Re: Apache2+Jk2+Tomcat5

On Mon, Apr 12, 2004 at 07:37:31PM -0400, Yang Xiao wrote:
: I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
: I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
: in /usr/local/apache/modules
: But when I start the Tomcat server, I'm getting this error
: 
: INFO: APR not loaded, disabling jni components: java.io.IOException:
: java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
: /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final

The error message is your big clue here ;)

Do a web search for the details of what this message means, then run
ldd on libjkjni.so to determine which shared libs it requires. 

Notice which libs ldd says don't exist, and set (or append)
$LD_LIBRARY_PATH accordingly.

-QM

-- 

Thanks, but I double checked the libjkjni.so and LD_LIBRARY_PATH and they
show:
ldd /usr/local/apache/modules/libjkjni.so 
libcrypt.so.1 = /lib/libcrypt.so.1 (0x00be5000)
libapr-0.so.0 = /usr/local/apache/lib/libapr-0.so.0 (0x00415000)
libc.so.6 = /lib/tls/libc.so.6 (0x001b5000)
librt.so.1 = /lib/tls/librt.so.1 (0x00c14000)
libm.so.6 = /lib/tls/libm.so.6 (0x002f)
libnsl.so.1 = /lib/libnsl.so.1 (0x0084c000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0x0043f000)
libdl.so.2 = /lib/libdl.so.2 (0x00314000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x0019d000)

$LD_LIBRARY_PATH
/lib:/lib/tls:/usr/local/apache/lib:/usr/lib:/usr/local/apr/lib:/usr/local/l
ib

What am I doing wrong?

Yang

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



RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Yang Xiao


-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 1:49 AM
To: Tomcat Users List
Subject: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

Yang Xiao wrote:

 Hi list,
 I'm trying to get Apache 2.0.49/JK2/Tomcat 5.0.19 to work
 I was able to get JK2 to compile and placed the mod_jk2.so and libjkjni.so
 in /usr/local/apache/modules
 But when I start the Tomcat server, I'm getting this error
 
 INFO: APR not loaded, disabling jni components: java.io.IOException:
 java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
 /usr/local/apache/modules/libjkjni.so: undefined symbol: apr_md5_final

It is a constant problem with JK2 JNI lib. I've had it on 2.0.2 and on
2.0.4. 
libjkjni.so needs to be linked against all three APR libs: -lapr -laprutil
-lexpat.

This is the case on Linux (Mandrake 9.1) and on Tru64 UNIX (4.0D). After 
modifying the Makefile, it went OK. It loads and works.

Nix.


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

Hi,
Thanks for the help
I went back and modified the Makefile with all 3 libraries as you have said,
recompiled and now I'm getting a different error:
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno

I'm not too good with C library programming, so can you help to explain what
this is?

Thanks,
Yang

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



Re: deployment questions

2004-04-13 Thread QM
On Tue, Apr 13, 2004 at 03:09:04AM -0700, Riaan Oberholzer wrote:
: precompiled JSP's aren't always detected and instead
: Apache web server searches for the actual jsp file,
: which does not exist.

This follows some of my experience: Apache's URI resolution requires the
.jsp files to exist before it decides to pass the handling of those
files off to mod_jk.  You could leave the .jsp files there, or have some
creative Ant work zero out the files before it packs up the .war.


A general note re: your hosting company: perhaps you could get them to
clue you in on specifics of their setup?  Explain that you'd like your
dev environment (or a separate staging environment) to mimic theirs,
to reduce your deployment headaches.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Request parameters getting lost

2004-04-13 Thread Allistair Crossley
the only time i lost request parameters was because the form was multipart/form-data. 
In that case you need to use a form upload processer like commons FileUploader.

ADC

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 13 April 2004 13:49
To: Tomcat Users List
Subject: RE: Request parameters getting lost



Hi,
Whatever the root cause of this issue is, your servlets should be
tolerant of these parameters not being specified, i.e. being null.  You
should never NPE in your own code due to improper input parameter
checking.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, April 12, 2004 7:51 PM
To: [EMAIL PROTECTED]
Subject: Request parameters getting lost

I have a very odd situation...

I have an app running on Tomcat 5.0.1.8.  We're using it as both a web
server and servlet container.  What's happening is I'm getting
NullPointerExceptions in both JSP's and servlets that is a result of
request
parameters seemingly being lost somewhere along the way.  In other
words,
if
I submit a form to a servlet with a couple of fields, the parameters
are
not
showing up in the request object, hence I get NullPointerExceptions
trying
to access them.

This is an intermittent problem, in fact it's fairly rare (which has
saved
my a** at work thus far!), but I still have not been able to explain
it.
It
is happening at various points in my app, no consistent pattern that
I've
been able to discern, all of which should theoretically be impossible
to
have no parameters because the user is forced to enter things via
JavaScript, or clicking a button submits a hidden form, things like
that.
I've tried the best I can to get it to happen on my development
installation, but of course I've been unable to replicate it, but I
have
seen it on the production server so I know it's not just a stupid user
trick
(although I can't rule out them doing something stupid that I just
haven't
imagined).

I have a sneaking suspicion that it's a server tuning issue, and in
fact I
just did some reading and it looks like my predecessor in charge of
tuning
Tomcat really screwed up some things.  Here's his connector
configuration:

Connector
   allowTrace=true
   enableLookups=false
   redirectPort=8443
   secure=false
   acceptCount=100
   bufferSize=4096
   compression=off
   connectionLinger=-1
   connectionTimeout=6
   debug=0
   disableUploadTimeout=true
   maxHttpHeaderSize=8192
   maxKeepAliveRequests=200
   maxSpareThreads=175
   maxThreads=300
   minSpareThreads=100
   port=8181
   socketBuffer=12000
   tcpNoDelay=true
/

That looks incredibly wrong to me in terms of tuning.  The app has a
TOTAL
of 87 users, and not all of them are using the app at the same time,
and
the
requests are certainly not coming all at the same time.  I'm guessing
we're
talking about an average of maybe 20 concurrent requests at any given
time,
not a huge load by any stretch.

So, my question is twofold... One, has anyone ever seen such an issue
as
missing parameters before, and if so, what information can you share
with
me
about it?  Two, am I off my rocker to think that connector config is
way
out
of wack, and assuming it is, what suggestions would you guys have to
fix
it,
given the approximate load I've stated here?

Thanks in advance everyone!

Frank



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: location of workers2.properties parameters

2004-04-13 Thread Cox, Charlie
The only way I could get rid of these was to comment out the logger lines.

Charlie

 -Original Message-
 From: Randy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 1:23 AM
 To: [EMAIL PROTECTED]
 Subject: location of workers2.properties parameters
 
 I can not find the doc that describes the descriptors in
workers2.properties
 
 I am sorry if it is obvious , but I can not find it I have tried
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
 And
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html
 
 
 In my error.log for my web server it is full of
 [Mon Apr 12 23:35:28 2004] [notice] channelApr.receive(): Received len=147
 type=4
 Lots and lots of these
 
 I was kindof thinking it was a setting in my workers2.properties
 I changed [logger.apache2] to level=INFO As a guess, but I am still
getting
 these. Like every 10th of a second
 
 Thanks
 Randy
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


RE: Require a tomcat build with bug fix....

2004-04-13 Thread Philip Baruc
Will this issue be resolved in a tomcat 5.0 version?

pb

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 You're also not going to get a tomcat 4.0 official
 build for this fix.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Philip Baruc [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 12, 2004 4:42 PM
 To: Tomcat Users List
 Subject: RE: Require a tomcat build with bug
 fix
 
 I just tried to run tomcat 5.0.22 and i don't
 belive
 the bug(10469) is resolved in this build.
 I see the fix here:
 http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-

4.0/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.jav
 a
 
 This also were i got the version 1.50 that i
 alluded
 to in an earlier email.
 
 from what i can see. IN the 1.50 version. there has
 been a change made to the getURL(File file)
 function:
 
/**
  * Get URL.
  */
 protected URL getURL(File file)
 throws MalformedURLException {
 
 File realFile = file;
 try {
 realFile = realFile.getCanonicalFile();
 } catch (IOException e) {
 // Ignore
 }
 
 //return new URL(file: +
 realFile.getPath());
 URLEncoder urlEncoder = new URLEncoder();
 urlEncoder.addSafeCharacter(',');
 urlEncoder.addSafeCharacter(':');
 urlEncoder.addSafeCharacter('-');
 urlEncoder.addSafeCharacter('_');
 urlEncoder.addSafeCharacter('.');
 urlEncoder.addSafeCharacter('*');
 urlEncoder.addSafeCharacter('/');
 urlEncoder.addSafeCharacter('!');
 urlEncoder.addSafeCharacter('~');
 urlEncoder.addSafeCharacter('\'');
 urlEncoder.addSafeCharacter('(');
 urlEncoder.addSafeCharacter(')');
 
 return new

URL(urlEncoder.encode(realFile.toURL().toString()));
 }
 
 
 In the tomcat 5.0.22 version, it appears that the
 getURL(File) still looks as it did before markt
 made
 his feb 22 fix to the bug.
 
 It appears that the fix is in the tomcat 4.0 branch
 but not in the tomcat 5.0 branchs. I hope i am
 reading
 the cvs repositories correctly. If not perhaps you
 can
 help me. Basially I'm looking for a build of tomcat
 (perferably a 4.0 build) that has this fix. I am
 reluctant to build the tomcat source files myself
 and
 distribute a custom bug fixed version of tomcat to
 our
 customers.
 
 I'm running into a problem without this fix because
 i'm attempting to make an RMI call from with in
 tomcat. When tomcat attempts to resolve the remove
 interface i get an exception like:
 
 java.rmi.UnmarshalException: error unmarshalling
 arguments; nested exception is:
  java.net.MalformedURLException: no protocol:
 Files/Apache
 
 I belive that this is cause WebAppClassLoader
 getURL(File) function is suffering from a bug
 encoding
 problem in the jdk.
 

http://developer.java.sun.com/developer/bugParade/bugs/4273532.html
 
 I belive that Apache has recognized this problem
 and
 has implemented its fix in its cvs repositories in
 its
 tomcat 4.0 branch, but no in any of the builds on
 the
 4.0 branch.
 
 Please advice...
 
 Thank You,
 P.B.
 
 
 --- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 

http://www.apache.org/dist/jakarta/tomcat-5/v5.0.22-alpha/
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Philip Baruc [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 12, 2004 3:04 PM
  To: Tomcat Users List
  Subject: RE: Require a tomcat build with bug
  fix
  
  Is there a place where i can download a build of
  the
  5.0.22-alpha version of tomcat, or does this
  require
  me pulling the 5.0.22 branch from cvs and
 building
  it?
  
  philip b
  
  --- Shapira, Yoav [EMAIL PROTECTED]
 wrote:
  
   Hi,
  
   I've also downloaded
   the 4.1.30 source and noticed that the
   WebAppClassLoader is only at version 1.48
 where
  as
   the
   bug fix is applied to a 1.50 version of the
   WebAppClassLoader.
  
   I'm not sure where you're getting your version
   numbers.
  
 

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src
 /
  s
   hare/org/apache/catalina/loader/ shows that
 1.31
  is
   the current CVS
   version of WebAppClassLoader, so what's 1.48
 and
   1.50 that you're
   talking about?
  
   Mark marked the issue as fixed on 2004-02-22.
   4.1.30 was released on
   2004-01-25.  So what I said before was wrong:
  4.1.30
   doesn't have your
   fix.  For that matter, 5.0.19 is from
 2004-02-14,
  so
   it doesn't have
   your fix either.  5.0.22-alpha is from last
 week
  and
   should have your
   fix.
  
   Tomcat 5 is not so different that you should
 be
   afraid to try it.
  
   Yoav Shapira
  
  
  
  
  
   This e-mail, including any attachments, is a
   confidential business communication, and may
  contain
   information that is confidential, proprietary
  and/or
   privileged.  This e-mail is intended only for
 the
   individual(s) to whom it is addressed, and may
  not
   be 

Big Thanks

2004-04-13 Thread Allistair Crossley
Thanks to all on the list who have supported my questions, we launched our system this 
morning and apart from being a little slow under load it's been well received. 

Cheers, ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Tomcat 4.1.3

2004-04-13 Thread Reis, Tom
I was using Tomcat 4.0.4. I am now using 4.1.3. I cannot seem to
load the application on 4.1.3. It appears I cannot even find the directory
the application is in. Is there something different in 4.1.3 to recognize
and load an application. Thanks.

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



RE: DefaultServlet character encoding

2004-04-13 Thread Yansheng Lin
three up, three down, bottom of ninth

You can use a filter, see j2ee design pattern catalog for more details, and add
to your deployment descriptor this:

  filter
filter-nameEncodingFilter/filter-name
filter-classorg.myproject.EncodingFilter/filter-class
init-param
param-nametargetEncoding/param-name
param-valueutf-8/param-value
/init-param
  /filter

btw, are you interested in joining an open-source project that's japanese
related?  I need help:).  see http://j2e-translate.sourceforge.net

-Yan


-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 09, 2004 10:41 AM
To: Tomcat Users List
Subject: Re: DefaultServlet character encoding


Mark Thomas wrote:

  Tomcat ignores META tags (for good reasons I won't go in to). Use %@ page
  pagEncoding=... %.

...which doesn't work for static HTML pages, where I'm having the
problem...

Allistair Crossley wrote:
 or specify -Dfile.encoding=UTF or whatever in your tomcat startup

..which I have, and which has made no difference, as I stated in
the original mail...

Matt Woodings wrote:
  if your tomcat is a NT Service, this needs to go in the registry

..which, as the *first line* of the original post says, it's not
(RedHat != NT)...


Three up, three down -- anyone else care to try next inning? C'mon,
swing for the fence... :-)


-Original Message-
Subject: DefaultServlet character encoding

Config: Tomcat 4.1.29 -- Sun Java 1.4.2_01-b06 -- RedHat ES

Problem: static HTML pages meta-tagged to use Shift_JIS are sent as
ISO-8859-1.

All the googling I've done turns up the suggestion to start Tomcat
with -Dfile.encoding=UTF-8 in either JAVA_OPTS or CATALINA_OPTS to
make UTF-8 the default. I've tried both, neither made a difference.

To baffle me more, my two (unfortunately) divergent dev environments
  Tomcat 4.1.27 -- Sun Java 1.4.2_01-b06  -- W2k
  Tomcat 5.0.19 -- Sun Java 1.4.1_01-69.1 -- OSX.2.8
serve a sample Shift_JIS page just fine out of the box...

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



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



Hi, it's me

2004-04-13 Thread tomcat-user


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: tomcat 4 vs 5 form based container auth filters

2004-04-13 Thread Martin Alley
Anyone?

-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2004 16:42
To: 'Tomcat Users List'
Subject: RE: tomcat 4 vs 5 form based container auth  filters

Thanks Adam

It seems to me that the separation idea is not clear cut.  There is
certainly a down side.  I wonder whether this will stick.

Martin


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2004 13:48
To: Tomcat Users List
Subject: Re: tomcat 4 vs 5 form based container auth  filters

I can see Yoav is blitzing the mailing list right now. Perhaps you'll 
get a more authoritative answer from him or the other hardcore tomcat 
people.

One of the problems of excluding filters from the authentication request

is to do with character-encoding in the request - I remember someone 
whose realm included users with user-names containing accented 
characters that had to be converted to the correct character-encoding 
for the realm database. He had used a filter to do it but obviously had 
to find another way.

Adam

On 04/12/2004 02:34 PM Martin Alley wrote:
 Except with form based auth, you want the look at feel to be part of
the
 application?  
 
 What reasons did you hear? :-)
 
 Whilst not knowing the full reasons, it would be nice if there was
some
 config switch to control this, other wise it increases application
 maintainence overhead if you want to change the look and feel.
 
 I'll see if I can find anything in the tc5 release notes on this.
 
 Thanks again
 Martin
 
 
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED] 
 Sent: 12 April 2004 13:13
 To: Tomcat Users List
 Subject: Re: tomcat 4 vs 5 form based container auth  filters
 
 AFAIK it has something to do with providing a clean seperation between

 the authentication (tomcat) and the application (your filter).
 
 I think there were probably several reasons though for it, which 
 outweighed the reasons against, and I have heard a few of them.
 
 
 Adam
 
 On 04/12/2004 01:50 PM Martin Alley wrote:
 
Hi Adam,

Why do you think this behaviour changed from tomcat4 ?

I haven't gone into the full architecture of sitemesh, as yet, but I
know it includes a filter.

Martin

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2004 11:26
To: Tomcat Users List
Subject: Re: tomcat 4 vs 5 form based container auth  filters

Yes your observations are correct. It's my understanding that filters 
are not invoked until after authentication. i.e. after the form-based 
login.

I have no experience of site-mesh, but it seems a bit weird anyway to 
put decorations on a page via a filter - surely you should be 
encapsulating that sort of stuff in a JSP or taglib?

Adam

On 04/12/2004 11:02 AM Martin Alley wrote:


Can anyone comment on this?

Thanks
Martin

-Original Message-
From: Martin Alley [mailto:[EMAIL PROTECTED] 
Sent: 09 April 2004 09:53
To: Tomcat Users List
Subject: tomcat 4 vs 5 form based container auth  filters

Hi,

Initial observation indicates that filters get executed when a form

for


form based container auth is served - under tomcat 4, but not under
tomcat 5. 

I'm using sitemesh.  The decorations go on the form based login page
under tomcat 4, but not under tomcat 5. 

I need to do more research, but can any one add to this?

Thanks
Martin





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





 
 


-- 
struts 1.2 + tomcat 5.0.19 + java 1.4.2
Linux 2.4.20 Debian


-
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: location of workers2.properties parameters

2004-04-13 Thread Randy
So was  that in one place it the code or through-out?

Thanks 

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 8:27 AM
To: 'Tomcat Users List'
Subject: RE: location of workers2.properties parameters

The only way I could get rid of these was to comment out the logger lines.

Charlie

 -Original Message-
 From: Randy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 1:23 AM
 To: [EMAIL PROTECTED]
 Subject: location of workers2.properties parameters
 
 I can not find the doc that describes the descriptors in
workers2.properties
 
 I am sorry if it is obvious , but I can not find it I have tried 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
 And
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.ht
 ml
 
 
 In my error.log for my web server it is full of [Mon Apr 12 23:35:28 
 2004] [notice] channelApr.receive(): Received len=147
 type=4
 Lots and lots of these
 
 I was kindof thinking it was a setting in my workers2.properties I 
 changed [logger.apache2] to level=INFO As a guess, but I am still
getting
 these. Like every 10th of a second
 
 Thanks
 Randy
 
 
 -
 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 5 : DEBUG level

2004-04-13 Thread Francesco Pellegrini
Hi all,

I'm looking for an help to customize a LOG level for my server.
I have some JSP and SERVLET that uses :

System.out.println(message...);

in server.xml I set :

Logger className=org.apache.catalina.logger.FileLogger
verbosity=4 directory=logs  prefix=localhost_log.
suffix=.txt
 timestamp=true/


Now, Instead of save the message on stdout.log I would like to store all
message on  localhost_log.-MM-DD.txt, beacause the stdout.log it's
become too large.

How can i solve this issue?

Thanks

Franz.




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



RE: location of workers2.properties parameters

2004-04-13 Thread Cox, Charlie
Sorry, I meant comment out the [logger.apache2] lines in the
workers2.properties. 

Even after doing this you will still get your errors in the logs, but the
info's seem to stop. (this doesn't turn off all logging for jk2)

Chalrie

 -Original Message-
 From: Randy [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 11:39 AM
 To: 'Tomcat Users List'
 Subject: RE: location of workers2.properties parameters
 
 So was  that in one place it the code or through-out?
 
 Thanks
 
 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 8:27 AM
 To: 'Tomcat Users List'
 Subject: RE: location of workers2.properties parameters
 
 The only way I could get rid of these was to comment out the logger lines.
 
 Charlie
 
  -Original Message-
  From: Randy [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 13, 2004 1:23 AM
  To: [EMAIL PROTECTED]
  Subject: location of workers2.properties parameters
 
  I can not find the doc that describes the descriptors in
 workers2.properties
 
  I am sorry if it is obvious , but I can not find it I have tried
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk2.html
  And
  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.ht
  ml
 
 
  In my error.log for my web server it is full of [Mon Apr 12 23:35:28
  2004] [notice] channelApr.receive(): Received len=147
  type=4
  Lots and lots of these
 
  I was kindof thinking it was a setting in my workers2.properties I
  changed [logger.apache2] to level=INFO As a guess, but I am still
 getting
  these. Like every 10th of a second
 
  Thanks
  Randy
 
 
  -
  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]


How to handle tomcat's stdout.log size

2004-04-13 Thread Allistair Crossley
Hi Guys, me again :)

I am noticing that the stdout.log is getting rather large very quickly. It is 
specified in the service.bat as

--StdOutputFile %CATALINA_HOME%\logs\stdout.log

It does not appear to have any way of rolling it over or restricting it's size via the 
server.xml. 

Can anyone suggest how I might throttle it to 5MB say or suggest an alternative? It 
seems to store useful stuff that the localhost_ log does not store so I would like to 
keep this type of information..but not at 20MB when I cannot open it!

Cheers, ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: help needed - keytool import of CA certs

2004-04-13 Thread Robert Hall
Thanks, Bill.  I need to get better at digging through the archives ;-)  
Robert

Bill Barker wrote:

3. What else is needed in addition to an existing server cert file if
you don't have to go
   through the CSR process?
   

If you used keytool to generate the original CSR, then you have to import
your cert into the same keystore that you used to generate the CSR.
Otherwise you need to import your private key as well.  This comes up every
couple of weeks like clockwork, so you'll find plenty of pointers in the
archives :).


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


Tomcat 5 standalone, SSL, IE problem...

2004-04-13 Thread Lawrence, Gabriel
Howdy,

I'm running tomcat 5.0.16, jdk 1.4.1_02-b06 on Solaris 8 and am running
into an issue with IE. It seems that when I use IE wihtout SSL things
work fine, but when I use IE with SSL the form posts I'm sending don't
always submit properly. I know it sounds crazy, but, I'm wondering if
there are any known incompatibilities between IE and tomcat ssl? Or any
special configuration settings I need to do in order to make IE and
Tomcat happy together?

Thanks,
-gabe

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



client-server authorization

2004-04-13 Thread Tom Boyce
Hello all,

I've been have a problem getting client cert set up on Tomcat 5.  I can
implement server side authentication to establish an SSL connection, but
when I attempt to add the client side authentication in it fails.  I also
have used a verisign trial certificate, putting the root cert in my server
trustedstore and installing the signed certificate in the IE6.  Any help
would be greatly appreciated.

I generated a server key, exported to a file, then imported that to the
client cacert in the JDK1.4/jre/lib/security directory.

I then generated a client key, exported to a file and imported into
serverTrustStore in JDK1.4/bin directory.

My server.xml file secure connection is as follows:

Connector port=8443 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=true disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   keystoreFile=C:\JBuilder9\jdk1.4\bin\serverKeyStore
keystorePass=changeit
   truststoreFile = C:\JBuilder9\jdk1.4\bin\serverTrustStore
trustStorePass=changeit
   clientAuth=true SSLProtocol=TLS 
/ 

When I run this I get the follow debug trace:

Tomcat Start up:

Using CATALINA_BASE:   C:\jakarta-tomcat-5.0.19
Using CATALINA_HOME:   C:\jakarta-tomcat-5.0.19
Using CATALINA_TMPDIR: C:\jakarta-tomcat-5.0.19\temp
Using JAVA_HOME:   C:\JBuilder9\JDK1.4
Using Security Manager
Apr 13, 2004 12:50:12 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 9000
***
found key for : mykey
chain [0] = [
[
  Version: V1
  Subject: CN=localhost, OU=wellfound, O=wellfound, L=Atlanta, ST=Georgia,
C=us
  Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4

  Key:  [EMAIL PROTECTED]
  Validity: [From: Tue Apr 13 12:21:44 EDT 2004,
   To: Mon Jul 12 12:21:44 EDT 2004]
  Issuer: CN=localhost, OU=wellfound, O=wellfound, L=Atlanta, ST=Georgia,
C=us
  SerialNumber: [407c1398]

]
  Algorithm: [MD5withRSA]
  Signature:
: 1B D9 CE 2A B1 A2 64 F9   B0 41 A0 29 07 2B 3A EA  ...*..d..A.).+:.
0010: 72 83 10 2C C2 FC 23 F4   56 79 18 2D A6 23 06 25  r..,..#.Vy.-.#.%
0020: 6A BB EB 11 79 BD 46 DE   AF 10 10 EE 89 CA 9D CA  j...y.F.
0030: AB 2E C3 BB B7 6A CA 0F   EA ED F5 78 26 4D 2B 44  .j.xM+D
0040: 30 0A EC 68 82 85 EB 07   47 97 AD 4B 00 69 E7 5A  0..hG..K.i.Z
0050: 66 A4 0E 9B F9 B2 ED C4   34 03 76 26 84 F6 35 2D  f...4.v..5-
0060: 70 3B 10 01 23 00 7B A9   C8 55 3A D3 35 E6 0E 67  p;..#U:.5..g
0070: F7 45 4E 49 D9 CC E4 EF   E4 E7 44 28 2F DB E1 4C  .ENI..D(/..L

]
***
adding as trusted cert: [
[
  Version: V1
  Subject: OU=For VeriSign authorized testing only. No assurances (C)VS1997,
OU=www.verisign.com/
repository/TestCPS Incorp. By Ref. Liab. LTD., O=VeriSign, Inc
  Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4

  Key:  [EMAIL PROTECTED]
  Validity: [From: Sat Jun 06 20:00:00 EDT 1998,
   To: Tue Jun 06 19:59:59 EDT 2006]
  Issuer: OU=For VeriSign authorized testing only. No assurances (C)VS1997,
OU=www.verisign.com/r
epository/TestCPS Incorp. By Ref. Liab. LTD., O=VeriSign, Inc
  SerialNumber: [52a9f424 da674c9d af4f5378 52abef6e]

]
  Algorithm: [MD5withRSA]
  Signature:
: A5 A7 47 F2 8F 37 10 A0   96 94 CF E6 7C DB A3 E4  ..G..7..
0010: 02 22 49 AC 08 F8 D3 08   C9 EF 9B B2 9C C0 32 60  .I...2`
0020: B9 A1 30 92 88 B5 80 14   98 F5 B8 89 A7 DA 0A F9  ..0.
0030: CB F5 62 7D CA B9 53 3E   62 9B 5C 59 72 DF C7 12  ..b...Sb.\Yr...

]
adding as trusted cert: [
[
  Version: V1
  Subject: CN=localhost, OU=SanteFe, O=OmniConnect, L=Atlanta, ST=Georgia,
C=US
  Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4

  Key:  [EMAIL PROTECTED]
  Validity: [From: Tue Apr 13 11:11:18 EDT 2004,
   To: Mon Jul 12 11:11:18 EDT 2004]
  Issuer: CN=localhost, OU=SanteFe, O=OmniConnect, L=Atlanta, ST=Georgia,
C=US
  SerialNumber: [407c0316]

]
  Algorithm: [MD5withRSA]
  Signature:
: 7B CF 4B C9 E4 2A E9 1C   E4 01 24 0F 26 E4 4A 0F  ..K..*$..J.
0010: 96 F7 1D 4C 71 0C 0D 5D   E4 B0 39 28 74 FC 2C 9F  ...Lq..]..9(t.,.
0020: 18 9A 31 63 A1 1D F8 73   81 D8 DC A7 38 B9 E9 4B  ..1c...s8..K
0030: B9 8F 8B D5 6E C3 5B 9B   A8 65 FD F3 06 5C 99 AF  n.[..e...\..
0040: 48 52 C5 C4 77 A1 F7 50   FD BC F0 4D 13 68 9A 54  HR..w..P...M.h.T
0050: 8E 3E 7F 49 05 C4 5A B4   C0 B8 A3 04 EE E2 93 A9  ..I..Z.
0060: D6 54 16 7F 2B 56 A7 1A   E6 F1 C3 BA 14 C4 1E 34  .T..+V.4
0070: DF 61 3E 7A F6 B4 42 32   BE DE 3D EA 39 D9 67 C7  .az..B2..=.9.g.

]
adding as trusted cert: [
[
  Version: V1
  Subject: CN=OmniConnect, OU=SanteFe, O=SanteFeMovers, L=Marietta,
ST=Georgia, C=US
  Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4

  Key:  [EMAIL PROTECTED]
  Validity: [From: Fri Apr 09 19:34:50 EDT 2004,
   To: Thu Jul 08 19:34:50 EDT 2004]
  Issuer: CN=OmniConnect, OU=SanteFe, O=SanteFeMovers, L=Marietta,

apache tomcat mod_jk index.jsp

2004-04-13 Thread James Kessler
Hello,

I'm having trouble loading index.jsp from the root directory.
If i browse to www.foo.com/test/ everything works. If I browse to 
www.foo.com (which points to the same directory) it shows the jsp tags. 
I'm running apache 1.3, tomcat 4.1 and mod_jk 1.2 using ApacheConfig to 
auto-create mod_jk.conf.

httpd.conf contains:

LoadModule jk_module libexec/apache/mod_jk.so
AddModule mod_jk.c
ServerName www.foo.com

DocumentRoot /usr/local/tomcat/webapps/test
Directory /usr/local/tomcat/webapps/test
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.jsp index.php index.html index.htm
/Directory
JkMount /*.jsp ajp13

Include /usr/local/tomcat/conf/auto/mod_jk.conf

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


threads locking

2004-04-13 Thread Ben Souther
Has anyone else had any problems with threads locking (causing Tomcat to hang)?

I just moved an app thats been working for over a year on Linux, win2k pro and winXP 
pro up to a server running Windows 2k server
(dual 800 MHz Pentium III) and it locks up randomly.

Using tomcat 5.0.19
Sun's J2sdk 1.4.0_04 

Here is a thread dump:
http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for monitor entry 
[18fdf000..18f
dfd8c]
at java.io.PrintStream.println(PrintStream.java:585)
- waiting to lock 0x105044a0 (a java.io.PrintStream)
at 
org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:274)
at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
at com.fwdco.server.ServletErrorHandler.getInstance(Unknown Source)
at com.fwdco.server.HrpServlet.init(Unknown Source)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
- locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
- locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:187)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:24
5)
-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



RE: threads locking

2004-04-13 Thread Filip Hanik \(lists\)
print to log4j instead, I assume you know print to the context log?

Filip

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: threads locking


Has anyone else had any problems with threads locking (causing Tomcat to
hang)?

I just moved an app thats been working for over a year on Linux, win2k pro
and winXP pro up to a server running Windows 2k server
(dual 800 MHz Pentium III) and it locks up randomly.

Using tomcat 5.0.19
Sun's J2sdk 1.4.0_04

Here is a thread dump:
http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
monitor entry [18fdf000..18f
dfd8c]
at java.io.PrintStream.println(PrintStream.java:585)
- waiting to lock 0x105044a0 (a java.io.PrintStream)
at
org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:27
4)
at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
at com.fwdco.server.ServletErrorHandler.getInstance(Unknown Source)
at com.fwdco.server.HrpServlet.init(Unknown Source)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10
44)
- locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
- locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:187)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:24
5)
--
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004


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



Re: threads locking

2004-04-13 Thread Ben Souther
I don't.  Does it involve changing all of my System.out.println statements?



On Tuesday 13 April 2004 01:27 pm, Filip Hanik \(lists\) wrote:
 print to log4j instead, I assume you know print to the context log?

 Filip

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 12:29 PM
 To: 'Tomcat Users List'
 Subject: threads locking


 Has anyone else had any problems with threads locking (causing Tomcat to
 hang)?

 I just moved an app thats been working for over a year on Linux, win2k pro
 and winXP pro up to a server running Windows 2k server
 (dual 800 MHz Pentium III) and it locks up randomly.

 Using tomcat 5.0.19
 Sun's J2sdk 1.4.0_04

 Here is a thread dump:
 http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
 monitor entry [18fdf000..18f
 dfd8c]
 at java.io.PrintStream.println(PrintStream.java:585)
 - waiting to lock 0x105044a0 (a java.io.PrintStream)
 at
 org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:2
7 4)
 at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
 at com.fwdco.server.ServletErrorHandler.getInstance(Unknown Source)
 at com.fwdco.server.HrpServlet.init(Unknown Source)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0 44)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a va:187)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte
x t.java:151)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex
t Valve.java:24
 5)

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



RE: threads locking

2004-04-13 Thread Filip Hanik \(lists\)
yes, I am afraid so :)

Filip

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 12:38 PM
To: Tomcat Users List
Subject: Re: threads locking


I don't.  Does it involve changing all of my System.out.println statements?



On Tuesday 13 April 2004 01:27 pm, Filip Hanik \(lists\) wrote:
 print to log4j instead, I assume you know print to the context log?

 Filip

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 12:29 PM
 To: 'Tomcat Users List'
 Subject: threads locking


 Has anyone else had any problems with threads locking (causing Tomcat to
 hang)?

 I just moved an app thats been working for over a year on Linux, win2k pro
 and winXP pro up to a server running Windows 2k server
 (dual 800 MHz Pentium III) and it locks up randomly.

 Using tomcat 5.0.19
 Sun's J2sdk 1.4.0_04

 Here is a thread dump:
 http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
 monitor entry [18fdf000..18f
 dfd8c]
 at java.io.PrintStream.println(PrintStream.java:585)
 - waiting to lock 0x105044a0 (a java.io.PrintStream)
 at

org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:2
7 4)
 at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
 at com.fwdco.server.ServletErrorHandler.getInstance(Unknown
Source)
 at com.fwdco.server.HrpServlet.init(Unknown Source)
 at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0 44)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a va:187)
 at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte
x t.java:151)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex
t Valve.java:24
 5)

--
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004


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



Re: Tomcat JSP compile error?

2004-04-13 Thread Daniel Gibby
This part looks suspicious:

2004-04-14 03:13:48 ContextConfig[]: Missing
application web.xml, using defaults only


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


Re: threads locking

2004-04-13 Thread Ben Souther
Is this an issue with a particular build of Tomcat or j2sdk?



On Tuesday 13 April 2004 01:34 pm, Filip Hanik \(lists\) wrote:
 yes, I am afraid so :)

 Filip

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 12:38 PM
 To: Tomcat Users List
 Subject: Re: threads locking


 I don't.  Does it involve changing all of my System.out.println statements?

 On Tuesday 13 April 2004 01:27 pm, Filip Hanik \(lists\) wrote:
  print to log4j instead, I assume you know print to the context log?
 
  Filip
 
  -Original Message-
  From: Ben Souther [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 13, 2004 12:29 PM
  To: 'Tomcat Users List'
  Subject: threads locking
 
 
  Has anyone else had any problems with threads locking (causing Tomcat to
  hang)?
 
  I just moved an app thats been working for over a year on Linux, win2k
  pro and winXP pro up to a server running Windows 2k server
  (dual 800 MHz Pentium III) and it locks up randomly.
 
  Using tomcat 5.0.19
  Sun's J2sdk 1.4.0_04
 
  Here is a thread dump:
  http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
  monitor entry [18fdf000..18f
  dfd8c]
  at java.io.PrintStream.println(PrintStream.java:585)
  - waiting to lock 0x105044a0 (a java.io.PrintStream)
  at

 org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:2

 7 4)
  at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
  at com.fwdco.server.ServletErrorHandler.getInstance(Unknown

 Source)

  at com.fwdco.server.HrpServlet.init(Unknown Source)
  at

 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1

 0 44)
  - locked 0x107233f0 (a
  org.apache.catalina.core.StandardWrapper) at

 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)

  - locked 0x107233f0 (a
  org.apache.catalina.core.StandardWrapper) at

 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j

 a va:187)
  at

 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte

 x t.java:151)
  at

 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

  at

 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex

 t Valve.java:24
  5)

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



Mail Delivery (failure customerservice@onetelnet.nl)

2004-04-13 Thread Klantenservice Scarlet
Beste klant,

Uw vraag is bij ons ontvangen.
het toegewezen referentie-nummer is: 15281.

Wij zullen uw vraag zo spoedig mogelijk behandelen.

Dit is een geautomatiseerde mail; het is daarom niet mogelijk deze te
beantwoorden d.m.v. de reply-optie in uw mailprogramma.

Openingstijden klantenservice voor particulieren op werkdagen van 9.00u
tot 21.00u
Telefoonnummer : 0900-BEL 1650 (0900-235 1650) (10 cpm)
E-mailadres: [EMAIL PROTECTED]

Openingstijden zakelijke klantenservice op werkdagen van 9.00u tot 17.00u
Telefoonnummer : 0900-BEL 1650 (0900-235 1650) (10 cpm)
E-mailadres: [EMAIL PROTECTED]

Openingstijden Internet Helpdesk op werkdagen van 9.00 u tot 17.30 u
Telefoonnummer : 0900 10 20 303 (45 cpm)
E-mailadres: [EMAIL PROTECTED]

Homepage: www.scarlet.nl


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



RE: Urgent pls help ! Protection problems of using Realm

2004-04-13 Thread a a
Dear all,
 
  I do not have any idea of writing a custom realm, even how to start writing it. Can 
you give me some example or any references that teaching how to write a custom realm ?
 
  Thankyou very much !
 
kawai

Mark Thomas [EMAIL PROTECTED] wrote:
You need to write a custom realm.

Mark

 My case is that I can't store the username and password of 
 the roles and users in my server. I need to send the 
 authenication information in a format of xml file to a 
 foreign server and get back the login result from that 
 server. So I can't use Realm to check the roles and password 
 and do authentication directly in my server. 
 
 Is there any method that can solve that problem ? or any 
 method instead of using Realm ? or override the current 
 settings of Realm ?



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

...
  
http://ringtone.yahoo.com.hk/


RE: IBM Java VS SUN Java

2004-04-13 Thread Nicholas Bernstein
yes, dual hyper-threaded xeons. 

On Mon, 2004-04-12 at 12:02, Shapira, Yoav wrote:
 Hi,
 Was the linux box hyper-threaded?
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Nicholas Bernstein [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 12, 2004 2:50 PM
 To: Tomcat Users List
 Subject: IBM Java VS SUN Java
 
 Recently, we've been doing some load testing of apache (1.3.x) w/
 tomcat
 4.1.29  5.0.19 and were surprised at how slow it was responding on our
 redhat linux testbed system. We did some comparisons to a Win2k tomcat
 server, and the Win2k server *BLEW* it out of the water in terms of
 speed and load limits. After some mucking around, we narrowed down the
 difference to the java implementation. We switched over from sun's java
 jdk1.4.2_04 to IBMJava2-141 and saw some speed improvements and huge
 differences in load limits, i.e. it could scale much higher.
 
 I was wondering if anyone had experienced any problems due to switching
 to IBM's java, and if so what they were. Also, if anyone has any hints,
 links, or general advice on how to speed things up, be it tomcat
 tuning,
 or java, it would be very appreciated. The windows box, while not able
 to scale as well, does generally respond in 1/4 the time of the linux
 box.
 
 Thanks in Advance, any advice is appreciated.
 
 --
 +---+
 | Nicholas Bernstein| [EMAIL PROTECTED] |
 | UNIX Systems Administrator| http://www.docmagic.com   |
 | Document Systems Inc. ||
 | gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3 |
 +---+
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
+---+
| Nicholas Bernstein| [EMAIL PROTECTED] |
| UNIX Systems Administrator| http://www.docmagic.com   |
| Document Systems Inc. |   |
| gpg: F706 8C4E 78FA  53A0 019F D983 FE28 2002 D1F3|
+---+


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



Re: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Nikola Milutinovic
Yang Xiao wrote:

Hi,
Thanks for the help
I went back and modified the Makefile with all 3 libraries as you have said,
recompiled and now I'm getting a different error:
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno
I'm not too good with C library programming, so can you help to explain what
this is?
 

Ugh, looks like there is another link dependency. libaprutil wants a 
link to GDBM library. Try to locate something looking like 
/usr/lib/lib*dbm* and add that to Makefile, without leading lib, 
like this -ldbm.

Nix.

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


Tomcat and DataSource JNDI

2004-04-13 Thread Paul Richards
Hi,
I am running Tomcat from the Java Webservices Developer Pack 1.3 and I
cannot get JNDI working for mysql DataSource objects.  I have googled
around for my error which is:

java.sql.SQLException: Cannot load JDBC driver class 'null'
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
at 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:329)


What I found on google was that this error is not just a problem with Mysql and that 
people have experienced it with Oracle and Postgresql also:
http://archives.real-time.com/pipermail/tomcat-users/2002-October/081368.html

I tried the suggestion in this last URL of using the exact orderings of
parameters in the server.xml file as shown in the Tomcat JNDI DataSource
HowTo.  Unfortunately this has not helped my case.


I appreciate that a very similar thread to this is currently running but
that problem looks different to mine.


I have failover code which created a Mysql datasource manually if the
JNDI fails and the failover code works perfectly.  This makes me sure
that my CLASSPATHs are correct.



-- 
Paul Richards [EMAIL PROTECTED]


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



RE: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

2004-04-13 Thread Yang Xiao
Hem, unfortunately, I tried that, which worked, but then tomcat complains
about another XML library not being linked. I'm building Apache from scratch
now... please help.

Yang

-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 3:02 PM
To: Tomcat Users List
Subject: Re: JK2 JNI link bug [Was: Re: Apache2+Jk2+Tomcat5]

Yang Xiao wrote:

Hi,
Thanks for the help
I went back and modified the Makefile with all 3 libraries as you have
said,
recompiled and now I'm getting a different error:
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache/modules/libjkjni.so:
/usr/local/apache/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno

I'm not too good with C library programming, so can you help to explain
what
this is?
  


Ugh, looks like there is another link dependency. libaprutil wants a 
link to GDBM library. Try to locate something looking like 
/usr/lib/lib*dbm* and add that to Makefile, without leading lib, 
like this -ldbm.

Nix.

-
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 someone help me to fix the soft link problem in Tomcat 4.1.27

2004-04-13 Thread Kam Lung Leung
Hi Doug,

Thank for the information. Did you use Tomcat 4.1.27 version? I did not use the
manager to restart the web component. What I did is following:
1) stop tomcat, remove the myApp.war, and the myApp directory.
2) copy the new myApp.war into the webapps directory.
3) start tomcat.

When I removed the Context that was defined for the myApp.war then Tomcat unpack
the myApp.war and everything is OK.  I may missing something in the server.xml
file. Can you provide a server.xml file that contains a simple Context
definition that I may use to setup my myApp.war.

Thank you in advance,
Kam  

On Fri, 9 Apr 2004 18:12:20 -0400, Parsons Technical Services wrote:

 
 Kam,
 
 The existence of a context in the server.xml will not prevent Tomcat from
 unpacking a war. I have a development box that has the context defined and
 the manager can undeploy and deploy the war just fine. Also restart is not
 required.
 
 What Tomcat will not do is unpack any war for which a matching directory
 already exist under webapps. Part of the undeploy action of the manager is
 to delete the directory.
 
 Doug
 
 - Original Message - 
 From: Kam Lung Leung [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, April 09, 2004 5:44 PM
 Subject: RE: Can someone help me to fix the soft link problem in Tomcat
 4.1.27
 
 
  Thank Subir,
 
  The link does help me to fix the problem. After creating a context for my
 web
  component DistributedInputOutput in the server.xml file. Tomcat is no
 longer
  unpack my web componemt DistributeInputOutput.war at startup. Tomcat
 complains
  the directory is not accessible. In fact Tomcat will not unpack any web
  components said myWebComp.war when there is a Context defined in the
 server.xml.
  However, Tomcat does unpack other web components when the server.xml does
 not
  contains a Context defined for this web component.  I come to a conclusion
 is
  that the Context is used for web component that need not to be unpacked
 when
  Tomcat startup. Another the way to say this is that if I need the web
 component
  to be unpack when Tomcat startup, then I should not defined a Context for
 that
  web component in the server.xml. Please let me know if this is not the
 case.
 
  Thank,
  Kam
 
 
  On Thu, 8 Apr 2004 16:12:50 -0700, Subir Sengupta wrote:
 
  
   http://marc.theaimsgroup.com/?l=tomcat-userm=105159411609623w=2
  
  
   -Original Message-
   From: Kam Lung Leung [mailto:[EMAIL PROTECTED]
   Sent: Thursday, April 08, 2004 2:54 PM
   To: [EMAIL PROTECTED]
   Subject: Can someone help me to fix the soft link problem in Tomcat
   4.1.27
  
  
   Hi,
  
   I installed Tomcat 4.1.27 on our server and drop a myApp.war into the
   webapps directory. We restart Tomcat and wait for it to finish to unpack
   all web components, then we stop Tomcat. We create a soft link within
   our web component to point to directory outside the root context of our
   web component. But Tomcat says the requested resource is not available
   when we try to access the soft linked directory from the browser. In
   fact a null shows up in the last modified column. Can someone please
   tell me what to do to fix this problem.
   Your help is greatly appreciated.
  
   Kam
  
   -
   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]
 
  Kam Lung Leung
  Vice President of Engineering
  Wireless Web Access Inc.
  (303) 627-9684
 
  -
  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 someone help me to fix the soft link problem in Tomcat 4.1.27

2004-04-13 Thread Parsons Technical Services
Kam,

It is 4.1.29

This is the server.xml section for my app.

Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=true debug=0 displayName=golf
docBase=/opt/jakarta-tomcat-4.1.29/webapps/golf
mapperClass=org.apache.catalina.core.StandardContextMapper path=/golf
privileged=false reloadable=false swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper

ResourceLink name=jdbc/GolfDB global=jdbc/GolfDB
type=javax.sql.DataSource/
  ResourceLink global=UserDatabase name=users
type=org.apache.catalina.UserDatabase/

/Context

Note that this is on a development box and not production.

I have a Global Resource defined for the database for my app and for login.
In production this app is protected.

Doug

- Original Message - 
From: Kam Lung Leung [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 3:13 PM
Subject: Re: Can someone help me to fix the soft link problem in Tomcat
4.1.27


 Hi Doug,

 Thank for the information. Did you use Tomcat 4.1.27 version? I did not
use the
 manager to restart the web component. What I did is following:
 1) stop tomcat, remove the myApp.war, and the myApp directory.
 2) copy the new myApp.war into the webapps directory.
 3) start tomcat.

 When I removed the Context that was defined for the myApp.war then Tomcat
unpack
 the myApp.war and everything is OK.  I may missing something in the
server.xml
 file. Can you provide a server.xml file that contains a simple Context
 definition that I may use to setup my myApp.war.

 Thank you in advance,
 Kam

 On Fri, 9 Apr 2004 18:12:20 -0400, Parsons Technical Services wrote:

 
  Kam,
 
  The existence of a context in the server.xml will not prevent Tomcat
from
  unpacking a war. I have a development box that has the context defined
and
  the manager can undeploy and deploy the war just fine. Also restart is
not
  required.
 
  What Tomcat will not do is unpack any war for which a matching directory
  already exist under webapps. Part of the undeploy action of the manager
is
  to delete the directory.
 
  Doug
 
  - Original Message - 
  From: Kam Lung Leung [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, April 09, 2004 5:44 PM
  Subject: RE: Can someone help me to fix the soft link problem in Tomcat
  4.1.27
 
 
   Thank Subir,
  
   The link does help me to fix the problem. After creating a context for
my
  web
   component DistributedInputOutput in the server.xml file. Tomcat is no
  longer
   unpack my web componemt DistributeInputOutput.war at startup. Tomcat
  complains
   the directory is not accessible. In fact Tomcat will not unpack any
web
   components said myWebComp.war when there is a Context defined in the
  server.xml.
   However, Tomcat does unpack other web components when the server.xml
does
  not
   contains a Context defined for this web component.  I come to a
conclusion
  is
   that the Context is used for web component that need not to be
unpacked
  when
   Tomcat startup. Another the way to say this is that if I need the web
  component
   to be unpack when Tomcat startup, then I should not defined a Context
for
  that
   web component in the server.xml. Please let me know if this is not the
  case.
  
   Thank,
   Kam
  
  
   On Thu, 8 Apr 2004 16:12:50 -0700, Subir Sengupta wrote:
  
   
http://marc.theaimsgroup.com/?l=tomcat-userm=105159411609623w=2
   
   
-Original Message-
From: Kam Lung Leung [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 2:54 PM
To: [EMAIL PROTECTED]
Subject: Can someone help me to fix the soft link problem in Tomcat
4.1.27
   
   
Hi,
   
I installed Tomcat 4.1.27 on our server and drop a myApp.war into
the
webapps directory. We restart Tomcat and wait for it to finish to
unpack
all web components, then we stop Tomcat. We create a soft link
within
our web component to point to directory outside the root context of
our
web component. But Tomcat says the requested resource is not
available
when we try to access the soft linked directory from the browser. In
fact a null shows up in the last modified column. Can someone
please
tell me what to do to fix this problem.
Your help is greatly appreciated.
   
Kam
   
  
 -
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]
  
   Kam Lung Leung
   Vice President of Engineering
   Wireless Web Access Inc.
   (303) 627-9684
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, 

Re: Tomcat and DataSource JNDI

2004-04-13 Thread Parsons Technical Services
Paul,

Several questions:

What version of Tomcat is this?
What platform/OS are you on?
Which JDK version?

Typically this error is from a mis-configuration for the jndi.

Here are my configuration files or parts of for my development box.

First in the server.xml set up a GlobalResource such as this:

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource name=jdbc/GolfDB type=javax.sql.DataSource/
ResourceParams name=jdbc/GolfDB
  parameter
namevalidationQuery/name
valueselect 1/value
  /parameter
  parameter
nameurl/name
valuejdbc:mysql://localhost:3306/golf?autoReconnect=true/value
  /parameter
  parameter
nameusername/name
value**/value
  /parameter
  parameter
namepassword/name
value**/value
  /parameter
  parameter
namemaxActive/name
value30/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
/ResourceParams
  /GlobalNamingResources

Of course replace the necesary data with your specifics.

Next place this, at the bottom, in your web.xml for the app:

  resource-ref
  descriptionGolfDB Connection/description
  res-ref-namejdbc/GolfDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

For TC5: Now create a file in the META-INF directory. Name the file
context.xml.
In this file you will need to define the context and the link to the jdbc.
For TC4: Add this to the server.xml

Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=true debug=0 displayName=golf docBase=golf
mapperClass=org.apache.catalina.core.StandardContextMapper path=/golf
privileged=false reloadable=false swallowOutput=false useNaming=true
wrapperClass=org.apache.catalina.core.StandardWrapper
ResourceLink name=jdbc/GolfDB global=jdbc/GolfDB
type=javax.sql.DataSource/
/Context

My application is deployed with the manager from a war file named golf.war
The resource name is jdbc/GolfDB and I am running against a MySQL database.
Make sure all the names match exactly as this will cause many bumps from
banging you head. Adjust other setting to match your needs.

I am on TAO linux, Tomcat 5.0.19 /4.1.29 And JVM 1.4.2_04-b05.

Doug
www.parsonstechnical.com


- Original Message - 
From: Paul Richards [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 3:03 PM
Subject: Tomcat and DataSource JNDI


 Hi,
 I am running Tomcat from the Java Webservices Developer Pack 1.3 and I
 cannot get JNDI working for mysql DataSource objects.  I have googled
 around for my error which is:

 java.sql.SQLException: Cannot load JDBC driver class 'null'
 at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:529)
 at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
29)


 What I found on google was that this error is not just a problem with
Mysql and that people have experienced it with Oracle and Postgresql also:

http://archives.real-time.com/pipermail/tomcat-users/2002-October/081368.html

 I tried the suggestion in this last URL of using the exact orderings of
 parameters in the server.xml file as shown in the Tomcat JNDI DataSource
 HowTo.  Unfortunately this has not helped my case.


 I appreciate that a very similar thread to this is currently running but
 that problem looks different to mine.


 I have failover code which created a Mysql datasource manually if the
 JNDI fails and the failover code works perfectly.  This makes me sure
 that my CLASSPATHs are correct.



 -- 
 Paul Richards [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: threads locking

2004-04-13 Thread Ben Souther
Does Tomcat use log4j as it's context logger?   I thought it didn't?



On Tuesday 13 April 2004 01:27 pm, Filip Hanik \(lists\) wrote:
 print to log4j instead, I assume you know print to the context log?

 Filip

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 12:29 PM
 To: 'Tomcat Users List'
 Subject: threads locking


 Has anyone else had any problems with threads locking (causing Tomcat to
 hang)?

 I just moved an app thats been working for over a year on Linux, win2k pro
 and winXP pro up to a server running Windows 2k server
 (dual 800 MHz Pentium III) and it locks up randomly.

 Using tomcat 5.0.19
 Sun's J2sdk 1.4.0_04

 Here is a thread dump:
 http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
 monitor entry [18fdf000..18f
 dfd8c]
 at java.io.PrintStream.println(PrintStream.java:585)
 - waiting to lock 0x105044a0 (a java.io.PrintStream)
 at
 org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:2
7 4)
 at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
 at com.fwdco.server.ServletErrorHandler.getInstance(Unknown Source)
 at com.fwdco.server.HrpServlet.init(Unknown Source)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0 44)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a va:187)
 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte
x t.java:151)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex
t Valve.java:24
 5)

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



RE: threads locking

2004-04-13 Thread Filip Hanik \(lists\)
you can configure it to use either the JDK logger, log4j or the System
logger,

Filip

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 3:07 PM
To: Tomcat Users List
Subject: Re: threads locking


Does Tomcat use log4j as it's context logger?   I thought it didn't?



On Tuesday 13 April 2004 01:27 pm, Filip Hanik \(lists\) wrote:
 print to log4j instead, I assume you know print to the context log?

 Filip

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 12:29 PM
 To: 'Tomcat Users List'
 Subject: threads locking


 Has anyone else had any problems with threads locking (causing Tomcat to
 hang)?

 I just moved an app thats been working for over a year on Linux, win2k pro
 and winXP pro up to a server running Windows 2k server
 (dual 800 MHz Pentium III) and it locks up randomly.

 Using tomcat 5.0.19
 Sun's J2sdk 1.4.0_04

 Here is a thread dump:
 http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
 monitor entry [18fdf000..18f
 dfd8c]
 at java.io.PrintStream.println(PrintStream.java:585)
 - waiting to lock 0x105044a0 (a java.io.PrintStream)
 at

org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:2
7 4)
 at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
 at com.fwdco.server.ServletErrorHandler.getInstance(Unknown
Source)
 at com.fwdco.server.HrpServlet.init(Unknown Source)
 at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0 44)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
 - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a va:187)
 at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte
x t.java:151)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex
t Valve.java:24
 5)

--
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004


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



Re: Tomcat and DataSource JNDI

2004-04-13 Thread Paul Richards
On Tue, 2004-04-13 at 13:35, Parsons Technical Services wrote:
 Paul,
 
 Several questions:
 
 What version of Tomcat is this?

Version 5 from what I can tell from the licence agreement.  (What is the
correct way to determine?)

 What platform/OS are you on?

Solaris 9 (MU3 applied) on Sparc

 Which JDK version?

Sun J2SDK build 1.4.2-b28

 
 Typically this error is from a mis-configuration for the jndi.
 
 Here are my configuration files or parts of for my development box.
 
 First in the server.xml set up a GlobalResource such as this:
 
 Of course replace the necesary data with your specifics.
 
[snip]

I have this.



 Next place this, at the bottom, in your web.xml for the app:
 
[snip]

I have this also..

Both of these I have copied almost verbatim from the Tomcat JNDI
DataSource HowTo.  I can paste you in my exact code if you think it
would help.


 For TC5: Now create a file in the META-INF directory. Name the file
 context.xml.
 In this file you will need to define the context and the link to the jdbc.
 For TC4: Add this to the server.xml
 
[snip]

I have tried with and without the context.xml, it didn't make any
difference.  I do not think that the JNDI binding is the real problem as
when I change the calling code in my Servlet to look up the wrong JNDI
name I get different errors.

I think that the binding is there but it is somehow not getting the
correct parameters.  In particular the driver class name.



 - Original Message - 
 From: Paul Richards [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 3:03 PM
 Subject: Tomcat and DataSource JNDI
 
 
  Hi,
  I am running Tomcat from the Java Webservices Developer Pack 1.3 and I
  cannot get JNDI working for mysql DataSource objects.  I have googled
  around for my error which is:
 
  java.sql.SQLException: Cannot load JDBC driver class 'null'
  at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
 a:529)
  at
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
 29)
 
 
  What I found on google was that this error is not just a problem with
 Mysql and that people have experienced it with Oracle and Postgresql also:
 
 http://archives.real-time.com/pipermail/tomcat-users/2002-October/081368.html
 
  I tried the suggestion in this last URL of using the exact orderings of
  parameters in the server.xml file as shown in the Tomcat JNDI DataSource
  HowTo.  Unfortunately this has not helped my case.
 
 
  I appreciate that a very similar thread to this is currently running but
  that problem looks different to mine.
 
 
  I have failover code which created a Mysql datasource manually if the
  JNDI fails and the failover code works perfectly.  This makes me sure
  that my CLASSPATHs are correct.
 
 
 
  -- 
  Paul Richards [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]
-- 
Paul Richards [EMAIL PROTECTED]


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



Re: threads locking

2004-04-13 Thread Ben Souther
Thank you Filip,

Is thread locking a known issue with the system logger?
I've never seen this happen anywhere else before.
I didn't see anyting in the buglist for Tomcat.





On Tuesday 13 April 2004 04:02 pm, Filip Hanik \(lists\) wrote:
 you can configure it to use either the JDK logger, log4j or the System
 logger,

 Filip

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 3:07 PM
 To: Tomcat Users List
 Subject: Re: threads locking


 Does Tomcat use log4j as it's context logger?   I thought it didn't?

 On Tuesday 13 April 2004 01:27 pm, Filip Hanik \(lists\) wrote:
  print to log4j instead, I assume you know print to the context log?
 
  Filip
 
  -Original Message-
  From: Ben Souther [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 13, 2004 12:29 PM
  To: 'Tomcat Users List'
  Subject: threads locking
 
 
  Has anyone else had any problems with threads locking (causing Tomcat to
  hang)?
 
  I just moved an app thats been working for over a year on Linux, win2k
  pro and winXP pro up to a server running Windows 2k server
  (dual 800 MHz Pentium III) and it locks up randomly.
 
  Using tomcat 5.0.19
  Sun's J2sdk 1.4.0_04
 
  Here is a thread dump:
  http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
  monitor entry [18fdf000..18f
  dfd8c]
  at java.io.PrintStream.println(PrintStream.java:585)
  - waiting to lock 0x105044a0 (a java.io.PrintStream)
  at

 org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:2

 7 4)
  at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
  at com.fwdco.server.ServletErrorHandler.getInstance(Unknown

 Source)

  at com.fwdco.server.HrpServlet.init(Unknown Source)
  at

 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1

 0 44)
  - locked 0x107233f0 (a
  org.apache.catalina.core.StandardWrapper) at

 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)

  - locked 0x107233f0 (a
  org.apache.catalina.core.StandardWrapper) at

 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j

 a va:187)
  at

 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte

 x t.java:151)
  at

 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

  at

 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex

 t Valve.java:24
  5)

-- 
Ben Souther
F.W. Davison  Company, Inc.


This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.

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



Re: threads locking

2004-04-13 Thread Daniel Gibby
What are the benefits of the different loggers? What performance 
differences are there between them?

Daniel Gibby

Filip Hanik (lists) wrote:

you can configure it to use either the JDK logger, log4j or the System
logger,
Filip

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 3:07 PM
To: Tomcat Users List
Subject: Re: threads locking
Does Tomcat use log4j as it's context logger?   I thought it didn't?



On Tuesday 13 April 2004 01:27 pm, Filip Hanik \(lists\) wrote:
 

print to log4j instead, I assume you know print to the context log?

Filip

-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 12:29 PM
To: 'Tomcat Users List'
Subject: threads locking
Has anyone else had any problems with threads locking (causing Tomcat to
hang)?
I just moved an app thats been working for over a year on Linux, win2k pro
and winXP pro up to a server running Windows 2k server
(dual 800 MHz Pentium III) and it locks up randomly.
Using tomcat 5.0.19
Sun's J2sdk 1.4.0_04
Here is a thread dump:
http80-Processor25 daemon prio=5 tid=0x186225f0 nid=0xd10 waiting for
monitor entry [18fdf000..18f
dfd8c]
   at java.io.PrintStream.println(PrintStream.java:585)
   - waiting to lock 0x105044a0 (a java.io.PrintStream)
   at
   

org.apache.tomcat.util.log.SystemLogHandler.println(SystemLogHandler.java:2
 

7 4)
   at com.fwdco.server.ServletErrorHandler.init(Unknown Source)
   at com.fwdco.server.ServletErrorHandler.getInstance(Unknown
   

Source)
 

   at com.fwdco.server.HrpServlet.init(Unknown Source)
   at
   

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
 

0 44)
   - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
   at
   

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:712)
 

   - locked 0x107233f0 (a org.apache.catalina.core.StandardWrapper)
   at
   

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
 

a va:187)
   at
   

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte
 

x t.java:151)
   at
   

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
 

   at

   

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex
 

t Valve.java:24
5)
   

--
Ben Souther
F.W. Davison  Company, Inc.
This e-mail message, and any accompanying documents, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure, distribution or
copying is prohibited.  If you are not the intended recipient, please
contact our office by email or by telephone at (508) 747-7261 and
immediately destroy all copies of the original message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.654 / Virus Database: 419 - Release Date: 4/6/2004
-
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 and DataSource JNDI

2004-04-13 Thread Paul Richards
On Tue, 2004-04-13 at 14:12, Paul Richards wrote:
 On Tue, 2004-04-13 at 13:35, Parsons Technical Services wrote:
  Paul,
  
  Here are my configuration files or parts of for my development box.
  
  First in the server.xml set up a GlobalResource such as this:
  
  Of course replace the necesary data with your specifics.
  
 [snip]
 
 I have this.
 
 
 
  Next place this, at the bottom, in your web.xml for the app:
  
 [snip]
 
 I have this also..
 
 Both of these I have copied almost verbatim from the Tomcat JNDI
 DataSource HowTo.  I can paste you in my exact code if you think it
 would help.


Sorry,
I forgot to give the URL of the HowTo I have based my configs on.. :)

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html




-- 
Paul Richards [EMAIL PROTECTED]


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



Re: Tomcat and DataSource JNDI

2004-04-13 Thread Parsons Technical Services
Paul,

If manager is in this install then when you view the manager page it is
listed at the bottom.

If you are able to put the context.xml in the META-INF directory and it get
deployed via that context then you are on TC5. If this is TC4 then that is
part of your problem. It will deploy using the default context which will
not give you the link to the resource. Look in your logs for the deploy
actions and see if it is seeing the context.xml. While you are there also
see if any error are showing up in the logs.

Yeah, go ahead and post all your config file parts and the code snippet that
calls the database.

Doug

- Original Message - 
From: Paul Richards [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 4:12 PM
Subject: Re: Tomcat and DataSource JNDI


 On Tue, 2004-04-13 at 13:35, Parsons Technical Services wrote:
  Paul,
 
  Several questions:
 
  What version of Tomcat is this?

 Version 5 from what I can tell from the licence agreement.  (What is the
 correct way to determine?)

  What platform/OS are you on?

 Solaris 9 (MU3 applied) on Sparc

  Which JDK version?

 Sun J2SDK build 1.4.2-b28

 
  Typically this error is from a mis-configuration for the jndi.
 
  Here are my configuration files or parts of for my development box.
 
  First in the server.xml set up a GlobalResource such as this:
 
  Of course replace the necesary data with your specifics.
 
 [snip]

 I have this.



  Next place this, at the bottom, in your web.xml for the app:
 
 [snip]

 I have this also..

 Both of these I have copied almost verbatim from the Tomcat JNDI
 DataSource HowTo.  I can paste you in my exact code if you think it
 would help.


  For TC5: Now create a file in the META-INF directory. Name the file
  context.xml.
  In this file you will need to define the context and the link to the
jdbc.
  For TC4: Add this to the server.xml
 
 [snip]

 I have tried with and without the context.xml, it didn't make any
 difference.  I do not think that the JNDI binding is the real problem as
 when I change the calling code in my Servlet to look up the wrong JNDI
 name I get different errors.

 I think that the binding is there but it is somehow not getting the
 correct parameters.  In particular the driver class name.



  - Original Message - 
  From: Paul Richards [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, April 13, 2004 3:03 PM
  Subject: Tomcat and DataSource JNDI
 
 
   Hi,
   I am running Tomcat from the Java Webservices Developer Pack 1.3 and I
   cannot get JNDI working for mysql DataSource objects.  I have googled
   around for my error which is:
  
   java.sql.SQLException: Cannot load JDBC driver class 'null'
   at
 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
  a:529)
   at
 
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
  29)
  
  
   What I found on google was that this error is not just a problem with
  Mysql and that people have experienced it with Oracle and Postgresql
also:
  
 
http://archives.real-time.com/pipermail/tomcat-users/2002-October/081368.html
  
   I tried the suggestion in this last URL of using the exact orderings
of
   parameters in the server.xml file as shown in the Tomcat JNDI
DataSource
   HowTo.  Unfortunately this has not helped my case.
  
  
   I appreciate that a very similar thread to this is currently running
but
   that problem looks different to mine.
  
  
   I have failover code which created a Mysql datasource manually if the
   JNDI fails and the failover code works perfectly.  This makes me sure
   that my CLASSPATHs are correct.
  
  
  
   -- 
   Paul Richards [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]
 -- 
 Paul Richards [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]



Tomcat 5 and LDAP

2004-04-13 Thread Kumar Abhay-CAK203C
Hello,

I need to implement LDAP Authorization using T5 running on SunOS 5.9
I have no idea how to set up the stuff.
Any help, documentation suggestions will be appreciated

Thanks in advance
Best Regards
Abhay Kumar



[OT] T5 on UNIX and MS Access

2004-04-13 Thread Kumar Abhay-CAK203C
Hi All,

I need to connect MS Access dB that resides on a Win2k machine from a web based 
application running on T5 on UNIX (Sun OS 5.9)
I need to know which drivers I have to use, where to get these drives and how to 
connect to NT machine ?
Any help will be appreciated.

Thanks in advance 
Best Regards
Abhay Kumar



RE: tomcat 5, Tiles and encoding

2004-04-13 Thread Yansheng Lin
Hi, did you get this one figured out yet?  

If it's on a form, you might want to try method=posted and
enctype=multipart/form-data.

-Yan 


-Original Message-
From: Paulo Alvim [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 9:11 AM
To: [EMAIL PROTECTED]
Subject: tomcat 5, Tiles and encoding


Hi!

I've just moved my Struts+Tiles application from TC4 to TC5 and I'm now
having encoding problems when trying to post data...(portuguese special
characters aren't being recognized).

I've read topics about Tomcat 5+encoding issues related to included JSPs
(ex: http://forum.java.sun.com/thread.jsp?forum=45thread=495792) and since
I use Tiles and Tiles uses RequestDispatcher.include calls to include
markup jsp components in layouts, I'm trying this way...but the labels in my
page are ok - just my posted data have the problem.

Is there anyone with the same issue?

Thanks in advance!

Paulo Alvim





-
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 and DataSource JNDI

2004-04-13 Thread Paul Richards
On Tue, 2004-04-13 at 14:26, Parsons Technical Services wrote:
 Paul,
 
 If manager is in this install then when you view the manager page it is
 listed at the bottom.
 

It's not, this is the Web Services Developer Pack from Sun, so they have
changed all the names to just say JWSDP 1.3..  I'm sure it's Tomcat 5
though from some things mentioned in the JWSDP Tutorials.


 If you are able to put the context.xml in the META-INF directory and it get
 deployed via that context then you are on TC5. If this is TC4 then that is
 part of your problem. It will deploy using the default context which will
 not give you the link to the resource. Look in your logs for the deploy
 actions and see if it is seeing the context.xml. While you are there also
 see if any error are showing up in the logs.
 

This is all I see in the logs, nothing about my context.xml which is
definately in WEB-INF of my war file.  The Tomcat JNDI DataSource howto
I posted the URL to doesn't make mention of putting in a context.xml
file.  And my log is identical if I remove it..



2004-04-13 14:49:10 Manager: deploy: Deploying web application at
'/phoenix'
2004-04-13 14:49:10 Manager: Uploading WAR file to
/home/pr146755/jwsdp-1.3/webapps/phoenix.war
2004-04-13 14:49:10 Manager: Extracting XML file to
/home/pr146755/jwsdp-1.3/conf/Catalina/localhost/phoenix.xml
2004-04-13 14:49:10 Manager: install: Installing web application at
'/phoenix' from
'jar:file:/home/pr146755/jwsdp-1.3/webapps/phoenix.war!/'




 Yeah, go ahead and post all your config file parts and the code snippet that
 calls the database.
 

web.xml:

web-app
  display-namePhoenix web interface/display-name
  descriptionA web interface to the Phoenix system/description
  session-config
session-timeout60/session-timeout
  /session-config
  resource-ref
res-ref-namejdbc/PhoenixDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref 

  servlet
display-namePhoenixServlet/display-name
servlet-namePhoenixServlet/servlet-name
servlet-classphoenix.servlet.PhoenixServlet/servlet-class
  /servlet  
  servlet-mapping
servlet-namePhoenixServlet/servlet-name
url-pattern/Phoenix/url-pattern
  /servlet-mapping

/web-app



context.xml:

Context path=/phoenix
  docBase=. 
  debug=5
  ResourceLink name=jdbc/PhoenixDB global=jdbc/PhoenixDB/
/Context 


server.xml:

Server className=org.apache.catalina.core.StandardServer debug=0
port=8005 shutdown=SHUTDOWN

[ Snip listeners ]

  GlobalNamingResources
Environment description=Absolute Pathname of the JWSDP
Installation name=jwsdp.home override=true type=java.lang.String
value=/home/pr146755/jwsdp-1.3/
Environment name=simpleValue override=true
type=java.lang.Integer value=30/
Resource name=jdbc/PhoenixDB scope=Shareable
type=javax.sql.DataSource/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase scope=Shareable
type=org.apache.catalina.UserDatabase/
ResourceParams name=jdbc/PhoenixDB


!-- Have tried with and without the following commented block --
!--
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 --
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
nameusername/name
value/value
  /parameter
  parameter
namepassword/name
value/value
  /parameter
  parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
nameurl/name
valuejdbc:mysql://drusilla.central/phoenix/value
  /parameter
/ResourceParams
ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

[ Snip Service stuff ]

/Server


Code to access JNDI stuffs:

DataSource ds = null;
try {
Context ctx = new InitialContext();
ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/PhoenixDB);
if (ds == null)
throw new Exception(DS was null);
ds.getConnection(phoenix, ashes).close();
} catch (Exception e) {
out.println(JNDI lookup failed);
e.printStackTrace(out);
MysqlConnectionPoolDataSource dsi = new
com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource();
dsi.setURL(jdbc:mysql://drusilla.central/phoenix);
ds = dsi;
}

Connection con =  ds.getConnection(phoenix, ashes);
out.println(Created connection to database.);



 Doug
 
 - Original Message - 
 

Unable to access the manager/html context

2004-04-13 Thread Arieh Markel
I am trying to resolve the following problem.

1. I need to be able to embed Tomcat functionality in an application

2. The functionality requires the ability to:

	- have a default set of contexts (manager, jwsdp-catalog, perhaps admin)

	- have the ability to deploy webservices

a. I am able to get things running with using the Embedded class example.
 The problem is that it does not have all the infrastructure of Catalina that
 allows to auto-start the hierarchy of deployed webapps.
b. Instead of embedding Embedded, I moved to embed Catalina.

 I do so by instantiating a Catalina instance and invoking 'start'

 The problem that occurs is that I am unable to perform authentication
against the manager/html servlet.
Here is the log output:

2004-04-13 14:58:21 createObjectName with StandardEngine[Catalina]
2004-04-13 14:58:21 preRegister with Catalina:type=Logger
2004-04-13 14:58:21 SingleSignOn[localhost]: Started
2004-04-13 14:58:24 createObjectName with 
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/jwsdp-catalog]
2004-04-13 14:58:24 preRegister with 
Catalina:type=Logger,path=/jwsdp-catalog,host=localhost
2004-04-13 14:58:46 SingleSignOn[localhost]: Process request for 
'/manager/html'2004-04-13 14:58:46 SingleSignOn[localhost]:  Checking for SSO cookie
2004-04-13 14:58:46 SingleSignOn[localhost]:  SSO cookie is not present
2004-04-13 14:58:52 SingleSignOn[localhost]: Process request for 
'/manager/html'2004-04-13 14:58:52 SingleSignOn[localhost]:  Checking for SSO cookie
2004-04-13 14:58:52 SingleSignOn[localhost]:  SSO cookie is not present
2004-04-13 14:59:04 SingleSignOn[localhost]: Process request for 
'/manager/html'2004-04-13 14:59:04 SingleSignOn[localhost]:  Checking for SSO cookie
2004-04-13 14:59:04 SingleSignOn[localhost]:  SSO cookie is not present
2004-04-13 14:59:14 SingleSignOn[localhost]: Process request for '/jwsdp-catalog/'
2004-04-13 14:59:14 SingleSignOn[localhost]:  Checking for SSO cookie
2004-04-13 14:59:14 SingleSignOn[localhost]:  SSO cookie is not present

(I am not blocking cookies for the website).

The symptom is that the user authentication popup continues popping up, even 
though I configured the user who can be a manager.

I would appreciate help to point at what I may be doing wrong.

Thanks,

Arieh
--
 Arieh Markel   Sun Microsystems Inc.
 Network Storage500 Eldorado Blvd. MS UBRM05-194
 e-mail: [EMAIL PROTECTED]   Broomfield, CO 80021
 Pray for snow  Phone: (303) 272-8547 x78547
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat and DataSource JNDI

2004-04-13 Thread Arieh Markel
Paul,

I read the reply below on the tomcat-user list.

I am working here (BRM05) with JWSDP-1.3 and am able to access the manager.

Let me know what type of problem you have.

Arieh

Paul Richards wrote:
On Tue, 2004-04-13 at 14:26, Parsons Technical Services wrote:

Paul,

If manager is in this install then when you view the manager page it is
listed at the bottom.


It's not, this is the Web Services Developer Pack from Sun, so they have
changed all the names to just say JWSDP 1.3..  I'm sure it's Tomcat 5
though from some things mentioned in the JWSDP Tutorials.


If you are able to put the context.xml in the META-INF directory and it get
deployed via that context then you are on TC5. If this is TC4 then that is
part of your problem. It will deploy using the default context which will
not give you the link to the resource. Look in your logs for the deploy
actions and see if it is seeing the context.xml. While you are there also
see if any error are showing up in the logs.


This is all I see in the logs, nothing about my context.xml which is
definately in WEB-INF of my war file.  The Tomcat JNDI DataSource howto
I posted the URL to doesn't make mention of putting in a context.xml
file.  And my log is identical if I remove it..


2004-04-13 14:49:10 Manager: deploy: Deploying web application at
'/phoenix'
2004-04-13 14:49:10 Manager: Uploading WAR file to
/home/pr146755/jwsdp-1.3/webapps/phoenix.war
2004-04-13 14:49:10 Manager: Extracting XML file to
/home/pr146755/jwsdp-1.3/conf/Catalina/localhost/phoenix.xml
2004-04-13 14:49:10 Manager: install: Installing web application at
'/phoenix' from
'jar:file:/home/pr146755/jwsdp-1.3/webapps/phoenix.war!/'


--
 Arieh Markel   Sun Microsystems Inc.
 Network Storage500 Eldorado Blvd. MS UBRM05-194
 e-mail: [EMAIL PROTECTED]   Broomfield, CO 80021
 Pray for snow  Phone: (303) 272-8547 x78547
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: apache tomcat mod_jk index.jsp

2004-04-13 Thread Graham Bleach
On Tue, Apr 13, 2004 at 01:05:20PM -0400, James Kessler wrote:
 Hello,
 
 I'm having trouble loading index.jsp from the root directory.
 If i browse to www.foo.com/test/ everything works. If I browse to 
 www.foo.com (which points to the same directory) it shows the jsp tags. 
 I'm running apache 1.3, tomcat 4.1 and mod_jk 1.2 using ApacheConfig to 
 auto-create mod_jk.conf.

I can't see anything wrong with the fragments of the httpd.conf you posted,
but post all of it and the contents of this file:

 Include /usr/local/tomcat/conf/auto/mod_jk.conf

G
-- 
One of my most productive days was throwing away 1000 lines of code.
-- Ken Thompson

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



Re: Tomcat and DataSource JNDI

2004-04-13 Thread Parsons Technical Services
Paul,

Everything looks okay until here:

 DataSource ds = null;
 try {
 Context ctx = new InitialContext();
 ds =
 (DataSource)ctx.lookup(java:comp/env/jdbc/PhoenixDB);
 if (ds == null)
 throw new Exception(DS was null);
 ds.getConnection(phoenix, ashes).close();
 } catch (Exception e) {
 out.println(JNDI lookup failed);
 e.printStackTrace(out);
 MysqlConnectionPoolDataSource dsi = new
 com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource();
 dsi.setURL(jdbc:mysql://drusilla.central/phoenix);
 ds = dsi;
 }

 Connection con =  ds.getConnection(phoenix, ashes);
 out.println(Created connection to database.);

This line is trying to close the connection you just tried to get.
 ds.getConnection(phoenix, ashes).close();

This needs to be inside the catch block.
 Connection con =  ds.getConnection(phoenix, ashes);


Try this code:

 DataSource ds = null;
 Connection con = null;
 try {
 Context ctx = new InitialContext();
 ds = (DataSource)ctx.lookup(java:comp/env/jdbc/PhoenixDB);
 if (ds == null)
 throw new Exception(DS was null);
con = ds.getConnection();
 } catch (Exception e) {
 out.println(JNDI lookup failed);
 e.printStackTrace(out);
 MysqlConnectionPoolDataSource dsi = new
 com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource();
 dsi.setURL(jdbc:mysql://drusilla.central/phoenix);
 ds = dsi;
 con =  ds.getConnection(phoenix, ashes);
 }

 out.println(Created connection to database.);


See if it give you a connection. Also note that you were not getting a DS
was null exception, which is what you should have got if the ctx.lookup
failed.

Doug



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



Re: Tomcat and DataSource JNDI

2004-04-13 Thread Paul Richards
On Tue, 2004-04-13 at 15:38, Parsons Technical Services wrote:
 Paul,
 
 Everything looks okay until here:
 
  DataSource ds = null;
  try {
  Context ctx = new InitialContext();
  ds =
  (DataSource)ctx.lookup(java:comp/env/jdbc/PhoenixDB);
  if (ds == null)
  throw new Exception(DS was null);
  ds.getConnection(phoenix, ashes).close();
  } catch (Exception e) {
  out.println(JNDI lookup failed);
  e.printStackTrace(out);
  MysqlConnectionPoolDataSource dsi = new
  com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource();
  dsi.setURL(jdbc:mysql://drusilla.central/phoenix);
  ds = dsi;
  }
 
  Connection con =  ds.getConnection(phoenix, ashes);
  out.println(Created connection to database.);
 
 This line is trying to close the connection you just tried to get.
  ds.getConnection(phoenix, ashes).close();
 

This is deliberate.  This is to test that the DataSource I get actually
works.

 This needs to be inside the catch block.
  Connection con =  ds.getConnection(phoenix, ashes);
 

Em no.. If the JNDI test fails then the catch block gets the Mysql
datasource manually.

The code after the try/catch executes using the DataSource set by
whichever method worked.  It should work no matter where the DataSource
came from.


 
 Try this code:
 
  DataSource ds = null;
  Connection con = null;
  try {
  Context ctx = new InitialContext();
  ds = (DataSource)ctx.lookup(java:comp/env/jdbc/PhoenixDB);
  if (ds == null)
  throw new Exception(DS was null);
 con = ds.getConnection();
  } catch (Exception e) {
  out.println(JNDI lookup failed);
  e.printStackTrace(out);
  MysqlConnectionPoolDataSource dsi = new
  com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource();
  dsi.setURL(jdbc:mysql://drusilla.central/phoenix);
  ds = dsi;
  con =  ds.getConnection(phoenix, ashes);
  }
 
  out.println(Created connection to database.);
 
 
 See if it give you a connection. Also note that you were not getting a DS
 was null exception, which is what you should have got if the ctx.lookup
 failed.
 
 

Yes I know this.  This is why I said in my previous emails that I didn't think the 
JNDI binding was failing.  I suspect that it is more to do with the parameters being 
passed incorrectly from the server.xml..



-- 
Paul Richards [EMAIL PROTECTED]


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



struts validator

2004-04-13 Thread mike jackson
I'm using masks to validate some fields using the validator in struts.  But
my masks are getting extremely complex trying to deal with both lower case
and upper case possibilities.  Is there a way to specify that the mask
should be evaluated as case insensitive?

--mikej
-=--
mike jackson
[EMAIL PROTECTED]




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



FW: Tomcat 5 and LDAP

2004-04-13 Thread Patrick Willart
This is how I have had it configured once. It worked against an iPlanet LDAP
server.

  Realm className=org.apache.catalina.realm.JNDIRealm debug=99
 connectionURL=ldap://127.0.0.1:389;
 roleBase=ou=groups,dc=aptitudexchange,dc=com
 roleName=cn
 roleSearch=(uniqueMember={0})
 userPattern=uid={0},ou=people,dc=aptitudexchange,dc=com /

grts,

Patrick

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 1:40 PM
To: Tomcat Users List
Subject: Tomcat 5 and LDAP
Importance: High


Hello,

I need to implement LDAP Authorization using T5 running on SunOS 5.9
I have no idea how to set up the stuff.
Any help, documentation suggestions will be appreciated

Thanks in advance
Best Regards
Abhay Kumar



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



RE: struts validator

2004-04-13 Thread electroteque
Is there a form validator in struts, is it customizable ? If so maybe extend
the class ?

 -Original Message-
 From: mike jackson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 14, 2004 8:17 AM
 To: 'Tomcat Users List'
 Subject: struts validator


 I'm using masks to validate some fields using the validator in
 struts.  But
 my masks are getting extremely complex trying to deal with both lower case
 and upper case possibilities.  Is there a way to specify that the mask
 should be evaluated as case insensitive?

 --mikej
 -=--
 mike jackson
 [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: struts validator

2004-04-13 Thread mike jackson
Yes there is, it works quite nicely I don't really want to re-write it.  I
just want to know if there's a property I can set on the mask or something
to be case insensitive.

--mikej
-=--
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: electroteque [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 2:22 PM
 To: Tomcat Users List
 Subject: RE: struts validator
 
 Is there a form validator in struts, is it customizable ? If so maybe
 extend
 the class ?
 
  -Original Message-
  From: mike jackson [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 14, 2004 8:17 AM
  To: 'Tomcat Users List'
  Subject: struts validator
 
 
  I'm using masks to validate some fields using the validator in
  struts.  But
  my masks are getting extremely complex trying to deal with both lower
 case
  and upper case possibilities.  Is there a way to specify that the mask
  should be evaluated as case insensitive?
 
  --mikej
  -=--
  mike jackson
  [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: Tomcat 5 and LDAP

2004-04-13 Thread Kumar Abhay-CAK203C
Thanks Patric for the information,

After doing this setting, what code you have written in the Login Screen, Can you 
share with me?
What all JAR files are needed?

Best Regards
Abhay Kumar

-Original Message-
From: Patrick Willart [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 5:21 PM
To: Tomcat Users List
Subject: FW: Tomcat 5 and LDAP


This is how I have had it configured once. It worked against an iPlanet LDAP server.

  Realm className=org.apache.catalina.realm.JNDIRealm debug=99
 connectionURL=ldap://127.0.0.1:389;
 roleBase=ou=groups,dc=aptitudexchange,dc=com
 roleName=cn
 roleSearch=(uniqueMember={0})
 userPattern=uid={0},ou=people,dc=aptitudexchange,dc=com /

grts,

Patrick

-Original Message-
From: Kumar Abhay-CAK203C [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 13, 2004 1:40 PM
To: Tomcat Users List
Subject: Tomcat 5 and LDAP
Importance: High


Hello,

I need to implement LDAP Authorization using T5 running on SunOS 5.9 I have no idea 
how to set up the stuff. Any help, documentation suggestions will be appreciated

Thanks in advance
Best Regards
Abhay Kumar



-
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: Request parameters getting lost

2004-04-13 Thread David Rees
David Rees wrote:

 Let me guess, you're using SSL, have keep-alive enabled, and are using
 MSIE with all the latest patches.  Right?

 Turns out a patch released by MS around Feb 4 (KB832894) which causes
 MSIE to lose request parameters if the KeepAlive session expires, in
 other words, when the server drops the connection.

 The fix is to either tell your users to use a different browser (like
 Mozilla) or to disable KeepAlive under SSL for all MSIE browsers.

Looks like Microsoft released a patch today to fix the above bug.  See:
http://support.microsoft.com/default.aspx?kbid=831167

-Dave

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



Re: DefaultServlet character encoding

2004-04-13 Thread Hassan Schroeder
Yansheng Lin wrote:

You can use a filter
Yuck. I was afraid that was going to be the best answer; seems
really brain-dead that this isn't just configurable on at least
a context (if not url-pattern) basis. Oh, well!
btw, are you interested in joining an open-source project that's japanese
related?  I need help:).  see http://j2e-translate.sourceforge.net
Sounds interesting, but my knowledge of Japanese would fit into a
Kirin bottle cap :-)
But I will ask my client for this project if they're interested in
contributing; if so, will get back to you off-list.
Thanks much,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.



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


Re: Prevent context startup on servlet init failure?

2004-04-13 Thread Josh Rehman
Shapira, Yoav wrote:

Hi,
You can't do it from a servlet's init method.  System.exit is an ugly
solution: what if there are other webapps on the container?
 

Yes, very ugly.

Two options come to mind:
- Move this init code to a ServletContextListener's contextInitialized
method.  If an error occurs, throw a RuntimeException (or any subclass
thereof).  The container will mark the context as unavailable and
requests will be rejected with a 500-level response.
 

That sounds like the best/simplest option. We'll try it, thanks!

- Have the init servlet set some sort of marker variable in a singleton,
making the app unavailable.  Have a filter mapped to /* check this
marker variable for every request, and reject the request in whatever
way you see fit if the app is marked as unavailable.
Whatever you do, remember to handle the case of a webapp reload
appropriately.  (This is one reason why the ContextListener approach is
good).
 

That sounds good, too. There is one important benefit to this approach - 
the context could display something about why it's not available or some 
other nice thing rather than providing a generic 500 response.

I'm not sure what you mean about handling webapp reload. Is your concern 
that the singleton static field marker could still be hanging around 
in a possibly invalid state? Or is there something more to your words of 
caution?

Thanks again, Yoav.

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


  1   2   >