Re: Tomcat Configuration

2005-07-17 Thread Hari Saptoadi

- Original Message -
From: Iin Nurhidayat [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org; Bryan Scarbrough
[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 7:58 PM
Subject: Re: Tomcat Configuration



 See nothing at all,
 get 404 resource /myapplication is not available ..
How about using absolute path (such as /home/your-name/your-app-directory/
or c:/your-app-directory/ ) instead of using relative path
(/webapps/myapplication ) for docbase in your context.

anyway may i see your tomcat log ?




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



RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Context path= /myapplication docBase=
myapplication 
reloadable= true  crossContext= true   

Remove ( /webapps/ ) 

Regards
Guru
-Original Message-
From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2005 12:14
To: Tomcat Users List
Subject: Tomcat Configuration



Hi All,

I have a problem with my deployment.

I have some servlets and one Login.html.
I will put my servlets and Login.html on
/myapplication

Based on book i have read :

a) I configure the server.xml
   Context path= /myapplication docBase=
/webapps/myapplication 
reloadable= true  crossContext= true   

Logger className=
org.apache.catalina.logger.FileLogger  
prefix= localhost_myapplication_log.  suffix= .txt
 
timestamp= true  /  
/Context  

b) I put Login.html under myapplication directory.
   $CATALINA_HOME\webapps\myapplication

c) I put servlets under classes directory
  
$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.

But, Tomcat response is can not find /myapplication
(404).

Please advice ...


Thanks

- IN - 




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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

2005-07-14 Thread Iin Nurhidayat

Hi Guru,

i replced webapps but i have same problem also ...

Thanks

- IN - 


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Context path= /myapplication docBase=
 myapplication 
 reloadable= true  crossContext= true   
 
 Remove ( /webapps/ ) 
 
 Regards
 Guru
 -Original Message-
 From: Iin Nurhidayat [mailto:[EMAIL PROTECTED]
 
 Sent: 14 July 2005 12:14
 To: Tomcat Users List
 Subject: Tomcat Configuration
 
 
 
 Hi All,
 
 I have a problem with my deployment.
 
 I have some servlets and one Login.html.
 I will put my servlets and Login.html on
 /myapplication
 
 Based on book i have read :
 
 a) I configure the server.xml
Context path= /myapplication docBase=
 /webapps/myapplication 
 reloadable= true  crossContext= true   
 
 Logger className=
 org.apache.catalina.logger.FileLogger  
 prefix= localhost_myapplication_log.  suffix=
 .txt
  
 timestamp= true  /  
 /Context  
 
 b) I put Login.html under myapplication directory.
$CATALINA_HOME\webapps\myapplication
 
 c) I put servlets under classes directory
   

$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
 
 But, Tomcat response is can not find /myapplication
 (404).
 
 Please advice ...
 
 
 Thanks
 
 - IN - 
 
 
   
 
 Start your day with Yahoo! - make it your home page 
 http://www.yahoo.com/r/hs 
  
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Did you restart tomcat ?

-Original Message-
From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2005 13:30
To: Tomcat Users List
Subject: RE: Tomcat Configuration



Hi Guru,

i replced webapps but i have same problem also ...

Thanks

- IN - 


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Context path= /myapplication docBase=
 myapplication 
 reloadable= true  crossContext= true   
 
 Remove ( /webapps/ ) 
 
 Regards
 Guru
 -Original Message-
 From: Iin Nurhidayat [mailto:[EMAIL PROTECTED]
 
 Sent: 14 July 2005 12:14
 To: Tomcat Users List
 Subject: Tomcat Configuration
 
 
 
 Hi All,
 
 I have a problem with my deployment.
 
 I have some servlets and one Login.html.
 I will put my servlets and Login.html on
 /myapplication
 
 Based on book i have read :
 
 a) I configure the server.xml
Context path= /myapplication docBase=
 /webapps/myapplication 
 reloadable= true  crossContext= true   
 
 Logger className=
 org.apache.catalina.logger.FileLogger  
 prefix= localhost_myapplication_log.  suffix=
 .txt
  
 timestamp= true  /  
 /Context  
 
 b) I put Login.html under myapplication directory.
$CATALINA_HOME\webapps\myapplication
 
 c) I put servlets under classes directory
   

$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
 
 But, Tomcat response is can not find /myapplication
 (404).
 
 Please advice ...
 
 
 Thanks
 
 - IN - 
 
 
   
 
 Start your day with Yahoo! - make it your home page 
 http://www.yahoo.com/r/hs 
  
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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: Tomcat Configuration

2005-07-14 Thread Iin Nurhidayat

yess 


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Did you restart tomcat ?
 
 -Original Message-
 From: Iin Nurhidayat [mailto:[EMAIL PROTECTED]
 
 Sent: 14 July 2005 13:30
 To: Tomcat Users List
 Subject: RE: Tomcat Configuration
 
 
 
 Hi Guru,
 
 i replced webapps but i have same problem also ...
 
 Thanks
 
 - IN - 
 
 
 --- Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
 
  Context path= /myapplication docBase=
  myapplication 
  reloadable= true  crossContext= true   
  
  Remove ( /webapps/ ) 
  
  Regards
  Guru
  -Original Message-
  From: Iin Nurhidayat
 [mailto:[EMAIL PROTECTED]
  
  Sent: 14 July 2005 12:14
  To: Tomcat Users List
  Subject: Tomcat Configuration
  
  
  
  Hi All,
  
  I have a problem with my deployment.
  
  I have some servlets and one Login.html.
  I will put my servlets and Login.html on
  /myapplication
  
  Based on book i have read :
  
  a) I configure the server.xml
 Context path= /myapplication docBase=
  /webapps/myapplication 
  reloadable= true  crossContext= true   
  
  Logger className=
  org.apache.catalina.logger.FileLogger  
  prefix= localhost_myapplication_log.  suffix=
  .txt
   
  timestamp= true  /  
  /Context  
  
  b) I put Login.html under myapplication directory.
 $CATALINA_HOME\webapps\myapplication
  
  c) I put servlets under classes directory

 

$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
  
  But, Tomcat response is can not find
 /myapplication
  (404).
  
  Please advice ...
  
  
  Thanks
  
  - IN - 
  
  
  
 
 
  Start your day with Yahoo! - make it your home
 page 
  http://www.yahoo.com/r/hs 
   
  
 

-
  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]
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.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]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Tomcat Configuration

2005-07-14 Thread Raghupathy,Gurumoorthy
Send me the server.xml 

-Original Message-
From: Iin Nurhidayat [mailto:[EMAIL PROTECTED] 
Sent: 14 July 2005 13:36
To: Tomcat Users List
Subject: RE: Tomcat Configuration



yess 


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:

 Did you restart tomcat ?
 
 -Original Message-
 From: Iin Nurhidayat [mailto:[EMAIL PROTECTED]
 
 Sent: 14 July 2005 13:30
 To: Tomcat Users List
 Subject: RE: Tomcat Configuration
 
 
 
 Hi Guru,
 
 i replced webapps but i have same problem also ...
 
 Thanks
 
 - IN - 
 
 
 --- Raghupathy,Gurumoorthy
 [EMAIL PROTECTED] wrote:
 
  Context path= /myapplication docBase=
  myapplication 
  reloadable= true  crossContext= true   
  
  Remove ( /webapps/ ) 
  
  Regards
  Guru
  -Original Message-
  From: Iin Nurhidayat
 [mailto:[EMAIL PROTECTED]
  
  Sent: 14 July 2005 12:14
  To: Tomcat Users List
  Subject: Tomcat Configuration
  
  
  
  Hi All,
  
  I have a problem with my deployment.
  
  I have some servlets and one Login.html.
  I will put my servlets and Login.html on
  /myapplication
  
  Based on book i have read :
  
  a) I configure the server.xml
 Context path= /myapplication docBase=
  /webapps/myapplication 
  reloadable= true  crossContext= true   
  
  Logger className=
  org.apache.catalina.logger.FileLogger  
  prefix= localhost_myapplication_log.  suffix=
  .txt
   
  timestamp= true  /  
  /Context  
  
  b) I put Login.html under myapplication directory.
 $CATALINA_HOME\webapps\myapplication
  
  c) I put servlets under classes directory

 

$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
  
  But, Tomcat response is can not find
 /myapplication
  (404).
  
  Please advice ...
  
  
  Thanks
  
  - IN - 
  
  
  
 
 
  Start your day with Yahoo! - make it your home
 page 
  http://www.yahoo.com/r/hs 
   
  
 

-
  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]
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.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]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.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: Tomcat Configuration

2005-07-14 Thread Jon Wingfield

Do you have a web.xml in WEB-INF?
What do the tomcat logs say on startup? You can tweak the logger 
verbosity by increasing the debug attributes on elements within server.xml.

What version of tomcat? Not sure Logger elements are supported in 5.5.x

Jon

PS: books are generally out of date by the time they are published ;) 
There are plenty of config changes between 4.0.x, 4.1.x, 5.0.x and 5.5.x 
versions


Iin Nurhidayat wrote:

yess 


--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:



Did you restart tomcat ?

-Original Message-
From: Iin Nurhidayat [mailto:[EMAIL PROTECTED]

Sent: 14 July 2005 13:30
To: Tomcat Users List
Subject: RE: Tomcat Configuration



Hi Guru,

i replced webapps but i have same problem also ...

Thanks

- IN - 



--- Raghupathy,Gurumoorthy
[EMAIL PROTECTED] wrote:



Context path= /myapplication docBase=
myapplication 
reloadable= true  crossContext= true   

Remove ( /webapps/ ) 


Regards
Guru
-Original Message-
From: Iin Nurhidayat


[mailto:[EMAIL PROTECTED]


Sent: 14 July 2005 12:14
To: Tomcat Users List
Subject: Tomcat Configuration



Hi All,

I have a problem with my deployment.

I have some servlets and one Login.html.
I will put my servlets and Login.html on
/myapplication

Based on book i have read :

a) I configure the server.xml
  Context path= /myapplication docBase=
/webapps/myapplication 
reloadable= true  crossContext= true   


Logger className=
org.apache.catalina.logger.FileLogger  
prefix= localhost_myapplication_log.  suffix=

.txt
 
timestamp= true  /  
/Context  


b) I put Login.html under myapplication directory.
  $CATALINA_HOME\webapps\myapplication

c) I put servlets under classes directory
 




$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.


But, Tomcat response is can not find


/myapplication


(404).

Please advice ...


Thanks




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



Re: Tomcat Configuration

2005-07-14 Thread Bryan Scarbrough
Will it load the Login.html file, or do you simply see nothing at all?

On 7/14/05, Iin Nurhidayat [EMAIL PROTECTED] wrote:
 
 Hi All,
 
 I have a problem with my deployment.
 
 I have some servlets and one Login.html.
 I will put my servlets and Login.html on
 /myapplication
 
 Based on book i have read :
 
 a) I configure the server.xml
Context path= /myapplication docBase=
 /webapps/myapplication
 reloadable= true  crossContext= true  
 
 Logger className=
 org.apache.catalina.logger.FileLogger 
 prefix= localhost_myapplication_log.  suffix= .txt
 
 timestamp= true  / 
 /Context 
 
 b) I put Login.html under myapplication directory.
$CATALINA_HOME\webapps\myapplication
 
 c) I put servlets under classes directory
 
 $CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
 
 But, Tomcat response is can not find /myapplication
 (404).
 
 Please advice ...
 
 
 Thanks
 
 - IN -
 
 
 
 
 Start your day with Yahoo! - make it your home page
 http://www.yahoo.com/r/hs
 
 
 -
 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 Configuration

2005-07-14 Thread Iin Nurhidayat

See nothing at all, 
get 404 resource /myapplication is not available ..

- IN -


--- Bryan Scarbrough [EMAIL PROTECTED] wrote:

 Will it load the Login.html file, or do you simply
 see nothing at all?
 
 On 7/14/05, Iin Nurhidayat [EMAIL PROTECTED]
 wrote:
  
  Hi All,
  
  I have a problem with my deployment.
  
  I have some servlets and one Login.html.
  I will put my servlets and Login.html on
  /myapplication
  
  Based on book i have read :
  
  a) I configure the server.xml
 Context path= /myapplication docBase=
  /webapps/myapplication
  reloadable= true  crossContext= true  
  
  Logger className=
  org.apache.catalina.logger.FileLogger 
  prefix= localhost_myapplication_log.  suffix=
 .txt
  
  timestamp= true  / 
  /Context 
  
  b) I put Login.html under myapplication directory.
 $CATALINA_HOME\webapps\myapplication
  
  c) I put servlets under classes directory
  
 

$CATALINA_HOME\webapps\myapplication\WEB-INF\classes.
  
  But, Tomcat response is can not find
 /myapplication
  (404).
  
  Please advice ...
  
  
  Thanks
  
  - IN -
  
  
  
 
 
  Start your day with Yahoo! - make it your home
 page
  http://www.yahoo.com/r/hs
  
  
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread LERBSCHER Jean-Pierre
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 [EMAIL PROTECTED] 02/15/05 09:51AM 
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De

RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread LERBSCHER Jean-Pierre
I remember the first exception
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration
Perhaps can you verify that you don't have a default host application or
could you confirm us that you access your application with the url
http://host:port/ ldsecure/path and/or page


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true

Re: RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread Curtis Nelson
I'm not sure I understand - are you saying to rename ldsecure.xml - 
context.xml?  

Curtis

 [EMAIL PROTECTED] 02/16/05 01:35AM 
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help

RE : RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread LERBSCHER Jean-Pierre
Yes! Because the name of the file is tomcat specific (it isn't a standard)!

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 16 février 2005 19:30
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : RE : RE : RE : Tomcat configuration

I'm not sure I understand - are you saying to rename ldsecure.xml -
context.xml?  

Curtis

 [EMAIL PROTECTED] 02/16/05 01:35AM 
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy

Re: RE : RE : RE : RE : RE : RE : RE : Tomcat configuration

2005-02-16 Thread Curtis Nelson
This doesn't work (at least in Tomcat 5.5).  When I rename the file and place 
it in $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml, then start 
Tomcat, Tomcat looks for an application named 'context.xml' and fails.  Do I 
need to copy the file somewhere else?

Thanks


 [EMAIL PROTECTED] 02/16/05 11:39AM 
Yes! Because the name of the file is tomcat specific (it isn't a standard)!

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 16 février 2005 19:30
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : RE : Tomcat configuration

I'm not sure I understand - are you saying to rename ldsecure.xml -
context.xml?  

Curtis

 [EMAIL PROTECTED] 02/16/05 01:35AM 
Hi,
I'm not sure but you could try to rename the ldsecure.xml file in
context.xml.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:51
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : RE : Tomcat configuration

I know the database connection works, because if I include the realm as part
of the engine or host, then I can login correctly.  As far as reading the
realm how-to, I've done that several times.  The second .xml file I sent you
is named ldsecure.xml (part of the ldsecure webapp), and I placed it in
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating
a WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads

RE : Tomcat configuration

2005-02-15 Thread LERBSCHER Jean-Pierre
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent about a week on it already.


Please note:  If I put the JdbcRealm in the engine or host element of
server.xml, everything works fine - except then I can't have a 1-to-1
mapping between webapp and login database.

Thanks,

Curtis



-
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: RE : Tomcat configuration

2005-02-15 Thread Curtis Nelson
Thanks for the reply.

I'm not using (to the best of my knowledge) JAASRealm.  I just want to use 
JdbcRealm, but define it at the context level.

Curtis


 [EMAIL PROTECTED] 02/15/05 09:08AM 
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org 
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent about a week on it already.


Please note:  If I put the JdbcRealm in the engine or host element of
server.xml, everything works fine - except then I can't have a 1-to-1
mapping between webapp and login database.

Thanks,

Curtis



-
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 : RE : Tomcat configuration

2005-02-15 Thread LERBSCHER Jean-Pierre
If I look at this log, it seems that you are using JAAS Realm !
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:15
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : Tomcat configuration

Thanks for the reply.

I'm not using (to the best of my knowledge) JAASRealm.  I just want to use
JdbcRealm, but define it at the context level.

Curtis


 [EMAIL PROTECTED] 02/15/05 09:08AM 
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org 
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent about a week on it already.


Please note:  If I put the JdbcRealm in the engine or host element of
server.xml, everything works fine - except then I can't have a 1-to-1
mapping between webapp and login database.

Thanks,

Curtis



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

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



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

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



Re: RE : RE : Tomcat configuration

2005-02-15 Thread Curtis Nelson
How can I configure Tomcat to not use JAASRealm?  Like I said earlier, if my 
JDBCRealm is associated with the engine or host element of server.xml, the 
login forms work.  It's only when I move it into it's own .xml file or add it 
as part of the context element that I run into problems.  Does doing that 
automatically require JAASRealm?  

Thanks

 [EMAIL PROTECTED] 02/15/05 09:39AM 
If I look at this log, it seems that you are using JAAS Realm !
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:15
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : Tomcat configuration

Thanks for the reply.

I'm not using (to the best of my knowledge) JAASRealm.  I just want to use
JdbcRealm, but define it at the context level.

Curtis


 [EMAIL PROTECTED] 02/15/05 09:08AM 
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org 
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent about a week on it already.


Please note:  If I put the JdbcRealm in the engine or host element of
server.xml, everything works fine - except then I can't have a 1-to-1
mapping between webapp and login database.

Thanks,

Curtis



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

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



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

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



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



RE : RE : RE : Tomcat configuration

2005-02-15 Thread LERBSCHER Jean-Pierre
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:43
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : Tomcat configuration

How can I configure Tomcat to not use JAASRealm?  Like I said earlier, if my
JDBCRealm is associated with the engine or host element of server.xml,
the login forms work.  It's only when I move it into it's own .xml file or
add it as part of the context element that I run into problems.  Does
doing that automatically require JAASRealm?  

Thanks

 [EMAIL PROTECTED] 02/15/05 09:39AM 
If I look at this log, it seems that you are using JAAS Realm !
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:15
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : Tomcat configuration

Thanks for the reply.

I'm not using (to the best of my knowledge) JAASRealm.  I just want to use
JdbcRealm, but define it at the context level.

Curtis


 [EMAIL PROTECTED] 02/15/05 09:08AM 
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org 
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent about a week on it already.


Please note:  If I put the JdbcRealm in the engine or host element of
server.xml, everything works fine - except then I can't have a 1-to-1
mapping between webapp and login database.

Thanks,

Curtis



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

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



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

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



-
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: RE : RE : RE : Tomcat configuration

2005-02-15 Thread Curtis Nelson
With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443 
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true 
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 [EMAIL PROTECTED] 02/15/05 09:51AM 
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:43
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : Tomcat configuration

How can I configure Tomcat to not use JAASRealm?  Like I said earlier, if my
JDBCRealm is associated with the engine or host element of server.xml,
the login forms work.  It's only when I move it into it's own .xml file or
add it as part of the context element that I run into problems.  Does
doing that automatically require JAASRealm?  

Thanks

 [EMAIL PROTECTED] 02/15/05 09:39AM 
If I look at this log, it seems that you are using JAAS Realm !
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:15
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : Tomcat configuration

Thanks for the reply.

I'm not using (to the best of my knowledge) JAASRealm.  I just want to use
JdbcRealm, but define it at the context level.

Curtis


 [EMAIL PROTECTED] 02/15/05 09:08AM 
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org 
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent about a week on it already.


Please note:  If I put the JdbcRealm in the engine or host element of
server.xml, everything works fine - except then I can't have a 1-to-1
mapping between webapp and login database.

Thanks,

Curtis



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

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



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

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



-
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 : RE : RE : RE : Tomcat configuration

2005-02-15 Thread LERBSCHER Jean-Pierre
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 [EMAIL PROTECTED] 02/15/05 09:51AM 
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:43
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : Tomcat configuration

How can I configure Tomcat to not use JAASRealm?  Like I said earlier, if my
JDBCRealm is associated with the engine or host element of server.xml,
the login forms work.  It's only when I move it into it's own .xml file or
add it as part of the context element that I run into problems.  Does
doing that automatically require JAASRealm?  

Thanks

 [EMAIL PROTECTED] 02/15/05 09:39AM 
If I look at this log, it seems that you are using JAAS Realm !
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:15
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : Tomcat configuration

Thanks for the reply.

I'm not using (to the best of my knowledge) JAASRealm.  I just want to use
JdbcRealm, but define it at the context level.

Curtis


 [EMAIL PROTECTED] 02/15/05 09:08AM 
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org 
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent about a week on it already.


Please note:  If I put the JdbcRealm in the engine or host element of
server.xml, everything works fine - except then I can't have a 1-to-1
mapping between webapp and login database.

Thanks,

Curtis



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

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



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

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



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

Re: RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread Curtis Nelson
According to the tomcat docs, the preferred method of describing a context 
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false antiJARLocking=false 
--

Context reloadable=true path=/ldsecure 
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtracker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers 
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the described 
host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 [EMAIL PROTECTED] 02/15/05 09:51AM 
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:43
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : Tomcat configuration

How can I configure Tomcat to not use JAASRealm?  Like I said earlier, if my
JDBCRealm is associated with the engine or host element of server.xml,
the login forms work.  It's only when I move it into it's own .xml file or
add it as part of the context element that I run into problems.  Does
doing that automatically require JAASRealm?  

Thanks

 [EMAIL PROTECTED] 02/15/05 09:39AM 
If I look at this log, it seems that you are using JAAS Realm !
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:15
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : Tomcat configuration

Thanks for the reply.

I'm not using (to the best of my knowledge) JAASRealm.  I just want to use
JdbcRealm, but define it at the context level.

Curtis


 [EMAIL PROTECTED] 02/15/05 09:08AM 
Hi,
Do you use JdbcRealm or JaasRealm ?
If you use JAASRealm you have to setup your jaas config file (for example
using java.security.auth.login.config system property. This file specifies
application by application your login module.
In your case, it seems that you have to declare Realm in your application
context.

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 16:41
À : tomcat-user@jakarta.apache.org 
Objet : Tomcat configuration

If I want to host several different web apps in Tomcat, each having it's own
user database  using FORM authentication, how would I configure Tomcat?  I
tried putting the jdbcRealm in the /engine/hostname/nnn.xml file, yet when I
try to log into one of my pages I get the error:

Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login configuration

Can anyone please help me with this?  I've spent

RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread LERBSCHER Jean-Pierre
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 [EMAIL PROTECTED] 02/15/05 09:51AM 
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:43
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : Tomcat configuration

How can I configure Tomcat to not use JAASRealm?  Like I said earlier, if my
JDBCRealm is associated with the engine or host element of server.xml,
the login forms work.  It's only when I move it into it's own .xml file or
add it as part of the context element that I run into problems.  Does
doing that automatically require JAASRealm?  

Thanks

 [EMAIL PROTECTED] 02/15/05 09:39AM 
If I look at this log, it seems that you are using JAAS Realm !
Feb 14, 2005 4:20:39 PM org.apache.catalina.realm.JAASRealm authenticate
SEVERE: Unexpected error
java.lang.SecurityException: Unable to locate a login

Re: RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread Curtis Nelson
I know the database connection works, because if I include the realm as part of 
the engine or host, then I can login correctly.  As far as reading the realm 
how-to, I've done that several times.  The second .xml file I sent you is named 
ldsecure.xml (part of the ldsecure webapp), and I placed it in  
$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.  I'm not creating a 
WAR file, just a directory structure.

Any additional ideas?


 [EMAIL PROTECTED] 02/15/05 10:43AM 
Check your configuration with
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
(database configuration, driver, url access, user et password access, and
log files).
Try to setup Memory realm.
Try to validate database url connection with simple java class.

import java.sql.*; 
import your driver; 

class JDBCVersion 
{ 
public static void main (String args []) 
throws SQLException 
{ 
// Load the JDBC driver 
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver()); 

// Something like this (probably)
Connection conn =
DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
sename=ldbugtracker, abc,abc); 

// Create Oracle DatabaseMetaData object 
DatabaseMetaData meta = conn.getMetaData (); 

// get driver info: 
System.out.println(JDBC driver version is  +
meta.getDriverVersion()); 
} 
}


I assume that you have deployed your context configuration in :
- META-INF/context.xml directory of your WAR file
- $CATALINA_HOME/conf/[enginename]/[hostname]/ directory


-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:14
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : RE : Tomcat configuration

According to the tomcat docs, the preferred method of describing a context
realm is to place it in it's own xml file.
Here's what I have:

!-- Context docBase=${catalina.home}/server/webapps/manager
 privileged=true antiResourceLocking=false
antiJARLocking=false --

Context reloadable=true path=/ldsecure
docbase=${catalina.home}/server/webapps/ldsecure
Realm  className=org.apache.catalina.realm.JDBCRealm

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
acker;selectmethod=cursor
connectionName=abc connectionPassword=abc
userTable=LDUsers
userNameCol=username userCredCol=password
userRoleTable=LDUserRoles roleNameCol=role
debug=99/
/Context


If I place this context statement in the server.xml file, under the
described host, I get the same problem.

Curtis



 [EMAIL PROTECTED] 02/15/05 10:09AM 
There is no realm describe into it!
Have you declared your realm in your META-INF/context.xml directory of your
WAR file?
Could you send us your context.xml file?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 18:03
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : RE : Tomcat configuration

With pleasure.  

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /

  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources


  Service name=Catalina
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Connector port=8009 enableLookups=false redirectPort=8443
protocol=AJP/1.3 /
 
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost

  Host name=localhost appBase=webapps unpackWARs=true 
autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
 /Host

/Engine

  /Service

/Server



Thanks for you help.


 [EMAIL PROTECTED] 02/15/05 09:51AM 
JAASRealm is not a default!
Could you send us your server.xml?

-Message d'origine-
De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 15 février 2005 17:43
À : tomcat-user@jakarta.apache.org 
Objet : Re: RE : RE : Tomcat configuration

How can I configure Tomcat to not use JAASRealm?  Like I said earlier, if my
JDBCRealm is associated with the engine or host

Re: RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread sven morales
Hi,
   How are you defining the security-constraint
security-role in your ldsecure/WEB-INF/web.xml ? 
And also how do use this in your servlet or jsp to get
authentication?  Maybe post your web.xml too?

aka_sergio


 --- Curtis Nelson [EMAIL PROTECTED] wrote:

 I know the database connection works, because if I
 include the realm as part of the engine or host,
 then I can login correctly.  As far as reading the
 realm how-to, I've done that several times.  The
 second .xml file I sent you is named ldsecure.xml
 (part of the ldsecure webapp), and I placed it in 

$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.
  I'm not creating a WAR file, just a directory
 structure.
 
 Any additional ideas?
 
 
  [EMAIL PROTECTED] 02/15/05
 10:43AM 
 Check your configuration with

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm
 
 (database configuration, driver, url access, user et
 password access, and
 log files).
 Try to setup Memory realm.
 Try to validate database url connection with simple
 java class.
 
 import java.sql.*; 
 import your driver; 
 
 class JDBCVersion 
 { 
   public static void main (String args []) 
   throws SQLException 
   { 
   // Load the JDBC driver 
   DriverManager.registerDriver(new
 com.microsoft.jdbc.sqlserver.SQLServerDriver()); 
 
 // Something like this (probably)
   Connection conn =

DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
 sename=ldbugtracker, abc,abc); 
   
   // Create Oracle DatabaseMetaData object 
   DatabaseMetaData meta = conn.getMetaData (); 
   
   // get driver info: 
   System.out.println(JDBC driver version is  +
 meta.getDriverVersion()); 
   } 
 }
 
 
 I assume that you have deployed your context
 configuration in :
 - META-INF/context.xml directory of your WAR file
 - $CATALINA_HOME/conf/[enginename]/[hostname]/
 directory
 
 
 -Message d'origine-
 De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
 Envoy�: mardi 15 f�rier 2005 18:14
 �: tomcat-user@jakarta.apache.org 
 Objet : Re: RE : RE : RE : RE : Tomcat configuration
 
 According to the tomcat docs, the preferred method
 of describing a context
 realm is to place it in it's own xml file.
 Here's what I have:
 
 !-- Context
 docBase=${catalina.home}/server/webapps/manager
  privileged=true
 antiResourceLocking=false
 antiJARLocking=false --
 
 Context reloadable=true path=/ldsecure
 docbase=${catalina.home}/server/webapps/ldsecure
   Realm 
 className=org.apache.catalina.realm.JDBCRealm
   

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
   

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
 acker;selectmethod=cursor
   connectionName=abc connectionPassword=abc
   userTable=LDUsers
 userNameCol=username userCredCol=password
   userRoleTable=LDUserRoles roleNameCol=role
   debug=99/
 /Context
 
 
 If I place this context statement in the
 server.xml file, under the
 described host, I get the same problem.
 
 Curtis
 
 
 
  [EMAIL PROTECTED] 02/15/05
 10:09AM 
 There is no realm describe into it!
 Have you declared your realm in your
 META-INF/context.xml directory of your
 WAR file?
 Could you send us your context.xml file?
 
 -Message d'origine-
 De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
 Envoy�: mardi 15 f�rier 2005 18:03
 �: tomcat-user@jakarta.apache.org 
 Objet : Re: RE : RE : RE : Tomcat configuration
 
 With pleasure.  
 
 Server port=8005 shutdown=SHUTDOWN
   Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
 /
   Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 /
 
   GlobalNamingResources
 Environment name=simpleValue
 type=java.lang.Integer value=30/
 
 Resource name=UserDatabase auth=Container
  
 type=org.apache.catalina.UserDatabase
description=User database that can be
 updated and saved
   

factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
 
   /GlobalNamingResources
 
 
   Service name=Catalina
 Connector port=8080 maxThreads=150
 minSpareThreads=25
 maxSpareThreads=75
enableLookups=false
 redirectPort=8443 acceptCount=100
connectionTimeout=2
 disableUploadTimeout=true /
 Connector port=8009 enableLookups=false
 redirectPort=8443
 protocol=AJP/1.3 /
  
 !-- Define the top level container in our
 container hierarchy --
 Engine name=Catalina defaultHost=localhost
 
   Host name=localhost appBase=webapps
 unpackWARs=true 
   autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
  /Host
 
 /Engine
 
   /Service
 
 /Server
 
 
 
 Thanks for you help.
 
 
  [EMAIL PROTECTED] 02/15/05
 09

Re: RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread Curtis Nelson
Thanks for replying.

Here's my web.xml file:

?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
  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list
  security-constraint
display-nameExample Security Constraint/display-name
web-resource-collection
  web-resource-nameProtected Area/web-resource-name
  url-pattern/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-namelduser/role-name
/auth-constraint
  /security-constraint
  login-config
auth-methodFORM/auth-method
form-login-config
  form-login-page/login.jsp/form-login-page
  form-error-page/error.jsp/form-error-page
/form-login-config
  /login-config
  security-role
role-namelduser/role-name
  /security-role
/web-app

 [EMAIL PROTECTED] 02/15/05 11:21AM 
Hi,
   How are you defining the security-constraint
security-role in your ldsecure/WEB-INF/web.xml ? 
And also how do use this in your servlet or jsp to get
authentication?  Maybe post your web.xml too?

aka_sergio


 --- Curtis Nelson [EMAIL PROTECTED] wrote:

 I know the database connection works, because if I
 include the realm as part of the engine or host,
 then I can login correctly.  As far as reading the
 realm how-to, I've done that several times.  The
 second .xml file I sent you is named ldsecure.xml
 (part of the ldsecure webapp), and I placed it in 

$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.
  I'm not creating a WAR file, just a directory
 structure.
 
 Any additional ideas?
 
 
  [EMAIL PROTECTED] 02/15/05
 10:43AM 
 Check your configuration with

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
 
 (database configuration, driver, url access, user et
 password access, and
 log files).
 Try to setup Memory realm.
 Try to validate database url connection with simple
 java class.
 
 import java.sql.*; 
 import your driver; 
 
 class JDBCVersion 
 { 
   public static void main (String args []) 
   throws SQLException 
   { 
   // Load the JDBC driver 
   DriverManager.registerDriver(new
 com.microsoft.jdbc.sqlserver.SQLServerDriver()); 
 
 // Something like this (probably)
   Connection conn =

DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
 sename=ldbugtracker, abc,abc); 
   
   // Create Oracle DatabaseMetaData object 
   DatabaseMetaData meta = conn.getMetaData (); 
   
   // get driver info: 
   System.out.println(JDBC driver version is  +
 meta.getDriverVersion()); 
   } 
 }
 
 
 I assume that you have deployed your context
 configuration in :
 - META-INF/context.xml directory of your WAR file
 - $CATALINA_HOME/conf/[enginename]/[hostname]/
 directory
 
 
 -Message d'origine-
 De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
 Envoy�: mardi 15 f�rier 2005 18:14
 �: tomcat-user@jakarta.apache.org 
 Objet : Re: RE : RE : RE : RE : Tomcat configuration
 
 According to the tomcat docs, the preferred method
 of describing a context
 realm is to place it in it's own xml file.
 Here's what I have:
 
 !-- Context
 docBase=${catalina.home}/server/webapps/manager
  privileged=true
 antiResourceLocking=false
 antiJARLocking=false --
 
 Context reloadable=true path=/ldsecure
 docbase=${catalina.home}/server/webapps/ldsecure
   Realm 
 className=org.apache.catalina.realm.JDBCRealm
   

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
   

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
 acker;selectmethod=cursor
   connectionName=abc connectionPassword=abc
   userTable=LDUsers
 userNameCol=username userCredCol=password
   userRoleTable=LDUserRoles roleNameCol=role
   debug=99/
 /Context
 
 
 If I place this context statement in the
 server.xml file, under the
 described host, I get the same problem.
 
 Curtis
 
 
 
  [EMAIL PROTECTED] 02/15/05
 10:09AM 
 There is no realm describe into it!
 Have you declared your realm in your
 META-INF/context.xml directory of your
 WAR file?
 Could you send us your context.xml file?
 
 -Message d'origine-
 De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
 Envoy�: mardi 15 f�rier 2005 18:03
 �: tomcat-user@jakarta.apache.org 
 Objet : Re: RE : RE : RE : Tomcat configuration
 
 With pleasure.  
 
 Server port=8005 shutdown=SHUTDOWN
   Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
 /
   Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 /
 
   GlobalNamingResources
 Environment name=simpleValue
 type=java.lang.Integer value=30/
 
 Resource name=UserDatabase auth=Container

Re: RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread sven morales
Hi,
Does your login.jsp have something similar to
this:

form method=POST action='%=
response.encodeURL(j_security_check) %' 
input type=text  name=j_username  
 input type=password  name=j_password  
/form

It it does, I can't think of where to look for now.

aka_sergio

--- Curtis Nelson [EMAIL PROTECTED] wrote:

 Thanks for replying.
 
 Here's my web.xml file:
 
 ?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
   welcome-file-list
 welcome-fileindex.jsp/welcome-file
   /welcome-file-list
   security-constraint
 display-nameExample Security
 Constraint/display-name
 web-resource-collection
   web-resource-nameProtected
 Area/web-resource-name
   url-pattern/*/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
   role-namelduser/role-name
 /auth-constraint
   /security-constraint
   login-config
 auth-methodFORM/auth-method
 form-login-config
   form-login-page/login.jsp/form-login-page
   form-error-page/error.jsp/form-error-page
 /form-login-config
   /login-config
   security-role
 role-namelduser/role-name
   /security-role
 /web-app
 
  [EMAIL PROTECTED] 02/15/05 11:21AM 
 Hi,
How are you defining the security-constraint
 security-role in your ldsecure/WEB-INF/web.xml ? 
 And also how do use this in your servlet or jsp to
 get
 authentication?  Maybe post your web.xml too?
 
 aka_sergio
 
 
  --- Curtis Nelson [EMAIL PROTECTED] wrote:
 
  I know the database connection works, because if I
  include the realm as part of the engine or host,
  then I can login correctly.  As far as reading the
  realm how-to, I've done that several times.  The
  second .xml file I sent you is named ldsecure.xml
  (part of the ldsecure webapp), and I placed it in 
 

$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.
   I'm not creating a WAR file, just a directory
  structure.
  
  Any additional ideas?
  
  
   [EMAIL PROTECTED] 02/15/05
  10:43AM 
  Check your configuration with
 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm
 
  
  (database configuration, driver, url access, user
 et
  password access, and
  log files).
  Try to setup Memory realm.
  Try to validate database url connection with
 simple
  java class.
  
  import java.sql.*; 
  import your driver; 
  
  class JDBCVersion 
  { 
  public static void main (String args []) 
  throws SQLException 
  { 
  // Load the JDBC driver 
  DriverManager.registerDriver(new
  com.microsoft.jdbc.sqlserver.SQLServerDriver()); 
  
  // Something like this (probably)
  Connection conn =
 

DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
  sename=ldbugtracker, abc,abc); 
  
  // Create Oracle DatabaseMetaData object 
  DatabaseMetaData meta = conn.getMetaData (); 
  
  // get driver info: 
  System.out.println(JDBC driver version is  +
  meta.getDriverVersion()); 
  } 
  }
  
  
  I assume that you have deployed your context
  configuration in :
  - META-INF/context.xml directory of your WAR file
  - $CATALINA_HOME/conf/[enginename]/[hostname]/
  directory
  
  
  -Message d'origine-
  De : Curtis Nelson [mailto:[EMAIL PROTECTED]
 
  Envoy�: mardi 15 f�rier 2005 18:14
  �: tomcat-user@jakarta.apache.org 
  Objet : Re: RE : RE : RE : RE : Tomcat
 configuration
  
  According to the tomcat docs, the preferred method
  of describing a context
  realm is to place it in it's own xml file.
  Here's what I have:
  
  !-- Context
  docBase=${catalina.home}/server/webapps/manager
   privileged=true
  antiResourceLocking=false
  antiJARLocking=false --
  
  Context reloadable=true path=/ldsecure
 
 docbase=${catalina.home}/server/webapps/ldsecure
  Realm 
  className=org.apache.catalina.realm.JDBCRealm
  
 

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
  
 

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
  acker;selectmethod=cursor
  connectionName=abc connectionPassword=abc
  userTable=LDUsers
  userNameCol=username userCredCol=password
  userRoleTable=LDUserRoles roleNameCol=role
  debug=99/
  /Context
  
  
  If I place this context statement in the
  server.xml file, under the
  described host, I get the same problem.
  
  Curtis
  
  
  
   [EMAIL PROTECTED] 02/15/05
  10:09AM 
  There is no realm describe into it!
  Have you declared your realm in your
  META-INF/context.xml directory of your
  WAR file?
  Could you send us your context.xml file?
  
  -Message d'origine-
  De : Curtis Nelson [mailto:[EMAIL PROTECTED]
 
  Envoy�: mardi 15 f�rier 2005 18:03
  �: tomcat

Re: RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread Curtis Nelson
It does.

Thanks for trying.

Curtis


 [EMAIL PROTECTED] 02/15/05 11:56AM 
Hi,
Does your login.jsp have something similar to
this:

form method=POST action='%=
response.encodeURL(j_security_check) %' 
input type=text  name=j_username  
 input type=password  name=j_password  
/form

It it does, I can't think of where to look for now.

aka_sergio

--- Curtis Nelson [EMAIL PROTECTED] wrote:

 Thanks for replying.
 
 Here's my web.xml file:
 
 ?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
   welcome-file-list
 welcome-fileindex.jsp/welcome-file
   /welcome-file-list
   security-constraint
 display-nameExample Security
 Constraint/display-name
 web-resource-collection
   web-resource-nameProtected
 Area/web-resource-name
   url-pattern/*/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
   role-namelduser/role-name
 /auth-constraint
   /security-constraint
   login-config
 auth-methodFORM/auth-method
 form-login-config
   form-login-page/login.jsp/form-login-page
   form-error-page/error.jsp/form-error-page
 /form-login-config
   /login-config
   security-role
 role-namelduser/role-name
   /security-role
 /web-app
 
  [EMAIL PROTECTED] 02/15/05 11:21AM 
 Hi,
How are you defining the security-constraint
 security-role in your ldsecure/WEB-INF/web.xml ? 
 And also how do use this in your servlet or jsp to
 get
 authentication?  Maybe post your web.xml too?
 
 aka_sergio
 
 
  --- Curtis Nelson [EMAIL PROTECTED] wrote:
 
  I know the database connection works, because if I
  include the realm as part of the engine or host,
  then I can login correctly.  As far as reading the
  realm how-to, I've done that several times.  The
  second .xml file I sent you is named ldsecure.xml
  (part of the ldsecure webapp), and I placed it in 
 

$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.
   I'm not creating a WAR file, just a directory
  structure.
  
  Any additional ideas?
  
  
   [EMAIL PROTECTED] 02/15/05
  10:43AM 
  Check your configuration with
 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm 
 
  
  (database configuration, driver, url access, user
 et
  password access, and
  log files).
  Try to setup Memory realm.
  Try to validate database url connection with
 simple
  java class.
  
  import java.sql.*; 
  import your driver; 
  
  class JDBCVersion 
  { 
  public static void main (String args []) 
  throws SQLException 
  { 
  // Load the JDBC driver 
  DriverManager.registerDriver(new
  com.microsoft.jdbc.sqlserver.SQLServerDriver()); 
  
  // Something like this (probably)
  Connection conn =
 

DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
  sename=ldbugtracker, abc,abc); 
  
  // Create Oracle DatabaseMetaData object 
  DatabaseMetaData meta = conn.getMetaData (); 
  
  // get driver info: 
  System.out.println(JDBC driver version is  +
  meta.getDriverVersion()); 
  } 
  }
  
  
  I assume that you have deployed your context
  configuration in :
  - META-INF/context.xml directory of your WAR file
  - $CATALINA_HOME/conf/[enginename]/[hostname]/
  directory
  
  
  -Message d'origine-
  De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
 
  Envoy�: mardi 15 f�rier 2005 18:14
  �: tomcat-user@jakarta.apache.org 
  Objet : Re: RE : RE : RE : RE : Tomcat
 configuration
  
  According to the tomcat docs, the preferred method
  of describing a context
  realm is to place it in it's own xml file.
  Here's what I have:
  
  !-- Context
  docBase=${catalina.home}/server/webapps/manager
   privileged=true
  antiResourceLocking=false
  antiJARLocking=false --
  
  Context reloadable=true path=/ldsecure
 
 docbase=${catalina.home}/server/webapps/ldsecure
  Realm 
  className=org.apache.catalina.realm.JDBCRealm
  
 

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
  
 

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
  acker;selectmethod=cursor
  connectionName=abc connectionPassword=abc
  userTable=LDUsers
  userNameCol=username userCredCol=password
  userRoleTable=LDUserRoles roleNameCol=role
  debug=99/
  /Context
  
  
  If I place this context statement in the
  server.xml file, under the
  described host, I get the same problem.
  
  Curtis
  
  
  
   [EMAIL PROTECTED] 02/15/05
  10:09AM 
  There is no realm describe into it!
  Have you declared your realm in your
  META-INF/context.xml directory of your
  WAR file?
  Could you send us your context.xml file?
  
  -Message d'origine-
  De : Curtis Nelson

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Hi Matt,

Welcome to the list from me. It's funny because you have just listed precisely the 
same server setup as we are launching our new tomcat based app to this weekend and I 
have been having nightmares about performance. 

We have a system like this;


user - 
  IIS - 
JK2 ISAPI - 
  Tomcat 5.0.19 - 
-- Content Management System Bean
  -- SQL Server 2000
-- SQL Server 2000 via JNDI resource setup

Our application is built on Struts. 

We found performance to be very poor under a load of 20 users of 3 iterators of 20 
page requests (13 secs per page) avg pages per secon 1.1!! Looking into it revealed 
too much XML, too much database connectivity and too much dynamic rending on the 
pages. 

I came up with a caching strategy for our navigation as well as removing all XML to 
database calls instead (you may have seen my last post)

Along with other things I have managed 10 pages per seconds and 1.5 seconds per page 
under the same load test. I'm still not entirely happy and wonder if I am missing any 
confoguration type stuff to make my app run faster either in tomcat, jk2, iis and so 
fourth. I run tomcat as a service with -Xms128 -Xmx384.

I would be very interested if you have time to hear of any useful quick tips you found 
can optimise via configuration - maybe even seeing your server.conf and anything else, 
perhaps any ideas about code optimisation and also how complex your system is (db 
accesses or other system integration). 

What are your page response times under load and so on.

It's a big ask but you have a very similar hardware setup and I would like to maximise 
my use of it.

Cheers! ADC


-Original Message-
From: Matt Woodings [mailto:[EMAIL PROTECTED]
Sent: 08 April 2004 16:50
To: [EMAIL PROTECTED]
Subject: Tomcat configuration tuning


Hi guys,

I am at stage where I have all my various components talking to one another (Apache 
http server 2.0.49 - Mod JK2 - Tomcat 4.1.30) and running nicely with each other, 
but the loads on the server are increasing rapidly in our production environment ( 
~2000 logins/day and peak concurrency of ~75 currently ) and I want to get the best 
possible configuration for my server. (Dual 1GHz, 1GB Ram, Win 2k, SQL Server + 
Web/Apps servers).  

Now, ultimately this is up to me, but I am unsure of a few relationships and variables 
used in the configuration files.  The settings I have work, but I want them to be 
optimal and more importantly I want to understand them, so any help on the following 
would be greatly appreciated.

1) server.xml/Connector/bufferSize.  Is this allocated for every users session until 
it is terminated, or is it a peak size that could be allocated?
2) workers2.properties/shm.slots. Does this equate to the 
server.xml/Connector/maxProcessors? or are these fundamentally different?

I have attached my fully working configuration below for those who are interested, as 
I noticed a lot of people in the archives looking for working examples using JK2.

Many thanks,

Matt

P.S. I am new to the list but I have been using Tomcat for many years and love it, and 
if I can help with anyones queries, from the trivial to complex,  I would be only too 
happy to do so.

workers2.properties
[logger]
##
LOGGER
##
# Log level. Supported: EMERG, ERROR, INFO, DEBUG
level=ERROR
# Log file. XXX you may be able to change this at runtime, to 
# implement rolling. 
file=${serverRoot}/logs/jk2_error.log

[config]
##
CONFIG
##
# Location of the workers2.properties file
file=${serverRoot}/conf/workers2.properties
# Set the debug level of the config component
debug=0
# Set the debug level of the hidden env component
debugEnv=0

[shm]
##
SHARED MEMORY SETUP   
##
# Name of the file that will be mmapped to use as shared memory, 
# If set to 'anonymous' use the anonymous shered memory
file=${serverRoot}/logs/shm.file
# Number of shared memory slots. Set to the number of child 
# processes
slots=378
# Use process memory instead of shared memory. Useful for single 
# child mpm's
useMemory=0

[lb:lb_group]
##
LOAD BALANCER (EVEN IF USED ON ONE MACHINE)   
##
# If set, jk2 won't touch the headers in case of error and will 
# let for example Apache present the 
# ErrorDocument via mod_alias.
noErrorHeader=1
# 
noWorkerMsg=No workers available
# 
noWorkerCode=503
# 
hwBalanceErr=
# If all 

RE: Tomcat configuration tuning

2004-04-08 Thread Shapira, Yoav

Hi,

Welcome to the list from me. It's funny because you have just listed
precisely the same server setup as we are launching our new tomcat
based

You have a wacky definition of precisely because he has Apache at the
front-end and you have IIS.

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 configuration tuning

2004-04-08 Thread Allistair Crossley
Yes ok :) but other than that ;)

ADC.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 08 April 2004 17:01
To: Tomcat Users List
Subject: RE: Tomcat configuration tuning



Hi,

Welcome to the list from me. It's funny because you have just listed
precisely the same server setup as we are launching our new tomcat
based

You have a wacky definition of precisely because he has Apache at the
front-end and you have IIS.

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]



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: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Hey

Yes our struts uses the tiles plugin also. And the page load times are as a result of 
running on the server itself unfortunately. I am using the JTDS driver which 
apparently is one of the fastest SQL Server 2000 implementations for db connectivity.

One of the things about our system is that every click the user makes is a search to 
the CMS for content that belongs to that page. This could be considered sub-optimal. 
For instance, I could cache results per 15 minutes or something, but content changes 
often so I thought I would leave it dynamic. 

I spent some time running JProfiler against the app. The accumulated CPU and memory 
seemed to ultimately come down to these search calls to the CMS especially under load. 
Per request I have to instantiate the vendors' bean which is an interface to the CMS 
server socket and is responsible for giving back all the data from the calls. I then 
simply package up what I need in data transfer objects and ship them to the JSPs. The 
JSPs are highly configurable in terms of skinning and so on and have calls to the file 
system to check if images are present and so on. I think I could cache that too. In 
fact looking at timings in the logs shows the page start to end is sub 1 second, the 
rest (user click - page process start) I think is caught up at the search but even so 
that is generally about 0.8s. Pages are taking about 0.1 and my cached implementation 
of nav takes 0.06 or so to load. But overall the pages under load feel like they take 
about 2 seconds and also I get the feeling tomcat is recompiling something it really 
doesn't need to - that was why I was interested in the development flag in server.conf 
and whether I should turn that to false.

A fair amount of CPU and memory was going to Log4J also. I removed a lot of our 
unnecessary debugging statements and this too helped. 

I guess it comes down to the CMS load but any tips from others on the list are so very 
welcome,

Cheers, ADC

-Original Message-
From: LILES, DAVID (CONTRACTOR) [mailto:[EMAIL PROTECTED]
Sent: 08 April 2004 17:22
To: Allistair Crossley
Subject: RE: Tomcat configuration tuning


I have seen a couple postings regarding poor performance with Tomcat recently and 
thought I'd respond because we are using IIS5 with Tomcat 5 and SQL 2000 as well.

We have a Struts site but our difference is that we are using Tiles for our 
presentation... haven't really looked into the performance differences between Tiles 
and non-Tiles display rates

As for our database connectivity... we are using an internally developed connection 
pooling class (no JNDI), but have recently started migrating to Hibernate.

It is interesting hearing how long it is taking for the pages to be displayed 
considering we are on a similar set-up and have not noticed this type of problem. We 
have not made any special optimization setting changes, we basically did an out of the 
box set-up 

Is this occurring when running the app locally or on the server? I would be curious to 
know what is the resource load on the box running the app, how is the connectivity 
(bandwidth) to the box, has any sort of optimization tools been run against the code 
to check for bottle-necks?

Not sure that I can provide much value technically, but feel free to ask

-Dave



 -Original Message-
From:   Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, April 08, 2004 11:00 AM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject:RE: Tomcat configuration tuning

Hi Matt,

Welcome to the list from me. It's funny because you have just listed precisely the 
same server setup as we are launching our new tomcat based app to this weekend and I 
have been having nightmares about performance. 

We have a system like this;


user - 
  IIS - 
JK2 ISAPI - 
  Tomcat 5.0.19 - 
-- Content Management System Bean
  -- SQL Server 2000
-- SQL Server 2000 via JNDI resource setup

Our application is built on Struts. 

We found performance to be very poor under a load of 20 users of 3 iterators of 20 
page requests (13 secs per page) avg pages per secon 1.1!! Looking into it revealed 
too much XML, too much database connectivity and too much dynamic rending on the 
pages. 


I came up with a caching strategy for our navigation as well as removing all XML to 
database calls instead (you may have seen my last post)

Along with other things I have managed 10 pages per seconds and 1.5 seconds per page 
under the same load test. I'm still not entirely happy and wonder if I am missing any 
confoguration type stuff to make my app run faster either in tomcat, jk2, iis and so 
fourth. I run tomcat as a service with -Xms128 -Xmx384.

I would be very interested if you have time to hear of any useful quick tips you found 
can optimise via configuration - maybe even seeing your server.conf and anything else, 
perhaps any ideas about code optimisation and also how complex your system

Re: Tomcat configuration tuning

2004-04-08 Thread Matt Woodings
Hi Allistair,

Thanks for the quick response.  My server.xml file is below but to some of
the questions you had.  One of the biggest speed increases we gained was
from SQL optimization and table tuning.  One thing about server.xml
configuration which I realised is the acceptCount being set too high,
because if your server is struggling anyway having the requests backing up
is not going to help in fact may help it to go down.

What I mean by SQL optimization is we had java take over a lot of processing
rather than the database, so some of our queries may seem at first a little
broad but the speed increase was incredible.  Think how fast java can
iterate through a set of results rather than constantly referring to the db,
so that was one.   Also, one of our tables is heavily used and also ever
increasing in size, so to keep this fast I keep only a few weeks worth of
data in it (so its indexing is still really quick) and offload the rest to a
history table which is only used for reporting ... so based on date range I
either quickly recieve the latest info or slightly slower receive data from
the past.

Unfortunately I am unable to give you response times as they would be
meaningless (number of db hits, processing etc), but suffice to say its in
the region of 100msecs for non db jsp pages to 20+ secs (depending upon
connection) for insanely large amounts of db/processed pages and for the
vast majority of pages for select style queries are about 700msecs.  Sorry I
can't be of more help there.

I haven't read your post on caching yet, but I rely heavily on XML for our
site, from configuration to the menu options, and I also use streamed XML to
XSLT for all our views.  I guess it comes down to what you need to do, but I
would love to hear how you are using it.

One of the problems I am tackling at the moment is for places where there is
a lot of db inserts/updates which can't be done on-mass, so I am coming up
with a plan to assign these tasks to be fulfilled at off peak times, or in
manageable chunks so as to keep response times high.  One of the problems I
am overcoming is that our users aren't tech savvy and if a page doesn't load
fast enough they will hit reload constantly and escalate any memory problems
I may have had to the dreaded outOfMemory Exception.

Regards,

Matt

P.S. Struts ROCKS!!!

server.xml
?xml version='1.0' encoding='utf-8'?
Server className=org.apache.catalina.core.StandardServer port=8005
debug=0 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 jsr77Names=false/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue override=true type=java.lang.Integer
value=30/
Resource name=UserDatabase scope=Shareable
type=org.apache.catalina.UserDatabase auth=Container description=User
database that can be updated and saved/
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 className=org.apache.catalina.core.StandardService debug=0
name=Tomcat-Load-Balance-1
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
redirectPort=8443 bufferSize=8192 port=8009 connectionTimeout=0
enableLookups=true
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler debug=0
disableUploadTimeout=true maxProcessors=378 minProcessors=5
acceptCount=100 useURIValidationHack=false /
Engine jvmRoute=hsInstance debug=0 defaultHost=instance1
name=LoadBalance
  Host appBase=webapps autoDeploy=true debug=0 unpackWARs=true
name=instance1
Context crossContext=true reloadable=true debug=0
docBase=** path=/hs 
  Resource name=jdbc/** scope=Shareable
type=javax.sql.DataSource/
  ResourceParams name=jdbc/**
parameter
  nameurl/name
  value**/value
/parameter
parameter
  namemaxIdle/name
  value1000/value
/parameter
parameter
  namemaxActive/name
  value1/value
/parameter
parameter
  namedriverClassName/name
  valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
parameter
  namemaxWait/name
  value6/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameusername/name
  value**/value
/parameter
parameter
  namelogAbandoned/name
  valuetrue/value
/parameter
parameter
  

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Slightly off-forum but related to my performance tuning of my tomcat webapp, I am 
using the JCIFS NTLM authentication servlet as a filter. The filter is mapped to all 
requests /*. I just thought to myself on the train home whether because NTLM is a 
3-way handshake, that this may be causing some kind of performance hit.
 
The filter authenticates the desktop user and then populates the 
request.getRemoteUser. I suppose I could do this once with a login servlet and then 
populate a session user object and if that ever expires redirect back to the login 
servlet.
 
Does anyone have an opinion on whether it would be worth my time removing the filter 
per request in favour of a once-only login action.
 
I appreciate this is off-tomcat, so no hard feelings if noone replies ;)
 
ADC


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

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

Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
I do just what you described below.  If the loginContext isn't in the 
session,
I show do a global-forward to the login form.  And, because I didn't want to
have to put a session check into every Struts action I used AspectJ to weave
in a pointcut into every action.  Works great.  I was considering going with
a filter servlet instead but if you say its slow then maybe I did the right
thing.

Charlie



Allistair Crossley wrote:

Slightly off-forum but related to my performance tuning of my tomcat webapp, I am using the JCIFS NTLM authentication servlet as a filter. The filter is mapped to all requests /*. I just thought to myself on the train home whether because NTLM is a 3-way handshake, that this may be causing some kind of performance hit.

The filter authenticates the desktop user and then populates the request.getRemoteUser. I suppose I could do this once with a login servlet and then populate a session user object and if that ever expires redirect back to the login servlet.

Does anyone have an opinion on whether it would be worth my time removing the filter per request in favour of a once-only login action.

I appreciate this is off-tomcat, so no hard feelings if noone replies ;)

ADC

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

 



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


RE: Tomcat configuration tuning

2004-04-08 Thread Shapira, Yoav

Hi,
Did you profile the filter versus aspects?  Now that's a benchmark I'd
be really interested in.

To the original poster: assuming your filter is smart enough to check
the session for a user is authenticated already token, the /* mapping
is not that big a deal.  If you're re-authenticating every time, that's
terrible, and you should make your filter smarter.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 3:38 PM
To: Tomcat Users List
Subject: Re: Tomcat configuration tuning

I do just what you described below.  If the loginContext isn't in the
session,
I show do a global-forward to the login form.  And, because I didn't
want
to
have to put a session check into every Struts action I used AspectJ to
weave
in a pointcut into every action.  Works great.  I was considering going
with
a filter servlet instead but if you say its slow then maybe I did the
right
thing.


Charlie



Allistair Crossley wrote:

Slightly off-forum but related to my performance tuning of my tomcat
webapp, I am using the JCIFS NTLM authentication servlet as a filter.
The
filter is mapped to all requests /*. I just thought to myself on the
train
home whether because NTLM is a 3-way handshake, that this may be
causing
some kind of performance hit.

The filter authenticates the desktop user and then populates the
request.getRemoteUser. I suppose I could do this once with a login
servlet and then populate a session user object and if that ever
expires
redirect back to the login servlet.

Does anyone have an opinion on whether it would be worth my time
removing
the filter per request in favour of a once-only login action.

I appreciate this is off-tomcat, so no hard feelings if noone replies
;)

ADC


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



--
--

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


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




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


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



Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
I've never actually used a profiler before.  I keep meaning to I swear.
Its my next big venture.  I just figured out unit testing about 2 weeks ago.
We just never have time for that silly testing and profiling stuff at my
company.  I never actually wrote the filter either.  But I have one around
that I could use to at least do some testing.
I'll try this profiling and try to get the results back to the list.

Charlie

Shapira, Yoav wrote:

Hi,
Did you profile the filter versus aspects?  Now that's a benchmark I'd
be really interested in.
To the original poster: assuming your filter is smart enough to check
the session for a user is authenticated already token, the /* mapping
is not that big a deal.  If you're re-authenticating every time, that's
terrible, and you should make your filter smarter.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 3:38 PM
To: Tomcat Users List
Subject: Re: Tomcat configuration tuning
I do just what you described below.  If the loginContext isn't in the
session,
I show do a global-forward to the login form.  And, because I didn't
   

want
 

to
have to put a session check into every Struts action I used AspectJ to
weave
in a pointcut into every action.  Works great.  I was considering going
with
a filter servlet instead but if you say its slow then maybe I did the
   

right
 

thing.

Charlie



Allistair Crossley wrote:

   

Slightly off-forum but related to my performance tuning of my tomcat
 

webapp, I am using the JCIFS NTLM authentication servlet as a filter.
   

The
 

filter is mapped to all requests /*. I just thought to myself on the
   

train
 

home whether because NTLM is a 3-way handshake, that this may be
   

causing
 

some kind of performance hit.
   

The filter authenticates the desktop user and then populates the
 

request.getRemoteUser. I suppose I could do this once with a login
servlet and then populate a session user object and if that ever
   

expires
 

redirect back to the login servlet.
   

Does anyone have an opinion on whether it would be worth my time
 

removing
 

the filter per request in favour of a once-only login action.
   

I appreciate this is off-tomcat, so no hard feelings if noone replies
 

;)
 

ADC

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


--
 

--
 

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

-
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: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
Hi Yoav
 
It's the Samba team JCIFS NTLM servlet filter, so I guess I need to find out from them 
if the auth is done each time.
 
Cheers, ADC
 
-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thu 08/04/2004 20:39 
To: Tomcat Users List 
Cc: 
Subject: RE: Tomcat configuration tuning




Hi,
Did you profile the filter versus aspects?  Now that's a benchmark I'd
be really interested in.

To the original poster: assuming your filter is smart enough to check
the session for a user is authenticated already token, the /* mapping
is not that big a deal.  If you're re-authenticating every time, that's
terrible, and you should make your filter smarter.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 08, 2004 3:38 PM
To: Tomcat Users List
Subject: Re: Tomcat configuration tuning

I do just what you described below.  If the loginContext isn't in the
session,
I show do a global-forward to the login form.  And, because I didn't
want
to
have to put a session check into every Struts action I used AspectJ to
weave
in a pointcut into every action.  Works great.  I was considering going
with
a filter servlet instead but if you say its slow then maybe I did the
right
thing.


Charlie



Allistair Crossley wrote:

Slightly off-forum but related to my performance tuning of my tomcat
webapp, I am using the JCIFS NTLM authentication servlet as a filter.
The
filter is mapped to all requests /*. I just thought to myself on the
train
home whether because NTLM is a 3-way handshake, that this may be
causing
some kind of performance hit.

The filter authenticates the desktop user and then populates the
request.getRemoteUser. I suppose I could do this once with a login
servlet and then populate a session user object and if that ever
expires
redirect back to the login servlet.

Does anyone have an opinion on whether it would be worth my time
removing
the filter per request in favour of a once-only login action.

I appreciate this is off-tomcat, so no hard feelings if noone replies
;)

ADC


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



--
--

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


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




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


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





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

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

RE: Tomcat configuration tuning

2004-04-08 Thread Allistair Crossley
All our actions extend an abstract base action that handles auth if the session user 
is null and then delegates to a subclass to do the actial work which is another way of 
what you describe there. 
 
Hm...are you saying you use JCIFS also? Is the loginContext your own or part of the 
JCIFS API.

ADC

-Original Message- 
From: Charles N. Harvey III [mailto:[EMAIL PROTECTED] 
Sent: Thu 08/04/2004 20:38 
To: Tomcat Users List 
Cc: 
Subject: Re: Tomcat configuration tuning



I do just what you described below.  If the loginContext isn't in the
session,
I show do a global-forward to the login form.  And, because I didn't want to
have to put a session check into every Struts action I used AspectJ to weave
in a pointcut into every action.  Works great.  I was considering going with
a filter servlet instead but if you say its slow then maybe I did the right
thing.


Charlie



Allistair Crossley wrote:

Slightly off-forum but related to my performance tuning of my tomcat webapp, 
I am using the JCIFS NTLM authentication servlet as a filter. The filter is mapped to 
all requests /*. I just thought to myself on the train home whether because NTLM is a 
3-way handshake, that this may be causing some kind of performance hit.

The filter authenticates the desktop user and then populates the 
request.getRemoteUser. I suppose I could do this once with a login servlet and then 
populate a session user object and if that ever expires redirect back to the login 
servlet.

Does anyone have an opinion on whether it would be worth my time removing the 
filter per request in favour of a once-only login action.

I appreciate this is off-tomcat, so no hard feelings if noone replies ;)

ADC


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

 



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


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





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

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

Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
LoginContext is part of the jdk1.4.  javax.security.auth.login.LoginContext.
It is usually extended by others.  I found the very popular example on 
javaworld.com
where the author created an RDBMDLoginContext.  I changed that to my own 
OJBLoginContext
because I use Apache OJB.  Its pretty easy to write one, just override 
each of the
methods.

Charlie



Allistair Crossley wrote:

All our actions extend an abstract base action that handles auth if the session user is null and then delegates to a subclass to do the actial work which is another way of what you describe there. 

Hm...are you saying you use JCIFS also? Is the loginContext your own or part of the JCIFS API.

ADC

	-Original Message- 
	From: Charles N. Harvey III [mailto:[EMAIL PROTECTED] 
	Sent: Thu 08/04/2004 20:38 
	To: Tomcat Users List 
	Cc: 
	Subject: Re: Tomcat configuration tuning
	
	

	I do just what you described below.  If the loginContext isn't in the
	session,
	I show do a global-forward to the login form.  And, because I didn't want to
	have to put a session check into every Struts action I used AspectJ to weave
	in a pointcut into every action.  Works great.  I was considering going with
	a filter servlet instead but if you say its slow then maybe I did the right
	thing.
	
	
	Charlie
	
	
	
	Allistair Crossley wrote:
	
	Slightly off-forum but related to my performance tuning of my tomcat webapp, I am using the JCIFS NTLM authentication servlet as a filter. The filter is mapped to all requests /*. I just thought to myself on the train home whether because NTLM is a 3-way handshake, that this may be causing some kind of performance hit.
	
	The filter authenticates the desktop user and then populates the request.getRemoteUser. I suppose I could do this once with a login servlet and then populate a session user object and if that ever expires redirect back to the login servlet.
	
	Does anyone have an opinion on whether it would be worth my time removing the filter per request in favour of a once-only login action.
	
	I appreciate this is off-tomcat, so no hard feelings if noone replies ;)
	
	ADC
	
	
	FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
	---
	QAS Ltd.
	Developers of QuickAddress Software
	a href=http://www.qas.com;www.qas.com/a
	Registered in England: No 2582055
	Registered in Australia: No 082 851 474
	---
	/FONT
	
	 
	
	
	
	-
	To unsubscribe, e-mail: [EMAIL PROTECTED]
	For additional commands, e-mail: [EMAIL PROTECTED]
	
	
	-
	To unsubscribe, e-mail: [EMAIL PROTECTED]
	For additional commands, e-mail: [EMAIL PROTECTED]
	
	



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

 



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


Re: Tomcat configuration tuning

2004-04-08 Thread Charles N. Harvey III
Sorry, I was a little off in that last e-mail.

The example on javaworld.com has you extending LoginContext to 
SessionLoginContext.
It extends LoginContext and implements HttpSessionBindingListner.  This 
is done
so that when the session is over, the logout method is called from 
valueUnbound().

RDBMSLoginModule is the other class from the example and it implements 
LoginModule.
This is the jaas class that you configure in your jaas.config file.

None of this really has anything to do with Tomcat configuration tuning, 
sorry
for going off on a tangent.

Charlie

Charles N. Harvey III wrote:

LoginContext is part of the jdk1.4.  
javax.security.auth.login.LoginContext.
It is usually extended by others.  I found the very popular example on 
javaworld.com
where the author created an RDBMDLoginContext.  I changed that to my 
own OJBLoginContext
because I use Apache OJB.  Its pretty easy to write one, just override 
each of the
methods.

Charlie



Allistair Crossley wrote:

All our actions extend an abstract base action that handles auth if 
the session user is null and then delegates to a subclass to do the 
actial work which is another way of what you describe there.
Hm...are you saying you use JCIFS also? Is the loginContext your own 
or part of the JCIFS API.

ADC

-Original Message- From: Charles N. Harvey III 
[mailto:[EMAIL PROTECTED] Sent: Thu 08/04/2004 20:38 To: 
Tomcat Users List Cc: Subject: Re: Tomcat configuration tuning



I do just what you described below.  If the loginContext isn't in 
the
session,
I show do a global-forward to the login form.  And, because I 
didn't want to
have to put a session check into every Struts action I used 
AspectJ to weave
in a pointcut into every action.  Works great.  I was considering 
going with
a filter servlet instead but if you say its slow then maybe I did 
the right
thing.


Charlie



Allistair Crossley wrote:

Slightly off-forum but related to my performance tuning of my 
tomcat webapp, I am using the JCIFS NTLM authentication servlet as a 
filter. The filter is mapped to all requests /*. I just thought to 
myself on the train home whether because NTLM is a 3-way handshake, 
that this may be causing some kind of performance hit.

The filter authenticates the desktop user and then populates the 
request.getRemoteUser. I suppose I could do this once with a login 
servlet and then populate a session user object and if that ever 
expires redirect back to the login servlet.

Does anyone have an opinion on whether it would be worth my time 
removing the filter per request in favour of a once-only login action.

I appreciate this is off-tomcat, so no hard feelings if noone 
replies ;)

ADC


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

 
 


- 

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


- 

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





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

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
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 configuration

2004-04-07 Thread Harry Mantheakis
Hello Syed Taj


 yeah thats what even i thought, but my web pages are not visible if i put
 myappl directory directly under webapps, only if i put it under ROOT doed
 the server even display the web pages.


You are mistaken. 

Placing your 'myapp' directory under the ROOT context simply means that your
web pages are *nested* in a ROOT context sub-directory.

In other words your web pages are assumed to belong to the ROOT context, and
your 'myapp' folder is treated as a sub-directory and *not* as a separate
context.

By the way, in servlet containers such as Tomcat the word 'context' is
synonymous with the word 'application'. (They mean the same thing.)

If you want to create your *own* separate application (context) then you
must place it under the $CATALINA_HOME/webapps directory - not under ROOT.

One thing you must *not* do is have a ROOT sub-directory that is the same
name as a directory (folder) that represents a context (application) in the
'webapps' directory.

So if your application (context) is called 'banana' then you must not have
this:


$CATALINA_HOME/
|
 webapps/
   |
    ROOT/
   |  |
   |   banana/
   |
    banana/


You should delete the $CATALINA_HOME/webapps/ROOT/banana sub-directory.

Odd as it may seem, you could place a web page called (say) 'yellow.jsp'
under either of the two 'banana' directories shown above and you would call
that page with the same (!) URL:


http://localhost:8080/banana/yellow.jsp


If the 'yellow.jsp' sits under the $CATALINA_HOME/webapps/ROOT/banana
directory then it is treated as belonging to the ROOT context (application).

If 'yellow.jsp' sits under the $CATALINA_HOME/banana directory then it is
treated as belonging to the 'banana' context (application).

The difference is important!

Finally, you say that 'my web pages are not visible if i put myappl
directory directly under webapps'.

All I can suggest is that you are doing something wrong, because this aspect
of Tomcat is rock-solid and works 100%.

So try again, and make sure you do not have a ROOT sub-directory that
conflicts with the name of your 'myapp' context, whatever that is.

If you are still having problems, start a new thread on this forum, giving
all the relevant details, and I'm sure you will be helped.

I'm off on holiday now, so I cannot follow up on this I'm afraid.

Good luck!

Harry


 From: Harry Mantheakis [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Tomcat configuration
 Date: Sun, 04 Apr 2004 20:08:19 +0100
 
 Hello
 
 ROOT is the default context (application). By default, ROOT handles
 requests
 that do not specify an application. Hence this URL:
 
 
  http://localhost:8080/
 
 
 Would be handled by the 'ROOT' application, which displays the Tomcat
 welcome page. You can re-configure this, of course, but that is how it is
 set up by default.
 
 Your 'myapplication' directory (and everything it contains) should not be
 located within the ROOT directory. It should be located within the
 'webapps'
 directory.
 
 HTH
 
 Harry


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



Re: Tomcat configuration

2004-04-06 Thread syed taj
yeah thats what even i thought, but my web pages are not visible if i put 
myappl directory directly under webapps, only if i put it under ROOT doed 
the server even display the web pages.


From: Harry Mantheakis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Tomcat configuration
Date: Sun, 04 Apr 2004 20:08:19 +0100
Hello

ROOT is the default context (application). By default, ROOT handles 
requests
that do not specify an application. Hence this URL:

 http://localhost:8080/

Would be handled by the 'ROOT' application, which displays the Tomcat
welcome page. You can re-configure this, of course, but that is how it is
set up by default.
Your 'myapplication' directory (and everything it contains) should not be
located within the ROOT directory. It should be located within the 
'webapps'
directory.

HTH

Harry

 Under ROOT exists myapplication directory
 The structure goes like :
 tomcat-home
 webapps
 ROOT
 myapplication
 Html pages
 WEB-INF
 Web.xml
 classes
 Class files

 See whether u can help
 If u have set ur server successfully, u would definitely know this one.
 Thanks

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 7:39 PM
 To: Tomcat Users List
 Subject: RE: Tomcat configuration


 Hi,
 What are your files under ROOT instead of just under webapps?

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Taj [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 2:26 AM
 To: 'Tomcat Users List'
 Subject: Tomcat configuration

 Hi



 Iam having problem in setting my application running in Tomcat 4.1

 The applications directory is situated at
 /Tomcat4.1/webapps/ROOT/myapplication

 This is the only place that my pages are visible to the server.

 My class files are situated at
 /Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/classes/



 The html pages in the directory /Tomcat4.1/webapps/ROOT/myapplication/
 are
 visible to the server but my class files

 are not. I have tried everthing. The web.xml file is kept in the
 directory
 /Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/

 and the web.xml file goes like:



 web-app



   servlet

servlet-nameGetInput/servlet-name

servlet-classGetInput/servlet-class

   /servlet



   servlet-mapping

servlet-nameGetInput/servlet-name

url-pattern/GetInput/url-pattern

   /servlet-mapping



 /web-app



 Where the GetInput in the servlet-name.



 The HTML page that calls the servlet has the following syntax for the
 POST
 command:



 form method=POST action=GetInput



 I have also added to the environment variables of my OS, the following:



 CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1

 TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1

 But to no difference



 Even after all this I get the 404 error: the required source was not
 found.

 I would by very thankful to anyone who can find what I have missed and
 help
 me out.



 Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Buzz on your screen! Download on your screen. 
http://www.msn.co.in/Download/screensaver/ Keep yourself smiling!

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


RE: Tomcat Configuration with Apache Virtual Hosts

2004-04-05 Thread Mike Burkhouse
Hi Ed,

I am running Linux, RedHat Enterprise Linux 3.

I have edited my httpd.conf file per your suggestion as follows:

My DSO Support Section now reads:

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO
you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#

LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module libexec/mod_jk.so

My Virtual Hosts section now reads:

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/apache2/htdocs
ServerName www.consultantsnetwork.com
JkMount /*.jsp ajp13
JkWorkersFile /usr/local/apache2/conf/workers2.properties
ErrorLog logs/cn/cn-error_log
CustomLog logs/cn/cn-access_log common
/VirtualHost

VirtualHost *:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/apache2/htdocs/LV
ServerName www.learningvoyage.com
ErrorLog logs/lv/lv-error_log
CustomLog logs/lv/lv-access_log common
/VirtualHost

When I try to restart Apache with the LoadModule jk_module
libexec/mod_jk.so, it fails because it can't find that file.  Searching
suggests that file does not exist on my system. Do I need it if I have
mod_jk2.so installed?.  Commenting it out, the startup fails because it does
not like the JkMount directive, as follows:

[EMAIL PROTECTED] conf]# /etc/rc.d/init.d/apachectl restart
Syntax error on line 1052 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration.

I am also going to copy the list so this can get archived.

Thanks,

Mike


 -Original Message-
 From: Ed Robbins [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 05, 2004 9:53 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat Configuration with Apache Virtual Hosts
 
 
 Sorry, you'll need these lines in your httpd.conf file for the Apache 
 web server:
 
 If your running windows, I believe you leave this one out and the 
 connector will take care of it 
 
 LoadModule jk_module libexec/mod_jk.so
 
 Put your correct path to your workers.properties file here 
 JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
 
 Ed
 
 
 Mike Burkhouse wrote:
  Hi Ed,
  
  Sorry for not being more clear.
  
  That is correct that I am trying to run jsp's under the Consultants 
  Network domain.  When I try to run a jsp, the jsp code is displayed.
  
  Are you suggesting something like this:
  
  VirtualHost *:80
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /usr/local/apache2/htdocs
  ServerName www.consultantsnetwork.com
  JkMount /*.jsp ajp13
  ErrorLog logs/cn/cn-error_log
  CustomLog logs/cn/cn-access_log common
  /VirtualHost
  
  If so, I get this:
  
  [EMAIL PROTECTED] conf]# /etc/rc.d/init.d/apachectl restart Syntax 
  error on line 1053 of /usr/local/apache2/conf/httpd.conf:
  Invalid command 'JkMount', perhaps mis-spelled or defined 
 by a module 
  not included in the server configuration
  
  Mike
  
  
 -Original Message-
 From: Ed Robbins [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 05, 2004 9:25 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat Configuration with Apache Virtual Hosts
 
 
 Mike,
 
 Can you give me a little more background on the problem.  It
 looks like 
 you are trying to run jsp's under the consultantsnetwork 
 domain, is this 
 correct?  What happens when you try to?
 
 My first stab at it is that you don't tell apache to use
 tomcat when a 
 jsp is requested.  You should add a directive in the 
 VirtualHost for 
 consultantsnetwork that looks like this:
 
 JkMount /*.jsp ajp13
 
 Ed
 
 Mike Burkhouse wrote:
 
 Hi All,
 
 I am still dorking around with this after writing the list
 
 a couple of
 
 weeks ago.  I am trying to run JSPs using tomcat through Apache
 virtual hosts.  To refresh, I have 2 domains, I want one to 
 
 run JSPs,
 
 the other one will not. All I can think to do at this point is send
 you my configuration files with hopes that one of you will 
 
 recognize
 
 an error that I made and make suggestions for correcting
 
 it.  Please
 
 let me know if I left out any relevant information.  Sorry
 
 if this is
 
 all a mess, it is my first time configuring Tomcat.
 
 Thank You in advance for your time.
 
 Mike

 
 1. Environment:
RHEL 3
Apache 2.0.48
Tomcat 4.1
 
 2. Documents read/followed:
 
 http://cymulacrum.net/writings/tomcat5/book1.html
 
 http://www.galatea.com/flashguides/virtual-hosting-tomcat.xml
 
 
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhos
 thowto.htm
 
 l
 
 http://jakarta.apache.org

RE: Tomcat Configuration with Apache Virtual Hosts

2004-04-05 Thread Mike Burkhouse
Now we're getting somewhere...Instead of displaying the jsp code, I get an
internal server error.

From httpd_error_log:

[Mon Apr 05 12:21:25 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3272 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3273 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3274 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3275 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3276 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.2
configured -- resuming normal operations
[Mon Apr 05 12:21:50 2004] [error] jk2_init() Can't find child 3277 in
scoreboard
[Mon Apr 05 12:21:50 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:50 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:50 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:59 2004] [notice] mod_jk.handler() finding worker for 0
811e2d0 ajp13:localhost:8009
[Mon Apr 05 12:21:59 2004] [error] mod_jk.handle() No worker for
/employment-resume.jsp
[Mon Apr 05 12:22:18 2004] [notice] mod_jk.handler() finding worker for 0
811e2d0 ajp13:localhost:8009
[Mon Apr 05 12:22:18 2004] [error] mod_jk.handle() No worker for
/contact.jsp

Is this a problem with my server.xml file, or my workers2.properties file?

Mike

 -Original Message-
 From: Ed Robbins [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 05, 2004 10:08 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat Configuration with Apache Virtual Hosts
 
 
 It also appears that you can put this directive in your virtual host 
 section for that domain:
 
 Location /*.jsp
JkUriSet worker ajp13:localhost:8009
 /Location
 
 Ed
 
 Mike Burkhouse wrote:
  Hi Ed,
  
  Sorry for not being more clear.
  
  That is correct that I am trying to run jsp's under the Consultants 
  Network domain.  When I try to run a jsp, the jsp code is displayed.
  
  Are you suggesting something like this:
  
  VirtualHost *:80
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot /usr/local/apache2/htdocs
  ServerName www.consultantsnetwork.com
  JkMount /*.jsp ajp13
  ErrorLog logs/cn/cn-error_log
  CustomLog logs/cn/cn-access_log common
  /VirtualHost
  
  If so, I get this:
  
  [EMAIL PROTECTED] conf]# /etc/rc.d/init.d/apachectl restart Syntax 
  error on line 1053 of /usr/local/apache2/conf/httpd.conf:
  Invalid command 'JkMount', perhaps mis-spelled or defined 
 by a module 
  not included in the server configuration
  
  Mike
  
  
 -Original Message-
 From: Ed Robbins [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 05, 2004 9:25 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat Configuration with Apache Virtual Hosts
 
 
 Mike,
 
 Can you give me a little more background on the problem.  It
 looks like 
 you are trying to run jsp's under the consultantsnetwork 
 domain, is this 
 correct?  What happens when you try to?
 
 My first stab at it is that you don't tell apache to use
 tomcat when a 
 jsp is requested.  You should add a directive in the 
 VirtualHost for 
 consultantsnetwork that looks like this:
 
 JkMount /*.jsp ajp13
 
 Ed
 
 Mike Burkhouse wrote:
 
 Hi All,
 
 I am still dorking around with this after writing the list
 
 a couple of
 
 weeks ago.  I am trying to run JSPs using tomcat through Apache
 virtual hosts.  To refresh, I have 2 domains, I want one to 
 
 run JSPs,
 
 the other one will not. All I can think to do at this point is send
 you my configuration files

Re: Tomcat Configuration with Apache Virtual Hosts

2004-04-05 Thread Ed Robbins
Take a look at your workers2.properties file:

Specifically this line:

# define the worker
[ajp13:/opt/jakarta/jakarta-tomcat/work/jk2.socket]
channel=channel.un:/opt/jakarta/jakarta-tomcat/work/jk2.socket
You want to change that to this:

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
Ed

Mike Burkhouse wrote:
Now we're getting somewhere...Instead of displaying the jsp code, I get an
internal server error.
From httpd_error_log:
[Mon Apr 05 12:21:25 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3272 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3273 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3274 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3275 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find child 3276 in
scoreboard
[Mon Apr 05 12:21:25 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:25 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.2
configured -- resuming normal operations
[Mon Apr 05 12:21:50 2004] [error] jk2_init() Can't find child 3277 in
scoreboard
[Mon Apr 05 12:21:50 2004] [error] uriEnv.init() map to invalid worker
/*.jsp ajp13:localhost:8009
[Mon Apr 05 12:21:50 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:21:50 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:21:59 2004] [notice] mod_jk.handler() finding worker for 0
811e2d0 ajp13:localhost:8009
[Mon Apr 05 12:21:59 2004] [error] mod_jk.handle() No worker for
/employment-resume.jsp
[Mon Apr 05 12:22:18 2004] [notice] mod_jk.handler() finding worker for 0
811e2d0 ajp13:localhost:8009
[Mon Apr 05 12:22:18 2004] [error] mod_jk.handle() No worker for
/contact.jsp
Is this a problem with my server.xml file, or my workers2.properties file?

Mike


-Original Message-
From: Ed Robbins [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 05, 2004 10:08 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Configuration with Apache Virtual Hosts

It also appears that you can put this directive in your virtual host 
section for that domain:

Location /*.jsp
  JkUriSet worker ajp13:localhost:8009
/Location
Ed

Mike Burkhouse wrote:

Hi Ed,

Sorry for not being more clear.

That is correct that I am trying to run jsp's under the Consultants 
Network domain.  When I try to run a jsp, the jsp code is displayed.

Are you suggesting something like this:

VirtualHost *:80
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /usr/local/apache2/htdocs
   ServerName www.consultantsnetwork.com
   JkMount /*.jsp ajp13
   ErrorLog logs/cn/cn-error_log
   CustomLog logs/cn/cn-access_log common
/VirtualHost
If so, I get this:

[EMAIL PROTECTED] conf]# /etc/rc.d/init.d/apachectl restart Syntax 
error on line 1053 of /usr/local/apache2/conf/httpd.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined 
by a module 

not included in the server configuration

Mike



-Original Message-
From: Ed Robbins [mailto:[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 9:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Configuration with Apache Virtual Hosts
Mike,

Can you give me a little more background on the problem.  It
looks like 
you are trying to run jsp's under the consultantsnetwork 
domain, is this 
correct?  What happens when you try to?

My first stab at it is that you don't tell apache to use
tomcat when a 
jsp is requested.  You should add a directive in the 
VirtualHost for 

consultantsnetwork that looks like this:

JkMount /*.jsp ajp13

Ed

Mike Burkhouse wrote:


Hi All,

I am still dorking around with this after writing the list
a couple of


weeks ago

Re: Tomcat Configuration with Apache Virtual Hosts

2004-04-05 Thread Adrian Lanning
Hi Mike,

jk_module and JkMount will only work if you are using JK.  You are using JK2
so you should go back to your original configuration.

Looking back at your log output, I noticed an error about a JNI lib not
being found.  I am fairly certain that using Unix Sockets requires JNI so
that may be the root cause of your problem.  Make sure you compiled jk2 with
jni and that the jni lib (jkjni.so) is in the right location.

Maybe you should just try using regular channel sockets rather than unix
sockets ( it seems to be defaulting to that anyways but I don't know for
sure).

hth,
Adrian Lanning

 snip from your log output 
INFO: APR not loaded, disabling jni components: java.io.IOException:
java.lang.UnsatisfiedLinkError: /usr/local/apache2/modules/jkjni.so:
/usr/local/apache2/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno
Mar 25, 2004 11:50:11 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
 end snip 

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



RE: Tomcat Configuration with Apache Virtual Hosts

2004-04-05 Thread Mike Burkhouse
Oops.  That changed things a bit.  Now I get a segmentation fault:

[Mon Apr 05 12:39:58 2004] [notice] child pid 3800 exit signal Segmentation
fault (11)
[Mon Apr 05 12:40:09 2004] [notice] shm.createSlot() Create 1 0xb71c1000
0xb71c3000
[Mon Apr 05 12:40:09 2004] [notice] workerEnv.init() create slot epStat.5
[Mon Apr 05 12:40:10 2004] [error] jk2_init() Can't find child 3874 in
scoreboard
[Mon Apr 05 12:40:10 2004] [error] ajp13.init(): No channel localhost:8009
[Mon Apr 05 12:40:10 2004] [error] workerEnv.initWorkers() init failed for
ajp13:localhost:8009
[Mon Apr 05 12:40:10 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:40:10 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:40:10 2004] [notice] child pid 3806 exit signal Segmentation
fault (11)

So I changed my workers2.properties file again, specifically, the socket
channel section:

# Workers2.properties

[logger.apache2]
level=debug

[shm]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/opt/jakarta/jakarta-tomcat/logs/jk2.shm
size=1048576
debug=0
disabled=0

#Unix domain socket
#[channel.un:/opt/jakarta/jakarta-tomcat/work/jk2.socket]
#tomcatId=localhost:8009
#debug=0

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

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

#Announce a status worker
[status:status]
info=Status worker. Displays runtime information.

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

# Uri Mapping
 [uri:www.consultantsnetwork.com/*.jsp]
worker=ajp13:localhost:8009

From the error Log after restart: 

[Mon Apr 05 12:45:50 2004] [notice] SIGHUP received.  Attempting to restart
[Mon Apr 05 12:45:50 2004] [notice] uriEnv.setAttribute() the worker
directive is deprecated. Use 'group' instead.
[Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find child 4023 in
scoreboard
[Mon Apr 05 12:45:50 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find child 4024 in
scoreboard
[Mon Apr 05 12:45:50 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find child 4025 in
scoreboard
[Mon Apr 05 12:45:50 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find child 4026 in
scoreboard
[Mon Apr 05 12:45:50 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find child 4027 in
scoreboard
[Mon Apr 05 12:45:50 2004] [notice] workerEnv.init() ok
/usr/local/apache2/conf/workers2.properties
[Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
[Mon Apr 05 12:45:50 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.2
configured -- resuming normal operations
[Mon Apr 05 12:46:10 2004] [error] channelSocket.open() connect failed
127.0.0.1:8009 111 Connection refused
[Mon Apr 05 12:46:10 2004] [error] ajp13.connect() failed
ajp13:localhost:8009
[Mon Apr 05 12:46:10 2004] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Mon Apr 05 12:46:10 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8009 1 1
[Mon Apr 05 12:46:10 2004] [notice] ajp13.done() close endpoint
ajp13:localhost:8009 error_state 1
[Mon Apr 05 12:46:10 2004] [error] mod_jk.handler() Error connecting to
tomcat 12

What gives with port 12?

 -Original Message-
 From: Ed Robbins [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 05, 2004 10:36 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Configuration with Apache Virtual Hosts
 
 
 Take a look at your workers2.properties file:
 
 Specifically this line:
 
 # define the worker 
 [ajp13:/opt/jakarta/jakarta-tomcat/work/jk2.socket]
 channel=channel.un:/opt/jakarta/jakarta-tomcat/work/jk2.socket
 
 You want to change that to this:
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 Ed
 
 
 Mike Burkhouse wrote:
  Now we're getting somewhere...Instead of displaying the jsp code, I 
  get an internal server error.
  
 From httpd_error_log:
  
  [Mon Apr 05 12:21:25 2004] [notice] SIGHUP received.  Attempting to 
  restart [Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't 
 find child 
  3272 in scoreboard [Mon Apr 05 12:21:25 2004] [error] uriEnv.init() 
  map to invalid worker /*.jsp ajp13:localhost:8009
  [Mon Apr 05 12:21:25 2004] [notice] workerEnv.init() ok
  /usr/local/apache2/conf/workers2.properties
  [Mon Apr 05 12:21:25 2004] [error] mod_jk child init 1 -2
  [Mon Apr 05 12:21:25 2004] [error] jk2_init() Can't find 
 child 3273

RE: Tomcat Configuration with Apache Virtual Hosts

2004-04-05 Thread Mike Burkhouse
Hi Adrian,

I went back to using channel sockets (see last post).  I am getting closer,
not quite there yet.

Thanks for your input,

Mike

 -Original Message-
 From: Adrian Lanning [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 05, 2004 11:55 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Configuration with Apache Virtual Hosts
 
 
 Hi Mike,
 
 jk_module and JkMount will only work if you are using JK.  
 You are using JK2 so you should go back to your original 
 configuration.
 
 Looking back at your log output, I noticed an error about a 
 JNI lib not being found.  I am fairly certain that using Unix 
 Sockets requires JNI so that may be the root cause of your 
 problem.  Make sure you compiled jk2 with jni and that the 
 jni lib (jkjni.so) is in the right location.
 
 Maybe you should just try using regular channel sockets 
 rather than unix sockets ( it seems to be defaulting to that 
 anyways but I don't know for sure).
 
 hth,
 Adrian Lanning
 
  snip from your log output 
 INFO: APR not loaded, disabling jni components: java.io.IOException:
 java.lang.UnsatisfiedLinkError: /usr/local/apache2/modules/jkjni.so:
 /usr/local/apache2/lib/libaprutil-0.so.0: undefined symbol: 
 gdbm_errno Mar 25, 2004 11:50:11 AM 
 org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
  end snip 
 
 -
 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 Configuration with Apache Virtual Hosts [SOLVED]

2004-04-05 Thread Mike Burkhouse
I changed my jk2.properties file as follows:

Handler.list=channelSocket,request
channelSocket.port=8009

The Unix socket stuff was still in there from before.  I can run JSPs now
from Apache VH container.

Thank you for your help!

Mike

 -Original Message-
 From: Mike Burkhouse [mailto:[EMAIL PROTECTED] 
 Sent: Monday, April 05, 2004 11:54 AM
 To: 'Tomcat Users List'
 Subject: RE: Tomcat Configuration with Apache Virtual Hosts
 
 
 Oops.  That changed things a bit.  Now I get a segmentation fault:
 
 [Mon Apr 05 12:39:58 2004] [notice] child pid 3800 exit 
 signal Segmentation fault (11) [Mon Apr 05 12:40:09 2004] 
 [notice] shm.createSlot() Create 1 0xb71c1000 0xb71c3000 [Mon 
 Apr 05 12:40:09 2004] [notice] workerEnv.init() create slot 
 epStat.5 [Mon Apr 05 12:40:10 2004] [error] jk2_init() Can't 
 find child 3874 in scoreboard [Mon Apr 05 12:40:10 2004] 
 [error] ajp13.init(): No channel localhost:8009 [Mon Apr 05 
 12:40:10 2004] [error] workerEnv.initWorkers() init failed 
 for ajp13:localhost:8009 [Mon Apr 05 12:40:10 2004] [notice] 
 workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
 [Mon Apr 05 12:40:10 2004] [error] mod_jk child init 1 -2
 [Mon Apr 05 12:40:10 2004] [notice] child pid 3806 exit 
 signal Segmentation fault (11)
 
 So I changed my workers2.properties file again, specifically, 
 the socket channel section:
 
 # Workers2.properties
 
 [logger.apache2]
 level=debug
 
 [shm]
 info=Scoreboard. Required for reconfiguration and status with 
 multiprocess servers file=/opt/jakarta/jakarta-tomcat/logs/jk2.shm
 size=1048576
 debug=0
 disabled=0
 
 #Unix domain socket 
 #[channel.un:/opt/jakarta/jakarta-tomcat/work/jk2.socket]
 #tomcatId=localhost:8009
 #debug=0
 
 #Example socket channel, override port and host 
 [channel.socket:localhost:8009] port=8009 host=127.0.0.1
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 
 #Announce a status worker
 [status:status]
 info=Status worker. Displays runtime information.
 
 [uri:/jkstatus/*]
 group=status:status
 
 # Uri Mapping
  [uri:www.consultantsnetwork.com/*.jsp]
 worker=ajp13:localhost:8009
 
 From the error Log after restart: 
 
 [Mon Apr 05 12:45:50 2004] [notice] SIGHUP received.  
 Attempting to restart [Mon Apr 05 12:45:50 2004] [notice] 
 uriEnv.setAttribute() the worker directive is deprecated. Use 
 'group' instead. [Mon Apr 05 12:45:50 2004] [error] 
 jk2_init() Can't find child 4023 in scoreboard [Mon Apr 05 
 12:45:50 2004] [notice] workerEnv.init() ok 
 /usr/local/apache2/conf/workers2.properties
 [Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
 [Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find 
 child 4024 in scoreboard [Mon Apr 05 12:45:50 2004] [notice] 
 workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
 [Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
 [Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find 
 child 4025 in scoreboard [Mon Apr 05 12:45:50 2004] [notice] 
 workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
 [Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
 [Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find 
 child 4026 in scoreboard [Mon Apr 05 12:45:50 2004] [notice] 
 workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
 [Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
 [Mon Apr 05 12:45:50 2004] [error] jk2_init() Can't find 
 child 4027 in scoreboard [Mon Apr 05 12:45:50 2004] [notice] 
 workerEnv.init() ok /usr/local/apache2/conf/workers2.properties
 [Mon Apr 05 12:45:50 2004] [error] mod_jk child init 1 -2
 [Mon Apr 05 12:45:50 2004] [notice] Apache/2.0.48 (Unix) 
 mod_jk2/2.0.2 configured -- resuming normal operations [Mon 
 Apr 05 12:46:10 2004] [error] channelSocket.open() connect 
 failed 127.0.0.1:8009 111 Connection refused [Mon Apr 05 
 12:46:10 2004] [error] ajp13.connect() failed 
 ajp13:localhost:8009 [Mon Apr 05 12:46:10 2004] [error] 
 ajp13.service() failed to connect endpoint errno=111 
 Connection refused [Mon Apr 05 12:46:10 2004] [error] 
 ajp13.service() Error  forwarding ajp13:localhost:8009 1 1 
 [Mon Apr 05 12:46:10 2004] [notice] ajp13.done() close 
 endpoint ajp13:localhost:8009 error_state 1 [Mon Apr 05 
 12:46:10 2004] [error] mod_jk.handler() Error connecting to 
 tomcat 12
 
 What gives with port 12?
 
  -Original Message-
  From: Ed Robbins [mailto:[EMAIL PROTECTED]
  Sent: Monday, April 05, 2004 10:36 AM
  To: Tomcat Users List
  Subject: Re: Tomcat Configuration with Apache Virtual Hosts
  
  
  Take a look at your workers2.properties file:
  
  Specifically this line:
  
  # define the worker
  [ajp13:/opt/jakarta/jakarta-tomcat/work/jk2.socket]
  channel=channel.un:/opt/jakarta/jakarta-tomcat/work/jk2.socket
  
  You want to change that to this:
  
  # define the worker
  [ajp13:localhost:8009]
  channel=channel.socket:localhost:8009
  
  Ed
  
  
  Mike Burkhouse wrote:
   Now we're getting somewhere...Instead

Re: Tomcat configuration

2004-04-04 Thread Harry Mantheakis
Hello

ROOT is the default context (application). By default, ROOT handles requests
that do not specify an application. Hence this URL:


 http://localhost:8080/


Would be handled by the 'ROOT' application, which displays the Tomcat
welcome page. You can re-configure this, of course, but that is how it is
set up by default.

Your 'myapplication' directory (and everything it contains) should not be
located within the ROOT directory. It should be located within the 'webapps'
directory.

HTH

Harry


 Under ROOT exists myapplication directory
 The structure goes like :
 tomcat-home
 webapps
 ROOT
 myapplication
 Html pages 
 WEB-INF
 Web.xml
 classes
 Class files
 
 See whether u can help
 If u have set ur server successfully, u would definitely know this one.
 Thanks
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 7:39 PM
 To: Tomcat Users List
 Subject: RE: Tomcat configuration
 
 
 Hi,
 What are your files under ROOT instead of just under webapps?
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Taj [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 02, 2004 2:26 AM
 To: 'Tomcat Users List'
 Subject: Tomcat configuration
 
 Hi
 
 
 
 Iam having problem in setting my application running in Tomcat 4.1
 
 The applications directory is situated at
 /Tomcat4.1/webapps/ROOT/myapplication
 
 This is the only place that my pages are visible to the server.
 
 My class files are situated at
 /Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/classes/
 
 
 
 The html pages in the directory /Tomcat4.1/webapps/ROOT/myapplication/
 are
 visible to the server but my class files
 
 are not. I have tried everthing. The web.xml file is kept in the
 directory
 /Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/
 
 and the web.xml file goes like:
 
 
 
 web-app
 
 
 
   servlet
 
servlet-nameGetInput/servlet-name
 
servlet-classGetInput/servlet-class
 
   /servlet
 
 
 
   servlet-mapping
 
servlet-nameGetInput/servlet-name
 
url-pattern/GetInput/url-pattern
 
   /servlet-mapping
 
 
 
 /web-app
 
 
 
 Where the GetInput in the servlet-name.
 
 
 
 The HTML page that calls the servlet has the following syntax for the
 POST
 command:
 
 
 
 form method=POST action=GetInput
 
 
 
 I have also added to the environment variables of my OS, the following:
 
 
 
 CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1
 
 TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1
 
 But to no difference
 
 
 
 Even after all this I get the 404 error: the required source was not
 found.
 
 I would by very thankful to anyone who can find what I have missed and
 help
 me out.
 
 
 
 Thanks


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



RE: Tomcat configuration

2004-04-03 Thread Taj
Under ROOT exists myapplication directory
The structure goes like :
tomcat-home
webapps
ROOT
myapplication
Html pages 
WEB-INF
Web.xml
classes
Class files

See whether u can help
If u have set ur server successfully, u would definitely know this one.
Thanks

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 02, 2004 7:39 PM
To: Tomcat Users List
Subject: RE: Tomcat configuration


Hi,
What are your files under ROOT instead of just under webapps?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Taj [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 2:26 AM
To: 'Tomcat Users List'
Subject: Tomcat configuration

Hi



Iam having problem in setting my application running in Tomcat 4.1

The applications directory is situated at
/Tomcat4.1/webapps/ROOT/myapplication

This is the only place that my pages are visible to the server.

My class files are situated at
/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/classes/



The html pages in the directory /Tomcat4.1/webapps/ROOT/myapplication/
are
visible to the server but my class files

are not. I have tried everthing. The web.xml file is kept in the
directory
/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/

and the web.xml file goes like:



web-app



   servlet

servlet-nameGetInput/servlet-name

servlet-classGetInput/servlet-class

   /servlet



   servlet-mapping

servlet-nameGetInput/servlet-name

url-pattern/GetInput/url-pattern

   /servlet-mapping



/web-app



Where the GetInput in the servlet-name.



The HTML page that calls the servlet has the following syntax for the
POST
command:



form method=POST action=GetInput



I have also added to the environment variables of my OS, the following:



CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1

TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1

But to no difference



Even after all this I get the 404 error: the required source was not
found.

I would by very thankful to anyone who can find what I have missed and
help
me out.



Thanks


























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: Tomcat configuration

2004-04-02 Thread Harry Mantheakis
Hello

I think this:


form method=POST action=GetInput


Should read:


form method=POST action=/myapplication/GetInput


Also, consider packing your classes, so that this servlet registration:


servlet
servlet-nameGetInput/servlet-name
servlet-classGetInput/servlet-class
 /servlet


Becomes something like:


servlet
servlet-nameGetInput/servlet-name
servlet-classcom.foo.bar.GetInput/servlet-class
 /servlet


Packaging is not necessary to invoke a servlet, but it used to be necessary
if you used JavaBeans in JSPs. (Maybe JavaBeans in JSPs is old hat now, I'm
not sure.)


Finally, $TOMCAT_HOME is not used. Only $CATALINA_HOME is needed.


Good luck!


Harry
 


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



RE: Tomcat configuration

2004-04-02 Thread Shapira, Yoav

Hi,
What are your files under ROOT instead of just under webapps?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Taj [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 2:26 AM
To: 'Tomcat Users List'
Subject: Tomcat configuration

Hi



Iam having problem in setting my application running in Tomcat 4.1

The applications directory is situated at
/Tomcat4.1/webapps/ROOT/myapplication

This is the only place that my pages are visible to the server.

My class files are situated at
/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/classes/



The html pages in the directory /Tomcat4.1/webapps/ROOT/myapplication/
are
visible to the server but my class files

are not. I have tried everthing. The web.xml file is kept in the
directory
/Tomcat4.1/webapps/ROOT/myapplication/WEB-INF/

and the web.xml file goes like:



web-app



   servlet

servlet-nameGetInput/servlet-name

servlet-classGetInput/servlet-class

   /servlet



   servlet-mapping

servlet-nameGetInput/servlet-name

url-pattern/GetInput/url-pattern

   /servlet-mapping



/web-app



Where the GetInput in the servlet-name.



The HTML page that calls the servlet has the following syntax for the
POST
command:



form method=POST action=GetInput



I have also added to the environment variables of my OS, the following:



CATALINA_HOME=E:\Program Files\Apache Group\Tomcat 4.1

TOMCAT_HOME=E:\Program Files\Apache Group\Tomcat 4.1

But to no difference



Even after all this I get the 404 error: the required source was not
found.

I would by very thankful to anyone who can find what I have missed and
help
me out.



Thanks


























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 configuration

2004-03-25 Thread Cocalea, Eugen
The heapsize can be specified in the registry. Look for a key that should
look like:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1]

under it you should have something like this:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat
4.1\Parameters]
JVM Option Number no=-XmsminHeapSizem
JVM Option Number no+1=-XmxmaxHeapSizem

if it's not there, add them. Don't forget to modify 

JVM Option Count=dword:0005

where you should replace the 0005 with what number you have before + 2

E


-Original Message-
From: Reis, Tom [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 24, 2004 4:46 PM
To: Tomcat Users List (E-mail)
Subject: Tomcat configuration

I am running Tomcat 4.03 on a windows 2K server with JDK1.3.1. I am
confused on configuration and was hoping someone could clarify or point to
documentation on it. I am confused on memory configuration do I change the
memory configuration for java or for Tomcat. I am also not sure how to
change the heap size. Do I put a statement in the server.xml or is it
something else. Is there documentation that tells you how to configure
Tomcat. Thanks.

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

2004-03-24 Thread Adam Brundrett
Hmm...not sure on Windows but on unix you set an environment variable 
called CATALINA_OPTS.  Set the Xmx and Xms parameters to the amount of 
memory you want to dedicate to the heap.  On our web server where we 
have 2GB ram I have:

CATALINA_OPTS=-Xms=750m  -Xmx=750m

Tomcat then picks up this memory option when it fires up.

Reis, Tom wrote:

I am running Tomcat 4.03 on a windows 2K server with JDK1.3.1. I am
confused on configuration and was hoping someone could clarify or point to
documentation on it. I am confused on memory configuration do I change the
memory configuration for java or for Tomcat. I am also not sure how to
change the heap size. Do I put a statement in the server.xml or is it
something else. Is there documentation that tells you how to configure
Tomcat. Thanks.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
***
Adam Brundrett
DBA/Software Engineer
MLC Development
Medical Research Council
Harwell
Oxon.
OX11 0RD
Email: [EMAIL PROTECTED] 
Tel: +44(0)1235 841253
***



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


RE: Tomcat configuration

2004-03-24 Thread Dean Searle
If you want Tomcat to start as a service in Windows 2k you can use this program by 
Davis Boyer called Tomcat Service Manager at 
http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=tcservcfgpage=overview
 I use this for both Tomcat 4.1 and Tomcat 5. This utility also let you set the heap 
size also.

Hope this helps.

Dean


-Original Message-
From: Adam Brundrett [mailto:[EMAIL PROTECTED]
Sent: Wed 3/24/2004 9:59 AM
To: Tomcat Users List
Subject: Re: Tomcat configuration
 
Hmm...not sure on Windows but on unix you set an environment variable 
called CATALINA_OPTS.  Set the Xmx and Xms parameters to the amount of 
memory you want to dedicate to the heap.  On our web server where we 
have 2GB ram I have:

CATALINA_OPTS=-Xms=750m  -Xmx=750m

Tomcat then picks up this memory option when it fires up.

Reis, Tom wrote:

   I am running Tomcat 4.03 on a windows 2K server with JDK1.3.1. I am
confused on configuration and was hoping someone could clarify or point to
documentation on it. I am confused on memory configuration do I change the
memory configuration for java or for Tomcat. I am also not sure how to
change the heap size. Do I put a statement in the server.xml or is it
something else. Is there documentation that tells you how to configure
Tomcat. Thanks.

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

  


-- 
***
Adam Brundrett
DBA/Software Engineer
MLC Development
Medical Research Council
Harwell
Oxon.
OX11 0RD

Email: [EMAIL PROTECTED] 
Tel: +44(0)1235 841253
***



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

2004-03-24 Thread Shapira, Yoav

Howdy,

change the heap size. Do I put a statement in the server.xml or is it
something else. Is there documentation that tells you how to configure
Tomcat. Thanks.

Read the commented part of $CATALINA_HOME/bin/catalina.sh or
catalina.bat that talks about JAVA_OPTS.  It's not done in server.xml.
Yes, there's AMPLE documentation on configuring tomcat:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html.

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 configuration error when displaying default page

2003-07-18 Thread John Turner
You have the ROOT Context disabled in server.xml.

John

On Thu, 17 Jul 2003 21:48:51 -0400, [EMAIL PROTECTED] wrote:

Hi,

I've just installed Tomcat 4.X, RH 9, JDK 1.4.2, Apache 2.X
and with some help from the list have gotten the tomcat process running.
I've set up the server.xml file, tomcat4.conf and web.xml based on online
documentation. When I test by pointing my browser to 
http://localhost:8080 I get a blue ands white page with the text:

-

HTTP Status 500 - No Context configured to process this request

type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context
configured to process this request) that prevented it from fulfilling
this request.
Apache Tomcat/4.1
--
My tomcat logfile has the entry:

[EMAIL PROTECTED] logs]# more localhost_log.2003-07-17.txt
2003-07-17 21:39:12 StandardHost[localhost]: MAPPING configuration error
for request URI /
Can anyone guess what is wrong with my configuration?
I've attached the config files I've edited but the changes have been 
minimal.

Thanks very much for the help .

Jeff



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TomCat configuration

2003-06-16 Thread Jason Bainbridge
On Tue, 17 Jun 2003 02:06, [EMAIL PROTECTED] wrote:
 servlet-mapping
   servlet-namedefault/servlet-name
   url-pattern/*.html/url-pattern
  /servlet-mapping

Tomcat is doing exactly what you are telling it to do with the above, I can't 
see any reason you would want the above mapping unless you were disabling all 
access to .html files or something like that.

Just comment out the above and you should be good to go.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



Re: TomCat configuration

2003-06-16 Thread kurtc
Hello,


On Tue, 17 Jun 2003 02:06, [EMAIL PROTECTED] wrote:
 servlet-mapping
 servlet-namedefault/servlet-name
 url-pattern/*.html/url-pattern
 /servlet-mapping

Tomcat is doing exactly what you are telling it to do with the above, I
can't
see any reason you would want the above mapping unless you were disabling
all
access to .html files or something like that.
Just comment out the above and you should be good to go.

i thought that the default servlet is the servlet that serves static html
files. Removing that mappings does not change the behaviour at all.
If I access any html  file like: http://localhost:8080/file.html i will get
always my servlet responding,  ie my servlet is always invoked, whatever i
write after the '/' char in the URL :|

Any other tips?

luca


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



Re: Tomcat Configuration - mod_jk2

2003-03-26 Thread Michele Neylon :: Blacknight Solutions

Vitor Domingos is rumoured to have said
 Hello.

 I'm trying to get the mod_jk2 connector to work on apache 2.0.44 with
 Tomcat 4.1.18.

 The server.xml is correctly configured and accessing the 80 of the
 /exemples/ directory i get this error on apache error.log

 [Wed Mar 26 11:00:09 2003] [error] channelUn.connect() connect failed
 111 Connection refused
 [Wed Mar 26 11:00:09 2003] [error] ajp13.connect() failed
 ajp13:/usr/local/tomcat/work/jk2.socket
 [Wed Mar 26 11:00:09 2003] [error] ajp13.service() failed to connect
 endpoint errno=111 Connection refused
 [Wed Mar 26 11:00:09 2003] [error] ajp13.service() Error  forwarding
 ajp13:/usr/local/tomcat/work/jk2.socket 1 1
 [Wed Mar 26 11:00:09 2003] [error] mod_jk.handler() Error connecting to
 tomcat 12

 Where can i find some more information about this error ?
Victor

We had very similar problems. What do you have in your workers2.properties ?

Michele


-- 
Mr. Michele Neylon
Blacknight Solutions
http://www.blacknightsolutions.com/
Reseller plans now available




This e-mail messages has been scanned by MailScanner and is believed to be
clean of dangerous content and virus'.
http://www.mailscanner.info


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



Re: Tomcat Configuration - mod_jk2

2003-03-26 Thread Ryan Daly
Keep in mind that what the docs say to put in jk2.properties actually
needs to go in httpd_server_root/conf/workers2.properties.

I discovered this last night after a few hours of trying various things
in jk2.properties.

--

quote who=Vitor Domingos
 Hello.

 I'm trying to get the mod_jk2 connector to work on apache 2.0.44 with
 Tomcat 4.1.18.

 The server.xml is correctly configured and accessing the 80 of the
 /exemples/ directory i get this error on apache error.log

 [Wed Mar 26 11:00:09 2003] [error] channelUn.connect() connect failed
 111 Connection refused
 [Wed Mar 26 11:00:09 2003] [error] ajp13.connect() failed
 ajp13:/usr/local/tomcat/work/jk2.socket
 [Wed Mar 26 11:00:09 2003] [error] ajp13.service() failed to connect
 endpoint errno=111 Connection refused
 [Wed Mar 26 11:00:09 2003] [error] ajp13.service() Error  forwarding
 ajp13:/usr/local/tomcat/work/jk2.socket 1 1
 [Wed Mar 26 11:00:09 2003] [error] mod_jk.handler() Error connecting to
  tomcat 12

 Where can i find some more information about this error ?

 Thanks.
 VD


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


--
Ryan Daly
CTCnet ISP
100 CTC Drive
Johnstown, PA US 15904-1935



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



RE: Tomcat configuration problem: JSPs work, servlets don't

2003-01-22 Thread Turner, John

What error message do you get?

The default Invoker servlet is disabled by default for security reasons in
recent versions of 4.1.x.

John


 -Original Message-
 From: Felicia Neff [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 3:49 PM
 To: Tomcat Users List
 Subject: Tomcat configuration problem: JSPs work, servlets don't
 
 
 I am running Tomcat-4.1.18, Apache-1.3.27, and mod_jk-1.2.0.  
 The problem
 I am having is that while JSPs work, servlets don't.  This is 
 the relevant
 portion of my server.xml file:
   Host name=www.mydomain.org debug=0
appBase=/path/to/files liveDeploy=true
unpackWARs=false autoDeploy=true 
 workDir=/var/tomcat/work
 
 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=/var/tomcat/log  
 prefix=tomcat_access_log.
  suffix=.log
  pattern=common resolveHosts=false/
 
 !-- Tomcat Root Context --
   Context path= docBase=/path/to/files debug=0 
 reloadable=true/
 
   /Host
 
 In /path/to/files, I have:
 hello.jsp
 WEB-INF/classes/HelloServlet.class
 WEB-INF/classes/HelloServlet.java
 
 From what I have read, if I don't have a web.xml in WEB-INF, then the
 default will be used.  Since this is just for testing, I'm 
 hoping that I
 don't need one.  The ultimate goal is to set this up for an 
 isp. so that
 users can put their servlets into place and have them work 
 without having
 the privileges to reload anything.
 Thanks in advance for your help. -- Felicia
 
 ~~
 [EMAIL PROTECTED]
 Panix Staff
 
 --
 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 configuration problem: JSPs work, servlets don't

2003-01-22 Thread Felicia Neff
Woops, I realize that I should have been more specific.  The error I get
is a 404 error.  I'm sure the servlet itself works, because I dropped it
into the examples directory and was able to run it. -- Felicia

On Wed, 22 Jan 2003, Felicia Neff wrote:

 I am running Tomcat-4.1.18, Apache-1.3.27, and mod_jk-1.2.0.  The problem
 I am having is that while JSPs work, servlets don't.  This is the relevant
 portion of my server.xml file:
   Host name=www.mydomain.org debug=0
appBase=/path/to/files liveDeploy=true
unpackWARs=false autoDeploy=true workDir=/var/tomcat/work

 Valve className=org.apache.catalina.valves.AccessLogValve
  directory=/var/tomcat/log  prefix=tomcat_access_log.
  suffix=.log
  pattern=common resolveHosts=false/

 !-- Tomcat Root Context --
   Context path= docBase=/path/to/files debug=0 reloadable=true/

   /Host

 In /path/to/files, I have:
 hello.jsp
 WEB-INF/classes/HelloServlet.class
 WEB-INF/classes/HelloServlet.java

 From what I have read, if I don't have a web.xml in WEB-INF, then the
 default will be used.  Since this is just for testing, I'm hoping that I
 don't need one.  The ultimate goal is to set this up for an isp. so that
 users can put their servlets into place and have them work without having
 the privileges to reload anything.
 Thanks in advance for your help. -- Felicia

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




Re: Tomcat configuration problem: JSPs work, servlets don't

2003-01-22 Thread Felicia Neff
The exact error I get when I try to access
http://www.mydomain.org/servlet/HelloServlet is:

HTTP Status 404 - /servlet/HelloServlet

type Status report

message /servlet/HelloServlet

description The requested resource (/servlet/HelloServlet) is not
available.
Apache Tomcat/4.1.18

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




RE: Tomcat configuration problem: JSPs work, servlets don't

2003-01-22 Thread Turner, John

Sorry, I should have been clearer.  

Have you mapped HelloServlet in web.xml?  You can't just drop a servlet into
a directory anymore, especially the default ROOT directory...the default
Invoker servlet (which used to let you just drop a servlet into a directory
and have it work) is disabled by default for security reasons in recent
versions of 4.1.x.  The examples directory has the Invoker servlet enabled,
that's why it works there and not elsewhere.

If you really must enable the Invoker servlet (not recommended, definitely
not for a production machine, so eventually you will have to understand how
to map it in web.xml anyway so you might as well start now), then edit
CATALINA_HOME/conf/web.xml and enable the following by removing the !--
and the --, then restart Tomcat:

!-- The mapping for the invoker servlet --
!--
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
--

The preferred and recommended method is to explicitly map your servlet in
your application's web.xml file, something like:

servlet
servlet-nameHelloServlet/servlet-name
servlet-class
  path.to.my.class.files.HelloServlet
/servlet-class
/servlet
servlet-mapping
servlet-nameHelloServlet/servlet-name
url-pattern/HelloServlet/url-pattern
/servlet-mapping

For more info check the docs.

John

 -Original Message-
 From: Felicia Neff [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 4:58 PM
 To: Tomcat Users List
 Subject: Re: Tomcat configuration problem: JSPs work, servlets don't
 
 
 The exact error I get when I try to access
 http://www.mydomain.org/servlet/HelloServlet is:
 
 HTTP Status 404 - /servlet/HelloServlet
 
 type Status report
 
 message /servlet/HelloServlet
 
 description The requested resource (/servlet/HelloServlet) is not
 available.
 Apache Tomcat/4.1.18
 
 --
 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 configuration problem: JSPs work, servlets don't

2003-01-22 Thread Felicia Neff
That's exactly what I needed to know.  Thanks. -- Felicia

On Wed, 22 Jan 2003, Turner, John wrote:


 Sorry, I should have been clearer.

 Have you mapped HelloServlet in web.xml?  You can't just drop a servlet into
 a directory anymore, especially the default ROOT directory...the default
 Invoker servlet (which used to let you just drop a servlet into a directory
 and have it work) is disabled by default for security reasons in recent
 versions of 4.1.x.  The examples directory has the Invoker servlet enabled,
 that's why it works there and not elsewhere.

 If you really must enable the Invoker servlet (not recommended, definitely
 not for a production machine, so eventually you will have to understand how
 to map it in web.xml anyway so you might as well start now), then edit
 CATALINA_HOME/conf/web.xml and enable the following by removing the !--
 and the --, then restart Tomcat:

 !-- The mapping for the invoker servlet --
 !--
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 --

 The preferred and recommended method is to explicitly map your servlet in
 your application's web.xml file, something like:

 servlet
 servlet-nameHelloServlet/servlet-name
 servlet-class
   path.to.my.class.files.HelloServlet
 /servlet-class
 /servlet
 servlet-mapping
 servlet-nameHelloServlet/servlet-name
 url-pattern/HelloServlet/url-pattern
 /servlet-mapping

 For more info check the docs.

 John

  -Original Message-
  From: Felicia Neff [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 22, 2003 4:58 PM
  To: Tomcat Users List
  Subject: Re: Tomcat configuration problem: JSPs work, servlets don't
 
 
  The exact error I get when I try to access
  http://www.mydomain.org/servlet/HelloServlet is:
 
  HTTP Status 404 - /servlet/HelloServlet
 
  type Status report
 
  message /servlet/HelloServlet
 
  description The requested resource (/servlet/HelloServlet) is not
  available.
  Apache Tomcat/4.1.18
 
  --
  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]



~~
[EMAIL PROTECTED]
Panix Staff

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




RE: tomcat configuration with apache 1.3.27 ssl

2003-01-21 Thread Helene Figueiredo

Hello,

I've done again my certificate for ssl.
Actually, when I start first tomcat, it's ok. Then I start apache ssl, it's ok.
But when I go to the url :

https://...

It tells me that the file does not exit.
And the message in the error log of apache is :

[Tue Jan 21 13:25:29 2003] [error] [client 152.77.1.237] File does not 
exist: /local/apache/www/webapps/examples/servlet/HelloWorldExample


I know what you can tell me : it's a problem of apache only. For me, I think
that I've forget something in some file of configuration to connect apache 
ssl with
tomcat.

Do you have some idea please ?


You will find below, what I put in my configuration files :

httpsd.conf :

VirtualHost crip-lxagal.ujf-grenoble.fr:443
#SSLDisable
SSLEnable
DirectoryIndex index.php index.php3 index.cgi index.html Welcome.html 
Welcome.phtml
Directory /local/apache/www
Options FollowSymLinks Indexes
AllowOverride none
/Directory

/VirtualHost


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


server.xml :

Server port=8005 shutdown=SHUTDOWN debug=0

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/local/apache/libexec/mod_jk.so /


!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=crip-lxagal.ujf-grenoble.fr 
debug=0

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=/local/apache/libexec/mod_jk.so /

workers.properties :

# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=crip-lxagal.ujf-grenoble.fr
worker.ajp13.type=ajp13
# END workers.properties


Many thanks in advance.

Helene Figueiredo




A 11:14 20/01/2003 -0500, vous avez écrit :

That's an Apache error, not a Tomcat error.  If I had to guess, I would say
there's a problem with either 1) your certificate or 2) Apache can't resolve
that hostname into an IP address.  But, it could easily be something else.

John

 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Monday, January 20, 2003 11:09 AM
 To: Turner, John
 Cc: [EMAIL PROTECTED]
 Subject: RE: tomcat configuration with apache 1.3.27 ssl


 I make the configuration of apache ssl and tomcat with this lines in
 differents configuation files :

 in the httpsd.conf :

 VirtualHost crip-lxagal.ujf-grenoble.fr:443
 #SSLDisable
 SSLEnable
 DirectoryIndex index.php index.php3 index.cgi index.html Welcome.html
 Welcome.phtml
  Directory /local/apache/www
  Options FollowSymLinks Indexes
  AllowOverride none
  /Directory

 /VirtualHost


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

 In the server.xml :

 Server port=8005 shutdown=SHUTDOWN debug=0

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/local/apache/libexec/mod_jk.so /


 !-- Define the top level container in our container hierarchy --
 Engine name=Standalone
 defaultHost=crip-lxagal.ujf-grenoble.fr debug=0

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=/local/apache/libexec/mod_jk.so /

 And in the workers.properties :

 # BEGIN workers.properties
 worker.list=ajp13
 worker.ajp13.port=8009
 # change this line to match apache ServerName and Host name
 in server.xml
 worker.ajp13.host=crip-lxagal.ujf-grenoble.fr
 worker.ajp13.type=ajp13
 # END workers.properties


 When I start tomcat, it's ok at the url :

 http://crip-lxagal.ujf-grenoble.fr:8080

 But when I try to start apache, I have this message in the
 error.log of apache :

 [Mon Jan 20 16:19:44 2003] [crit] Attempt to reinitialise SSL
 for server
 crip-lxagal.ujf-grenoble.fr


 I don't understand what is wrong.
 Have you some idea ?

 Thanks.

 Helene



 A 10:19 16/01/2003 -0500, vous avez écrit :

 The connectors do not use SSL.  If you are using JK or JK2, the
 communications between Apache and Tomcat are in the clear,
 not via SSL.  The
 flow, as I understand it, is like this:
 
 client - SSL - apache - connector - tomcat
 
 The request is encrypted and decrypted by Apache before (and
 after) the
 connector and Tomcat deal with it.
 
 Does that help?  Do you have any error messages, or other
 messages from
 Apache, JK, or Tomcat logs?
 
 John
 
 
   -Original Message-
   From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 16, 2003 10:12 AM
   To: Turner, John
   Cc: [EMAIL PROTECTED]
   Subject: RE: tomcat configuration with apache 1.3.27 ssl
  
  
   We are trying to configure tomcat on :
   operating system : linux redhat 7.3
   JDK : j2sdk1.4.1_01
   OpenSSL : openssl-0.9.6g
   Apache : apache 1.3.27+SSL
   Tomcat : Tomcat 4.1.18
  
   we have generate a certificate with openssl
   we have configure apache with a basic : ./configure, make,
   make install
   we have modified the httpsd.conf to include the certificate ssl
   we have modified the catalina.sh

RE: tomcat configuration with apache 1.3.27 ssl

2003-01-20 Thread Helene Figueiredo
I make the configuration of apache ssl and tomcat with this lines in
differents configuation files :

in the httpsd.conf :

VirtualHost crip-lxagal.ujf-grenoble.fr:443
#SSLDisable
SSLEnable
DirectoryIndex index.php index.php3 index.cgi index.html Welcome.html 
Welcome.phtml
Directory /local/apache/www
Options FollowSymLinks Indexes
AllowOverride none
/Directory

/VirtualHost


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

In the server.xml :

Server port=8005 shutdown=SHUTDOWN debug=0

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/local/apache/libexec/mod_jk.so /


!-- Define the top level container in our container hierarchy --
Engine name=Standalone defaultHost=crip-lxagal.ujf-grenoble.fr debug=0

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true forwardAll=false
modJk=/local/apache/libexec/mod_jk.so /

And in the workers.properties :

# BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=crip-lxagal.ujf-grenoble.fr
worker.ajp13.type=ajp13
# END workers.properties


When I start tomcat, it's ok at the url :

http://crip-lxagal.ujf-grenoble.fr:8080

But when I try to start apache, I have this message in the
error.log of apache :

[Mon Jan 20 16:19:44 2003] [crit] Attempt to reinitialise SSL for server 
crip-lxagal.ujf-grenoble.fr


I don't understand what is wrong.
Have you some idea ?

Thanks.

Helene



A 10:19 16/01/2003 -0500, vous avez écrit :

The connectors do not use SSL.  If you are using JK or JK2, the
communications between Apache and Tomcat are in the clear, not via SSL.  The
flow, as I understand it, is like this:

client - SSL - apache - connector - tomcat

The request is encrypted and decrypted by Apache before (and after) the
connector and Tomcat deal with it.

Does that help?  Do you have any error messages, or other messages from
Apache, JK, or Tomcat logs?

John


 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 10:12 AM
 To: Turner, John
 Cc: [EMAIL PROTECTED]
 Subject: RE: tomcat configuration with apache 1.3.27 ssl


 We are trying to configure tomcat on :
 operating system : linux redhat 7.3
 JDK : j2sdk1.4.1_01
 OpenSSL : openssl-0.9.6g
 Apache : apache 1.3.27+SSL
 Tomcat : Tomcat 4.1.18

 we have generate a certificate with openssl
 we have configure apache with a basic : ./configure, make,
 make install
 we have modified the httpsd.conf to include the certificate ssl
 we have modified the catalina.sh to include the java home
 when we use the connector no-ssl, tomcat is ok on the url http://
 but when we use the connector ssl, there is no tomcat at the url ...

 Do you have an idea ???

 Many thanks.




 A 08:06 16/01/2003 -0500, vous avez écrit :

 Please be more specific.  What problems are you experiencing?  What
 connector are you using?  What is your configuration,
 operating system, JDK
 version, etc. etc.?
 
 John
 
 
   -Original Message-
   From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 16, 2003 6:57 AM
   To: [EMAIL PROTECTED]
   Subject: tomcat configuration with apache 1.3.27 ssl
  
  
   Hi,
  
   Can someone give me an example of tomcat configuration with
   apache 1.3.27 ssl ?
   Our apache ssl configuration is ok.
   Our tomcat configuration without apache ssl is ok.
   But we're not able to integrate both.
  
   Thanks.
  
  
   ___
  
   Helene FIGUEIREDO
   CRIP
   Universite Joseph Fourier - Grenoble 1
   BP 53
   38041 Grenoble cedex 9
   Mail : [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: tomcat configuration with apache 1.3.27 ssl

2003-01-17 Thread Dan Finkelstein
I am trying to do the same thing -- getting SSL to work to Tomcat 4.06 from 
Apache 1.3 w/OpenSsl and mod_jk ajp13 1.2.  I think I'm missing the missing 
1-2-3 steps ... or approach.  I have everything working except for the ssl 
communication to Tomcat.

* What changes are needed to httpd.conf?
* What changes to openssl?
* How to configure the connector tag in servlet.xml?

Thanks for any ideas in advance,
Dan

At 04:11 PM 1/16/2003 +0100, you wrote:
We are trying to configure tomcat on :
operating system : linux redhat 7.3
JDK : j2sdk1.4.1_01
OpenSSL : openssl-0.9.6g
Apache : apache 1.3.27+SSL
Tomcat : Tomcat 4.1.18

we have generate a certificate with openssl
we have configure apache with a basic : ./configure, make, make install
we have modified the httpsd.conf to include the certificate ssl
we have modified the catalina.sh to include the java home
when we use the connector no-ssl, tomcat is ok on the url http://
but when we use the connector ssl, there is no tomcat at the url ...

Do you have an idea ???

Many thanks.




A 08:06 16/01/2003 -0500, vous avez écrit :


Please be more specific.  What problems are you experiencing?  What
connector are you using?  What is your configuration, operating system, JDK
version, etc. etc.?

John


 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration with apache 1.3.27 ssl


 Hi,

 Can someone give me an example of tomcat configuration with
 apache 1.3.27 ssl ?
 Our apache ssl configuration is ok.
 Our tomcat configuration without apache ssl is ok.
 But we're not able to integrate both.

 Thanks.


 ___

 Helene FIGUEIREDO
 CRIP
 Universite Joseph Fourier - Grenoble 1
 BP 53
 38041 Grenoble cedex 9
 Mail : [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: tomcat configuration with apache 1.3.27 ssl

2003-01-16 Thread Turner, John

Please be more specific.  What problems are you experiencing?  What
connector are you using?  What is your configuration, operating system, JDK
version, etc. etc.?

John


 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration with apache 1.3.27 ssl
 
 
 Hi,
 
 Can someone give me an example of tomcat configuration with 
 apache 1.3.27 ssl ?
 Our apache ssl configuration is ok.
 Our tomcat configuration without apache ssl is ok.
 But we're not able to integrate both.
 
 Thanks.
 
 
 ___
 
 Helene FIGUEIREDO
 CRIP
 Universite Joseph Fourier - Grenoble 1
 BP 53
 38041 Grenoble cedex 9
 Mail : [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: tomcat configuration with apache 1.3.27 ssl

2003-01-16 Thread Helene Figueiredo
We are trying to configure tomcat on :
operating system : linux redhat 7.3
JDK : j2sdk1.4.1_01
OpenSSL : openssl-0.9.6g
Apache : apache 1.3.27+SSL
Tomcat : Tomcat 4.1.18

we have generate a certificate with openssl
we have configure apache with a basic : ./configure, make, make install
we have modified the httpsd.conf to include the certificate ssl
we have modified the catalina.sh to include the java home
when we use the connector no-ssl, tomcat is ok on the url http://
but when we use the connector ssl, there is no tomcat at the url ...

Do you have an idea ???

Many thanks.




A 08:06 16/01/2003 -0500, vous avez écrit :


Please be more specific.  What problems are you experiencing?  What
connector are you using?  What is your configuration, operating system, JDK
version, etc. etc.?

John


 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration with apache 1.3.27 ssl


 Hi,

 Can someone give me an example of tomcat configuration with
 apache 1.3.27 ssl ?
 Our apache ssl configuration is ok.
 Our tomcat configuration without apache ssl is ok.
 But we're not able to integrate both.

 Thanks.


 ___

 Helene FIGUEIREDO
 CRIP
 Universite Joseph Fourier - Grenoble 1
 BP 53
 38041 Grenoble cedex 9
 Mail : [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: tomcat configuration with apache 1.3.27 ssl

2003-01-16 Thread Lajos Moczar
Helene -

Are you trying to access Tomcat via Apache SSL or TomcatSSL directly? 
There is a difference. If you are 'hiding' Tomcat behind ApacheSSL, you 
obviously need to use a connector like mod_jk and then define the 
JkMounts in the SSL virtual host in httpd.conf.

If this doesn't help, try posting the relevant sections of httpd.conf. 
Also, tell us which of the above scenarios you are trying to support. 
Finally, I have some Flashguides at www.galatea.com on the subject that 
might help.

Regards,

Lajos


Helene Figueiredo wrote:
We are trying to configure tomcat on :
operating system : linux redhat 7.3
JDK : j2sdk1.4.1_01
OpenSSL : openssl-0.9.6g
Apache : apache 1.3.27+SSL
Tomcat : Tomcat 4.1.18

we have generate a certificate with openssl
we have configure apache with a basic : ./configure, make, make install
we have modified the httpsd.conf to include the certificate ssl
we have modified the catalina.sh to include the java home
when we use the connector no-ssl, tomcat is ok on the url http://
but when we use the connector ssl, there is no tomcat at the url ...

Do you have an idea ???

Many thanks.




A 08:06 16/01/2003 -0500, vous avez écrit :


Please be more specific.  What problems are you experiencing?  What
connector are you using?  What is your configuration, operating 
system, JDK
version, etc. etc.?

John


 -Original Message-
 From: Helene Figueiredo [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 16, 2003 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration with apache 1.3.27 ssl


 Hi,

 Can someone give me an example of tomcat configuration with
 apache 1.3.27 ssl ?
 Our apache ssl configuration is ok.
 Our tomcat configuration without apache ssl is ok.
 But we're not able to integrate both.

 Thanks.


 ___

 Helene FIGUEIREDO
 CRIP
 Universite Joseph Fourier - Grenoble 1
 BP 53
 38041 Grenoble cedex 9
 Mail : [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]




--



   Lajos Moczar
  
Open Source Support, Consulting and Training

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




RE: tomcat configuration for a newbie

2002-11-07 Thread ben f

Hari
Good point, I see that my url-pattern entry of phpserver was incorrect. I've changed 
this now to your recommendation of:
servlet-namehelloworld/servlet-name
url-pattern/helloworld/url-pattern
I then try http://localhost:8080/phpserver/servlet/helloworld but I still get a 404 
error.
Does anyone else have ideas about this? I have a feeling my context entry in 
conf\server.xml is wrong.
To recap:
Context path:
Context path=/phpserver docBase=phpserver
debug=99 reloadable=true crossContext=false
  Logger className=org.apache.catalina.logger.FileLogger verbosity=4
 prefix=phpserver_log. suffix=.txt
  timestamp=true//Context

webapps\phpserver\WEB-INF\web.xml:

web-app

  servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
  /servlet

  servlet
servlet-namehelloworld/servlet-name
servlet-classHelloWorldExample/servlet-class
  /servlet

  servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/helloworld/url-pattern
  /servlet-mapping

/web-app

Many thanks..
Ben




-
Get a bigger mailbox -- choose a size that fits your needs.



Re: tomcat configuration for a newbie

2002-11-07 Thread Kwok Peng Tuck
Make sure your servlets are either in /WEB-INF/lib (if in a jar ) or 
/WEB-INF/classes/ (if as .class)

ben f wrote:

Hari
Good point, I see that my url-pattern entry of phpserver was incorrect. I've changed this now to your recommendation of:
servlet-namehelloworld/servlet-name
url-pattern/helloworld/url-pattern
I then try http://localhost:8080/phpserver/servlet/helloworld but I still get a 404 error.
Does anyone else have ideas about this? I have a feeling my context entry in conf\server.xml is wrong.
To recap:
Context path:
Context path=/phpserver docBase=phpserver
debug=99 reloadable=true crossContext=false
 Logger className=org.apache.catalina.logger.FileLogger verbosity=4
prefix=phpserver_log. suffix=.txt
 timestamp=true//Context

webapps\phpserver\WEB-INF\web.xml:

web-app

 servlet
   servlet-namephp/servlet-name
   servlet-classnet.php.servlet/servlet-class
 /servlet

 servlet
   servlet-namehelloworld/servlet-name
   servlet-classHelloWorldExample/servlet-class
 /servlet

 servlet-mapping
   servlet-namephp/servlet-name
   url-pattern*.php/url-pattern
 /servlet-mapping

 servlet-mapping
   servlet-namehelloworld/servlet-name
   url-pattern/helloworld/url-pattern
 /servlet-mapping

/web-app

Many thanks..
Ben




-
Get a bigger mailbox -- choose a size that fits your needs.

 




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: tomcat configuration for a newbie

2002-11-07 Thread ben f

Kwok
Thanks for the reply. I've made some progress since I mailed. I put the servlet 
HelloWorldExample.class in webapps\phpserver\WEB-INF\classes then opened up 
http://localhost:8080/phpserver/helloworld (using the web.xml described in my last 
post). I got the following:
java.util.MissingResourceException: Can't find bundle for base name LocalStrings, 
locale en_GB
I assume I need to move something across from the examples directory into 
WEB-INF/class or WEB-INF/lib..I'll look into this.
**Also, is there anyone out there who has sucessfully deployed a tomcat based webapp 
that runs php as a servlet** If so, please supply version info.
Thanks
Ben
 Kwok Peng Tuck [EMAIL PROTECTED] wrote:Make sure your servlets are either in 
/WEB-INF/lib (if in a jar ) or 
/WEB-INF/classes/ (if as .class)

ben f wrote:

Hari
Good point, I see that my url-pattern entry of phpserver was incorrect. I've changed 
this now to your recommendation of:
helloworld
/helloworld
I then try http://localhost:8080/phpserver/servlet/helloworld but I still get a 404 
error.
Does anyone else have ideas about this? I have a feeling my context entry in 
conf\server.xml is wrong.
To recap:
Context path:
debug=99 reloadable=true crossContext=false
  prefix=phpserver_log. suffix=.txt
 timestamp=true/

webapps\phpserver\WEB-INF\web.xml:



 
 php
 net.php.servlet
 

 
 helloworld
 HelloWorldExample
 

 
 php
 *.php
 

 
 helloworld
 /helloworld
 



Many thanks..
Ben




-
Get a bigger mailbox -- choose a size that fits your needs.

 




--
To unsubscribe, e-mail: 
For additional commands, e-mail: 




-
Get a bigger mailbox -- choose a size that fits your needs.



Re: tomcat configuration for a newbie

2002-11-07 Thread karthik_s
In order to access your helloworld servlet using the url pattern:

try with the following request:
http://localhost:8080/phpserver/helloworld

with regards,
karthik.

- Original Message -
From: ben f [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 07, 2002 2:53 PM
Subject: RE: tomcat configuration for a newbie



 Hari
 Good point, I see that my url-pattern entry of phpserver was incorrect.
I've changed this now to your recommendation of:
 servlet-namehelloworld/servlet-name
 url-pattern/helloworld/url-pattern
 I then try http://localhost:8080/phpserver/servlet/helloworld but I still
get a 404 error.
 Does anyone else have ideas about this? I have a feeling my context entry
in conf\server.xml is wrong.
 To recap:
 Context path:
 Context path=/phpserver docBase=phpserver
 debug=99 reloadable=true crossContext=false
   Logger className=org.apache.catalina.logger.FileLogger verbosity=4
  prefix=phpserver_log. suffix=.txt
   timestamp=true//Context

 webapps\phpserver\WEB-INF\web.xml:

 web-app

   servlet
 servlet-namephp/servlet-name
 servlet-classnet.php.servlet/servlet-class
   /servlet

   servlet
 servlet-namehelloworld/servlet-name
 servlet-classHelloWorldExample/servlet-class
   /servlet

   servlet-mapping
 servlet-namephp/servlet-name
 url-pattern*.php/url-pattern
   /servlet-mapping

   servlet-mapping
 servlet-namehelloworld/servlet-name
 url-pattern/helloworld/url-pattern
   /servlet-mapping

 /web-app

 Many thanks..
 Ben




 -
 Get a bigger mailbox -- choose a size that fits your needs.




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat configuration for a newbie

2002-11-07 Thread Turner, John

Have you checked the docs?  How to install servlets is covered there.  Might
save you some time vs. trial-and-error.

There is the Application Develpoer's Guide:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html

... and the ClassLoader HOWTO:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html

John

 -Original Message-
 From: ben f [mailto:ben_m_f;yahoo.co.uk]
 Sent: Thursday, November 07, 2002 4:23 AM
 To: Tomcat Users List
 Subject: RE: tomcat configuration for a newbie
 
 
 
 Hari
 Good point, I see that my url-pattern entry of phpserver was 
 incorrect. I've changed this now to your recommendation of:
 servlet-namehelloworld/servlet-name
 url-pattern/helloworld/url-pattern
 I then try http://localhost:8080/phpserver/servlet/helloworld 
 but I still get a 404 error.
 Does anyone else have ideas about this? I have a feeling my 
 context entry in conf\server.xml is wrong.
 To recap:
 Context path:
 Context path=/phpserver docBase=phpserver
 debug=99 reloadable=true crossContext=false
   Logger className=org.apache.catalina.logger.FileLogger 
 verbosity=4
  prefix=phpserver_log. suffix=.txt
   timestamp=true//Context
 
 webapps\phpserver\WEB-INF\web.xml:
 
 web-app
 
   servlet
 servlet-namephp/servlet-name
 servlet-classnet.php.servlet/servlet-class
   /servlet
 
   servlet
 servlet-namehelloworld/servlet-name
 servlet-classHelloWorldExample/servlet-class
   /servlet
 
   servlet-mapping
 servlet-namephp/servlet-name
 url-pattern*.php/url-pattern
   /servlet-mapping
 
   servlet-mapping
 servlet-namehelloworld/servlet-name
 url-pattern/helloworld/url-pattern
   /servlet-mapping
 
 /web-app
 
 Many thanks..
 Ben
 
 
 
 
 -
 Get a bigger mailbox -- choose a size that fits your needs.
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat configuration for a newbie

2002-11-06 Thread Arthur Danekyants
try localhost:8080, which is a default for Tomcat

-Original Message-
From: ben f [mailto:ben_m_f;yahoo.co.uk]
Sent: Wednesday, November 06, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: tomcat configuration for a newbie



Hi

I am trying to get tomcat to work but unfortunately I am not getting
far.

Tomcat version is 4.1.12

I have created a directory under webapps called phpserver. This
directory is intended to serve php pages using php as a servlet from an
NT 4.0 machine. I will go onto that once I have the basic config up and
running.

I've written a web.xml file and put it under phpserver\WEB-INF:

web-app

  servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
  /servlet

  servlet
servlet-namehelloworld/servlet-name
servlet-classHelloWorldExample/servlet-class
  /servlet

  servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/phpserver/url-pattern
  /servlet-mapping

/web-app

I've added the following context to the default server.xml under conf\:

Context path=/phpserver docBase=phpserver
debug=99 reloadable=true crossContext=false
  Logger className=org.apache.catalina.logger.FileLogger
verbosity=4
 prefix=phpserver_log. suffix=.txt
  timestamp=true/

I copied the example HelloWorldExample.class across to the directorty
\webapps\phpserver\WEB-INF\classes and restarted tomcat.

I then entered the URL
http://localhost/phpserver/servlet/HelloWorldExample into my browser but
I get a 404 resource not found.

%TOMCAT_HOME%, %JAVA_HOME% and %CATALINA_HOME% are to my knowledge all
correct.

I've tried permutations on a theme for the entries in server.xml and
web.xml (under phpserver\WEB-INF) but I've hit a brick wall here. I have
read many docs (official and not official) and have learnt a lot but
somewhere I'm missing something obvisous.

Can anyone please help me out with this issue??

Thanks

Ben




-
Get a bigger mailbox -- choose a size that fits your needs.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat configuration for a newbie

2002-11-06 Thread Hari Venkatesan
Try this

servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/helloworld/url-pattern
  /servlet-mapping

http://localhost:8080/phpserver/helloworld

Hari Venkatesan
Performance Food Group
Phone : 804 484 6263


-Original Message-
From: Arthur Danekyants [mailto:ADanekyants;ctdi.com] 
Sent: Wednesday, November 06, 2002 4:31 PM
To: 'Tomcat Users List'
Subject: RE: tomcat configuration for a newbie

try localhost:8080, which is a default for Tomcat

-Original Message-
From: ben f [mailto:ben_m_f;yahoo.co.uk]
Sent: Wednesday, November 06, 2002 10:06 AM
To: [EMAIL PROTECTED]
Subject: tomcat configuration for a newbie



Hi

I am trying to get tomcat to work but unfortunately I am not getting
far.

Tomcat version is 4.1.12

I have created a directory under webapps called phpserver. This
directory is intended to serve php pages using php as a servlet from an
NT 4.0 machine. I will go onto that once I have the basic config up and
running.

I've written a web.xml file and put it under phpserver\WEB-INF:

web-app

  servlet
servlet-namephp/servlet-name
servlet-classnet.php.servlet/servlet-class
  /servlet

  servlet
servlet-namehelloworld/servlet-name
servlet-classHelloWorldExample/servlet-class
  /servlet

  servlet-mapping
servlet-namephp/servlet-name
url-pattern*.php/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern/phpserver/url-pattern
  /servlet-mapping

/web-app

I've added the following context to the default server.xml under conf\:

Context path=/phpserver docBase=phpserver
debug=99 reloadable=true crossContext=false
  Logger className=org.apache.catalina.logger.FileLogger
verbosity=4
 prefix=phpserver_log. suffix=.txt
  timestamp=true/

I copied the example HelloWorldExample.class across to the directorty
\webapps\phpserver\WEB-INF\classes and restarted tomcat.

I then entered the URL
http://localhost/phpserver/servlet/HelloWorldExample into my browser but
I get a 404 resource not found.

%TOMCAT_HOME%, %JAVA_HOME% and %CATALINA_HOME% are to my knowledge all
correct.

I've tried permutations on a theme for the entries in server.xml and
web.xml (under phpserver\WEB-INF) but I've hit a brick wall here. I have
read many docs (official and not official) and have learnt a lot but
somewhere I'm missing something obvisous.

Can anyone please help me out with this issue??

Thanks

Ben




-
Get a bigger mailbox -- choose a size that fits your needs.


--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: tomcat configuration for a newbie

2002-11-06 Thread Turner, John

And you might want to read the docs, like the Application Developer's Guide:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

And the ClassLoader HOWTO:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

John


 -Original Message-
 From: Hari Venkatesan [mailto:hvenkatesan;pfgc.com]
 Sent: Wednesday, November 06, 2002 1:35 PM
 To: Tomcat Users List
 Subject: RE: tomcat configuration for a newbie
 
 
 Try this
 
 servlet-mapping
 servlet-namehelloworld/servlet-name
 url-pattern/helloworld/url-pattern
   /servlet-mapping
 
 http://localhost:8080/phpserver/helloworld
 
 Hari Venkatesan
 Performance Food Group
 Phone : 804 484 6263
 
 
 -Original Message-
 From: Arthur Danekyants [mailto:ADanekyants;ctdi.com] 
 Sent: Wednesday, November 06, 2002 4:31 PM
 To: 'Tomcat Users List'
 Subject: RE: tomcat configuration for a newbie
 
 try localhost:8080, which is a default for Tomcat
 
 -Original Message-
 From: ben f [mailto:ben_m_f;yahoo.co.uk]
 Sent: Wednesday, November 06, 2002 10:06 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration for a newbie
 
 
 
 Hi
 
 I am trying to get tomcat to work but unfortunately I am not getting
 far.
 
 Tomcat version is 4.1.12
 
 I have created a directory under webapps called phpserver. This
 directory is intended to serve php pages using php as a 
 servlet from an
 NT 4.0 machine. I will go onto that once I have the basic 
 config up and
 running.
 
 I've written a web.xml file and put it under phpserver\WEB-INF:
 
 web-app
 
   servlet
 servlet-namephp/servlet-name
 servlet-classnet.php.servlet/servlet-class
   /servlet
 
   servlet
 servlet-namehelloworld/servlet-name
 servlet-classHelloWorldExample/servlet-class
   /servlet
 
   servlet-mapping
 servlet-namephp/servlet-name
 url-pattern*.php/url-pattern
   /servlet-mapping
 
   servlet-mapping
 servlet-namehelloworld/servlet-name
 url-pattern/phpserver/url-pattern
   /servlet-mapping
 
 /web-app
 
 I've added the following context to the default server.xml 
 under conf\:
 
 Context path=/phpserver docBase=phpserver
 debug=99 reloadable=true crossContext=false
   Logger className=org.apache.catalina.logger.FileLogger
 verbosity=4
  prefix=phpserver_log. suffix=.txt
   timestamp=true/
 
 I copied the example HelloWorldExample.class across to the directorty
 \webapps\phpserver\WEB-INF\classes and restarted tomcat.
 
 I then entered the URL
 http://localhost/phpserver/servlet/HelloWorldExample into my 
 browser but
 I get a 404 resource not found.
 
 %TOMCAT_HOME%, %JAVA_HOME% and %CATALINA_HOME% are to my knowledge all
 correct.
 
 I've tried permutations on a theme for the entries in server.xml and
 web.xml (under phpserver\WEB-INF) but I've hit a brick wall 
 here. I have
 read many docs (official and not official) and have learnt a lot but
 somewhere I'm missing something obvisous.
 
 Can anyone please help me out with this issue??
 
 Thanks
 
 Ben
 
 
 
 
 -
 Get a bigger mailbox -- choose a size that fits your needs.
 
 
 --
 To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat configuration question + Apache

2002-03-29 Thread Carlos A . Díaz

If I set the Tomcat port to 80 = I don´t need Apache.
Is necesary have Apache wiht Tomcat?.

regards
c.
 -Mensaje original-
 De: yilmaz [mailto:[EMAIL PROTECTED]]
 Enviado el: jueves, 28 de marzo de 2002 21:18
 Para: Tomcat Users List
 Asunto: Re: Tomcat configuration question


 Merhaba Ibrahim,
 By default HTTP runs on port 80,
 so if you set port number for tomcat to 80, you
 won't need to add port number to the URL.
 The browser will automatically assume it's port number 80.
 Hope it helps
 Regards :)
 - Original Message -
 From: Ibrahim Beyazit [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, March 29, 2002 4:38 AM
 Subject: Re: Tomcat configuration question


  Mine was already 8080 when installed. I still have
 to put 8080 on URL.
  (www.company.com:8080) to get to the home page. How
 can I configure it so
 I
  don't need to put that 8080 on the URL. Maybe this
 one is clearer.
 
  Thanks.
 
  - Original Message -
  From: Dominic Parry [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, March 27, 2002 11:56 PM
  Subject: Re: Tomcat configuration question
 
 
   Hi
  
   find the following section in server.xml and
 change the port:
  
Connector
 className=org.apache.catalina.connector.http.HttpConnector
  port=8080 minProcessors=5
 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0
 connectionTimeout=6/
  
   to -
  
Connector
 className=org.apache.catalina.connector.http.HttpConnector
  port=80 minProcessors=5
 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0
 connectionTimeout=6/
  
  
   hope this helps. Server.xml should be in your conf
 directory in tomcat
  home.
  
   cheers
  
  
   Dominic Parry
   B.Sc (Information Systems, Computer Science)
   B.Sc (Hons) Computer Science
   Rhodes University
   - Original Message -
   From: Rohit Agarwal [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Thursday, March 28, 2002 9:53 AM
   Subject: Re: Tomcat configuration question
  
  
I have the same question, if somebody can help,
 that would be great.
   Thanks.
   
Rohit
- Original Message -
From: Ibrahim Beyazit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 6:47 PM
Subject: Tomcat configuration question
   
   
How would I configure Tomcat so that the default
 URL can be
   www.company.com
instead of localhost:8080? I got the domain part
 covered. (i.e I got
www.company.com:8080 working. But I am having
 problems with getting
 rid
  of
8080. Any help will be appreciated
   
   
--
To unsubscribe:
 mailto:[EMAIL PROTECTED]
For additional commands:
 mailto:[EMAIL PROTECTED]
Troubles with the list:
 mailto:[EMAIL PROTECTED]
   
   
  
  
   --
   To unsubscribe:
 mailto:[EMAIL PROTECTED]
   For additional commands:
 mailto:[EMAIL PROTECTED]
   Troubles with the list:
 mailto:[EMAIL PROTECTED]
  
  
 
  --
  To unsubscribe:
 mailto:[EMAIL PROTECTED]
  For additional commands:
 mailto:[EMAIL PROTECTED]
  Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe:
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat configuration question + Apache

2002-03-29 Thread Anthony Eden

No, it is not necessary to have Apache with Tomcat.

Sincerely,
Anthony Eden

 -Original Message-
 From: Carlos A. Díaz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 29, 2002 8:41 AM
 To: Tomcat Users List
 Subject: RE: Tomcat configuration question + Apache


 If I set the Tomcat port to 80 = I don´t need Apache.
 Is necesary have Apache wiht Tomcat?.

 regards
 c.
  -Mensaje original-
  De: yilmaz [mailto:[EMAIL PROTECTED]]
  Enviado el: jueves, 28 de marzo de 2002 21:18
  Para: Tomcat Users List
  Asunto: Re: Tomcat configuration question
 
 
  Merhaba Ibrahim,
  By default HTTP runs on port 80,
  so if you set port number for tomcat to 80, you
  won't need to add port number to the URL.
  The browser will automatically assume it's port number 80.
  Hope it helps
  Regards :)
  - Original Message -
  From: Ibrahim Beyazit [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Friday, March 29, 2002 4:38 AM
  Subject: Re: Tomcat configuration question
 
 
   Mine was already 8080 when installed. I still have
  to put 8080 on URL.
   (www.company.com:8080) to get to the home page. How
  can I configure it so
  I
   don't need to put that 8080 on the URL. Maybe this
  one is clearer.
  
   Thanks.
  
   - Original Message -
   From: Dominic Parry [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Wednesday, March 27, 2002 11:56 PM
   Subject: Re: Tomcat configuration question
  
  
Hi
   
find the following section in server.xml and
  change the port:
   
 Connector
  className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5
  maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0
  connectionTimeout=6/
   
to -
   
 Connector
  className=org.apache.catalina.connector.http.HttpConnector
   port=80 minProcessors=5
  maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0
  connectionTimeout=6/
   
   
hope this helps. Server.xml should be in your conf
  directory in tomcat
   home.
   
cheers
   
   
Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message -
From: Rohit Agarwal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 28, 2002 9:53 AM
Subject: Re: Tomcat configuration question
   
   
 I have the same question, if somebody can help,
  that would be great.
Thanks.

 Rohit
 - Original Message -
 From: Ibrahim Beyazit [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 27, 2002 6:47 PM
 Subject: Tomcat configuration question


 How would I configure Tomcat so that the default
  URL can be
www.company.com
 instead of localhost:8080? I got the domain part
  covered. (i.e I got
 www.company.com:8080 working. But I am having
  problems with getting
  rid
   of
 8080. Any help will be appreciated


 --
 To unsubscribe:
  mailto:[EMAIL PROTECTED]
 For additional commands:
  mailto:[EMAIL PROTECTED]
 Troubles with the list:
  mailto:[EMAIL PROTECTED]


   
   
--
To unsubscribe:
  mailto:[EMAIL PROTECTED]
For additional commands:
  mailto:[EMAIL PROTECTED]
Troubles with the list:
  mailto:[EMAIL PROTECTED]
   
   
  
   --
   To unsubscribe:
  mailto:[EMAIL PROTECTED]
   For additional commands:
  mailto:[EMAIL PROTECTED]
   Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
  
 
 
 
  --
  To unsubscribe:
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat configuration question

2002-03-29 Thread Ibrahim Beyazit

Sagol Yilmaz. Bende Apache varda 80 de onun icin 8080 yi Tomcat de
kullaniyorum. Benim sorunum aslinda 8080 yi tutum ama URL de gostermemkti.
Ama anladimki 80i kullanmadikca explicit bir sekilde port no yu URL de
yazmak gerekiyormus. Tesekkurler.
- Original Message -
From: yilmaz [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 28, 2002 7:18 PM
Subject: Re: Tomcat configuration question


 Merhaba Ibrahim,
 By default HTTP runs on port 80,
 so if you set port number for tomcat to 80, you
 won't need to add port number to the URL.
 The browser will automatically assume it's port number 80.
 Hope it helps
 Regards :)
 - Original Message -
 From: Ibrahim Beyazit [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, March 29, 2002 4:38 AM
 Subject: Re: Tomcat configuration question


  Mine was already 8080 when installed. I still have to put 8080 on URL.
  (www.company.com:8080) to get to the home page. How can I configure it
so
 I
  don't need to put that 8080 on the URL. Maybe this one is clearer.
 
  Thanks.
 
  - Original Message -
  From: Dominic Parry [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Wednesday, March 27, 2002 11:56 PM
  Subject: Re: Tomcat configuration question
 
 
   Hi
  
   find the following section in server.xml and change the port:
  
Connector
className=org.apache.catalina.connector.http.HttpConnector
  port=8080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=6/
  
   to -
  
Connector
className=org.apache.catalina.connector.http.HttpConnector
  port=80 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=6/
  
  
   hope this helps. Server.xml should be in your conf directory in tomcat
  home.
  
   cheers
  
  
   Dominic Parry
   B.Sc (Information Systems, Computer Science)
   B.Sc (Hons) Computer Science
   Rhodes University
   - Original Message -
   From: Rohit Agarwal [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Thursday, March 28, 2002 9:53 AM
   Subject: Re: Tomcat configuration question
  
  
I have the same question, if somebody can help, that would be great.
   Thanks.
   
Rohit
- Original Message -
From: Ibrahim Beyazit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 6:47 PM
Subject: Tomcat configuration question
   
   
How would I configure Tomcat so that the default URL can be
   www.company.com
instead of localhost:8080? I got the domain part covered. (i.e I got
www.company.com:8080 working. But I am having problems with getting
 rid
  of
8080. Any help will be appreciated
   
   
--
To unsubscribe:
mailto:[EMAIL PROTECTED]
For additional commands:
mailto:[EMAIL PROTECTED]
Troubles with the list:
mailto:[EMAIL PROTECTED]
   
   
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat configuration question

2002-03-28 Thread Gurmeet

change the port to 80 from 8080 in server.xml;

 Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

Gurmeet

-Original Message-
From: Rohit Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:23 PM
To: Tomcat Users List
Subject: Re: Tomcat configuration question


I have the same question, if somebody can help, that would be great. Thanks.

Rohit
- Original Message -
From: Ibrahim Beyazit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 6:47 PM
Subject: Tomcat configuration question


How would I configure Tomcat so that the default URL can be www.company.com
instead of localhost:8080? I got the domain part covered. (i.e I got
www.company.com:8080 working. But I am having problems with getting rid of
8080. Any help will be appreciated


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat configuration question

2002-03-28 Thread Ibrahim Beyazit

Mine was already 8080 when installed. I still have to put 8080 on URL.
(www.company.com:8080) to get to the home page. How can I configure it so I
don't need to put that 8080 on the URL. Maybe this one is clearer.

Thanks.

- Original Message -
From: Dominic Parry [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 11:56 PM
Subject: Re: Tomcat configuration question


 Hi

 find the following section in server.xml and change the port:

  Connector className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/

 to -

  Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/


 hope this helps. Server.xml should be in your conf directory in tomcat
home.

 cheers


 Dominic Parry
 B.Sc (Information Systems, Computer Science)
 B.Sc (Hons) Computer Science
 Rhodes University
 - Original Message -
 From: Rohit Agarwal [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, March 28, 2002 9:53 AM
 Subject: Re: Tomcat configuration question


  I have the same question, if somebody can help, that would be great.
 Thanks.
 
  Rohit
  - Original Message -
  From: Ibrahim Beyazit [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 27, 2002 6:47 PM
  Subject: Tomcat configuration question
 
 
  How would I configure Tomcat so that the default URL can be
 www.company.com
  instead of localhost:8080? I got the domain part covered. (i.e I got
  www.company.com:8080 working. But I am having problems with getting rid
of
  8080. Any help will be appreciated
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat configuration question

2002-03-28 Thread Ganey, Todd

Dominic did tell you how to do this.  To quote from him find the following
section in server.xml and change the port: where he means the port number
in the text Connector
className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/

 to -  as you will notice the number associated with the port is 8080 so
he tells you to change it to 

Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/ 

where you will notice that the number is now just 80 which is the default
HTTP port, hence you don't have to include the port in the URL.

server.xml is generally found in the tomcat_home/conf directory.   The
slash would be in a different direction for windows.

Todd

-Original Message-
From: Ibrahim Beyazit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 12:38 PM
To: Tomcat Users List
Subject: Re: Tomcat configuration question


Mine was already 8080 when installed. I still have to put 8080 on URL.
(www.company.com:8080) to get to the home page. How can I configure it so I
don't need to put that 8080 on the URL. Maybe this one is clearer.

Thanks.

- Original Message -
From: Dominic Parry [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 11:56 PM
Subject: Re: Tomcat configuration question


 Hi

 find the following section in server.xml and change the port:

  Connector className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/

 to -

  Connector className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/


 hope this helps. Server.xml should be in your conf directory in tomcat
home.

 cheers


 Dominic Parry
 B.Sc (Information Systems, Computer Science)
 B.Sc (Hons) Computer Science
 Rhodes University
 - Original Message -
 From: Rohit Agarwal [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, March 28, 2002 9:53 AM
 Subject: Re: Tomcat configuration question


  I have the same question, if somebody can help, that would be great.
 Thanks.
 
  Rohit
  - Original Message -
  From: Ibrahim Beyazit [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, March 27, 2002 6:47 PM
  Subject: Tomcat configuration question
 
 
  How would I configure Tomcat so that the default URL can be
 www.company.com
  instead of localhost:8080? I got the domain part covered. (i.e I got
  www.company.com:8080 working. But I am having problems with getting rid
of
  8080. Any help will be appreciated
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat configuration question

2002-03-28 Thread yilmaz

Merhaba Ibrahim,
By default HTTP runs on port 80,
so if you set port number for tomcat to 80, you
won't need to add port number to the URL.
The browser will automatically assume it's port number 80.
Hope it helps
Regards :)
- Original Message -
From: Ibrahim Beyazit [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, March 29, 2002 4:38 AM
Subject: Re: Tomcat configuration question


 Mine was already 8080 when installed. I still have to put 8080 on URL.
 (www.company.com:8080) to get to the home page. How can I configure it so
I
 don't need to put that 8080 on the URL. Maybe this one is clearer.

 Thanks.

 - Original Message -
 From: Dominic Parry [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 27, 2002 11:56 PM
 Subject: Re: Tomcat configuration question


  Hi
 
  find the following section in server.xml and change the port:
 
   Connector className=org.apache.catalina.connector.http.HttpConnector
 port=8080 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=6/
 
  to -
 
   Connector className=org.apache.catalina.connector.http.HttpConnector
 port=80 minProcessors=5 maxProcessors=75
 enableLookups=true redirectPort=8443
 acceptCount=10 debug=0 connectionTimeout=6/
 
 
  hope this helps. Server.xml should be in your conf directory in tomcat
 home.
 
  cheers
 
 
  Dominic Parry
  B.Sc (Information Systems, Computer Science)
  B.Sc (Hons) Computer Science
  Rhodes University
  - Original Message -
  From: Rohit Agarwal [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, March 28, 2002 9:53 AM
  Subject: Re: Tomcat configuration question
 
 
   I have the same question, if somebody can help, that would be great.
  Thanks.
  
   Rohit
   - Original Message -
   From: Ibrahim Beyazit [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, March 27, 2002 6:47 PM
   Subject: Tomcat configuration question
  
  
   How would I configure Tomcat so that the default URL can be
  www.company.com
   instead of localhost:8080? I got the domain part covered. (i.e I got
   www.company.com:8080 working. But I am having problems with getting
rid
 of
   8080. Any help will be appreciated
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
  
  
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat configuration question

2002-03-27 Thread Rohit Agarwal

I have the same question, if somebody can help, that would be great. Thanks.

Rohit
- Original Message -
From: Ibrahim Beyazit [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 6:47 PM
Subject: Tomcat configuration question


How would I configure Tomcat so that the default URL can be www.company.com
instead of localhost:8080? I got the domain part covered. (i.e I got
www.company.com:8080 working. But I am having problems with getting rid of
8080. Any help will be appreciated


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat configuration question

2002-03-27 Thread Dominic Parry

Hi

find the following section in server.xml and change the port:

 Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/

to -

 Connector className=org.apache.catalina.connector.http.HttpConnector
   port=80 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=6/


hope this helps. Server.xml should be in your conf directory in tomcat home.

cheers


Dominic Parry
B.Sc (Information Systems, Computer Science)
B.Sc (Hons) Computer Science
Rhodes University
- Original Message -
From: Rohit Agarwal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, March 28, 2002 9:53 AM
Subject: Re: Tomcat configuration question


 I have the same question, if somebody can help, that would be great.
Thanks.

 Rohit
 - Original Message -
 From: Ibrahim Beyazit [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, March 27, 2002 6:47 PM
 Subject: Tomcat configuration question


 How would I configure Tomcat so that the default URL can be
www.company.com
 instead of localhost:8080? I got the domain part covered. (i.e I got
 www.company.com:8080 working. But I am having problems with getting rid of
 8080. Any help will be appreciated


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat configuration error

2001-12-07 Thread Larry Isaacs

If you are new to Tomcat 3.x, I would recommend
using Tomcat 3.3 over a Tomcat 3.2.x version.
Are many improvements in Tomcat 3.3.  Though
Tomcat 3.3's documentation isn't great, I believe
it is better documented than 3.2.x.  Regardless
of which version you choose, I would recommend
trying the following:

1) Unzip the Tomcat binary to drive C:

2) Rename the jakarta-tomcat-??? directory
   to something like Tc33 or Tc324.

3) Open a DOS window and cd to the directory
   in step 2.

4) Execute SET JAVA_HOME=c:\jdk1.3.1_01

5) Execute SET CLASSPATH= to clear the
   CLASSPATH environment variable. This step
   is unnecessary if using Tomcat 3.3.

6) Execute bin\startup.

7) If Tomcat doesn't successfully start,
   move all jars out of c:\jdk1.3.1_01\jre\lib\ext
   to a temporary location and repeat step 6.

This should get your Tomcat working.

Hope this helps.

Cheers,
Larry


 -Original Message-
 From: gaurang khatri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 8:37 PM
 To: Tomcat Users List
 Subject: RE: tomcat configuration error
 
 
 Hi Zeng,
 
 I have tried all the tricks suggested by you and Larry
 but none is helpful for me. I have come to know that
 tomcat is throwing 
 java.lang.NoClassDefFoundError:
 org/apache/tomcat/start/Tomcat exception. I think
 there is something wrong I have done or missing to be
 done. I dont know what it is. Would you please help me
 in this?
 
 Thanx
 gaurang.
 
 
  --- Zeng, Yinghui (Susan) [EMAIL PROTECTED]
 wrote:  try change the folder name shorter than 8
  characters.
  and also try edit system.ini and add
  [NonWindowsApp]
  CommandEnvSize=4096
  
  Susan Zeng
  
  -Original Message-
  From: gaurang khatri
  [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 06, 2001 12:45 AM
  To: [EMAIL PROTECTED]
  Subject: tomcat configuration error
  
  
  hello all,
  
  I am gaurang. I am new to this group. I am trying to
  configure tomcat 3.2.4. My JAVA_HOME is
  c:\jdk1.3.1_01
  and TOMCAT_HOME is tomcat-3.2.1. I have set
  JAVA_HOME
  and TOMCAT_HOME in tomcat.bat. I have also tried
  tomcat~1.4 in TOMCAT_HOME but getting the same
  result.
  Now when I am trying to run tomcat start or
  startup from the bin directory
  of tomcat, I am getting following error. I dont know
  why I am getting this error. 
  
  --
  Unable to set CLASSPATH dynamically.
  Note: To set the CLASSPATH dynamically on Win9x
  systems
only DOS 8.3 names may be used in TOMCAT_HOME!
  Setting your CLASSPATH statically.
  
  Using CLASSPATH:
  
  Starting Tomcat in new window
  --
  
  and the tomcat is not started in new window. I am
  using the japanese version of windows 98. Can
  anybody
  tell me what is wrong with this. It is very urgent.
  So, please help me.
  
  Thanks to all
  gaurang.
  
  
 
 __
 __
  For Stock Quotes, Finance News, Insurance, Tax
  Planners, Mutual Funds...
  Visit http://in.finance.yahoo.com/
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe:  
  mailto:[EMAIL PROTECTED]
  For additional commands:
  mailto:[EMAIL PROTECTED]
  Troubles with the list:
  mailto:[EMAIL PROTECTED]
   
 
 __
 __
 For Stock Quotes, Finance News, Insurance, Tax Planners, 
 Mutual Funds...
 Visit http://in.finance.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat configuration error

2001-12-06 Thread Larry Isaacs

Note that you say you are configuring Tomcat 3.2.4
but are setting TOMCAT_HOME to tomcat-3.2.1.

If you are copying Tomcat 3.2.4 on top of a
Tomcat 3.2.1 installation, be aware that this is
an untested form of installation.  I would recommend
installing Tomcat 3.2.4 in a new directory and
updating the configuration and web apps to match
your 3.2.1 installation.

Normally the Unable to set CLASSPATH dynamically ...
Setting your CLASSPATH statically message is just
a warning.  However, in Tomcat 3.2.4 this represents
an error.

Tomcat 3.2.4 includes JAXP 1.1 as the XML parser
(consisting of jaxp.jar and crimson.jar) where
Tomcat 3.2.3 and earlier included JAXP 1.0.1
(consisting of jaxp.jar and parser.jar).  Note that
with 3.2.4, it is crimson.jar that is found in the 
TOMCAT_HOME/lib, not parser.jar.

There is a bug in the tomcat.bat file where it tries
to build the CLASSPATH setting staticially, i.e. with
a bunch of SET commands.  This portion of the batch
file is only used on Win9x systems when a directory
in the TOMCAT_HOME path isn't a DOS 8.3 name.  This
portion of tomcat.bat still specifies parser.jar instead
of crimson.jar.  Change all parser.jar references to
crimson.jar in tomcat.bat and you should be okay.

You could also do what the message says and
manually set your TOMCAT_HOME using DOS 8.3 names,
(i.e. SET TOMCAT_HOME=C:\TOMCAT~1 ), or make sure
all directories in the path to Tomcat are DOS
8.3 names, (i.e. C:\Jakarta\Tc324 ).  This would
allow the CLASSPATH to be build automatically
to include all jars found in TOMCAT_HOME\lib.

Hope this helps.

Cheers,
Larry

 -Original Message-
 From: gaurang khatri [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 1:45 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration error
 
 
 hello all,
 
 I am gaurang. I am new to this group. I am trying to
 configure tomcat 3.2.4. My JAVA_HOME is c:\jdk1.3.1_01
 and TOMCAT_HOME is tomcat-3.2.1. I have set JAVA_HOME
 and TOMCAT_HOME in tomcat.bat. I have also tried
 tomcat~1.4 in TOMCAT_HOME but getting the same result.
 Now when I am trying to run tomcat start or
 startup from the bin directory
 of tomcat, I am getting following error. I dont know
 why I am getting this error. 
 
 --
 Unable to set CLASSPATH dynamically.
 Note: To set the CLASSPATH dynamically on Win9x
 systems
   only DOS 8.3 names may be used in TOMCAT_HOME!
 Setting your CLASSPATH statically.
 
 Using CLASSPATH:
 
 Starting Tomcat in new window
 --
 
 and the tomcat is not started in new window. I am
 using the japanese version of windows 98. Can anybody
 tell me what is wrong with this. It is very urgent.
 So, please help me.
 
 Thanks to all
 gaurang.
 
 
 __
 __
 For Stock Quotes, Finance News, Insurance, Tax Planners, 
 Mutual Funds...
 Visit http://in.finance.yahoo.com/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: tomcat configuration error

2001-12-06 Thread Jeff Kilbride

Hi Larry,

I thought for all 3.2.x versions, you could just replace the old jar files
with the new ones. Is this not true for 3.2.4?

Thanks,
--jeff

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 06, 2001 5:55 AM
Subject: RE: tomcat configuration error


 Note that you say you are configuring Tomcat 3.2.4
 but are setting TOMCAT_HOME to tomcat-3.2.1.

 If you are copying Tomcat 3.2.4 on top of a
 Tomcat 3.2.1 installation, be aware that this is
 an untested form of installation.  I would recommend
 installing Tomcat 3.2.4 in a new directory and
 updating the configuration and web apps to match
 your 3.2.1 installation.

 Normally the Unable to set CLASSPATH dynamically ...
 Setting your CLASSPATH statically message is just
 a warning.  However, in Tomcat 3.2.4 this represents
 an error.

 Tomcat 3.2.4 includes JAXP 1.1 as the XML parser
 (consisting of jaxp.jar and crimson.jar) where
 Tomcat 3.2.3 and earlier included JAXP 1.0.1
 (consisting of jaxp.jar and parser.jar).  Note that
 with 3.2.4, it is crimson.jar that is found in the
 TOMCAT_HOME/lib, not parser.jar.

 There is a bug in the tomcat.bat file where it tries
 to build the CLASSPATH setting staticially, i.e. with
 a bunch of SET commands.  This portion of the batch
 file is only used on Win9x systems when a directory
 in the TOMCAT_HOME path isn't a DOS 8.3 name.  This
 portion of tomcat.bat still specifies parser.jar instead
 of crimson.jar.  Change all parser.jar references to
 crimson.jar in tomcat.bat and you should be okay.

 You could also do what the message says and
 manually set your TOMCAT_HOME using DOS 8.3 names,
 (i.e. SET TOMCAT_HOME=C:\TOMCAT~1 ), or make sure
 all directories in the path to Tomcat are DOS
 8.3 names, (i.e. C:\Jakarta\Tc324 ).  This would
 allow the CLASSPATH to be build automatically
 to include all jars found in TOMCAT_HOME\lib.

 Hope this helps.

 Cheers,
 Larry

  -Original Message-
  From: gaurang khatri [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, December 06, 2001 1:45 AM
  To: [EMAIL PROTECTED]
  Subject: tomcat configuration error
 
 
  hello all,
 
  I am gaurang. I am new to this group. I am trying to
  configure tomcat 3.2.4. My JAVA_HOME is c:\jdk1.3.1_01
  and TOMCAT_HOME is tomcat-3.2.1. I have set JAVA_HOME
  and TOMCAT_HOME in tomcat.bat. I have also tried
  tomcat~1.4 in TOMCAT_HOME but getting the same result.
  Now when I am trying to run tomcat start or
  startup from the bin directory
  of tomcat, I am getting following error. I dont know
  why I am getting this error.
 
  --
  Unable to set CLASSPATH dynamically.
  Note: To set the CLASSPATH dynamically on Win9x
  systems
only DOS 8.3 names may be used in TOMCAT_HOME!
  Setting your CLASSPATH statically.
 
  Using CLASSPATH:
 
  Starting Tomcat in new window
  --
 
  and the tomcat is not started in new window. I am
  using the japanese version of windows 98. Can anybody
  tell me what is wrong with this. It is very urgent.
  So, please help me.
 
  Thanks to all
  gaurang.
 
 
  __
  __
  For Stock Quotes, Finance News, Insurance, Tax Planners,
  Mutual Funds...
  Visit http://in.finance.yahoo.com/
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat configuration error

2001-12-06 Thread Larry Isaacs

There may not be much difference between 3.2.3 and
3.2.4 except for the parser.jar/crimson.jar issue.
But I don't think it would be a good assumption that
other files, such as server.xml, didn't change in
some important or helpful way.

I'm not aware of any other specific problems with
just replacing the jar files, but that is mainly
because I haven't tried to discover any.  I am
reluctant to assume there aren't any.  Since more of
my time was spent on Tomcat 3.3, I didn't track the
changes since Tomcat 3.2.1 all that well.

Cheers,
Larry

 -Original Message-
 From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 3:15 PM
 To: Tomcat Users List
 Subject: Re: tomcat configuration error
 
 
 Hi Larry,
 
 I thought for all 3.2.x versions, you could just replace the 
 old jar files
 with the new ones. Is this not true for 3.2.4?
 
 Thanks,
 --jeff
 
 - Original Message -
 From: Larry Isaacs [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Thursday, December 06, 2001 5:55 AM
 Subject: RE: tomcat configuration error
 
 
  Note that you say you are configuring Tomcat 3.2.4
  but are setting TOMCAT_HOME to tomcat-3.2.1.
 
  If you are copying Tomcat 3.2.4 on top of a
  Tomcat 3.2.1 installation, be aware that this is
  an untested form of installation.  I would recommend
  installing Tomcat 3.2.4 in a new directory and
  updating the configuration and web apps to match
  your 3.2.1 installation.
 
  Normally the Unable to set CLASSPATH dynamically ...
  Setting your CLASSPATH statically message is just
  a warning.  However, in Tomcat 3.2.4 this represents
  an error.
 
  Tomcat 3.2.4 includes JAXP 1.1 as the XML parser
  (consisting of jaxp.jar and crimson.jar) where
  Tomcat 3.2.3 and earlier included JAXP 1.0.1
  (consisting of jaxp.jar and parser.jar).  Note that
  with 3.2.4, it is crimson.jar that is found in the
  TOMCAT_HOME/lib, not parser.jar.
 
  There is a bug in the tomcat.bat file where it tries
  to build the CLASSPATH setting staticially, i.e. with
  a bunch of SET commands.  This portion of the batch
  file is only used on Win9x systems when a directory
  in the TOMCAT_HOME path isn't a DOS 8.3 name.  This
  portion of tomcat.bat still specifies parser.jar instead
  of crimson.jar.  Change all parser.jar references to
  crimson.jar in tomcat.bat and you should be okay.
 
  You could also do what the message says and
  manually set your TOMCAT_HOME using DOS 8.3 names,
  (i.e. SET TOMCAT_HOME=C:\TOMCAT~1 ), or make sure
  all directories in the path to Tomcat are DOS
  8.3 names, (i.e. C:\Jakarta\Tc324 ).  This would
  allow the CLASSPATH to be build automatically
  to include all jars found in TOMCAT_HOME\lib.
 
  Hope this helps.
 
  Cheers,
  Larry
 
   -Original Message-
   From: gaurang khatri [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, December 06, 2001 1:45 AM
   To: [EMAIL PROTECTED]
   Subject: tomcat configuration error
  
  
   hello all,
  
   I am gaurang. I am new to this group. I am trying to
   configure tomcat 3.2.4. My JAVA_HOME is c:\jdk1.3.1_01
   and TOMCAT_HOME is tomcat-3.2.1. I have set JAVA_HOME
   and TOMCAT_HOME in tomcat.bat. I have also tried
   tomcat~1.4 in TOMCAT_HOME but getting the same result.
   Now when I am trying to run tomcat start or
   startup from the bin directory
   of tomcat, I am getting following error. I dont know
   why I am getting this error.
  
   --
   Unable to set CLASSPATH dynamically.
   Note: To set the CLASSPATH dynamically on Win9x
   systems
 only DOS 8.3 names may be used in TOMCAT_HOME!
   Setting your CLASSPATH statically.
  
   Using CLASSPATH:
  
   Starting Tomcat in new window
   --
  
   and the tomcat is not started in new window. I am
   using the japanese version of windows 98. Can anybody
   tell me what is wrong with this. It is very urgent.
   So, please help me.
  
   Thanks to all
   gaurang.
  
  
   __
   __
   For Stock Quotes, Finance News, Insurance, Tax Planners,
   Mutual Funds...
   Visit http://in.finance.yahoo.com/
  
   --
   To unsubscribe:   
 mailto:[EMAIL PROTECTED]
   For additional commands: 
 mailto:[EMAIL PROTECTED]
   Troubles with the list: 
 mailto:[EMAIL PROTECTED]
  
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat configuration error

2001-12-06 Thread Zeng, Yinghui (Susan)

try change the folder name shorter than 8 characters.
and also try edit system.ini and add
[NonWindowsApp]
CommandEnvSize=4096

Susan Zeng

-Original Message-
From: gaurang khatri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 12:45 AM
To: [EMAIL PROTECTED]
Subject: tomcat configuration error


hello all,

I am gaurang. I am new to this group. I am trying to
configure tomcat 3.2.4. My JAVA_HOME is c:\jdk1.3.1_01
and TOMCAT_HOME is tomcat-3.2.1. I have set JAVA_HOME
and TOMCAT_HOME in tomcat.bat. I have also tried
tomcat~1.4 in TOMCAT_HOME but getting the same result.
Now when I am trying to run tomcat start or
startup from the bin directory
of tomcat, I am getting following error. I dont know
why I am getting this error. 

--
Unable to set CLASSPATH dynamically.
Note: To set the CLASSPATH dynamically on Win9x
systems
  only DOS 8.3 names may be used in TOMCAT_HOME!
Setting your CLASSPATH statically.

Using CLASSPATH:

Starting Tomcat in new window
--

and the tomcat is not started in new window. I am
using the japanese version of windows 98. Can anybody
tell me what is wrong with this. It is very urgent.
So, please help me.

Thanks to all
gaurang.



For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds...
Visit http://in.finance.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat configuration error

2001-12-06 Thread gaurang khatri

Hi Zeng,

I have tried all the tricks suggested by you and Larry
but none is helpful for me. I have come to know that
tomcat is throwing 
java.lang.NoClassDefFoundError:
org/apache/tomcat/start/Tomcat exception. I think
there is something wrong I have done or missing to be
done. I dont know what it is. Would you please help me
in this?

Thanx
gaurang.


 --- Zeng, Yinghui (Susan) [EMAIL PROTECTED]
wrote:  try change the folder name shorter than 8
 characters.
 and also try edit system.ini and add
 [NonWindowsApp]
 CommandEnvSize=4096
 
 Susan Zeng
 
 -Original Message-
 From: gaurang khatri
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 06, 2001 12:45 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat configuration error
 
 
 hello all,
 
 I am gaurang. I am new to this group. I am trying to
 configure tomcat 3.2.4. My JAVA_HOME is
 c:\jdk1.3.1_01
 and TOMCAT_HOME is tomcat-3.2.1. I have set
 JAVA_HOME
 and TOMCAT_HOME in tomcat.bat. I have also tried
 tomcat~1.4 in TOMCAT_HOME but getting the same
 result.
 Now when I am trying to run tomcat start or
 startup from the bin directory
 of tomcat, I am getting following error. I dont know
 why I am getting this error. 
 
 --
 Unable to set CLASSPATH dynamically.
 Note: To set the CLASSPATH dynamically on Win9x
 systems
   only DOS 8.3 names may be used in TOMCAT_HOME!
 Setting your CLASSPATH statically.
 
 Using CLASSPATH:
 
 Starting Tomcat in new window
 --
 
 and the tomcat is not started in new window. I am
 using the japanese version of windows 98. Can
 anybody
 tell me what is wrong with this. It is very urgent.
 So, please help me.
 
 Thanks to all
 gaurang.
 
 


 For Stock Quotes, Finance News, Insurance, Tax
 Planners, Mutual Funds...
 Visit http://in.finance.yahoo.com/
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
  


For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds...
Visit http://in.finance.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat configuration

2001-05-31 Thread Selvarajah Vahees




add the mime types in web.xml file in /conf 
dir
I did a similar thing with 
apache not Tomcat.But it should work

cheers,
vahees

-Original Message-From: 
Mike Alba [EMAIL PROTECTED]To: [EMAIL PROTECTED] 
[EMAIL PROTECTED]Date: 
Thursday, May 31, 2001 11:30 PMSubject: Tomcat 
configuration
Hi,

 I am new to Tomcat and am looking to 
configure it for 
WML and Bitmaps, etc. How do I configure it to 
use
these types. I have read some emails that the 
web.xml
file is not read? 

Thanks in advance for your help!

Mike


RE: Tomcat configuration for wml support

2001-04-30 Thread Ronan Derby



you 
may need to add all of the mime types required for wml to the web.xml 
file.

 
mime-mapping 
extensionwml/extension 
mime-typetext/vnd.wap.wml/mime-type 
/mime-mapping 
mime-mapping 
extensionwbmp/extension 
mime-typeimage/vnd.wap.wbmp/mime-type 
/mime-mapping
There 
are others but these will get wml files and wbmps to work.

If you 
are using tomcat with apache, you may need to add the mime types to your apache 
conf
files.

Hope 
this helps.

 - Ronan 
Derby / Senior Software 
Engineer Púca 
[EMAIL PROTECTED] main switch: +353 (0)1 
6341480 direct line: +353 (0)1 
6341483 fax line: +353 (0)1 
6341481 1 Harcourt Terrace, Dublin 2, Ireland 
- http://www.puca.ie 

  -Original Message-From: nwadehra 
  [mailto:[EMAIL PROTECTED]]Sent: 01 May 2001 
  13:23To: [EMAIL PROTECTED]Subject: Tomcat 
  configuration for wml support
  
  Hi,
   
  How can I configure tomcat for wml?
  
  Regards
  Nidhi


RE: TOMCAT CONFIGURATION

2001-04-19 Thread Antonio Vazquez

Hi Matias,
Do you use Internet Explorer 5.X?

In this case, the problem isnt in the server, the problem is that Internet
Explorer cuts the connection with the web server and then Tomcat throws that
exception.

-Mensaje original-
De: Matas Salvador [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 19 de abril de 2001 17:45
Para: [EMAIL PROTECTED]
Asunto: TOMCAT CONFIGURATION


Please, would anybody throw me a hint to config the Tomcat WebServer?

It runs my servlets, but it takes too much to do some requests or some
responses, besides, it throws me all the time the exception:

2001-04-17 10:54:33 - ContextManager: SocketException reading request,
ignored - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:451)
at java.net.SocketInputStream.available(SocketInputStream.java:137)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectionHttpCo
nnectionHandler.java:214)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

How can i fix it? How can I optimize it? Is there anything i have to change
in the servlet.xml? What?

Thank you very much!

MATAS SALVADOR
JAVA Development Team
Soluciones Integrales S.A.
590 Roca Av. 7 Floor Buenos Aires
+54.011.4345.0537 int. 132




  1   2   >