Tomcat SSL

2002-10-03 Thread Panos Skondras

Hi all
I am trying to start Tomcat using https with client auth but
so far nothing.
I have downloades JSSE put the jar in the right place(https works if i
put clientauth=false in
server.xml).
I have created a key with keytool and also
export a key to put it in the IE trusted root dir.
But when i enable client auth=true and ty again i get
 The page cannot be displayed page from tomcat no
logging is done..
Can anyone give me some hints..
The client certificate is not from a CA but it is created by me with
keytool
The client certificate and the server certificate must exist somewhere
in tomcat path?
thx inadvance



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




Re: JAVA SOAP Discussion List

2002-10-03 Thread Andreas Probst

Hi Alphonsus,

if you prefer reading old messages in your email client, you can 
get old threads be sending a message to

[EMAIL PROTECTED]

This will give you all messages with the same subject as message 
12345. The difficulty here is to obtain the right message 
number. I observed that the message numbers inside the urls of 
the web mail archive are NOT the same as the ones you need for 
the command above, at least for Slide user list.

To get to know the numbers you will need to send a message to

[EMAIL PROTECTED]

This will list authors, subjects, dates and numbers.

mailto:[EMAIL PROTECTED]

will give you more help on this.

Andreas


On 2 Oct 2002 at 11:29, Alphonsus wrote:

 Hi all,
 could anyone please tell where I can find a Java Soap List? Also where
 can I find the old threads of this list (Tomcat)?
 
 TIA,
 Alphonsus.
 


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




Class org.apache.jsp.InventoryData not found.

2002-10-03 Thread Glinn Cortez

Hello!

I have this code:

---
%@ page language=Java import=java.sql.* %

jsp:useBean id=user class=InventoryData scope=session/
jsp:setProperty name=user property=*/ 
HTML
BODY
A HREF=NextPage.jspContinue/A
/BODY
/HTML
---


and when i run this code in the browser, it produces this kind of error
below:



Apache Tomcat/4.0.5 - HTTP Status 500 - Internal Server Error



type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception 

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.


An error occurred at line: 3 in the jsp file: /SaveInventory.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:61: Class
org.apache.jsp.InventoryData not found.
InventoryData user = null;
^


An error occurred at line: 3 in the jsp file: /SaveInventory.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:64: Class
org.apache.jsp.InventoryData not found.
user= (InventoryData)
   ^


An error occurred at line: 3 in the jsp file: /SaveInventory.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:69: Class
org.apache.jsp.InventoryData not found.
user = (InventoryData)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
InventoryData);
^
3 errors, 1 warning




The location of InventoryData.class is:
C:\Program Files\Apache Tomcat 4.0\webapps\IMS\WEB-INF\classes


I need some help on this. thank you.


r/glinn


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


RE: Class org.apache.jsp.InventoryData not found.

2002-10-03 Thread Miguel Angel Mulero Martinez

Hi!

The only thing that I see that can be wrong, is if you have a package line
at the top of InventoryData.java.

Can you verify this?

-Mensaje original-
De: Glinn Cortez [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 03 de octubre de 2002 9:05
Para: [EMAIL PROTECTED]
Asunto: Class org.apache.jsp.InventoryData not found.

Hello!

I have this code:


---
%@ page language=Java import=java.sql.* %

jsp:useBean id=user class=InventoryData scope=session/
jsp:setProperty name=user property=*/
HTML
BODY
A HREF=NextPage.jspContinue/A
/BODY
/HTML

---


and when i run this code in the browser, it produces this kind of error
below:



Apache Tomcat/4.0.5 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.


An error occurred at line: 3 in the jsp file: /SaveInventory.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:61: Class
org.apache.jsp.InventoryData not found.
InventoryData user = null;
^


An error occurred at line: 3 in the jsp file: /SaveInventory.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:64: Class
org.apache.jsp.InventoryData not found.
user= (InventoryData)
   ^


An error occurred at line: 3 in the jsp file: /SaveInventory.jsp

Generated servlet error:
C:\Program Files\Apache Tomcat
4.0\work\Standalone\localhost\IMS\SaveInventory$jsp.java:69: Class
org.apache.jsp.InventoryData not found.
user = (InventoryData)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
InventoryData);
^
3 errors, 1 warning




The location of InventoryData.class is:
C:\Program Files\Apache Tomcat 4.0\webapps\IMS\WEB-INF\classes


I need some help on this. thank you.


r/glinn


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




Re: Tomcat SSL

2002-10-03 Thread Mehmet Birgi

The server certificate must be where you set it up in your server.xml (for
details, see the tomcat-ssl-howto). This will enable Tomcat to identify
itself to the client.

The client certificate's CA's public key (or just the whole certificate)
must be imported into %JAVA_HOME%/jre/lib/security/cacerts (the default
truststore that Tomcat uses), or, you have to define the system property for
the truststore in Tomcat's JVM if you want to use another truststore than
the default. This will enable Tomcat to trust the client.

cheers,

memo


- Original Message -
From: Panos Skondras [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 08:50
Subject: Tomcat SSL


 Hi all
 I am trying to start Tomcat using https with client auth but
 so far nothing.
 I have downloades JSSE put the jar in the right place(https works if i
 put clientauth=false in
 server.xml).
 I have created a key with keytool and also
 export a key to put it in the IE trusted root dir.
 But when i enable client auth=true and ty again i get
  The page cannot be displayed page from tomcat no
 logging is done..
 Can anyone give me some hints..
 The client certificate is not from a CA but it is created by me with
 keytool
 The client certificate and the server certificate must exist somewhere
 in tomcat path?
 thx inadvance



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





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




Re: tomcat 4.1.12 JDBC driver class 'null'

2002-10-03 Thread Raj Saini

I experienced the same problem when I ported my application to 4.1.12. 
In my case the exception was about the null url. It is evident from the 
exception that the jdbc driver class is not loaded as it was set to null.

Try changing the sequence of the parameter in the datasource 
defincation. Put your driver class parameter just after the factory and 
username and password at the end.

Have a look on your classes.jar. Does the file have read permissions?

Raj Saini


This may be one cause,
Robert Herold wrote:
 Thanks for the suggestion.  I just tried the example JDBC configuration from
 the JNDI-howto, and unfortunately it still gets the same error.  I am using
 tomcat standalone.
 
 Weird.  Guess I'll stick with tomcat 4.0.x for now...
 
 -- bob
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 g]On Behalf Of Jake Tweer
 Sent: Tuesday, October 01, 2002 8:11 PM
 To: Tomcat Users List
 Subject: Re: tomcat 4.1.12 JDBC driver class 'null'
 
 
 I'm getting the same error with MySQL and I've seen posts for
 PostgreSQL, MySQL and Oracle.  I have followed all suggestions with no
 luck except for one case - the example given in the JNDI - How To works
 for me.  The example is using standalone Tomcat and that works.  As soon
 as I use Apache/mod_webapp I get the exception Cannot load JDBC driver
 class 'null'.
 
 
 
 Robert Herold wrote:
 
 
I've been happily using tomcat 4.0.4 for a while, and thought I'd upgrade
 
 to
 
version 4.1.12.  Alas, I cannot get tomcat to find my Oracle JDBC driver
when I use 4.1.12.  It worked fine in 4.0.4.

Any ideas what might be wrong?

My classes12.jar is in common/lib where it is supposed to be.  It's the
 
 same
 
file as I used under tomcat 4.0.4, so it is known to be good.

I followed the configuration steps for setting up the JNDI Datasource very
carefully.

The exception I get is:

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

 
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
 
a:529)
  at

 
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
 
12)
  at com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107)
  ... 31 more

My resource definition in server.xml is:

 DefaultContext debug=0 reloadable=true
   Resource name=jdbc/CotagesoftDB auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/CotagesoftDB
 parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   nameusername/name
   valuefred/value
 /parameter
 parameter
   namepassword/name
   valuefred/value
 /parameter
 parameter
   namedriverClassName/name
   valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
   namedriverName/name
   valuejdbc:oracle:thin:@localhost:1521:ctg/value
 /parameter
 parameter
   namemaxActive/name
   value20/value
 /parameter
 parameter
   namemaxIdle/name
   value10/value
 /parameter
 parameter
   namemaxWait/name
   value-1/value
 /parameter
   /ResourceParams
  /DefaultContext

And it is referenced in web.xml with:

  resource-ref

description
  Resource reference to a factory for java.sql.Connection
  instances that may be used for talking to a particular
  database that is configured in the server.xml file.
/description

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

  /resource-ref

Any ideas on what to try would be appreciated.  Thanks.

-- bob

--
Robert Herold
Cotagesoft, Inc.
650 474 9013 x808



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


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




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




error 500 - bug ?

2002-10-03 Thread Skorupski Pawe ,(PZUZ)

Included servlet error: 500
Hi,

I keep getting the following error. The problem occurs when I changed (even
one letter) in any file - is it a bug or my mistake (what is in this case
rather not possible).
Thanks for help.

Pawe

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
/var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/pzu/_0002fprotect
ed_0002fpzu_0002fgora_00032_0002ejspgora2_jsp_1.class
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.facade.RequestDispatcherImpl.include(Compiled
Code)
at org.apache.jasper.runtime.PageContextImpl.include(Compiled Code)
at
p_00025otected.pzu._0002fprotected_0002fpzu_0002findex_0002ejspindex_jsp_4._
jspService(Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)






Re: tomcat 4.1.12 JDBC driver class 'null'

2002-10-03 Thread Raj Saini

Jake,

You will need to put a defaulthost attribute in your engine defination.
This is a bug in the server.xml and it was detacted long back ago. Dont 
know why it is not still corrected in the server.xml file. May be the 
warp connecter is no more actively developed.

Your Engine tag should be:-

Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 defaulthost=prod_host

I hope this will work.

Cheers,

Raj
Jake Tweer wrote:
 Raj,
 
 Thanks for the tip - I tried your suggestion by moving the JNDI-How To 
 example out of the standalone tomcat service and into the Tomcat-Apache 
 service.  Bear in mind that the example works Ok in tomcat standalone. 
 The Tomcat-Apache service I am using is the default provided and works 
 in all other ways.  To that I added the virtual host and the context. In 
 other words in the following sample, what I have added to the default 
 Apache-Tomcat service is contained in and includes the Host tags.
 
 I am still getting the error.
 
 
 
 
   !-- 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 appBase=webapps
  acceptCount=10 debug=0/
 
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0
 
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
 
   Realm className=org.apache.catalina.realm.MemoryRealm /
 
 
 
 
 
   !-- Define the default virtual host --
 Host name=prod_host debug=9 appBase=webapps
unpackWARs=true autoDeploy=true
 
 
 Logger className=org.apache.catalina.logger.FileLogger
  directory=logs  prefix=prod_host_log. suffix=.txt
 timestamp=true/
 
 
 
 !-- test context --
 
 Context path=/DBTest docBase=DBTest
 debug=5 reloadable=true crossContext=true
 
 Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_DBTest_log. suffix=.txt
  timestamp=true/
 
 Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource/
 
 ResourceParams name=jdbc/TestDB
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 
 parameter
 namemaxActive/name
 value20/value
 /parameter
 
 parameter
 namemaxIdle/name
 value30/value
 /parameter
 
 parameter
 namemaxWait/name
 value1/value
 /parameter
 
 
 parameter
 nameusername/name
 valuejavausr/value
 /parameter
 
 parameter
 namepassword/name
 valuejavadud/value
 /parameter
 
 parameter
 namedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value
 /parameter
 
 parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
 /parameter
 /ResourceParams
 /Context
 
 !-- end test context --
 
 /Host
 /Engine
   /Service
 
 
 /Server
 
 
 
 
 Raj Saini wrote:
 
 Hi jake,

 You woll need to define a context under a Tomcat-Apache service. I 
 belive you are using the context defined in the Stand-Alone service.
 you must have a virtual host and your context under this virtual host.

 I hope this helps you.

 Raj

 Jake Tweer wrote:

 I'm getting the same error with MySQL and I've seen posts for 
 PostgreSQL, MySQL and Oracle.  I have followed all suggestions with 
 no luck except for one case - the example given in the JNDI - How To 
 works for me.  The example is using standalone Tomcat and that 
 works.  As soon as I use Apache/mod_webapp I get the exception Cannot 
 load JDBC driver class 'null'.



 Robert Herold wrote:

 I've been happily using tomcat 4.0.4 for a while, and thought I'd 
 upgrade to
 version 4.1.12.  Alas, I cannot get tomcat to find my Oracle JDBC 
 driver
 when I use 4.1.12.  It worked fine in 4.0.4.

 Any ideas what might be wrong?

 My classes12.jar is in common/lib where it is supposed to be.  It's 
 the same
 file as I used under tomcat 4.0.4, so it is known to be good.

 I followed the configuration steps for setting up the JNDI 
 Datasource very
 carefully.

 The exception I get is:

 Caused by: java.sql.SQLException: Cannot load JDBC driver class 'null'
 at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav 

 a:529)
 at
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 

 12)
 at 
 com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107)
 ... 31 more

 My resource definition in server.xml is:

  DefaultContext debug=0 reloadable=true
Resource name=jdbc/CotagesoftDB auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/CotagesoftDB
  parameter
namefactory/name

 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter

RE: build.xml for Ant/JspC

2002-10-03 Thread Subir Sengupta

Sachin,

Thanks, I did get this working.  Do you also compile the the .java files
with ant?  If so, could you send me a snippet of that piece of the build.xml
file.  I couldn't get that working either (I'm using Ant for the first
time).

Thanks,
Subir

-Original Message-
From: Sachin Pandey
To: [EMAIL PROTECTED]
Sent: 10/2/2002 7:56 PM
Subject: Re: build.xml for Ant/JspC

There is a snippet of the build.xml that we use for jsp compilation.
java classname=${product.jspc.compiler} fork=true
dir=${product.webapp.build.dir}
arg value=-webinc/
arg value=${product.webapp.tmp.dir}/jsps-servlets/
arg value=-d/
arg value=${product.webapp.tmp.dir}/
arg value=-uriroot/
arg value=${product.webapp.build.dir}/
arg value=-exclude/
arg value=${product.jspc.exclude}/
arg value=-webapp/
arg value=.//
classpath refid=all-classpath /
/java

hth
Cheers
Sachin Pandey
NUIX Pty Ltd
Level 8, 143 York Street,
Sydney 2000
Phone: (02) 92839010
Fax: (02) 92839020

Disclaimer:
This message is intended only for the named recipient. If you are not
the
intended recipient you are notified that disclosing,copying,
distributing or
taking any action in reliance on the contents of this information is
strictly prohibited.
- Original Message -
From: Subir Sengupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 9:41 AM
Subject: build.xml for Ant/JspC


 Hi,

 Has anyone got Jspc running with Ant?  If so could you send me your
 build.xml or send me any suggestions on how to get it working.  I
followed
 the docs at
http://jakarta.apache.org/ant/manual/OptionalTasks/jspc.html
but
 couldn't get it working.

 I'm running TC 404 on Red Hat 7.3 and JDK 1.4

 Thanks,
 Subir

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


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

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




Please help me!!

2002-10-03 Thread [EMAIL PROTECTED]

Hi all,

I can't find an answer to this question. Plese help me.

I have an apache-tomcat(4.0.3) system installed. I use a connection 
DataSource with a Oracle database (I have a resource in server.xml with 
type=javax.sql.DataSource). --- Instruction in the JNDI Resources 
HOW-TO section of Tomcat 4.0.x.

My question is this. If Oracle DB crashes and it has to been restarted, 
does my web application,that uses DataSource, have to be restarted? 

I have a class with this static block:

static {
try  {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource) envCtx.lookup(dbName);
con =  ds.getConnection();
if (con == null)
  System.out.println([ERROR] Connection null);
  } catch (Exception ex) {
System.out.println([ERROR] Errore =   + ex.toString() +  \n 
+ ex.getMessage());
con = null;
  }
  }
 
and I have a method:


protected synchronized Connection getConnection() {
 while (conFree == false) {
try {
   wait();
} catch (InterruptedException e) {
  System.out.println([ERROR] Exception getConnection() =  
+ e.toString());
}
 }
 conFree = false;
 notify();
 return con;
}

In the servlets of my web application I call getConnection() to take 
the connection: if db is restarted what happen?

Thanks for your help

Laura



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




RE: Please help me!!

2002-10-03 Thread Miguel Angel Mulero Martinez

This depends on how you use the connection. If you use a db pool, then the
pool must reconnect. There're pools that do that and other that don't do.

Regards.

-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 03 de octubre de 2002 9:47
Para: tomcat-user
Asunto: Please help me!!

Hi all,

I can't find an answer to this question. Plese help me.

I have an apache-tomcat(4.0.3) system installed. I use a connection
DataSource with a Oracle database (I have a resource in server.xml with
type=javax.sql.DataSource). --- Instruction in the JNDI Resources
HOW-TO section of Tomcat 4.0.x.

My question is this. If Oracle DB crashes and it has to been restarted,
does my web application,that uses DataSource, have to be restarted?

I have a class with this static block:

static {
try  {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource) envCtx.lookup(dbName);
con =  ds.getConnection();
if (con == null)
  System.out.println([ERROR] Connection null);
  } catch (Exception ex) {
System.out.println([ERROR] Errore =   + ex.toString() +  \n
+ ex.getMessage());
con = null;
  }
  }

and I have a method:


protected synchronized Connection getConnection() {
 while (conFree == false) {
try {
   wait();
} catch (InterruptedException e) {
  System.out.println([ERROR] Exception getConnection() = 
+ e.toString());
}
 }
 conFree = false;
 notify();
 return con;
}

In the servlets of my web application I call getConnection() to take
the connection: if db is restarted what happen?

Thanks for your help

Laura



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




Handle Page Exception of JSP Included by Custom Tag

2002-10-03 Thread Jack Bates

One of my custom tags calls pageContext.include(path). The JSP that it 
includes, however, may generate an exception. Currently, when this 
occurs, I am not confronted with a tomcat error report. How can I 
obtain a description of the exception thrown in the included page? 
Thanks,

Jack


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




Re: Please help me!!

2002-10-03 Thread [EMAIL PROTECTED]

Well I use the default pool DataSource of tomcat 4.0.3.
I get a initial connection (--- static block) and then I return that 
with getConnection() method. 
I suppose that when the db is restarted my connection becomes null, but 
I'm not sure. 
I'm planning to use DBCP: is it possible using it with Tomcat 4.0.3?
How can I install it? 
Does DBCP resolve the problem of the DB restart?

Thanks


Laura 
This depends on how you use the connection. If you use a db pool, then 
the
 pool must reconnect. There're pools that do that and other that don't 
do.

 Regards.

 -Mensaje original-
  De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Enviado el: jueves, 03 de octubre de 2002 9:47
  Para: tomcat-user
  Asunto: Please help me!!
 
  Hi all,
 
  I can't find an answer to this question. Plese help me.
 
  I have an apache-tomcat(4.0.3) system installed. I use a connection
  DataSource with a Oracle database (I have a resource in server.xml w
ith
  type=javax.sql.DataSource). --- Instruction in the JNDI Resources
  HOW-TO section of Tomcat 4.0.x.
 
  My question is this. If Oracle DB crashes and it has to been restart
ed,
  does my web application,that uses DataSource, have to be restarted?
 
  I have a class with this static block:
 
  static {
  try  {
  Context initCtx = new InitialContext();
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  DataSource ds = (DataSource) envCtx.lookup(dbName);
  con =  ds.getConnection();
  if (con == null)
System.out.println([ERROR] Connection null);
} catch (Exception ex) {
  System.out.println([ERROR] Errore =   + ex.toString
() +  \n
  + ex.getMessage());
  con = null;
}
}
 
  and I have a method:
 
 
  protected synchronized Connection getConnection() {
   while (conFree == false) {
  try {
 wait();
  } catch (InterruptedException e) {
System.out.println([ERROR] Exception getConnection
() = 
  + e.toString());
  }
   }
   conFree = false;
   notify();
   return con;
  }
 
  In the servlets of my web application I call getConnection() to take
  the connection: if db is restarted what happen?
 
  Thanks for your help
 
  Laura
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 



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




RE: non-static method cannot be referenced from static context error

2002-10-03 Thread jon wingfield

The oreilly MultipartRequest uses DefaultFileRenamePolicy as, funnily
enough, a default when constructing as you have it in your code.

Later versions of the API (since 9thMay02) have overloaded constructors
where you can specify the FileRenamePolicy. The policy is asked to rename
the file before FilePart.writeTo(...) is called.

Here's a link to the constructor we use:
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.htm
l#MultipartRequest(javax.servlet.http.HttpServletRequest,%20java.lang.String
,%20int,%20com.oreilly.servlet.multipart.FileRenamePolicy)

The latest version of the API is:
http://www.servlets.com/cos/cos-27May2002.zip

Onto the code. The reason the compiler says your rename class should be
abstract is because it doesn't implement FileRenamePolicy. Your class has a
method changename whereas the FileRenamePolicy interface stipulates a method
rename.
Because your class (actually defined within the _jspService(...) method of
the compiled jsp) is abstract you can't instantiate it. However, in your
code you call reName.changename(...). reName is the class name not a
reference to an object of type reName so the compiler thinks you are calling
a static method. The changename method is not static.

Personally, i dislike anything but the simplest jsp scriptlets. Any complex
functionality should not be in the view layer. I would put the upload logic
(manipulation of the multipart request and decisions on where to save files)
in either a servlet or a filter.

So what to do.
1) Move the upload logic elsewhere (servlet/filter your choice). This makes
the code cleaner, easier to test (using tools such as junit
(http://www.junit.org) and mockobjects (http://www.mockobjects.com/)) and
more maintainable.
2) Really implement FileRenamePolicy and not within the jsp. Package it and
make it a standalone class. This follows as consequence of 1) but also
removes the horrible class declaration within a method you had before.

Good luck,

Jon

-Original Message-
From: hugo [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 04:52
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: non-static method cannot be referenced from static context
error


Hi

I would like to implement an interface called FileRenamePolicy from the
oreilly package for uploading files, and I am creating a class which
does the implementation.

Here is the relevant code:

%@ page session=true%
%@ page import=java.sql.* %
%@ page import=java.io.* %
%@ page import=java.net.* %
%@ page import=java.text.* %
%@ page import=java.util.* %
%@ page import=com.oreilly.servlet.* %
%@ page import=com.oreilly.servlet.multipart.* %

%
abstract class reName implements FileRenamePolicy {
  public File changename (File oldname) {
  DefaultFileRenamePolicy dfrp = new DefaultFileRenamePolicy();
   FileRenamePolicy frp = (FileRenamePolicy) dfrp;
   File savename = frp.rename(oldname);
  return savename;
  }
}
%

Apparently this class needed to be abstract for the jsp to compile.

Later on in the code, I would like to rename the file. First I create a
MultipartRequest object:

MultipartRequest mr = new
MultipartRequest(request,/var/www/projects_data/);

Then I upload the file object:

File oldn = mr.getFile(mr.getParameter(audit_doc));

And then I rename the file:

File newname = reName.changename(oldn);

But here is when I get the error:

non-static method changename(java.io.File) cannot be referenced from a
static context

What does this mean and what am I doing wrong?

After I rename the file, I would still like do download it (using the
new filename) to /var/www/projects_data/.

I think I have to use a method from the oreilly package named
FilePart.writeTo().

Would anyone be able to give me a hint on how to use this?

Any help, especially code examples, will be greatly appreciated.

Thanks

Hugo

--
Dr Hugo Bouckaert
Systems and Programming Engineer

GeoInformatics Exploration Australia P/L
57 Havelock St
West Perth, WA 6005
PO Box 1675, West Perth 6872

Ph:   61 08 9420 7400
Fax:  61 08 9226 1299

www.geoinformex.com


This email and any attachments may be confidential or legally
privileged. If you received this message in error or are not the
intended recipient, you should destroy the e-mail message and any
attachments or copies, and you are prohibited from retaining,
distributing, disclosing or using any information contained herein.
Please inform us of the erroneous delivery by return e-mail. Thank you
for your cooperation.



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



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




Tomcat SSL

2002-10-03 Thread Panos Skondras

Hi all again

I am trying to work with tomcat and ssl with clientauth=true.
I am trying to access the Tomcat on localhost and supply the client
certificate through IE
In tomcat i have a servlet which will print the certificate eventually.
Here are the steps i take
1.snip server.xml
 Connector className=org.apache.catalina.connector.http.HttpConnector

   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
  Factory
className=org.apache.catalina.net.SSLServerSocketFactory
   clientAuth=auth protocol=TLS
keystoreFile=c:\keystore\server.keystore keystorePass=771652/
/Connector

  /snip
2. Create the server.keystore
keytool -genkey -alias pask -keyalg rsa -keystore
c:\keystore\server.keystore

3.export the key to be put in IE Trust Root Dir
keytool -export -alias pask -keystore c:\keystore\server.keystore -file
server.cer

4.In IE Content import the server.cer into Trust Root Dir providers
Up to here if i put clientauth=false in server xml i have https
connection to tomcat with the IE showing it is SECURE the lock appears.

5.Now on the same machine i create the client certificate
keytool -genkey -alias pskon -keyalg rsa -keystore
c:\keystore\client.keystore
keytool -export -alias pskon -keystore c:\keystore\client.keystore -file
cl.cer
keytool -import -alias pskon -keystore c:\keystore\server.keystore -file
cl.cer

I also copy the server.keystore in jre/lib/security just in case
The attributes of the keys are CN=localhost ,ATHENS,ATHENS,ATHENS,GR
When i put back clientauth=true restart catalina 4.0.4 on WINDOWS XP
i get a page cannot displayed sign.

Am i doing somethig wrong..?
Any ideas are welcome..








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




Closing Tomcat processors (ajp13 connector)

2002-10-03 Thread Ryszard Lach

Hello,

Is there any parameter defining how many idle processors will Tomcat
keep running (Tomcat 4.x)? I have a pretty loaded server, wich from time
to time spawns even more tomcat threads to number defined in
maxProcessor (now it is 400!) and I did not observe closing of them
unless I stop tomcat.

The second problem is  that acceptCount seems not to work. As I
understood acceptCount defines number of connections accepted and queued
until there will be processors available to service them. When I look at
catalina_log and see that there is no more available processors -
an error  No processor available, rejecting this connection occurs
immediatly, even if acceptCount is set to 200. Am I missing something?

Richard.

-- 
First they ignore you. Then they laugh at you. Then they
fight you. Then you win. - Mohandas Gandhi.

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




Does anybody know ?- error 500

2002-10-03 Thread Skorupski Pawe ,(PZUZ)

Included servlet error: 500
Hi,

I keep getting the following error. The problem occurs when I changed (even
one letter) in any file - is it a bug or my mistake (what is in this case
rather not possible).
Thanks for help.

Pawe

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
/var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/pzu/_0002fprotect
ed_0002fpzu_0002fgora_00032_0002ejspgora2_jsp_1.class
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.facade.RequestDispatcherImpl.include(Compiled
Code)
at org.apache.jasper.runtime.PageContextImpl.include(Compiled Code)
at
p_00025otected.pzu._0002fprotected_0002fpzu_0002findex_0002ejspindex_jsp_4._
jspService(Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)






Pawe Skorupski

PZU YCIE SA
Biuro Ekonomiczno Aktuarialne
Wydzia Aktuarialny   

* 0-22 582 3670
*  [EMAIL PROTECTED]





RE: Documentation

2002-10-03 Thread Robert L Sowders

Thanks for that Mr. McClanahan,

I've already been over those pages with a fine tooth comb and managed to 
squeeze out what I was after.  The problem is just that, I had search for 
it, and I've looked at it before for other things.  There is no direct 
reference anywhere on it for submitting anything to the documentation, 
much less how to work with and compile the documentation locally, how to 
get it out of CVS, nothing. 

At the very least the how to contribute page needs to be redone to make 
it easier for everyone who has something to contribute to do it easily.  I 
guess that's where I'll start.

Once again I'll say it.  Tomcat would really benefit from a documentation 
project.  It's not rocket science, the wheel doesn't have to be invented. 
There are already good examples of documentation projects to emulate if 
not down right clone. 
http://httpd.apache.org/docs-project/
http://apache-server.com/tutorials/ATdocs-project.html

thanks again,

rls




Craig R. McClanahan [EMAIL PROTECTED]
10/02/2002 09:03 AM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:RE: Documentation



On Tue, 1 Oct 2002, Robert L Sowders wrote:

 Date: Tue, 1 Oct 2002 22:18:48 -0700
 From: Robert L Sowders [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: RE: Documentation

 I feel your pain John, frustration with poor documentation is always a 
big
 sore spot.  But let's not line them all up and shoot them just yet, ok.
 They still need to get Tomcat 5 out the door.  ,-)

 We can only hope that Tomcat-dev (who is reading this list, I hope) will
 set up some sort of method where people can at least submit changes or
 updates or something better than what we have now.

 I've received at least 10 emails off-line and around 5 or so from the
 list, of people who have things to contribute.  We want to help, the
 question is, can something be done to move to a coordinated effort and 
who
 will do it.  I submit that it must be controlled and reviewed by the
 developers themselves.  They have access to the resources, we don't, 
and,
 they are the authorities on tomcat, they have to be the reviewing
 authority.

 I know it will take no small effort to set this up but allot could be
 cloned from the good example of the Apache Documentation Project.

 So, are there any developer types lurking out there.  We got some
 documentation help for you, do ya want it?


Sure!

From the perspective of the developers, suggested changes to the
documentation (or proposed new documents) are treated exactly the same as
proposed bug fixes or enhancements to the code itself.  Therefore, the
best way to submit proposed changes is to create a bug report (or
enhancement request) in the bug tracking system:

  http://nagoya.apache.org/bugzilla/

and then create a patch to the existing documentation files that reflects
the change you propose.  Details for how to create the diff files for
patches is available online starting at:

  http://jakarta.apache.org/site/getinvolved.html

The existing Tomcat documentation can be found in the
webapps/tomcat-docs subdirectory of the jakarta-tomcat-4.0 CVS
repository.  Nearly all of it is in the form of XML files that are
post-processed through an XSLT stylesheet to produce the HTML that is
ultimately included in the tomcat-docs webapp, as well as posted online:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/

Changes to the menu bar on the left hand side would be made to the
webapps/tomcat-docs/project.html file.

General whines about how the documentation sucks will go to /dev/null.
Specific patches to add to (or fix) the existing documentation pages are
MUCH more likely to be effective :-).

 rls


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: Does anybody know ?- error 500

2002-10-03 Thread jon wingfield

Two stabs in the dark:
Does the user running tomcat have write permissions to the work directory?
Out of disk space on the /var/tomcat/work/ filesystem?

-Original Message-
From: Skorupski Pawe ,(PZUZ) [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 11:05
To: '[EMAIL PROTECTED]'
Subject: Does anybody know ?- error 500


Included servlet error: 500
Hi,

I keep getting the following error. The problem occurs when I changed (even
one letter) in any file - is it a bug or my mistake (what is in this case
rather not possible).
Thanks for help.

Pawe

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
/var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/pzu/_0002fprotect
ed_0002fpzu_0002fgora_00032_0002ejspgora2_jsp_1.class
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.facade.RequestDispatcherImpl.include(Compiled
Code)
at org.apache.jasper.runtime.PageContextImpl.include(Compiled Code)
at
p_00025otected.pzu._0002fprotected_0002fpzu_0002findex_0002ejspindex_jsp_4._
jspService(Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)






Pawe Skorupski

PZU YCIE SA
Biuro Ekonomiczno Aktuarialne
Wydzia Aktuarialny

* 0-22 582 3670
*  [EMAIL PROTECTED]




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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Robert L Sowders

So if that binary didn't work then get this one.  Rename it to mod_jk.so 
and copy it over the one you already have.

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

rls




Luminous Heart [EMAIL PROTECTED]
10/02/2002 08:30 PM
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

You are right, it is rh Linux 7.1. Event the binaries
from johnturner.com did not work. Same error.

--- Robert L Sowders [EMAIL PROTECTED] wrote:
 First thing you do is let us know what OS you are
 using.
 
 
 
 
 
 Luminous Heart [EMAIL PROTECTED]
 10/01/2002 08:46 PM
 Please respond to Tomcat Users List
 
 
 To: Tomcat Users List
 [EMAIL PROTECTED], [EMAIL PROTECTED]
 cc: 
 Subject:tomcat 4.1.12 with
 apache2.0.42 and mod_jk
 
 httpd: module mod_jk.c is not compatible with this
 version of Apache (found 20020612, need 20020903).
 Please contact the vendor for the correct version.
 
 I tried compiling different mod_jk's from jakarta
 site, but still get the same error. I am running
 apache 42, new compile and trying to compile 4.1.12.
 What is the best way to compile mod_jk, knowing that
 my old mod_jk is not working here.
 
 Thanks.
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.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]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.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]




RE: Error Compiling JSP under 4.1.12

2002-10-03 Thread John Trollinger

This is a JDK1.4 thing.  In jdk1.4 you are not allowed to have
unpackaged classes..

 -Original Message-
 From: John M. Hollingsworth [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, October 02, 2002 6:44 PM
 To: Tomcat Users List
 Subject: Re: Error Compiling JSP under 4.1.12
 
 
 I ran into the same problem.  Let's say my file is called 
 MyApp.  Previously, my JSP stated something like: 
 
 import MyApp;
 
 Tomcat 4.0.4 was cool with this.  But when I loaded 4.1.10 or 
 4.1.12, I get the same error you do.  So I moved MyApp.class 
 from \classes to \classes\MyAppGrp, then adjusted my JSP to 
 the following:
 
 import MyAppGrp.MyApp;
 
 It works fine after that.  
 
 Is this a reported bug?  I see this as a bug, but I only 
 currently have one page using a single class anyway, so it's 
 not a big workout for me to adjust my JSP to the setup I described.
 
  
  From: Sexton, George [EMAIL PROTECTED]
  Date: 2002/09/28 Sat AM 11:52:16 EDT
  To: [EMAIL PROTECTED]
  Subject: Error Compiling JSP under 4.1.12
  
  I am getting these errors when I try to compile a JSP page under 
  4.1.12
  
  
 /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/inde
  x_jsp.
  java:7: '.' expected
  import WebApp;
   ^
  
 /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/cal
 dev/index_jsp.
  java:8: '.' expected
  import CalServlet;
   ^
  
 /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/cal
 dev/index_jsp.
  java:48: cannot resolve symbol
  symbol  : variable WebApp
  location: class org.apache.jsp.index_jsp
out.print(WebApp.PRODUCT_NAME);
  
  
  The WebApp, and CalServlet classes exist in my 
 context/WEB-INF/classes 
  directory. I enabled debug for the JSP compiler and can see 
 that the 
  classpath is correct. This JSP page works fine under 4.0.4 and most 
  other Servlet containers.
  
  Any ideas on where I am going wrong would be appreciated.
  
  George Sexton
  MH Software, Inc.
  Home of Connect Daily Web Calendar Software 
  http://www.mhsoftware.com/connectdaily.htm
  Voice: 303 438 9585
  
  
  
  --
  To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
  For 
 additional commands, 
 e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: Does anybody know ?- error 500

2002-10-03 Thread Skorupski Pawe ,(PZUZ)

I did clear one of the temporary directories in var/tomcat/work/ filesystem
and now I got next error.
What's wrong now ?

Thanks for help.

Pawe

org.apache.jasper.JasperException: Unable to rename class file
/var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/_0002fprotected_0
002fpanel_0002ejsppanel_jsp_0.class to
/var/tomcat/work/agent.pzuzycie.com.pl_8080/_0002fprotected_0002fpanel_0002e
jsppanel.class
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)



-Original Message-
From: jon wingfield [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:21 PM
To: Tomcat Users List
Subject: RE: Does anybody know ?- error 500


Two stabs in the dark:
Does the user running tomcat have write permissions to the work directory?
Out of disk space on the /var/tomcat/work/ filesystem?

-Original Message-
From: Skorupski Pawe ,(PZUZ) [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 11:05
To: '[EMAIL PROTECTED]'
Subject: Does anybody know ?- error 500


Included servlet error: 500
Hi,

I keep getting the following error. The problem occurs when I changed (even
one letter) in any file - is it a bug or my mistake (what is in this case
rather not possible).
Thanks for help.

Pawe

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
/var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/pzu/_0002fprotect
ed_0002fpzu_0002fgora_00032_0002ejspgora2_jsp_1.class
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.facade.RequestDispatcherImpl.include(Compiled
Code)
at org.apache.jasper.runtime.PageContextImpl.include(Compiled Code)
at
p_00025otected.pzu._0002fprotected_0002fpzu_0002findex_0002ejspindex_jsp_4._
jspService(Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled

RE: Please help me!!

2002-10-03 Thread Koes, Derrick


You may want to look into these two classes from oracle.
oracle.jdbc.oci.OracleOCIConnection
oracle.jdbc.pool.OracleOCIConnectionPool


They should be in the classes12.jar.
This will preclude you from using the thin driver, but probably provide more
stability in connection pooling.

Read Oracle documentation here.
http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/index.htm


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, October 03, 2002 3:47 AM
To: tomcat-user
Subject: Please help me!!

Hi all,

I can't find an answer to this question. Plese help me.

I have an apache-tomcat(4.0.3) system installed. I use a connection 
DataSource with a Oracle database (I have a resource in server.xml with 
type=javax.sql.DataSource). --- Instruction in the JNDI Resources 
HOW-TO section of Tomcat 4.0.x.

My question is this. If Oracle DB crashes and it has to been restarted, 
does my web application,that uses DataSource, have to be restarted? 

I have a class with this static block:

static {
try  {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
DataSource ds = (DataSource) envCtx.lookup(dbName);
con =  ds.getConnection();
if (con == null)
  System.out.println([ERROR] Connection null);
  } catch (Exception ex) {
System.out.println([ERROR] Errore =   + ex.toString() +  \n 
+ ex.getMessage());
con = null;
  }
  }
 
and I have a method:


protected synchronized Connection getConnection() {
 while (conFree == false) {
try {
   wait();
} catch (InterruptedException e) {
  System.out.println([ERROR] Exception getConnection() =  
+ e.toString());
}
 }
 conFree = false;
 notify();
 return con;
}

In the servlets of my web application I call getConnection() to take 
the connection: if db is restarted what happen?

Thanks for your help

Laura



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
This electronic transmission is strictly confidential to Smith  Nephew and
intended solely for the addressee.  It may contain information which is
covered by legal, professional or other privilege.  If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy or take any action in reliance on this
transmission.  If you have received this transmission in error, please
notify the sender as soon as possible and destroy this message.


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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Henri Gomez

  httpd: module mod_jk.c is not compatible with this
  version of Apache (found 20020612, need 20020903).

Did you tried with one from JK 1.2.0 release ?

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/rpms/

Since you're a Redhat user, may I recommand you to get also the Apache
2.0.42 rpm :

http://ftp.falsehope.com/home/gomez/apache2/


Regards



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




Re: Another Problem that annoys the hell out of me

2002-10-03 Thread Henri Gomez

You must have a broken Xalan 2.2 or 2.3.1.

Upgrade to Xalan 2.4.0 

Btw, if you want to build native code, you could
use configure instead ;-)



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




Re: JSP Source visible with mod_jk

2002-10-03 Thread Henri Gomez

Could you send us your httpd.conf and workers.properties setup ?




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




Encoding problems

2002-10-03 Thread moonie

Hi.

I have some problems with the encoding.

At the top of the JSP page I have placed:

%@ page language=java contentType=text/html;charset=ISO-8859-1 
pageEncoding=ISO-8859-1

I then receives a paramter (name) with the following original-content: Raunkjær.

When it is displayed it changes to: RaunkjÝr.

I use...:

% String name = request.getParameter(name); %


...to extract and print the name.

Why does the JSP pages not 'use' the contentType/pageEncoding from the page
directive?

Best regards,

Lars Nielsen Lind


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




RE: how to integrate tomcat with apache

2002-10-03 Thread Anup Ray

Thank you for your help. It worked for me. It worked with jre for me.
Thanks again.
Anup

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 2:38 PM
To: 'Tomcat Users List'
Subject: RE: how to integrate tomcat with apache



I'm not sure the JRE will work for you, you may need the JDK, but I could be
wrong.

You will need to select a connector.  Mod_jk is production ready.  Binaries
for Solaris are available here:

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

So the flow looks like this:

Apache - Mod_jk Connector - Tomcat

Search the list archives for setting up a connector, the topic comes up
several times a day.

John


 -Original Message-
 From: Anup Ray [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 2:34 PM
 To: Tomcat Users List
 Subject: RE: how to integrate tomcat with apache


 Thanks for your suggestions: more info. are given below:
 1. Java version:
  ./java -version
 java version 1.3.0
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
 Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

 2. Tomcat version: jakarta-tomcat-4.0.4
 3. Apache ssl version:
 Apache/1.3.22 Server at cdidev.safeguardproperties.com Port 443

 There is no errors posted for this in apache error_log file.

 actually my problem is how to make apache working taking jsp
 from tomcat.
 Do these mean anything to you.
 If you could suggest me something to get over it, that will be great.
 Anup

 -Original Message-
 From: Rick Fincher [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 5:33 PM
 To: Tomcat Users List
 Subject: Re: how to integrate tomcat with apache


 Hi Anup,

 You'll have to post the error message so we can see exactly
 what happened.

 Was the error in Apache or Tomcat?  Presumably it was in
 Apache. Anything in
 the logs?  What versions of Apache and Tomcat are you using?
 What version
 of JDK?

 The URL's you give below are not valid, so we can't try them out.

 Rick

 - Original Message -
 From: Anup Ray [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, September 26, 2002 5:22 PM
 Subject: RE: how to integrate tomcat with apache


 
  I did not get any response. so I am reposting it. Please help me:
  Anup
  I am a newbie in tomcat. I installed tomcat in Solaris and
 configured it
 at
  port 8090. Now I want to integrate it with apache ssl web
 server working
  with port 443 in the same server and get  a spellcheck application
 working.
  Now with tomcat spellcheck is working as you see here:
  http://u10-3:8090/jspellhtml/test.html.org ---click spellcheck
 
  But when it is accessed via apache  spellcheck does not
 work as you see
  here:
  https://u10-3/jspellhtml/test.html.org  --click spellcheck
 
  It is giving error: 405 Method not allowed.
 
  Could any body help me out.
  Thanks,
  anup ray

 


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


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

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


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




Re: How to create a connection pool

2002-10-03 Thread java guru

Hi -
  I am not sure on what type of application you are
building, but doing connection related stuff
(including running sql over already established
connection in jsp) isnt very good idea. Read about mvc
model if you are in design stage.
   In anycase, if you still need access to pooled
connection, tomcat offers connection pooling (in the
default server.xml ) and refer to apache jsp taglib on
how to access one.


FYI
srini
 --- phani [EMAIL PROTECTED] wrote:  Hi,
 
 I am using a bean to get connection for a db from my
 jsp page. But the problem is for each and every
 request the page fetches a connection from  the
 bean. This becomes a over head to the system.
 What i want to do is i want to open n no (say 50 )
 of connection when the server is started and any
 request must be routed through these connection
 only.
 
 How to do this?
 
 Thanks in advance.
 
 phani
  

=
Thanks and have great day
srini


Missed your favourite TV serial last night? Try the new, Yahoo! TV.
   visit http://in.tv.yahoo.com

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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

Sorry, I do not do rpms. They are too tidy for me ;)
let us put it that way. Yes, I can safely say I tried
almost every build of the connectors. I am running
jdk1.4.1 though.

--- Henri Gomez [EMAIL PROTECTED] wrote:
   httpd: module mod_jk.c is not compatible with
 this
   version of Apache (found 20020612, need
 20020903).
 
 Did you tried with one from JK 1.2.0 release ?
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/rpms/
 
 Since you're a Redhat user, may I recommand you to
 get also the Apache
 2.0.42 rpm :
 
 http://ftp.falsehope.com/home/gomez/apache2/
 
 
 Regards
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




JSession ID in address bar

2002-10-03 Thread gautam

Hello,

I am using form based authentication for my application (Tomcat 4.0.5, JDK
1.4, Win2K). I have tomcat configured to use SSL. Everything work fine.
However, I keep getting the jsessionid value in the address bar. This
happens for the first page only. Does not appear for subsequent pages
(regardless of authetication result). I am using IE 6.0.

https://localhost:8553/mywebapp/logon.jsp;jsessionid=E752F79F89D3423A1BEBB4D
4F2802D60

I am accessing the web app by : https://localhost:8553/mywebapp/

Web XML snippet :
--
welcome-file-listwelcome-file/jsp/index.jsp/welcome-file/welcome-file
-list

security-constraint
web-resource-collection
web-resource-nameSecure Area/web-resource-name
url-pattern*.jsp/url-pattern
url-pattern*.ma/url-pattern
/web-resource-collection
auth-constraintrole-name*/role-name/auth-constraint

user-data-constrainttransport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/logon.jsp/form-login-page
form-error-page/fail_logon.jsp/form-error-page
/form-login-config
/login-config

security-rolerole-name*/role-name/security-role

Logon.jsp snippet :
--
form method=POST action='%= response.encodeURL(j_security_check) %'

table border=1 cellspacing=0 width=250 cellpadding=0
bgcolor=#FFF8DCtrtd colspan=2nbsp;/td/tr
trtd width=50% valign=middle align=rightfont
color=#00bUser Id:/b/fontnbsp;/tdtd width=50%
valign=middle align=centerpnbsp;

input type=text name=j_username size=16 maxlength=16

/p/td/trtrtd width=50% valign=middle align=rightbfont
color=#00Password:/font/b /tdtd width=50% valign=middle
align=centernbsp;

input type=password name=j_password size=16 maxlength=16

/td/trtrtd width=50% valign=middle align=rightnbsp;/tdtd
width=50% valign=middle align=center

input type=submit name=logon_submit value=Login/

/td/tr/table

/form

fail_logon.jsp snippet :
-
table width=100%
  trtd align=leftUnable to login. a href='%=
response.encodeURL(logon.jsp) %'Please try again./a/td/tr
/table

My index.jsp page just has normal HREFs in it. No Java code.

What is happening ? How do I correct this ?

Regards,

Gautam S


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




AW: JSP Source visible with mod_jk

2002-10-03 Thread Holger Klein-Altstedde

Found my error (in the last 5 min)

I had a
 
 DocumentRoot /opt/jakarta-tomcat-4.0.3/webapps/mywebapp

Line in my httpd.conf. No wonder that all my static source pages where
delivered.
Thank you for your help.

Holger

-Ursprüngliche Nachricht-
Von: Henri Gomez [mailto:[EMAIL PROTECTED]] 
Gesendet: Donnerstag, 3. Oktober 2002 14:23
An: [EMAIL PROTECTED]
Betreff: Re: JSP Source visible with mod_jk


Could you send us your httpd.conf and workers.properties setup ?




--
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: build.xml for Ant/JspC

2002-10-03 Thread Kevin HaleBoyes

 There is a snippet of the build.xml that we use for jsp
compilation.

I'm lurking on this thread but wanted to ask:
What is your classpath refid=all-classpath / set to?
I've attempted JspC but I get class-not-found errors and when I
resolve them I get problems with the endorsed/sealed XML classes.

In the end I resorted to calling jspc.sh as shipped with Tomcat
as it seems to manage the classpath properly:

exec executable=/bin/sh
arg line=${catalina.home}/bin/jasper.sh/
arg line=jspc/
arg line=-webapp ${build.home}/
arg line=-webinc ${build.jspc.home}/webinc.xml/
arg line=-uriroot ${build.home}/
arg line=-p com.mydomain/
arg line=-d ${build.jspc.home}/
arg line=-v/
/exec

In answer to another posters question (sorry, I don't remember
who it was), once the above call to jspc.sh finishes I then call
the java compiler as follows:

javac srcdir=${build.jspc.home}
  destdir=${build.home}/WEB-INF/classes
debug=${compile.debug}
  deprecation=${compile.deprecation}
 optimize=${compile.optimize}
classpath refid=compile.classpath/
include name=**/*.java/
/javac

Thanks,
Kevin.


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: how to integrate tomcat with apache

2002-10-03 Thread Turner, John


No problem, glad to help.

John


 -Original Message-
 From: Anup Ray [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 8:26 AM
 To: Tomcat Users List
 Subject: RE: how to integrate tomcat with apache
 
 
 Thank you for your help. It worked for me. It worked with jre for me.
 Thanks again.
 Anup
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 27, 2002 2:38 PM
 To: 'Tomcat Users List'
 Subject: RE: how to integrate tomcat with apache
 
 
 
 I'm not sure the JRE will work for you, you may need the JDK, 
 but I could be
 wrong.
 
 You will need to select a connector.  Mod_jk is production 
 ready.  Binaries
 for Solaris are available here:
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1.2.0
 /bin/solaris8/
 
 So the flow looks like this:
 
 Apache - Mod_jk Connector - Tomcat
 
 Search the list archives for setting up a connector, the 
 topic comes up
 several times a day.
 
 John
 
 
  -Original Message-
  From: Anup Ray [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 27, 2002 2:34 PM
  To: Tomcat Users List
  Subject: RE: how to integrate tomcat with apache
 
 
  Thanks for your suggestions: more info. are given below:
  1. Java version:
   ./java -version
  java version 1.3.0
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
  Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
 
  2. Tomcat version: jakarta-tomcat-4.0.4
  3. Apache ssl version:
  Apache/1.3.22 Server at cdidev.safeguardproperties.com Port 443
 
  There is no errors posted for this in apache error_log file.
 
  actually my problem is how to make apache working taking jsp
  from tomcat.
  Do these mean anything to you.
  If you could suggest me something to get over it, that will 
 be great.
  Anup
 
  -Original Message-
  From: Rick Fincher [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 26, 2002 5:33 PM
  To: Tomcat Users List
  Subject: Re: how to integrate tomcat with apache
 
 
  Hi Anup,
 
  You'll have to post the error message so we can see exactly
  what happened.
 
  Was the error in Apache or Tomcat?  Presumably it was in
  Apache. Anything in
  the logs?  What versions of Apache and Tomcat are you using?
  What version
  of JDK?
 
  The URL's you give below are not valid, so we can't try them out.
 
  Rick
 
  - Original Message -
  From: Anup Ray [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, September 26, 2002 5:22 PM
  Subject: RE: how to integrate tomcat with apache
 
 
  
   I did not get any response. so I am reposting it. Please help me:
   Anup
   I am a newbie in tomcat. I installed tomcat in Solaris and
  configured it
  at
   port 8090. Now I want to integrate it with apache ssl web
  server working
   with port 443 in the same server and get  a spellcheck application
  working.
   Now with tomcat spellcheck is working as you see here:
   http://u10-3:8090/jspellhtml/test.html.org ---click spellcheck
  
   But when it is accessed via apache  spellcheck does not
  work as you see
   here:
   https://u10-3/jspellhtml/test.html.org  --click spellcheck
  
   It is giving error: 405 Method not allowed.
  
   Could any body help me out.
   Thanks,
   anup ray
 
  
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




which connector directory?

2002-10-03 Thread Thad Humphries

In http://jakarta.apache.org/builds/ I find source for connectors in
jakarta-tomcat-connectors/* and in
jakarta-tomcat-4.0/release/v4.1.12/src/jakarta-tomcat-connectors-4.1.12-src.tar.gz 
Which am I supposed to use?  Are the connectors in the Tomcat 4.0
release directory being moved to jakarta-tomcat-connectors/* ?
-- 

Thad Humphries  ...no religious test shall ever be required
Web Development Manager  as a qualification to any office or public
Phone: 540/675-3015, x225trust under the United States. -Article VI


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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Henri Gomez

Hum,

Having a Redhat box and not using rpm is strange,
btw if you have build an Apache 2.0.42 on your system,
you should be able to build mod_jk 1.2.0 :


http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/jk/aphowto.html


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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Matt Fury

I know you all are talking about Linux or Unix based
but I've found an excellent site for Windows
Apache/Tomcat JK.

http://www.acg-gmbh.de/mod_jk/

For future reference! :-)


--- Luminous Heart [EMAIL PROTECTED] wrote:
 Sorry, I do not do rpms. They are too tidy for me ;)
 let us put it that way. Yes, I can safely say I
 tried
 almost every build of the connectors. I am running
 jdk1.4.1 though.
 
 --- Henri Gomez [EMAIL PROTECTED] wrote:
httpd: module mod_jk.c is not compatible with
  this
version of Apache (found 20020612, need
  20020903).
  
  Did you tried with one from JK 1.2.0 release ?
  
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/rpms/
  
  Since you're a Redhat user, may I recommand you to
  get also the Apache
  2.0.42 rpm :
  
  http://ftp.falsehope.com/home/gomez/apache2/
  
  
  Regards
  
  
  
  --
  To unsubscribe, e-mail:  
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=

int myName() {
  cout  -Matt Fury \n;
  return 0;
}


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Reference Site?

2002-10-03 Thread Bryan Dollery

Hi guys,

I'm preparing a tender for a local company who want to replace all of their
SAP and satellite systems with a lower cost approach.

I'd like to recommend Tomcat as the container for the  presentation /
controller layer of our proposed architecture.

The client requires reference sites for every tool/technology proposed, so
I'm looking for one (or preferably more) to add to our proposal. The client
is in the warehouse/supply/food market, so if there is anyone in a similar
space it would be great to hear from you.

So, are you using tomcat in a production environment, and if so would you
be willing to act as a reference site? We're based in New Zealand, so this
would only entail a very low volume email chat.

Cheers,

Bryan


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




MOD_WEBAPP PROBLEM: RESTART APACHE IF RESTART TOMCAT

2002-10-03 Thread Fabio Marsilio

Hello,

I use tomcat 4.0.5 and apache 1.3.26 with mod_webapp (the one built from
sources of tomcat- connectors 4.0.5)

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.5/src/
jakarta-tomcat-connectors-4.0.5-src.tar.gz

THE PROBLEM:

when I restart tomcat I must restart apache too in order to make it work
(otherwise apache works but the connection with tomcat is lost)

is there a possible configuration to avoid this behavior?

thank you in advance.

Fabio







RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Turner, John


When you use an RPM, you're letting someone else decide where to put things
on your machine, and how to configure your machine. You are trusting someone
else to do the right thing every time.  Some people find that annoying and
risky, and prefer to make their own decisions. ;)

John


 -Original Message-
 From: Henri Gomez [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 9:03 AM
 To: [EMAIL PROTECTED]
 Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
 
 
 Hum,
 
 Having a Redhat box and not using rpm is strange,
 btw if you have build an Apache 2.0.42 on your system,
 you should be able to build mod_jk 1.2.0 :
 
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1.2.0/doc/jk/aphowto.html
 
 
 --
 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: How to create a connection pool

2002-10-03 Thread Venkat Reddy Valluri

You can use  OracleConnectionCacheImpl to implement connection pooling
you have to set the attributes for this  by getting them from web.xml
if you refer that class ou can understand



-Original Message-
From:   Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Sent:   Thu 10/3/2002 2:19 AM
To: Tomcat Users List
Cc: 
Subject:Re: How to create a connection pool
Maybe you can use the connection pooling provided by tomcat. See the 
JNDI how-to in the docs.

phani wrote:

Hi,

I am using a bean to get connection for a db from my jsp page. But the problem is for 
each and every request the page fetches a connection from  the bean. This becomes a 
over head to the system.
What i want to do is i want to open n no (say 50 ) of connection when the server is 
started and any request must be routed through these connection only.

How to do this?

Thanks in advance.

phani

  




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





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


RE: Does anybody know ?- error 500

2002-10-03 Thread jon wingfield

Not sure. The previous response was just to highlight likely causes.
If you have freed up space on the filesystem then it may be a file
permissions problem. The user (currently) executing tomcat may not have
permissions to create files or directories below /var/tomcat/work.

Diagnostic stuff to do:
Use the unix df utility to check free space on the filesystem
Use the unix ll (or ls -l) command to look at the owning user and
permissions assigned to the tomcat work directory
Use the unix top utility to find the user that started tomcat (or find the
process using ps)

Sorry if i'm giving you obvious advice but i've not seen errors like these
before.

Jon

Last resort: If you are feeling brave you may want to delete the work
directory and restart tomcat.

-Original Message-
From: Skorupski Pawe ,(PZUZ) [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 12:46
To: 'Tomcat Users List'
Subject: RE: Does anybody know ?- error 500


I did clear one of the temporary directories in var/tomcat/work/ filesystem
and now I got next error.
What's wrong now ?

Thanks for help.

Pawe

org.apache.jasper.JasperException: Unable to rename class file
/var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/_0002fprotected_0
002fpanel_0002ejsppanel_jsp_0.class to
/var/tomcat/work/agent.pzuzycie.com.pl_8080/_0002fprotected_0002fpanel_0002e
jsppanel.class
at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.core.ContextManager.internalService(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)



-Original Message-
From: jon wingfield [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:21 PM
To: Tomcat Users List
Subject: RE: Does anybody know ?- error 500


Two stabs in the dark:
Does the user running tomcat have write permissions to the work directory?
Out of disk space on the /var/tomcat/work/ filesystem?

-Original Message-
From: Skorupski Pawe ,(PZUZ) [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 11:05
To: '[EMAIL PROTECTED]'
Subject: Does anybody know ?- error 500


Included servlet error: 500
Hi,

I keep getting the following error. The problem occurs when I changed (even
one letter) in any file - is it a bug or my mistake (what is in this case
rather not possible).
Thanks for help.

Pawe

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPerror:
Can't write:
/var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/pzu/_0002fprotect
ed_0002fpzu_0002fgora_00032_0002ejspgora2_jsp_1.class
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at org.apache.tomcat.facade.RequestDispatcherImpl.include(Compiled
Code)
at org.apache.jasper.runtime.PageContextImpl.include(Compiled Code)
at
p_00025otected.pzu._0002fprotected_0002fpzu_0002findex_0002ejspindex_jsp_4._
jspService(Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at 

Re: tomcat 4.1.12 JDBC driver class 'null'

2002-10-03 Thread Jake Tweer

Raj,

Thanks again but I am still getting the exception.  I'll probably have 
to shelve working on this for the time being. Should I look at the 
mod_jk2 connector as an alternative?



Raj Saini wrote:

 Jake,
 
 You will need to put a defaulthost attribute in your engine defination.
 This is a bug in the server.xml and it was detacted long back ago. Dont 
 know why it is not still corrected in the server.xml file. May be the 
 warp connecter is no more actively developed.
 
 Your Engine tag should be:-
 
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 defaulthost=prod_host
 
 I hope this will work.
 
 Cheers,
 
 Raj
 Jake Tweer wrote:
 
 Raj,

 Thanks for the tip - I tried your suggestion by moving the JNDI-How To 
 example out of the standalone tomcat service and into the 
 Tomcat-Apache service.  Bear in mind that the example works Ok in 
 tomcat standalone. The Tomcat-Apache service I am using is the default 
 provided and works in all other ways.  To that I added the virtual 
 host and the context. In other words in the following sample, what I 
 have added to the default Apache-Tomcat service is contained in and 
 includes the Host tags.

 I am still getting the error.




   !-- 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 appBase=webapps
  acceptCount=10 debug=0/

 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0

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

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





   !-- Define the default virtual host --
 Host name=prod_host debug=9 appBase=webapps
unpackWARs=true autoDeploy=true


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



 !-- test context --

 Context path=/DBTest docBase=DBTest
 debug=5 reloadable=true crossContext=true

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

 Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource/

 ResourceParams name=jdbc/TestDB
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter

 parameter
 namemaxActive/name
 value20/value
 /parameter

 parameter
 namemaxIdle/name
 value30/value
 /parameter

 parameter
 namemaxWait/name
 value1/value
 /parameter


 parameter
 nameusername/name
 valuejavausr/value
 /parameter

 parameter
 namepassword/name
 valuejavadud/value
 /parameter

 parameter
 namedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value
 /parameter

 parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
 /parameter
 /ResourceParams
 /Context

 !-- end test context --

 /Host
 /Engine
   /Service


 /Server




 Raj Saini wrote:

 Hi jake,

 You woll need to define a context under a Tomcat-Apache service. I 
 belive you are using the context defined in the Stand-Alone service.
 you must have a virtual host and your context under this virtual host.

 I hope this helps you.

 Raj

 Jake Tweer wrote:

 I'm getting the same error with MySQL and I've seen posts for 
 PostgreSQL, MySQL and Oracle.  I have followed all suggestions with 
 no luck except for one case - the example given in the JNDI - How To 
 works for me.  The example is using standalone Tomcat and that 
 works.  As soon as I use Apache/mod_webapp I get the exception 
 Cannot load JDBC driver class 'null'.



 Robert Herold wrote:

 I've been happily using tomcat 4.0.4 for a while, and thought I'd 
 upgrade to
 version 4.1.12.  Alas, I cannot get tomcat to find my Oracle JDBC 
 driver
 when I use 4.1.12.  It worked fine in 4.0.4.

 Any ideas what might be wrong?

 My classes12.jar is in common/lib where it is supposed to be.  It's 
 the same
 file as I used under tomcat 4.0.4, so it is known to be good.

 I followed the configuration steps for setting up the JNDI 
 Datasource very
 carefully.

 The exception I get is:

 Caused by: java.sql.SQLException: Cannot load JDBC driver class 'null'
 at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav 

 a:529)
 at
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 

 12)
 at 
 com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107)
 ... 31 more

 My resource definition in server.xml is:

  DefaultContext debug=0 reloadable=true
Resource name=jdbc/CotagesoftDB auth=Container
   type=javax.sql.DataSource/
 ResourceParams 

Re: How to create a connection pool

2002-10-03 Thread Philippe de M. Sevestre

Simple way: use the poolman jdbc driver.


- Original Message -
From: java guru [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Quinta-feira, 3 de Outubro de 2002 09:28
Subject: Re: How to create a connection pool


 Hi -
   I am not sure on what type of application you are
 building, but doing connection related stuff
 (including running sql over already established
 connection in jsp) isnt very good idea. Read about mvc
 model if you are in design stage.
In anycase, if you still need access to pooled
 connection, tomcat offers connection pooling (in the
 default server.xml ) and refer to apache jsp taglib on
 how to access one.


 FYI
 srini
  --- phani [EMAIL PROTECTED] wrote:  Hi,
 
  I am using a bean to get connection for a db from my
  jsp page. But the problem is for each and every
  request the page fetches a connection from  the
  bean. This becomes a over head to the system.
  What i want to do is i want to open n no (say 50 )
  of connection when the server is started and any
  request must be routed through these connection
  only.
 
  How to do this?
 
  Thanks in advance.
 
  phani
 

 =
 Thanks and have great day
 srini

 
 Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.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]




Tomcat 5 and Status

2002-10-03 Thread Christian Gross

I have playing around with Tomcat 5, got it to compile and build without 
problems.  But running it is impossible since it comes up with null 
expections.  And running Jasper is impossible as well.  I am assuming since 
there is no milestone release, Tomcat 5 is pretty alpha, yes?


Christian Gross
Software Engineering Consultant
http://www.devspace.com
North America: 1-450-675-4208
Europe +41.1.701.1166


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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Henri Gomez

 When you use an RPM, you're letting someone else decide where to put 
 things on your machine, and how to configure your machine. You are 
 trusting someone else to do the right thing every time.  Some people 
 find that annoying and risky, and prefer to make their own decisions. ;)

I understand that point and rpm packagers does their best to avoid any
complication, for example my rpms for Apache 2.0, allow a coexistance
with Apache 1.3 installed (diff conf dir, www dirs, lib dir..., listen 
ports).

rpm is great when you are a newbie or when you have to duplicate a
configuration on farms of machines and want so have a reproductible
process.

And when an user goes with a customly built package like Apache 2.0.42,
he should be prepared to also have to build himself the others packages,
like jk ;-)





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




Single-Signon and Tomcat

2002-10-03 Thread Gill, John

Hi,

 

Does anyone know of an opensource implementation of Single-Sign-On that uses
SAML and will work on Tomcat?

 

John Gill




Re: Connection Pool Not Reusing Connections

2002-10-03 Thread echambe1


The below web descriptor does not actually use a Connection Pool since
you do not define the factory tag to tell Tomcat that the JNDI is a
Connection pool.
As of now, it is just generating a new connection every time you request
one.

See below for example factory that will work with Tomcat 4.1.10

parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter


Tomcat release 4.1.10 and higher comes with the Jakarta Commons Database
Connection pool.
If you are using a release lower, you can down load the DBCP from the
Jakarta site.

Hope this helps,
Ej Chambers





Thaddeus Gean Cowan Thompson [EMAIL PROTECTED] on 10/02/2002
08:33:04 PM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Connection Pool Not Reusing Connections



Tomcat Users -

I am trying to implement connection pooling.  I seem to be able to get a
connection from the pool without any problems, by following the steps
in the Tomcat docs, but it does not seem to reuse any of the connections
from the pool.  The reason that I believe this is because when I grab a
connection from the pool I do a toString on it, resulting in someting like
'org.gjt.mm.mysql.jdbc2.Connection@60bf50', but the same toString never
appears twice.  In addition after using (creating and closing) about
3,000 connections in rappid succession I start revieving null pointers
when I try to obtain a connection from the pool.

I have edited my web.xml as follows.
resource-ref
  description
Reference to the Connection Pool defined in server.xml
  /description
  res-ref-namejdbc/customer/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

I have edited my server.xml as follows.
Context path=/grocery_site
 reloadable=true
 debug=0
 docBase=grocery_site
  Resource name=jdbc/customer
auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/customer
parameter
  namedriverClassName/name
  valueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
  namedriverName/name
  valuejdbc:mysql://localhost:3306/grocery_customer/value
/parameter
parameter
  nameuser/name
  valuegrocery/value
/parameter
parameter
  namepassword/name
  valuegrocery/value
/parameter
  /ResourceParams
  Resource name=jdbc/product
auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/product
parameter
  namedriverClassName/name
  valueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
  namedriverName/name
  valuejdbc:mysql://localhost:3306/grocery_product/value
/parameter
parameter
  nameuser/name
  valuegrocery/value
/parameter
parameter
  namepassword/name
  valuegrocery/value
/parameter
  /ResourceParams
/Context

I have tried the addion of the maxIdle, maxActive, and removeAbandoned
parameters to my configuration, but they seemed to have no effect.

The utility method that is used to get a connection from the pool is as
follows.  The gc stuff is ran to clean up the Connections that the pool
seams to be discarding rather then reusing (this is a hack untill I get
this problem solved).
  private static Connection getPooledConnection(String data_source){
Connection connection = null;
try{
  Context context = (Context) new InitialContext().lookup(
  java:comp/env);
  DataSource ds = ((DataSource) context.lookup(data_source));
  connection = ds.getConnection();
}
catch(Exception e){
  System.err.println(DatabaseUtil.getPooledConnection():  +
Unable to retrive connection from pool.  +
Running System.runFinalization() and System.gc());
  System.runFinalization();
  System.gc();
}
return connection;
  }

In reading some docs I found that I should call ResultSet.close(),
Statement.close(), and Connection.close() to ensure that the connections
get reused.  So I have check all my code over for those type of leaks, but
had no success.  I should mention that all the methods in a single Object
instance share a Connection between methods (but use a fresh Statement and
ResultSet for each query/update), and I close the Connection in the
Object's finalize method as follows.
  protected void finalize() throws Throwable{
System.out.print(Closing  + connection + ...);
connection.close();
System.out.println(connection);
  }

When executed the method prints somthing like
Closing org.gjt.mm.mysql.jdbc2.Connection@60bf50 ...
org.gjt.mm.mysql.jdbc2.Connection@60bf50


I should also mention that even though an Object's method may share a
Connection, the Object's static methods create and close thier own
Connections.  This means that two connections may be checked out of the
pool.  An archive message said this could mess up the pool, but I have a
hard time beleiving this (what if two separate Objects both need 

Re: error 500 - bug ?

2002-10-03 Thread David Mossakowski

Greetings,

When does this error happen?  When accessing that one changed JSP page 
or all the pages?  Does restarting the server help?  Does this problem 
appear after you change a jsp filename to something else?  Does this 
problem go away after you restart?  You may also try to shut down tomcat 
then remove all compiled JSP files and sessions then start back up.

Powodzenia :),
d.

Skorupski Pawe ,(PZUZ) wrote:
 Included servlet error: 500
 Hi,
 
 I keep getting the following error. The problem occurs when I changed (even
 one letter) in any file - is it a bug or my mistake (what is in this case
 rather not possible).
 Thanks for help.
 
 Pawe
 
 Internal Servlet Error:
 org.apache.jasper.JasperException: Unable to compile class for JSPerror:
 Can't write:
 /var/tomcat/work/agent.pzuzycie.com.pl_8080/p_00025otected/pzu/_0002fprotect
 ed_0002fpzu_0002fgora_00032_0002ejspgora2_jsp_1.class
 1 error
 
   at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
   at org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled Code)
   at org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled Code)
   at org.apache.jasper.servlet.JspServlet.loadJSP(Compiled Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
 led Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
   at org.apache.tomcat.core.Handler.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
   at org.apache.tomcat.facade.RequestDispatcherImpl.include(Compiled
 Code)
   at org.apache.jasper.runtime.PageContextImpl.include(Compiled Code)
   at
 p_00025otected.pzu._0002fprotected_0002fpzu_0002findex_0002ejspindex_jsp_4._
 jspService(Compiled Code)
   at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
 Code)
   at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)
   at org.apache.tomcat.core.Handler.service(Compiled Code)
   at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
   at org.apache.tomcat.core.ContextManager.internalService(Compiled
 Code)
   at org.apache.tomcat.core.ContextManager.service(Compiled Code)
   at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
 (Compiled Code)
   at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
   at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
 Code)
   at java.lang.Thread.run(Compiled Code)
 
 
 
 

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




jdbc ClassNotFound error

2002-10-03 Thread Julie Jordan

This is my first pass with trying to establish a jdbc Oracle connection with
Tomcat.. So please be kind.

1. I have created a myfilename.class and html page (calling class) and
placed them into

/usr/local/tomcat/webapps/ROOT

2. I also set up my Oracle jdbc in the java file and placed the Oracle
classes.jar files into the same directory

3. I added this directory to my CLASSPATH.

4. I've restarted Tomcat.

5. But when I try to view the html page it won't load my applet, I get:

Java.lang.ClassNotFoundException:myClassfilename

Any help is GREATLY appreciated.

BTW: using Oracle 8.1.5(thin driver), Tomcat 3.3.1, mod_jk, JSDK2.0, Java2



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




reloadable doesn't seem to work

2002-10-03 Thread John Walstra

I'm running 4.1.12, with reloadable='true' in my Context, however it won't 
reload any changed classes. It used to along time ago, 4.0.3, but doesn't 
anymore. I've basically have been restarting tomcat each time I make a 
change, which is becoming very annoying. I've tried to use the manager to 
stop, start, reload, etc my webapp, but it doesn't seem to help. Any idea?

My webapp is part of the Apache-tomcat service if that helps.

Thanks,
John

-- 
John Walstra
[EMAIL PROTECTED]

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




RE: jdbc ClassNotFound error

2002-10-03 Thread Wagoner, Mark

Put your class file in /usr/local/tomcat/webapps/ROOT/WEB-INF/classes
Put classes.jar in /usr/local/tomcat/webapps/ROOT/WEB-INF/lib

Tomcat will look in WEB-INF/lib for your jar files, not on the classpath (in
fact, you can remove the reference from you classpath).

-Original Message-
From: Julie Jordan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: jdbc ClassNotFound error


This is my first pass with trying to establish a jdbc Oracle connection with
Tomcat.. So please be kind.

1. I have created a myfilename.class and html page (calling class) and
placed them into

/usr/local/tomcat/webapps/ROOT

2. I also set up my Oracle jdbc in the java file and placed the Oracle
classes.jar files into the same directory

3. I added this directory to my CLASSPATH.

4. I've restarted Tomcat.

5. But when I try to view the html page it won't load my applet, I get:

Java.lang.ClassNotFoundException:myClassfilename

Any help is GREATLY appreciated.

BTW: using Oracle 8.1.5(thin driver), Tomcat 3.3.1, mod_jk, JSDK2.0, Java2



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




DBCP - Tomcat 4.0.3

2002-10-03 Thread Laura

Hi,

is it possible to use DBCP with Tomcat 4.0.3?

Can you give me some advices?

Thanks


Laura

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




Exception management in servlet listeners

2002-10-03 Thread Heligon Sandra

I use the new feature ServletContextListener of the Servlet specifications
2.3. 
I defined the following class: 
public final class XSS_ServletContextListener implements
ServletContextListener { 
private static ServletContext s_context = null; 
public void contextInitialized(ServletContextEvent arg0) {
 s_context = arg0.getServletContext(); 
try{ // Get the reference on a CORBA object reference 
SessionManager sessionManager =
SessionManager.getSingleInstance(); ... 
} 
catch (ExBadManagerName ex) 
{ } 
} 
I don't what to do when the exception ExBadManagerName occurs. I am trying
to define in the web.xml file of my application the following element 
error-page 
exception-typecom.mycompagny.ExBadManagerName /exception-type 
location/pages/errorPage.jsp/location 
/error-page 
but the page is not displayed. 
What can I do to inform the client if an exception occurs, the index.jsp
page of my application has not to be displayed. 
Thanks a lot in advance 




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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

As a matter of fact I have been building apache since
the dawn of it ;) Also I have been building/using
tomcat since it was a jserv module, in corporate
environments too. So the whole process is in my hands.
Now that I wanted to experiment with Tomcat 4.1, I am
seeing this behavior. I was discouraged, a couple of
months ago, from using 4.1.x because it was in
pre-alpha then unstable beta. Now that it is released
I thought things should be better.

I have a cluster of 4.0.4 running, with apache 2.0.39,
pretty good on my system.

Thank you for the teasing, but I will appreciate it if
you have a helping tip too ;)

Regards,

--- Henri Gomez [EMAIL PROTECTED] wrote:
  When you use an RPM, you're letting someone else
 decide where to put 
  things on your machine, and how to configure your
 machine. You are 
  trusting someone else to do the right thing
 every time.  Some people 
  find that annoying and risky, and prefer to make
 their own decisions. ;)
 
 I understand that point and rpm packagers does their
 best to avoid any
 complication, for example my rpms for Apache 2.0,
 allow a coexistance
 with Apache 1.3 installed (diff conf dir, www dirs,
 lib dir..., listen 
 ports).
 
 rpm is great when you are a newbie or when you have
 to duplicate a
 configuration on farms of machines and want so have
 a reproductible
 process.
 
 And when an user goes with a customly built package
 like Apache 2.0.42,
 he should be prepared to also have to build himself
 the others packages,
 like jk ;-)
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

yes I built 2.0.42. What is the relation then?

--- Henri Gomez [EMAIL PROTECTED] wrote:
 Hum,
 
 Having a Redhat box and not using rpm is strange,
 btw if you have build an Apache 2.0.42 on your
 system,
 you should be able to build mod_jk 1.2.0 :
 
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/jk/aphowto.html
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Luminous Heart

That is exactly my opinion, but did not want to start
a religious war about the validity of rpms :)

Thank you, John, for making my case.


--- Turner, John [EMAIL PROTECTED] wrote:
 
 When you use an RPM, you're letting someone else
 decide where to put things
 on your machine, and how to configure your machine.
 You are trusting someone
 else to do the right thing every time.  Some
 people find that annoying and
 risky, and prefer to make their own decisions. ;)
 
 John
 
 
  -Original Message-
  From: Henri Gomez [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, October 03, 2002 9:03 AM
  To: [EMAIL PROTECTED]
  Subject: Re: tomcat 4.1.12 with apache2.0.42 and
 mod_jk
  
  
  Hum,
  
  Having a Redhat box and not using rpm is strange,
  btw if you have build an Apache 2.0.42 on your
 system,
  you should be able to build mod_jk 1.2.0 :
  
  
 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
  release/v1.2.0/doc/jk/aphowto.html
  
  
  --
  To unsubscribe, e-mail:   
 
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: Exception management in servlet listeners

2002-10-03 Thread Shapira, Yoav

Hi,

I use the new feature ServletContextListener of the Servlet
specifications
2.3.

Great!  So do I. ;)

I don't what to do when the exception ExBadManagerName occurs. I am
trying

Log it, for one.  Even if you don't have a logging system initialized,
you can use getServletContext().log(message, exception).  Email the
admins, for two.  

to define in the web.xml file of my application the following element
error-page
   exception-typecom.mycompagny.ExBadManagerName
/exception-type
   location/pages/errorPage.jsp/location
/error-page
but the page is not displayed.
What can I do to inform the client if an exception occurs, the
index.jsp
page of my application has not to be displayed.

When you're in the contextInitialized(sce) method, you don't have a
client yet.  You're not tied into the connector, and so the error-page
tags don't mean a thing.  

The idea is that the stuff done in contextInitialized(), and for that
matter, contextDestroyed(), is administrative / configuration
functionality that should not involve your users directly.  That code
should be very carefully written and tested, and should be among the
most reliable code in your system.  And your server startup and shutdown
should be tightly regulated and monitored.  You don't want your users
(think malicious...) to know how / when / where you initialize and
shutdown things.

I hope that makes sense ;)

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


Re: DBCP - Tomcat 4.0.3

2002-10-03 Thread Felipe Schnack

  I use it in tomcat 4.0.4, you just have to download the commons* jar
from the site

On Thu, 2002-10-03 at 11:44, Laura wrote:
 Hi,
 
 is it possible to use DBCP with Tomcat 4.0.3?
 
 Can you give me some advices?
 
 Thanks
 
 
 Laura
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


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




tomcat 4.1 does not resolve links

2002-10-03 Thread Alexander Piavka


 Hello, i'm using tomcat 4.1.12 and i found that tomcat does not follow
symbolic links under the application context.
If i define some context and copy to the application space some jsp file
it works, but if instead i make link to it(the file is located on another
nfs mounted partition) i get the messaage:

HTTP Status 404 - /zopa.jsp
 type Status report
 message /zopa.jsp
 description The requested resource (/zopa.jsp) is not available.

while in previous version of tomcat-4.0 the symbolic links work.

Is there some way to make tomcat 4.2 follow symbolic links, or this
feature was disabled on purpose?

 Thanks a lot.


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




Jaas Realm

2002-10-03 Thread Stephen . Thompson

Hello all,

Has anyone developed a Jaas realm for TC4.0.5? The howto only looks at a
memory, database or JNDI.

Regards,


Stephen.
x 5125




---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

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




Re: Please help me!!

2002-10-03 Thread Nikola Milutinovic

Miguel Angel Mulero Martinez wrote:

 This depends on how you use the connection. If you use a db pool, then the
 pool must reconnect. There're pools that do that and other that don't do.


Does DBCP that comes with Tomcat 4.0.4 and later reconnect?

Nix.




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




Help!!

2002-10-03 Thread BCorrigan

Another 6 hours at this this morning.. I think im losing it :)

Greetings!
 
I have been trying in desperation for three days to get the following
configuration working.  I've scoured Usenet groups, Jakarta documentation,
and by all accounts I think what I'm doing should work.  Unfortunately, I
must be doing something wrong because things just aren't working as I
thought they should...
 
Here's the gig:
 
I have two servers, PROXY and APACHE.
 
APACHE:
Tomcat3
JDK
Apache 1.3 
Apps: Citrix NFuse 1.7
IP: 192.168.1.15
Mod_JK
 
PROXY:
Apache 1.3 
IP: 192.168.1.16, 12.23.45.67
 
The application is installed and running on Apache.  The / directory has a
web site we built using PHP up and running.  The /Citrix/ directory is
aliased correctly, and MOD_JK passes the *.jsp files to AJP13. When I go to
http://192.168.1.15:80 http://192.168.1.15:80  all works appropriately.
When I go to http://192.168.1.15:80/Citrix/NFuse17/
http://192.168.1.15:80/Citrix/NFuse17/  I see my Citrix application.  All
is well
 
I am trying to make the entire web site available on the internet via our
NAT server called PROXY.  Proxy is a completely stock apache install with
two lines added to the httpd.conf file that pass all requests on via
mod_proxy to 192.168.1.15.  (Mod_Proxy is enabled correctly)
 
ProxyPass / http://192.168.1.15/ http://192.168.1.15/ 
ProxyPassReverse / http://192.18.1.15/ http://192.18.1.15/ 
 
When I access the external IP of PROXY I get the web site stored on Apache
just fine.  Mod_Proxy is working...  When I go to /Citrix/ I see that Tomcat
is driving and I get a directory listing.  When I try to go to
/Citrix/NFuse17/ (the directory that actually has my application in it) I
get a page cannot be displayed error.  It seems that tomcat is not correctly
configured to pass JSP pages back to the proxy server.
 
I'm not sure what I'm missing?  Do I need to modify my server.xml file on
apache?
 
Any help would be much appreciated!!
 
 
Brian Corrigan 
Information Services Manager 
TAG Corporate, LLC 
12 Elmwood Road 
Menands, NY 12204 
pc support: (518)292-6554
direct voice: (518) 292-6571 
fax: (518) 689-6571 
e-mail: [EMAIL PROTECTED] 
 




RE: tomcat 4.1 does not resolve links

2002-10-03 Thread Turner, John


Read the release notes for 4.1.12.

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/RELEASE-
NOTES

Near the end.

John


 -Original Message-
 From: Alexander Piavka [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 11:03 AM
 To: Tomcat Users List
 Subject: tomcat 4.1 does not resolve links
 
 
 
  Hello, i'm using tomcat 4.1.12 and i found that tomcat does 
 not follow
 symbolic links under the application context.
 If i define some context and copy to the application space 
 some jsp file
 it works, but if instead i make link to it(the file is 
 located on another
 nfs mounted partition) i get the messaage:
 
 HTTP Status 404 - /zopa.jsp
  type Status report
  message /zopa.jsp
  description The requested resource (/zopa.jsp) is not available.
 
 while in previous version of tomcat-4.0 the symbolic links work.
 
 Is there some way to make tomcat 4.2 follow symbolic links, or this
 feature was disabled on purpose?
 
  Thanks a lot.
 
 
 --
 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]




java.lang.ArrayIndexOutOfBoundsException

2002-10-03 Thread Alex Johansson

Hi,

Sometime I'v got this error when accessing
jsp files

I user apache (+ mod_jk), tomcat 3.3.

Seems to be a tomcat error.

Do you know if this error occures during heavy load on
tomcat?



Error: 500
Location: /../error.jsp
Internal Servlet Error:
java.lang.ArrayIndexOutOfBoundsException: -1
at
org.apache.tomcat.modules.mappers.DecodeInterceptor.normalize(DecodeIntercep
tor.java:371)
at
org.apache.tomcat.modules.mappers.DecodeInterceptor.normalizePath(DecodeInte
rceptor.java:175)
at
org.apache.tomcat.modules.mappers.DecodeInterceptor.postReadRequest(DecodeIn
terceptor.java:446)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:939
)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:259)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:174)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:423)
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:448)
at main_1._jspService(main_1.java:132)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:91
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:341)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:516)
at java.lang.Thread.run(Thread.java:484)


Any clue to solve this problem

regards
_
 Alex Johansson
 Systemutvecklare @ TechLex
 0708 - 29 26 01
 [EMAIL PROTECTED]


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




TomCat java_home variable

2002-10-03 Thread madhur jain

hi

yesterday i downloaded the tomcat 4.0.5

when i start startup.bat in the bibn dir.

the dosprompt says Java_home env. varible is not defined 
corrcetly

but i have already set the variable in the autoexec.bat file 
using
set java_home=C:\jdk1.3.0_02

executing set on the command prompt shows 
java_home=C:\jdk1.3.0_02


i am on win98.

could u please help me to sort it out.

thanx
madhur

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




question about WMServlet

2002-10-03 Thread Hao Sun


Dear sir/madam:

does tomcat support webmacro servlet? I tried to using a index.html file 
to call a java class file which extends WMServlet, it is not working.

if yes, how can I set up the computer/

Thanks a lot.

_

Hao Sun
[EMAIL PROTECTED]
http://www.cs.ucsb.edu/~hsun
_


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




class loader question

2002-10-03 Thread Subu

Hi,

I am using Tomcat 4.0 application server. I have a question about the class
loaders.

I have tried to use a custom jsp tag lib with this app server. I have placed
the jar file corresponding to the tag lib in the system class path (in the
setclasspath.bat). I was getting the following error as a result.

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
..

In this case I wrote a jsp to print the classpath and the classloader for
the jsp's. It shows that the app server has loaded my custom jar file, and
the classloader for the current jsp is
org.apache.jasper.servlet.JasperLoader@4db06e .

What I dont understand is why this TagSupport error when I can find the
class already loaded.

could some one answer this.

thanks
-Subu


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




Re: How to create a connection pool

2002-10-03 Thread Prashanth Pushpagiri

you should make your bean persistent (change the scope
to application) and then have it create 'n'
connections when first called. you can then reuse
connections. There are a number of implementations
available for connection pooling. You may want to
reuse them instead of re-creating the process.

Prashanth

--- phani [EMAIL PROTECTED] wrote:
 Hi,
 
 I am using a bean to get connection for a db from my
 jsp page. But the problem is for each and every
 request the page fetches a connection from  the
 bean. This becomes a over head to the system.
 What i want to do is i want to open n no (say 50 )
 of connection when the server is started and any
 request must be routed through these connection
 only.
 
 How to do this?
 
 Thanks in advance.
 
 phani
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




RE: Help!!

2002-10-03 Thread Turner, John


Just curious...is there any reason you just don't setup PROXY to forward the
requests to Tomcat?  Apache and Tomcat don't need to be on the same machine.

John


 -Original Message-
 From: BCorrigan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 11:14 AM
 To: '[EMAIL PROTECTED]'
 Subject: Help!!
 
 
 Another 6 hours at this this morning.. I think im losing it :)
 
 Greetings!
  
 I have been trying in desperation for three days to get the following
 configuration working.  I've scoured Usenet groups, Jakarta 
 documentation,
 and by all accounts I think what I'm doing should work.  
 Unfortunately, I
 must be doing something wrong because things just aren't working as I
 thought they should...
  
 Here's the gig:
  
 I have two servers, PROXY and APACHE.
  
 APACHE:
 Tomcat3
 JDK
 Apache 1.3 
 Apps: Citrix NFuse 1.7
 IP: 192.168.1.15
 Mod_JK
  
 PROXY:
 Apache 1.3 
 IP: 192.168.1.16, 12.23.45.67
  
 The application is installed and running on Apache.  The / 
 directory has a
 web site we built using PHP up and running.  The /Citrix/ directory is
 aliased correctly, and MOD_JK passes the *.jsp files to 
 AJP13. When I go to
 http://192.168.1.15:80 http://192.168.1.15:80  all works 
 appropriately.
 When I go to http://192.168.1.15:80/Citrix/NFuse17/
 http://192.168.1.15:80/Citrix/NFuse17/  I see my Citrix 
 application.  All
 is well
  
 I am trying to make the entire web site available on the 
 internet via our
 NAT server called PROXY.  Proxy is a completely stock apache 
 install with
 two lines added to the httpd.conf file that pass all requests on via
 mod_proxy to 192.168.1.15.  (Mod_Proxy is enabled correctly)
  
 ProxyPass / http://192.168.1.15/ http://192.168.1.15/ 
 ProxyPassReverse / http://192.18.1.15/ http://192.18.1.15/ 
  
 When I access the external IP of PROXY I get the web site 
 stored on Apache
 just fine.  Mod_Proxy is working...  When I go to /Citrix/ I 
 see that Tomcat
 is driving and I get a directory listing.  When I try to go to
 /Citrix/NFuse17/ (the directory that actually has my 
 application in it) I
 get a page cannot be displayed error.  It seems that tomcat 
 is not correctly
 configured to pass JSP pages back to the proxy server.
  
 I'm not sure what I'm missing?  Do I need to modify my 
 server.xml file on
 apache?
  
 Any help would be much appreciated!!
  
  
 Brian Corrigan 
 Information Services Manager 
 TAG Corporate, LLC 
 12 Elmwood Road 
 Menands, NY 12204 
 pc support: (518)292-6554
 direct voice: (518) 292-6571 
 fax: (518) 689-6571 
 e-mail: [EMAIL PROTECTED] 
  
 
 

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




Protocol error?

2002-10-03 Thread Michael Nicholson

So, I've just added a 'feature' that allows users on the site I'm developing to update 
the database.  It works, but about 20 minutes into it working (with only two users) it 
gives me the errors below.

Any body have any ideas what's up?  I'm confused.  For what it's worth, the bean in 
question (PSDBBean or whatever it is) isn't the new part.  It's the page that get's 
rendered with a button that opens the new part, but it's not actually the new part, 
and it's been running for weeks w/out a problem w/out that


Thanks.  
Michael Nicholson
Errors follow:

2002-10-03 11:42:19 ApplicationDispatcher[/db2] Servlet.service() for servlet jsp 
threw exception
java.lang.RuntimeException: Io exception: Protocol violation
at CPPSDB.PSDBBean.render(PSDBBean.java:117)
at org.apache.jsp.Pview$jsp._jspService(Pview$jsp.java:121)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
at CPPSDB.handlerServlet.gotoPage(handlerServlet.java:260)
at CPPSDB.handlerServlet.gotoFinalResult(handlerServlet.java:228)
at CPPSDB.handlerServlet.service(handlerServlet.java:150)
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.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:475)
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.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)

Followed immediately by:

2002-10-03 11:42:19 ApplicationDispatcher[/db2] Servlet.service() for servlet jsp 
threw exception
java.lang.RuntimeException: Bigger type length than Maximum
at 

Re: JAVA SOAP Discussion List

2002-10-03 Thread Craig R. McClanahan



On Thu, 3 Oct 2002, Andreas Probst wrote:

 Date: Thu, 03 Oct 2002 08:52:48 +0200
 From: Andreas Probst [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: JAVA SOAP Discussion List

 Hi Alphonsus,

 if you prefer reading old messages in your email client, you can
 get old threads be sending a message to

 [EMAIL PROTECTED]


While this works, it's really doing things the hard way.  Much easier is
to use one of the archive sites that logs all traffic on the list you are
interested in -- see http://jakarta.apache.org/site/mail.html for
several that log TOMCAT-USER.

The one I use is at:

  http://nagoya.apache.org/eyebrowse/

which archives all the jakarta.apache.org and xml.apache.org lists.

Craig



 This will give you all messages with the same subject as message
 12345. The difficulty here is to obtain the right message
 number. I observed that the message numbers inside the urls of
 the web mail archive are NOT the same as the ones you need for
 the command above, at least for Slide user list.

 To get to know the numbers you will need to send a message to

 [EMAIL PROTECTED]

 This will list authors, subjects, dates and numbers.

 mailto:[EMAIL PROTECTED]

 will give you more help on this.

 Andreas


 On 2 Oct 2002 at 11:29, Alphonsus wrote:

  Hi all,
  could anyone please tell where I can find a Java Soap List? Also where
  can I find the old threads of this list (Tomcat)?
 
  TIA,
  Alphonsus.
 


 --
 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: access denied for non-localhost ssl

2002-10-03 Thread Joan Friedman

Here's the solution to my problem, to get it into the archives for the 
next person: In server.xml, inside the 'host' element, I added an alias
element with the domain name of the computer.
aliaswww.host.domain.com/alias


Joan

Joan Friedman wrote:
 hi all,
 
 Thank you to anyone who helps me with this - I could use some new 
 approaches.
 
 Access to my servlet through ssl is blocked unless I'm accessing through
 'localhost', with an error page displayed saying 'access denied by access
 control list'.
 
 Here is what I've done so far: I've read tomcat's docs about ssl and 
 security,
 searched google and the tomcat-user mailing list archives, and of course
 tomcat's logs. I added a security debug value to
 CATALINA_OPTS (-D.java.security.debug=all). I commented out the memory 
 realm
 in tomcat's server.xml, and commented out the apache connector and service.
 None of that solved the problem.
 
 I'm using tomcat 4.0.4, standalone, with windows 2000 service pack 2.
 I configured ssl to work on port 1234 and non-ssl to run on port 80.
 As long as all my access is through localhost
 (http://localhost/servletname/whatever), both ssl and non-ssl work
 just fine. Access through the host's domain name or ipaddress works ok for
 non-ssl, both locally and from another machine. When I try to access the 
 ssl
 pages using the host's domain name or ipaddress (rather than 
 'localhost'), I get
 this message in mozilla 1.1
 Forbidden
 You were denied access because:
 Access denied by access control list.
 
 thanks for any help,
 
 Joan Friedman
 
 
 -- 
 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: Exception management in servlet listeners

2002-10-03 Thread Heligon Sandra

Thanks for your explanation, in fact the web application has to connect
to a back-end application server that centralizes data, access right etc...
The connection must be initialised only one time that is why I have placed
this code in ServletContextListener.
But if the application server is not start or an other communication
problem occurs the web application can not be started.

According to your councils I recorded the messages of the exceptions in a
file.  
(getServletContext().log(message, exception)).
But I do not know where this log is created.  
I use Tomcat4.0.3 and no directory log is created.  

In spite of this exception the index.jsp page is displayed.  
A page HTML Server ERROR should rather be displayed.  
How can I do that ?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 17:00
To: Tomcat Users List
Subject: RE: Exception management in servlet listeners


Hi,

I use the new feature ServletContextListener of the Servlet
specifications
2.3.

Great!  So do I. ;)

I don't what to do when the exception ExBadManagerName occurs. I am
trying

Log it, for one.  Even if you don't have a logging system initialized,
you can use getServletContext().log(message, exception).  Email the
admins, for two.  

to define in the web.xml file of my application the following element
error-page
   exception-typecom.mycompagny.ExBadManagerName
/exception-type
   location/pages/errorPage.jsp/location
/error-page
but the page is not displayed.
What can I do to inform the client if an exception occurs, the
index.jsp
page of my application has not to be displayed.

When you're in the contextInitialized(sce) method, you don't have a
client yet.  You're not tied into the connector, and so the error-page
tags don't mean a thing.  

The idea is that the stuff done in contextInitialized(), and for that
matter, contextDestroyed(), is administrative / configuration
functionality that should not involve your users directly.  That code
should be very carefully written and tested, and should be among the
most reliable code in your system.  And your server startup and shutdown
should be tightly regulated and monitored.  You don't want your users
(think malicious...) to know how / when / where you initialize and
shutdown things.

I hope that makes sense ;)

Yoav Shapira
Millennium ChemInformatics

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




RE: Help!!

2002-10-03 Thread BCorrigan

I tried that..  I still get the same error.. Page cannot be displayed.  

I think I need to add some proxy settings to my server.xml.   Unfortunately,
the only thing I can find is server.xml proxy settings for Tomcat4..  I cant
use Tomcat4 because of application requirements laid out by the
manufacturer..

Any ideas?

Brian Corrigan 
Information Services Manager 
TAG Corporate, LLC 
12 Elmwood Road 
Menands, NY 12204 
pc support: (518)292-6554
direct voice: (518) 292-6571 
fax: (518) 689-6571 
e-mail: [EMAIL PROTECTED] 



-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 11:35 AM
To: 'Tomcat Users List'
Subject: RE: Help!!



Just curious...is there any reason you just don't setup PROXY to forward the
requests to Tomcat?  Apache and Tomcat don't need to be on the same machine.

John


 -Original Message-
 From: BCorrigan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 11:14 AM
 To: '[EMAIL PROTECTED]'
 Subject: Help!!
 
 
 Another 6 hours at this this morning.. I think im losing it :)
 
 Greetings!
  
 I have been trying in desperation for three days to get the following
 configuration working.  I've scoured Usenet groups, Jakarta 
 documentation,
 and by all accounts I think what I'm doing should work.  
 Unfortunately, I
 must be doing something wrong because things just aren't working as I
 thought they should...
  
 Here's the gig:
  
 I have two servers, PROXY and APACHE.
  
 APACHE:
 Tomcat3
 JDK
 Apache 1.3 
 Apps: Citrix NFuse 1.7
 IP: 192.168.1.15
 Mod_JK
  
 PROXY:
 Apache 1.3 
 IP: 192.168.1.16, 12.23.45.67
  
 The application is installed and running on Apache.  The / 
 directory has a
 web site we built using PHP up and running.  The /Citrix/ directory is
 aliased correctly, and MOD_JK passes the *.jsp files to 
 AJP13. When I go to
 http://192.168.1.15:80 http://192.168.1.15:80  all works 
 appropriately.
 When I go to http://192.168.1.15:80/Citrix/NFuse17/
 http://192.168.1.15:80/Citrix/NFuse17/  I see my Citrix 
 application.  All
 is well
  
 I am trying to make the entire web site available on the 
 internet via our
 NAT server called PROXY.  Proxy is a completely stock apache 
 install with
 two lines added to the httpd.conf file that pass all requests on via
 mod_proxy to 192.168.1.15.  (Mod_Proxy is enabled correctly)
  
 ProxyPass / http://192.168.1.15/ http://192.168.1.15/ 
 ProxyPassReverse / http://192.18.1.15/ http://192.18.1.15/ 
  
 When I access the external IP of PROXY I get the web site 
 stored on Apache
 just fine.  Mod_Proxy is working...  When I go to /Citrix/ I 
 see that Tomcat
 is driving and I get a directory listing.  When I try to go to
 /Citrix/NFuse17/ (the directory that actually has my 
 application in it) I
 get a page cannot be displayed error.  It seems that tomcat 
 is not correctly
 configured to pass JSP pages back to the proxy server.
  
 I'm not sure what I'm missing?  Do I need to modify my 
 server.xml file on
 apache?
  
 Any help would be much appreciated!!
  
  
 Brian Corrigan 
 Information Services Manager 
 TAG Corporate, LLC 
 12 Elmwood Road 
 Menands, NY 12204 
 pc support: (518)292-6554
 direct voice: (518) 292-6571 
 fax: (518) 689-6571 
 e-mail: [EMAIL PROTECTED] 
  
 
 

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

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




Re: Problem with Tomcat 4.0.2 hanging

2002-10-03 Thread tysonlowery

I'm actually having the problem again right this second.  I went into the
server and did a ps aux.  I found about 60 tomcat processes running.  Is
this normal?

I've been struggling with this for over a week.  Any advice, suggestions,
etc. that you might have would be greatly appreciated.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 02, 2002 11:54 AM
Subject: Problem with Tomcat 4.0.2 hanging


 I'm running Tomcat 4.0.2.  A few times a day I try to go to my site and
 nothing happens, or sometimes I get an Internal Server Error. I'm able to
 bring up html pages, so Apache is running fine. I restart Tomcat
(sometimes
 more than once) and all is good. I've tried rebooting the server and that
 doesn't do the trick either. It just fixes it temporarilly.

 I've been trying to troubleshoot the problem, but I'm relatively new to
 Tomcat. Any advice on what I should be looking at?

 I have looked at my catalina.out file, and the last error is always:

 WebappClassLoader: Additional JARs have been added
 java.util.zip.ZipException: error in opening zip file
 at java.util.zip.ZipFile.open(Native Method)
 at java.util.zip.ZipFile.init(ZipFile.java:112)
 at java.util.jar.JarFile.init(JarFile.java:117)
 at java.util.jar.JarFile.init(JarFile.java:82)
 at org.apache.catalina.loader.WebappLoader.setRepositories
 (WebappLoader.java:1005)
 at org.apache.catalina.loader.WebappLoader.start (WebappLoader.java:628)
 at
 org.apache.catalina.core.StandardContext.reload(StandardContext.java:2421)
 at

org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1329)
 at java.lang.Thread.run(Thread.java:536)

 I *suspect* this has something to do with my problem, but I'm not sure.
Any
 ideas or pointers would be GREATLY appreciated!

 Thanks,
 Tyson


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




Repost: getClassLoader() returns null

2002-10-03 Thread Volker Leidl

Sorry for the repost, I don't mean to bother you, but can anyone confirm 
that getClassLoader() on a class loaded by the common class loader of 
tomcat (4.0.3), particularily from a jar in common/lib,  returns null?

I'm really puzzled...

Thanks in advance,
Volker.

---BeginMessage---

Hi!

I just encountered a problem when using the commons-logging package 
together with Tomcat 4.0.3. When putting commons-loggin.jar (1.0.2) into 
the $TOMCAT_HOME/common/lib, in order to be available for the server 
classes as well as for all web apps, a NullPointerException is thrown 
when trying to retrieve a Log instance. This Exception can be tracked 
down to some call to LogFactory.class.getClassLoader(), which returns null.

Ok, I read the javadocs of java.lang.Class.getClassLoader(), which says 
that this method may return null, if the class is loaded by the 
bootstrap class loader, but the LogFactory class is loaded by the common 
class loader of Tomcat, so I don't quite understand, why null is returned.
Is this the expected behaviour? If yes I would really like to know how 
Tomcat accompishes this. What's even more funny is that a class loaded 
from $TOMCAT_HOME/common/classes does return the proper class loader 
instance.

Best regards,
Volker.


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




---End Message---

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


JDBC Data sources

2002-10-03 Thread Luise Massimo

Hi all,

i have a question about jdbc data sources managed by tomcat 4.0

is possible to change the dbname of a connection pooled out from a data 
source through envCtx.lookup( ... ) at runtime ?

i have a single servlet that need to access multiple db and the dbname 
is passed in via http parameters..i have no possibility to change 
web.xml every time a new db is created (so i can't create a new 
resource entry in application web.xml file).

now i'm using poolman and with it i can create a new pool metada with 
the right dbname and then a new pool of connection at runtime.

Can someone help me ? TIA

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




Tomcat 4.0.5 and RPM

2002-10-03 Thread Luise Massimo



Hi all,

i would know if and when would be available an rpm package for tomcat v4.0.5 ?

TIA



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




RE: TomCat java_home variable

2002-10-03 Thread Cox, Charlie

try uppercase JAVA_HOME

Charlie

 -Original Message-
 From: madhur jain [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:46 AM
 To: [EMAIL PROTECTED]
 Subject: TomCat java_home variable
 
 
 hi
 
 yesterday i downloaded the tomcat 4.0.5
 
 when i start startup.bat in the bibn dir.
 
 the dosprompt says Java_home env. varible is not defined 
 corrcetly
 
 but i have already set the variable in the autoexec.bat file 
 using
 set java_home=C:\jdk1.3.0_02
 
 executing set on the command prompt shows 
 java_home=C:\jdk1.3.0_02
 
 
 i am on win98.
 
 could u please help me to sort it out.
 
 thanx
 madhur
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Henri Gomez

 As a matter of fact I have been building apache since
 the dawn of it ;) Also I have been building/using
 tomcat since it was a jserv module, in corporate
 environments too. So the whole process is in my hands.

Ok, like me but since I've got a bad memory I put the
build process in a rpm spec file where I'm sure I could
find it for next release ;-)

 I have a cluster of 4.0.4 running, with apache 2.0.39,
 pretty good on my system.

Great

 Thank you for the teasing, but I will appreciate it if
 you have a helping tip too ;)

I give you the url of the jk 1.2.0 release documentation,
which should give you all information to build jk 1.2.0 for
Apache 2.0.42.

- get jk 1.2.0 tarball

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/src/jakarta-tomcat-connectors-jk-1.2.0-src.tar.gz

- untar it

- go to jk/native directory

- use configure :

   ./configure --with-apxs=/your/path/to/apache2/apxs

- make the stuff

   make

- copy the mod_jk.so to apache 2 module dir

   cp apache-2.0/mod_jk.so /your/path/to/apache2/modules

-  Put in httpd.conf

   LoadModule jk_module /your/path/to/apache2/modules/mod_jk.so
   JkWorkersFile /your/path/to/apache2/conf/workers.properties
   JkLogFile /your/path/to/apache2/logs/mod_jk.log
   JkLogLevelerror

   JkMount /*.jsp ajp13
   JkMount /servlet/*.jsp ajp13

   JkMount /examples/*.jsp ajp13
   JkMount /examples/servlet/*.jsp ajp13


You could find an example workers.properties in conf dir of tarball.

That's all.



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




Re: Problem with Tomcat 4.0.2 hanging

2002-10-03 Thread Thad Humphries

Tomcat 4.0.5?  4.1.12?

I was never able to get my application to work under Tomcat 4.0.2--JSPs
would constantly error on classpath problems.  But it's worked fine
under 4.0.1, 4.0.3, 4.0.4, 4.0.5, and 4.1.12.  I have no idea why.

On Thu, 2002-10-03 at 12:28, [EMAIL PROTECTED] wrote:
 I'm actually having the problem again right this second.  I went into the
 server and did a ps aux.  I found about 60 tomcat processes running.  Is
 this normal?
 
 I've been struggling with this for over a week.  Any advice, suggestions,
 etc. that you might have would be greatly appreciated.
 
-- 

Thad Humphries  ...no religious test shall ever be required
Web Development Manager  as a qualification to any office or public
Phone: 540/675-3015, x225trust under the United States. -Article VI


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




problems with paths using mod_jk 1.2

2002-10-03 Thread David Wynter

Hi,

I had been redirecting from Apache 2.0.42 index page to Tomcat 4.1.12 
successfully. Then I had a corrupt filesystem and have had to do a complete 
installation. This time I am using Apache 1.3.23 with Tomcat 4.1.12 and for 
some reason my Turbine based servlet did not like th eredicrect and had an 
'Infinite Redited exception'. So I am forced to get mod_jk working.

What I am trying to achieve is have people who hit my 'www.roamware.com' URL 
be directed to 'www.roamware.com:8080/rwsite/servlet/template'

I downloaded the binaries for mod_jk 1.2 and installed them successfully.

I have my config files below. I followed an example given by a fellow Turbine 
user, but I get a connection refused error. 

My workers.properties is basic:

workers.tomcat_home=/usr/share/jakarta-tomcat-4.1.12-LE-jdk14
workers.java_home=/usr/java/j2sdk1.4.1
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=www.roamware.com
worker.ajp13.type=ajp13

In my index.shtml page in Apaches html directory I have the following:

head
   meta http-equiv=Refresh content=0; url=/rwsite/ 
   meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
   meta name=GENERATOR content=Mozilla/4.61 [en] (X11; I; Linux 
2.2.9-23mdk i686) [Netscape]
   meta name=Author content=DavidWynter
   titleWelcome to roamware/title

!-- Background white, links blue (unvisited), navy (visited), red (active) 
-- /head

body 
onload=location='http://www.roamware.com:8080/rwsite/servlet/rwsite/templates/index.vm';
 
etc.

I understand this should direct to the /rwsite/ path as defined in the 
refresh above through the JkMount and Alias as defined in my mod_jk.conf 
below. Also doesn't the VirtualHost append the 8080 port? If not how do you 
do this?

JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error

VirtualHost www.roamware.com:8080
ServerName www.roamware.com


# Root context mounts for Tomcat
#
JkMount /rwsite/* ajp13

#
# The following line makes apache aware of the location of the /rwsite context
#
Alias /rwsite 
/usr/share/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsite/servlet/rwsite/template
Directory 
/usr/share/jakarta-tomcat-4.1.12-LE-jdk14/webapps/rwsiteservlet/rwsite/template
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts the /servlet/ uri to tomcat
#
JkMount /rwsite/servlet/* ajp13

#
# The following line prohibits users from directly access WEB-INF
#
Location /rwsite/WEB-INF/
AllowOverride None
deny from all
/Location

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

/VirtualHost

Finally I hav eenabled the ssi and cgi in Tomcat (which I tested and it 
works) Th eServlet.xml has th ehost name in Engine an dHost Elements as 
www.roamware.com and the context with the empty path points to /rwsite as the 
docBase. I Also have the 8009 Ajp13 connector define and the 8080 port 
connector defined.

I can see in the mod_jk log that the mod_jk loads just fine. In my httpd 
error log I get
[Thu Oct  3 16:48:53 2002] [error] [client 213.120.115.98] File does not 
exist: /var/www/html/rwsite/
So clearly it is not connecting through to Tomcat.

Can anyone see what is wrong with my config above? I figure it has to be 
mod_jk.conf that is wrong.

Thanks

David

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




RE: java.lang.ArrayIndexOutOfBoundsException

2002-10-03 Thread Larry Isaacs

Forwarding to /../error.jsp should cause an error of some
sort every time since error.jsp is outside of the web
application.  Perhaps ../error.jsp or /error.jsp was
intended.

Apparently, the invalid URI made it into DecodeInterceptor's
normalize method which isn't currently coded to handle
invalid URI's.  I'll make sure this the exception doesn't
occur in Tomcat 3.3.2.

I would be curious if error.jsp actually exists outside
of the web application, and if so, does this error still
occur if it is removed.

Cheers,
Larry

 -Original Message-
 From: Alex Johansson [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, October 03, 2002 6:10 AM
 To: [EMAIL PROTECTED]
 Subject: java.lang.ArrayIndexOutOfBoundsException
 
 
 Hi,
 
 Sometime I'v got this error when accessing
 jsp files
 
 I user apache (+ mod_jk), tomcat 3.3.
 
 Seems to be a tomcat error.
 
 Do you know if this error occures during heavy load on
 tomcat?
 
 
 
 Error: 500
 Location: /../error.jsp
 Internal Servlet Error:
 java.lang.ArrayIndexOutOfBoundsException: -1
   at
 org.apache.tomcat.modules.mappers.DecodeInterceptor.normalize(
 DecodeIntercep
 tor.java:371)
   at
 org.apache.tomcat.modules.mappers.DecodeInterceptor.normalizeP
 ath(DecodeInte
 rceptor.java:175)
   at
 org.apache.tomcat.modules.mappers.DecodeInterceptor.postReadRe
 quest(DecodeIn
 terceptor.java:446)
   at
 org.apache.tomcat.core.ContextManager.processRequest(ContextMa
 nager.java:939
 )
   at
 org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Reque
 stDispatcherIm
 pl.java:259)
   at
 org.apache.tomcat.facade.RequestDispatcherImpl.forward(Request
 DispatcherImpl
 .java:174)
   at
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextI
 mpl.java:423)
   at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImp
 l.java:448)
   at main_1._jspService(main_1.java:132)
   at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at
 org.apache.tomcat.facade.ServletHandler.doService(ServletHandl
 er.java:574)
   at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
   at org.apache.tomcat.core.Handler.service(Handler.java:235)
   at
 org.apache.tomcat.facade.ServletHandler.service(ServletHandler
 .java:485)
   at
 org.apache.tomcat.core.ContextManager.internalService(ContextM
 anager.java:91
 7)
   at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
   at
 org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
 ction(Ajp13Int
 erceptor.java:341)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
 nt.java:494)
   at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 ThreadPool.jav
 a:516)
   at java.lang.Thread.run(Thread.java:484)
 
 
 Any clue to solve this problem
 
 regards
 _
  Alex Johansson
  Systemutvecklare @ TechLex
  0708 - 29 26 01
  [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]




Problem building mod_jk with solaris 8

2002-10-03 Thread Charlie Hill

Mod_jk build problems 

Mod_jk version:jakarta-tomcat-connectors-jk-1.2.0-src
Environment: Sparc Solaris 8
WWW server: Apache 1.3.26 with DSO and mod_ssl

mod_jk configure: ./configure
 --with-apxs=/usr/local/apacheSSL/bin/apxs --enable-EAPI

Make Error:

Making all in apache-1.3
/usr/local/bin/libtool --mode=compile gcc -DUSE_APACHE_MD5
 -I ../common/ -I /usr/local/j2sdk1_3_1_01/include -I
 /usr/local/j2sdk1_3_1_01/include/
 -I/usr/local/apacheSSL/include -DSOLARIS2=270
 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI
 -fno-strict-aliasing -I/usr/local/include
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI
 -DUSE_EXPAT -I../lib/expat-lite -g -O2 -DEAPI  -I../common
 -c  -o mod_jk.lo
mkdir .libs
gcc -DUSE_APACHE_MD5 -I ../common/ -I
 /usr/local/j2sdk1_3_1_01/include -I
 /usr/local/j2sdk1_3_1_01/include/
 -I/usr/local/apacheSSL/include -DSOLARIS2=270
 -DMOD_SSL=208104 -DMOD_PERL -DUSE_PERL_SSI
 -fno-strict-aliasing -I/usr/local/include
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DEAPI
 -DUSE_EXPAT -I../lib/expat-lite -g -O2 -DEAPI -I../common
 -c  -fPIC -DPIC -o .libs/mod_jk.lo
gcc: No input files
*** Error code 1
make: Fatal error: Command failed for target `mod_jk.lo'
Current working directory
 /export/home/staff/jakarta-tomcat-connectors-jk-1.2.0-src/jk/native/apache-1.3
*** Error code 1
make: Fatal error: Command failed for target
 `all-recursive'

---Ideas on how to fix this ?

Fixed Error : (which I correct)

Making all in apache-1.3
make: Fatal error in reader: Makefile, line 18: Unexpected
 end of line seen
Current working directory
 /export/home/staff/jakarta-tomcat-connectors-jk-1.2.0-src/jk/native/apache-1.3
*** Error code 1
make: Fatal error: Command failed for target
 `all-recursive'

-Fixed by :JK_DIR := .. to JK_DIR = ..



Ideas on how to fix this error ?

I know there is a binary for Solaris 8 but I will need
to install in solaris 7 as well so I figured I would build
on Solaris 8 for a test.


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




IIS 5, Mod_jk 2, Tomcat 4.1.12 combination problem with delivery

2002-10-03 Thread David Warnock

Hi,

We have an application that works perfectly when connecting to Tomcat 
directly on port 8080. When we connect using IIS and Coyote JK 2 we have 
problems with multiple users.

The problems occur most obviously with some complex frame based pages, 
but have also occurred with the basic application login page.

The symtoms are that the page will download as source, or will display 
the stylesheet as source or will load some frames and not others, or 
will load the page but not the images, or will load into the wrong frames.

If other users connect directly to the same tomcat at the same time it 
all works perfectly for them.

I have bumped up all the values in  the connector section in the 
server.xml by an order of magnitude but it has not made any difference.

I have not yet got workers2.properties to start up tomcat as an internal 
process but am manually starting tomcat at the moment.

I have not changed the default (all commented out) jk2.properties.

What should I do next? Any hints about whether this is a common problem 
or not?

Thanks

Dave
-- 
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.



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




Re: tomcat 4.1.12 JDBC driver class 'null'

2002-10-03 Thread Raj Saini

Yes, mod_jk is a better. warp is no more activly devloped. I also 
switched to mod_jk on 4.1.12.

Raj
Jake Tweer wrote:
 Raj,
 
 Thanks again but I am still getting the exception.  I'll probably have 
 to shelve working on this for the time being. Should I look at the 
 mod_jk2 connector as an alternative?
 
 
 
 Raj Saini wrote:
 
 Jake,

 You will need to put a defaulthost attribute in your engine defination.
 This is a bug in the server.xml and it was detacted long back ago. 
 Dont know why it is not still corrected in the server.xml file. May be 
 the warp connecter is no more actively developed.

 Your Engine tag should be:-

 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 defaulthost=prod_host

 I hope this will work.

 Cheers,

 Raj
 Jake Tweer wrote:

 Raj,

 Thanks for the tip - I tried your suggestion by moving the JNDI-How 
 To example out of the standalone tomcat service and into the 
 Tomcat-Apache service.  Bear in mind that the example works Ok in 
 tomcat standalone. The Tomcat-Apache service I am using is the 
 default provided and works in all other ways.  To that I added the 
 virtual host and the context. In other words in the following sample, 
 what I have added to the default Apache-Tomcat service is contained 
 in and includes the Host tags.

 I am still getting the error.




   !-- 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 appBase=webapps
  acceptCount=10 debug=0/

 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0

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

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





   !-- Define the default virtual host --
 Host name=prod_host debug=9 appBase=webapps
unpackWARs=true autoDeploy=true


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



 !-- test context --

 Context path=/DBTest docBase=DBTest
 debug=5 reloadable=true crossContext=true

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

 Resource name=jdbc/TestDB
auth=Container
type=javax.sql.DataSource/

 ResourceParams name=jdbc/TestDB
 parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter

 parameter
 namemaxActive/name
 value20/value
 /parameter

 parameter
 namemaxIdle/name
 value30/value
 /parameter

 parameter
 namemaxWait/name
 value1/value
 /parameter


 parameter
 nameusername/name
 valuejavausr/value
 /parameter

 parameter
 namepassword/name
 valuejavadud/value
 /parameter

 parameter
 namedriverClassName/name
 valueorg.gjt.mm.mysql.Driver/value
 /parameter

 parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
 /parameter
 /ResourceParams
 /Context

 !-- end test context --

 /Host
 /Engine
   /Service


 /Server




 Raj Saini wrote:

 Hi jake,

 You woll need to define a context under a Tomcat-Apache service. I 
 belive you are using the context defined in the Stand-Alone service.
 you must have a virtual host and your context under this virtual host.

 I hope this helps you.

 Raj

 Jake Tweer wrote:

 I'm getting the same error with MySQL and I've seen posts for 
 PostgreSQL, MySQL and Oracle.  I have followed all suggestions with 
 no luck except for one case - the example given in the JNDI - How 
 To works for me.  The example is using standalone Tomcat and that 
 works.  As soon as I use Apache/mod_webapp I get the exception 
 Cannot load JDBC driver class 'null'.



 Robert Herold wrote:

 I've been happily using tomcat 4.0.4 for a while, and thought I'd 
 upgrade to
 version 4.1.12.  Alas, I cannot get tomcat to find my Oracle JDBC 
 driver
 when I use 4.1.12.  It worked fine in 4.0.4.

 Any ideas what might be wrong?

 My classes12.jar is in common/lib where it is supposed to be.  
 It's the same
 file as I used under tomcat 4.0.4, so it is known to be good.

 I followed the configuration steps for setting up the JNDI 
 Datasource very
 carefully.

 The exception I get is:

 Caused by: java.sql.SQLException: Cannot load JDBC driver class 
 'null'
 at
 org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav 

 a:529)
 at
 org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3 

 12)
 at 
 com.cotagesoft.common.XDataSource.getConnection(XDataSource.java:107)
 ... 31 more

 My resource definition in server.xml is:

  DefaultContext debug=0 reloadable=true
Resource 

Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Dom

Hi

I've been able to build Apache2.0.40 and mod_jk2 together, but not
Apache2.0.42 and mod_jk2 on a MDK 7.2 system with TC 4.1.12.
I've got no problem on a RH 7.3.

Why ?

- Original Message -
From: Henri Gomez [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 3:03 PM
Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk


 Hum,

 Having a Redhat box and not using rpm is strange,
 btw if you have build an Apache 2.0.42 on your system,
 you should be able to build mod_jk 1.2.0 :



http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/doc/jk/aphowto.html


 --
 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: Repost: getClassLoader() returns null

2002-10-03 Thread Cox, Charlie

you don't also have the jar under /jre/lib/ext? It would find your jar there
before looking in /common/lib; in which case it would be loaded by the jvm's
bootstrap and could return null.

see the tomcat classloader doc...

Charlie

 -Original Message-
 From: Volker Leidl [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:24 PM
 To: Tomcat Users List
 Subject: Repost: getClassLoader() returns null
 
 
 Sorry for the repost, I don't mean to bother you, but can 
 anyone confirm 
 that getClassLoader() on a class loaded by the common class loader of 
 tomcat (4.0.3), particularily from a jar in common/lib,  returns null?
 
 I'm really puzzled...
 
 Thanks in advance,
 Volker.
 

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




RE: problems with paths using mod_jk 1.2

2002-10-03 Thread Turner, John


Whoa, I think you've got some things mixed up.

If you want to use mod_jk, then requests NEVER go to 8080.  That's the whole
point of a connector.  It connects Apache to Tomcat so that requests are
served on port 80, not port 8080.

I hesitate to get involved, because we went around and around in circles the
last time you had a problem, so I will try and sum things up as clearly as I
can:

- if you are getting some error message from a Turbine servlet, then fix
that error...don't go grabbing at straws

- if you want your app served on port 8080, don't use Apache at all...use
Tomcat in stand-alone mode

- if you want your app served on port 80, and don't mind running Tomcat as
root (some people do mind this) then change server.xml to listen on port 80
and be done with it

- if you want your app served on port 80 with Apache, then setup Apache with
mod_jk.  There are NUMEROUS docs on this available, most of them fairly
good, including the docs from the Tomcat site.  

- if you use Apache + mod_jk + Tomcat you DON'T need a refresh in index.html
to redirect to 8080...that just makes Apache and mod_jk completely
irrelevant

- you didn't post your server.xml in any case, but my guess is that whatever
you are trying to do (I'm not exactly sure why you are following the path
you are following) isn't working because your hostnames look pretty
goofy...you're telling Apache to listen on port 8080 (VirtualHost IP:8080)
but then you want to run Tomcat on port 8080, but then you want to serve
content on port 80 with a redirect to 8080 etc. etc. etc. etc.  Too crazy to
even begin sorting it out, to be honest.

My advice:  Either 1) get Apache working on port 80 serving a single static
page, then post back here and explain EXACTLY where you want to go from
there so that people can help, or 2) stop trying to use Apache, use Tomcat
in stand-alone mode and post back here and explain EXACTLY what the error
message that you get from your Turbine servlet is.

I don't mean to sound critical, but you've really got things munged up.  I
know you are desperate, I know your site is down, but you aren't making it
any better.  Slow down, keep it simple, and take things one step at a time.
Follow any of the Apache + mod_jk + Tomcat HOWTOs available...none of them
say anything about setting things up the way you've got them set up.  Don't
wing it, you'll only spin your wheels as a result.

John


 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:17 PM
 To: [EMAIL PROTECTED]
 Subject: problems with paths using mod_jk 1.2
 
 
 Hi,
 
 I had been redirecting from Apache 2.0.42 index page to Tomcat 4.1.12 
 successfully. Then I had a corrupt filesystem and have had to 
 do a complete 
 installation. This time I am using Apache 1.3.23 with Tomcat 
 4.1.12 and for 
 some reason my Turbine based servlet did not like th 
 eredicrect and had an 
 'Infinite Redited exception'. So I am forced to get mod_jk working.
 
 What I am trying to achieve is have people who hit my 
 'www.roamware.com' URL 
 be directed to 'www.roamware.com:8080/rwsite/servlet/template'
 
 I downloaded the binaries for mod_jk 1.2 and installed them 
 successfully.
 
 I have my config files below. I followed an example given by 
 a fellow Turbine 
 user, but I get a connection refused error. 
 

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




RE: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-03 Thread Turner, John


Someone might have a slight chance of answering your question if you were to
be so gracious as to post the error messages that you get when trying the
build.

John


 -Original Message-
 From: Dom [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 1:36 PM
 To: Tomcat Users List
 Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
 
 
 Hi
 
 I've been able to build Apache2.0.40 and mod_jk2 together, but not
 Apache2.0.42 and mod_jk2 on a MDK 7.2 system with TC 4.1.12.
 I've got no problem on a RH 7.3.
 
 Why ?
 
 - Original Message -
 From: Henri Gomez [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, October 03, 2002 3:03 PM
 Subject: Re: tomcat 4.1.12 with apache2.0.42 and mod_jk
 
 
  Hum,
 
  Having a Redhat box and not using rpm is strange,
  btw if you have build an Apache 2.0.42 on your system,
  you should be able to build mod_jk 1.2.0 :
 
 
 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/
 release/v1.2.0
 /doc/jk/aphowto.html
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: Tomcat SSL

2002-10-03 Thread Mehmet Birgi

hi panos,

Tomcat uses the standart java truststore to authenticate the client cert,
not it's keystore. See below for corrections:

- Original Message -
From: Panos Skondras [EMAIL PROTECTED]
To: Tomcat Users [EMAIL PROTECTED]
Sent: Thursday, October 03, 2002 12:06
Subject: Tomcat SSL


 Hi all again

 I am trying to work with tomcat and ssl with clientauth=true.
 I am trying to access the Tomcat on localhost and supply the client
 certificate through IE
 In tomcat i have a servlet which will print the certificate eventually.
 Here are the steps i take
 1.snip server.xml
  Connector className=org.apache.catalina.connector.http.HttpConnector

port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
   Factory
 className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=auth protocol=TLS
 keystoreFile=c:\keystore\server.keystore keystorePass=771652/
 /Connector

   /snip
 2. Create the server.keystore
 keytool -genkey -alias pask -keyalg rsa -keystore
 c:\keystore\server.keystore

 3.export the key to be put in IE Trust Root Dir
 keytool -export -alias pask -keystore c:\keystore\server.keystore -file
 server.cer

 4.In IE Content import the server.cer into Trust Root Dir providers
 Up to here if i put clientauth=false in server xml i have https
 connection to tomcat with the IE showing it is SECURE the lock appears.

 5.Now on the same machine i create the client certificate
 keytool -genkey -alias pskon -keyalg rsa -keystore
 c:\keystore\client.keystore
 keytool -export -alias pskon -keystore c:\keystore\client.keystore -file
 cl.cer
 keytool -import -alias pskon -keystore c:\keystore\server.keystore -file
 cl.cer

this is the important thing: try
keytool -import -alias pskon -keystore
%JAVA_HOME%\jre\lib\security\cacerts -file cl.cer

I think that the password for cacerts is changeit, but I am not sure,
check the docs for JSSE by Sun if it does not work.

Good luck,

memo



 I also copy the server.keystore in jre/lib/security just in case
 The attributes of the keys are CN=localhost ,ATHENS,ATHENS,ATHENS,GR
 When i put back clientauth=true restart catalina 4.0.4 on WINDOWS XP
 i get a page cannot displayed sign.

 Am i doing somethig wrong..?
 Any ideas are welcome..








 --
 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: build.xml for Ant/JspC

2002-10-03 Thread Subir Sengupta

Here's a snippet of my build.xml (but I don't have a refid).  It seems to
work though.

 !-- JSPC:  pre-compile JSPs --
 target name=jspc
  java classname=org.apache.jasper.JspC
   classpath
pathelement location=${java.home}/lib/tools.jar/
fileset dir=/home/subir/www/tomcat/server/lib
 include name=**/*.jar/
/fileset
fileset dir=/home/subir/www/tomcat/common/lib
 include name=**/*.jar/
/fileset
fileset dir=/home/subir/www/tomcat/lib
 include name=**/*.jar/
/fileset
pathelement location=${build.home}/WEB-INF/ /
   /classpath
   arg value=-d /
   arg file=${deploy.home} /
   arg value=-v9 /
   arg value=-webapp /
   arg value=${src} /
  /java
 /target

Also I found an earlier posting that might help:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14936.html

Thanks for posting your compiler snippet.
Subir

-Original Message-
From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 5:56 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: build.xml for Ant/JspC


 There is a snippet of the build.xml that we use for jsp
compilation.

I'm lurking on this thread but wanted to ask:
What is your classpath refid=all-classpath / set to?
I've attempted JspC but I get class-not-found errors and when I
resolve them I get problems with the endorsed/sealed XML classes.

In the end I resorted to calling jspc.sh as shipped with Tomcat
as it seems to manage the classpath properly:

exec executable=/bin/sh
arg line=${catalina.home}/bin/jasper.sh/
arg line=jspc/
arg line=-webapp ${build.home}/
arg line=-webinc ${build.jspc.home}/webinc.xml/
arg line=-uriroot ${build.home}/
arg line=-p com.mydomain/
arg line=-d ${build.jspc.home}/
arg line=-v/
/exec

In answer to another posters question (sorry, I don't remember
who it was), once the above call to jspc.sh finishes I then call
the java compiler as follows:

javac srcdir=${build.jspc.home}
  destdir=${build.home}/WEB-INF/classes
debug=${compile.debug}
  deprecation=${compile.deprecation}
 optimize=${compile.optimize}
classpath refid=compile.classpath/
include name=**/*.java/
/javac

Thanks,
Kevin.


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.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]




RE: problems with paths using mod_jk 1.2

2002-10-03 Thread Michael Schulz

Dave,

I have to agree with John.  I spent a great deal of time helping on that
debacle as well...it is really sad to hear that you lost everything as a
result of a corrupt file system...(:)

You have to know what you want to achieve before I would be willing to lend
more assistance.  How will you get there if you don't know where you are
going?

Apache...Tomcat...port 80...port 8080...meta-redirects...body onload
handlers...this is way more complex than it needs to be.

I think John's idea of running tomcat as root and changing the http
connector listen port from 8080 to 80 is the simplest idea.  Why you would
use apache just to redirect from port 80 to 8080 is beyond me.  Your
situation is exactly what Craig McClanahan was referring to recently when he
made a valid case for using tomcat in a standalone environment.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:43 PM
To: 'Tomcat Users List'
Subject: RE: problems with paths using mod_jk 1.2



Whoa, I think you've got some things mixed up.

If you want to use mod_jk, then requests NEVER go to 8080.  That's the whole
point of a connector.  It connects Apache to Tomcat so that requests are
served on port 80, not port 8080.

I hesitate to get involved, because we went around and around in circles the
last time you had a problem, so I will try and sum things up as clearly as I
can:

- if you are getting some error message from a Turbine servlet, then fix
that error...don't go grabbing at straws

- if you want your app served on port 8080, don't use Apache at all...use
Tomcat in stand-alone mode

- if you want your app served on port 80, and don't mind running Tomcat as
root (some people do mind this) then change server.xml to listen on port 80
and be done with it

- if you want your app served on port 80 with Apache, then setup Apache with
mod_jk.  There are NUMEROUS docs on this available, most of them fairly
good, including the docs from the Tomcat site.

- if you use Apache + mod_jk + Tomcat you DON'T need a refresh in index.html
to redirect to 8080...that just makes Apache and mod_jk completely
irrelevant

- you didn't post your server.xml in any case, but my guess is that whatever
you are trying to do (I'm not exactly sure why you are following the path
you are following) isn't working because your hostnames look pretty
goofy...you're telling Apache to listen on port 8080 (VirtualHost IP:8080)
but then you want to run Tomcat on port 8080, but then you want to serve
content on port 80 with a redirect to 8080 etc. etc. etc. etc.  Too crazy to
even begin sorting it out, to be honest.

My advice:  Either 1) get Apache working on port 80 serving a single static
page, then post back here and explain EXACTLY where you want to go from
there so that people can help, or 2) stop trying to use Apache, use Tomcat
in stand-alone mode and post back here and explain EXACTLY what the error
message that you get from your Turbine servlet is.

I don't mean to sound critical, but you've really got things munged up.  I
know you are desperate, I know your site is down, but you aren't making it
any better.  Slow down, keep it simple, and take things one step at a time.
Follow any of the Apache + mod_jk + Tomcat HOWTOs available...none of them
say anything about setting things up the way you've got them set up.  Don't
wing it, you'll only spin your wheels as a result.

John


 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:17 PM
 To: [EMAIL PROTECTED]
 Subject: problems with paths using mod_jk 1.2


 Hi,

 I had been redirecting from Apache 2.0.42 index page to Tomcat 4.1.12
 successfully. Then I had a corrupt filesystem and have had to
 do a complete
 installation. This time I am using Apache 1.3.23 with Tomcat
 4.1.12 and for
 some reason my Turbine based servlet did not like th
 eredicrect and had an
 'Infinite Redited exception'. So I am forced to get mod_jk working.

 What I am trying to achieve is have people who hit my
 'www.roamware.com' URL
 be directed to 'www.roamware.com:8080/rwsite/servlet/template'

 I downloaded the binaries for mod_jk 1.2 and installed them
 successfully.

 I have my config files below. I followed an example given by
 a fellow Turbine
 user, but I get a connection refused error.


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




packages and paths?

2002-10-03 Thread Don Fike


I have packaged a group of servlets into a package.
Now to access my servlet I am using an URL similar to
the one below;

http://mysite:8080/example/servlet/path.to.my.package.myServlet

My servlets are located in a directory structure like;

... tomcat/webapps/example/WEB-INF/classes/path/to/my/package/myServlet

moving them to where they were [and prolly breaking a path-package rule]
doesn't work, i.e placing them here fails with errors;

... tomcat/webapps/example/WEB-INF/classes/myServlet 

Before I packaged my servlets I used an URL similar to this one;

http://mysite:8080/example/servlet/myServlet

I would prefer the shorter version of the URL.  Do I have
this app and package configured wrong for tomcat?  
Is it possible to still use packages but not have to 
use an URL that includes the entire package path info 
with the servlet name?

Thanks,

Don
[EMAIL PROTECTED]



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




RE: problems with paths using mod_jk 1.2

2002-10-03 Thread David Wynter

I think best approach is to install Apache 2.0.42 as I had before the
corrupt filesystem where it all worked using the redirect with the
configuration I had without the Turbine error. I don't find the Apache HowTo
on mod_jk very good, the standard mod_jk.conf you get when you install has
Alias and Directory used in contexts that are not explained in the HowTos.
Also these are not explained in isolation anyway. Possibly this is only a
small part of my problem, but rather than try to understand mod_jk I will be
better to build what know worked. I thought that I could change the URL so
that it inserted the 8080 port part for that first URL hit using a
VirtualHost or Alias , which I gather from John response I cannot do.

Thanks

David

-Original Message-
From: Michael Schulz [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 18:54
To: Tomcat Users List
Subject: RE: problems with paths using mod_jk 1.2


Dave,

I have to agree with John.  I spent a great deal of time helping on that
debacle as well...it is really sad to hear that you lost everything as a
result of a corrupt file system...(:)

You have to know what you want to achieve before I would be willing to lend
more assistance.  How will you get there if you don't know where you are
going?

Apache...Tomcat...port 80...port 8080...meta-redirects...body onload
handlers...this is way more complex than it needs to be.

I think John's idea of running tomcat as root and changing the http
connector listen port from 8080 to 80 is the simplest idea.  Why you would
use apache just to redirect from port 80 to 8080 is beyond me.  Your
situation is exactly what Craig McClanahan was referring to recently when he
made a valid case for using tomcat in a standalone environment.

-Mike Schulz


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 12:43 PM
To: 'Tomcat Users List'
Subject: RE: problems with paths using mod_jk 1.2



Whoa, I think you've got some things mixed up.

If you want to use mod_jk, then requests NEVER go to 8080.  That's the whole
point of a connector.  It connects Apache to Tomcat so that requests are
served on port 80, not port 8080.

I hesitate to get involved, because we went around and around in circles the
last time you had a problem, so I will try and sum things up as clearly as I
can:

- if you are getting some error message from a Turbine servlet, then fix
that error...don't go grabbing at straws

- if you want your app served on port 8080, don't use Apache at all...use
Tomcat in stand-alone mode

- if you want your app served on port 80, and don't mind running Tomcat as
root (some people do mind this) then change server.xml to listen on port 80
and be done with it

- if you want your app served on port 80 with Apache, then setup Apache with
mod_jk.  There are NUMEROUS docs on this available, most of them fairly
good, including the docs from the Tomcat site.

- if you use Apache + mod_jk + Tomcat you DON'T need a refresh in index.html
to redirect to 8080...that just makes Apache and mod_jk completely
irrelevant

- you didn't post your server.xml in any case, but my guess is that whatever
you are trying to do (I'm not exactly sure why you are following the path
you are following) isn't working because your hostnames look pretty
goofy...you're telling Apache to listen on port 8080 (VirtualHost IP:8080)
but then you want to run Tomcat on port 8080, but then you want to serve
content on port 80 with a redirect to 8080 etc. etc. etc. etc.  Too crazy to
even begin sorting it out, to be honest.

My advice:  Either 1) get Apache working on port 80 serving a single static
page, then post back here and explain EXACTLY where you want to go from
there so that people can help, or 2) stop trying to use Apache, use Tomcat
in stand-alone mode and post back here and explain EXACTLY what the error
message that you get from your Turbine servlet is.

I don't mean to sound critical, but you've really got things munged up.  I
know you are desperate, I know your site is down, but you aren't making it
any better.  Slow down, keep it simple, and take things one step at a time.
Follow any of the Apache + mod_jk + Tomcat HOWTOs available...none of them
say anything about setting things up the way you've got them set up.  Don't
wing it, you'll only spin your wheels as a result.

John


 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:17 PM
 To: [EMAIL PROTECTED]
 Subject: problems with paths using mod_jk 1.2


 Hi,

 I had been redirecting from Apache 2.0.42 index page to Tomcat 4.1.12
 successfully. Then I had a corrupt filesystem and have had to
 do a complete
 installation. This time I am using Apache 1.3.23 with Tomcat
 4.1.12 and for
 some reason my Turbine based servlet did not like th
 eredicrect and had an
 'Infinite Redited exception'. So I am forced to get mod_jk working.

 What I am trying to achieve is have people who hit my
 

RE: problems with paths using mod_jk 1.2

2002-10-03 Thread Turner, John


No, that isn't what I said.  What I said is that you can't have Apache on
port 8080 and Tomcat on port 8080.  When you specify VirtualHost
some_ip:8080 to Apache, you are telling Apache to listen on that port.
If you tell Apache to listen on that port, you can't tell Tomcat to listen
on that port.  System Administration 101.

You can certainly have a meta-refresh in an HTML page that redirects to a
URL on a non-standard (non 80) port.  However, you have to make sure that
ONLY ONE software service is listening on that port!

You just have to think things through, or if you have done this, work on
explaining it to us (or anyone trying to help you) better.  It's really just
that simple.

If your app is all servlet/Tomcat, then don't even deal with Apache.  Tell
Tomcat to listen on port 80 and be done with it.

I'm not tooting my own horn, but I've gotten emails from all over the world
telling me my HOWTOs on using Apache + mod_jk + Tomcat are quite good.  I
don't know if you are using Redhat or not, but if you are, check them out:
http://www.johnturner.com/howto  There are other HOWTOs for Windows and
other environments that are also done quite well.  

I'm not saying you have to use Apache and mod_jk, I am just pointing out
that if you WANT to use them, there are plenty of concise documents
available to help you use them.

I'll repeat myself...don't just wing it and jump into something...think it
through.  If your site is down, getting it up is paramount, and the fastest
way to do that is to do it the simplest way and deal with adding bells and
whistles later.

Also, I wanted to add that putting Apache into the mix will DO NOTHING to
resolve a servlet error you're getting from Tomcat and your Turbine app.  If
anything, putting Apache and mod_jk into the mix will make it HARDER to
diagnose the servlet error you are getting.  

Put Tomcat on port 80 and be done with it.

John


 -Original Message-
 From: David Wynter [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 2:14 PM
 To: Tomcat Users List
 Subject: RE: problems with paths using mod_jk 1.2
 
 
 I think best approach is to install Apache 2.0.42 as I had before the
 corrupt filesystem where it all worked using the redirect with the
 configuration I had without the Turbine error. I don't find 
 the Apache HowTo
 on mod_jk very good, the standard mod_jk.conf you get when 
 you install has
 Alias and Directory used in contexts that are not explained 
 in the HowTos.
 Also these are not explained in isolation anyway. Possibly 
 this is only a
 small part of my problem, but rather than try to understand 
 mod_jk I will be
 better to build what know worked. I thought that I could 
 change the URL so
 that it inserted the 8080 port part for that first URL hit using a
 VirtualHost or Alias , which I gather from John response I cannot do.
 
 Thanks
 
 David
 
 -Original Message-
 From: Michael Schulz [mailto:[EMAIL PROTECTED]]
 Sent: 03 October 2002 18:54
 To: Tomcat Users List
 Subject: RE: problems with paths using mod_jk 1.2
 
 
 Dave,
 
 I have to agree with John.  I spent a great deal of time 
 helping on that
 debacle as well...it is really sad to hear that you lost 
 everything as a
 result of a corrupt file system...(:)
 
 You have to know what you want to achieve before I would be 
 willing to lend
 more assistance.  How will you get there if you don't know 
 where you are
 going?
 
 Apache...Tomcat...port 80...port 8080...meta-redirects...body onload
 handlers...this is way more complex than it needs to be.
 
 I think John's idea of running tomcat as root and changing the http
 connector listen port from 8080 to 80 is the simplest idea.  
 Why you would
 use apache just to redirect from port 80 to 8080 is beyond me.  Your
 situation is exactly what Craig McClanahan was referring to 
 recently when he
 made a valid case for using tomcat in a standalone environment.
 
 -Mike Schulz
 
 
 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 03, 2002 12:43 PM
 To: 'Tomcat Users List'
 Subject: RE: problems with paths using mod_jk 1.2
 
 
 
 Whoa, I think you've got some things mixed up.
 
 If you want to use mod_jk, then requests NEVER go to 8080.  
 That's the whole
 point of a connector.  It connects Apache to Tomcat so that 
 requests are
 served on port 80, not port 8080.
 
 I hesitate to get involved, because we went around and around 
 in circles the
 last time you had a problem, so I will try and sum things up 
 as clearly as I
 can:
 
 - if you are getting some error message from a Turbine 
 servlet, then fix
 that error...don't go grabbing at straws
 
 - if you want your app served on port 8080, don't use Apache 
 at all...use
 Tomcat in stand-alone mode
 
 - if you want your app served on port 80, and don't mind 
 running Tomcat as
 root (some people do mind this) then change server.xml to 
 listen on port 80
 and be done with it
 
 - if you want your app served on port 80 

Extra Log Information...

2002-10-03 Thread ContestAdmin

Hi all.

I recently decided to upgrade my system from using
apache jserv to use tomcat.

I am running Solaris 2.6.
I have apache version 2.0.42
tomcat version 4.1.12.

I am attempting to get the two to communicate via
mod_webapp.

Right now they appear to be working, but I am getting
a lot of extra information written out to the log files for
tomcat.

Actually I also see some interesting information in
the apache log as well (but I believe I know why this
is).

From the apache log:
-
[Thu Oct 03 11:16:10 2002] [error] Connection conn cannot connect
[Thu Oct 03 11:16:10 2002] [error] Cannot open connection conn
-

I am assuming this is because my script starts
apache before tomcat. These errors only show up
at the very start of the error_log and cease.

The real problem is messages in the tomcat log:
-
java.io.IOException: Premature packet header end
at
org.apache.catalina.connector.warp.WarpConnection.recv(Unknown Source)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown
Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:536)
-

I see several of these for every request. I've done
some searching in the mailing list and I think this maybe
due to serving images but I'm not sure. I also did not
find a solution on how to end these.

Is it possible this is due to a 'file not found' error?

Any help is greatly appreciated.




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




Re: IIS 5, Mod_jk 2, Tomcat 4.1.12 combination problem with delivery

2002-10-03 Thread David Warnock

Ignacio,

Many thanks for the quick response.

 This is bug 12346, we are investigating it..

If I can add any extra information to the bug report I will.

Again thanks

Dave
-- 
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.



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




Tomcat 4.1.12, index.jsp, and application.getServerInfo()

2002-10-03 Thread Mark Eggers

I'm using the following setup:

Windows/2000 Pro - latest patches
IIS 5
jdk 1.3.1_04

Tomcat 4.1.12 (binary, installed as a service)
mod_jk 1.20

Various other packages (Cocoon 2.1-dev, Jetspeed,
Xindice) are installed and working well.

However, the Tomcat index.jsp page seems to want to
call the following:

%= application.getServerInfo() %

which does not appear to exist.

IE 6.0.28 does the normal Microsoft thing and ignores
whatever it doesn't understand or considers to be an
error.  The line appears in the title of the page, and
not in the body.  Talk about consistant . . .

Opera 6.05 prints the
%= application.getServerInfo() % on the page.

Netscape 7 considers this page to be an
application/octet-stream and asks if I would like to
download it.

However, other jsp pages with tags work fine in
Netscape 7.

I have tried commenting the lines out in index.jsp,
but Netscape continues to treat this as an
application/octet-stream.

I've also tried turning on and off the documents
setting for the virtual directory (sets up a series of
files to serve up if localhost/tomcat/ is requested).

Each time I made a change, I made sure to clean out
the work directory and my cache so that I wouldn't be
getting a cached value.

Netscape still considers this to be an
application/octet-stream when going throw IIS.

However, Netscape 7 appears to work fine with this
page when going at the default Tomcat port (8080).

My first guess is that the mime type really is
application/octet-stream since the tag is not being
found.  That would mean that Netscape is doing the
correct thing.  However, since index.jsp works on port
8080 for Netscape, it appears that jk 1.20 is setting
the mime type?

So - where is application.getServerInfo() ?

/mde/

just my two cents . . . .

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




  1   2   >