RE: Tomcat - username/password

2003-08-26 Thread Steve Kelem
I've followed this thread for a while.
I have the same problem.
I have read at least some of TFM, specifically, Configuring Manager 
Application Access

I have added a user with manager role.
I have restarted the tomcat server.
When I try to access http://localhost:8080/manager/html,
I get:
 HTTP Status 403 - Access to the requested resource has been denied



type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested 
resource has been denied) has been forbidden.



 Apache Tomcat/5.0.7

Prior to setting up a user with manager role, I did try to access this 
url and a password challenge was issued.
It didn't work, and ever since I have not been challenged again for 
username/password.
When I try to access admin/html, the username/password challenge is 
presented.
Yes, I do log out of admin when I'm done and want to try to access 
manager/html.
I do not have more than one java process running in the Task Manager 
(windows 2k), and that java process
does disappear when I stop the tomcat service.  The java task reappears 
when I restart the tomcat service.





The tag handler pooling issue in the current 4.1.27

2003-08-26 Thread Vernon Smith

To my knowledge, up to the 4.1.24 version of TC 4.1 has a tag handler pooling issue 
which leads to malfunctioning of tags.  Does anyone know what is the situation in the 
4.1.27 right now (fixed or not)? Whether it is still advisable to disable the option 
in the system configuration?

Thanks for your input.

Vernon




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



[SOLUTION] Script to precompile JSPs into Tomcat work folder

2003-08-26 Thread Filip Hanik
I know for a fact that I myself has been looking for a solution where I can precompile 
my JSPs without having to enter them as servlets into the web.xml

this script will allow you to do that, what you do beyond that is up to you,
http://cvs.apache.org/~fhanik/precompile.html
enjoy
Filip


Re: The tag handler pooling issue in the current 4.1.27

2003-08-26 Thread Tim Funk
Is it this
http://jakarta.apache.org/tomcat/faq/misc.html#tagbroken
or

http://jakarta.apache.org/tomcat/faq/misc.html#tagpool

-Tim

Vernon Smith wrote:
To my knowledge, up to the 4.1.24 version of TC 4.1 has a tag handler pooling issue which leads to malfunctioning of tags.  Does anyone know what is the situation in the 4.1.27 right now (fixed or not)? Whether it is still advisable to disable the option in the system configuration?

Thanks for your input.

Vernon 


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


The tag handler pooling issue in the current 4.1.27

2003-08-26 Thread Vernon Smith

To my knowledge, up to the 4.1.24 version of TC 4.1 has a tag handler pooling issue 
which leads to malfunctioning of tags.  Does anyone know what is the situation in the 
4.1.27 right now (fixed or not)? Whether it is still advisable to disable the option 
in the system configuration?

Thanks for your input.

Vernon




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



Re: The tag handler pooling issue in the current 4.1.27

2003-08-26 Thread Vernon Smith
Thanks, Tim, for your informaiton.

The applicaiton is getting by the issue with tag pool disabled. What the page and link 
page say the situation is as what it is.  

Is it this
http://jakarta.apache.org/tomcat/faq/misc.html#tagbroken

or

http://jakarta.apache.org/tomcat/faq/misc.html#tagpool

-Tim

Vernon Smith wrote:
 To my knowledge, up to the 4.1.24 version of TC 4.1 has a tag handler pooling issue 
 which leads to malfunctioning of tags.  Does anyone know what is the situation in 
 the 4.1.27 right now (fixed or not)? Whether it is still advisable to disable the 
 option in the system configuration?
 
 Thanks for your input.
 
 Vernon 


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






Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



Re: The tag handler pooling issue in the current 4.1.27

2003-08-26 Thread Vernon Smith
Thanks, Tim, for your informaiton.

The applicaiton is getting by the issue with tag pool disabled. What the page and link 
page say the situation is as what it is.  

Is it this
http://jakarta.apache.org/tomcat/faq/misc.html#tagbroken

or

http://jakarta.apache.org/tomcat/faq/misc.html#tagpool

-Tim

Vernon Smith wrote:
 To my knowledge, up to the 4.1.24 version of TC 4.1 has a tag handler pooling issue 
 which leads to malfunctioning of tags.  Does anyone know what is the situation in 
 the 4.1.27 right now (fixed or not)? Whether it is still advisable to disable the 
 option in the system configuration?
 
 Thanks for your input.
 
 Vernon 


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






Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



JSP vs C#/.NET

2003-08-26 Thread Xingqun Jiang
Hi, 

I am a pure java supporter. I don't like C# or .Net because of Microsoft's 
monopolization (sorry, kind of prejudice). However, I notice that more and more people 
pick up C#/.NET due to their new advantages. I also heard that C# is much faster than 
Java. My concern is, can Java/JSP still be competitive to Microsoft's products? I 
don't like to see java be beaten by Microsoft since it borrowed so many ideas from 
java to make up the so-called C#.

ok, feel free to talk about this topic. 

Lance

Re: Can not load JNDI DataSource in Servlet.init()

2003-08-26 Thread Peter Harrison
On Tue, 26 Aug 2003 09:04, Madere, Colin wrote:
 Well then it may be something else.  I'm essentially doing what you are
 with a JNDI datasource defined in the DefaultContext with nothing in the
 web.xml (except to pass along the JNDI name so it's not hard-coded).  It
 breaks for me (and a bunch of other people posting recently using 4.1.x)
 when I try to move that to GlobalNamingResources and use a ResourceLink.

I have tried various configurations. If there is nothing in the web.xml you 
get a different error, and the error occurs earlier, ie in init phase. If 
there is a reference in the web.xml the init of the connection pool appears 
to work, but fails with the null exception when you try to obtain a 
connection.

Bottom line is the same problem has two different sets of errors depending on 
the configuration. 

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



[ot] Re: JSP vs C#/.NET

2003-08-26 Thread Tim Funk
Please don't start a flame war. Please do that in Usenet.

This group is for solving tomcat problems, not discussing the merits of one
technology over another.

-Tim

Xingqun Jiang wrote:
 Hi, 
 
 I am a pure java supporter. I don't like C# or .Net because of Microsoft's 
 monopolization (sorry, kind of prejudice). However, I notice that more and more 
 people pick up C#/.NET due to their new advantages. I also heard that C# is much 
 faster than Java. My concern is, can Java/JSP still be competitive to Microsoft's 
 products? I don't like to see java be beaten by Microsoft since it borrowed so many 
 ideas from java to make up the so-called C#.
 
 ok, feel free to talk about this topic. 
 
 Lance


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



Periodic Closed Socket Exception with Tomcat Oracle

2003-08-26 Thread Tristan Stephens
Hi
I am using Tomcat 4.1 with Oracle 9i as the datasource. I can connect and
use the database just fine for a few hours, but then I always get a IO
Exception: Socket Closed Error. After this point because the socket is
closed, I can no longer access the database, and can't even reconnect to it.
The only way to fix the problem is to restart Tomcat. Since it's a small app
that I'm running, and not many users connect simultaneously, I rely on
connections that last the duration of a user session (they close if the
session times out after 5 minutes), rather than connecting/disconnecting per
call. 
I've been looking at this problem for a while, and have tried the following
solutions:
1. Putting in a verification string. I assumed that if the validation fails,
Tomcat tries to reopen the socket.
2. Using best practices with the database connections, statements and result
sets - the connections are pooled (and use a pooled datasource driver), I
close the statements and result sets after each transaction in a finally 
 clause.
3. Using the BasicDataSourceFactory (for pooling connections), rather than
Tomcat's default Datasource factory
4. Getting Tomcat to clean up abandoned database connections.
 
Here are the essentials of my server.xml file:
 
  GlobalNamingResources
Resource name=oracle92 scope=Shareable auth=Container
type=javax.sql.DataSource/
 
ResourceParams name=oracle92
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value300/value
  /parameter
  parameter
namelogAbandoned/name
valuetrue/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namevalidationQuery/name
valueselect * from dual/value
  /parameter
  parameter
nameusername/name
valueanyUser/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@localhost:1521:reqmgr/value
  /parameter
  parameter
namepassword/name
valueanyPassword/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
/ResourceParams
...
  Service className=org.apache.catalina.core.StandardService debug=0
name=Java Web Services Developer Pack
Engine className=org.apache.catalina.core.StandardEngine
debug=0 defaultHost=localhost
mapperClass=org.apache.catalina.core.StandardEngineMapper name=Standard
Engine
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=false debug=0 displayName=RequirementsManager
docBase=p:\RequirementsManager\build
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/RequirementsManager privileged=false reloadable=false
useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper
  ResourceLink global=oracle92 name=jdbc/reqmgr/
/Context
...
 
The connection code I use is:
private Connection connection;
private String dbName = java:comp/env/jdbc/reqmgr;

public void connect() throws SQLException,
NamingException
{
InitialContext ic = new
InitialContext();
System.out.println(Begin initial
context lookup);
DataSource ds = (DataSource)
ic.lookup(dbName);
System.out.println(ic.lookup ok. Begin
datasource.getConnection());
System.out.println(Datasource: +ds);
connection = ds.getConnection();
System.out.println(ds.getConnection()
ok);
 
// set transaction isolation level
// doesn't work in Oracle -
connection.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
 
connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);

}
 
After a few hours, I get the Socket Closed Exception at:
connection.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
 
connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
If anyone could help me with this problem, and explain 

Re: [ot] Re: JSP vs C#/.NET

2003-08-26 Thread rufio
on Mon, 25 Aug 2003 20:26:50 -0400 Tim Funk [EMAIL PROTECTED] wrote:

 Please don't start a flame war. Please do that in Usenet.
 
 This group is for solving tomcat problems, not discussing the merits
 of one technology over another.
 

Oh, so Usenet is for flame wars now?

Thanx
Rufio, the Usenet user

To Xingqun: don't ask such questions on java nor ms releated groups.

-- 
nmap -sS -O -p80,81 www.microsoft.com
[..]
Running: Linux 2.5.X
OS details: Linux Kernel 2.4.18 - 2.5.70 (X86)

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



Re: Servlet re-load question - install fix

2003-08-26 Thread Luke Vanderfluit
Hi,

There's a bug in 4.1.27

there's a fix at the tomcat site,
4.1.27-hotfix-22096.tar.gz
I unzipped the fix somewhere neutral then created the directories by
hand and copied the class file in (otherwise tomcat would complain a bit
when starting)

Also you can use the manager app,
from the startup page of tomcat 
http://localhost:8080/index.jsp
choose manager 
if you can't get in you'll have to edit /$CATALINA/conf/tomcat-users by
adding admin,manager to one of the roles (it's in the documentation)
restart tomcat for this to take effect

then when in manager, you can easily stop and start webapps, which is
much faster than restarting tomcat,

but with the above fix tomcat detects the changed classes.

hope this helps
kind regards,
Luke

On Tue, 2003-08-26 at 14:43, Atreya Basu wrote:
 I'm having trouble reloading servlets on Tomcat 4.1.27.
 
 The log files indicate that Tomcat notices that the servlet has 
 changed.  First time, after updating the servlet, I hit up the servlet I 
 get a 500 error and a stack trace.  Every time after that I get a 
 resource not available error.
 My context looks something like this:
 Context docBase= docRoot= reloadable=true
 
 Can anyone please tell me what I can do?  This is pretty serious because 
 I have to re-start Tomcat each time somone changes a servlet.
 
 Thanks in advance.
 
 
 Atreya
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 

when my computer smiles, I'm happy

Luke Vanderfluit 
Mobile: 0421 276 282


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



SSI includes

2003-08-26 Thread Luke Vanderfluit
Hi,
I'm running Java 1.4.2 on RedHat 9
I have enabled SSI in tomcat 4.1.27 
SSI directives work, 
for example:
!--#echo var=DATE_LOCAL --


but apparently you can call a servlet from a servlet block.
I can't get the 
servlet code=ServletName /servlet 
block to work,

any ideas on what I might be doing wrong

kind regards,
Luke

-- 

when my computer smiles, I'm happy

Luke Vanderfluit 
Mobile: 0421 276 282


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



The tag handler pooling issue in the current 4.1.27

2003-08-26 Thread Vernon Smith

To my knowledge, up to the 4.1.24 version of TC 4.1 has a tag handler pooling issue 
which leads to malfunctioning of tags.  Does anyone know what is the situation in the 
4.1.27 right now (fixed or not)? Whether it is still advisable to disable the option 
in the system configuration?

Thanks for your input.

Vernon




Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005

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



RE: Java/JSP vs C#/.NET

2003-08-26 Thread Shawn Zernik
Lance:

100% Multi-Platform Support: Microsoft doesn't have it.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net

-Original Message-
From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 4:57 PM
To: Tomcat Users List
Subject: Java/JSP vs C#/.NET


Hi,

I am a pure java supporter. I don't like C# or .Net because of Microsoft's
monopolization (sorry, kind of prejudice). However, I notice that more and
more people pick up C#/.NET due to their new advantages. I also heard that
C# is much faster than Java. My concern is, can Java/JSP still be
competitive to Microsoft's products? I don't like to see java be beaten by
Microsoft since it borrowed so many ideas from java to make up the so-called
C#.

ok, feel free to talk about this topic.

Lance


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



Any contractors from HK, S.E.Asia or India in this forum ?

2003-08-26 Thread achana
Hiya, all.
Any contractors in this forum specializing in java applet/servlet, a2s,
jndi in an apache2/tc4 environment and are from HK/China, S.E.Asia or
India ? Got a website?
TIA :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Periodic Closed Socket Exception with Tomcat Oracle

2003-08-26 Thread Tristan Stephens
Hi
I am using Tomcat 4.1 with Oracle 9i as the datasource. I can connect and
use the database just fine for a few hours, but then I always get a IO
Exception: Socket Closed Error. After this point because the socket is
closed, I can no longer access the database, and can't even reconnect to it.
The only way to fix the problem is to restart Tomcat. Since it's a small app
that I'm running, and not many users connect simultaneously, I rely on
connections that last the duration of a user session (they close if the
session times out after 5 minutes), rather than connecting/disconnecting per
call. 
I've been looking at this problem for a while, and have tried the following
solutions:
1. Putting in a verification string. I assumed that if the validation fails,
Tomcat tries to reopen the socket.
2. Using best practices with the database connections, statements and result
sets - the connections are pooled (and use a pooled datasource driver), I
close the statements and result sets after each transaction in a finally 
 clause.
3. Using the BasicDataSourceFactory (for pooling connections), rather than
Tomcat's default Datasource factory
4. Getting Tomcat to clean up abandoned database connections.
 
Here are the essentials of my server.xml file:
 
  GlobalNamingResources
Resource name=oracle92 scope=Shareable auth=Container
type=javax.sql.DataSource/
 
ResourceParams name=oracle92
  parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter
  parameter
nameremoveAbandonedTimeout/name
value300/value
  /parameter
  parameter
namelogAbandoned/name
valuetrue/value
  /parameter
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namevalidationQuery/name
valueselect * from dual/value
  /parameter
  parameter
nameusername/name
valueanyUser/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@localhost:1521:reqmgr/value
  /parameter
  parameter
namepassword/name
valueanyPassword/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
/ResourceParams
...
  Service className=org.apache.catalina.core.StandardService debug=0
name=Java Web Services Developer Pack
Engine className=org.apache.catalina.core.StandardEngine
debug=0 defaultHost=localhost
mapperClass=org.apache.catalina.core.StandardEngineMapper name=Standard
Engine
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true
charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true
crossContext=false debug=0 displayName=RequirementsManager
docBase=p:\RequirementsManager\build
mapperClass=org.apache.catalina.core.StandardContextMapper
path=/RequirementsManager privileged=false reloadable=false
useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper
  ResourceLink global=oracle92 name=jdbc/reqmgr/
/Context
...
 
The connection code I use is:
private Connection connection;
private String dbName = java:comp/env/jdbc/reqmgr;

public void connect() throws SQLException,
NamingException
{
InitialContext ic = new
InitialContext();
System.out.println(Begin initial
context lookup);
DataSource ds = (DataSource)
ic.lookup(dbName);
System.out.println(ic.lookup ok. Begin
datasource.getConnection());
System.out.println(Datasource: +ds);
connection = ds.getConnection();
System.out.println(ds.getConnection()
ok);
 
// set transaction isolation level
// doesn't work in Oracle -
connection.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
 
connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);

}
 
After a few hours, I get the Socket Closed Exception at:
connection.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
 
connection.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
If anyone could help me with this problem, and explain 

RE: crypto problem

2003-08-26 Thread Rudolf Schamberger


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 25, 2003 11:23 PM
 To: [EMAIL PROTECTED]
 Subject: Re:crypto problem
 
 
 Maxime Colas des Francs wrote:
 
  I attempt to use openpgp in my web application
  For that i use an external provider.
  I put jar files in WEB-INF/lib and in a 'load-on-startup' 
 servlet, i 
  call
  Security.addProvider() and i read a public key from a file for futur
  encryptions.
  

 
 I hope I can...
 
 What JDK version are you using, 1.3 or 1.4? 1.4 didn't like 
 it when I had a Security.addProvider() line in my code. You 
 might check out the cryptography forum at 
 http://forums.java.com  - that was VERY  helpful to me.


If you have Problems with Security.addProvider call you might
try to register the provider statically in your java.security 
file. (should be in the jre/lib/security/ dir) 

Try to add the provider:

security.provider.4=com.organization.ProviderXYZName

It might be, that the Original Provider must reside in first
position.

  H2H, Rudolf
 


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



HttpServletResponse.encodeURL breaks form post

2003-08-26 Thread Neil Aggarwal
Hello:

I am getting this error from Tomcat when I submit a form with cookies
turned off:

HTTP Status 404 - /gen;jsessionid=B5604E6D2313D02F2DFB59E7D1B63324


type Status report
message /gen;jsessionid=B5604E6D2313D02F2DFB59E7D1B63324
description The requested resource
(/gen;jsessionid=B5604E6D2313D02F2DFB59E7D1B63324) is not available.


Apache Tomcat/4.1.24

With cookies turned on, everything works fine.

Here is what is *really* strange:

This is occurring every time in a page that contains this form:
form name=groupList action=%= response.encodeURL(/gen/) %
method=post
But, on another page, this form declaration causes no problems:
form name=signin method=post action=%=
response.encodeURL(/gen) %

I tried to replicate the problem on a test machine and it did not 
have the same problem.

I can repeat it as many times as I would like on the groupList form, but
it does not occur anywhere else.

Has anyone see this?

Thanks, 
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



No need for catalina.policy?

2003-08-26 Thread achana
Hi
Please tell me once more.
Am I right in assumng that I don't really need catalina.policy if I use
httpd.conf to control access ?
If t, how do they interact ?
TIA :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Connector or Apache and Tomcat

2003-08-26 Thread Madere, Colin
If you're not concerned with having lots of users hitting the static
content, you can serve it with Tomcat (meaning not use Apache and a
connector), though there may be reasons of performance and security that you
may want to have Apache in front anyway.

To set up what you want just with Tomcat, however, you have to run it on
port 80, which you'll find ways and reasons not to by searching Google and
this list for Tomcat port 80 or some such.

But basically look at the documentation for setting up Contexts
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html) and
set up one for each static dir (or however you'd like it to be available).

Setting up the connector and Apache is a bit more involved.  You'll have to
look at the docs, search this list, go to John Turner's HOWTO, try a few
things and then come back to the list :)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 4:32 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Reg: Connector or Apache and Tomcat 


Hi
I am running a few struts-based webapp using tomcat. I access them using
www.xyz.org/webappA, www.xyz.org/webappB, www.xyz.org/webappC. We have an
old website consisting of static html. we want to merge this old website to
the tomcat. The old webiste had stuff something in this format
www.old.org/ModA, www.old.org/ModB, www.old.ModC etc..I would like it to be
so that i can all the entire content from one IP like
www.xyz.org/webappA,www.xyz,org/webappB, www/xyz.org/modA(static HTML
module), www.xyz.org/modB(static HTML module. Plz. let me know how i can do
this. I dont even know if i should use connectors for this. I am not getting
any resources on this plz. help me

Thank you

Mohan



-
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: Modjk2 error log

2003-08-26 Thread Thébault, Médérick
To follow the thread,

It is not compulsory to set uri mapping in workers2.properties file. Just adding 
jkuriset in host section (virtual as well) of httpd.conf will do the job.

But one more thing please,

With httpd.conf having 
#
VirtualHost *
ServerName foo3.com

Location /TruckEnqui/
JkUriSet worker ajp13:foo3.com:8009
/Location
/VirtualHost

VirtualHost *
ServerName foo2.com

Location /TruckEnqui/
JkUriSet worker ajp13:foo2.com:8009
/Location
/VirtualHost

VirtualHost *
ServerName foo1.com

Location /unicorn2xml
JkUriSet worker ajp13:foo1.com:8009
/Location

Location /xml2unicorn
JkUriSet worker ajp13:foo1.com:8009
/Location

Location /xi
JkUriSet worker ajp13:foo1.com:8009
/Location
/VirtualHost
#

and workers2.properties having

#
[logger.apache2]
level=DEBUG

[shm]
file=c:/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:foo2.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:foo3.com:8009]
port=8009
host=127.0.0.1

# Example socket channel, override port and host.
[channel.socket:foo1.com:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:foo2.com:8009]
channel=channel.socket:foo2.com:8009

# define the worker
[ajp13:foo3.com:8009]
channel=channel.socket:foo3.com:8009

# define the worker
[ajp13:foo1.com:8009]
channel=channel.socket:foo1.com:8009

[status:status]
[uri:/status/*]
group=status:status
#

http://localhost/Status gives 3 entries for ajp13 runtime info (which is correct or 
least what we want).

But for the uri runtime info section, there is no mention about the entry for the 
foo3.com host.

ID  namehosturi group  
 context 
0   nullnull   
 null
0   /TruckEnqui/*   /TruckEnqui/ajp13:foo2.com:8009 /
0   /unicorn2xml*   /unicorn2xmlajp13:foo1.com:8009 /
0   /xml2unicorn*   /xml2unicornajp13:foo1.com:8009 /
0   /xi *   /xi ajp13:foo1.com:8009
 /
0   /status/*   *   /status/*   status:status  
 /
0   *   *   nullnull   
 null
0   */  *   /   lb:lb  
 /



Does anyone see why there is no entry for this host?

If you have any other comments (Is it normal that in the array above the id is 
always the same although ajp13 runtime info section gives 3 ids (from 0 to 2)?

Regards

Mederick



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



Re: mysql connection pooling problem

2003-08-26 Thread Christopher Garrett
This is an absolute shot in the dark, but I believe you might have to put a JAR
with JDBC drivers into WEB-INF/lib.

Christopher Garrett III
Inixoma, Incorporated

- Original Message -
From: Eugene Lee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 25, 2003 8:13 AM
Subject: Re: mysql connection pooling problem


Hi James,

I tried inserting the context-param into web-app, no effect.

But thanks for catching the typo in my JSP code in the lookup() line.
Unfortunately, this had no effect either.  I still get the infamous
Cannot load JDBC driver class 'null' error... hurmmm...

Any suggestions from others are appreciated too!  Anyone?


On Sat, Aug 23, 2003 at 11:09:36AM -0600, James Harman wrote:
: Eugene Lee wrote:
: On Sat, Aug 23, 2003 at 08:59:05AM -0600, James Harman wrote:
: :
: : I noticed that in the web.xml you have the jbdc resource in a
: : resource-ref.  In my stuff I have it as a context-param like this
: :
: : context-param
: :param-name
: :  javax.servlet.jsp.jstl.sql.dataSource
: :/param-name
: :param-value
: :jdbc/testdev
: :/param-value
: :  /context-param
: :
: : This comes right after the web-app element in the web.xml file.
: :
: : I am not experienced enough to know the difference between context-param
: : and resource-ref, but this seems to work for me.
:
: Another thing you might look at is your jsp code.  You have
:
: DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/testdev);
:
: you probably want
:
: DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/testdev);
:
: notice that there is no / before comp.


--
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/

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



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



Tomcat 4.1.27 rpm files

2003-08-26 Thread Purvis Robert
I have been waiting for the RPM format files to appear on the Tomcat
download site, but they don't seem to be there yet. Is there any plan to
make Tomcat 4.1.27 available as RPMs? I personally always prefer installing
from RPM as its much easier to control the uninstall process.

Rob

---
Robert Purvis

e-mail: [EMAIL PROTECTED]


This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.


Webdav and security

2003-08-26 Thread Duncan Strang
 
Hi
 
I have included the  org.apache.catalina.servlets.WebdavServlet
in the web.xml descriptor for my application
 
servlet
 servlet-nameWebdavServlet/servlet-name
 
servlet-classorg.apache.catalina.servlets.WebdavServlet/servlet-class

 ...
 
reading the minimal documentation I have been able to find it appears
that  to enable webdav functionality in my application all requests
should go through the webdav servlet
so I set the mapping up as follows(I do have other Servlets of course)
 
 servlet-mapping
 servlet-nameWebdavServlet/servlet-name
 url-pattern//url-pattern
  /servlet-mapping
 
Now, everything works fine.
 
I can view my site and open a web folder from IE6
 
It all falls down when I try to add security however.
 
If all requests have to go through the webdav servlet, then if I assign
the following constraint
 
security-constraint
 web-resource-collection
web-resource-nameThe Webdav bit/web-resource-name
url-pattern/*/url-pattern !-- or just
url-pattern//url-pattern --
 /web-resource-collection
 auth-constraint
role-namesomerole/role-name
 /auth-constraint
   /security-constraint
 
this means that no one can see my site unless they log in . Which is not
what I want of course.
I want anyone to be able to view the site but anyone trying to modify
the site should be required to log in.
 
How do I enable security over the webdav functionality without locking
out anyone that simply wants to view my site ?
 
Cheers
Confused


RE: mysql connection pooling problem

2003-08-26 Thread Purvis Robert
Or put it into tomcat4/common/lib - because then all web applications can
access the JDBC driver.

Rob

-Original Message-
From: Christopher Garrett [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 10:43
To: Tomcat Users List
Subject: Re: mysql connection pooling problem


This is an absolute shot in the dark, but I believe you might have to put a
JAR with JDBC drivers into WEB-INF/lib.

Christopher Garrett III
Inixoma, Incorporated

- Original Message -
From: Eugene Lee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 25, 2003 8:13 AM
Subject: Re: mysql connection pooling problem


Hi James,

I tried inserting the context-param into web-app, no effect.

But thanks for catching the typo in my JSP code in the lookup() line.
Unfortunately, this had no effect either.  I still get the infamous Cannot
load JDBC driver class 'null' error... hurmmm...

Any suggestions from others are appreciated too!  Anyone?


On Sat, Aug 23, 2003 at 11:09:36AM -0600, James Harman wrote:
: Eugene Lee wrote:
: On Sat, Aug 23, 2003 at 08:59:05AM -0600, James Harman wrote:
: :
: : I noticed that in the web.xml you have the jbdc resource in a
: : resource-ref.  In my stuff I have it as a context-param like this
: :
: : context-param
: :param-name
: :  javax.servlet.jsp.jstl.sql.dataSource
: :/param-name
: :param-value
: :jdbc/testdev
: :/param-value
: :  /context-param
: :
: : This comes right after the web-app element in the web.xml file.
: :
: : I am not experienced enough to know the difference between
context-param
: : and resource-ref, but this seems to work for me.
:
: Another thing you might look at is your jsp code.  You have
:
: DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/testdev);
:
: you probably want
:
: DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/testdev);
:
: notice that there is no / before comp.


--
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/

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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.

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



RE: Tomcat 3.2.4 behind a proxy

2003-08-26 Thread Armenio Pinto
Hi there,

 I'm replying because I haven't received any answers yet. Is the list
working correctly (I received the e-mail, so...)? Is the question confusion
in any way? I really need to solve this problem, because currently I can't
make Tomcat available to the users. Thanks in advance,

Arménio Pinto


-Original Message-
From: Armenio Pinto [mailto:[EMAIL PROTECTED]
Sent: segunda-feira, 25 de Agosto de 2003 16:41
To: 'Tomcat Users List'
Subject: Tomcat 3.2.4 behind a proxy


Hi there,

 I'm current using Tomcat 3.2.4 in a private network, and want to give
access to external clients through an Apache server configured as proxy. The
problem is that Tomcat is changing request addresses... I know how to solve
this problem in Apache (simply turn UseCanonicalName off), but how can I do
it in Tomcat?

For example: if the proxy address to Tomcat is www.test.pt/tomcat, it seems
that Tomcat changes it to www.othersidetest.pt:8080.

Thanks in advance,
Arménio Pinto

-
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 4.1.27 rpm files

2003-08-26 Thread Tarun Gandhi
You can download the tar file and extract in a directory. At any time if you
want to uninstall tomcat, just remove that directory.

- Original Message -
From: Purvis Robert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 3:46 PM
Subject: Tomcat 4.1.27 rpm files


 I have been waiting for the RPM format files to appear on the Tomcat
 download site, but they don't seem to be there yet. Is there any plan to
 make Tomcat 4.1.27 available as RPMs? I personally always prefer
installing
 from RPM as its much easier to control the uninstall process.

 Rob

 ---
 Robert Purvis

 e-mail: [EMAIL PROTECTED]


 This e-mail is confidential and privileged.  If you are not the intended
 recipient please accept our apologies;  please do not disclose, copy or
 distribute information in this e-mail or take any action in reliance on
its
 contents:  to do so is strictly prohibited and may be unlawful.  Please
 inform us that this message has gone astray before deleting it.  Thank you
 for your co-operation.




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



RE: [ANN] Apache Tomcat 5.0.9 Beta released

2003-08-26 Thread Johan Wasserman - CPX Mngd Services
HOT!

Any spec's available on setting up and running under Apache? Did it
really change all that much?

Thanks from a loyal supporter.

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



Re: Tomcat 4.1.27 rpm files

2003-08-26 Thread John Turner
To uninstall Tomcat:

rm -rf $CATALINA_HOME

John

Purvis Robert wrote:

I have been waiting for the RPM format files to appear on the Tomcat
download site, but they don't seem to be there yet. Is there any plan to
make Tomcat 4.1.27 available as RPMs? I personally always prefer installing
from RPM as its much easier to control the uninstall process.
Rob

---
Robert Purvis
e-mail: [EMAIL PROTECTED]

This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.


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


IncompatibleClassChangeError when in Action class but not in a JSP for ResultSet

2003-08-26 Thread Allistair Crossley
I have a Struts / Tomcat 5 setup and I use the same JDK 1.4.1 to compile classes as 
Tomcat uses to run.

I have the following code in the action class

DBConnectionFactory db = 
(DBConnectionFactory)getServlet().getServletContext().getAttribute(db);
Connection c = db.getConnection();
c.setCatalog(cat);
Statement s = c.createStatement();
ResultSet rs = s.executeQuery(SELECT * FROM Users);
... 
c.close();
s.close();
rs.close();

And in the JSP

DBConnectionFactory db = (DBConnectionFactory)application.getAttribute(db);
Connection c = db.getConnection();
c.setCatalog(cat);
Statement s = c.createStatement();
ResultSet rs = s.executeQuery(SELECT * FROM Users);
... 
c.close();
s.close();
rs.close();

The JSP version runs just fine and I get a list of users. In the class, I get the 
following error, and I seem to have narrowed it down to using the ResultSet. I have 
recompiled ALL my code with the same JDK that Tomcat is using. In any case, it works 
in the JSP. Any ideas?

ResultSet rs = s.executeQuery(SELECT * FROM Users);

SEVERE: An exception or error occurred in the container during the request processing
java.lang.IncompatibleClassChangeError: org.apache.log4j.spi.ThrowableInformation
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1265)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1225)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at org.apache.log4j.spi.LoggingEvent.init(LoggingEvent.java:145)
at org.apache.log4j.Category.forcedLog(Category.java:372)
at org.apache.log4j.Category.log(Category.java:864)
at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:192)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:287)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:205)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:177)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:562)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:203)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:637)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:488)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:536)


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: mysql connection pooling problem

2003-08-26 Thread Eugene Lee
On Tue, Aug 26, 2003 at 05:43:02AM -0400, Christopher Garrett wrote:
: 
: This is an absolute shot in the dark, but I believe you might have to
: put a JAR with JDBC drivers into WEB-INF/lib.

Hi Christopher,

Thanks for the suggestion.  But as I mentioned in my original message,
I already tried this to no avail... :-/


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/

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



Re: mysql connection pooling problem

2003-08-26 Thread Eugene Lee
On Tue, Aug 26, 2003 at 11:24:21AM +0100, Purvis, Robert wrote:
: 
: Or put it into tomcat4/common/lib - because then all web applications can
: access the JDBC driver.

Hi Rob,

Thanks for the suggestion.  But as I mentioned in my original message,
I already tried this to no avail.  I went through all the usual spots
($CATALINA_HOME/common/lib, $JAVA_HOME/jre/lib/ext, and even my webapp's
WEB-INF/lib) and got nada.


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/

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



RE: Java/JSP vs C#/.NET

2003-08-26 Thread Shapira, Yoav

Howdy,
I don't want to pollute this list further with another flame war,
especially since responses you'll get here might be biased (tomcat being
a java product...).  Check TheServerSide, any number of articles
comparing the two.  As always, each has pros and cons.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 5:57 PM
To: Tomcat Users List
Subject: Java/JSP vs C#/.NET

Hi,

I am a pure java supporter. I don't like C# or .Net because of
Microsoft's
monopolization (sorry, kind of prejudice). However, I notice that more
and
more people pick up C#/.NET due to their new advantages. I also heard
that
C# is much faster than Java. My concern is, can Java/JSP still be
competitive to Microsoft's products? I don't like to see java be beaten
by
Microsoft since it borrowed so many ideas from java to make up the so-
called
C#.

ok, feel free to talk about this topic.

Lance


-
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: Question about Tomcat serving HTML pages

2003-08-26 Thread Shapira, Yoav

Howdy,

The only Tomcat built-in protection is Realms:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html

That's a misleading statement.  Tomcat supports the full set of security
access controls as defined in the Servlet Specification, v2.3, chapter
12.  Realms are merely an implementation detail specific to the tomcat
container that many users need not worry about it unless they want to
create their own.

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: No need for catalina.policy?

2003-08-26 Thread Shapira, Yoav

Howdy,
No, you're not right.  The two provide different views of security.
Httpd.conf controls apache, not tomcat, and does nothing to prevent, for
example, the execution of malicious applets.  Catalina.policy or
whatever you want to call the policy file is used by the JVM security
manager to enforce its policies, including for example applet
sandboxing.  If you're not clear what the security manager does, read up
the JDK documentation for it.

If should use them both if you're concerned about security.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 12:14 AM
To: [EMAIL PROTECTED]
Subject: No need for catalina.policy?

Hi
Please tell me once more.
Am I right in assumng that I don't really need catalina.policy if I use
httpd.conf to control access ?
If t, how do they interact ?
TIA :-)



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]



The requested resource (/admsite/servlet/servlet.servletAdmSite) is not available

2003-08-26 Thread L.Karam
Hi,
When I try to access a servlet I get the following message:

HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite


type Status report
message /admsite/servlet/servlet.servletAdmSite
description The requested resource (/admsite/servlet/servlet.servletAdmSite)
is not available.


Apache Tomcat/4.1.24


I have verified in the tomcat manager that my application is correctly
started.

I have also created the WEB.XML in the Web-Inf folder, and it looks as this:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
 servlet
 servlet-nameservletAdmSite/servlet-name
 servlet-classservlet.servletAdmSite/servlet-class
 /servlet
   servlet-mapping
servlet-nameservletAdmSite/servlet-name
url-pattern/admsite/url-pattern
   /servlet-mapping
/web-app


My directory tree:
webapps/admsite/web-inf/classes/servlet

Please, can anybody help me solve this?

Thanks

Leandro Karam


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



RE: The requested resource (/admsite/servlet/servlet.servletAdmSite) is not available

2003-08-26 Thread Shapira, Yoav

Howdy,
With your mapping the URL to access your servlet is simply /admsite not
/admsite/servlet/servlet.servletAdmSite.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: L.Karam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 9:17 AM
To: [EMAIL PROTECTED]
Subject: The requested resource
(/admsite/servlet/servlet.servletAdmSite)
is not available

Hi,
When I try to access a servlet I get the following message:

HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
---

-

type Status report
message /admsite/servlet/servlet.servletAdmSite
description The requested resource
(/admsite/servlet/servlet.servletAdmSite)
is not available.
---

-

Apache Tomcat/4.1.24


I have verified in the tomcat manager that my application is correctly
started.

I have also created the WEB.XML in the Web-Inf folder, and it looks as
this:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
 servlet
 servlet-nameservletAdmSite/servlet-name
 servlet-classservlet.servletAdmSite/servlet-class
 /servlet
   servlet-mapping
servlet-nameservletAdmSite/servlet-name
url-pattern/admsite/url-pattern
   /servlet-mapping
/web-app


My directory tree:
webapps/admsite/web-inf/classes/servlet

Please, can anybody help me solve this?

Thanks

Leandro Karam


-
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: mysql connection pooling problem

2003-08-26 Thread Paul
Did you try this directory (to place jdbc jar files)?

%CATALINA_HOME%\shared\lib\ojdbc14.jar

I have a connection pool setup for Oracle, and the .jsp pages (and/or
tomcat) can find the classes used if the jdbc drivers are placed in the
above directory.
-pl

- Original Message - 
From: Eugene Lee [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 8:40 AM
Subject: Re: mysql connection pooling problem


 On Tue, Aug 26, 2003 at 11:24:21AM +0100, Purvis, Robert wrote:
 :
 : Or put it into tomcat4/common/lib - because then all web applications
can
 : access the JDBC driver.

 Hi Rob,

 Thanks for the suggestion.  But as I mentioned in my original message,
 I already tried this to no avail.  I went through all the usual spots
 ($CATALINA_HOME/common/lib, $JAVA_HOME/jre/lib/ext, and even my webapp's
 WEB-INF/lib) and got nada.


 -- 
 Eugene Lee
 http://www.coxar.pwp.blueyonder.co.uk/

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





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



Tomcat locks jar of undeployed contexts

2003-08-26 Thread Jeroen Breedveld
Hi all,

Tomcat seems to lock some jars (in my case struts.jar) it uses in a
context after that context has been removed. Can someone please tell me
if it is suppose to do this? It keeps me from cleaning up the directory
I deployed the context in.

The deploy and undeploy proces of my webapp looks like this

  target name=--webapp-deploy depends=--webapp-properties
copy file=${webapp.name}.xml todir=${tomcat.dist.dir}/webapps/
replace file=${tomcat.dist.dir}/webapps/${webapp.name}.xml
token=@@@ value=${basedir}/../deploy/${webapp}/
install url=${tomcat.host}/manager username=${tomcat.username}
password=${tomcat.password} path=/${webapp.name}
config=file://${basedir}/${tomcat.dist.dir}/webapps/${webapp.name}.xml
/
  /target

  target name=--webapp-undeploy depends=--webapp-properties
remove url=${tomcat.host}/manager username=${tomcat.username}
password=${tomcat.password} path=/${webapp.name}/
delete file=${tomcat.dist.dir}/webapps/${webapp.name}.xml/
delete dir=${deploy.dir} failonerror=false/
  /target

Thanks and regards for any help,

Jeroen

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



Re: mysql connection pooling problem

2003-08-26 Thread Eugene Lee
On Tue, Aug 26, 2003 at 09:28:14AM -0400, Paul wrote:
: Eugene Lee responded:
:  On Tue, Aug 26, 2003 at 11:24:21AM +0100, Purvis, Robert wrote:
:  :
:  : Or put it into tomcat4/common/lib - because then all web
:  : applications can access the JDBC driver.
: 
:  Thanks for the suggestion.  But as I mentioned in my original message,
:  I already tried this to no avail.  I went through all the usual spots
:  ($CATALINA_HOME/common/lib, $JAVA_HOME/jre/lib/ext, and even my webapp's
:  WEB-INF/lib) and got nada.
: 
: Did you try this directory (to place jdbc jar files)?
: 
: %CATALINA_HOME%\shared\lib\ojdbc14.jar

Hi Paul,

As I mentioned in my original message, I have already tried installing
the driver, MySQL Connector/J 3.0.8, in all of the directories mentioned
above (note that %CATALINA_HOME%\shared\lib\ is the same thing as
$CATALINA_HOME/common/lib on a Unix platform).


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/

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



Re: The requested resource (/admsite/servlet/servlet.servletAdmSite) is not available

2003-08-26 Thread L.Karam
Well, my servlet is in the directory: /admsite/servlet and is named
servletAdmSite.
What should be typed here: url-pattern???/url-pattern
And what is the URL to be adressed to, i.e: http://localhost:8080/???

Tks



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:18 AM
Subject: RE: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available



Howdy,
With your mapping the URL to access your servlet is simply /admsite not
/admsite/servlet/servlet.servletAdmSite.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: L.Karam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 9:17 AM
To: [EMAIL PROTECTED]
Subject: The requested resource
(/admsite/servlet/servlet.servletAdmSite)
is not available

Hi,
When I try to access a servlet I get the following message:

HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
---

-

type Status report
message /admsite/servlet/servlet.servletAdmSite
description The requested resource
(/admsite/servlet/servlet.servletAdmSite)
is not available.
---

-

Apache Tomcat/4.1.24


I have verified in the tomcat manager that my application is correctly
started.

I have also created the WEB.XML in the Web-Inf folder, and it looks as
this:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
 servlet
 servlet-nameservletAdmSite/servlet-name
 servlet-classservlet.servletAdmSite/servlet-class
 /servlet
   servlet-mapping
servlet-nameservletAdmSite/servlet-name
url-pattern/admsite/url-pattern
   /servlet-mapping
/web-app


My directory tree:
webapps/admsite/web-inf/classes/servlet

Please, can anybody help me solve this?

Thanks

Leandro Karam


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


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



Re: The requested resource (/admsite/servlet/servlet.servletAdmSite)is not available

2003-08-26 Thread John Turner
??? = whatever you put in url-pattern.  That is Yoav's point...it is up 
to you.  Your choice.

John

L.Karam wrote:

Well, my servlet is in the directory: /admsite/servlet and is named
servletAdmSite.
What should be typed here: url-pattern???/url-pattern
And what is the URL to be adressed to, i.e: http://localhost:8080/???
Tks



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:18 AM
Subject: RE: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available


Howdy,
With your mapping the URL to access your servlet is simply /admsite not
/admsite/servlet/servlet.servletAdmSite.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: L.Karam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 9:17 AM
To: [EMAIL PROTECTED]
Subject: The requested resource
(/admsite/servlet/servlet.servletAdmSite)

is not available

Hi,
When I try to access a servlet I get the following message:

HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
---


-

type Status report
message /admsite/servlet/servlet.servletAdmSite
description The requested resource
(/admsite/servlet/servlet.servletAdmSite)
is not available.
---


-

Apache Tomcat/4.1.24

I have verified in the tomcat manager that my application is correctly
started.
I have also created the WEB.XML in the Web-Inf folder, and it looks as
this:

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
servlet
   servlet-nameservletAdmSite/servlet-name
   servlet-classservlet.servletAdmSite/servlet-class
/servlet
 servlet-mapping
  servlet-nameservletAdmSite/servlet-name
  url-pattern/admsite/url-pattern
 /servlet-mapping
/web-app

My directory tree:
webapps/admsite/web-inf/classes/servlet
Please, can anybody help me solve this?

Thanks

Leandro Karam

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


Upgrading Tomcat to 4.1.27

2003-08-26 Thread Bond


Hello Everyone, I have a question,

  I want to upgrade our current Tomcat instalation
4.1.14 to the newer 4.1.27.   However I can't find any
How Tos on this topic.  Do I just install the new
version on top of my old one or is it a new install???
 Not sure how to proceed, any advice would be
appreciated.

Thanks in advance,


Miguel

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem

2003-08-26 Thread Paul
So, does anybody know, is this a bug in Tomcat, or in Apache, or is there a
fix to it, because i am having the same problem???
-pl

- Original Message - 
From: Atreya Basu [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, August 25, 2003 4:08 PM
Subject: RE: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem


 Hi,

 I have the exact problem.  I'm not sure what's going on.

 _
 Atreya Basu
 Developer,
 Greenfield Research Inc.
 e-mail: atreya (at) greenfieldresearch (dot) ca

 -Original Message-
 From: Jason Symons [mailto:[EMAIL PROTECTED]
 Sent: August 25, 2003 3:24 PM
 To: [EMAIL PROTECTED]
 Subject: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem

 I've run into a problem with my setup of Apache 2.0.47, Tomcat 4.1.27
 LE, JDK1.4, and JK2 connected using JNI. If I stop the Apache service,
 and then restart it, I get a 505 Server Error unless I either reload the
 page a few times, or load a page that isn't passed to Tomcat first, once
 that's done everything works fine. This problem only occurs if the
 Apache service is stopped, if I reboot the machine, everything works
 fine. Has anybody else encountered this problem, if so does anybody know
 what is causing it, or is this just something I shouldn't worry about as
 it's only a minor inconvenience?

 JS




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



Configuring Tomcat to NOT run as Root

2003-08-26 Thread Scott W Ricketts
I am helping set up a Citrix NFuse server running on Solaris, using Tomcat 
and Apache 1.3.  The default install for NFuse 1.7 does not fire up 
Apache, rather it calls Tomcat to start alone.  The default also has this 
running as root, something I am very uncomfortable with.  I have Googled 
and searched archives, and whenever mentioned, it sounds rather trivial 
but I cannot find where in my config files to set this to run as 'nobody'.

I am totally clueless with Tomcat, can anyone help?





This email has been scanned for all viruses by the MessageLabs SkyScan
service.___

Note:  Please update your email address for this user to reflect the
new MeadWestvaco Corporation.  MeadWestvaco employee email addresses
are in the format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure.  The
information is intended to be used solely by the recipient(s)
named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited.  If you have
received this transmission in error, please notify MeadWestvaco
immediately at [EMAIL PROTECTED]
___

RE: 2 VirtualHosts now work, mod_jk not

2003-08-26 Thread David Wynter
Hi,

Thanks for the example. One final thing is puzzling me. I have 2 webapps
under my domain so if I use this
DocumentRoot /some/path/to/tomcat/webappname1
How do I then reach the second webappname2? Ideally I want to have
www.stpenable.com hit www.stpenable.com/se/servlet/se/templates/index.vm and
have www.stpenable.com/rwt hit
www.stpenable.com/rwtransform/servlet/rwtransform/templates/index.vm

i.e. in httpd.conf

VirtualHost *
ServerName www.stpenable.com

ServerAlias localhost

Alias /se /usr/local/jakarta-tomcat-4.1.12/webapp2/se
DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp2/se

Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/se
Options Indexes FollowSymLinks
DirectoryIndex index.vm index.html
/Directory

Location /WEB-INF/*
AllowOverride None
deny from all
/Location

Location /META-INF/*
AllowOverride None
deny from all
/Location

JkMount /* ajp13

Alias /rwtransform /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform

Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform
Options Indexes FollowSymLinks
DirectoryIndex index.vm index.html
/Directory

??

/VirtualHost

In my Host section of the server.xml I have 2 Contexts one with path=/
pointing to docBase=/se and one with path=/rwtransform and
docBase=/rwtransform.

With the DocumentRoot pointing at the specific webapp se I cannot see how I
can have a JkMount that effectively looks like ../rwtransform/*?

thanks

David

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: 22 August 2003 18:07
 To: Tomcat Users List
 Subject: Re: 2 VirtualHosts now work, mod_jk not



 I would try setting:

 Alias /webappname /some/path/to/tomcat/webappname
 DocumentRoot /some/path/to/tomcat/webappname

 Then:

 JkMount /servlet/* ajp13

 Then your URL of

 http://some.host.com//webappname/servlet/webappname/templates/index.vm

 should work.  Even this should work:

 Alias / /some/path/to/tomcat/webappname
 DocumentRoot /some/path/to/tomcat/webappname
 JkMount /*.vm ajp13

 The * in this case means /webappname/servlet/webappname/templates.

 I don't know anything about Turbine, so I can't help with specifics.
 You might just be better off using Tomcat alone.

 John

 David Wynter wrote:

  I have long URLs because I am using the Apache Turbine project
 to develop my
  webapps. Here is an article on how to shorten them, which gives me the
  impression that i am stuck with these long URLs
 
 http://jakarta.apache.org/turbine/turbine-2.2.1/howto/url-rewritin
 g-howto.ht
  ml unless I follow this method.
 
  This URL is a standard Turbine app URL -
  /webappname/servlet/webappname/templates/index.vm .
 
  It always seemed to me that the /webappname/servlet/webappname should be
  replaceable by Aliases, but it is not clear to me how.
 
  The web.xml supplied with Turbine does not have a mapping to
 .vm files. Here
  it is.
 
  ?xml version=1.0 encoding=ISO-8859-1?
 
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
 
  web-app
servlet
  servlet-namese/servlet-name
  servlet-classorg.apache.turbine.Turbine/servlet-class
  init-param
param-nameapplicationRoot/param-name
param-valuewebContext/param-value
  /init-param
  init-param
param-nameproperties/param-name
 
 param-value/WEB-INF/conf/TurbineResources.properties/param-value
  /init-param
  load-on-startup1/load-on-startup
/servlet
security-constraint
  web-resource-collection
web-resource-nametemplates/web-resource-name
url-pattern/templates/*/url-pattern
  /web-resource-collection
  web-resource-collection
web-resource-namelogs/web-resource-name
url-pattern/logs/*/url-pattern
  /web-resource-collection
  auth-constraint
role-nameadmin/role-name
  /auth-constraint
/security-constraint
login-config
  auth-methodBASIC/auth-method
  realm-nameTemplates/realm-name
/login-config
  /web-app
 
  What is not clear is how the JkMount works in the context of
 the long URLs
  for Turbine apps as opposed to the short URLs for the example
 jsp. Why did I
  use the alias name in my Location and JkMount directives? Because the
  archive is littered with examples doing just that eg.
  http://www.mail-archive.com/[EMAIL PROTECTED]/msg98299
  According to this thread the solution was not changing what he
 had in the
  JkMount so I cannot but help take it as an example, sorry.
 
  Thanks John, you are the only one who is replying to these.
 
  David
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



 -
 To unsubscribe, e-mail: 

RE: Upgrading Tomcat to 4.1.27

2003-08-26 Thread Purvis Robert
Its best to uninstall before installing the new version. But you must make
sure you keep copies of server.xml, web.xml, webapps, and things you've put
into common/lib and common/classes so you ca restore these into the new
Tomcat directories.

Don't just copy your old conf/server.xml and conf/web.xml back into the conf
directory - edit the new files and put your changes into the new files.
There are sometimes changes in these conf/*.xml files which you need to
keep.

Another point if you are using Linux and have installed RPMs - if you've
added users into the tomcat4 group you should remove them from the group
before uninstalling the RPM. If you don't then the tomcat4 group stays and
subsequent RPM installs won't work properly. (But there isn't yet a 4.1.27
RPM - as I mentioned in my earlier e-mail).

I have done this a number of times as we've progressed through most versions
of tomcat since 4.0.2.

Good luck.

Rob

-Original Message-
From: Bond [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 14:58
To: [EMAIL PROTECTED]
Subject: Upgrading Tomcat to 4.1.27




Hello Everyone, I have a question,

  I want to upgrade our current Tomcat instalation
4.1.14 to the newer 4.1.27.   However I can't find any
How Tos on this topic.  Do I just install the new
version on top of my old one or is it a new install???
 Not sure how to proceed, any advice would be
appreciated.

Thanks in advance,


Miguel

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.

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



RE: The requested resource (/admsite/servlet/servlet.servletAdmSite) is not available

2003-08-26 Thread Mike Curwen
It looks like you're confusing an older way of invoking servlets (by
using a /servlet/class.name technique) and the more appropriate, newer
way (through mappings). There is also one other confusing factor.
 
First.. your web app name is admsite (I assume this, because that's your
folder name). So to get to your webapplication (as opposed to other
applications hosted in Tomcat), you need to say:

http://localhost:8080/admsite/

After that, you need to tell Tomcat which servlet within admsite you
want to invoke.

http://localhost:8080/admsite/foo

This would invoke the 'foo' servlet.  Tomcat looks up which servlet you
mean by looking at the list of url-pattern elements in web.xml. 

servlet
   servlet-nameservletAdmSite/servlet-name
   servlet-classservlet.servletAdmSite/servlet-class
/servlet
servlet-mapping
   servlet-nameservletAdmSite/servlet-name
   url-pattern/hello/url-pattern
/servlet-mapping


I've done one mapping for you above, so access your servlet with this
mapping:
http://localhost:8080/admsite/hello

the /hello is what you type in the browser to match up what's in
url-pattern  That's the configurable part, and it can be anything you
want.  But it *can* be confusing if you also map it to /admsite, because
as you've seen, it's easy to miss that the URL should then be:
http://localhost:8080/admsite/admsite

Also, web-inf should always be referred to as WEB-INF. 


 -Original Message-
 From: L.Karam [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 27, 2003 8:46 AM
 To: Tomcat Users List
 Subject: Re: The requested resource 
 (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
 Well, my servlet is in the directory: /admsite/servlet and is 
 named servletAdmSite. What should be typed here: 
 url-pattern???/url-pattern And what is the URL to be 
 adressed to, i.e: http://localhost:8080/???
 
 Tks
 
 
 
 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 10:18 AM
 Subject: RE: The requested resource
 (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
 
 Howdy,
 With your mapping the URL to access your servlet is simply 
 /admsite not /admsite/servlet/servlet.servletAdmSite.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: L.Karam [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 9:17 AM
 To: [EMAIL PROTECTED]
 Subject: The requested resource
 (/admsite/servlet/servlet.servletAdmSite)
 is not available
 
 Hi,
 When I try to access a servlet I get the following message:
 
 HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
 -
 --
 
 -
 
 type Status report
 message /admsite/servlet/servlet.servletAdmSite
 description The requested resource
 (/admsite/servlet/servlet.servletAdmSite)
 is not available.
 -
 --
 
 -
 
 Apache Tomcat/4.1.24
 
 
 I have verified in the tomcat manager that my application is 
 correctly 
 started.
 
 I have also created the WEB.XML in the Web-Inf folder, and 
 it looks as
 this:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
  servlet
  servlet-nameservletAdmSite/servlet-name
  servlet-classservlet.servletAdmSite/servlet-class
  /servlet
servlet-mapping
 servlet-nameservletAdmSite/servlet-name
 url-pattern/admsite/url-pattern
/servlet-mapping
 /web-app
 
 
 My directory tree:
 webapps/admsite/web-inf/classes/servlet
 
 Please, can anybody help me solve this?
 
 Thanks
 
 Leandro Karam
 


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



RE: Configuring Tomcat to NOT run as Root

2003-08-26 Thread Purvis Robert
But if you don't run as root then you won't be able to use ports 80 or 443
because only root can grab those. Maybe this isn't a problem though, if you
are using 8080 and/or 8443.

Rob

-Original Message-
From: Scott W Ricketts [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 12:59
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat to NOT run as Root


I am helping set up a Citrix NFuse server running on Solaris, using Tomcat 
and Apache 1.3.  The default install for NFuse 1.7 does not fire up 
Apache, rather it calls Tomcat to start alone.  The default also has this 
running as root, something I am very uncomfortable with.  I have Googled 
and searched archives, and whenever mentioned, it sounds rather trivial 
but I cannot find where in my config files to set this to run as 'nobody'.

I am totally clueless with Tomcat, can anyone help?





This email has been scanned for all viruses by the MessageLabs SkyScan
service.___

Note:  Please update your email address for this user to reflect the new
MeadWestvaco Corporation.  MeadWestvaco employee email addresses are in the
format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco Corporation
or subsidiary companies, which may be confidential, privileged or otherwise
protected from disclosure.  The information is intended to be used solely by
the recipient(s) named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this transmission or
its contents is prohibited.  If you have received this transmission in
error, please notify MeadWestvaco immediately at
[EMAIL PROTECTED]
___
This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.

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



Re: Configuring Tomcat to NOT run as Root

2003-08-26 Thread John Turner
Tomcat runs as whatever user executes the startup scripts in 
$CATALINA_HOME/bin.

If that user is root, then Tomcat runs as root.  If that user is 
nobody, then Tomcat's effective user is nobody.  There's no 
(current) facility in Tomcat to switch UID as Apache does after startup.

As root, something like:

su - SOMEUSER -c $CATALINA_HOME/bin/startup.sh

will run Tomcat as the user defined by SOMEUSER.

John

Scott W Ricketts wrote:

I am helping set up a Citrix NFuse server running on Solaris, using Tomcat 
and Apache 1.3.  The default install for NFuse 1.7 does not fire up 
Apache, rather it calls Tomcat to start alone.  The default also has this 
running as root, something I am very uncomfortable with.  I have Googled 
and searched archives, and whenever mentioned, it sounds rather trivial 
but I cannot find where in my config files to set this to run as 'nobody'.

I am totally clueless with Tomcat, can anyone help?




This email has been scanned for all viruses by the MessageLabs SkyScan
service.___
Note:  Please update your email address for this user to reflect the
new MeadWestvaco Corporation.  MeadWestvaco employee email addresses
are in the format of [EMAIL PROTECTED] 

This electronic message contains information from MeadWestvaco
Corporation or subsidiary companies, which may be confidential,
privileged or otherwise protected from disclosure.  The
information is intended to be used solely by the recipient(s)
named.  If you are not an intended recipient, be aware that
any review, disclosure, copying, distribution or use of this
transmission or its contents is prohibited.  If you have
received this transmission in error, please notify MeadWestvaco
immediately at [EMAIL PROTECTED]
___


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


Re: 2 VirtualHosts now work, mod_jk not

2003-08-26 Thread John Turner
The DocumentRoot is /.

Host name=myHost appBase=myHost

Context path= docBase=se ($CATALINA_HOME/myHost/se)
Context path=/rwtransform docBase=rwtransform 
($CATALINA_HOME/myHost/rwtransform)

DocumentRoot /some/path/to/myHost

Please understand that DocumentRoot is for Apache only.  It instructs 
Apache where to find files that ARE NOT covered by your JkMount. 
DocumentRoot does nothing for Tomcat.

Thus, put index.html, etc. in $CATALINA_HOME/myHost.

Alternatively, setup a root context:

Context path= docBase=ROOT ($CATALINA_HOME/myHost/ROOT)

In that context, setup a welcome-file in web.xml as index.jsp.  In 
index.jsp, do a forward/redirect to myHost/se.

Then your se Context would look like:

Context path=/se docBase=se ($CATALINA_HOME/myHost/se)

I really, really, really, really suggest getting all of this to work 
with Tomcat alone first, then worrying about Apache.

John

David Wynter wrote:

Hi,

Thanks for the example. One final thing is puzzling me. I have 2 webapps
under my domain so if I use this
DocumentRoot /some/path/to/tomcat/webappname1
How do I then reach the second webappname2? Ideally I want to have
www.stpenable.com hit www.stpenable.com/se/servlet/se/templates/index.vm and
have www.stpenable.com/rwt hit
www.stpenable.com/rwtransform/servlet/rwtransform/templates/index.vm
i.e. in httpd.conf

VirtualHost *
ServerName www.stpenable.com
ServerAlias localhost

Alias /se /usr/local/jakarta-tomcat-4.1.12/webapp2/se
DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp2/se
Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/se
Options Indexes FollowSymLinks
DirectoryIndex index.vm index.html
/Directory
Location /WEB-INF/*
AllowOverride None
deny from all
/Location
Location /META-INF/*
AllowOverride None
deny from all
/Location
JkMount /* ajp13

Alias /rwtransform /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform

Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform
Options Indexes FollowSymLinks
DirectoryIndex index.vm index.html
/Directory
??

/VirtualHost

In my Host section of the server.xml I have 2 Contexts one with path=/
pointing to docBase=/se and one with path=/rwtransform and
docBase=/rwtransform.
With the DocumentRoot pointing at the specific webapp se I cannot see how I
can have a JkMount that effectively looks like ../rwtransform/*?
thanks

David


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: 22 August 2003 18:07
To: Tomcat Users List
Subject: Re: 2 VirtualHosts now work, mod_jk not


I would try setting:

Alias /webappname /some/path/to/tomcat/webappname
DocumentRoot /some/path/to/tomcat/webappname
Then:

JkMount /servlet/* ajp13

Then your URL of

http://some.host.com//webappname/servlet/webappname/templates/index.vm

should work.  Even this should work:

Alias / /some/path/to/tomcat/webappname
DocumentRoot /some/path/to/tomcat/webappname
JkMount /*.vm ajp13
The * in this case means /webappname/servlet/webappname/templates.

I don't know anything about Turbine, so I can't help with specifics.
You might just be better off using Tomcat alone.
John

David Wynter wrote:


I have long URLs because I am using the Apache Turbine project
to develop my

webapps. Here is an article on how to shorten them, which gives me the
impression that i am stuck with these long URLs
http://jakarta.apache.org/turbine/turbine-2.2.1/howto/url-rewritin
g-howto.ht
ml unless I follow this method.

This URL is a standard Turbine app URL -
/webappname/servlet/webappname/templates/index.vm .
It always seemed to me that the /webappname/servlet/webappname should be
replaceable by Aliases, but it is not clear to me how.
The web.xml supplied with Turbine does not have a mapping to
.vm files. Here

it is.

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

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
web-app
 servlet
   servlet-namese/servlet-name
   servlet-classorg.apache.turbine.Turbine/servlet-class
   init-param
 param-nameapplicationRoot/param-name
 param-valuewebContext/param-value
   /init-param
   init-param
 param-nameproperties/param-name
param-value/WEB-INF/conf/TurbineResources.properties/param-value

   /init-param
   load-on-startup1/load-on-startup
 /servlet
 security-constraint
   web-resource-collection
 web-resource-nametemplates/web-resource-name
 url-pattern/templates/*/url-pattern
   /web-resource-collection
   web-resource-collection
 web-resource-namelogs/web-resource-name
 url-pattern/logs/*/url-pattern
   /web-resource-collection
   auth-constraint
 role-nameadmin/role-name
   /auth-constraint
 /security-constraint
 login-config
   auth-methodBASIC/auth-method
   realm-nameTemplates/realm-name
 /login-config
/web-app
What is not clear is how the JkMount works in the context of
the long URLs

for Turbine 

RE: mod_jk and Tomcat Lose Touch

2003-08-26 Thread Ben Ricker
On Mon, 2003-08-25 at 13:08, Fred Whipple wrote:
 Ah, the symptoms, of course ;-)
 
 There actually aren't any errors AFAIK.  Perhaps there's a more verbose
 logging level?  I couldn't find any obvious info on this in the manual.

In the settings you put in httpd.conf, you should have added a
'LogLevel' directive. If you did not, then you can! The line I have is:

JkLogLevel error

Change the 'error' to debug and restart Apache.

Ben Ricker
Wellinx, Inc.



 What actually happens is if I make a request to a JSP, for example, that
 should normally be forwarded onto Tomcat, the request simply hangs forever.
 Apache logs the request nothing in the Tomcat logs suggest to me it's
 receiving the request.
 
 Thanks,
 
   -Fred
 
  -Original Message-
  From: Ben Ricker [mailto:[EMAIL PROTECTED] 
  Sent: Monday, August 25, 2003 1:09 PM
  To: [EMAIL PROTECTED]
  Subject: Re: mod_jk and Tomcat Lose Touch
  
  
  What kind of error are you getting that makes you thing they 
  are losing
  touch. Check the mod_jk log and see what kind of errors it 
  is throwing
  and post an example.
  
  Ben Ricker
  Wellinx, Inc.
 
 
 -
 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: Upgrading Tomcat to 4.1.27

2003-08-26 Thread Shapira, Yoav

Howdy,
Always do a new clean install.  Don't overwrite the old one, don't
simply copy jars from one place to another.  If you don't need the old
one, remove it.  Install the new one as if you didn't have a tomcat
installation before.  This is the safest route.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Bond [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 9:58 AM
To: [EMAIL PROTECTED]
Subject: Upgrading Tomcat to 4.1.27



Hello Everyone, I have a question,

  I want to upgrade our current Tomcat instalation
4.1.14 to the newer 4.1.27.   However I can't find any
How Tos on this topic.  Do I just install the new
version on top of my old one or is it a new install???
 Not sure how to proceed, any advice would be
appreciated.

Thanks in advance,


Miguel

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
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: Java/JSP vs C#/.NET

2003-08-26 Thread Kannan Sundararajan
I agree. Where is Java++ from microsoft?. C# is going to go this place. 

-Original Message-
From: Shawn Zernik [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 8:09 PM
To: Tomcat Users List
Subject: RE: Java/JSP vs C#/.NET


Lance:

100% Multi-Platform Support: Microsoft doesn't have it.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net

-Original Message-
From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 4:57 PM
To: Tomcat Users List
Subject: Java/JSP vs C#/.NET


Hi,

I am a pure java supporter. I don't like C# or .Net because of Microsoft's
monopolization (sorry, kind of prejudice). However, I notice that more and
more people pick up C#/.NET due to their new advantages. I also heard that
C# is much faster than Java. My concern is, can Java/JSP still be
competitive to Microsoft's products? I don't like to see java be beaten by
Microsoft since it borrowed so many ideas from java to make up the so-called
C#.

ok, feel free to talk about this topic.

Lance


-
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.: request.getRemoteUser() only non-null on protected pages

2003-08-26 Thread pste

I cannot be the only one ever expirienced this problem.

Any comments, PLEASE...

- Per Steffensen



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



RE: crypto problem

2003-08-26 Thread Maxime Colas des Francs
Thks for your help !

I use jdk 1.4, i can register the provider statically in java.security 
file but it will be registred for all web application ...
(I thought also to put it in $CATALINA_HOME/shared/lib/)

But my sytem works great when i start manually tomcat (startup.sh), i 
encrypt, i have no error in my catalina.out
Someone can tell me a difference between manual startup and the automatic 
reload (by class time modified) or the manager application restart ?
Is it a CLASSPATH problem ?

At 07:56 2003-08-26 +0200, you wrote:


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 25, 2003 11:23 PM
 To: [EMAIL PROTECTED]
 Subject: Re:crypto problem


 Maxime Colas des Francs wrote:

  I attempt to use openpgp in my web application
  For that i use an external provider.
  I put jar files in WEB-INF/lib and in a 'load-on-startup'
 servlet, i
  call
  Security.addProvider() and i read a public key from a file for futur
  encryptions.
 

 I hope I can...

 What JDK version are you using, 1.3 or 1.4? 1.4 didn't like
 it when I had a Security.addProvider() line in my code. You
 might check out the cryptography forum at
 http://forums.java.com  - that was VERY  helpful to me.

If you have Problems with Security.addProvider call you might
try to register the provider statically in your java.security
file. (should be in the jre/lib/security/ dir)
Try to add the provider:

security.provider.4=com.organization.ProviderXYZName

It might be, that the Original Provider must reside in first
position.
  H2H, Rudolf



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


mod_jk load balancing with multiple apache servers

2003-08-26 Thread Peter Anning
Hi,

I am trying to implement the following configuration:


+++
  Cisco Load Balancer
+++
|
| (http)
|
+++
   Apache AApache B Apache Cluster Layer
mod_jk  mod_jk
+++
|
| (ajp13)
|
+++
TomcatI.myhost.com   TomcatII.myhost.comJBoss Cluster Layer
+++


I can configure mod_jk in each of the Apache instances to
know about the two tomcat instances. So loadbalancing and
failover would work with one instance of apache.

Is there any way to have the Apache ``cluster'' layer
know about other ``members'' in the layer and the 
current servlet connection status?

Rgds
Peter

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



Re: Upgrading Tomcat to 4.1.27

2003-08-26 Thread Tarun Gandhi
Hi,

You can take the backup of your existing directory and install the 4.1.27
version . After installing you can move your webapps, modjk conf, libs etc
from the earlier version to this one.

Tarun

- Original Message -
From: Bond [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 7:27 PM
Subject: Upgrading Tomcat to 4.1.27




 Hello Everyone, I have a question,

   I want to upgrade our current Tomcat instalation
 4.1.14 to the newer 4.1.27.   However I can't find any
 How Tos on this topic.  Do I just install the new
 version on top of my old one or is it a new install???
  Not sure how to proceed, any advice would be
 appreciated.

 Thanks in advance,


 Miguel

 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com

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




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



Re: mod_jk load balancing with multiple apache servers

2003-08-26 Thread jerome moliere
Peter Anning wrote:

Hi,

I am trying to implement the following configuration:

+++
 Cisco Load Balancer
+++
   |
   | (http)
   |
+++
  Apache AApache B Apache Cluster Layer
   mod_jk  mod_jk
+++
   |
   | (ajp13)
   |
+++
TomcatI.myhost.com   TomcatII.myhost.comJBoss Cluster Layer
+++
I can configure mod_jk in each of the Apache instances to
know about the two tomcat instances. So loadbalancing and
failover would work with one instance of apache.
Is there any way to have the Apache ``cluster'' layer
know about other ``members'' in the layer and the 
current servlet connection status?

Rgds
Peter
 

Hi peter,
i'm in a context near from yours
my opinion is that it isn't very logic because you introduce abstraction 
layers (like in a OO environment)  getting knowledge from
implementations (other tomcats from your second Apache server) will 
break those abstractions
Moreover I think you could encounter network security problems with such 
things isn't it ?
my 2 pieces...
Jerome



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


Re: Java/JSP vs C#/.NET

2003-08-26 Thread rwim
Shapira, Yoav wrote:

Howdy,
I don't want to pollute this list further with another flame war,
especially since responses you'll get here might be biased (tomcat being
a java product...).  Check TheServerSide, any number of articles
comparing the two.  As always, each has pros and cons.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 5:57 PM
To: Tomcat Users List
Subject: Java/JSP vs C#/.NET
Hi,

I am a pure java supporter. I don't like C# or .Net because of
   

Microsoft's
 

monopolization (sorry, kind of prejudice). However, I notice that more
   

and
 

more people pick up C#/.NET due to their new advantages. I also heard
   

that
 

C# is much faster than Java. My concern is, can Java/JSP still be
competitive to Microsoft's products? I don't like to see java be beaten
   

by
 

Microsoft since it borrowed so many ideas from java to make up the so-
called
C#.
ok, feel free to talk about this topic.

Lance

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

After one year of work and trying with c# and .net, sql server i'm back 
with java and tomcat etc. With  c# and .net you must stay within there 
model (or you have lots of work and less spead). Also the datalist and 
datagrid are becoming very slow when your database is growing. My 
clients where not satisfide (and complaning harder when the database was 
growing). When the needs where groing also the licence cost where groing 
faster and faster. (Also the virus)
gr
wim
www.flexthe.net (still .net)

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


Re: mod_jk load balancing with multiple apache servers

2003-08-26 Thread Peter Anning
...getting knowledge 
 from implementations (other tomcats from your second Apache server)
  will break those abstractions

You may be right about this. However as I add Apache servers to the 
Apache layer without some kind of colaboration between the servers
it would seem that the problem will escalate. Effectively the hardware
load balancing at the front maintains sticky sessions and ``knows''
about all the servers loading.



 Peter Anning wrote:
 
 Hi,
 
 I am trying to implement the following configuration:
 
 
 +++
   Cisco Load Balancer
 +++
 |
 | (http)
 |
 +++
Apache AApache B Apache Cluster Layer
 mod_jk  mod_jk
 +++
 |
 | (ajp13)
 |
 +++
 TomcatI.myhost.com   TomcatII.myhost.comJBoss Cluster Layer
 +++
 
 
 I can configure mod_jk in each of the Apache instances to
 know about the two tomcat instances. So loadbalancing and
 failover would work with one instance of apache.
 
 Is there any way to have the Apache ``cluster'' layer
 know about other ``members'' in the layer and the 
 current servlet connection status?
 
 Rgds
 Peter
   
 
 Hi peter,
 i'm in a context near from yours
 my opinion is that it isn't very logic because you introduce 
 abstraction layers (like in a OO environment)  getting knowledge 
 from implementations (other tomcats from your second Apache server)
  will break those abstractions Moreover I think you could 
 encounter network security problems with such things isn't it ? my 2 
 pieces... Jerome
 
 -
 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: 2 VirtualHosts now work, mod_jk not

2003-08-26 Thread David Wynter
Hi John,

Thanks very much, all is working now. I now have an index.html in each of
the webapp directories that doe san onload to pick up the full path to the
appropriate Turbine webapp index page. It refers to no particualr port so
the JkMount is working.

One thing I did have a problem with was when I took your suggestion to not
use full paths. I change my docBase in server.xml to be a relative path to
the appBase value in the Host directive rather than the full path I had been
using. I got a java.lang.IllegalArgumentException: Document base
/rwtransform does not exist error.

I read up on the allowed docBase values and it says it can be a relative
value to the appBase value, but it did not work, when I put in the full path
it worked.

Regards

David

 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: 26 August 2003 15:24
 To: Tomcat Users List
 Subject: Re: 2 VirtualHosts now work, mod_jk not



 The DocumentRoot is /.

 Host name=myHost appBase=myHost

 Context path= docBase=se ($CATALINA_HOME/myHost/se)
 Context path=/rwtransform docBase=rwtransform
 ($CATALINA_HOME/myHost/rwtransform)

 DocumentRoot /some/path/to/myHost

 Please understand that DocumentRoot is for Apache only.  It instructs
 Apache where to find files that ARE NOT covered by your JkMount.
 DocumentRoot does nothing for Tomcat.

 Thus, put index.html, etc. in $CATALINA_HOME/myHost.

 Alternatively, setup a root context:

 Context path= docBase=ROOT ($CATALINA_HOME/myHost/ROOT)

 In that context, setup a welcome-file in web.xml as index.jsp.  In
 index.jsp, do a forward/redirect to myHost/se.

 Then your se Context would look like:

 Context path=/se docBase=se ($CATALINA_HOME/myHost/se)

 I really, really, really, really suggest getting all of this to work
 with Tomcat alone first, then worrying about Apache.

 John

 David Wynter wrote:

  Hi,
 
  Thanks for the example. One final thing is puzzling me. I have 2 webapps
  under my domain so if I use this
  DocumentRoot /some/path/to/tomcat/webappname1
  How do I then reach the second webappname2? Ideally I want to have
  www.stpenable.com hit
 www.stpenable.com/se/servlet/se/templates/index.vm and
  have www.stpenable.com/rwt hit
  www.stpenable.com/rwtransform/servlet/rwtransform/templates/index.vm
 
  i.e. in httpd.conf
 
  VirtualHost *
  ServerName www.stpenable.com
 
  ServerAlias localhost
 
  Alias /se /usr/local/jakarta-tomcat-4.1.12/webapp2/se
  DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp2/se
 
  Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/se
  Options Indexes FollowSymLinks
  DirectoryIndex index.vm index.html
  /Directory
 
  Location /WEB-INF/*
  AllowOverride None
  deny from all
  /Location
 
  Location /META-INF/*
  AllowOverride None
  deny from all
  /Location
 
  JkMount /* ajp13
 
  Alias /rwtransform
 /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform
 
  Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform
  Options Indexes FollowSymLinks
  DirectoryIndex index.vm index.html
  /Directory
 
  ??
 
  /VirtualHost
 
  In my Host section of the server.xml I have 2 Contexts one with path=/
  pointing to docBase=/se and one with path=/rwtransform and
  docBase=/rwtransform.
 
  With the DocumentRoot pointing at the specific webapp se I
 cannot see how I
  can have a JkMount that effectively looks like ../rwtransform/*?
 
  thanks
 
  David
 
 
 -Original Message-
 From: John Turner [mailto:[EMAIL PROTECTED]
 Sent: 22 August 2003 18:07
 To: Tomcat Users List
 Subject: Re: 2 VirtualHosts now work, mod_jk not
 
 
 
 I would try setting:
 
 Alias /webappname /some/path/to/tomcat/webappname
 DocumentRoot /some/path/to/tomcat/webappname
 
 Then:
 
 JkMount /servlet/* ajp13
 
 Then your URL of
 
 http://some.host.com//webappname/servlet/webappname/templates/index.vm
 
 should work.  Even this should work:
 
 Alias / /some/path/to/tomcat/webappname
 DocumentRoot /some/path/to/tomcat/webappname
 JkMount /*.vm ajp13
 
 The * in this case means /webappname/servlet/webappname/templates.
 
 I don't know anything about Turbine, so I can't help with specifics.
 You might just be better off using Tomcat alone.
 
 John
 
 David Wynter wrote:
 
 
 I have long URLs because I am using the Apache Turbine project
 
 to develop my
 
 webapps. Here is an article on how to shorten them, which gives me the
 impression that i am stuck with these long URLs
 
 
 http://jakarta.apache.org/turbine/turbine-2.2.1/howto/url-rewritin
 g-howto.ht
 
 ml unless I follow this method.
 
 This URL is a standard Turbine app URL -
 /webappname/servlet/webappname/templates/index.vm .
 
 It always seemed to me that the /webappname/servlet/webappname
 should be
 replaceable by Aliases, but it is not clear to me how.
 
 The web.xml supplied with Turbine does not have a mapping to
 
 .vm files. Here
 
 it is.
 
 ?xml 

Is this the correct place to ask questions about WebDAV

2003-08-26 Thread Duncan Strang
Hi
 
Is this the correct place to ask questions about getting the WebDAV
functionality working the way I would like on Tomcat 4.1.
 
Many Thanks
 
D.Strang


RE: request.getRemoteUser() only non-null on protected pages

2003-08-26 Thread robert.tomlin
 Any comments, PLEASE...

Could this be relavant ?

http://marc.theaimsgroup.com/?l=jboss-userm=103680567313168w=2


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



RE: 2 VirtualHosts now work, mod_jk not

2003-08-26 Thread David Wynter
I just found your reply to this question (preempting it) amongst all the
Compuserve emails. I have the Tomcat applications working fine, it is just
the httpd.conf I am having problems with. I thought of another way of
addressing the second webapp on the stpenable domain name, setup a separate
sub domain and have a virtualhost just for that so, webapp2.stpenable.com
is handled by a separate VirtualHost.

Thanks

David

 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]
 Sent: 26 August 2003 15:13
 To: Tomcat Users List
 Subject: RE: 2 VirtualHosts now work, mod_jk not


 Hi,

 Thanks for the example. One final thing is puzzling me. I have 2 webapps
 under my domain so if I use this
 DocumentRoot /some/path/to/tomcat/webappname1
 How do I then reach the second webappname2? Ideally I want to have
 www.stpenable.com hit
 www.stpenable.com/se/servlet/se/templates/index.vm and
 have www.stpenable.com/rwt hit
 www.stpenable.com/rwtransform/servlet/rwtransform/templates/index.vm

 i.e. in httpd.conf

 VirtualHost *
 ServerName www.stpenable.com

 ServerAlias localhost

 Alias /se /usr/local/jakarta-tomcat-4.1.12/webapp2/se
 DocumentRoot /usr/local/jakarta-tomcat-4.1.12/webapp2/se

 Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/se
 Options Indexes FollowSymLinks
 DirectoryIndex index.vm index.html
 /Directory

 Location /WEB-INF/*
 AllowOverride None
 deny from all
 /Location

 Location /META-INF/*
 AllowOverride None
 deny from all
 /Location

 JkMount /* ajp13

 Alias /rwtransform
 /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform

 Directory /usr/local/jakarta-tomcat-4.1.12/webapp2/rwtransform
 Options Indexes FollowSymLinks
 DirectoryIndex index.vm index.html
 /Directory

 ??

 /VirtualHost

 In my Host section of the server.xml I have 2 Contexts one with path=/
 pointing to docBase=/se and one with path=/rwtransform and
 docBase=/rwtransform.

 With the DocumentRoot pointing at the specific webapp se I cannot
 see how I
 can have a JkMount that effectively looks like ../rwtransform/*?

 thanks

 David

  -Original Message-
  From: John Turner [mailto:[EMAIL PROTECTED]
  Sent: 22 August 2003 18:07
  To: Tomcat Users List
  Subject: Re: 2 VirtualHosts now work, mod_jk not
 
 
 
  I would try setting:
 
  Alias /webappname /some/path/to/tomcat/webappname
  DocumentRoot /some/path/to/tomcat/webappname
 
  Then:
 
  JkMount /servlet/* ajp13
 
  Then your URL of
 
  http://some.host.com//webappname/servlet/webappname/templates/index.vm
 
  should work.  Even this should work:
 
  Alias / /some/path/to/tomcat/webappname
  DocumentRoot /some/path/to/tomcat/webappname
  JkMount /*.vm ajp13
 
  The * in this case means /webappname/servlet/webappname/templates.
 
  I don't know anything about Turbine, so I can't help with specifics.
  You might just be better off using Tomcat alone.
 
  John
 
  David Wynter wrote:
 
   I have long URLs because I am using the Apache Turbine project
  to develop my
   webapps. Here is an article on how to shorten them, which gives me the
   impression that i am stuck with these long URLs
  
  http://jakarta.apache.org/turbine/turbine-2.2.1/howto/url-rewritin
  g-howto.ht
   ml unless I follow this method.
  
   This URL is a standard Turbine app URL -
   /webappname/servlet/webappname/templates/index.vm .
  
   It always seemed to me that the
 /webappname/servlet/webappname should be
   replaceable by Aliases, but it is not clear to me how.
  
   The web.xml supplied with Turbine does not have a mapping to
  .vm files. Here
   it is.
  
   ?xml version=1.0 encoding=ISO-8859-1?
  
   !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
   http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;
  
   web-app
 servlet
   servlet-namese/servlet-name
   servlet-classorg.apache.turbine.Turbine/servlet-class
   init-param
 param-nameapplicationRoot/param-name
 param-valuewebContext/param-value
   /init-param
   init-param
 param-nameproperties/param-name
  
  param-value/WEB-INF/conf/TurbineResources.properties/param-value
   /init-param
   load-on-startup1/load-on-startup
 /servlet
 security-constraint
   web-resource-collection
 web-resource-nametemplates/web-resource-name
 url-pattern/templates/*/url-pattern
   /web-resource-collection
   web-resource-collection
 web-resource-namelogs/web-resource-name
 url-pattern/logs/*/url-pattern
   /web-resource-collection
   auth-constraint
 role-nameadmin/role-name
   /auth-constraint
 /security-constraint
 login-config
   auth-methodBASIC/auth-method
   realm-nameTemplates/realm-name
 /login-config
   /web-app
  
   What is not clear is how the JkMount works in the context of
  the long URLs
   for Turbine 

mod_jk forwarding scheme problems - https requests

2003-08-26 Thread Rudolf Schamberger
Hello,

did anyone ever solve problems with mod_jk which was forwarding
https://foo.bar requests as http://foo.bar requests to tomcat? 

Help appreciated.

  regards Rudolf S.

(detailed problems I have been described in my posting yesterday) 


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



Re: newbie - finding class files

2003-08-26 Thread P . van Kemenade


Hi

I found this old thread about extending WebdavServlet,
in which Andreas Probst notes his webapp cant load classes
from the $CATALINA_HOME/servlet/lib/ dir.
this url
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
makes it clear why.
but now: how should I  extend WebdavServlet inside my webapp ?
If i put my own classes in the org.apache.bla package, it can't load
the classes from my webapp, ofcourse.
should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
to my webapps /WEB-INF/lib ?
 that should work, but it sounds ugly.



On Tue, 16 Jul 2002, Andreas Probst wrote:

 Date: Tue, 16 Jul 2002 13:59:49 +0200
 From: Andreas Probst [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: newbie - finding class files


  On Mon, 15 Jul 2002, Andreas Probst wrote:
 
  
   Hi all,
  
   does Tomcat really look into tomcatdir/server/lib? For me it 
seems
   Tomcat doesn't.
  
 
  This directory is only visible to the classloader for Tomcat 
itself, not
  for webapps.  There is a special rule that makes servlet classes in
  package org.apache.catalina available to webapps anyway, 
however, which
  is why the standard WebdavServlet (as well as the other Tomcat 
features
  that are available via servlets) can be loaded.
 
  Craig

 Thank you Craig.

 Could you please tell more about the rule or give a pointer. The
 class-loader-info of the Tomcat-Docu says nothing about the rule, but
 says, that These classes and resources are TOTALLY invisible to web
 applications.


Actually, the rule is very simple, and it is there in the docs.  Look 
at
the picture of the class loader hierarchy in the Tomcat docs:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader- 
howto.html

The classes that are visible to a web application are those in the 
class
loader for that webapp, and any of it's parent class loaders.  In other
words, an application can see the WebappX class loader for itself, 
plus
the Shared, Common, System, and Bootstrap class loaders.  It 
can
*not* see the Catalina class loader.


thanks,
*-pike

I wasted time, and now doth time waste me.
Or now hath time made me his numbring clock:
My thoughts are minutes; and, with sighs, they jar
Their watches on to mine eyes, the outward watch,
Whereto my finger, like a dials point,
Is pointing still, in cleansing them from tears.
http://framework.v2.nl/archive/archive/node/text/default.py/nodenr-67731



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


Re: 2 VirtualHosts now work, mod_jk not

2003-08-26 Thread Fred Kreek


I did not get the mail, but i've got it working with more than 1:
(part of) httpd.conf
--
VirtualHost my.real.host
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/webmaster/www/v1/webapps
ServerName my.first.virtualhost
Port 80
LocationMatch /WEB-INF/
   AllowOverride None
   deny from all
/LocationMatch
LocationMatch /META_INF/
   AllowOverride None
   deny from all
/LocationMatch
ErrorLog logs/my.first.virtualhost_error
TransferLog logs/my.first.virtualhost_log
  JkMount /*/servlet/ v1
JkMount /servlet/* v1
JkMount /*.jsp v1
/VirtualHost
VirtualHost my.real.host
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/webmaster/www/v1/webapps
ServerName my.second.virtualhost
Port 80
LocationMatch /WEB-INF/
   AllowOverride None
   deny from all
/LocationMatch
LocationMatch /META_INF/
   AllowOverride None
   deny from all
/LocationMatch
ErrorLog logs/my.second.virtualhost_error
TransferLog logs/my.second.virtualhost_log
  JkMount /*/servlet/ v2
JkMount /servlet/* v2
JkMount /*.jsp v2
/VirtualHost
--
server.xml
-
Server port=8010 shutdown=SHUTDOWN debug=999
  Service name=Tomcat-Apache-my.first.virtualhost debug=999
Connector className=org.apache.ajp.tomcat4.Ajp13Connector 
port=8011 minProcessors=2 maxProcessors=75 acceptCount=10 debug=0/
Engine name=v1 debug=999 defaultHost=my.first.virtualhost
  Logger className=org.apache.catalina.logger.FileLogger 
prefix=my.first.virtualhost_log_ suffix=.txt timestamp=true debug=999/
  Realm className=org.apache.catalina.realm.MemoryRealm debug=999/
  Host name=my.first.virtualhost debug=999 appBase=webapps/v1 
unpackWARs=false autoDeploy=true liveDeploy=true reloadable=true
Context path= docBase=ROOT debug=999 reloadable=true/
  /Host
/Engine
  /Service
  Service name=Tomcat-Apache-my.second.virtualhost debug=999
Connector className=org.apache.ajp.tomcat4.Ajp13Connector 
port=8011 minProcessors=2 maxProcessors=75 acceptCount=10 debug=0/
Engine name=v1 debug=999 defaultHost=my.second.virtualhost
  Logger className=org.apache.catalina.logger.FileLogger 
prefix=my.second.virtualhost_log_ suffix=.txt timestamp=true 
debug=999/
  Realm className=org.apache.catalina.realm.MemoryRealm debug=999/
  Host name=my.second.virtualhost debug=999 appBase=webapps/v1 
unpackWARs=false autoDeploy=true liveDeploy=true reloadable=true
Context path= docBase=ROOT debug=999 reloadable=true/
  /Host
/Engine
  /Service
/Server

workers.properties
---
worker.list=v1,v2
worker.v1.port=8011
worker.v2.port=8012

worker.v1.host=localhost
worker.v1.host=localhost
worker.v1.type=ajp13
worker.v1.type=ajp13
#standard load balancing
worker.v1.lbfactor=1
worker.v1.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=v1
hope that this is useful,
Fred


There are 10 types of people when it comes to binary, those that 
understand it.. and those who don't.

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


Re: mod_jk load balancing with multiple apache servers

2003-08-26 Thread Ben Ricker
I have the exact same configuration but I do not do session replication
because of the fact that our app was not written correctly (something
about serializing variables and ours are not serialized; it will take a
code audit and rewrite to accomplish it).

Anyway, here is what you can do:

http://www.theserverside.com/resources/article.jsp?l=Tomcat

Tomcat 5, now in development, will have session replication across
Tomcats (i.e., clustering) built-in.

I will say that Mr. Moliere makes a good point: sending session data
across the network unencrypted is a rather large security hole. But then
again, the communication between mod_jk and Tomcat is by default
unencrypted.

Ben Ricker
Wellinx, inc.


On Tue, 2003-08-26 at 09:39, Peter Anning wrote:
 Hi,
 
 I am trying to implement the following configuration:
 
 
 +++
   Cisco Load Balancer
 +++
 |
 | (http)
 |
 +++
Apache AApache B Apache Cluster Layer
 mod_jk  mod_jk
 +++
 |
 | (ajp13)
 |
 +++
 TomcatI.myhost.com   TomcatII.myhost.comJBoss Cluster Layer
 +++
 
 
 I can configure mod_jk in each of the Apache instances to
 know about the two tomcat instances. So loadbalancing and
 failover would work with one instance of apache.
 
 Is there any way to have the Apache ``cluster'' layer
 know about other ``members'' in the layer and the 
 current servlet connection status?
 
 Rgds
 Peter
 
 -
 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]



ContextConfig.tldScanJar error on Linux but not Solaris

2003-08-26 Thread kosh.podder
Hi,

I am getting the following error with Tomcat 4.1.24, with the struts-example webapp, 
when running on Linux but not Solaris - I am using the same Sun JDK 1.3.1_04, same 
build of Tomcat and the webapp.

--
Starting service Tomcat-Standalone
Apache Tomcat/4.1

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 7 occurred at PC=0x405757ab
Function name=(N/A)
Library=/sbcimp/run/tp/sun/jdk/v1.3.1_04/jre/lib/i386/libzip.so

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.



Current Java thread:
at java.util.zip.ZipFile.getNextEntry(Native Method)
at java.util.zip.ZipFile.access$300(ZipFile.java:24)
at java.util.zip.ZipFile$2.nextElement(ZipFile.java:290)
at java.util.jar.JarFile$1.nextElement(JarFile.java:193)
at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja
va:909)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:
868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64
7)

...


Can somebody please explain what could be causing this?

Many thanks,


Kosh




Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: mysql connection pooling problem

2003-08-26 Thread Steve Wilkinson
Eugene,

I followed the example at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/jndi-datasource-examples-howto.html#MySQL%20DBCP%20Example.

The only thing I see wrong is the following line of code:

DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/testdev)

should be java:comp/env/jdbc/testdev as already mentioned earlier.

Thus, I've attached my example for you to compare.  Note, DBCP 
connection pool requires additional jars as indicated in the README.txt 
file.  I assume you already know this, but I mention it just incase.

Hope this helps,

Steve

Eugene Lee wrote:

I'm having a really odd problem connecting to a local MySQL server.  If
I use java.sql.DriverManager.getConnection(), it works perfectly fine.
But when I try to use a connection pool:
	http://www.mysql.com/articles/connection_pooling_with_connectorj.html

it errors out:

	java.sql.SQLException: Cannot load JDBC driver class 'null'

I've tried moving the MySQL driver to $CATALINA_HOME/common/lib,
$JAVA_HOME/jre/lib/ext, and even my webapp's WEB-INF/lib.  The results
are still the same.
I've followed the often-recommended Tomcat 4.1 documentation to no avail.
Here's what my box is running:
	FreeBSD 4.8-RELEASE-p3   
	Java 2 SDK 1.3.1_09
	Jakarta-Tomcat 4.1.27
	MySQL Connector/J 3.0.8

I've attached my server.xml, my webapp's web.xml, and a test page
test.jsp to demonstrate the error.  BTW, before it throws the exception
on the getconnection(), the page output is:
con1 works!
DS lookup OK!
I appreciate any suggestions.  Much thanks in advance.





Server port=8005 shutdown=SHUTDOWN debug=0

  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  !-- Global JNDI resources --
  GlobalNamingResources
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true appBase=webapps acceptCount=10
   debug=0/
Engine className=org.apache.catalina.connector.warp.WarpEngine
name=Apache debug=0
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/
Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=localhost_log. suffix=.txt
  timestamp=true/
  Context path=/testdev docBase=testdev debug=0 reloadable=true
   crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=testdev_log. suffix=.txt
timestamp=true/
Resource name=jdbc/testdev auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/testdev
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namemaxActive/name
value500/value
  /parameter
  parameter
namemaxIdle/name
value500/value
  /parameter
  parameter
namemaxWait/name
value1/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://localhost/testdev/value
  /parameter
/ResourceParams
  /Context
/Host

Realm className=org.apache.catalina.realm.MemoryRealm /

/Engine

  /Service

/Server



?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app id=TESTDEV
display-nametestdev/display-name
servlet

RE: Is this the correct place to ask questions about WebDAV

2003-08-26 Thread Shapira, Yoav

Howdy,
It's the right place.  I don't know if you'll get many responses, as
WebDAV seems to be one of the least used features.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Duncan Strang [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:37 AM
To: [EMAIL PROTECTED]
Subject: Is this the correct place to ask questions about WebDAV

Hi

Is this the correct place to ask questions about getting the WebDAV
functionality working the way I would like on Tomcat 4.1.

Many Thanks

D.Strang



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]



mod_jk2 LVS load balancing

2003-08-26 Thread jerome moliere
Hi all,
I'm about deploying a web-app in a multi-layered netword, with LVS 
clustering 
Does someone has some significant experience in such context ?
problems or any other feedback greatly appreciated

Cheers
jerome


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


Re: apache2, mod_jk2, tomcat4.1.27: server has been restarted or reset this connection

2003-08-26 Thread Chris Joelly
Hello again!

anybody any idea about this behavior?

thx, Chris

Am Wed, Aug 20, 2003 at 03:42:55PM +0200, Chris Joelly meinte:
 
 i have setup apache2 with mod_jk2 and tomcat4.1.27 and all works fine,
 but the following log messages is written to the mod_jk log file:
 
 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
 INFO: server has been restarted or reset this connection
 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
 INFO: server has been restarted or reset this connection
 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
 INFO: server has been restarted or reset this connection
 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
 
 as i can see this log message is written on every request, so i can
 change the log level or if there is a real problem would appreciate
 solving the problem.
 
 is this a real problem? and if yes, does anybody know whats the problem?
 i have tried several things with WORKER.sockt_keepalive and
 WORKER.socket_timeout, but things don't change...


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



RE: newbie - finding class files

2003-08-26 Thread P . van Kemenade
Hi

I found this old thread about extending WebdavServlet,
in which Andreas Probst notes his webapp cant load classes
from the $CATALINA_HOME/servlet/lib/ dir.
this url
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
makes it clear why.
but now: how should I  extend WebdavServlet inside my webapp ?
If i put my own classes in the org.apache.bla package, it can't load
the classes from my webapp, ofcourse.
should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
to my webapps /WEB-INF/lib ?
 that should work, but it sounds ugly.



On Tue, 16 Jul 2002, Andreas Probst wrote:

 Date: Tue, 16 Jul 2002 13:59:49 +0200
 From: Andreas Probst [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: newbie - finding class files


  On Mon, 15 Jul 2002, Andreas Probst wrote:
 
  
   Hi all,
  
   does Tomcat really look into tomcatdir/server/lib? For me it  
seems
   Tomcat doesn't.
  
 
  This directory is only visible to the classloader for Tomcat  
itself, not
  for webapps.  There is a special rule that makes servlet classes in
  package org.apache.catalina available to webapps anyway,  
however, which
  is why the standard WebdavServlet (as well as the other Tomcat  
features
  that are available via servlets) can be loaded.
 
  Craig

 Thank you Craig.

 Could you please tell more about the rule or give a pointer. The
 class-loader-info of the Tomcat-Docu says nothing about the rule, but
 says, that These classes and resources are TOTALLY invisible to web
 applications.


Actually, the rule is very simple, and it is there in the docs.  Look  
at
the picture of the class loader hierarchy in the Tomcat docs:

   
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader- howto.html

The classes that are visible to a web application are those in the  
class
loader for that webapp, and any of it's parent class loaders.  In other
words, an application can see the WebappX class loader for itself,  
plus
the Shared, Common, System, and Bootstrap class loaders.  It  
can
*not* see the Catalina class loader.


thanks,
*-pike
---
Editorship Styling 'Techniek is waistline, Publish the plan!'
	What make the method strong until for instance one newspaperman who
	wish publish and not with technique wish turn troublesome fallen? The
	clientèle with all the bye bye the handshake with examples decrepit.  
The
	motto: 'Techniek is waistline, publish the plan!'

http://www.worldlanguage.com/Translation.htm 

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


JAR file symlink weirdness

2003-08-26 Thread Simon Brooke
I've always used symlinks for most of the JAR files in 
/webapps/mywebapp/WEB-INF/lib directories, and it's always worked. I've got a 
show-and-tell for a customer coming up on Thursday, and had been getting 
stuff ready for that, when suddenly the critical webapp just stopped working, 
and on inspection it turned out that it was failing to load JAR files, after 
successfully 'deploying' them. This didn't just apply to my JAR files but 
also to (Sun's) mail.jar and (Jakarta's) regexp-1.2.jar.

After a lot of threshing about I proved that this behaviour was reproducable 
with Tomcat 4.0.4 and Tomcat 4.1.12 and with Sun or Blackdown JDK 1.4.1, Sun 
JDK 1.4.0, and IBM JDK 1.3. Previously, my webapps had worked satisfactorily 
in all these configurations. And, furthermore, most of my webapps still did.

Very, very bizarre. The only relevent thing I could think of that had changed 
was that I'd switched from Emacs to Eclipse as my build tool, and I couldn't 
see how that could make a difference.

When I replaced the symlinks with actual copies of the jar files, suddenly 
everything was happy again. However, other webapps continued to work even 
though they still had symlinks.

I now think that the problem was caused by the fact that the webapp that 
failed had a symlink to xerces.jar, but there was in fact no file where the 
symlink pointed. However, xerces.jar was never the file complained about in 
the error messages. Always the file that was complained about was another 
file which was a symlink but where the symlink correctly resolved.

So there's some weirdness in the load-and-deploy-jar-files-for-webapp stuff, 
and it's related to symlinks. I'll try to produce a more complete 
characterisation of the bug and file a bug report, but in the mean time if 
you're struggling with wierdness about jar file loading check your symlinks.

Cheers

Simon

-- 
[EMAIL PROTECTED] (Simon Brooke) http://www.jasmine.org.uk/~simon/

For office use only. Please do not write or type below this line.

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



RE: newbie - finding class files

2003-08-26 Thread P . van Kemenade
Hi

I found this old thread about extending WebdavServlet,
in which Andreas Probst notes his webapp cant load classes
from the $CATALINA_HOME/servlet/lib/ dir.
this url
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
makes it clear why.
but now: how should I  extend WebdavServlet inside my webapp ?
If i put my own classes in the org.apache.bla package, it can't load
the classes from my webapp, ofcourse.
should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
to my webapps /WEB-INF/lib ?
 that should work, but it sounds ugly.



On Tue, 16 Jul 2002, Andreas Probst wrote:

 Date: Tue, 16 Jul 2002 13:59:49 +0200
 From: Andreas Probst [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: newbie - finding class files


  On Mon, 15 Jul 2002, Andreas Probst wrote:
 
  
   Hi all,
  
   does Tomcat really look into tomcatdir/server/lib? For me it 
seems
   Tomcat doesn't.
  
 
  This directory is only visible to the classloader for Tomcat 
itself, not
  for webapps.  There is a special rule that makes servlet classes in
  package org.apache.catalina available to webapps anyway, 
however, which
  is why the standard WebdavServlet (as well as the other Tomcat 
features
  that are available via servlets) can be loaded.
 
  Craig

 Thank you Craig.

 Could you please tell more about the rule or give a pointer. The
 class-loader-info of the Tomcat-Docu says nothing about the rule, but
 says, that These classes and resources are TOTALLY invisible to web
 applications.


Actually, the rule is very simple, and it is there in the docs.  Look 
at
the picture of the class loader hierarchy in the Tomcat docs:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader- 
howto.html

The classes that are visible to a web application are those in the 
class
loader for that webapp, and any of it's parent class loaders.  In other
words, an application can see the WebappX class loader for itself, 
plus
the Shared, Common, System, and Bootstrap class loaders.  It 
can
*not* see the Catalina class loader.


thanks,
*-pike
---
Editorship Styling 'Techniek is waistline, Publish the plan!'
	What make the method strong until for instance one newspaperman who
	wish publish and not with technique wish turn troublesome fallen? The
	clientle with all the bye bye the handshake with examples decrepit. 
The
	motto: 'Techniek is waistline, publish the plan!'

http://www.worldlanguage.com/Translation.htm?

==
The key words MUST, MUST NOT, REQUIRED, SHALL,
SHALL NOT  SHOULD, SHOULD NOT, RECOMMENDED,
MAY, and OPTIONAL in this document  are to be interpreted
as described in [RFC2119]

I wasted time, and now doth time waste me.
Or now hath time made me his numbring clock:
My thoughts are minutes; and, with sighs, they jar
Their watches on to mine eyes, the outward watch,
Whereto my finger, like a dials point,
Is pointing still, in cleansing them from tears.
http://framework.v2.nl/archive/archive/node/text/default.py/nodenr-67731

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


RE: newbie - finding class files

2003-08-26 Thread P . van Kemenade
Hi

I found this old thread about extending WebdavServlet,
in which Andreas Probst notes his webapp cant load classes
from the $CATALINA_HOME/servlet/lib/ dir.
this url
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
makes it clear why.
but now: how should I  extend WebdavServlet inside my webapp ?
If i put my own classes in the org.apache.bla package, it can't load
the classes from my webapp, ofcourse.
should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
to my webapps /WEB-INF/lib ?
 that should work, but it sounds ugly.



On Tue, 16 Jul 2002, Andreas Probst wrote:

 Date: Tue, 16 Jul 2002 13:59:49 +0200
 From: Andreas Probst [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: newbie - finding class files


  On Mon, 15 Jul 2002, Andreas Probst wrote:
 
  
   Hi all,
  
   does Tomcat really look into tomcatdir/server/lib? For me it 
seems
   Tomcat doesn't.
  
 
  This directory is only visible to the classloader for Tomcat 
itself, not
  for webapps.  There is a special rule that makes servlet classes in
  package org.apache.catalina available to webapps anyway, 
however, which
  is why the standard WebdavServlet (as well as the other Tomcat 
features
  that are available via servlets) can be loaded.
 
  Craig

 Thank you Craig.

 Could you please tell more about the rule or give a pointer. The
 class-loader-info of the Tomcat-Docu says nothing about the rule, but
 says, that These classes and resources are TOTALLY invisible to web
 applications.


Actually, the rule is very simple, and it is there in the docs.  Look 
at
the picture of the class loader hierarchy in the Tomcat docs:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader- 
howto.html

The classes that are visible to a web application are those in the 
class
loader for that webapp, and any of it's parent class loaders.  In other
words, an application can see the WebappX class loader for itself, 
plus
the Shared, Common, System, and Bootstrap class loaders.  It 
can
*not* see the Catalina class loader.


thanks,
*-pike
---
Editorship Styling 'Techniek is waistline, Publish the plan!'
	What make the method strong until for instance one newspaperman who
	wish publish and not with technique wish turn troublesome fallen? The
	clientèle with all the bye bye the handshake with examples decrepit. 
The
	motto: 'Techniek is waistline, publish the plan!'

http://www.worldlanguage.com/Translation.htm 

==
The key words MUST, MUST NOT, REQUIRED, SHALL,
SHALL NOT  SHOULD, SHOULD NOT, RECOMMENDED,
MAY, and OPTIONAL in this document  are to be interpreted
as described in [RFC2119]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem

2003-08-26 Thread Jason Symons

I'm not sure if this helps at all, but here is the output of the stderr.log from when 
one of the tomcat-handled pages is loaded first... Anybody have an idea of what might 
be causing the java.lang.UnsatisfiedLinkError: Expecting an absolute path of the 
library: inprocess error?

TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try  org.apache.catalina.startup.BootstrapService
Starting org.apache.catalina.startup.BootstrapService
Created catalinaLoader in: c:\Tomcat41\server\lib
Aug 26, 2003 1:37:17 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Aug 26, 2003 1:37:17 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Aug 26, 2003 1:37:18 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Aug 26, 2003 1:37:22 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
Aug 26, 2003 1:37:22 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Aug 26, 2003 1:37:23 PM org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true
Aug 26, 2003 1:37:28 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Aug 26, 2003 1:37:28 PM org.apache.jk.common.ChannelJni init
INFO: JK2: listening on channel.jni:jni
java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library: inprocess
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at org.apache.jk.apr.AprImpl.loadNative(AprImpl.java:292)
at org.apache.jk.apr.AprImpl.init(AprImpl.java:243)
at org.apache.jk.server.JkMain.start(JkMain.java:354)
at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:171)
at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1180)
at org.apache.catalina.core.StandardService.start(StandardService.java:506)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
at java.lang.Thread.run(Unknown Source)
Aug 26, 2003 1:37:28 PM org.apache.jk.apr.AprImpl init
INFO: JK2: Initialized apr
Aug 26, 2003 1:37:28 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/125  config=c:\Tomcat41\conf\jk2.properties
Aug 26, 2003 1:37:51 PM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached

*** REPLY SEPARATOR  ***

On 25/08/2003 at 2:24 PM Jason Symons wrote:

I've run into a problem with my setup of Apache 2.0.47, Tomcat 4.1.27 LE,
JDK1.4, and JK2 connected using JNI. If I stop the Apache service, and
then restart it, I get a 505 Server Error unless I either reload the page
a few times, or load a page that isn't passed to Tomcat first, once that's
done everything works fine. This problem only occurs if the Apache service
is stopped, if I reboot the machine, everything works fine. Has anybody
else encountered this problem, if so does anybody know what is causing it,
or is this just something I shouldn't worry about as it's only a minor
inconvenience?

JS





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



Re: apache2, mod_jk2, tomcat4.1.27: server has been restarted orreset this connection

2003-08-26 Thread Eric J. Pinnell
Hi,

I get this too.

You can add a connectionTimeout to the Connector (I use 12) and you
will no longer get a reset INFO message but a connection timed out
INFO message.

I know that it is possible for the user to get a 400 or 500 error due to
these resets.  I haven't ran a test with the timeout settings to find out.
I have done it with the timeout set to 0 (the default).

Also what OS are you using?  We spoke about this before and it seemed to
be unique to Solaris.  Linux didn't have the problem.

But no one has figured out an answer to it...  at least that I know of.

-e

On Tue, 26 Aug 2003, Chris Joelly wrote:

 Hello again!

 anybody any idea about this behavior?

 thx, Chris

 Am Wed, Aug 20, 2003 at 03:42:55PM +0200, Chris Joelly meinte:
 
  i have setup apache2 with mod_jk2 and tomcat4.1.27 and all works fine,
  but the following log messages is written to the mod_jk log file:
 
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
  INFO: server has been restarted or reset this connection
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
  INFO: server has been restarted or reset this connection
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
  INFO: server has been restarted or reset this connection
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
 
  as i can see this log message is written on every request, so i can
  change the log level or if there is a real problem would appreciate
  solving the problem.
 
  is this a real problem? and if yes, does anybody know whats the problem?
  i have tried several things with WORKER.sockt_keepalive and
  WORKER.socket_timeout, but things don't change...


 -
 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: crypto problem

2003-08-26 Thread Cox, Charlie
You are running into a classloading problem. put your crypto jars in
/common/lib and you can restart your app without any problems.

When you reload(or stop/start), the classloader for your app is destroyed
and all the classes are lost. So when you are using libraries that use
loadlibrary(), they can not load the library again because it thinks the
library is already loaded in another classloader even though the origianl
classloader is gone.

Charlie

 -Original Message-
 From: Maxime Colas des Francs [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 26, 2003 11:11 AM
 To: Tomcat Users List
 Subject: RE: crypto problem
 
 
 Thks for your help !
 
 I use jdk 1.4, i can register the provider statically in 
 java.security 
 file but it will be registred for all web application ...
 (I thought also to put it in $CATALINA_HOME/shared/lib/)
 
 But my sytem works great when i start manually tomcat (startup.sh), i 
 encrypt, i have no error in my catalina.out
 Someone can tell me a difference between manual startup and 
 the automatic 
 reload (by class time modified) or the manager application restart ?
 Is it a CLASSPATH problem ?
 
 At 07:56 2003-08-26 +0200, you wrote:
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
   Sent: Monday, August 25, 2003 11:23 PM
   To: [EMAIL PROTECTED]
   Subject: Re:crypto problem
  
  
   Maxime Colas des Francs wrote:
  
I attempt to use openpgp in my web application
For that i use an external provider.
I put jar files in WEB-INF/lib and in a 'load-on-startup'
   servlet, i
call
Security.addProvider() and i read a public key from a 
 file for futur
encryptions.
   
 
  
   I hope I can...
  
   What JDK version are you using, 1.3 or 1.4? 1.4 didn't like
   it when I had a Security.addProvider() line in my code. You
   might check out the cryptography forum at
   http://forums.java.com  - that was VERY  helpful to me.
  
 
 If you have Problems with Security.addProvider call you might
 try to register the provider statically in your java.security
 file. (should be in the jre/lib/security/ dir)
 
 Try to add the provider:
 
 security.provider.4=com.organization.ProviderXYZName
 
 It might be, that the Original Provider must reside in first
 position.
 
H2H, Rudolf
 
 
 
 -
 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: JAR file symlink weirdness

2003-08-26 Thread Shapira, Yoav

Howdy,

So there's some weirdness in the load-and-deploy-jar-files-for-webapp
stuff,
and it's related to symlinks. I'll try to produce a more complete
characterisation of the bug and file a bug report, but in the mean time
if
you're struggling with wierdness about jar file loading check your
symlinks.

If I were in your position, I would spend my time on not using symlinks
rather than writing test case or bug reports.  Webapps are supposed to
be self-contained and portable, while symlinks violate both of these
ideals.

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: apache2, mod_jk2, tomcat4.1.27: server has been restartedorreset this connection

2003-08-26 Thread Jeff Tulley
I've seen it on other OS's.  Well, the one I develop for, at least --
NetWare.  We are using Apache 2.x, mod_jk, and Tomcat 4.1.18 (happens in
4.1.27 too, I think).

I don't run enough serious apps on Windows to know if it happens there
as well.  My guess is that it would.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

 [EMAIL PROTECTED] 8/26/03 11:34:47 AM 
Hi,

I get this too.

You can add a connectionTimeout to the Connector (I use 12) and
you
will no longer get a reset INFO message but a connection timed out
INFO message.

I know that it is possible for the user to get a 400 or 500 error due
to
these resets.  I haven't ran a test with the timeout settings to find
out.
I have done it with the timeout set to 0 (the default).

Also what OS are you using?  We spoke about this before and it seemed
to
be unique to Solaris.  Linux didn't have the problem.

But no one has figured out an answer to it...  at least that I know
of.

-e

On Tue, 26 Aug 2003, Chris Joelly wrote:

 Hello again!

 anybody any idea about this behavior?

 thx, Chris

 Am Wed, Aug 20, 2003 at 03:42:55PM +0200, Chris Joelly meinte:
 
  i have setup apache2 with mod_jk2 and tomcat4.1.27 and all works
fine,
  but the following log messages is written to the mod_jk log file:
 
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket
processConnection
  INFO: server has been restarted or reset this connection
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket
processConnection
  INFO: server has been restarted or reset this connection
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket
processConnection
  INFO: server has been restarted or reset this connection
  19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket
processConnection
 
  as i can see this log message is written on every request, so i
can
  change the log level or if there is a real problem would
appreciate
  solving the problem.
 
  is this a real problem? and if yes, does anybody know whats the
problem?
  i have tried several things with WORKER.sockt_keepalive and
  WORKER.socket_timeout, but things don't change...



-
 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 cannot find subclass

2003-08-26 Thread James C. McMaster (Jim)
In message [EMAIL PROTECTED], Bill Barker said:
 Unlike Tomcat 4, Tomcat 3 uses a delegating ClassLoader.  This means that
 jars in lib/apps can't see classes in WEB-INF/classes.  Also, as long as the
 jar is in lib/apps, Tomcat 3 will load classes from there in preference to
 the same jar in WEB-INF/lib.
 
That was the problem.  Thank you for the help.  
-- 
Jim McMaster
mailto:[EMAIL PROTECTED]



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



Re: The requested resource (/admsite/servlet/servlet.servletAdmSite) is not available

2003-08-26 Thread L.Karam
The problem with the Servlet was solved .
But now when I execute a RequestDispatcher.forward, inside of the Servlet,
tomcat does not find the folder with jsp's.

I get the following message:

description: The requested resource (/admsite/jsp/principal.jsp) is not
available.


What it can be?

Leandro Karam


- Original Message -
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:11 AM
Subject: RE: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available


 It looks like you're confusing an older way of invoking servlets (by
 using a /servlet/class.name technique) and the more appropriate, newer
 way (through mappings). There is also one other confusing factor.

 First.. your web app name is admsite (I assume this, because that's your
 folder name). So to get to your webapplication (as opposed to other
 applications hosted in Tomcat), you need to say:

 http://localhost:8080/admsite/

 After that, you need to tell Tomcat which servlet within admsite you
 want to invoke.

 http://localhost:8080/admsite/foo

 This would invoke the 'foo' servlet.  Tomcat looks up which servlet you
 mean by looking at the list of url-pattern elements in web.xml.

 servlet
servlet-nameservletAdmSite/servlet-name
servlet-classservlet.servletAdmSite/servlet-class
 /servlet
 servlet-mapping
servlet-nameservletAdmSite/servlet-name
url-pattern/hello/url-pattern
 /servlet-mapping


 I've done one mapping for you above, so access your servlet with this
 mapping:
 http://localhost:8080/admsite/hello

 the /hello is what you type in the browser to match up what's in
 url-pattern  That's the configurable part, and it can be anything you
 want.  But it *can* be confusing if you also map it to /admsite, because
 as you've seen, it's easy to miss that the URL should then be:
 http://localhost:8080/admsite/admsite

 Also, web-inf should always be referred to as WEB-INF.


  -Original Message-
  From: L.Karam [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 27, 2003 8:46 AM
  To: Tomcat Users List
  Subject: Re: The requested resource
  (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
  Well, my servlet is in the directory: /admsite/servlet and is
  named servletAdmSite. What should be typed here:
  url-pattern???/url-pattern And what is the URL to be
  adressed to, i.e: http://localhost:8080/???
 
  Tks
 
 
 
  - Original Message -
  From: Shapira, Yoav [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 10:18 AM
  Subject: RE: The requested resource
  (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
 
  Howdy,
  With your mapping the URL to access your servlet is simply
  /admsite not /admsite/servlet/servlet.servletAdmSite.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: L.Karam [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 27, 2003 9:17 AM
  To: [EMAIL PROTECTED]
  Subject: The requested resource
  (/admsite/servlet/servlet.servletAdmSite)
  is not available
  
  Hi,
  When I try to access a servlet I get the following message:
  
  HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
  -
  --
  
  -
  
  type Status report
  message /admsite/servlet/servlet.servletAdmSite
  description The requested resource
  (/admsite/servlet/servlet.servletAdmSite)
  is not available.
  -
  --
  
  -
  
  Apache Tomcat/4.1.24
  
  
  I have verified in the tomcat manager that my application is
  correctly
  started.
  
  I have also created the WEB.XML in the Web-Inf folder, and
  it looks as
  this:
  
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
   servlet
   servlet-nameservletAdmSite/servlet-name
   servlet-classservlet.servletAdmSite/servlet-class
   /servlet
 servlet-mapping
  servlet-nameservletAdmSite/servlet-name
  url-pattern/admsite/url-pattern
 /servlet-mapping
  /web-app
  
  
  My directory tree:
  webapps/admsite/web-inf/classes/servlet
  
  Please, can anybody help me solve this?
  
  Thanks
  
  Leandro Karam
  


 -
 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: The requested resource (/admsite/servlet/servlet.servletAdmSite) is not available

2003-08-26 Thread Shapira, Yoav

Howdy,
Don't include the context's docBase in your request dispatcher
arguments: drop /admsite from the resource dispatcher calls.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: L.Karam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 2:55 PM
To: Tomcat Users List
Subject: Re: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available

The problem with the Servlet was solved .
But now when I execute a RequestDispatcher.forward, inside of the
Servlet,
tomcat does not find the folder with jsp's.

I get the following message:

description: The requested resource (/admsite/jsp/principal.jsp) is not
available.


What it can be?

Leandro Karam


- Original Message -
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:11 AM
Subject: RE: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available


 It looks like you're confusing an older way of invoking servlets (by
 using a /servlet/class.name technique) and the more appropriate,
newer
 way (through mappings). There is also one other confusing factor.

 First.. your web app name is admsite (I assume this, because that's
your
 folder name). So to get to your webapplication (as opposed to other
 applications hosted in Tomcat), you need to say:

 http://localhost:8080/admsite/

 After that, you need to tell Tomcat which servlet within admsite you
 want to invoke.

 http://localhost:8080/admsite/foo

 This would invoke the 'foo' servlet.  Tomcat looks up which servlet
you
 mean by looking at the list of url-pattern elements in web.xml.

 servlet
servlet-nameservletAdmSite/servlet-name
servlet-classservlet.servletAdmSite/servlet-class
 /servlet
 servlet-mapping
servlet-nameservletAdmSite/servlet-name
url-pattern/hello/url-pattern
 /servlet-mapping


 I've done one mapping for you above, so access your servlet with this
 mapping:
 http://localhost:8080/admsite/hello

 the /hello is what you type in the browser to match up what's in
 url-pattern  That's the configurable part, and it can be anything
you
 want.  But it *can* be confusing if you also map it to /admsite,
because
 as you've seen, it's easy to miss that the URL should then be:
 http://localhost:8080/admsite/admsite

 Also, web-inf should always be referred to as WEB-INF.


  -Original Message-
  From: L.Karam [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 27, 2003 8:46 AM
  To: Tomcat Users List
  Subject: Re: The requested resource
  (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
  Well, my servlet is in the directory: /admsite/servlet and is
  named servletAdmSite. What should be typed here:
  url-pattern???/url-pattern And what is the URL to be
  adressed to, i.e: http://localhost:8080/???
 
  Tks
 
 
 
  - Original Message -
  From: Shapira, Yoav [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 10:18 AM
  Subject: RE: The requested resource
  (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
 
  Howdy,
  With your mapping the URL to access your servlet is simply
  /admsite not /admsite/servlet/servlet.servletAdmSite.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: L.Karam [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 27, 2003 9:17 AM
  To: [EMAIL PROTECTED]
  Subject: The requested resource
  (/admsite/servlet/servlet.servletAdmSite)
  is not available
  
  Hi,
  When I try to access a servlet I get the following message:
  
  HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
  -
  --
  
  -
  
  type Status report
  message /admsite/servlet/servlet.servletAdmSite
  description The requested resource
  (/admsite/servlet/servlet.servletAdmSite)
  is not available.
  -
  --
  
  -
  
  Apache Tomcat/4.1.24
  
  
  I have verified in the tomcat manager that my application is
  correctly
  started.
  
  I have also created the WEB.XML in the Web-Inf folder, and
  it looks as
  this:
  
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
   servlet
   servlet-nameservletAdmSite/servlet-name
   servlet-classservlet.servletAdmSite/servlet-class
   /servlet
 servlet-mapping
  servlet-nameservletAdmSite/servlet-name
  url-pattern/admsite/url-pattern
 /servlet-mapping
  /web-app
  
  
  My directory tree:
  webapps/admsite/web-inf/classes/servlet
  
  Please, can anybody help me solve this?
  
  Thanks
  
  Leandro Karam
  


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

classpath error when changing context

2003-08-26 Thread rmusser
My web app is up and running, but when I added a context definition (Context.../) 
for it suddenly the jsp compiler can't find the classes in WEB-INF/classes.  What 
gives?

My jsp files are in a subdirectory of the web app, like such: 
$CATALINA_HOME/webapps/foo/bar/index.jsp.  I added an xml file to the web apps 
directory to add the context definition so instead of hitting url 
http://localhost:8080/foo/bar/index.jsp I could just hit 
http://localhost:8080/bar/index.jsp.  The context definition is like:

Context path=/bar docBase=foo/bar reloadable=false/

But when I use that new url, the compiler complains about not being able to find the 
classes (in WEB-INF/classes).  If I hit the original url, it works fine.

Thanks!

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



Re: The requested resource (/admsite/servlet/servlet.servletAdmSite) is not available

2003-08-26 Thread L.Karam
Tks..!!!

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 3:59 PM
Subject: RE: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available



Howdy,
Don't include the context's docBase in your request dispatcher
arguments: drop /admsite from the resource dispatcher calls.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: L.Karam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 2:55 PM
To: Tomcat Users List
Subject: Re: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available

The problem with the Servlet was solved .
But now when I execute a RequestDispatcher.forward, inside of the
Servlet,
tomcat does not find the folder with jsp's.

I get the following message:

description: The requested resource (/admsite/jsp/principal.jsp) is not
available.


What it can be?

Leandro Karam


- Original Message -
From: Mike Curwen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 11:11 AM
Subject: RE: The requested resource
(/admsite/servlet/servlet.servletAdmSite) is not available


 It looks like you're confusing an older way of invoking servlets (by
 using a /servlet/class.name technique) and the more appropriate,
newer
 way (through mappings). There is also one other confusing factor.

 First.. your web app name is admsite (I assume this, because that's
your
 folder name). So to get to your webapplication (as opposed to other
 applications hosted in Tomcat), you need to say:

 http://localhost:8080/admsite/

 After that, you need to tell Tomcat which servlet within admsite you
 want to invoke.

 http://localhost:8080/admsite/foo

 This would invoke the 'foo' servlet.  Tomcat looks up which servlet
you
 mean by looking at the list of url-pattern elements in web.xml.

 servlet
servlet-nameservletAdmSite/servlet-name
servlet-classservlet.servletAdmSite/servlet-class
 /servlet
 servlet-mapping
servlet-nameservletAdmSite/servlet-name
url-pattern/hello/url-pattern
 /servlet-mapping


 I've done one mapping for you above, so access your servlet with this
 mapping:
 http://localhost:8080/admsite/hello

 the /hello is what you type in the browser to match up what's in
 url-pattern  That's the configurable part, and it can be anything
you
 want.  But it *can* be confusing if you also map it to /admsite,
because
 as you've seen, it's easy to miss that the URL should then be:
 http://localhost:8080/admsite/admsite

 Also, web-inf should always be referred to as WEB-INF.


  -Original Message-
  From: L.Karam [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 27, 2003 8:46 AM
  To: Tomcat Users List
  Subject: Re: The requested resource
  (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
  Well, my servlet is in the directory: /admsite/servlet and is
  named servletAdmSite. What should be typed here:
  url-pattern???/url-pattern And what is the URL to be
  adressed to, i.e: http://localhost:8080/???
 
  Tks
 
 
 
  - Original Message -
  From: Shapira, Yoav [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 10:18 AM
  Subject: RE: The requested resource
  (/admsite/servlet/servlet.servletAdmSite) is not available
 
 
 
  Howdy,
  With your mapping the URL to access your servlet is simply
  /admsite not /admsite/servlet/servlet.servletAdmSite.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: L.Karam [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 27, 2003 9:17 AM
  To: [EMAIL PROTECTED]
  Subject: The requested resource
  (/admsite/servlet/servlet.servletAdmSite)
  is not available
  
  Hi,
  When I try to access a servlet I get the following message:
  
  HTTP Status 404 - /admsite/servlet/servlet.servletAdmSite
  -
  --
  
  -
  
  type Status report
  message /admsite/servlet/servlet.servletAdmSite
  description The requested resource
  (/admsite/servlet/servlet.servletAdmSite)
  is not available.
  -
  --
  
  -
  
  Apache Tomcat/4.1.24
  
  
  I have verified in the tomcat manager that my application is
  correctly
  started.
  
  I have also created the WEB.XML in the Web-Inf folder, and
  it looks as
  this:
  
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
   servlet
   servlet-nameservletAdmSite/servlet-name
   servlet-classservlet.servletAdmSite/servlet-class
   /servlet
 servlet-mapping
  servlet-nameservletAdmSite/servlet-name
  url-pattern/admsite/url-pattern
 /servlet-mapping
  /web-app
  
  
  My directory tree:
  

Dynamically update server.xml httpd.conf

2003-08-26 Thread Lars Nielsen Lind
Hi.

Is it possible to update and implement changes in server.xml and httpd.conf while 
Apache/Tomcat is running?

I want to be able to add 'sites' to my server without restarting Apache/Tomcat.

Are there other solutions?



Lars Nielsen Lind

Re: Dynamically update server.xml httpd.conf

2003-08-26 Thread L.Karam
You can use the Manager application of Tomcat !!

- Original Message -
From: Lars Nielsen Lind [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 4:17 PM
Subject: Dynamically update server.xml  httpd.conf


Hi.

Is it possible to update and implement changes in server.xml and httpd.conf
while Apache/Tomcat is running?

I want to be able to add 'sites' to my server without restarting
Apache/Tomcat.

Are there other solutions?



Lars Nielsen Lind


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



Re: Dynamically update server.xml httpd.conf

2003-08-26 Thread John Turner
Tomcat 4 = no
Tomcat 5 = I believe so
Apache = yes ($APACHE_HOME/bin/apachectl graceful OR 
$APACHE_HOME/bin/apachectl restart)

John

Lars Nielsen Lind wrote:

Hi.

Is it possible to update and implement changes in server.xml and httpd.conf while Apache/Tomcat is running?

I want to be able to add 'sites' to my server without restarting Apache/Tomcat.

Are there other solutions?



Lars Nielsen Lind


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


RE: Dynamically update server.xml httpd.conf

2003-08-26 Thread Shapira, Yoav

Howdy,
Modifications to server.xml can be made while tomcat is running, but
tomcat must be restarted for these changes to take effect.  I can't
speak for httpd.conf with the same certainty but from what I remember
it's the same story.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 3:18 PM
To: Tomcat Users List
Subject: Dynamically update server.xml  httpd.conf

Hi.

Is it possible to update and implement changes in server.xml and
httpd.conf
while Apache/Tomcat is running?

I want to be able to add 'sites' to my server without restarting
Apache/Tomcat.

Are there other solutions?



Lars Nielsen Lind



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: Dynamically update server.xml httpd.conf

2003-08-26 Thread Shapira, Yoav

Howdy,

Apache = yes ($APACHE_HOME/bin/apachectl graceful OR
$APACHE_HOME/bin/apachectl restart)

But doesn't this do an apache restart, i.e. doesn't swap the changes
in-memory?  Of course, the apache restart is so quick it might not
matter ;)

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: tomcat - request thread pool question

2003-08-26 Thread Rau NF
Hi - I was referring to the HTTP 1.1 Connector. Thanks
for the information but I am a bit puzzled as to why
the threads should go away (ie die) on getting an
exception.   On a heavily loaded server, we can have
different IO exceptions being generated all the time
and the pool will be too busy trying creating new
threads. Not really  pool like behaviour ...thoughts
anyone ?

Thanks



It really depends on if you are talking about the HTTP
Connector, or 
the AJP
Connector.

For the HTTP Connector, threads usually have short
lives (i.e. they 
exit
after the last Keep-Alive has been handled). 
Exceptions thrown out of 
the
servlet, and certain HTTP status codes will also end
the thread (since 
the
socket stream is likely in an undefined state in these
cases).

For the AJP Connector, threads usually have long
lives.  If you haven't
configured a connectionTimeout, then they usually last
as long as the 
Apache
child that they are talking to does.  However, if they
get a 
SocketException
on output, then it will exit early (since Apache isn't
talking to it
anymore).
=

--- Rau NF [EMAIL PROTECTED] wrote:
 Hi - Under what conditions can the tomcat thread
 pool
 implementation decide to let a thread exit ? 
 
 Would this happen if some application code threw an
 exception and is caught only by the tomcat framework
 ?
 Can it happen if the servlet is writing data out to
 a
 connection and gets a SocketException or one of
 those
 IllegalStateExceptions ? eg.,
 
 2003-08-22 01:13:11 ApplicationDispatcher[]
 Servlet.service() for servlet jsp_servlet.some_jsp
 threw exception
 java.lang.IllegalStateException: Cannot create a
 session after the response has been committed
 at

org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java:1884)
 at

org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1731)
 
 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Dynamically update server.xml httpd.conf

2003-08-26 Thread John Turner
Yep, its a restart.  If you use restart then all open connections will 
be dropped.  If you use graceful, Apache will block new requests, and 
wait until all open connections are closed before restarting.

So yes should probably be maybe. :)

John

Shapira, Yoav wrote:

Howdy,


Apache = yes ($APACHE_HOME/bin/apachectl graceful OR
$APACHE_HOME/bin/apachectl restart)


But doesn't this do an apache restart, i.e. doesn't swap the changes
in-memory?  Of course, the apache restart is so quick it might not
matter ;)
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]


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


web.xml file in jsp-examples/WEB-INF

2003-08-26 Thread Vaidya, Maulik
Can someone please send me the sample web.xml file which comes under
jsp-examples/WEB-INF directory. Someone deleted it from my directory
structure :(

TIA

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



RE: tomcat - request thread pool question

2003-08-26 Thread Shapira, Yoav

Howdy,
A typical pool implementation attempts to guarantee that poolable
objects handed out to clients are valid.  If an exception occurs in a
pool object it's a legitimate strategy to discard that object and create
a new valid one, so that a corrupt object will never be handed out to
applications.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rau NF [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 3:58 PM
To: [EMAIL PROTECTED]
Subject: Re: tomcat - request thread pool question

Hi - I was referring to the HTTP 1.1 Connector. Thanks
for the information but I am a bit puzzled as to why
the threads should go away (ie die) on getting an
exception.   On a heavily loaded server, we can have
different IO exceptions being generated all the time
and the pool will be too busy trying creating new
threads. Not really  pool like behaviour ...thoughts
anyone ?

Thanks



It really depends on if you are talking about the HTTP
Connector, or
the AJP
Connector.

For the HTTP Connector, threads usually have short
lives (i.e. they
exit
after the last Keep-Alive has been handled).
Exceptions thrown out of
the
servlet, and certain HTTP status codes will also end
the thread (since
the
socket stream is likely in an undefined state in these
cases).

For the AJP Connector, threads usually have long
lives.  If you haven't
configured a connectionTimeout, then they usually last
as long as the
Apache
child that they are talking to does.  However, if they
get a
SocketException
on output, then it will exit early (since Apache isn't
talking to it
anymore).
=

--- Rau NF [EMAIL PROTECTED] wrote:
 Hi - Under what conditions can the tomcat thread
 pool
 implementation decide to let a thread exit ?

 Would this happen if some application code threw an
 exception and is caught only by the tomcat framework
 ?
 Can it happen if the servlet is writing data out to
 a
 connection and gets a SocketException or one of
 those
 IllegalStateExceptions ? eg.,

 2003-08-22 01:13:11 ApplicationDispatcher[]
 Servlet.service() for servlet jsp_servlet.some_jsp
 threw exception
 java.lang.IllegalStateException: Cannot create a
 session after the response has been committed
 at

org.apache.coyote.tomcat4.CoyoteRequest.doGetSession(CoyoteRequest.java
:188
4)
 at

org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1
731)



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Debug tomcat session serialization

2003-08-26 Thread Sasha Borodin
Where do I have to up the debug level to get some error/debug/trace messages
for session serialization when I reload a context?

I'm having an issue with Struts ActionForm's bound to a session becoming
null after a context/container reload, but I see no messages in
localhost_log_date.txt or catalina.out/err

Thank you very much.

-Sasha


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



  1   2   >