driverClass and URL are Null

2005-09-16 Thread Mattier, Ricardo
Hello,

I'm currently running Tomcat 5.5 with a Postgresql 8.0
database.  I created a test .jsp to test the Datasource, I get the
following error: Cannot create JDBC driver of class '' for connect URL
'null'  It seems I've inserted the correct parameters in the server.xml,
and WEB-INF/web.xml.  driverClassName, and URL are not empty in
server.xml.  Any ideas?

 

Rick Mattier

Systems Analyst II

Windriver Systems

120 Royall St

Canton, Ma 02021

[EMAIL PROTECTED]

Canton: 781 364-2002

Nashua: 603 897-2084

 



RE: Trying to connect tomcat5 with postgresql database

2005-09-12 Thread Mattier, Ricardo
Where should the context.xml file be placed, and what else should go in
this file?  I'll rename my jar file to see if that works too?  Thanks! 


Rick Mattier
Systems Analyst II
Wind River Systems
Canton: 781 364-2002
Nashua 603 897-2084
Email: [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 6:16 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

And make sure the driver you downloaded matches your server version.
Also, for some reason, my setup wouldn't work until I renamed the driver
to postgresql.jar from pg74.216.jdbc3.jar.


 Hi Rick --
 
 Resource auth=Container
   description=PostgresSQL Connection Pool
   name=jdbc/postDB type=javax.sql.DataSource
   driverClassName=org.postgresql.Driver
   url=jdbc:postgresql://localhost:5432/test
 /
 
 Good, just make sure you get the rest of the parameters in there like 
 username= and password=x.  The ResourceParams elements 
 are not used in tomcat 5.5.  Also you mentioned this is in server.xml.

 It should be inside the Context element of the context.xml file used

 in your deployment.
 
   resource-ref
res-ref-namejdbc/postDB/res-ref-name
res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 The web.xml looks good.  The only other thing I can think of is to be 
 sure the driver jar file is in common/lib.
 
 
 Edoardo Panfili wrote:
 
 
  I miss a part of my web.xml
 
  ===
  web-app
  resource-ref
  descriptionpostgreSQL Datasource/description
  res-ref-namejdbc/lisy/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
 
  display-namelisy/display-name
 
  ..
 
  ==
 
  Edoardo
 
 
  Mattier, Ricardo wrote:
 
  I duplicated your configuration for the server.xml file, and I came

  up with the same error.
  -Original Message-
  From: Edoardo Panfili [mailto:[EMAIL PROTECTED] Sent: Saturday, 
  September 10, 2005 7:49 AM
  To: Tomcat Users List
  Subject: Re: Trying to connect tomcat5 with postgresql database
 
  This is my configuration server.xml 
  
  Resource name=jdbc/guidebook auth=Container 
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/lisy
  parameter
  namefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceF
  actor
  y/value
  /parameter
  parameter
  namedriverClassName/namevalueorg.postgresql.Driver/value
  /parameter
  parameter
  nameurl/namevaluejdbc:postgresql://127.0.0.1:5432/lisy/value
  
  /parameter
  parameter
  nameusername/namevalueUNAME/value
  /parameter
  parameter
  namepassword/namevaluePWD/value
  /parameter
  parameter
  nameinitialSize/namevalue3/value
  /parameter
  parameter
  namemaxActive/namevalue5/value
  /parameter
  parameter
  namemaxIdle/namevalue5/value
  /parameter
parameter
  nameminIdle/namevalue3/value
  /parameter
  parameter
  namemaxWait/namevalue-1/value
  /parameter
  parameter
  nameremoveAbandoned/namevaluetrue/value
  /parameter
  parameter
  nameremoveAbandonedTimeout/namevalue60/value
  /parameter
  parameter
  namelogAbandoned/namevaluetrue/value
  /parameter
  /ResourceParams
 
  = conde inside the servlet
 
  Context ambiente =(
  Context) new InitialContext().lookup(java:comp/env);
 
  DataSource pool = (DataSource) ambiente.lookup(jdbc/lisy);
 
  Connection c=pool.getConnection();
 
  ==
 
  I am using Postgres 7.4 and Tomcat 5.0
 
  Edoardo
 
 
 
  Mattier, Ricardo wrote:
 
  Hello,   I'm currently working with Tomcat5 on Solaris10 x86 
  machine.  I'm running into problems when trying to access a 
  postgresql 8.0.1 database on the local machine. Cannot create JDBC

  driver of class '' for connect URL null'  is the error I receive 
  when trying to establish
 
  a connection.
 
  Here's the snipet of code I used in my .jsp:
  Context ctx = new InitialConection();
 
  DataSource ds = 
  (DataSource)ctx.lookup(java:comp/env/jdbc/postDB);
 
  Connection con = ds.getConnection();
 
  I noticed it would compile fine if I remove the getConnection
 
  line.
 
  Once I add it back in,  the above error appears.  I've followed 
  the instructions on the jakarta page, and thought I made the 
  correct insertions in both server.xml, and WEB-INF/web.xml. Here 
  are the entries
  used:
  server.xml
  Resource auth=Container
description=PostgresSQL Connection Pool
name=jdbc/postDB type=javax.sql.DataSource
driverClassName

RE: Trying to connect tomcat5 with postgresql database

2005-09-12 Thread Mattier, Ricardo
I constantly receive this error when datasource.getConnection() is
called:
root cause 

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null' 


Rick Mattier
Systems Analyst II
Wind River Systems
Canton: 781 364-2002
Nashua 603 897-2084
Email: [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 6:16 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

And make sure the driver you downloaded matches your server version.
Also, for some reason, my setup wouldn't work until I renamed the driver
to postgresql.jar from pg74.216.jdbc3.jar.


 Hi Rick --
 
 Resource auth=Container
   description=PostgresSQL Connection Pool
   name=jdbc/postDB type=javax.sql.DataSource
   driverClassName=org.postgresql.Driver
   url=jdbc:postgresql://localhost:5432/test
 /
 
 Good, just make sure you get the rest of the parameters in there like 
 username= and password=x.  The ResourceParams elements 
 are not used in tomcat 5.5.  Also you mentioned this is in server.xml.

 It should be inside the Context element of the context.xml file used

 in your deployment.
 
   resource-ref
res-ref-namejdbc/postDB/res-ref-name
res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 The web.xml looks good.  The only other thing I can think of is to be 
 sure the driver jar file is in common/lib.
 
 
 Edoardo Panfili wrote:
 
 
  I miss a part of my web.xml
 
  ===
  web-app
  resource-ref
  descriptionpostgreSQL Datasource/description
  res-ref-namejdbc/lisy/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
 
  display-namelisy/display-name
 
  ..
 
  ==
 
  Edoardo
 
 
  Mattier, Ricardo wrote:
 
  I duplicated your configuration for the server.xml file, and I came

  up with the same error.
  -Original Message-
  From: Edoardo Panfili [mailto:[EMAIL PROTECTED] Sent: Saturday, 
  September 10, 2005 7:49 AM
  To: Tomcat Users List
  Subject: Re: Trying to connect tomcat5 with postgresql database
 
  This is my configuration server.xml 
  
  Resource name=jdbc/guidebook auth=Container 
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/lisy
  parameter
  namefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceF
  actor
  y/value
  /parameter
  parameter
  namedriverClassName/namevalueorg.postgresql.Driver/value
  /parameter
  parameter
  nameurl/namevaluejdbc:postgresql://127.0.0.1:5432/lisy/value
  
  /parameter
  parameter
  nameusername/namevalueUNAME/value
  /parameter
  parameter
  namepassword/namevaluePWD/value
  /parameter
  parameter
  nameinitialSize/namevalue3/value
  /parameter
  parameter
  namemaxActive/namevalue5/value
  /parameter
  parameter
  namemaxIdle/namevalue5/value
  /parameter
parameter
  nameminIdle/namevalue3/value
  /parameter
  parameter
  namemaxWait/namevalue-1/value
  /parameter
  parameter
  nameremoveAbandoned/namevaluetrue/value
  /parameter
  parameter
  nameremoveAbandonedTimeout/namevalue60/value
  /parameter
  parameter
  namelogAbandoned/namevaluetrue/value
  /parameter
  /ResourceParams
 
  = conde inside the servlet
 
  Context ambiente =(
  Context) new InitialContext().lookup(java:comp/env);
 
  DataSource pool = (DataSource) ambiente.lookup(jdbc/lisy);
 
  Connection c=pool.getConnection();
 
  ==
 
  I am using Postgres 7.4 and Tomcat 5.0
 
  Edoardo
 
 
 
  Mattier, Ricardo wrote:
 
  Hello,   I'm currently working with Tomcat5 on Solaris10 x86 
  machine.  I'm running into problems when trying to access a 
  postgresql 8.0.1 database on the local machine. Cannot create JDBC

  driver of class '' for connect URL null'  is the error I receive 
  when trying to establish
 
  a connection.
 
  Here's the snipet of code I used in my .jsp:
  Context ctx = new InitialConection();
 
  DataSource ds = 
  (DataSource)ctx.lookup(java:comp/env/jdbc/postDB);
 
  Connection con = ds.getConnection();
 
  I noticed it would compile fine if I remove the getConnection
 
  line.
 
  Once I add it back in,  the above error appears.  I've followed 
  the instructions on the jakarta page, and thought I made the 
  correct insertions in both server.xml, and WEB-INF/web.xml. Here 
  are the entries
  used:
  server.xml
  Resource auth=Container
description=PostgresSQL Connection Pool
name=jdbc/postDB type

RE: Trying to connect tomcat5 with postgresql database

2005-09-12 Thread Mattier, Ricardo
For now, I placed a test .jsp file in the $CATALINA_HOME/webapps/ROOT
directory.  I haven't deployed a .war file yet.   


Rick Mattier
Systems Analyst II
Wind River Systems
Canton: 781 364-2002
Nashua 603 897-2084
Email: [EMAIL PROTECTED]

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 12, 2005 9:38 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

Depends on how you are deploying your app.

1) If deploying as an expanded folder, name the context.xml file after
your webapp and place it in conf/Catalina/localhost.  For example, if
your app is called tutorial, it would have it's Context element in the
file $CATALINA_BASE/conf/Catalina/localhost/tutorial.xml where
$CATALINA_BASE is the top level of your tomcat installation.

2) If deploying as a .war file, the file is named 'context.xml' and
placed in the META-INF directory of the war archive.  Tomcat will read
it when deploying the application.

--David

Mattier, Ricardo wrote:

Where should the context.xml file be placed, and what else should go in

this file?  I'll rename my jar file to see if that works too?  Thanks!


Rick Mattier
Systems Analyst II
Wind River Systems
Canton: 781 364-2002
Nashua 603 897-2084
Email: [EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 12, 2005 6:16 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

And make sure the driver you downloaded matches your server version.
Also, for some reason, my setup wouldn't work until I renamed the 
driver to postgresql.jar from pg74.216.jdbc3.jar.


  

Hi Rick --

Resource auth=Container
  description=PostgresSQL Connection Pool
  name=jdbc/postDB type=javax.sql.DataSource
  driverClassName=org.postgresql.Driver
  url=jdbc:postgresql://localhost:5432/test
/

Good, just make sure you get the rest of the parameters in there like 
username= and password=x.  The ResourceParams elements 
are not used in tomcat 5.5.  Also you mentioned this is in server.xml.



  

It should be inside the Context element of the context.xml file used



  

in your deployment.

  resource-ref
   res-ref-namejdbc/postDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

The web.xml looks good.  The only other thing I can think of is to be 
sure the driver jar file is in common/lib.


Edoardo Panfili wrote:



I miss a part of my web.xml

===
web-app
resource-ref
descriptionpostgreSQL Datasource/description
res-ref-namejdbc/lisy/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

display-namelisy/display-name

..

==

Edoardo


Mattier, Ricardo wrote:

  

I duplicated your configuration for the server.xml file, and I came



  

up with the same error.
-Original Message-
From: Edoardo Panfili [mailto:[EMAIL PROTECTED] Sent: Saturday, 
September 10, 2005 7:49 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

This is my configuration server.xml 

Resource name=jdbc/guidebook auth=Container 
type=javax.sql.DataSource/
ResourceParams name=jdbc/lisy
parameter
namefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceF
actor
y/value
/parameter
parameter
namedriverClassName/namevalueorg.postgresql.Driver/value
/parameter
parameter
nameurl/namevaluejdbc:postgresql://127.0.0.1:5432/lisy/value


/parameter
parameter
nameusername/namevalueUNAME/value
/parameter
parameter
namepassword/namevaluePWD/value
/parameter
parameter
nameinitialSize/namevalue3/value
/parameter
parameter
namemaxActive/namevalue5/value
/parameter
parameter
namemaxIdle/namevalue5/value
/parameter
  parameter
nameminIdle/namevalue3/value
/parameter
parameter
namemaxWait/namevalue-1/value
/parameter
parameter
nameremoveAbandoned/namevaluetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/namevalue60/value
/parameter
parameter
namelogAbandoned/namevaluetrue/value
/parameter
/ResourceParams

= conde inside the servlet

Context ambiente =(
Context) new InitialContext().lookup(java:comp/env);

DataSource pool = (DataSource) ambiente.lookup(jdbc/lisy);

Connection c=pool.getConnection();

==

I am using Postgres 7.4 and Tomcat 5.0

Edoardo



Mattier, Ricardo wrote:



Hello,   I'm currently working with Tomcat5 on Solaris10 x86 
machine.  I'm running into problems when trying to access a 
postgresql 8.0.1

RE: Trying to connect tomcat5 with postgresql database

2005-09-11 Thread Mattier, Ricardo
I duplicated your configuration for the server.xml file, and I came up
with the same error. 

-Original Message-
From: Edoardo Panfili [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 10, 2005 7:49 AM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

This is my configuration server.xml

Resource name=jdbc/guidebook auth=Container 
type=javax.sql.DataSource/
ResourceParams name=jdbc/lisy
parameter
namefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactor
y/value
/parameter
parameter
namedriverClassName/namevalueorg.postgresql.Driver/value
/parameter
parameter
nameurl/namevaluejdbc:postgresql://127.0.0.1:5432/lisy/value
/parameter
parameter
nameusername/namevalueUNAME/value
/parameter
parameter
namepassword/namevaluePWD/value
/parameter
parameter
nameinitialSize/namevalue3/value
/parameter
parameter
namemaxActive/namevalue5/value
/parameter
parameter
namemaxIdle/namevalue5/value
/parameter
  parameter
nameminIdle/namevalue3/value
/parameter
parameter
namemaxWait/namevalue-1/value
/parameter
parameter
nameremoveAbandoned/namevaluetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/namevalue60/value
/parameter
parameter
namelogAbandoned/namevaluetrue/value
/parameter
/ResourceParams

= conde inside the servlet

Context ambiente =(
Context) new InitialContext().lookup(java:comp/env);

DataSource pool = (DataSource) ambiente.lookup(jdbc/lisy);

Connection c=pool.getConnection();

==

I am using Postgres 7.4 and Tomcat 5.0

Edoardo



Mattier, Ricardo wrote:
 Hello,   
 I'm currently working with Tomcat5 on Solaris10 x86 machine.  I'm 
 running into problems when trying to access a postgresql 8.0.1 
 database on the local machine. Cannot create JDBC driver of class '' 
 for connect URL null'  is the error I receive when trying to establish
a connection.
 Here's the snipet of code I used in my .jsp: 
 
 Context ctx = new InitialConection();
 
 DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/postDB);
 
 Connection con = ds.getConnection();
 
 I noticed it would compile fine if I remove the getConnection
line.
 Once I add it back in,  the above error appears.  I've followed the 
 instructions on the jakarta page, and thought I made the correct 
 insertions in both server.xml, and WEB-INF/web.xml. Here are the 
 entries
 used:
   server.xml
 Resource auth=Container
   description=PostgresSQL Connection Pool
   name=jdbc/postDB type=javax.sql.DataSource
   driverClassName=org.postgresql.Driver
   url=jdbc:postgresql://localhost:5432/test
 /
 ResourceParams name=jdbc/postDB
 parameter
 namedriverClassName/name
 valueorg.postgresql.Driver/value
 /parameter
 parameter
 nameurl/name
  
 valuejdbc:postgresql://localhost:5432/test?autoConnect=true/value
 /parameter
 parameter
 nameusername/name
 valuepostgres/value
 /parameter
 parameter
 namepassword/name
 valuepostgres/value
 /parameter
 parameter
 namemaxIdle/name
 value2/value
 /parameter
 parameter
 namemaxActive/name
 value10/value
 /parameter
 /ResourceParams
 Here is the web.xml:
 resource-ref
res-ref-namejdbc/postDB/res-ref-name
res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 Thanks in advance!
 -Rick Mattier
 
 -
 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: Trying to connect tomcat5 with postgresql database

2005-09-11 Thread Mattier, Ricardo
I'm using tomcat 5.5, and postgresql 8.0.1 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 09, 2005 9:08 PM
To: Tomcat Users List
Subject: Re: Trying to connect tomcat5 with postgresql database

Sorry for the last post.  Try this.
InitialContext ctx = new InitialContext(); DataSource ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/{app name}); Connection con
= ds.getConnection();

Are you using TC 5.0 or 5.5?


 Should be Context ctx = new InitialContext();
 
 
  Hello,   
  I'm currently working with Tomcat5 on Solaris10 x86 machine.  
  I'm running into problems when trying to access a postgresql 8.0.1 
  database on the local machine. Cannot create JDBC driver of class ''

  for connect URL null'  is the error I receive when trying to
establish a connection.
  Here's the snipet of code I used in my .jsp: 
  
  Context ctx = new InitialConection();
  
  DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/postDB);
  
  Connection con = ds.getConnection();
  
  I noticed it would compile fine if I remove the getConnection
line.
  Once I add it back in,  the above error appears.  I've followed the 
  instructions on the jakarta page, and thought I made the correct 
  insertions in both server.xml, and WEB-INF/web.xml. Here are the 
  entries
  used:
  server.xml
  Resource auth=Container
description=PostgresSQL Connection Pool
name=jdbc/postDB type=javax.sql.DataSource
driverClassName=org.postgresql.Driver
url=jdbc:postgresql://localhost:5432/test
  /
  ResourceParams name=jdbc/postDB
  parameter
  namedriverClassName/name
  valueorg.postgresql.Driver/value
  /parameter
  parameter
  nameurl/name
   
 
valuejdbc:postgresql://localhost:5432/test?autoConnect=true/value
  /parameter
  parameter
  nameusername/name
  valuepostgres/value
  /parameter
  parameter
  namepassword/name
  valuepostgres/value
  /parameter
  parameter
  namemaxIdle/name
  value2/value
  /parameter
  parameter
  namemaxActive/name
  value10/value
  /parameter
  /ResourceParams
  Here is the web.xml:
resource-ref
 res-ref-namejdbc/postDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
  
  Thanks in advance!
  -Rick Mattier
  
  
  - 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]



Trying to connect tomcat5 with postgresql database

2005-09-09 Thread Mattier, Ricardo
Hello,   
I'm currently working with Tomcat5 on Solaris10 x86 machine.  I'm
running into problems when trying to access a postgresql 8.0.1 database
on the local machine. Cannot create JDBC driver of class '' for connect
URL null'  is the error I receive when trying to establish a connection.
Here's the snipet of code I used in my .jsp: 

Context ctx = new InitialConection();

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

Connection con = ds.getConnection();

I noticed it would compile fine if I remove the getConnection line.
Once I add it back in,  the above error appears.  I've followed the
instructions on the jakarta page, and thought I made the correct
insertions in both server.xml, and WEB-INF/web.xml. Here are the entries
used:
server.xml
Resource auth=Container
  description=PostgresSQL Connection Pool
  name=jdbc/postDB type=javax.sql.DataSource
  driverClassName=org.postgresql.Driver
  url=jdbc:postgresql://localhost:5432/test
/
ResourceParams name=jdbc/postDB
parameter
namedriverClassName/name
valueorg.postgresql.Driver/value
/parameter
parameter
nameurl/name
 
valuejdbc:postgresql://localhost:5432/test?autoConnect=true/value
/parameter
parameter
nameusername/name
valuepostgres/value
/parameter
parameter
namepassword/name
valuepostgres/value
/parameter
parameter
namemaxIdle/name
value2/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
/ResourceParams
Here is the web.xml:
  resource-ref
   res-ref-namejdbc/postDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

Thanks in advance!
-Rick Mattier

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



compatibility package

2005-06-14 Thread Ricardo Miguel Machado Marques
Hi all.

I'm probably asking something already asked before so Sorry in Advance.

I've installed Tomcat 5.5 and have JRE 1.4.2

I can't star a service because of the compatibility issue.

My problem is that I can't seem to be able to find what should I
download and where to save it in order to solve this situation.

TIA

 

Ricardo Miguel Marques



RE: compatibility package

2005-06-14 Thread Ricardo Miguel Machado Marques
My bad.
After reading the first ones just thought the rest to diferent file
formats (rpm, etc)
Thx


Ricardo Miguel Marques 
Projecto ProUno
 
tel: 21 500 39 75
[EMAIL PROTECTED]
-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 15 de Junho de 2005 2:05
To: Tomcat Users List
Subject: RE: compatibility package

 From: Ricardo Miguel Machado Marques 
 [mailto:[EMAIL PROTECTED] 
 Subject: compatibility package
 
 I'm probably asking something already asked before so Sorry 
 in Advance.

Several times; did you try the mailing list archives or even Google?

 I've installed Tomcat 5.5 and have JRE 1.4.2

 I can't star a service because of the compatibility issue.

 My problem is that I can't seem to be able to find what should I
 download and where to save it in order to solve this situation.

The 1.4 compatibility package is right there on the main Tomcat download
page:
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
under the name Compat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Jakarta http server with LDAP security

2004-08-20 Thread Ricardo Souza
Hi.
I am running jakarta catalina version 5.0.27 on windows and I wanna remove anonymous 
access to port 80 and I wanna integrate security to validate on LDAP ( windows 2000 
ADS - primary domain control ).
I am used to do that on  IIS.
Can anyone give me hints about this.

Thanks in advance.

Ricardo Souza

RES: auto-configuration of mod_jk

2004-04-22 Thread Ricardo Campos
Look for the Host/Host tag in you server.xml
The name parameter should be equal to localhost
Change it to your server name

-Mensagem original-
De: Emerson Cargnin [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 22 de abril de 2004 16:15
Para: Tomcat Users List
Assunto: auto-configuration of mod_jk

I'm using tomcat 5.0.19, apache 2.0.47, mod_jk...


Tomcat generates a mod_jk.conf file with the following clause before the
jkmount clauses:

VirtualHost localhost
 ServerName localhost


With this clause, apache does not create any mapping...

This is my configuration of the listener...

Is there any other property of this configuration? The virtualhost
clause has to match with some apache configuration???


Listener className=org.apache.jk.config.ApacheConfig append=true
forwardAll=false  modJk=/usr/lib/apache2/mod_jk.so
jkworkersConfig=/home/echo/download/jakarta-tomcat-5.0.19/worker.properties
 

/




-- 
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181

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



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


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



Apache with SOAP

2004-04-20 Thread Ricardo Souza






Hello Friends,

I'm very interested to use Apache to develope Web Services! I get all products necessary to build Java Web Services according with the book Web Service Essencial, but the steps from configuratingdidn't successfull! Can anyone help?!? Please... I would like a step by step installation and configuration to Apache and Web Services utilities.Thanks so much!









request parameter

2004-02-11 Thread Ricardo de Souza Moura
Have somebody ever had problem with request parameters ?
I am using Tomcat 4.1.29 com JK2.
Sometimes my request parameters are disappearing.
Did somebody already have this problem ?
_
MSN Messenger: converse com os seus amigos online.  
http://messenger.msn.com.br

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


RE: request parameter

2004-02-11 Thread Ricardo de Souza Moura
are you using the isapi filter? no
post and get parameters or just get? both
I have been trying to search at the list, but I didn't find it yet.

I am using Struts with DispatchAction and DynaValidatorForm.

thanks

From: Frank Diakovasilis [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: request parameter
Date: Wed, 11 Feb 2004 11:58:54 -0500
are you using the isapi filter?
post and get parameters or just get?
-Original Message-
From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 11:50 AM
To: [EMAIL PROTECTED]
Subject: request parameter
Have somebody ever had problem with request parameters ?
I am using Tomcat 4.1.29 com JK2.
Sometimes my request parameters are disappearing.
Did somebody already have this problem ?
_
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
-
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]
_
MSN Hotmail, o maior webmail do Brasil.  http://www.hotmail.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Changing FORM Authentication page

2004-01-21 Thread Ricardo García
Is there some way to personalise the form authentication page of a context by passing 
a parameter? I want to change an image of the login page depending on the origin 
(static) page of the user. Is this possible?
 
Thanks,
Ricardo.


FORM based authentication referer

2004-01-21 Thread Ricardo García
Here's some starting context for my question 

I have a war file that has been configured to use FORM based authentication.
I have set the form-login-page in the web.xml of the war file to point to
a jsp file in my war file.  When a user invokes any jsp without being logged 
in the login jsp is displayed.  The user enters the
userid/password submits the page to j_security_check, is validated and
redirected to the requested page.

My question is ...

Has anyone ever tried discovering the page that the user is trying to access
from within the jsp page referenced as the form-login-page?  I have tried
checking the HTTP headers and session, but have not discovered it being
saved anywhere.  Usually when a page invokes another page the HTTP header
REFERER exists with the URL to the previous page.  I have noticed that once
the user posts the login form on my login.jsp to j_security_check and is
authenticated they are redirect to the correct location .. correct location
being back to the page they wanted to access originally.  This would mean
that it has to be somewhere, but where??



FORM based authentication pages

2003-11-12 Thread Ricardo García
I have setup Tomcat 4.1 to use FORM based auth, but I've found myself replicating 
login and error pages in every context I want to protect. The problem is that the path 
that point to the pages in the login-config tag in the web.xml file of the context 
is relative to the context.

   login-config
auth-methodFORM/auth-method
realm-nameForm-Based Authentication Area/realm-name
form-login-config
form-login-page/auth/login.html/form-login-page
form-error-page/auth/error.html/form-error-page
/form-login-config
/login-config

Is there a way to put those two pages in a location that is accessible by any context? 
If there is, how do I setup my web.xml file?

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



RE: Setting up Tomcat

2003-11-12 Thread Ricardo García
You can try with the reloadable=true attribute of the Context configuration.

Context ... reloadable=true 

-Mensaje original-
De: S.Gokul [mailto:[EMAIL PROTECTED]
Enviado el: miércoles, 12 de noviembre de 2003 12:02
Para: Tomcat Users List
Asunto: Setting up Tomcat


Hi,
I have been using TOMCAT 4.1 version .

Is there any way by which we can instruct tomcat to automatically update the
Java Beans when i recompile them. For now i have to restart tomcat to make
the changes effective.

Kindly help,

Regards,

S.Gokul


-
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: -Dfile.encoding and tomcat-3.3.1a question.

2003-11-05 Thread Luiz Ricardo
Hi,

this occurs because the JVM 1.4.2 doesn´t permit to set some system
properties, especially file.encoding. I solved this problem setting the
enviroment variable LANG to pt_BR.ISO-8859-1 (in my case) in
catalina.sh.

Luiz Ricardo
- Original Message - 
From: Thomas Troeger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 12:12 PM
Subject: -Dfile.encoding and tomcat-3.3.1a question.


 Hello,

 I'm running tomcat-3.3.1a on x86-Linux. There is an issue
 regarding umlauts (like ä, ö, ß). If I use java-1.4.1:

 : Java version:
 : java version 1.4.1
 : Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
 : Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

 I can start the java interpreter by issuing
 -Dfile.enconding=iso-8859-1 as an argument in tomcat.sh (line
 130):

 :
TOMCAT_OPTS=$TOMCAT_OPTS -Dfile.encoding=iso-8859-1 -Xmx1024M -Djava.se
curity.policy==${TOMCAT_HOME}/conf/tomcat.policy 

 Then everything works fine and tomcat can handle umlauts and encoding
 as expceted. Now if I use java-1.4.2:

 : java version 1.4.2_02
 : Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2_02-b03)
 : Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

 umlauts don't get handled properly and I get a lot of '?' chars
 instead. My question is: how do I call tomcat or how do I have to
 modify my servlet to get proper umlauts again? Any hint welcome,

 mfG,

 --tst.

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



Newbie - Tomcat on read only folder

2003-11-04 Thread Ricardo Ferraz de Oliveira
Hi all,

 

I recently started to use Tomcat and I wanted to know if it's possible to
run Tomcat from within a read only folder. My intention is to install Tomcat
into a hard drive, deploy the Gridsphere web portal into it and then burn
them onto a CD in order to have an instant web portal. Is this possible?
What should I do?

 

Thanks in advance

 

Ricardo

 

 



Re: character sets showing as ?

2003-10-29 Thread Luiz Ricardo
I was with this problem too, I was using J2SDK 1.4.2 in a Linux machine
and setting CATALINA_OPTS to -Dfile.encoding=ISO-8859-1 didn´t resolve
the problem.

To fix this problem I have to set the enviroment variable LANG to
pt_BR.ISO-8859-1 in catalina.sh and bingo all my ISO-8859-1 charsets
were displayed correctly.

Luiz Ricardo
- Original Message - 
From: Bodycombe, Andrew [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 6:29 AM
Subject: RE: character sets showing as ?


 I have fixed similar problems in the past by setting CATALINA_OPTS to
 -Dfile.encoding=ISO-8859-1 and restarting tomcat.

 -Original Message-
 From: chad kellerman [mailto:[EMAIL PROTECTED]
 Sent: 28 October 2003 19:27
 To: Tomcat Users List
 Subject: character sets showing as ?


 Hey guys,
I moved a few tomcat Apps from a 6.2 server to a 7.3 server.
Running
 the same version of Tomcat.  But now the character sets that are
 displayed are coming out as ? ..  They are all spanish character sets.
 I tried changing to the character set to utf-8 from iso-8859-1 but
still
 it comes up.

   Anyone ever seen this before?  Maybe point me in the right
direction.



 Thanks,
 Chad










 -
 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: J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-28 Thread Luiz Ricardo
Hi everyone,

maybe this is off-topic but I read somewhere in Internet that the JVM
System Properties should not be configured via -D parameter cause it is
not guarranted to work. I always used this to configure the
file.encoding in Linux machines to ISO-8859-1 but it didn´t work with
J2SDK 1.4.2 so some pages serverd by Tomcat display ISO-8859-1
characters as question marks.

I solved my problem setting the enviroment variable LANG to my specific
locale (LANG=pt_BR.ISO-8859-1) and it worked it out!

Luiz Ricardo
- Original Message - 
From: David O'Brien [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, October 27, 2003 2:21 PM
Subject: Re: J2SDK 1.4.2_01 + Linux + file.encoding


 I face the same problem but haven't found a solution yet. I had to
revert
 to the old version of the SDK.
 If you find anything could you let me know?
 -Dave


 At 12:12 PM 10/27/2003, you wrote:
 Hi everyone,
 
 I have the following configuration:
 
 Linux Mandrake 8.0
 J2SDK 1.4.2_01
 Tomcat 4.1.27
 
 In my application I have to read some files that contains characters
 that are ISO-8859-1 charset but when I display these file contents by
 Tomcat the ISO-8859-1 characters are replaced by question marks,
Tomcat
 is started with the parameter -Dfile.encoding=ISO-8859-1.
 
 The detail is that if I use J2SDK1.4.1 everything works fine! I would
 like to know if someone here faced this problem and/or has some tip
how
 to solve it.
 
 Thanks in advance,
 
 Luiz Ricardo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 David G. O'Brien
 Web Services Coordinator / Systems Administrator

 NACCRRA
 The Nation's Network of Child Care Resource  Referral
 1319 F Street NW, Suite 500
 Washington, DC 20004
 (202) 393-5501 ext. 113
 (202) 393-1109 fax



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



J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-27 Thread Luiz Ricardo
Hi everyone,

I have the following configuration:

Linux Mandrake 8.0
J2SDK 1.4.2_01
Tomcat 4.1.27

In my application I have to read some files that contains characters
that are ISO-8859-1 charset but when I display these file contents by
Tomcat the ISO-8859-1 characters are replaced by question marks, Tomcat
is started with the parameter -Dfile.encoding=ISO-8859-1.

The detail is that if I use J2SDK1.4.1 everything works fine! I would
like to know if someone here faced this problem and/or has some tip how
to solve it.

Thanks in advance,

Luiz Ricardo


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



Removing extra white spaces in source

2003-10-24 Thread Luiz Ricardo
Hi everyone,

I would like to know if someone here knows some filter that removes
extra white spaces from content generated by servlet or jsp.

Luiz Ricardo


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



web.xml editor

2003-10-23 Thread Luiz Ricardo
Hi everyone,

I would like to know if someone here uses some free application to
edit web.xml files, likely this application was web-based.

I also would like to know if Tomcat Team intends to do something like
this.

Thanks in advance,

Luiz Ricardo


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



Apache2 + mod_jk + Tomcat 4.1.24

2003-08-21 Thread Luiz Ricardo
Hi,

I am having a problem with Apache2 + mod_jk + Tomcat 4.1.24 when my site
is under heavy load. Apache2 is configured to use worker MPM
(multi-threaded), mod_jk is configured to use cachesize and
cache_timeout and Tomcat 4.1.24 is with the following configuration in
server.xml:

...
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=16 maxProcessors=384
   acceptCount=64 debug=0/
...

The problem is that Tomcat is not freeing its threads when the site is
under low traffic, the Apache2 threads are freed correctly. I would like
to know if someone has a tip to solve this problem because I have to
control the use of machine resources.

Luiz Ricardo

Luiz Ricardo


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



RE: Opening Files Outside Context

2003-01-22 Thread Gladwell, Ricardo X -ND
I know for a fact the path is correct - when I run exactly the same code
with exactly the same file path it works... When I attempt to open the
same file path in Tomcat I get a FileNotFoundException. The path is
networked and on a different drive (h:) from the Tomcat and when I moved
the target file to the same, local drive (c:) it worked. Obviously
either Java cannot see networked drives or some sort of file filter is
in place. Strange...

-- 
Ricardo Gladwell, Java Developer
WD Internet Group, Engineering
[t] (020) 8222 2723
[m] (07734) 813 187 

 -Original Message-
 From: Dan Tran [mailto:[EMAIL PROTECTED]] 
 Sent: 21 January 2003 18:21
 To: Tomcat Users List
 Subject: Re: Opening Files Outside Context
 
 
 I have no problem opening file outsite my context,
 
 Make sure you have the file path setup correctly
 
 -D
 - Original Message -
 From: Erik Price [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, January 21, 2003 9:47 AM
 Subject: Re: Opening Files Outside Context
 
 
 
 
  Gladwell, Ricardo X -ND wrote:
   Hi All,
  
   I have written a JavaBean accessed from a JSP page in Tomcat 4.1 
   that opens a file to read from. However, when I open the 
 file using 
   the FileInputStream constructor I get a 
 FileNotFoundException. This 
   method works outside of Tomat on the same machine - the 
 file exists, 
   the path is correct even if it is on a networked drive.
  
   I assume this is a security feature - the file is outside the 
   webapps directory. What I would like to know is there anyway of 
   allowing Tomcat web applications to accessing files outside their 
   container, either through changing settings in the web.xml or 
   server.xml files or through the Tomcat admin tool?
 
  Did you already try getServletContext().getResourceAsStream()?
 
  What I have learned (yesterday) is that it is best to register an 
  external file in the web.xml as a ContextParameter and then use
  getServletContext().getInitParameter() to refer to the file.  This 
  forces whoever is deploying your app to make sure that there is in 
  fact a resource available (and provides a means to change 
 the path of 
  that resource without going into the code to do so).  Just some 
  advice, I suspect you can use getResourceAsStream() without 
 consulting 
  the ServletContext for the resource.
 
 
 
  Erik
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: Opening Files Outside Context

2003-01-22 Thread Gladwell, Ricardo X -ND
Thanks Ignacio,

That's probably the best suggestion so far. I'm running Windows XP and
when I attempted to run the service as myself (i.e. with my network
access) the same problem arose. So, I tried running the service as 'NT
AUTHORITY\NetworkService' it simply failed to start.

In the meantime I'll simply host the files I'm trying to access off my
local drive.

Yours...

-- 
Ricardo Gladwell, Java Developer
WD Internet Group, Engineering
[t] (020) 8222 2723
[m] (07734) 813 187 

 -Original Message-
 From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] 
 Sent: 22 January 2003 15:27
 To: 'Tomcat Users List'
 Subject: RE: Opening Files Outside Context
 
 
 Ricardo,
 
  
  I know for a fact the path is correct - when I run exactly
  the same code
  with exactly the same file path it works... When I attempt 
 to open the
  same file path in Tomcat I get a FileNotFoundException. The path is
  networked and on a different drive (h:) from the Tomcat and 
  when I moved
  the target file to the same, local drive (c:) it worked. Obviously
  either Java cannot see networked drives or some sort of 
 file filter is
  in place. Strange...
  
 
 Did you run Tomcat as a Service?
 
 If you do, A service can not use mapped network drives if not 
 configured to be run by an user with network access, you will 
 need to change from the user in the service configuration to 
 Administrator or a user with acces with the same mapped drive 
  confiigured.
 
 Another source of troubles are Java security plicy, AFAIK tc 
 4.1 run with security policies activated, so probably you 
 will need to grant some acces to your servlet.. 
 
 Saludos, 
 Ignacio J. Ortega 
 
 

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




Opening Files Outside Context

2003-01-21 Thread Gladwell, Ricardo X -ND
Hi All,

I have written a JavaBean accessed from a JSP page in Tomcat 4.1 that
opens a file to read from. However, when I open the file using the
FileInputStream constructor I get a FileNotFoundException. This method
works outside of Tomat on the same machine - the file exists, the path
is correct even if it is on a networked drive. 

I assume this is a security feature - the file is outside the webapps
directory. What I would like to know is there anyway of allowing Tomcat
web applications to accessing files outside their container, either
through changing settings in the web.xml or server.xml files or through
the Tomcat admin tool?

TIA...

-- 
Ricardo Gladwell, Java Developer
WD Internet Group, Engineering
[t] (020) 8222 2723
[m] (07734) 813 187 

Stack Trace:

java.io.FileNotFoundException: h:\projects\adtagger\xml\config.xml (The
system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:103)
at java.io.FileInputStream.init(FileInputStream.java:66)
at
com.dig.rgladwel.adtagger.ConfigBean.setConfigFile(ConfigBean.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.taglibs.standard.tag.common.core.SetSupport.doEndTag(SetSuppo
rt.java:172)
at
org.apache.jsp.index_jsp._jspx_meth_c_set_0(index_jsp.java:116)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:83)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
590)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
at
org.apache.tomcat.util.threads.ThreadPool

Re: Sharing Session data between two instances?

2002-12-16 Thread Luiz Ricardo
Hi,

take o look at:

http://www.onjava.com/lpt/a/2422
http://www2.theserverside.com/resources/article.jsp?l=Tomcat

Luiz Ricardo
- Original Message -
From: Prashanth Pushpagiri [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, December 15, 2002 4:57 PM
Subject: Sharing Session data between two instances?


 Hi

 I am trying to setup tomcat 4.1.12 on two servers so
 that an incoming request can be handled by either one
 of the servers. What I would like to do is share
 session details between the two instances. Is this
 possible?

 Thanks
 Prashanth

 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com

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


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




Deny access to directory of a web-app

2002-12-11 Thread Luiz Ricardo
Hi everybody,

I'd like to know if there's anyway to deny acess to a specific directory of
a web-app using only TomCat through config in web.xml. Example, in a web-app
test there's a directory called conf (CATALINA_HOME/webapps/test/conf)
with some configurations file so I don´t want users accessing this directory
via URL.

I tried to use security-constraint but I cannot do so much.

Luiz Ricardo


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




Re: Deny access to directory of a web-app

2002-12-11 Thread Luiz Ricardo
Hi,

I could do that but the localization of this dir is a requirement for my
application run, it's kinda legacy problem.

I was thinking of mapping the url /conf to a servlet that returns a 404
HTTP Message.

Luiz Ricardo
- Original Message -
From: Jacob Kjome [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 3:30 PM
Subject: Re: Deny access to directory of a web-app


 Hello Luiz,

 Why don't you put your conf directory under WEB-INF?  That is
 restricted by default.  Your app will still have complete programmatic
 access to it, but it won't be accessible via the web which is exactly
 what you want.

 Jake

 Wednesday, December 11, 2002, 10:12:33 AM, you wrote:

 LR Hi everybody,

 LR I'd like to know if there's anyway to deny acess to a specific
directory of
 LR a web-app using only TomCat through config in web.xml. Example, in a
web-app
 LR test there's a directory called conf
(CATALINA_HOME/webapps/test/conf)
 LR with some configurations file so I don´t want users accessing this
directory
 LR via URL.

 LR I tried to use security-constraint but I cannot do so much.

 LR Luiz Ricardo


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



 --
 Best regards,
  Jacobmailto:[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]




Reloading classes in shared dir

2002-12-09 Thread Luiz Ricardo
Hi everybody,

I would like to know if there is any way to configure TomCat to reload the
classes installed in CATALINA_HOME/shared.

Luiz Ricardo


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




Re: JSP error handling

2002-11-06 Thread Ricardo Moral
There are two valves used to handle errors. The first
one is the ErrorDispatcherValve. This is the valve
that will forward the request to the error page if
there is a uncaught exception. The second valve is the
ErrorReportValve wich is the last valve on the list of
valves of a Host and is used to generate a error
report in HTML. 

You don't need to add this valves by hand because they
are added by the start method of the StandardHost
implementation. If you are using other implementation
of the Host interface you must add this valves
yourself.

The exception of JSP's are stored under the attibute
'javax.servlet.jsp.jspException' of the request. But
you must access this value directly using the
'exception' variable already declared on the context
of the error page.


--- Jan Kunzmann [EMAIL PROTECTED] wrote:
 Hi there,
 
 I've a problem with JSP error handling.
 
 I tried to make custom error pages with the
 % page errorPage=... % element. If an error
 occurs during the 
 execution of my jsp page, the error page is called,
 but the 
 javax.servlet.error.* attributes do not contain any
 values.
 
 I looked into the Tomcat 4.0 source and found a
 valve called 
 ErrorDispatcherValve. Has it something to do with
 jsp error handling? I 
 tried to include the valve with Valve... and with
 Host 
 errorReportingValve=, but the error page still
 reports the attributes 
 to be null.
 
 I use Tomcat 4.0.4 from the Debian distribution with
 marginal chances in 
 server.xml.
 
 Thanks in advance,
 Jan
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Connection pool question:

2002-11-06 Thread Ricardo Moral
Send us the code of the DBQuery.java. (The shorter the
better)


--- Michael Nicholson [EMAIL PROTECTED] wrote:
 I'm building a webapp, and I want to use connection
 pooling with it.  In order to play around some, I
 made a dummy webapp that does virtually nothing, but
 uses the connection pool.  So then I cut and pasted
 some code out into the bigger webapp, but now I get
 this error:
 
 MonitorFilter::java.lang.ClassCastException:
 org.apache.commons.dbcp.BasicDataSource
 at CPPSDB.DBQuery.init(DBQuery.java:34)
 at

org.apache.jsp.Login$jsp._jspService(Login$jsp.java:127)
 at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:174)
 at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:247)
 at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
 at

org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
 at java.lang.Thread.run(Thread.java:536)
 
 My server.xml has the same resource and resource
 params for both contexts, and my web.xml has the
 same resource-ref as the dummy app, but I still get
 the same error.  Any ideas?
 
 Michael Nicholsn


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For 

Re: Connection pool question:

2002-11-06 Thread Ricardo Moral
Sorry but I cant't find nothing wrong... Please send
the part of the server.xml and web.xml files where you
have defined the references. Are you sure there are no
diferences between the two web applications?

--- Michael Nicholson [EMAIL PROTECTED] wrote:
 I'm running it through Forte/SunOneStudio, which is
 built on netbeans (I
 think).  Does that make a difference?
 
 
 - Original Message -
 From: Kwok Peng Tuck [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Tuesday, November 05, 2002 8:03 PM
 Subject: Re: Connection pool question:
 
 
  Are you running the tomcat which is built into
 Netbeans ?
 
 
  Michael Nicholson wrote:
 
  I'm building a webapp, and I want to use
 connection pooling with it.  In
 order to play around some, I made a dummy webapp
 that does virtually
 nothing, but uses the connection pool.  So then I
 cut and pasted some code
 out into the bigger webapp, but now I get this
 error:
  
  MonitorFilter::java.lang.ClassCastException:
 org.apache.commons.dbcp.BasicDataSource
  at CPPSDB.DBQuery.init(DBQuery.java:34)
  at

org.apache.jsp.Login$jsp._jspService(Login$jsp.java:127)
  at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper
 .service(IDEJspServlet.java:174)
  at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(ID
 EJspServlet.java:247)
  at

org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspSer
 vlet.java:339)
  at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
  at

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter
 .java:223)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:213)
  at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
  at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:243)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:528)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.j
 ava:142)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at

org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
  at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
  at

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

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
  at

org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
  at

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


Re: JNDI JDBC Question

2002-11-05 Thread Ricardo Moral
Are you writing the driver class name this way:
'com.ibm.as400.access.AS400JDBCDriver()'? when you
configure the BasicDataSource...? I think the problem
may be that you must not use the '()' at the end of
the class name.


--- Brian Kautz [EMAIL PROTECTED] wrote:
 I have a Class Not Found Exception error I am not
 certain how to fix.
 
 I have a file called jt400.jar in my
 CATALINA_HOME/common/lib .  My
 servlets access the classes in this jar with no
 problem.
 
 One of the classes in this jar is my JDBC Driver
 class.  Again it works
 fine from a servlet making direct connections using
 this driver.  However
 when trying to use the connect pooling, this same
 driver can not be
 accessed by the JNDI services.  My servlet gets the
 error Cannot load JDBC
 driver class
 'com.ibm.as400.access.AS400JDBCDriver()' , but
 tomcat's stdout
 records that the real problem is:
 
 Cannot load JDBC driver class
 'com.ibm.as400.access.AS400JDBCDriver()'
 java.lang.ClassNotFoundException:
 com/ibm/as400/access/AS400JDBCDriver()
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:140)
 at

org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
 rce.java:523)
 at

org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
 .java:312)
 at org.apache.jsp.jsp.JDBCTest2_jsp.
 _jspService(JDBCTest2_jsp.java:56)
 
 Why can my servlets find the driver, but the
 connection pool cannot?
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




session

2002-10-28 Thread Ricardo de Souza Moura
Did somebody already use Tomcat4.1.12 with javagroups
to do session replication ?

_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




JkAutoAlias + Apache 1.3 + WAR

2002-10-23 Thread Luiz Ricardo
Hello,

I can not access an web application deployed in a war archive. I am using
Apache 1.3 + mod_jk and in my server.xml the attribute unpackWARs is false,
in my mod_jk.conf I use JkAutoAlias. Does anyone knows if JkAutoAlias and
unpackWARs=false work?

Luiz Ricardo


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RV: Runtime.exec()

2002-10-22 Thread Ricardo Arias


-Mensaje original-
De: Ignacio J. Ortega [mailto:nacho;siapi.es]
Enviado el: Martes, 22 de Octubre de 2002 11:46 a.m.
Para: 'Ricardo Arias'
Asunto: RE: Runtime.exec()


This is a user question please use [EMAIL PROTECTED] to ask
this..

Saludos, 
Ignacio J. Ortega 
 -Original Message-
 From: Ricardo Arias [mailto:RicardoA;gentrac.com.gt]
 Sent: Tuesday, October 22, 2002 4:43 PM
 To: [EMAIL PROTECTED]
 Subject: Runtime.exec()
 
 
 Hi I read an article from the web site
 http://w6.metronet.com/~wjm/tomcat/2000/Oct/msg00082.html but 
 in the URL
 where put the aplication.exe, I tried this
 http://localhost:8080/www/page.jsp?command=cmd.exe but have 
 this message
 Error: java.io.IOException: CreateProcess: c:\winnt\cmd.exe error=2 
 I hope your answer, Thanks a lot
 Ricardo Arias.
 
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




session replication

2002-10-22 Thread Ricardo de Souza Moura
Does anybody use the javagroups session replication with tomcat4.1.12 ?

I read a article of theserverside: 
http://www2.theserverside.com/resources/articles/Tomcat/article.html
about how to use javagroups session replication, but I am getting the error:

java.lang.Exception: ManagedBean is not found with 
InMemoryReplicationManager
   at 
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:531
)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:422)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:651)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:590)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:783)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:751)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:339)
   at 
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:206)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
2)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Why ?

_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Mod_jk content length

2002-10-21 Thread Ricardo de Souza Moura
Had anybody problems with contentLength in mod_jk ?

I am using Tomcat4.1.12 e jdk 1.3.1.
I am getting this error:

- Root Cause -
java.lang.NoSuchMethodError: java.lang.StringBuffer: method 
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
   at 
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java, 
Compiled Code)
   at 
org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpRequestBase.java, 
Compiled Code)
   at 
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java, 
Compiled Code)
   at org.apache.struts.util.RequestUtils.populate(RequestUtils.java, 
Compiled Code)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java, 
Compiled Code)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java, 
Compiled Code)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java, Compiled 
Code)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java, 
Compiled Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java, Compiled 
Code)
   at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java, 
Compiled Code)
   at java.lang.Thread.run(Thread.java, Compiled Code)

This error happen because the tomcat4.1.12 try log a situation and by 
negligence a developer use a jdk1.4 resource !!!
This is not important... The important is the situation that he try log !!!

He comments about a possible bug of mod_jk in relationship a content 
length...

Had anybody already this problem ?

Thanks !!!



_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
So... my tomcat version don't work with jdk1.3.1 !!!
in the jakarta site is written:

Tomcat will operate under any Java Development Kit (JDK) environment that 
provides a JDK 1.2 (also known as Java2 Standard Edition, or J2SE) or later 
platform. You will need a Java Development Kit, as opposed to a Java Runtime 
Environment, so that your servlets, other classes, and JSP pages can be 
compiled. Tomcat 4 has been extensively tested with JDK 1.3.1, which is 
recommended

Can I use the jdk1.3.1 with Tomcat4 or not ?

Thanks 






From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 13:05:23 -0400

Andy,

There are two builds of 4.1.10 as far as I recall - one that is built with
JDK 1.4, and one that is not.  The one that is built with 1.4 is a
'lightweight' install that doesnt include various APIs that come with
1.4.

You can find both on the jakarta downloads

Steve

-Original Message-
From: Bodycombe, Andrew [mailto:andrew.bodycombe;siemens.com]
Sent: Thursday, October 17, 2002 12:28 PM
To: 'Tomcat Users List'
Subject: RE: is this a bug ?



The method 'append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;'
was introduced in JDK 1.4

If you are running this code on a previous version of the JDK
then you will get the NoSuchMethodError.

It looks like your tomcat was built using JDK1.4,
but you are running it using JDK1.3.1

A Question for the tomcat developers...
Does this mean that tomcat 4.1.10 requires JDK1.4 to work?

Andy

-Original Message-
From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
Sent: 17 October 2002 16:55
To: [EMAIL PROTECTED]
Subject: RE: is this a bug ?


I am using jdk1.3.1 with Tomcat 4.1.10.

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?
No !!!

I am using Struts Framework from Apache Jakarta !!! I don't know if they 
use

this !!!





From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 10:43:39 -0400

Hi,
Kind of a strange error.  You're using the JDK (not JRE) right?  What
version?  What version of tomcat?

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?

Yoav Shapira
Millennium ChemInformatics


 -Original Message-
 From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
 Sent: Thursday, October 17, 2002 10:27 AM
 To: [EMAIL PROTECTED]
 Subject: RE: is this a bug ?
 
 Yes !!!
 this:
 
 - Root Cause -
 java.lang.NoSuchMethodError: java.lang.StringBuffer: method
 append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
 at
 org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpReque
stBa
 se.java,
 Compiled Code)
 at
 org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpReq
uest
 Base.java,
 Compiled Code)
 at
 org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFa
cade
 .java,
 Compiled Code)
 at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java,
 Compiled Code)
 at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProces
sor.
 java,
 Compiled Code)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
,
 Compiled Code)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java,
Compiled
 Code)
 at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java,
 Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled
 Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java,
 Compiled
 Code)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
 nFilterChain.java,
 Compiled Code)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
 hain.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
 ava,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
 keNext(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
 ava,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
 keNext(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
 Compiled Code)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
 Compiled Code

RE: is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
I am using jdk1.3.1 with Tomcat 4.1.10.

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?
No !!!

I am using Struts Framework from Apache Jakarta !!! I don't know if they use 
this !!!





From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 10:43:39 -0400

Hi,
Kind of a strange error.  You're using the JDK (not JRE) right?  What
version?  What version of tomcat?

Is there somewhere in your code where your trying to append an array of
stringbuffers to a stringbuffer?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
Sent: Thursday, October 17, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: RE: is this a bug ?

Yes !!!
this:

- Root Cause -
java.lang.NoSuchMethodError: java.lang.StringBuffer: method
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
at
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpReque
stBa
se.java,
Compiled Code)
at
org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpReq
uest
Base.java,
Compiled Code)
at
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFa
cade
.java,
Compiled Code)
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java,
Compiled Code)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProces
sor.
java,
Compiled Code)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
,
Compiled Code)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java,
Compiled
Code)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled
Code)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java,
Compiled Code)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java,
Compiled Code)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java,
Compiled Code)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java,
Compiled Code)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java,
Compiled Code)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java,
Compiled
Code)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)







From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 10:18:22 -0400

Hi

is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
Does anybody knows about this error ? Please 

2002-10-17 10:16:24 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
javax.servlet.ServletException: Servlet execution threw an exception
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java, Compiled 
Code)
   at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java, 
Compiled Code)
   at java.lang.Thread.run(Thread.java, Compiled Code)


_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
But I get this error exactly with this configuration 







From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 14:11:39 -0400

Hi,

Can I use the jdk1.3.1 with Tomcat4 or not ?

Yes.  Download the heavier, non -LE-jdk14 version.

If you want to use tomcat 4 with JDK 1.4+, download the lighter,
-LE-jdk14 version.

Yoav Shapira
Millennium ChemInformatics
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:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: 
mailto:tomcat-user-help;jakarta.apache.org


_
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




come back !!! Is this a bug of mod JK ?

2002-10-18 Thread Ricardo de Souza Moura
this is a piece of code of the src HttpRequestBase of the Tomcat4.1.12
It comment about the possible bug of mod_JK, but put some lines to avoid a 
infinite loop... So this piece of code use a resource of jdk1.4 that is a 
method of StringBuffer(add(StringBuffer)). This signify that the 
Tomcat4.1.12 get a mistake if this condition happen and the jdk is not 
1.4...

My question: THere are in the Tomcat4.1.10 this line to avoid the infinite 
loop?
My app is get a infinite loop  I don't get the source of Tomcat4.1.10...
Thanks

try {
   int max = getContentLength();
   int len = 0;
   byte buf[] = new byte[getContentLength()];
   ServletInputStream is = getInputStream();
   while (len  max) {
   int next = is.read(buf, len, max - len);
   if (next  0 ) {
   break;
   }
   len += next;
   }
   is.close();
   if (len  max) {
   // FIX ME, mod_jk when sending an HTTP POST will 
sometimes
   // have an actual content length received  content 
length.
   // Checking for a read of -1 above prevents this code 
from
   // going into an infinite loop.  But the bug must be in 
mod_jk.
   // Log additional data when this occurs to help debug 
mod_jk
   StringBuffer msg = new StringBuffer();
   msg.append(HttpRequestBase.parseParameters content 
length mismatch\n);
   msg.append(  URL: );
   msg.append(getRequestURL());
   msg.append( Content Length: );
   msg.append(max);
   msg.append( Read: );
   msg.append(len);
   msg.append(\n  Bytes Read: );
   if ( len  0 ) {
   msg.append(new String(buf,0,len));
   }
   log(msg.toString());
   throw new RuntimeException
   
(sm.getString(httpRequestBase.contentLengthMismatch));
   }
   RequestUtil.parseParameters(results, buf, encoding);
   } catch (UnsupportedEncodingException ue) {
   ;
   } catch (IOException e) {
   throw new RuntimeException
   (sm.getString(httpRequestBase.contentReadFail) +
e.getMessage());
   }


_
MSN Messenger: converse com os seus amigos online. 
http://messenger.msn.com.br


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: is this a bug ?

2002-10-18 Thread Ricardo de Souza Moura
Yes !!!
this:

- Root Cause -
java.lang.NoSuchMethodError: java.lang.StringBuffer: method 
append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; not found
   at 
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java, 
Compiled Code)
   at 
org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpRequestBase.java, 
Compiled Code)
   at 
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java, 
Compiled Code)
   at org.apache.struts.util.RequestUtils.populate(RequestUtils.java, 
Compiled Code)
   at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java, 
Compiled Code)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java, 
Compiled Code)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java, Compiled 
Code)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java, 
Compiled Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled 
Code)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java, 
Compiled Code)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java, 
Compiled Code)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java, 
Compiled Code)
   at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java, Compiled 
Code)
   at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java, 
Compiled Code)
   at java.lang.Thread.run(Thread.java, Compiled Code)







From: Shapira, Yoav [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: is this a bug ?
Date: Thu, 17 Oct 2002 10:18:22 -0400

Hi,
There should have been a root cause and another stack trace attached to
that message...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Ricardo de Souza Moura [mailto:ricsouzamoura;hotmail.com]
Sent: Thursday, October 17, 2002 10:15 AM
To: [EMAIL PROTECTED]
Subject: is this a bug ?

Does anybody knows about this error ? Please 

2002-10-17 10:16:24 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java,
Compiled Code)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java,
Compiled Code)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava,
Compiled Code

GC Log in catalina.out

2002-10-11 Thread Luiz Ricardo

Hi everybody,

maybe this subject is off-topic but let me explain my problem, I ran Tomcat
as root user and java was logging the gc activity
(java -Xloggc:/usr/local/tomcat4/logs/gc.log ...) and everything was fine
but I had to change the Tomcat user to another one (tomcat4) and after this
the gc activity is not being anymore logged in
/usr/local/tomcat4/logs/gc.log, it is logging in catalina.out.

To change user root to tomcat4 I execute the following command in startup.sh
script:

su - tomcat4 -c /usr/local/tomcat4/bin/catalina.sh start

Does anyone know how to fix this?!

Luiz Ricardo


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




Tomcat cluster

2002-10-10 Thread Ricardo de Souza Moura

Has anybody any book online, or tutorial about how use Tomcat in cluster ?

Thanks !!!


_
MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
fotos: http://photos.msn.com.br


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




Re: Tomcat cluster

2002-10-10 Thread Luiz Ricardo

Here it is more links:

http://www2.theserverside.com/resources/article.jsp?l=Tomcat
http://www.onjava.com/lpt/a/2422

Luiz Ricardo
- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 10:57 AM
Subject: AW: Tomcat cluster


 Here is some brain food:

 http://www.ubeans.com/tomcat
 http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
 http://www.onjava.com/lpt/a/1228
 http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html


  -Ursprüngliche Nachricht-
  Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 15:39
  An: [EMAIL PROTECTED]
  Betreff: Tomcat cluster
 
  Has anybody any book online, or tutorial about how use Tomcat
  in cluster ?
 

 --
 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: AW: Tomcat cluster

2002-10-10 Thread Ricardo de Souza Moura

Thanks for all !!


From: Ralph Einfeldt [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: AW: Tomcat cluster
Date: Thu, 10 Oct 2002 15:57:02 +0200

Here is some brain food:

http://www.ubeans.com/tomcat
http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html
http://www.onjava.com/lpt/a/1228
http://www.javaworld.com/javaworld/jw-12-2000/jw-1221-servlets.html


  -Ursprüngliche Nachricht-
  Von: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 10. Oktober 2002 15:39
  An: [EMAIL PROTECTED]
  Betreff: Tomcat cluster
 
  Has anybody any book online, or tutorial about how use Tomcat
  in cluster ?
 

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




_
Converse com seus amigos online, faça o download grátis do MSN Messenger: 
http://messenger.msn.com.br


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




RE: Doubt about multiple applications

2002-10-02 Thread Ricardo de Souza Moura

I think that the Tomcat isn't load my jar file to the classpath...
Actualy My jar file is a jdbc driver. And my error message is:  no suitable 
driver. Thus my jar file wasn't load or the Tomcat don't put this in the 
classpath.
I have a xerces.jar in the lib directory of Tomcat, Can it be the mistake ?

if I put app by app in the Tomcat, all works !!!
When I put the jar file in the lib directory of Tomcat, all works too !!!


From: Cox, Charlie [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Doubt about multiple applications
Date: Wed, 2 Oct 2002 13:31:57 -0400

what error are you getting? did you look in the error logs?

Charlie

  -Original Message-
  From: David Mossakowski [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 02, 2002 4:02 PM
  To: Tomcat Users List
  Subject: Re: Doubt about multiple applications
 
 
  There is no reason for this to be the case.  You must be
  doing something
  else wrong.
 
  There is nothing stopping you from copying application
  webapps/A into a
  directory called webapps/Aprime and still have this
  application working
  (this requires using links in JSPs that dont hardcode A as in
  href=/A/something.jsp of course).
 
  d.
 
  Ricardo de Souza Moura wrote:
   I am using Tomcat 4.0...
   I have two applications, A and B
  
   in the lib directory of A I have a file1.jar, and in the
  lib directory
   of B I have the same file, file1.jar.
  
   I am not wanting to put my file file1.jar in the lib
  directory of Tomcat.
  
   But when the Tomcat load the applications, only one get access this
   resource, file1.jar. Why ?
  
   Only one application works...
  
   But if I put only one application by time all works 
  
   Sorry my bad English !!!
   Thanks !!!
  
   _
   MSN Photos é a maneira mais fácil e prática de editar e
  compartilhar sua
   fotos: http://photos.msn.com.br
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
  
 
  --
  David Mossakowski  [EMAIL PROTECTED]
  Instinet Corporation 212.310.7275
 
 
 
  **
  **
  Disclaimer
 
  This message is intended only for the use of the Addressee and
  may contain information that is PRIVILEGED and/or
  CONFIDENTIAL or both.
 
  This email is intended only for the personal and confidential use
  of the recipient(s) named above.
 
  If the reader of this email is not an intended recipient, you have
  received this email in error and any review, dissemination,
  distribution or copying is strictly prohibited.
 
  If you have received this email in error, please notify the sender
  immediately by return mail and permanently deleting the copy
  you received.
 
  Thank you.
 
  **
  **
 
 
  --
  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]




_
Converse com seus amigos online, faça o download grátis do MSN Messenger: 
http://messenger.msn.com.br


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




Load balancing + replicated sessions

2002-10-01 Thread Luiz Ricardo

Hi,

I would like to know if there is a way to configure Tomcat + Apache to
replicate sessions under a load balancing configuration.

Example, I have two Tomcat instances (TC1 and TC2) and the session in TC1
would be replicated in TC2 and the sessions in TC2 would be replicated in
TC1, so if TC1 crashes the requests would be redirected to TC2 without lost
sessions and vice-versa.

Luiz Ricardo


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




Re: Load balancing + replicated sessions

2002-10-01 Thread Luiz Ricardo

thanks so much.

Luiz Ricardo
- Original Message -
From: Ben Ricker [EMAIL PROTECTED]
To: Tomcat-Users List [EMAIL PROTECTED]
Sent: Tuesday, October 01, 2002 11:33 AM
Subject: Re: Load balancing + replicated sessions


 See http://www.theserverside.com/resources/article.jsp?l=Tomcat. you can
 do in memmory session replication across JVMs through TCP.

 Ben Ricker

 On Tue, 2002-10-01 at 09:29, Luiz Ricardo wrote:
  Hi,
 
  I would like to know if there is a way to configure Tomcat + Apache to
  replicate sessions under a load balancing configuration.
 
  Example, I have two Tomcat instances (TC1 and TC2) and the session in
TC1
  would be replicated in TC2 and the sessions in TC2 would be replicated
in
  TC1, so if TC1 crashes the requests would be redirected to TC2 without
lost
  sessions and vice-versa.
 
  Luiz Ricardo
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 --
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com


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


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




Doubt about multiple applications

2002-10-01 Thread Ricardo de Souza Moura

I am using Tomcat 4.0...
I have two applications, A and B

in the lib directory of A I have a file1.jar, and in the lib directory of B 
I have the same file, file1.jar.

I am not wanting to put my file file1.jar in the lib directory of Tomcat.

But when the Tomcat load the applications, only one get access this 
resource, file1.jar. Why ?

Only one application works...

But if I put only one application by time all works 

Sorry my bad English !!!
Thanks !!!

_
MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
fotos: http://photos.msn.com.br


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




Re: Problem with classNotFound and multiples contexts

2002-10-01 Thread Ricardo de Souza Moura

I had the same problem, and my solution was putting my jar file in the lib 
Tomcat, but I think that this is not the best solution...



From: Thomas Eichberger [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Problem with classNotFound and multiples contexts
Date: Tue, 01 Oct 2002 21:03:22 +0200

maybe you should give it to the lib directory of tomcat itself

At 14:56 01.10.2002 -0400, Rafael Angarita wrote:
Hi!

I have a tomcat 3.3.1 server with two contexts, root (default) and c1, 
both of them have its own WEB-INF/lib directory. The file  j0.jar is 
copied in each WEB-INF/lib directory but when the server starts  the 
server indicates a ClassNotFoundException but  the class in in  j0 .jar
If I set the classpath explicitly with the j0.jar,  everything works 
fine.
It's not supposed  all the .jar  in the lib directory are included in 
the classpath for that context?

Any suggestions?, thanks in advance

--

Rafael Angarita




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




_
Converse com seus amigos online, faça o download grátis do MSN Messenger: 
http://messenger.msn.com.br


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




Re: urgent: The stream has been closed

2002-08-22 Thread Luiz Ricardo

Perhaps you've already got the PrintWriter with getWriter() method.

Luiz Ricardo
- Original Message -
From: Rum Pel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 4:50 AM
Subject: urgent: The stream has been closed


 When I do the following,
 ServletOutputStream out = resp.getOutputStream();
  out.println(html);
 out.flush();
 I am getting the following exception at out.flush():

 java.io.IOException: The stream has been closed
 at
 org.apache.catalina.connector.ResponseStream.flush(ResponseStream.jav
 a:237)


 It seems the stream has already been closed earlier, but I have
 not written any out.close() statements anywhere. Does anybody have
 a clue why this error appears?

 Thanks in advance,
 --rp

 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx


 --
 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: WebApp ADMIN + TomCat 4.1.9

2002-08-16 Thread Luiz Ricardo

Hi,

I am sorry, the translated message is: The system cannot find the specified
file. A note, the file is right there.

Luiz Ricardo
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, August 15, 2002 6:37 PM
Subject: Re: WebApp ADMIN + TomCat 4.1.9




 On Thu, 15 Aug 2002, Luiz Ricardo wrote:

  Date: Thu, 15 Aug 2002 15:58:18 -0300
  From: Luiz Ricardo [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat-User List [EMAIL PROTECTED]
  Subject: WebApp ADMIN + TomCat 4.1.9
 
  Hi,
 
  I am trying to run the webapp admin from Tomcat 4.1.9 and I am catching
the
  following exception. Does anybody know why this is happening?
 
  I am using a Windows ME + J2SDK 1.4.0 + Tomcat 4.1.9-LE.
 
  The exception is at attachment.
 
  Luiz Ricardo
 

 (Showing my language ignorance) - Would it be possible to translate the
 sentence immediately after Root Cause (about half way down).  This
 message is probably the key to what is going on.

 Craig



 --
 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: WebApp ADMIN + TomCat 4.1.9

2002-08-16 Thread Luiz Ricardo

Worked it out, I created a temp directory at my CATALINA_HOME and 'bingo'.
But this directory was not created when I installed Tomcat 4.1.9. I
installed the package jakarta-tomcat-4.1.9-LE-jdk14.tar.gz in a machine
Windows maybe this package is recommended to Unix machines.

Thanks.

Luiz Ricardo
- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 16, 2002 8:34 AM
Subject: Re: WebApp ADMIN + TomCat 4.1.9


 Luiz Ricardo wrote:
  Hi,
 
  I am sorry, the translated message is: The system cannot find the
specified
  file. A note, the file is right there.

 Then you need to make sure that the temp directory exists (in
 %CATALINA_HOME% or %CATALINA_BASE% if you're using it).

 The default install (all distribution) creates it, so I wonder why there
 is a problem.

 Remy


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




WebApp ADMIN + TomCat 4.1.9

2002-08-15 Thread Luiz Ricardo

Hi,

I am trying to run the webapp admin from Tomcat 4.1.9 and I am catching the
following exception. Does anybody know why this is happening?

I am using a Windows ME + J2SDK 1.4.0 + Tomcat 4.1.9-LE.

The exception is at attachment.

Luiz Ricardo


2002-08-15 15:40:02 WebappLoader[/admin]: Deploying class repositories to work 
directory C:\tomcat4.1.9\work\Standalone\localhost\admin
2002-08-15 15:40:02 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to 
C:\tomcat4.1.9\bin\..\webapps\..\server\webapps\admin\WEB-INF\classes
2002-08-15 15:40:02 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to 
C:\tomcat4.1.9\bin\..\webapps\..\server\webapps\admin\WEB-INF\lib\struts.jar
2002-08-15 15:40:02 ContextConfig[/admin] Exception processing JAR at resource path 
/WEB-INF/lib/struts.jar
javax.servlet.ServletException: Exception processing JAR at resource path 
/WEB-INF/lib/struts.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3445)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at 
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
at org.apache.commons.digester.Digester.endElement(Digester.java:830)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1302)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2188)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.io.IOException: O sistema não pode encontrar o caminho especificado
at java.io.Win32FileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1294)
at java.io.File.createTempFile(File.java:1382)
at java.io.File.createTempFile(File.java:1419)
at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java

Tomcat 4.1.8 is not finding jar files

2002-08-02 Thread Luiz Ricardo

Hi,

I am trying to run the admin webapp and I am catching an IOException
telling me that it can not find my jar files in /WEB-INF/lib but the files
are there. The same problem is occurring when I try to run the Struts
webapps. Does someone know why this is happening?!

I am using Tomcat 4.1.8-LE, Struts 1.1b1 in a Windows Me machine with JDK
1.4.

Luiz Ricardo


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




RE: Verisign CSR generation for Tomcat

2002-02-06 Thread Artigas, Ricardo Y.

See sun's documentation on keytool (included in jdk's):
http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/keytool.html 
Hope this helps.

:~)
Ricky Y. Artigas
Database Administrator /
Analyst/Programmer 
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Garske, Tom [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, February 07, 2002 3:13 AM
 To:   [EMAIL PROTECTED]
 Subject:  Verisign CSR generation for Tomcat
 
 
 I've been trying to locate any documentation on how generate an SSL
 certificate(CSR)that can be submitted to Verisign via tomcat, however I've
 been unsuccessful in doing so.  The link below, only shows how to create a
 keystore and this obviously cannot be submitted to a CA. If someone could
 forward any links or examples on how to do this, or if it's even possible,
 it would be much appreciated.
 http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html
 
 Thank you
 
 
 --
 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: JDBC driver

2002-01-29 Thread Artigas, Ricardo Y.

I think you can just put it anywhere as long as the pathname is in your
CLASSPATH setting. E.g. CLASSPATH=/path/to/jar_file.jar

:~)
Ricky Y. Artigas
Database Administrator /
Analyst/Programmer 
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: chad kellerman [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, January 30, 2002 3:14 AM
 To:   Tomcat
 Subject:  JDBC driver
 
 Hey Guys,
 
 Hello to you all.  I am trying to install the Tomcat with
 apache1.3.22.  I have to admin the installation overview on 
 
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/BUILDING.txt
 
 needs a little work.  I am working on on part 8.  Download and Install
 JDBC Optional Package API Binary Distribituion.  Here is what it says
 
 
 8.  Download and Install JDBC Optional Package API Binary Distribution
 
 * Download the JDBC Optional Pacakge API package (version 2.0) from:
 
 http://java.sun.com/products/jdbc/download.html
 
 * Place the jar in a convenient location.
 
 
 The problem I have is * Place the jar in a convenient location..  I
 think this is a little obscure.  Actaully kind of funny.  
 
Getting to the point.  Anyone have any recommendations on where to
 put this on a redhat6.2 box?
 
 THanks,
 Chad
 
 
 
 
 --
 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: new photos from my party!

2002-01-28 Thread Artigas, Ricardo Y.

Yes it is.

:~)
Ricky Y. Artigas
Database Administrator /
Analyst/Programmer 
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Moin Anjum H [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, January 28, 2002 6:19 PM
 To:   Tomcat Users List
 Subject:  Re: new photos from my party!
 
 Hi,
 Can anybody explain me what is this?... is this a virus?
 
 Best Regards
 Moin.
 
 [EMAIL PROTECTED] wrote:
 
  Hello!
 
  My party... It was absolutely amazing!
  I have attached my web page with new photos!
  If you can please make color prints of my photos. Thanks!
 
  Name: www.myparty.yahoo.com
 www.myparty.yahoo.comType: MS-DOS Application
 (application/x-unknown-content-type-comfile)
  Encoding: x-uuencode
 
  --
  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]




Custom Authentication

2002-01-22 Thread Ricardo Ramalho

Hi all! ;)

I have to migrate a Web Application from Allaire JRun to Tomcat 4.0.1.

I have a custom Authentication created by us. How can i use it under TomCat
4.0.1? Information is very non-existant or I'm just to dumb to find it!
:))

Another question: Do i have a InitialContext ? If i have so... where is
it? If it doesn't exist, it's no problemat all. I'll simply use the usual
method to access the MySQL database without aquiring the DataSources from
InitialContext (wich maybe it's something from J2EE).

Sorry for my poor English.

Thanks for any help you can give me! :)

Ricardo Ramalho
Carcavelos Lisbon Portugal
E-Works
http://www.eworks.pt



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Custom Authentication

2002-01-22 Thread Ricardo Ramalho

Hi ppl! Again

It looks like i wasn't very accurate in my first question here...
What i wanted to do is something like this: (hope you guys can help) This is
my actual Athentication class, with uses BASIC login.


import java.lang.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.security.*;
import allaire.jrun.util.*;
import allaire.jrun.security.*;

public class Autentica implements AuthenticationInterface
{
/**
 * Initialize the authentication service
 * @param props The properties for the service
 */
public void init(OrderedProperties props) throws Exception
{
//Não se faz nada aki
}

/**
 * Destroy the service
 */
public void destroy()
{
//Não se faz nada aki
}

/**
 * Authenticate the given user with the given credentials (such
 * as a password).
 * @param req The servlet request
 * @param username The username to authenticate
 * @param method The type of authentication method (BASIC, DIGEST, FORM,
 * or CLIENT-CERT)
 * @param credentials Password and/or other credentials necessary
 * in authenticating the user
 * @return The Principal associated with the given username, or null
 * if authentication failed
 */
public Principal authenticate(HttpServletRequest req, String username,
String password) {
Principal principal = null;
  //tipos para a ligação à base de dados
  Connection dbCon = null;
  Statement dbStat = null;
  String sqlStat = null;
  ResultSet dbRes = null;

// If we have a password, attempt to validate it
if (password != null) {
try {
String dbPass = null;
//Acesso à base de dados - apanhar uma
conecção da pool de conexoes do JRun
   InitialContext ctx = new InitialContext();
   DataSource ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/test_db);
   dbCon = ds.getConnection();
   dbStat = dbCon.createStatement();
sqlStat = SELECT passwd FROM users WHERE
user=' + username + ';
dbRes = dbStat.executeQuery(sqlStat);
dbRes.next();
dbPass = dbRes.getString(1);
if (dbPass.equals(password)) {
principal = new
AuthenticatedPrincipal(username);
}
} catch (Exception e) {
e.printStackTrace();
}
}
return principal;
}

/**
 * Determines if the given principal (user) has been granted the
 * given role within this authentication realm.
 * @param principal The principal (user) to verify
 * @param role The role to verify
 * @return true if the principal is part of the given role
 */
public boolean isPrincipalInRole(Principal principal, String role)
{
return true;
}
}


Thank you for any help in advance

-
Ricardo Ramalho
Carcavelos Lisbon Portugal
EWorks Consulting
-



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problems with GET method

2002-01-14 Thread Luiz Ricardo

Hi,

I am trying to pass some parameters to my app by URL but when I try to get
them I always get the null value when the parameter value contains the equal
sign (=).

If I try process the following URL
www.server.com/page.jsp?var1=where+col=val and use
request.getParameter(var1), it returns null.

I would like to know if someone has faced this problem and/or has some
solution?!

Luiz Ricardo


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Question on TOMCAT running in the AS/400

2002-01-04 Thread CHAVEZ RICARDO (SYS1RBC)


I am doing a research of the Apache server using the TOMCAT server to run
servlets and JSPs. Currenlty I'm using the AS/400 web server and the
websphere standard edition to run Servlets and JSPs under the AS/400
operating system.
My question is Is anyone upthere using the Apache Server with TOMCAT in the
AS/400?
If yes How long you been using it and how is the performance and
stability?

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Difference: TOMCAT and APACHE

2002-01-03 Thread Artigas, Ricardo Y.

Yes you could also use TOMCAT as web server but in terms of serving static
(html) pages, they say it's not as fast as Apache. It is advisable to use
Tomcat for serving the servlet and jsp files only. I don't know if this has
changed with Tomcat 4.

You can integrate TOMCAT with IIS or Apache so that IIS or Apache will serve
the static pages while servlets and jsp files are served by TOMCAT. This
way, you get the best of both with Tomcat serving jsp and servlets while
Apache or IIS serving html/static pages.

TOMCAT can't interpret ASP. Only IIS.

HTH.

:~)
Ricky Y. Artigas
Database Administrator /
Analyst/Programmer 
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Mando Ruckotte [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, January 04, 2002 12:27 PM
 To:   [EMAIL PROTECTED]
 Cc:   [EMAIL PROTECTED]
 Subject:  RE: Difference: TOMCAT and APACHE
 
 Sir Lai, 
 
 you mean i could use TOMCAT alone as an HTTP/WEB
 Server?
 
 for use with servlets and JSP?
 
 And also why do they integrate TOMCAT to IIS or
 APACHE?
 
 Can TOMCAT implement ASP?
 
 
 Cheers,
 
 Mando
 Forgive me, im a newbie =)
 
 
 
 --- Lai Kok Cheong [EMAIL PROTECTED] wrote:
  
  If you wre to implement servlets then amongst the
  three options , tomcat has
  to be in your wishlist
  Apache and IIS is only use to serves static pages (
  we exclude iis for .asp
 
 
 
 __
 Do You Yahoo!?
 Send your FREE holiday greetings online!
 http://greetings.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: JDBC Driver for MS SQL Server

2001-12-18 Thread Artigas, Ricardo Y.

Assuming prodserver is the database name and pe_orders is the table name,
try prodserver..pe_orders instead of prodserver.pe_orders.

HTH.

:~)
Ricky Y. Artigas
Database Administrator /
Analyst/Programmer 
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Jack Li [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 5:01 AM
 To:   'Tomcat Users List'
 Subject:  RE: JDBC Driver for MS SQL Server
 
 Thanks for quick reply. But I still get the error:
 [MERANT][SQLServer JDBC Driver][SQLServer]Invalid object name
 'prodserver.pe_orders'.
 
 Here is thre program
 
 
 String m_Class = com.merant.datadirect.jdbc.sqlserver.SQLServerDriver;
 String m_Connector = jdbc:merant:sqlserver://prodserver:1433;
 String m_Username = ;
 String m_Password = ;
 Connection con = null;
 
  try{
  Class.forName(m_Class);
  con = DriverManager.getConnection(m_Connector, m_Username,
 m_Password);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(Select * from
 prodserver.pe_orders);
if(rs.next()){
   out.println(rs.getString(Order_No));
}
rs.close();
if(st!=null)st.close();
if(con!=null)con.close();
  }catch(ClassNotFoundException e){
  out.println(class not found:  + e.getMessage());
  }catch(SQLException e){
  out.println(e.getMessage());
  }catch(Exception e){
   out.println(e.getMessage());
  }
 
 
 What's I missed?
 
 Thanks,
 Jack
 
 
 
 
 
 -Original Message-
 From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 3:51 PM
 To: Tomcat Users List
 Subject: RE: JDBC Driver for MS SQL Server
 
 
 Way off topic. If you are getting invalid object then it is because it
 doesn't understand your statement. You likely have to qualify your
 statement better.
 
 
 instead of SELECT * from table_name
 
 you need SELECT * FROM dbo.table_name
 
 post this to SQL people though
 
 
 -Original Message-
 From: Jack Li [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 3:48 PM
 To: 'Tomcat Users List'
 Subject: RE: JDBC Driver for MS SQL Server
 
 
 Hi,
 The default port is 1433. Now I got the connection to SQL Server. However,
 there are several databases in SQL Server. prodserver is one of the
 databases. When I query a table, it says it is invalid object name. How to
 access a table in a database?
 
 Thanks
 Jack
 
 -Original Message-
 From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 12:44 PM
 To: Tomcat Users List
 Subject: RE: JDBC Driver for MS SQL Server
 
 
 Hmmm, this might be getting off topic, but, yes, they have gone back and
 forth between named pipes and TCP/IP (with 2k) as
 default. Do you have a firewall in the way? Say your servlet is on the DMZ
 and the dbase is on the private (I hope!)
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 11:53 AM
 To: Tomcat Users List
 Subject: RE: JDBC Driver for MS SQL Server
 
 
 
   Certain versions of SQL Server (6.5 I know, others maybe) don't
 enable TCP/IP access by default.  Contact your DBA for more assistance.
 
   Randy
 
  -Original Message-
  From: Jack Li [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 18, 2001 11:24 AM
  To: 'Tomcat Users List'
  Subject: RE: JDBC Driver for MS SQL Server
  
  
  Hi,
  Now, After I put three jar files in tomcat/lib, program is 
  able to locate
  the classes. But I have another error:
  
  [Microsoft][SQLServer JDBC Driver]Error establishing socket.
  
  What is it?
  
  Here is the progrm:
  
  String m_Class = com.microsoft.jdbc.sqlserver.SQLServerDriver;
  String m_Connector = jdbc:microsoft:sqlserver://prodserver:1433;
  String m_Username = ;
  String m_Password = ;
  Connection con = null;
  
   try{
   Class.forName(m_Class);
   con = DriverManager.getConnection(m_Connector, 
  m_Username, m_Password);
   }catch(ClassNotFoundException e){
   out.println(class not found:  + e.getMessage());
   }catch(SQLException e){
   out.println(e.getMessage());
   }catch(Exception e){
  out.println(e.getMessage());
   }
   
  
  
  
  
  Thanks,
  
  Jack
  
  -Original Message-
  From: Jack Li [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 

RE: JDBC Driver for MS SQL Server

2001-12-18 Thread Artigas, Ricardo Y.

correct!

:~)
Ricky Y. Artigas
Database Administrator /
Analyst/Programmer 
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Scott Hodson [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, December 19, 2001 10:07 AM
 To:   Tomcat Users List
 Subject:  RE: JDBC Driver for MS SQL Server
 
 or
 
 prodserver.dbo.pe_orders
 
 where dbo is the owner of the database.  if dbo is not the owner then
 specify who the owner is there.
 
 -Original Message-
 From: Artigas, Ricardo Y. [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 5:42 PM
 To: Tomcat Users List
 Subject: RE: JDBC Driver for MS SQL Server
 
 
 Assuming prodserver is the database name and pe_orders is the table name,
 try prodserver..pe_orders instead of prodserver.pe_orders.
 
 HTH.
 
 :~)
 Ricky Y. Artigas
 Database Administrator /
 Analyst/Programmer
 Information Technology Division
 Easycall Communications Phils., Inc.
  ---
  IMPORTANT NOTICE:
 
  This message (and any attachment hereto) may contain privileged and/or
  confidential information specific to EasyCall. If you are not the
 intended
  addressee indicated in this message, you may not copy or disseminate
 this
  message (or any attachment hereto) to anyone. Instead, please destroy
 this
  message (and any attachment hereto), and kindly notify the sender by
 reply
  email. Any information in this message (and any attachment thereto) that
  do not relate to the official business of EasyCall shall be understood
 as
  neither given nor endorsed by the company.
 
 
  -Original Message-
  From:   Jack Li [SMTP:[EMAIL PROTECTED]]
  Sent:   Wednesday, December 19, 2001 5:01 AM
  To: 'Tomcat Users List'
  Subject:RE: JDBC Driver for MS SQL Server
 
  Thanks for quick reply. But I still get the error:
  [MERANT][SQLServer JDBC Driver][SQLServer]Invalid object name
  'prodserver.pe_orders'.
 
  Here is thre program
 
 
  String m_Class = com.merant.datadirect.jdbc.sqlserver.SQLServerDriver;
  String m_Connector = jdbc:merant:sqlserver://prodserver:1433;
  String m_Username = ;
  String m_Password = ;
  Connection con = null;
 
   try{
   Class.forName(m_Class);
   con = DriverManager.getConnection(m_Connector, m_Username,
  m_Password);
   Statement st = con.createStatement();
   ResultSet rs = st.executeQuery(Select * from
  prodserver.pe_orders);
   if(rs.next()){
  out.println(rs.getString(Order_No));
   }
   rs.close();
   if(st!=null)st.close();
   if(con!=null)con.close();
   }catch(ClassNotFoundException e){
   out.println(class not found:  + e.getMessage());
   }catch(SQLException e){
   out.println(e.getMessage());
   }catch(Exception e){
  out.println(e.getMessage());
   }
 
 
  What's I missed?
 
  Thanks,
  Jack
 
 
 
 
 
  -Original Message-
  From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 18, 2001 3:51 PM
  To: Tomcat Users List
  Subject: RE: JDBC Driver for MS SQL Server
 
 
  Way off topic. If you are getting invalid object then it is because it
  doesn't understand your statement. You likely have to qualify your
  statement better.
 
 
  instead of SELECT * from table_name
 
  you need SELECT * FROM dbo.table_name
 
  post this to SQL people though
 
 
  -Original Message-
  From: Jack Li [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 18, 2001 3:48 PM
  To: 'Tomcat Users List'
  Subject: RE: JDBC Driver for MS SQL Server
 
 
  Hi,
  The default port is 1433. Now I got the connection to SQL Server.
 However,
  there are several databases in SQL Server. prodserver is one of the
  databases. When I query a table, it says it is invalid object name. How
 to
  access a table in a database?
 
  Thanks
  Jack
 
  -Original Message-
  From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 18, 2001 12:44 PM
  To: Tomcat Users List
  Subject: RE: JDBC Driver for MS SQL Server
 
 
  Hmmm, this might be getting off topic, but, yes, they have gone back and
  forth between named pipes and TCP/IP (with 2k) as
  default. Do you have a firewall in the way? Say your servlet is on the
 DMZ
  and the dbase is on the private (I hope!)
 
  -Original Message-
  From: Randy Layman [mailto:[EMAIL PROTECTED

question...

2001-12-06 Thread Ricardo Guerrero

hi

I've installed jakarta-tomcat but i didnt found
any way to run it in background or as an
aplication that my O.S. (windows 2000)
runs at start.

i hope you can help me.

Ricardo Guerrero
Intituto Nacional de Estadistica Geografia e Informatica
MEXICO



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0 Apache with Client Certs

2001-09-26 Thread Ricardo

This property is actually set to TRUE, but i can't get SSL properties.


Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 10:13 PM
Subject: Re: Tomcat 4.0  Apache with Client Certs




On Tue, 25 Sep 2001, Ricardo wrote:

 Date: Tue, 25 Sep 2001 12:54:45 +0200
 From: Ricardo [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat 4.0  Apache with Client Certs

 I'm using Tomcat 4.0 b5 standalone with client authentication.
 In this situation Tomcat only exports information about the CIPHER_SUITE
and
 KEY_SIZE ... what about client certificate ?!?!?!


Tomcat 4 (stand alone) will only export client certificates if you tell
the SSL connector that you require them.  To do so, change the
clientAuth property to true.

 Thanks,
 
 Ricardo Borillo Domenech
 Programació - Servei d'Informàtica
 Universitat Jaume I

Craig McClanahan






RE: Tomcat 3.2.2 crashes with JDBC

2001-09-26 Thread Artigas, Ricardo Y.

Are you using the JDBC-ODBC bridge packaged with jdk? If so, it may be the
cause of the problem. Try using another driver (type 3 or 4?). I've learned
that the JDBC-ODBC bridge is not suggested for production use. HTH.

:~)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Vara Prashanth [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, September 27, 2001 7:22 AM
 To:   [EMAIL PROTECTED]
 Subject:  Tomcat 3.2.2 crashes with JDBC
 
 Hello all:
 
 I am facing a problem when I use JDBC to query a microsoft access database
 on a win2K advanced server! I was testing the system for stability using
 JMeter which essentially passes requests to a servlet. The servlet in turn
 queries an access database and responds. When the number of threads
 increases I get an error while closing the DB connection and Tomcat
 crashes
 producing a log file. I will be happy to send out the log file if
 required.
 Can you please help me solve the problem? Is this a problem with the
 access
 driver or with access or with my servlet or tomcat(although very
 unlikely!)
 
 Thanks in advance
 
 Prashanth
 
 
 
 _
 
 Do You Yahoo!?
 
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 



RE: Thawte, SSL, and Tomcat

2001-09-26 Thread Artigas, Ricardo Y.

Have you looked at the server.xml file in your tomcat's conf directory
already? You'll find brief instructions there or you can check out java's
keytool at : http://java.sun.com/j2se/1.3/docs/tooldocs/win32/keytool.html.
hth.

from server.xml
!--
Uncomment this for SSL support. 
You _need_ to set up a server certificate if you want this
to work, and you need JSSE.
1. Add JSSE jars to CLASSPATH 
2. Edit java.home/jre/lib/security/java.security
   Add:
   security.provider.2=com.sun.net.ssl.internal.ssl.Provider
3. Do: keytool -genkey -alias tomcat -keyalg RSA
   RSA is essential to work with Netscape and IIS.
   Use changeit as password. ( or add keypass attribute )
   You don't need to sign the certificate.
 
You can set parameter keystore and keypass if you want 
to change the default ( user.home/.keystore with changeit )
 --

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler 
 
value=org.apache.tomcat.service.http.HttpConnectionHandler/
Parameter name=port 
value=8443/
Parameter name=socketFactory 
value=org.apache.tomcat.net.SSLSocketFactory /
/Connector





:~)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Jon Shoberg [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, September 27, 2001 6:41 AM
 To:   [EMAIL PROTECTED]
 Subject:  Thawte, SSL, and Tomcat
 
 
 Hypothetical situation ...
 
   I have the domain secure.foobar.com and a Thawte SSL certificate
 configured with Apache (mod_ssl).  The file provided back from Thawte is
 called secure.foobar.com.crt.  Is there a way to use that certificate in
 setting up https://secure.foobar.com:8443/myWebApp/ ? Do I have to go back
 to Thawte for another cert if I want to provide SSL though tomcat?
 
   Does anyone have, literally, blind instructions for setting up a
 commercial SSL cert?  The current docs are pretty good but I am looking
 for
 something related to tomcat 3.x.x which covers creation and install of a
 commercial cert.
 
 Thanks
 
 



RE: OutOfMemoryError from Tomcat 3.2

2001-09-26 Thread Artigas, Ricardo Y.

I've learned that you can use  -Xms128m -Xmx256m (The java command line
option) which means the heap will start at 128m and
grow to 256m
If you haven't done so, It would be best testing your app first (use
verboseGC)
to check the memory usage and then setting both parameters to the same no.

I got the following lines from one of the emails which you may find useful:

...To set this, you can establish an environment variable
named TOMCAT_OPTS (Tomcat 3.x) that contains
the command line options to be sent to the JVM.  For example:

  export TOMCAT_OPTS=-Xmx256m
  $TOMCAT_HOME/bin/tomcat.sh start 


HTH.

:~)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Matt Fisher [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, September 27, 2001 9:06 AM
 To:   [EMAIL PROTECTED]
 Subject:  OutOfMemoryError from Tomcat 3.2
 
 Hello,
 
 I have an application running on a Windows2000 server, using Tomcat 3.2,
 Apache
 1.3.20, and a SQL Server 2000 database. This application will be going
 live next
 week. The initial user base will be approximately 20, but ultimately we
 will
 have a user base of 100+.
 
 During our stress testing today (approximately 20 simultaneous sessions),
 we
 started getting a lot of errors (java.lang.OutOfMemoryError) on the
 server. The
 errors are logged in Tomcat's jvm.stderr logfile. They started occurring
 during
 the stress test, and stopped occurring thereafter.
 
 I have read that on Solaris, Tomcat 3.2 may get OutOfMemory errors if
 there are
 too many sessions at one time. Our server is running Windows 2000, but I
 wonder
 if our problems also stem from too many sessions. If so, is there a
 parameter we
 can tweak, a fix for Tomcat 3.2, or a new release which addresses this
 issue?
 
 During a previous incident where OutOfMemory errors were occurring, I
 checked
 the Windows 2000 performance monitor. Memory usage was approximately 10%
 of the
 1 gigabyte capacity. It strikes me as odd that we'd get OutOfMemory
 errors,
 unless the JVM only has access to a small portion of the machine's memory.
 
 We also saw index out of bounds errors during the stress test, but I am
 guessing that this is somehow related to the memory errors.
 
 Any help you can provide would be appreciated.
 
 Yours,
 
  - Matt Fisher
 . . . . . . . . . . . . . . .
 Matthew J. Fisher
 Applications Programmer
 University of Chicago Press
 1427 E. 60th Street
 Chicago, IL 60637-2954
 Tel 773-834-5386



Re: Tomcat 4.0 Apache with Client Certs

2001-09-25 Thread Ricardo

I'm using Tomcat 4.0 b5 standalone with client authentication.
In this situation Tomcat only exports information about the CIPHER_SUITE and
KEY_SIZE ... what about client certificate ?!?!?!

Thanks,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I
- Original Message -
From: Matias Bahlenberg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 25, 2001 10:23 AM
Subject: Re: Tomcat 4.0  Apache with Client Certs


Hi,

I have tried to get the client certificate information too, but with no
success. I use Apache 1.3.19 with Tomcat 4.0.

I have been told that when using a connector with Apache  mod_ssl it is
essential to specify SSLOptions +StdEnvVars +ExportCertData. Otherwise
mod_ssl will not produce the neccessary environment variables for the
connector.

When I use a connector to JRun, I use the below code to get the
client-information:

---
java.security.cert.X509Certificate certApache = null;
String certData = request.getHeader(SSL_CLIENT_CERT);
if(certData!=null) {
ByteArrayInputStream inStream  = new
ByteArrayInputStream(certData.getBytes());
java.security.cert.CertificateFactory cf =
java.security.cert.CertificateFactory.getInstance(X.509);
certApache =
(java.security.cert.X509Certificate)cf.generateCertificate(inStream);
inStream.close();
}

if(certApache!=null) {
certSubject  = certApache.getSubjectDN().getName();
certIssuer   = certApache.getIssuerDN().getName();
certSerialNumber = certApache.getSerialNumber().toString();
}

---

Unfortunately, it seems like the mod_webapp-connector (warp) does not
support the export of client certificate information. They have told me that
Tomcat 4.0 can be accessed by using the mod_jk (ajp13) as a connector. I
have not get it worked yet.

If someone makes it work, please let me (us) knowan how!!!

// Matias


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 24, 2001 5:58 PM
Subject: Tomcat 4.0  Apache with Client Certs


 Scenario

 I have apache passing any calls to servlets through to Tomcat 4 via
 the mod_webapp connector.
 My Server certificate and my client certificates work fine to allow
 specific users onto the system.

 ProblemProblemProblemProblemProblem

 In Tomcat 3.2.3 it was possible using AJP13 to access Client
 Certificate information via
 request.getAttribute(javax.servlet.request.X509Certificate) from
 within my tomcat servlet. In Release 4.0 using the warp connector this
 doesn`t appear to be the case. When i debug/view my request object for
 it`s attributes there are none present. No CIPHER_SUITE or
 X509Certificate.

 Please can someone tell me how i should be accessing client
 certificate information from within Tomcat 4.0 via apache.

 My System

 Apache-ssl 1.3
 Tomcat 4.0
 mod_webapp.so
 Linux Redhat 7.1

 Here is an extract of my httpd.conf

 VirtualHost www.xx.co.uk:443
 SSLEnable
 SSLCertificateFile /usr/local/ssl/www.xxx.crt
 SSLCertificateKeyFile /usr/local/ssl/www.xxx.key
 SSLCACertificateFile /usr/local/ssl/xxx.pem
 SSLVerifyClient 2
 SSLVerifyDepth 10
 SSLFakeBasicAuth
 SSLExportClientCertificates
 SSLCacheServerPort /usr/logs/gcache_port
 SSLCacheServerPath ./bin/gcache
 SSLSessionCacheTimeout 30
 SSLRequiredCiphers RC4-MD5
 SSLCacheServerPath ./bin/gcache
 SSLCacheServerPort logs/gcache_port
 SSLCacheServerRunDir /tmp
 Serveradmin xx@xx
 ServerName xxx
 WebAppConnection warpConnection warp localhost:8008
 WebAppDeploy testcert warpConnection /testcert/
 /VirtualHost

 and my server.xml to receive the warp connector

   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache

 Connector
className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true scheme=https secure=true
  acceptCount=10 debug=0/
 /Connector

 !--
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
  clientAuth=false protocol=TLS/
 --

 !-- Replace localhost with what your Apache ServerName is set
 to --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache defaultHost=localhost debug=0
 appBase=webapps
 .

 Any help or advise greatly appreciated

 Lee Lovell







Re: importing an existing certificate

2001-09-23 Thread Ricardo

You can import openssl certificates with no problems !!! See at ...
http://www.comu.de/docs/tomcat_ssl.htm

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I

- Original Message -
From: Jonathan Eric Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 23, 2001 7:29 PM
Subject: Re: importing an existing certificate


 Actually, if this works, and if keytool doesn't allow you to do this, it
 might not be a bad idea if a utility were included with Tomcat that
allowed
 you to migrate your certificate from Apache Web Server to Tomcat
standalone.
 Over time, I suspect that many users may want to do this.

 Jon

 - Original Message -
 From: Jonathan Eric Miller [EMAIL PROTECTED]
 To: [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Sunday, September 23, 2001 12:22 PM
 Subject: Re: importing an existing certificate


  It's not that simple because you need to import the private key as well.
 I'm
  in the same situation, except that I'm importing from Apache Web Server
to
  Tomcat in standalone mode. I posted this question a few days ago and
 someone
  told me about the following link which has a program that is supposed to
 be
  able to import the private key. I haven't had a chance to test it yet.
 
  http://www.comu.de/docs/tomcat_ssl.htm
 
  I'm pretty sure that the program mainly just makes use of the key store
 API
  provided by the JDK. Although it should, keytool itself doesn't expose
 such
  functionality as far as I know.
 
  Jon
 
  - Original Message -
  From: jean-frederic clere [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, September 21, 2001 7:23 AM
  Subject: Re: importing an existing certificate
 
 
   [EMAIL PROTECTED] wrote:
   
Hello all,
   
I'm in the process of migrating an application from Lotus Domino to
  Tomcat
4.0.  The new application will reside on the same server as the old
application.  We have recently renewed our certificate with
Verisign;
  the
original request was generated by Domino.  I would like to use the
 same
certificate for Tomcat.  Is this even possible?  I've been unable to
  find
any information in the keytool documentation for importing a
 certificate
that keytool did not itself request.
  
   keytool -import
  
   
Thanks,
   
Marty
   
Martin Lamb
ROI Computer Services, Inc.
610-873-0300
  
 






Re: Tomcat 4.0

2001-09-18 Thread Ricardo

And how must be configured the CA public key certificate in tomcat to
perform client authentication ??

Thanks,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I
- Original Message -
From: Jonathan Eric Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 18, 2001 9:37 PM
Subject: Re: Tomcat 4.0


 I haven't tried it with a Verisign cert yet, but, I've been able to import
 certs signed by my test CA no problem. Have a look at the tools
 documentation that comes with the JDK for the keytool command. After you
 have the tomcat key in there, you do a -certreq, give that certificate
 request to Verisign, get back the signed certificate, then do a -import
and
 that's it.

 Jon

 - Original Message -
 From: Nick Torenvliet [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, September 17, 2001 3:21 PM
 Subject: Tomcat 4.0


 
 
  Thanks to the Tomcat docs I've managed to get sssl working on my
tomcat4.0
  w/ Java sdk1.4 installation.
  I've been going through the mailing list archives looking to see if
anyone
  has had any success using
  a verisign certificate with Tomcat. I've seen lots of questions about it
 but
  not too many responses.
  Has anyone been able to get a stand alone Tomcat working with a verisign
  certificate yet?
 
  Nick
 






Re: Generate PDF with Java

2001-09-17 Thread Ricardo

I have heard about two options:

*. iText in http://www.lowagie.com/iText/.
*. retepPDF in http://www.retep.org.uk/pdf/

Both are hosted in sourceforge and are good options !!!

Bye,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I
- Original Message -
From: Olivier MAYEUX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 9:04 AM
Subject: Generate PDF with Java


 Hi !

 I want to generate PDF from jsp code.
 I heard about a package Java PDFWriter but i don't know where i can find
it.

 If anyone have an idea, any suggestions are welcome...

 Thanks
 Olivier





Re: Possible to import SSL private/public key pair from Apache into Tomcat?

2001-09-16 Thread Ricardo

There's a way to do this -  http://www.comu.de/docs/tomcat_ssl.htm.
I recently solve this problem, because i was working with openssl. But i
have a question in the group and nobody answer me yet.
I'm usign client authentication with apache+mod_ssl and i want to change to
tomcat. The fact is that i don't know how to configure
the keystore with the CA public key for validating client certificates...
I hope the information i give you will be useful, and i will be very happy
if i get an answer.

Thanks all,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I
- Original Message -
From: Jonathan Eric Miller [EMAIL PROTECTED]
To: Tomcat User List [EMAIL PROTECTED]
Sent: Saturday, September 15, 2001 5:28 AM
Subject: Possible to import SSL private/public key pair from Apache into
Tomcat?


 This question is kind of about Tomcat, but, also to some extent about
 keytool and SSL in general.

 I've been running Apache Web Server 1.3.x as a Web server with JRun as a
 Java Servlet engine in our production environment. I have SSL enabled on
the
 Apache Web Server and I have the certificate signed by Verisign which I
paid
 $$$ for.

 What I want to do now is to switch to using Tomcat in standalone mode. I
 have this up and running no problem. I was able to generate a private key
 and then sign that with a test CA that I have. The steps to do this are to
 run keytool with -genkey, then -certreq, and then -import.

 However, I want to import the private/public key pair from Apache Web
Server
 into my Java keystore. Does anyone know if this is possible? As far as I
can
 tell, there is no way to import a private key. I wonder if I send Verisign
a
 certificate request that I generated from Tomcat, if they will make me buy
 another certificate (even though it's for use on the same server and will
 replace the original certificate)?

 Jon







Client Authentication in Tomcat

2001-09-13 Thread Ricardo

Hi all and thanks in advance (and sorry, my english is quiet bad :( ...

Well, my problem is that i generate a server certificate and a key with =
openssl.
Later i import this certificate and key in a keystore (usign keytool and =
a java program called ImportKey).
I configure tomcat for SSL and client authentication to yes.
My problem is how can i store the CA public key (for validating client =
certificate) in the keystore to make it work ...

Please it's quiet important, HELP ME !!

Thanks,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I




RE: Database Driver

2001-09-07 Thread Artigas, Ricardo Y.

I'm not quite sure but try adding the jar's filepath to your tomcat startup
script (tomcat.bat).
look for the lines similar to below and add one more line for your driver.
(see line with your_sqldriver.jar).
Where did you download your driver from? hth.

:staticClasspath
echo Setting your CLASSPATH statically.
if exist %TOMCAT_HOME%\lib\ant.jar set CP=%CP%;%TOMCAT_HOME%\lib\ant.jar
if exist %TOMCAT_HOME%\lib\jasper.jar set
CP=%CP%;%TOMCAT_HOME%\lib\jasper.jar
if exist %TOMCAT_HOME%\lib\jaxp.jar set CP=%CP%;%TOMCAT_HOME%\lib\jaxp.jar
if exist %TOMCAT_HOME%\lib\parser.jar set
CP=%CP%;%TOMCAT_HOME%\lib\parser.jar
if exist %TOMCAT_HOME%\lib\servlet.jar set
CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar
if exist %TOMCAT_HOME%\lib\webserver.jar set
CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar
if exist %TOMCAT_HOME%\lib\your_sqldriver.jar set
CP=%CP%;%TOMCAT_HOME%\lib\your_sqldriver.jar



:~)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Robert Turner [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, September 07, 2001 1:30 PM
 To:   tomcat-user
 Subject:  Database Driver
 
 I downloaded JSQLConnect, JDBC MSSQL type 4 driver,
 but I am failing to get it to work. I am using Windows
 XP (RC1), MSSQL7, IIS5 and Tomcat 3.3
  
 I have placed the jsqlconnect.jar in the tomcat lib
 folder and have also placed that location in the
 CLASSPATH environmental variable.
  
 The code I am using to test it is:
  
 %@ page language=java import=java.sql.* %
 !--
 File: index.jsp
 Author: Robert T Turner
 Date: September 2001
 --
 %
 
 Class.forName(com.jnetdirect.jsql.JSQLDriver);
 
 Connection
 myConn=DriverManager.getConnection(jdbc:JSQLConnect://localhost/database=
 Directoryuser=dailerpassword=phone);
 
 Statement stmt=myConn.createStatement();
 String query=SELECT * FROM Misc_Numbers ORDER BY
 description;
 
 ResultSet rs=stmt.executeQuery(query);
 
 The error message I am getting is
 
 Error: 500
 Location: /jsp/index.jsp
 Internal Servlet Error:
  
 javax.servlet.ServletException: Unable to load class
 com.jnetdirect.jsql.JSQLDriver
  at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
 mpl.java:459)
  at
 _0002findex_0002ejspindex_jsp_14._jspService(_0002findex_0002ejspindex_jsp
 _14.java:118)
  at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
 java:130)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
 java:282)
  at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
  at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
  at
 org.apache.tomcat.core.Handler.service(Handler.java:287)
  at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
 812)
  at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
  at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
 on(Ajp12ConnectionHandler.java:166)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
  at java.lang.Thread.run(Thread.java:484)
  
 Root cause: 
 java.lang.ClassNotFoundException: Unable to load class
 com.jnetdirect.jsql.JSQLDriver
  at
 org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
  at
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
  at
 java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:120)
  at
 _0002findex_0002ejspindex_jsp_14._jspService(_0002findex_0002ejspindex_jsp
 _14.java:62)
  at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at
 

Apache + mod_ssl === Tomcat + JSSE

2001-09-05 Thread Ricardo

Hi, I have created a CA with openssl and I generate client and server
certificates.
I install this certificates in Apache (directories /ssl.cert and /ssl.key)
and it works, but how can i do the same in tomcat (keytool) to use this
certificates...
My question is how can import certificate and key to the keystore in tomcat.

Thaks a lot,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I




Re: Apache + mod_ssl === Tomcat + JSSE

2001-09-05 Thread Ricardo

I can import the certificate... but what about the key ??
When your configure tomcat to work with SSL you have to execute ---
keytool -genkey -alias tomcat ... I would like to import my key (or
something ???)
with this alias.

Thanks a lot,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I
- Original Message -
From: Eirik Yksnøy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 05, 2001 12:23 PM
Subject: RE: Apache + mod_ssl === Tomcat + JSSE


try to import the certificates into your kaystore file with keytool -import
-trustcacerts   ++

-Original Message-
From: Ricardo [mailto:[EMAIL PROTECTED]]
Sent: 5. september 2001 12:02
To: [EMAIL PROTECTED]
Subject: Apache + mod_ssl === Tomcat + JSSE


Hi, I have created a CA with openssl and I generate client and server
certificates.
I install this certificates in Apache (directories /ssl.cert and /ssl.key)
and it works, but how can i do the same in tomcat (keytool) to use this
certificates...
My question is how can import certificate and key to the keystore in tomcat.

Thaks a lot,

Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I





RE: Supressing directory contents listing in tomcat 4.0

2001-09-05 Thread Artigas, Ricardo Y.

I am not sure if this is the culprit and I haven't tried it out. In the
server.xml, look for these lines. set suppress=true.



!-- default handler - static files and dirs.  Set the
 suppress property to true to suppress directory listings
 when no welcome file is present.

 NOTE:  This setting applies to *all* web applications that
 are running in this instance of Tomcat.
  --
RequestInterceptor 
className=org.apache.tomcat.request.StaticInterceptor 
debug=0 suppress=false /



:~)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: sankar kondur [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, September 06, 2001 7:51 AM
 To:   [EMAIL PROTECTED]
 Subject:  Supressing directory contents listing in tomcat 4.0
 
 Has anyone figured how to suppress directory contents
 listing in Tomcat 4.0
 
 Checked the code, looks like it shouldn't list
 directory contents at all, but doesn't work.
 
 thanks,
 SK
 
 =
 
 
 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo!
 Messenger
 http://im.yahoo.com




Help with ssl client authentication

2001-08-31 Thread Ricardo

Hi all, and thanks for reading me ...

I have read a lot of posts about client authentication with tomcat and i
pray to somebody for giving a
final solution to this problem in Tomcat 4.0 b7.
I mean, could somebody describe all the process (commands used) of the
certificates generation (keytool + openssl), conversion and instalation
of this certificates in the tomcat keystore and IE ?

Thank in advance,


Ricardo Borillo Domenech
Programació - Servei d'Informàtica
Universitat Jaume I




RE: Help Installing Tomcat on Win95

2001-08-19 Thread Artigas, Ricardo Y.

Isn't c:jakarta-tomcat-4.0-b7\common\lib\servlet.jar; supposed to be:
c:\jakarta-tomcat-4.0-b7\common\lib\servlet.jar;?
HTH.


:~)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Sheila Ratnam [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, August 20, 2001 12:48 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Help Installing Tomcat on Win95
 
 Dmitri,
 
 I tried your method, but it didn't work. So it doesn't seem to be the long
 
 name problem. I also checked and confirmed that there is no other version
 of 
 servlet.jar on my pc.
 
 Infact I am surprised that (both the servlet  jsp) examples at 
 http://localhost:8080/ work perfectly!
 Could there be any other reason for package javax not being found?
 
 Sheila
 
 
 
 From: Sheila Ratnam [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Help Installing Tomcat on Win95
 Date: Mon, 20 Aug 2001 00:04:36 +
 
 Rob  Pier, thanks for the help in getting my Tomcat server going.
 
 Now it's my first servlet that's not compiling! I have set the CLASSPATH
 to
 c:jakarta-tomcat-4.0-b7\common\lib\servlet.jar; where the servlet.jar 
 file
 is. But when I try to compile the servlet, the error message says
 javax.servlet package does not exist
 
 What else could be the problem?
 
 TIA,
 Sheila
 
 
 From: Rob S. [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Help Installing Tomcat on Win95
 Date: Sat, 18 Aug 2001 08:16:26 -0400
 
 AH
 
 You're trying to request your server through the WarpConnector port and 
 not
 the HTTP port?  This was what a lot of people used to do, try and make
 requests to Tomcat 3.x through the AJP port 8007 (by default).  Pier, 
 maybe
 the default WarpConnector should be at 8007? (assuming it's 8008)
 
 - r
 
   -Original Message-
   From: Sheila Ratnam [mailto:[EMAIL PROTECTED]]
   Sent: Friday, August 17, 2001 10:28 PM
   To: [EMAIL PROTECTED]
   Subject: Re: Help Installing Tomcat on Win95
  
  
   Pier,
   I did try using the ip address instead of 'localhost', but it
   didn't work.
   Probably the error is what the log shows?
  
   Sheila
  
  
  
   From: Sheila Ratnam [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: Help Installing Tomcat on Win95
   Date: Sat, 18 Aug 2001 02:21:22 +
   
   Rob, Pier,
   
   I noticed the following error logged in apache.log file.
   
   2001-08-17 20:42:46
 [org.apache.catalina.connector.warp.WarpConnector]
   Error
   accepting requests
   java.net.SocketException: socket closed
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:424)
   at java.net.ServerSocket.implAccept(ServerSocket.java:246)
   at java.net.ServerSocket.accept(ServerSocket.java:225)
   at
   org.apache.catalina.connector.warp.WarpConnector.run(WarpConnecto
   r.java:554)
   at java.lang.Thread.run(Thread.java:484)
   
   As you correctly expected, the CATALINA_HOME_Log file is empty.
   How can I correct this?
   
   No problem with 'hitting' as long as I get this to work:)
   
   Thanks,
   Sheila
   
   
   
   From: Pier P. Fumagalli [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: Help Installing Tomcat on Win95
   Date: Sat, 18 Aug 2001 02:52:14 +0100
   
   Rob S. at [EMAIL PROTECTED] wrote:
   
 I should add that I tried changing the port number in the
 server.xml
   file
 inside conf folder as mentioned in the RUNNING.txt. Also
 checked
 and
   made
 sure that the browser is not trying to access a proxy server.
 But
 it hasn't
 worked.
 Thanks,
 Sheila

 ?!  This brings a joyous tear to my eye! =~)  Someone has read
 the
 documentation and acted upon it.  Sheila, you've made my
   day!  So your
 Tomcat has started at 8080 and http://localhost:8080/ doesn't do
 the
 trick...  Did you check the log files ($CATALINA_HOME/logs) for 
 any
   activity
 when you make a request?  If nothing at all appears in those 
 files,
 I
   don't
 think the request is getting there.
   
   Another good test on Windows is to try to send your request to
   http://127.0.0.1:8080/ as sometimes Windows forgets about the
 

RE: How can I find number of 'open files'

2001-08-16 Thread Artigas, Ricardo Y.

I assume you are closing the sockets that you create/open?

:~)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Ivan Markovic [SMTP:[EMAIL PROTECTED]]
 Sent: Friday, August 17, 2001 11:39 AM
 To:   [EMAIL PROTECTED]
 Subject:  How can I find number of 'open files'
 Importance:   High
 
 I had a problem a while back with 'too many open files'. So I checked 
 and fix some bugs in my code and increased the limit (Solaris running 
 on Sun Netra T1).  But now the problem is back. I suspect it is a 
 problem with my code.
 
 How can I find out how many files are 'open'? If I can track that 
 number then I can hit my code through Tomcat and see roughly when the 
 files are not being closed. Is there some Unix function that will 
 allow me to monitor open files?
 
 Below is the kind of error that I see thank you.
 
 java.net.SocketException: Too many open files
  at java.net.PlainSocketImpl.socketAccept(Native Method)
  at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:421)
  at java.net.ServerSocket.implAccept(ServerSocket.java:243)
  at java.net.ServerSocket.accept(ServerSocket.java:222)
  at 
 org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.jav
 a:277)
  at 
 org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:344)
  at 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
  at java.lang.Thread.run(Thread.java:484)
 Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] 
 shutdown due to exception: java.net.SocketException: Too many open 
 files
 
 -- 
 Ivan Markovic
 SculptLight
 http://www.sculptlight.com
 (+353) 87 2939256
 (+353) 1 2982205
 
 114 Lower Churchtown Rd,
 Dublin 14,
 Ireland.



RE: jsp issue

2001-08-14 Thread Artigas, Ricardo Y.

Hi Arnaud. You need the jdk not just the jre. You need the jdk because
tomcat will compile your jsp. hth.


 -Original Message-
 From: Arnaud Tuffery [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, August 14, 2001 5:19 PM
 To:   Jakarta
 Subject:  jsp issue
 
 Hi !
 
 I use Tomcat 3.2.3 with Apache 1.3.20 and Jre 1.2.2 . When I try to
 execute
 a jsp file I get the following message:
 
 Error: 500
 Location: /sia/jsp/dates/date.jsp
 Internal Servlet Error:
 
 javax.servlet.ServletException: sun/tools/javac/Main
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
 Compiled
 Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
 Code)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
 Compiled Code)
   at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
 Compiled Code)
   at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java,
 Compiled Code)
   at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
 pC
 onnectionHandler.java, Compiled Code)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
   at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
 Compiled Code)
   at java.lang.Thread.run(Unknown Source)
 
 Root cause:
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
   at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:13
 6)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
 Compiled
 Code)
   at
 org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
   at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
 Se
 rvlet.java:258)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
 ja
 va:268)
   at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
 Compiled
 Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
 Code)
   at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
 Compiled Code)
   at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
 Compiled Code)
   at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java,
 Compiled Code)
   at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
 pC
 onnectionHandler.java, Compiled Code)
   at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
   at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
 Compiled Code)
   at java.lang.Thread.run(Unknown Source)
 
 Might you help me about this issue which make me very sad !!!
 
 Thank you in advance.
 
 
 e-mail: [EMAIL PROTECTED]
 phone: 04.67.79.63.07
 mobile: 06.67.29.45.84



RE: connecting to mysql database

2001-07-30 Thread Artigas, Ricardo Y.

Did you include the mysql driver (the jar file) to your classpath?

 -Original Message-
 From: Chad Wray [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 9:22 AM
 To:   [EMAIL PROTECTED]
 Subject:  connecting to mysql database
 
 I am trying to access a mysql database on a linux box.
 
 I am getting the following error:
 javax.servlet.ServletException: Unable to load class
 org.gjt.mm.mysql.Driver
 at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
 mpl.java:459)
 at
 _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
 asyFootball_0002ejspfantasyFootball_jsp_1.java:185)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
 java:130)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
 java:282)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at
 org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
 797)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
 pConnectionHandler.java:213)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)
 
 Root cause: 
 
 java.lang.ClassNotFoundException: Unable to load class
 org.gjt.mm.mysql.Driver
 at
 org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
 at
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
 at
 java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
 _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
 asyFootball_0002ejspfantasyFootball_jsp_1.java:72)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
 java:130)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
 java:282)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at
 org.apache.tomcat.core.Handler.service(Handler.java:287)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
 797)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
 pConnectionHandler.java:213)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:484)
 
 
 
 
 Is there anything special I need to do get Tomcat to
 talk to mysql?
 
 Thanks,
 
 -- Chad
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/



RE: connecting to mysql database

2001-07-30 Thread Artigas, Ricardo Y.

hi, chad. place the jar file in the lib directory and the place path to the
jar file in the classpath setting for tomcat to see it. hth.

 -Original Message-
 From: Chad Wray [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 31, 2001 11:28 AM
 To:   [EMAIL PROTECTED]
 Subject:  RE: connecting to mysql database
 
 Yes - I actually put the jar file in the src directory
 under tomcat and added it to my classpath.  I will
 double check it tomorrow by echoing my classpath.  I
 am setting my classpath in my .bashrc file - does
 tomcat.sh overwrite the classpath?  Or should I add
 the jar file to the classpath in the tomcat.sh file?
 
 -- Chad
 
 
 --- Artigas, Ricardo Y. [EMAIL PROTECTED] wrote:
  Did you include the mysql driver (the jar file) to
  your classpath?
  
   -Original Message-
   From: Chad Wray [SMTP:[EMAIL PROTECTED]]
   Sent: Tuesday, July 31, 2001 9:22 AM
   To:   [EMAIL PROTECTED]
   Subject:  connecting to mysql database
   
   I am trying to access a mysql database on a linux
  box.
   
   I am getting the following error:
   javax.servlet.ServletException: Unable to load
  class
   org.gjt.mm.mysql.Driver
   at
  
 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextI
   mpl.java:459)
   at
  
 
 _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
  
  asyFootball_0002ejspfantasyFootball_jsp_1.java:185)
   at
  
 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
   java:130)
   at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
   java:282)
   at
  
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at
  
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at
  
 
 org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
  
 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
  
 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
   797)
   at
  
 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
  
 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
   pConnectionHandler.java:213)
   at
  
 
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
  
 
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)
   
   Root cause: 
   
   java.lang.ClassNotFoundException: Unable to load
  class
   org.gjt.mm.mysql.Driver
   at
  
 
 org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
   at
  
 
 org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
   at
  
 
 java.lang.ClassLoader.loadClass(ClassLoader.java:253)
   at
  
 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:120)
   at
  
 
 _0002ffantasyFootball_0002ejspfantasyFootball_jsp_1._jspService(_0002ffant
   asyFootball_0002ejspfantasyFootball_jsp_1.java:72)
   at
  
 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.
   java:130)
   at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.
   java:282)
   at
  
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at
  
 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at
  
 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  
 
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at
  
 
 org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
  
 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
  
 
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:
   797)
   at
  
 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
   at
  
 
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Htt
   pConnectionHandler.java:213

RE: VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc bridge on linux)

2001-07-29 Thread Artigas, Ricardo Y.

yes!

 -Original Message-
 From: Pier P. Fumagalli [SMTP:[EMAIL PROTECTED]]
 Sent: Sunday, July 29, 2001 10:42 PM
 To:   [EMAIL PROTECTED]
 Subject:  VOTE: HTML in Messages and politeness (Was: Re: jdbc odbc
 bridge on linux)
 
 Emir Alikadic (ADNOC IST) at [EMAIL PROTECTED] wrote:
  
  What is rude was his posting on the list in format other than plain
 text.
  Read the list's FAQ if you don't understand.
 
 I believe _I_ wrote that list FAQ.
 
  The number of fancy-formatted messages is on the rise and if we don't
 nip
  this in the bud, we may find ourselves in a position where folks who
 don't
  use the latest version of $MAILCLIENT are unable to read the messages.
 I
  myself use MS Outlook 2000 but I have no right to assume what the others
 are
  using.  Hence the warning in the FAQ.
  
  This is not my first post on this topic and I'm afraid it won't be the
 last.
  I'm just trying to create awareness of the problem and I realise I
 sometimes
  have to resort to not-so-nice means to draw the subscribers' attention
 to
  it.  If I can convince one person not to use formatted messages on the
 list,
  I'll be a happy man.
 
 Awareness is created by asking KINDLY Can you please not post
 HTML-formatted messages to the mailing list more or less as you did on
 the
 25th (even though I believe that the list of offenders is so
 ridiculous).
 
 If you don't want to see HTML in messages, simply ask to get it removed by
 the mailing list owner (whops ME!), as we did on several others...
 
  I don't claim to be an all-knowing guru, but what I do know I will not
 share
  with those who are arrogant enough not to respect the rules of the list
  they're asking for help from.
 
 Ok then, try to be a little bit more polite and respectful or just shut
 up.
 
 
 
 
 One thing I can ask to you guys is, do you want me to strip HTML out of
 your
 messages and reject emails only with HTML content type? Plenary vote open
 until 11:59 PM GMT of Monday 07/30/2001.
 
 [ ] +1 - Plain Text only. Strip HTML on the mailing list.
 [ ]  0 - I don't give a damn shit.
 [ ] -1 - You mad? I love HTML in messages and want to keep using it.
 
 Thanks :)
 
 Pier



RE: user admin

2001-07-17 Thread Artigas, Ricardo Y.

add this line:
user name=yourusername password=yourpassword roles=admin /


:^)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: Cristian Bortolato [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 4:23 PM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: user admin
 
 I'm using tomcat 3.2.2, there're tomcat-user.xml defined :
 
 tomcat-users
   user name=tomcat password=tomcat roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users
 
 I've used user tomcat with pass tomcat and all combinations with role1 and
 both, but it doesn't open the page.
 
 
 
 -Original Message-
 From: Sladky, Jan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:02 AM
 To: '[EMAIL PROTECTED]'
 Subject: AW: user admin
 
 
 For tomcat 3.3-m4 change the file conf/admin-users.xml
  
 hth
 Jan
 
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet am: Dienstag, 17. Juli 2001 09:48
 An: [EMAIL PROTECTED]
 Betreff: user admin
 
 Which is the password and the user default for Tomcat admin?
  
 How can I Find it and replace?



RE: can run tomcat on linux servlets but not jsp's

2001-07-10 Thread Artigas, Ricardo Y.

If I'm not mistaken, I believe you need the jdk installed not just the jre.
HTH.

:^)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: DA Schaupner [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, July 11, 2001 9:02 AM
 To:   [EMAIL PROTECTED]
 Subject:  can run tomcat on linux  servlets but not jsp's
 
 Hi:
 
 I am trying to run Tomcat on Linux 2.2.  I have been able to run Tomcat
 with
 JRE1.2, but not been able to run any of the example jsp's (i have been
 able
 to run the servlets).
 
 
 I think i've set the CLASSPATH properly
 (TOMCAT_HOME/webapps/example/WEB-INF/classes, TOMCAT_HOME/src).  Again, no
 good.
 
 Do I need to upgrade my java?  If so, which?  I believe that TOMCAT_HOME
 and
 JAVA_HOME have been set properly.
 
 Thanks
 Dan
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com



Tomcat/Apache mapping

2001-06-12 Thread Ricardo A Bosch

Hey,
I'm having a crap of a time trying to run a servlet from tomcat 
through apache without having to see the /servlet directory.  I've 
messed with web.xml in my apps WEB-INF and the main tomcat.conf file for 
apache but I just cant get it to work.  Someone must know this is easy, 
I just dont understand the apache files well enough maybe.  I've gotten 
the servlet to work out of the tomcat directory but not throught apache.

i have

/myapp/servlets/myServlet   to work  (no sweat)
/myapp/myServlet   works too but only from the tomcat port.

i want

/myapp/myServlet from apache but HOW


thanks();
in advance


rick



Re: Tomcat/Apache mapping

2001-06-12 Thread Ricardo A Bosch
exactly, i should clarify

myserver.com:8080/myapp/servlets/myServlet   works  (no sweat)
myserver.com:8080/myapp/myServlet   works  
myserver.com:80/myapp/myServlet   DOES NOT WORK   HOW!??? 


On Tuesday, June 12, 2001, at 11:01 AM, Robert Slifka wrote:

Do you mean that it works when you access it via Tomcat's HTTP port, but not
via Apache's?

- r

-Original Message-
From: Ricardo A Bosch [mailto:[EMAIL PROTECTED]]
Sent: June 12, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: Tomcat/Apache mapping


Hey,
I'm having a crap of a time trying to run a servlet from tomcat 
through apache without having to see the /servlet directory.  I've 
messed with web.xml in my apps WEB-INF and the main 
tomcat.conf file for 
apache but I just cant get it to work.  Someone must know 
this is easy, 
I just dont understand the apache files well enough maybe.  
I've gotten 
the servlet to work out of the tomcat directory but not 
throught apache.

i have

/myapp/servlets/myServlet   to work  (no sweat)
/myapp/myServlet   works too but only from the tomcat port.

i want

/myapp/myServlet from apache but HOW


thanks();
in advance


rick




The Answer is (Was: Tomcat/Apache mapping)

2001-06-12 Thread Ricardo A Bosch
for anyone that cares

to get apache
/myapp/myServlet 

add
ApJServMount /myServlet /myServlet
and of couse the servlet must also be in web.xml



peace out

rick

On Tuesday, June 12, 2001, at 11:36 AM, Robert Slifka wrote:

Sounds like just standard Tomcat/Apache setup stuff.  Make sure you check
the Tomcat-Apache  howto (on the tomcat docs page @ jakarta) since they were
written with exactly these kinds things in mind.

- r

-Original Message-
From: pedro salazar [mailto:[EMAIL PROTECTED]]
Sent: June 12, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat/Apache mapping


I think I may have a problem like this one. I have a servlet 
working fine
when I go by using port 8080 [directly to tomcat] that 
simples write some
test to output. When I pick the servlet mapping by apache, it 
shows me the
root of my web directory [the default is show index.html, but 
there is no
index.html because I just want make some output test]. 
Apparently, the admin
context that comes with tomcat works well with apache or 
tomcat directly.

any help will be very appreciated...
thx
--
psalazar/>


- Original Message -
From: "Robert Slifka" [EMAIL PROTECTED]>
To: [EMAIL PROTECTED]>
Sent: Tuesday, June 12, 2001 4:01 PM
Subject: RE: Tomcat/Apache mapping


Do you mean that it works when you access it via Tomcat's 
HTTP port, but
not
via Apache's?

- r

-Original Message-
From: Ricardo A Bosch [mailto:[EMAIL PROTECTED]]
Sent: June 12, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: Tomcat/Apache mapping


Hey,
I'm having a crap of a time trying to run a servlet from tomcat
through apache without having to see the /servlet directory.  I've
messed with web.xml in my apps WEB-INF and the main
tomcat.conf file for
apache but I just cant get it to work.  Someone must know
this is easy,
I just dont understand the apache files well enough maybe.
I've gotten
the servlet to work out of the tomcat directory but not
throught apache.

i have

/myapp/servlets/myServlet   to work  (no sweat)
/myapp/myServlet   works too but only from the tomcat port.

i want

/myapp/myServlet from apache but HOW


thanks();
in advance


rick





RE: Starting Tomcat without new DOS Window

2001-05-29 Thread Artigas, Ricardo Y.

According to the documentation, it is possible to start tomcat as an nt
service. I am not familiar with it though but I read it in the
documentations. 

:^)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


 ---
 IMPORTANT NOTICE: 
  
 This message (and any attachment hereto) may contain privileged and/or
 confidential information specific to EasyCall. If you are not the intended
 addressee indicated in this message, you may not copy or disseminate this
 message (or any attachment hereto) to anyone. Instead, please destroy this
 message (and any attachment hereto), and kindly notify the sender by reply
 email. Any information in this message (and any attachment thereto) that
 do not relate to the official business of EasyCall shall be understood as
 neither given nor endorsed by the company.
 
 
 -Original Message-
 From: David DELGRANCHE [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, May 29, 2001 9:20 PM
 To:   Liste de diffusion TomCat (Adresse de messagerie)
 Subject:  Starting Tomcat without new DOS Window
 
   Hi All,
 
   Does anybody know how to start tomcat without opening a new Window?
 Is it possible to start Tomcat as a service?
   Thanks for help
 
 David DELGRANCHE
 [EMAIL PROTECTED]
 tel. 02.99 05.34.25   
 Fax: 02.99.05.34.05
 Sogitec Industries
 24, Avenue Lavoisier
 ZI du Champ Niguel
 35174 BRUZ CEDEX
 
 



  1   2   >