Cocoon and Tomcat in RedHat 7.3

2002-08-18 Thread Martin Polley

Hi Tomcat experts!

I hope you can help out a Tomcat newbie with an annoying problem:

I have just got Tomcat running on my RedHat 7.3 machine (RPMs from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/rpms/
), but I cannot get Cocoon running.

I downloaded the latest Cocoon tarball (cocoon-2.0.3-vm14-bin.tar.gz) ,
untarred it, and copied cocoon.war to Tomcat's /webapps directory, but
when I point my browser to http://localhost:8080/cocoon, I get a message
from Tomcat to the effect that it cannot find Cocoon (it does not unpack
the war file). (And yes, I DID stop Tomcat and restart it...)

The catalina.out log does not show any problems.

Anyone have any idea what I am doing wrong?

(BTW, I have managed to get Cocoon running OK on a Windows machine. But
that's not what I want!!!)

TIA,

Martin Polley
Technical Communicator
http://www.surf-com.com/
[EMAIL PROTECTED]
Tel: (+972) (4) 9095-732
Mobile: (053) 864-280
ICQ 15617901


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




Re: Where are the connector binaries???

2002-08-18 Thread Scott Adamson

Apache won't start. Get the following in apache/logs/error_log -

No such file or directory: Error while opening the workers



conf/workers.properties contains the following -

workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.4
workers.java_home=/usr/java/jdk1.3
ps=/
worker.list=ajp12, ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Saturday, August 17, 2002 2:29 AM
Subject: RE: Where are the connector binaries???



 What's been happening when you try to get apache+tomcat+mod_jk to work?

 John Turner
 [EMAIL PROTECTED]

 -Original Message-
 From: Scott Adamson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, August 16, 2002 11:31 AM
 To: Tomcat Users List
 Subject: Re: Where are the connector binaries???


 I couldn't. The src is at
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/
 (couldn't get the bitch to compile)
 although I used the binaries for 3.3, which are supposed to work with
tomcat
 4, although I have not got it to work yet. Good luck, you will need it !

 Scott.



 - Original Message -
 From: Peter Alvin [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, August 17, 2002 2:15 AM
 Subject: Where are the connector binaries???


 I'm looking in:

 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/
 v1.2.0/bin/linux/i386/

 and I can't find _any_ binaries for release, nightly, or rpms.   All
 the directories seem to be EMPTY. Does anyone know where to find the
 current connector binaries?

 Pete




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




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

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




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




virtual hosting for muliple applications

2002-08-18 Thread Alon Lutzker

Hi All,

I'm a bit new to the whole tomcat/apache/mod_jk thing, so I was looking for
some advice on virtual hosting.

I would like to run tomcat with 2-3 different applications, with 2-5
loadballanced tomcat instances for each application. from RTFMing, I have
seen that the way to do this would be using virtual hosts.



The architecture that I'm trying to implement looks like this:
httpserver[Virtual host 1.1.1.1]  tomcatserver [application1_instance01]
httpserver[Virtual host 1.1.1.1]  tomcatserver [application1_instance02]
httpserver [virtual host 1.1.1.2  tomcatserver [application2_instance01]
httpserver [virtual host 1.1.1.2  tomcatserver [application2_instance02]
Each java application is different, and I can't have users that go to the
website 1.1.1.1 going to website 1.1.1.2.

I found some excellent documents on this subject, but it wasn't clear to me
if I could do use these with completely different applications. The seemed
to be relevant only for different instances of the same applications via
different virtual hosts.

Has anyone had any experience with such an architecture?

Here are the docs that I have seen:

http://carnagepro.com/pub/Docs/Tomcat/tomcat-apache-howto.html#virtual_hosti
ng

Thanks,

Alon Lutzker, System Administrator
Check Point Software Technologies, Ltd.
Email: [EMAIL PROTECTED]
Phone: 972 - 3 - 7534673
Fax: 972 - 3 - 575-9256
Mobile: 972 - 57 - 774481 (MIRS)


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




buffer error with tomcat 4.1.9-LE

2002-08-18 Thread capr1ce

Hi all.

I've just upgraded to Tomcat 4.1.9-LE.

I have a buffer page directive at the top of each of my JSP pages:
%@ page buffer=50k %

With the new version on tomcat, i'm getting this error:
org.apache.jasper.JasperException: /jsp/logon.jsp(2,0) jsp.error.buffer.invalid

It works fine if I take the buffer page directive out.
 From the error message, I assume that the syntax has changed, but I cant 
seem to find out how.
Any ideas?

Cheers,
Mel.

PS. I need the directive, other wise I have problems with the error page 
due to the fact that I have jsp:include statements in my code.


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




Re: BasicDataSourceFactory and TC 4.1.9

2002-08-18 Thread Simon T

Paul,

I have mysql working ok with mm.mysql-2.0.11-bin.jar 
file in the common/lib
I am using the jdk1.3.1 with the full tomcat 4.1.19 
installation.
   
Which JDK are you using?   

The context web.xml needs to be updated for the context in the server.xml 
e.g in the tomcat example they created DBTest  Context path=/DBTest 
docBase=DBTest

   
A jsp example that i used for testing
   

htmlhead
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body bgcolor=#e0a0e0
%@page language=java import=javax.sql.*%
%@page import=javax.naming.* %
%@page import=java.util.* %
%@page import=java.sql.* %
%
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource)envCtx.lookup(jdbc/mysql);
Connection conn = ds.getConnection();
Statement StatementRecordset1 = conn.createStatement();
ResultSet Recordset1 = StatementRecordset1.executeQuery(select * from 
abc);
boolean Recordset1_isEmpty = !Recordset1.next();
boolean Recordset1_hasData = !Recordset1_isEmpty;
int Recordset1_numRows = 0;
int Repeat1__numRows = 100 ;
int Repeat1__index = 0 ;
Recordset1_numRows += Repeat1__numRows;
%
table BORDER=2
% while ((Recordset1_hasData)(Repeat1__numRows-- != 0))
{
%
tr
  td%= (String) Recordset1.getObject(name) %/td
/tr
%Repeat1__index++;
Recordset1_hasData = Recordset1.next();}
Recordset1.close();
conn.close();
%
/table
/body/html


Regards,
Simon

Paul McGovern wrote:

I am having probelms getting a Connection from the DataSource I get out of 
JNDI. I set up the Resource section of my server.xml as described in the 
HOW-TO for 4.1.9 and am using mm.mysql 2.0.14 with MySQL 3.23.51. The DB and 
dirver seem to work fine together.

It seems I can get the DataSource from the JNDI context as expected, but 
calling getConnection() yeilds an SQLException that says, Cannot load JDBC 
driver class 'null'. The driver is sitting in common/lib and can be seen and 
used by servlets in my context if I do it 'by hand'. A quick look through 
DBCP's BasicDataSourceFactory confirms 'driverClassName' is the correct 
parameter name for the driver class, and the exception is being generated in 
BasicDataSource:

// Load the JDBC driver class
Class driverClass = null;
try {
driverClass = Class.forName(driverClassName);
} catch (Throwable t) {
String message = Cannot load JDBC driver class ' +
driverClassName + ';
logWriter.println(message);
t.printStackTrace(logWriter);
throw new SQLException(message);
}

Any help would be greatly appreciated.


From my server.xml:
Resource name=jdbc/form_rev_DB auth=Container 
type=javax.sql.DataSource/
 ResourceParams name=jdbc/form_rev_DB
 parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
   parameternamemaxActive/namevalue100/value/parameter
   parameternamemaxIdle/namevalue3/value/parameter
   parameternamemaxWait/namevalue100/value/parameter
   parameternameusername/namevaluetcuser/value/parameter
   parameternamepassword/namevalueX/value/parameter
   parameter
 namedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value
   /parameter
  parameter
nameurl/name
valuejdbc:mysql://localhost:3306/form_rev/value
  /parameter
/ResourceParams

From my web.xml:
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/form_rev_DB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref

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


  





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




Re: DBCP borrowObject failed

2002-08-18 Thread Simon T

Your server xml is missing usersname and password, mybe you left this 
out in the email.
web.xml is fine, but it need to be the one under PSI/WEB-INF

I am running oracle fine wtih JDK1.3.1 as a window service, have not got 
going with JDK1.4.0 yet.
My url has no username in front of it.
valuejdbc:oracle:thin:@localhost:1521:test/value

Yours has

valuejdbc:oracle:thin:CUST0@short200:1521:PSIP/value

is CUSTO correct? Maybe you could leave it out.

Did you use the correct tomcat.exe, the LE one is for JDK1.4.


This is from my server.xml
Resource name=jdbc/myoracle auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/myoracle
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@localhost:1521:test/value
  /parameter
  parameter
nameusername/name
valuetest/value
  /parameter
  parameter
namepassword/name
value/value
  /parameter
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter
/ResourceParams

Simon

Short, Dave wrote:

I am having a problem getting a connection from JNDI.  I set up my
server.xml and web.xml files per the instructions in the JNDI Resources
HOW-TO and JNDI DataSource Examples on the Tomcat 4.1 Documentation Page.

Configuration:

W2K
Tomcat 4.1.9 (Stand Alone)
Oracle 8.1.7

Here's my Tomcat console output, server.xml and web.xml snippets.

Any help would be much appreciated.

Dave

Console Output

*

[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.9
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on tcp port 8009
[INFO] JkMain - -APR not loaded, disabling jni components:
java.io.IOException:

[INFO] JkMain - -Jk running ID=0 time=60/60
config=C:\Tomcat\conf\jk2.properties
DBCP borrowObject failed: null
java.lang.NullPointerException
at
org.apache.commons.dbcp.DelegatingConnection.setAutoCommit(DelegatingConnect
ion.java:237)
at
org.apache.commons.dbcp.PoolableConnectionFactory.activateObject(PoolableCon
nectionFactory.java:273)
at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source)
at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
.java:117)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:110)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)
at foo.DBTest.init(Unknown Source)
at org.apache.jsp.test_jsp._jspService(test_jsp.java:52)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
02)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at

Re: BasicDataSourceFactory and TC 4.1.9

2002-08-18 Thread Nikola Milutinovic

Paul McGovern wrote:

 Upon further investigation, I found that the config I use below does work if, 
 and only if, I access the servlet from localhost:8080. I'm using mod_webapp 
 with Apache 1.3.24 and have the following entry, which seems to work fine, in 
 httpd.conf:

Lookup archives. This problem has been noted and it has to do with deployment 
paths of the webapp. I recall that mod_webapp would deploy under different path 
and that would cause resources not to get loaded *for mod_webapp only*.

Nix.


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




forwardinf from a servlet path context

2002-08-18 Thread Billy V. Kantartzis

hi listers ,
i need am tryin gto forward from a servlet to a jsp in a deferent path
here is the tree structuere
dms(application root )
|-- jsp (the path of the jsps)
|-servlet
| |
|-dms (package with servlet)
|
servlet
|
TestServlet the servlet
this is what i do
RequestDispatcher des=getServletContext().getRequestDispatcher(
/dms/jsp/index.jsp);
des.forward(request,response);
as a result i am getting a 404 - page not found error what is wrong with it
?
best regards ,

Billy V. Kantartzis (Msc Ect),
University Of Essex,
wivenhoe park ,
co4 3sq
Clochester,
Essex,Uk
mailto:[EMAIL PROTECTED]

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




Re: Fw: Still can't get Apache to forward to Tomcat

2002-08-18 Thread Niket Anand

Hi Robert,
 I am using Apache2.0.4,
jakarta-tomcat-connectors-4.0.4-src,JBoss-2.4.6_Tomcat-4.0.3 and JDK1.3.1.
I am unable to configure apache with tomcat+Jboss.
I have gone through your doc file and followed all instructions, but it is
giving following error.
###
apache: module
E:\tomcat\jakarta-tomcat-connectors\jk\native2\server\apache2\mo
d_jk2.c is not compatible with this version of Apache.
Please contact the vendor for the correct version.
###
Even though I put jakarta-tomcat-connectors-4.0.4-src as
E:\tomcat\jakarta-tomcat-connectors.
How can I get rid of this problem. I am unable to compile mod_jk2.c using
MSDEV?
Pls help me out.

Thanks,
Niket
- Original Message -
From: Robert L Sowders [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, August 18, 2002 9:29 AM
Subject: Re: Fw: Still can't get Apache to forward to Tomcat


 There's no reason that it shouldn't.  I don't use Oracle here, but others
 on this list have suggested putting the oracle jar file in the common
 directory.  Search the list for mention of this, I hazy on this.  Here's
 one I found that looks like it's ok.  Try a search for JDBC.

 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg61825.html




 Kenny G. Dubuisson, Jr. [EMAIL PROTECTED]
 08/16/2002 06:03 AM
 Please respond to Tomcat Users List


 To: [EMAIL PROTECTED]
 cc:
 Subject:Fw: Still can't get Apache to forward to Tomcat

 Do you know if this configuration works with Oracle 9i?  I've tried
 everything 'cept standing on my head to get my other config to work so now
 I'm gonna try this one that you suggest.  Thanks for all the feedback,
 Kenny

 - Original Message -
 From: Robert L Sowders [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, August 15, 2002 8:46 PM
 Subject: Re: Still can't get Apache to forward to Tomcat


  Try this one, it works for me.
 
  ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Win2k_TC4.1.8_JSDK1.4.doc
 
  rls
 
 
 
 
 
  Kenny G. Dubuisson, Jr. [EMAIL PROTECTED]
  08/15/2002 01:27 PM
  Please respond to Tomcat Users List
 
 
  To: [EMAIL PROTECTED]
  cc:
  Subject:Still can't get Apache to forward to Tomcat
 
  I've been trying all day (installed from blank hard drive twice) and I
  can't
  get Apache to forward requests to Tomcat.  I'm testing this by trying to
  access http://localhost/examples.  It should be forwarding to
  http://localhost:8080/examples (Tomcat's examples).
 
  I've found the following two entries in my Apache error.log file:
  [Thu Aug 15 15:23:51 2002] [error] lb_worker.service() all workers in
  error
  or disabled state
  [Thu Aug 15 15:23:51 2002] [error] mod_jk.handler() Error connecting to
  tomcat 21000
 
  Does anyone have any ideas?  I used the workers2.properties and
  jk2.properties files from Dave on this list (I only changed the paths).
  Everything else is default Apache 2.0.39, Tomcat 4.1.8, and JSDK 1.3.1.
  Thanks,
  Kenny
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


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





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


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




RE: buffer error with tomcat 4.1.9-LE

2002-08-18 Thread Andrew Conrad

I was under the impression the buffer should be in 'kb'

ie
%@ page buffer=50kb %

- Andrew

 -Original Message-
 From: capr1ce [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, January 13, 2002 7:24 AM
 To: [EMAIL PROTECTED]
 Subject: buffer error with tomcat 4.1.9-LE
 
 
 Hi all.
 
 I've just upgraded to Tomcat 4.1.9-LE.
 
 I have a buffer page directive at the top of each of my JSP 
 pages: %@ page buffer=50k %
 
 With the new version on tomcat, i'm getting this error:
 org.apache.jasper.JasperException: /jsp/logon.jsp(2,0) 
 jsp.error.buffer.invalid
 
 It works fine if I take the buffer page directive out.
  From the error message, I assume that the syntax has 
 changed, but I cant 
 seem to find out how.
 Any ideas?
 
 Cheers,
 Mel.
 
 PS. I need the directive, other wise I have problems with the 
 error page 
 due to the fact that I have jsp:include statements in my code.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




anyone recieve this email?

2002-08-18 Thread neal

Can anyone hear me?  Is anyone recieving this email?  Please respond.


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




Tomcat - IP binding for multiple web apps

2002-08-18 Thread neal

I would like to run multiple web applications from the same instance of
tomcat.  I have set this up in my dev environment, no problem.

The problem is this:

I can not figure out how to bind an IP address (one seperate IP per web app)
to each of these web apps.  Actually, I haven't even seen in the docs how to
bing a single IP to Tomcat either  DO I need to usa Appche (via Warp) to
do this or something?

Note:

I am currently running standalone Tomcat 4.0.3, on Win2k, profesisonal.


Thanks.
Neal


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




RE: anyone recieve this email?

2002-08-18 Thread Andrew Conrad

recieved

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, August 18, 2002 3:09 PM
 To: Tomcat Users List
 Subject: anyone recieve this email?
 
 
 Can anyone hear me?  Is anyone recieving this email?  Please respond.
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


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




RE: anyone recieve this email?

2002-08-18 Thread Jacob Hookom

Respond

| -Original Message-
| From: neal [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, August 18, 2002 2:09 PM
| To: Tomcat Users List
| Subject: anyone recieve this email?
| 
| Can anyone hear me?  Is anyone recieving this email?  Please respond.
| 
| 
| --
| To unsubscribe, e-mail:   mailto:tomcat-user-
| [EMAIL PROTECTED]
| For additional commands, e-mail: mailto:tomcat-user-
| [EMAIL PROTECTED]
| 
| ---
| Incoming mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
 


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




Yes, we are receiving you.

2002-08-18 Thread Michael Armstrong


Yes.



- Original Message -
From: neal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, August 18, 2002 12:09 PM
Subject: anyone recieve this email?


 Can anyone hear me?  Is anyone recieving this email?  Please respond.


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




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




RE: Tomcat - IP binding for multiple web apps

2002-08-18 Thread Andrew Conrad

Modify your Http/1.1 Connector and add an address attribute to specify
which IP address to listen on.  By default, the Connector listens on ALL
IP addresses.


Connector class=org.apache.catalina.connector.http.HttpConnector
address=127.0.0.1 /

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

From what I can tell, you can't define a webapp (defined as a Context in
the server.xml) as running on a specific address.  What you can do is
use multiple Host entries to define Hosts that pick up different DNS
Names.


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html


Host name=www.site1.com 
Context path=/webapp1 docBase=webapp1 /
/Host

Host name=www.site2.com 
Context path=/webapp2 docBase=webapp2 /
/Host



- Andrew

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, August 18, 2002 3:19 PM
 To: Tomcat Users List
 Subject: Tomcat - IP binding for multiple web apps
 
 
 I would like to run multiple web applications from the same 
 instance of tomcat.  I have set this up in my dev 
 environment, no problem.
 
 The problem is this:
 
 I can not figure out how to bind an IP address (one seperate 
 IP per web app) to each of these web apps.  Actually, I 
 haven't even seen in the docs how to bing a single IP to 
 Tomcat either  DO I need to usa Appche (via Warp) to do 
 this or something?
 
 Note:
 
 I am currently running standalone Tomcat 4.0.3, on Win2k, 
 profesisonal.
 
 
 Thanks.
 Neal
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Yes, we are receiving you.

2002-08-18 Thread STEVE R BURRUS

Mike Armstrong responded back to your query, Neal, affirmatively when you asked
(apparently in some state of mental agony/anguish) if anybody in the tomcat users
newsgroup was hearing u or not!!! i wanna ask you what question and/or problem
that you might have using tomcat you need help with??! I am right here to help you
out of any problem!! 
**

--- Michael Armstrong [EMAIL PROTECTED] wrote:
 
 Yes.
 
 
 
 - Original Message -
 From: neal [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, August 18, 2002 12:09 PM
 Subject: anyone recieve this email?
 
 
  Can anyone hear me?  Is anyone recieving this email?  Please respond.
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Need help w. Tomcat Installation

2002-08-18 Thread STEVE R BURRUS

  Hello all, this is steve burrus.I am an admitted Tomcat newbie user, and I
find
myself in need again of some advice from someone/somebody about just how the hell
do you first install tomcat??! I am trying to install Tomcat 4.0.4, and I get
everything alright EXCEPT for getting an error msg. in DOS when I try to start it
up saying that the JAVA-HOME environment isn't properly set!!! I know that I have
set it in the System applet correctly!! I am using Win XP. Oh, and one more
thing: Is there any new version of tomcat beyond v. 4.0.4?  



__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




RE: Need help w. Tomcat Installation

2002-08-18 Thread Jacob Hookom



| -Original Message-
| From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, August 18, 2002 3:55 PM
| To: [EMAIL PROTECTED]
| Subject: Need help w. Tomcat Installation
| 
|   Hello all, this is steve burrus.I am an admitted Tomcat newbie
user,
| and I
| find
| myself in need again of some advice from someone/somebody about just
how
| the hell
| do you first install tomcat??! I am trying to install Tomcat 4.0.4,
and I
| get
| everything alright EXCEPT for getting an error msg. in DOS when I try
to
| start it
| up saying that the JAVA-HOME environment isn't properly set!!! 

Make sure you have j2sdk installed

Right click on My Computer
Go to Properties
Click on Advanced Tab
Click on Environment Variables at the bottom
Under system variables, click New
Variable Name: JAVA_HOME
Variable Value: C:\j2sdk. Wherever your root sdk installation is

Note, if you already have a console window open, you will need to close
it and open a new one to get the updated system variable (I don't know
why, it just does).


| I know that
| I have
| set it in the System applet correctly!! I am using Win XP. Oh, and
one
| more
| thing: Is there any new version of tomcat beyond v. 4.0.4?

Of course... try looking at jakarta's home page, it reads at the top
15 August 2002 - Tomcat 4.1.9 Beta Released

| 
| 
| 
| __
| Do You Yahoo!?
| HotJobs - Search Thousands of New Jobs
| http://www.hotjobs.com
| 
| --
| To unsubscribe, e-mail:   mailto:tomcat-user-
| [EMAIL PROTECTED]
| For additional commands, e-mail: mailto:tomcat-user-
| [EMAIL PROTECTED]
| 
| ---
| Incoming mail is certified Virus Free.
| Checked by AVG anti-virus system (http://www.grisoft.com).
| Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
| 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
 


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




RE: Tomcat - IP binding for multiple web apps

2002-08-18 Thread neal

Thanks.

You point out two things: (1) how to specify which IPs to listen on, and (2)
how to associate a context with a host, where the host name is the URI
pointing to the webapp.

In Microsoft IIS, you bind an IP to each virtual host, and its the DNS
servers job to point you to the right IP, based upon the URL lookup.  In
your suggestion with Tomcat I see how you are suggesting to bind IPs to
Tomcat, but how does Tomcat then make the leap to binding those Ips to the
correct virtual Host?

Also, I read in the provided link (thanks for that, btw) that you can assign
multiple contexts to each host, and multiple hosts to an enginer.  I presume
Tomcat is the engine, and that a host is essentially a Virtual Host,
correct?  How/why would one then have multiple contexts per a single host?

Is it just me or is the Tomcat documentation a little lacking in this area?

Thanks for your help!  :)

Neal


-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 18, 2002 12:43 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat - IP binding for multiple web apps


Modify your Http/1.1 Connector and add an address attribute to specify
which IP address to listen on.  By default, the Connector listens on ALL
IP addresses.


Connector class=org.apache.catalina.connector.http.HttpConnector
address=127.0.0.1 /

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

From what I can tell, you can't define a webapp (defined as a Context in
the server.xml) as running on a specific address.  What you can do is
use multiple Host entries to define Hosts that pick up different DNS
Names.


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html


Host name=www.site1.com 
Context path=/webapp1 docBase=webapp1 /
/Host

Host name=www.site2.com 
Context path=/webapp2 docBase=webapp2 /
/Host



- Andrew

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 18, 2002 3:19 PM
 To: Tomcat Users List
 Subject: Tomcat - IP binding for multiple web apps


 I would like to run multiple web applications from the same
 instance of tomcat.  I have set this up in my dev
 environment, no problem.

 The problem is this:

 I can not figure out how to bind an IP address (one seperate
 IP per web app) to each of these web apps.  Actually, I
 haven't even seen in the docs how to bing a single IP to
 Tomcat either  DO I need to usa Appche (via Warp) to do
 this or something?

 Note:

 I am currently running standalone Tomcat 4.0.3, on Win2k,
 profesisonal.


 Thanks.
 Neal


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



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


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




RE: Need help w. Tomcat Installation

2002-08-18 Thread Randall R Schulz

Steve,


At 14:04 2002-08-18, Jacob Hookom wrote:
| -Original Message-
| From: STEVE R BURRUS [mailto:[EMAIL PROTECTED]]
| Sent: Sunday, August 18, 2002 3:55 PM
| To: [EMAIL PROTECTED]
| Subject: Need help w. Tomcat Installation
|
|   Hello all, this is steve burrus.I am an admitted Tomcat newbie user, 
and I
| find myself in need again of some advice from someone/somebody about 
just how
| the hell do you first install tomcat??! I am trying to install Tomcat 
4.0.4, and I
| get everything alright EXCEPT for getting an error msg. in DOS when I try to
| start it up saying that the JAVA-HOME environment isn't properly set!!!

Make sure you have j2sdk installed

Right click on My Computer
Go to Properties
Click on Advanced Tab
Click on Environment Variables at the bottom
Under system variables, click New
Variable Name: JAVA_HOME
Variable Value: C:\j2sdk. Wherever your root sdk installation is

In your mail, Steve, you wrote JAVA-HOME. Make sure you're using JAVA_HOME.


Note, if you already have a console window open, you will need to close
it and open a new one to get the updated system variable (I don't know
why, it just does).

In both Unix and Windows (at least NT, 2K and XP), each process carries 
it's own environment internally. A newly created process inherits its 
initial environment from the process that created it at the time it is 
crated. After that, changes in the system-wide or parent process's 
environment do not affect that of any already running process--only that 
process itself can change its environment.

Randall Schulz
Mountain View, CA USA


| I know that I have
| set it in the System applet correctly!! I am using Win XP. Oh, and one
| more thing: Is there any new version of tomcat beyond v. 4.0.4?

Only development releases. This is made clear (and kept up-to-date) on the 
Tomcat home page http://jakarta.apache.org/tomcat/index.html.


Of course... try looking at jakarta's home page, it reads at the top
15 August 2002 - Tomcat 4.1.9 Beta Released


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




RE: Tomcat - IP binding for multiple web apps

2002-08-18 Thread Andrew Conrad

I can't tell you exactly, because I didn't write it, but here is what I
have conferred from watching this list.

A connector binds directly to your TCP/IP stack, and allows access via
those addresses and ports.  Tomcat then reads the Request information
and determines the host and context.  http://www.server1.com/myApp


If you want a compare it to IIS, think this

Engine is IIS
Host is WebSite
Context is VirtualDirectory.

The reason why you would want more than one context is because you may
want more than one webapp per host

If you have two webapps called DestroyWorld and SaveWorld, you could put
those webapps anywhere on the machine and not necessarily together.  Say
c:\goodprograms\SaveWorld and c:\badprograms\DestroyWorld.  Using
contexts, you could define access to both of those webapps.

So you could type  http://www.site.com/DestroyWorld and
http://www.site.com/SaveWorld


As far as the documentation goes, It's not perfect, but it's not too bad
once you start reading it.  Just jump in, and hopefully you will be
swimming soon.


- Andrew

 -Original Message-
 From: neal [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, August 18, 2002 5:24 PM
 To: Tomcat Users List
 Subject: RE: Tomcat - IP binding for multiple web apps
 
 
 Thanks.
 
 You point out two things: (1) how to specify which IPs to 
 listen on, and (2) how to associate a context with a host, 
 where the host name is the URI pointing to the webapp.
 
 In Microsoft IIS, you bind an IP to each virtual host, and 
 its the DNS servers job to point you to the right IP, based 
 upon the URL lookup.  In your suggestion with Tomcat I see 
 how you are suggesting to bind IPs to Tomcat, but how does 
 Tomcat then make the leap to binding those Ips to the correct 
 virtual Host?
 
 Also, I read in the provided link (thanks for that, btw) that 
 you can assign multiple contexts to each host, and multiple 
 hosts to an enginer.  I presume Tomcat is the engine, and 
 that a host is essentially a Virtual Host, correct?  How/why 
 would one then have multiple contexts per a single host?
 
 Is it just me or is the Tomcat documentation a little lacking 
 in this area?
 
 Thanks for your help!  :)
 
 Neal
 
 
 -Original Message-
 From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 18, 2002 12:43 PM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat - IP binding for multiple web apps
 
 
 Modify your Http/1.1 Connector and add an address attribute 
 to specify which IP address to listen on.  By default, the 
 Connector listens on ALL IP addresses.
 
 
 Connector class=org.apache.catalina.connector.http.HttpConnector
 address=127.0.0.1 /
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html
 
 From what I can tell, you can't define a webapp (defined as a 
 Context in the server.xml) as running on a specific address.  
 What you can do is use multiple Host entries to define Hosts 
 that pick up different DNS Names.
 
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html
 
 
 Host name=www.site1.com 
   Context path=/webapp1 docBase=webapp1 /
 /Host
 
 Host name=www.site2.com 
   Context path=/webapp2 docBase=webapp2 /
 /Host
 
 
 
 - Andrew
 
  -Original Message-
  From: neal [mailto:[EMAIL PROTECTED]]
  Sent: Sunday, August 18, 2002 3:19 PM
  To: Tomcat Users List
  Subject: Tomcat - IP binding for multiple web apps
 
 
  I would like to run multiple web applications from the same 
 instance 
  of tomcat.  I have set this up in my dev environment, no problem.
 
  The problem is this:
 
  I can not figure out how to bind an IP address (one seperate IP per 
  web app) to each of these web apps.  Actually, I haven't 
 even seen in 
  the docs how to bing a single IP to Tomcat either  DO I need to 
  usa Appche (via Warp) to do this or something?
 
  Note:
 
  I am currently running standalone Tomcat 4.0.3, on Win2k, 
  profesisonal.
 
 
  Thanks.
  Neal
 
 
  --
  To unsubscribe, e-mail:
  mailto:tomcat-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail: 
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Tomcat 4.0.4: Unnecessary $TOMCAT/temp/ directory?

2002-08-18 Thread Eddie Ruvinsky

Thanks Glenn.  The following Java API link has a quick
blurb about the java.io.tmpdir system property:

http://java.sun.com/j2se/1.3/docs/api/java/io/File.html#createTempFile(java.lang.String,
java.lang.String, java.io.File)

The JDK sets the default value for this property to be
/tmp on Unix and c:\temp on Windows.  So, it does not
seem necessary to override the default value of
java.io.tmpdir when starting Tomcat.

My follow-up question then is, why is this done?  Is
it to be able to create a separate namespace for
temp files generated by the Tomcat JVM process versus
the other temp files on the file system?

Thanks in advance,
Eddie

--- Glenn Nielsen [EMAIL PROTECTED] wrote:
 Do not remove this temp directory.  This is the
 temporary
 directory configured in the Tomcat startup with
 -Djava.io.tmpdir.  This temp directory is used by
 the JVM
 for internal things like jar files, etc.
 
 Regards,
 
 Glenn
 
 Eddie Ruvinsky wrote:
  I don't believe this is the case.  According to
 the
  source, if the workDir attribute of StandardHost
 is
  null (default case), the temp dir will be
 generated
  inside $CATALINA_BASE/work/.  Otherwise, it will
 be
  generated in the StandardHost's workDir.
  
  I believe that it's unused and doesn't belong in
 the
  Tomcat distribution.  Can someone confirm?
  
  -Eddie
  
  --- Mona Wong-Barnum [EMAIL PROTECTED]
 wrote:
  
 Hi Eddie:
 
 
 When I unpacked the distribution of Tomcat 4.0.4,
 
 I
 
 noticed an empty temp/ directory in the Tomcat
 
 root
 
 directory.  I don't believe it gets used anywhere
 
 in
 
 the code.  Should it be cleaned up?
 
 No leave it.  It will be used a temp directory in
 your servlet code 
 (javax.servlet.context.tempdir)
 
 Cheers,
 
 Mona
 
 
  
 

==
  
 Mona Wong-Barnum
 National Center for Microscopy and Imaging
 Research
 University of California, San Diego
 http://ncmir.ucsd.edu/
 
 The truth shall set you free, but first it will
 piss you off
 A Landmark instructor

__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

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




Re: Tomcat 4.0.4: Unnecessary $TOMCAT/temp/ directory?

2002-08-18 Thread Craig R. McClanahan



On Sun, 18 Aug 2002, Eddie Ruvinsky wrote:

 Date: Sun, 18 Aug 2002 17:52:18 -0700 (PDT)
 From: Eddie Ruvinsky [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.0.4: Unnecessary $TOMCAT/temp/ directory?

 Thanks Glenn.  The following Java API link has a quick
 blurb about the java.io.tmpdir system property:

 
http://java.sun.com/j2se/1.3/docs/api/java/io/File.html#createTempFile(java.lang.String,
 java.lang.String, java.io.File)

 The JDK sets the default value for this property to be
 /tmp on Unix and c:\temp on Windows.  So, it does not
 seem necessary to override the default value of
 java.io.tmpdir when starting Tomcat.

 My follow-up question then is, why is this done?  Is
 it to be able to create a separate namespace for
 temp files generated by the Tomcat JVM process versus
 the other temp files on the file system?


The servlet spec requires that each web application receive a servlet
context attribute named javax.servlet.context.tempdir that is a
java.io.File object to a temporary storage directory.  It is therefore not
reasonable to use the value specified by the java.io.tmpdir system
property, because that is global to the entire JVM.

See section 3.7.1 of the Servlet 2.3 spec:

  http://java.sun.com/products/servlet/download.html

The $CATALINA_HOME/temp directory hierarchy is how Tomcat implements this
spec requirement.  And you should be glad -- otherwise the servlet
generated for your index.jsp page (which is put in the per-context
temporary directory under a name specified by the JSP apge compiler) would
be stomped on by the servlet for some other webapp's index.jsp page.

 Thanks in advance,
 Eddie


Craig


 --- Glenn Nielsen [EMAIL PROTECTED] wrote:
  Do not remove this temp directory.  This is the
  temporary
  directory configured in the Tomcat startup with
  -Djava.io.tmpdir.  This temp directory is used by
  the JVM
  for internal things like jar files, etc.
 
  Regards,
 
  Glenn
 
  Eddie Ruvinsky wrote:
   I don't believe this is the case.  According to
  the
   source, if the workDir attribute of StandardHost
  is
   null (default case), the temp dir will be
  generated
   inside $CATALINA_BASE/work/.  Otherwise, it will
  be
   generated in the StandardHost's workDir.
  
   I believe that it's unused and doesn't belong in
  the
   Tomcat distribution.  Can someone confirm?
  
   -Eddie
  
   --- Mona Wong-Barnum [EMAIL PROTECTED]
  wrote:
  
  Hi Eddie:
  
  
  When I unpacked the distribution of Tomcat 4.0.4,
  
  I
  
  noticed an empty temp/ directory in the Tomcat
  
  root
  
  directory.  I don't believe it gets used anywhere
  
  in
  
  the code.  Should it be cleaned up?
  
No leave it.  It will be used a temp directory in
  your servlet code
  (javax.servlet.context.tempdir)
  
  Cheers,
  
  Mona
  
  
  
  
 
 ==
  
  Mona Wong-Barnum
  National Center for Microscopy and Imaging
  Research
  University of California, San Diego
  http://ncmir.ucsd.edu/
  
  The truth shall set you free, but first it will
  piss you off
A Landmark instructor

 __
 Do You Yahoo!?
 HotJobs - Search Thousands of New Jobs
 http://www.hotjobs.com

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




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




tomcat/unix security manager questions

2002-08-18 Thread Richard Smith


Hi All,

Just wondering if you could help me clarify a few questions I have about 
tomcat
and catalina.policy. Im running tomcat 4.0.4 (w/ security manager) with 
mod_jk
on solaris with about 300+ users, all of whom can deploy jsp/servlets from 
their public_html directory.

A user requirement is that they must is to be able to read/write files in 
their
home directory. This is what im a little confused about. I understand I can 
put
an entry like:

permission java.io.FilePermission /home/-, read,write,delete,execute;

in catalina.policy, but how does this enable tomcat to write to other user's
home directories (when tomcat is running as a user with minimal privledges)? 
Or
must I change permissions on the file to allow the user that is running 
tomcat
to write to it (is this the normal practice?).

Also, this is probably more a java question, but do standard unix 
permissions
always take precedence over what is set in catalina.policy? (In my 
understanding
the unix permissions take precedence, but I just wanted to make sure(please
excuse my java ignorance))

Any help appreciated,

Cheers,


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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