Re: Tomcat SSL

2002-10-02 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:

> For additional commands, e-mail:

>
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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

2002-10-02 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.*" %>





Continue



---


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:   
For additional commands, e-mail: 




Class org.apache.jsp.InventoryData not found.

2002-10-02 Thread Glinn Cortez

Hello!

I have this code:

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


 


Continue


---


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:   
For additional commands, e-mail: 


Re: JAVA SOAP Discussion List

2002-10-02 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:   
For additional commands, e-mail: 




Tomcat SSL

2002-10-02 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:   
For additional commands, e-mail: 




RE: Tomcat w. JRE?

2002-10-02 Thread Ola Tuvesson


I also get this in my localhost log:

2002-10-03 07:11:46 StandardHost[localhost]: Installing web application at
context path /nfc from URL file:C:/Tomcat/webapps/nfc
2002-10-03 07:11:46 WebappLoader[/nfc]: Deploying class repositories to work
directory C:\Tomcat\work\Standalone\localhost\nfc
2002-10-03 07:11:46 WebappLoader[/nfc]: Deploy JAR
/WEB-INF/lib/chatserver.jar to
C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver.jar
2002-10-03 07:11:46 WebappLoader[/nfc]: Deploy JAR
/WEB-INF/lib/chatserver_flash.jar to
C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver_flash.jar
2002-10-03 07:11:46 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/jms.jar to
C:\Tomcat\webapps\nfc\WEB-INF\lib\jms.jar
2002-10-03 07:11:46 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/jndi.jar to
C:\Tomcat\webapps\nfc\WEB-INF\lib\jndi.jar
2002-10-03 07:11:46 StandardManager[/nfc]: Seeding random number generator
class java.security.SecureRandom
2002-10-03 07:11:46 StandardManager[/nfc]: Seeding of random number
generator has been completed
2002-10-03 07:11:46 StandardContext[/nfc]: Servlet /nfc threw load()
exception
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException
at
com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServlet.java:63)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
4)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
)
at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)

2002-10-03 07:11:46 StandardWrapper[/nfc:default]: Loading container servlet
default
2002-10-03 07:11:46 StandardWrapper[/nfc:invoker]: Loading container servlet
invoker




-Original Message-
From: Ola Tuvesson [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 07:23
To: Tomcat Users List
Subject: RE: Tomcat w. JRE?



Hi again,

Seems I'm getting there but still struggling... :( Tomcat is now running and
the /admin/ and /manager/ contetxts are both working. But... I'm now trying
to deploy the contxt that is the reason for this whole exercise, which is
the NFC chat server. I've built the binaries using Ant without error and
uploaded the WAR file to the webapps folder. Before building I made sure
that all the conf files were set up correctly but I'm gettin a (for this
newbie) completely incomprehensible and very long error message:

Created catalinaLoader in: C:\Tomcat\server\lib
03-Oct-2002 07:11:39 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
03-Oct-2002 07:11:39 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
03-Oct-2002 07:11:40 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
03-Oct-2002 07:11:41 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
java.lang.NullPointerException
at
com.lyrisoft.chat.server.remote.ChatServer.createServletContextLogger(ChatSe
rver.java:724)
at
com.lyrisoft.chat.server.remote.ChatServe

RE: Tomcat w. JRE?

2002-10-02 Thread Ola Tuvesson


Hi again,

Seems I'm getting there but still struggling... :( Tomcat is now running and
the /admin/ and /manager/ contetxts are both working. But... I'm now trying
to deploy the contxt that is the reason for this whole exercise, which is
the NFC chat server. I've built the binaries using Ant without error and
uploaded the WAR file to the webapps folder. Before building I made sure
that all the conf files were set up correctly but I'm gettin a (for this
newbie) completely incomprehensible and very long error message:

Created catalinaLoader in: C:\Tomcat\server\lib
03-Oct-2002 07:11:39 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
03-Oct-2002 07:11:39 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
03-Oct-2002 07:11:40 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
03-Oct-2002 07:11:41 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
java.lang.NullPointerException
at
com.lyrisoft.chat.server.remote.ChatServer.createServletContextLogger(ChatSe
rver.java:724)
at
com.lyrisoft.chat.server.remote.ChatServer.createLoggers(ChatServer.java:745
)
at com.lyrisoft.chat.server.remote.ChatServer.(ChatServer.java:85)
at com.lyrisoft.chat.server.remote.ChatServer.(ChatServer.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServlet.java:44)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
4)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
)
at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
java.lang.NullPointerException
at
com.lyrisoft.chat.server.remote.ChatServer.createServletContextLogger(ChatSe
rver.java:724)
at
com.lyrisoft.chat.server.remote.ChatServer.createLoggers(ChatServer.java:763
)
at com.lyrisoft.chat.server.remote.ChatServer.(ChatServer.java:85)
at com.lyrisoft.chat.server.remote.ChatServer.(ChatServer.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServlet.java:44)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
4)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.St

Re: How to create a connection pool

2002-10-02 Thread Kwok Peng Tuck

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:   
For additional commands, e-mail: 




How to create a connection pool

2002-10-02 Thread phani

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



Apache / Jakarta-Tomcat / PostgreSQL - Connection Pool

2002-10-02 Thread Lars Nielsen Lind

Hi.

I need to use a connection pool with Apache 1.3.26 or 2.0.42 / 
Jakarta-Tomcat 4.05 or 4.1.12 / PostgreSQL.

Anyone that have some links / ideas to a possible solution?

Best regards,

Lars Nielsen Lind


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat w. JRE?

2002-10-02 Thread Sriram N

And according to a license policy change by Sun, it's possible to distribute
the tools.jar file to your customers too.

Sriram

> -Original Message-
> From: Mohammad Al-Bedaiwi [mailto:[EMAIL PROTECTED]]
> Sent: 03 October 2002 05:29
> To: 'Tomcat Users List'
> Subject: RE: Tomcat w. JRE?
> 
> 
> The reason you need the jdk is that b/c you need the tools.jar to be in
> the classpath.
> If u don't want to install the jdk, make sure u have a copy of tools.jar
> somewhere in the classpath.
> 
> Mohammad
> 
> 
> -Original Message-
> From: Ola Tuvesson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 10:55 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat w. JRE?
> 
> 
> Hi everyone,
> 
> I would like to know if it is possible to run Tomcat on Windows NT with
> just
> the Sun JRE 1.4 instead of the full JDK? I really don't want to have to
> install the full JDK as my server is not really a development machine
> and
> the difference in size is quite substantioal. If not, could someone
> please
> enlighten me as to why this is not possible?
> 
> Many thanks,
>   Ola Tuvesson
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat w. JRE?

2002-10-02 Thread Ola Tuvesson


Top man! Many thanks Mohammad, got it up and running with just the JRE +
tools.jar from the SDK!

Ola


-Original Message-
From: Mohammad Al-Bedaiwi [mailto:[EMAIL PROTECTED]]
Sent: 03 October 2002 05:29
To: 'Tomcat Users List'
Subject: RE: Tomcat w. JRE?


The reason you need the jdk is that b/c you need the tools.jar to be in
the classpath.
If u don't want to install the jdk, make sure u have a copy of tools.jar
somewhere in the classpath.

Mohammad


-Original Message-
From: Ola Tuvesson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 10:55 PM
To: [EMAIL PROTECTED]
Subject: Tomcat w. JRE?


Hi everyone,

I would like to know if it is possible to run Tomcat on Windows NT with
just
the Sun JRE 1.4 instead of the full JDK? I really don't want to have to
install the full JDK as my server is not really a development machine
and
the difference in size is quite substantioal. If not, could someone
please
enlighten me as to why this is not possible?

Many thanks,
Ola Tuvesson






--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat w. JRE?

2002-10-02 Thread haixi liu

Without JDK (javac), Tomcat won't be able to compile *.jsp into servlet.

So, even if you have all the jsp pages compiled somewhere else and copy them 
into the work folder, they (jsp) won't get recompiled when updated.


>From: "Ola Tuvesson" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: Tomcat w. JRE?
>Date: Thu, 3 Oct 2002 04:55:10 +0100
>
>
>Hi everyone,
>
>I would like to know if it is possible to run Tomcat on Windows NT with 
>just
>the Sun JRE 1.4 instead of the full JDK? I really don't want to have to
>install the full JDK as my server is not really a development machine and
>the difference in size is quite substantioal. If not, could someone please
>enlighten me as to why this is not possible?
>
>Many thanks,
>   Ola Tuvesson
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat w. JRE?

2002-10-02 Thread Mohammad Al-Bedaiwi

The reason you need the jdk is that b/c you need the tools.jar to be in
the classpath. 
If u don't want to install the jdk, make sure u have a copy of tools.jar
somewhere in the classpath.

Mohammad


-Original Message-
From: Ola Tuvesson [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 02, 2002 10:55 PM
To: [EMAIL PROTECTED]
Subject: Tomcat w. JRE?


Hi everyone,

I would like to know if it is possible to run Tomcat on Windows NT with
just
the Sun JRE 1.4 instead of the full JDK? I really don't want to have to
install the full JDK as my server is not really a development machine
and
the difference in size is quite substantioal. If not, could someone
please
enlighten me as to why this is not possible?

Many thanks,
Ola Tuvesson






--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




can't create apr

2002-10-02 Thread david chan

Hi,
 I am configuring apache web server 2.0.42 and tomcat
4.1.12 by using jk2 in my win2k.
 Apache successfully load the mod_jk2-2.0.42.dll.
 But tomcat side has some problems:

Any idea?
Thanks.
David

 Here is my in $(Apache_HOME)/conf/worker2.properties:
[shm]
file=F:/Program Files/Apache
Group/Apache2/logs/shm.file
size=1048576

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

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

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8019
= end worker2.properties 

Here is my $(catalina_home)/conf/jk2.properties:
shm.file=F:/Program Files/Apache
Group/Apache2/logs/jk2.shm
jtc=D:/work/programs/Tomcat 4.1.12
serverRoot=F:/Program Files/Apache Group/Apache2
handler.list=apr,request,channelJni
apr.NativeSo=D:/work/programs/Tomcat
4.1.12/bin/jni_connect.dll
apr.jniModeSo=F:/Program Files/Apache
Group/Apache2/modules/mod_jk-2.0.42.dll

= end jk2.properties ==

Here is the auto generated jk2.properties.save:

#AUTOMATICALLY GENERATED
#Thu Oct 03 00:17:02 EDT 2002
handler.list=apr,request,channelJni
secure=false
soTimeout=2
port=8019
channelSocket.port=8019
jkHome=..
apr.jniModeSo=F\:/Program Files/Apache
Group/Apache2/modules/mod_jk-2.0.42.dll
jtc=D\:/work/programs/Tomcat 4.1.12
shm.file=F\:/Program Files/Apache
Group/Apache2/logs/jk2.shm
maxThreads=75
backlog=10
apr.NativeSo=D\:/work/programs/Tomcat
4.1.12/bin/jni_connect.dll
serverRoot=F\:/Program Files/Apache Group/Apache2
timeout=2
tcpNoDelay=true

=== end jk2.properties.save 

Here is my server.xml:
 


=== end server.xml ===

Here is error mesg when starting catalina 4.1.12:
1026)
Oct 3, 2002 12:17:02 AM org.apache.jk.server.JkMain
newHandler
SEVERE: Can't create apr
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at
org.apache.jk.server.JkMain.newHandler(JkMain.java:494)
at
org.apache.jk.server.JkMain.processProperties(JkMain.java:442)
at
org.apache.jk.server.JkMain.start(JkMain.java:321)
at
org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:164)
at
org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:
1026)
at
org.apache.catalina.core.StandardService.start(StandardService.java:5
06)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Oct 3, 2002 12:17:02 AM
org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on tcp port 8019
Oct 3, 2002 12:17:02 AM org.apache.jk.server.JkMain
start
INFO: Jk running ID=0 time=0/230 
config=D:\work\programs\Tomcat 4.1.12\bin\..\c
onf\jk2.properties



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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat w. JRE?

2002-10-02 Thread Ola Tuvesson


Hi everyone,

I would like to know if it is possible to run Tomcat on Windows NT with just
the Sun JRE 1.4 instead of the full JDK? I really don't want to have to
install the full JDK as my server is not really a development machine and
the difference in size is quite substantioal. If not, could someone please
enlighten me as to why this is not possible?

Many thanks,
Ola Tuvesson






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




non-static method cannot be referenced from static context error

2002-10-02 Thread hugo

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:   
For additional commands, e-mail: 




Re: tomcat 4.1.12 with apache2.0.42 and mod_jk

2002-10-02 Thread Luminous Heart

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:  
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 4.1.12 JSPC question

2002-10-02 Thread Peter Lin


 
actually, the problem in my case was due to .tld file in jakarta jsp 1.1 taglibs. Once 
I removed the .tld files from the jar, jspc was able to compile with -webapp option 
just fine.
My guess is there is a bug with respect to how jasper compiler handles taglib tld 
files. For some reason, if there's a .tld file in /mywebapp/WEB-INF/ and the jar file, 
it tries to use the one in the jar.
since the web.xml points to the one in /WEB-INF/, it causes a conflict, which results 
in NPE.
 
peter lin
 
 Kris Schneider wrote:Peter,

Not sure if you're running into the same problem, but here's a thread
that didn't get much of a reaction. I haven't filed a bug on this
(yet?):

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg62000.html
name=smime.p7s 


-
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!


Re: build.xml for Ant/JspC

2002-10-02 Thread Sachin Pandey

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














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:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Internationalization.

2002-10-02 Thread Mohammad Al-Bedaiwi

Hello all.

A strange behavior when tomcat service JSPs that contain Arabic text.

 

I am running a small app which does a DB search. The DB data is in
Arabic, 

I can access the DB from my action (using struts), get the information
that I want to return to the user, stick it on the request and return to
the JSP for view.

 

My jsp has both hardcoded Arabic text and scriptlets to show the results
from the search. When the JSP displays, IE does NOT automatically set
the encoding to Arabic.  The user must manually select Encoding
->Arabic(Windows) .. and boom, it works . All the Arabic text appears
fine including the results of the search. This is just annoying, b/c
every time the user must select encoding -> Arabic (Windows).  

I noticed that when I saved the source of this window locally to
Something.html, and double click it, boom, it automatically shows in
Arabic.  

 

*** It seems like if the JSP is serviced by tomcat, IE fails to
recognize the encoding in thetag, and that is why
the Auto detection fails. ***

 

 

I tried to add the following line to the JSP

<%@ page contentType="text/html; charset=windows-1256" %>

 

However, the result was even more strange: The hardcoded Arabic text in
the jsp appeared OK. (in Arabic), IE automatically set the encoding to
Arabic.  HOWEVER, the search text that was returned from the action
shows as ? (question marks)

It seems that the JSP interpreter attempted to interpret the Arabic text
again??? Or something like that, and it encoded it again??? I am not
sure!!

 

 

Any ideas on:

1. what does this line do to the JSP <%@ page contentType="text/html;
charset=windows-1256" %> compiler?

2. any solution that I can try to get my Arabic text appear correctly?

 

Thanks a  lot!

Mohammad

 

 

 

 

 




Connection Pool Not Reusing Connections

2002-10-02 Thread Thaddeus Gean Cowan Thompson


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.

  
Reference to the Connection Pool defined in server.xml
  
  jdbc/customer
  javax.sql.DataSource
  Container


I have edited my server.xml as follows.

  
  

  driverClassName
  org.gjt.mm.mysql.Driver


  driverName
  jdbc:mysql://localhost:3306/grocery_customer


  user
  grocery


  password
  grocery

  
  
  

  driverClassName
  org.gjt.mm.mysql.Driver


  driverName
  jdbc:mysql://localhost:3306/grocery_product


  user
  grocery


  password
  grocery

  


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 access to
the database concurrently?).

The software I am using for development is as follows.
tomcat   4.0.3
mm.mysql 2.0.14
j2se 1.4.0_01
j2ee 1.3.1

I have ran out of ideas as to what can be causing this behavior, so any
pointers leading to an answer would be greatly appreciated.  Thanks.

 - Thadd




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat mod_jk context uri mapping problem.

2002-10-02 Thread eric scroger

Greetings,

I'm having a strange problem getting Tomcat to serve up servlets
with Apache using the mod_jk connectors.  I am using Tomcat 4.0.5
with Apache. 1.3.20 on Solaris 7.  I compiled the mod_jk.so library myself.
We are using Apache to help serve up the images while Tomcat
can deal with the servlets.

When I try to load up a servlet URL of the form:

http://ourhost/someapp/servlet/appHome

I get a file not found in the browser.  Oddly enough the Tomcat example
Jsps and Servlets work find being served thru apache (minus port :8080).
If I check the apache error_log, I see the strange error that it thought
it was looking for /u1/apache/htdocs/someapp.css/servlet/appHome.
It appears the mod_jk interface is somehow causing apache to replace
the webapps dir, someapp, with a directory named after teh stylesheet,
someapp.css.  It's true the servlet appHome does use the stylesheet,
someapp.css.  

The relevant JkMount directives in httpd.conf are as follows:

JkMount/someappajp13
JkMount/someapp/* ajp13

If I check the mod_jk.log file with debug turned on, I do see that
the jk_uri_worker_map_t does indeed map the mount expressions as:

exact rule /someapp=ajp13 was added
match rule /someapp/*=ajp13 was added

I've tried other ways to get this to work.  I've put a copy of the 
stylesheet
under tomcat as well and added the JkMount /someapp.css but that doesn't 
help.

Also, if I try to access our webapp thru Tomcat on port 8080 (below) it 
works
   
http://ourhost:8080/someapp/servlet/appHome

If I change the name of our webapp to some other name, say myapp, then
again I can load the webapp as

http://ourhost/myapp/servlet/appHome

However, we'd rather use the chosen name someapp (not real name for this 
discussion).
The weirdest thing is another coworker who did get this all to work 
apparently
using a very similar configuration.  He's using roughly the same Tomcat 
4.0.4.
I've tried. 4.0.3, 4.0.5, 4.1.12 and all have the same weird name conflict.

Anyone have a clue what is going on?  Thanks in advance.

Regards,

Eric


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JDBC Driver Installation

2002-10-02 Thread Zeeshan

That is weird.
Can you send your exact stack trace of the exception?

Zeeshan
- Original Message -
From: "Jun" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 5:46 PM
Subject: RE: JDBC Driver Installation


I did that, it could see the other pages, but it won't see my oracle
database. also from the documentation, I could not see the run the sample
servlet at all. I don't know what is wrong ?

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 8:31 PM
To: Tomcat Users List
Subject: RE: JDBC Driver Installation


copy to yourcontext/WEB-INF/lib directory

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 9:22 AM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Which version of Tomcat are you using?

- Original Message -
From: "Jun" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 4:57 PM
Subject: RE: JDBC Driver Installation


I did that, but it won't work. by the way, I use windown NT 4.0. I renamed
the file to clases12. jar, it does not working either :((

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 6:18 PM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Rename your file to classes12.jar and restart tomcat.
Regards
Zeeshan

- Original Message -
From: "Frank Liu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:12 PM
Subject: Re: JDBC Driver Installation



Is it a bug that tomcat can't recognize oracle's classes12.zip
even though I installed it in the "common/lib"?

thanks,
frank

On Tue, 1 Oct 2002, Rick Fincher wrote:

> Hi Frank,
>
> Putting it in the common/lib directory is the correct place for it if you
> want it accessible by Tomcat and alll your web apps.  That way you don't
> have multiple copies of your JDBC driver cluttering up your system.  Put
it
> in WEB-INF/lib makes it available to only that web app.
>
> This is explained in README in the Tomcat docs.
>
> Rick
>
>
> - Original Message -
> From: "Frank Liu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 5:06 PM
> Subject: JDBC Driver Installation
>
>
> >
> > for mysql jdbc driver, I just copied
"mysql-connector-java-2.0.14-bin.jar"
> > to the "tomcat/common/lib" directory and restart tomcat. the application
> > can find the driver without a problem. Is this the right way to install
> > the jdbc driver? or shall it copy it to the application's own
> > "WEB-INF/lib" directory? Which is the preferred way?
> >
> > today when I try the same thing for the oracle jdbc driver
> "classes12.zip",
> > this trick doesn't work anymore. I have to rename it to "classes12.jar"
> > before I copy to "tomcat/common/lib". Am I doing something wrong or
> > this is the way? Why wouldn't oracle release it as "classes12.jar" then?
> >
> > Thanks!
> > Frank
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat 4.1.12 JDBC driver class 'null'

2002-10-02 Thread Jake Tweer

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.




   

   

 

 

   

   





   
 


 













factory
org.apache.commons.dbcp.BasicDataSourceFactory



maxActive
20



maxIdle
30



maxWait
1




username
javausr



password
javadud



driverClassName
org.gjt.mm.mysql.Driver



url
jdbc:mysql://localhost:3306/javatest?autoReconnect=true






 
 
   







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:
>>>
>>>  
>>>>>   type="javax.sql.DataSource"/>
>>> 
>>>  
>>>factory
>>>org.apache.commons.dbcp.BasicDataSourceFactory
>>>  
>>>  
>>>username
>>>fred
>>>  
>>>  
>>>password
>>>fred
>>>  
>>>  
>>>driverClassName
>>>oracle.jdbc.driver.OracleDriver
>>>  
>>>  
>>>driverName
>>>jdbc:oracle:thin:@localhost:1521:ctg
>>>  
>>>  
>>>maxActive
>>>20
>>>  
>>>  
>>>maxIdle
>>>10
>>>  
>>>  
>>>maxWait
>>>-1
>>>  
>>>
>>>   
>>>
>>> And it is referenced in web.xml with:
>>>
>>>   
>>>
>>> 
>>>   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.
>>> 
>>>
>>> jdbc/CotagesoftDB
>>> javax.sql.DataSource
>>> Container
>>>
>>>   
>>>
>>> Any ideas on what to try would be appreciated.  Thanks.
>>>
>>> -- bob
>>>
>>> --
>>> Robert Herold
>>> Cotagesoft, Inc.
>>> 650 474 9013 x808
>>>
>>>
>>>
>>> -- 
>>> To unsubscribe, e-mail:   
>>> 
>>> For additional commands, e-mail: 
>>> 
>>>
>>>
>>>
>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC Driver Installation

2002-10-02 Thread Jun

I did that, it could see the other pages, but it won't see my oracle
database. also from the documentation, I could not see the run the sample
servlet at all. I don't know what is wrong ?

-Original Message-
From: Galbayar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 8:31 PM
To: Tomcat Users List
Subject: RE: JDBC Driver Installation


copy to yourcontext/WEB-INF/lib directory

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 9:22 AM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Which version of Tomcat are you using?

- Original Message -
From: "Jun" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 4:57 PM
Subject: RE: JDBC Driver Installation


I did that, but it won't work. by the way, I use windown NT 4.0. I renamed
the file to clases12. jar, it does not working either :((

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 6:18 PM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Rename your file to classes12.jar and restart tomcat.
Regards
Zeeshan

- Original Message -
From: "Frank Liu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:12 PM
Subject: Re: JDBC Driver Installation



Is it a bug that tomcat can't recognize oracle's classes12.zip
even though I installed it in the "common/lib"?

thanks,
frank

On Tue, 1 Oct 2002, Rick Fincher wrote:

> Hi Frank,
>
> Putting it in the common/lib directory is the correct place for it if you
> want it accessible by Tomcat and alll your web apps.  That way you don't
> have multiple copies of your JDBC driver cluttering up your system.  Put
it
> in WEB-INF/lib makes it available to only that web app.
>
> This is explained in README in the Tomcat docs.
>
> Rick
>
>
> - Original Message -
> From: "Frank Liu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 5:06 PM
> Subject: JDBC Driver Installation
>
>
> >
> > for mysql jdbc driver, I just copied
"mysql-connector-java-2.0.14-bin.jar"
> > to the "tomcat/common/lib" directory and restart tomcat. the application
> > can find the driver without a problem. Is this the right way to install
> > the jdbc driver? or shall it copy it to the application's own
> > "WEB-INF/lib" directory? Which is the preferred way?
> >
> > today when I try the same thing for the oracle jdbc driver
> "classes12.zip",
> > this trick doesn't work anymore. I have to rename it to "classes12.jar"
> > before I copy to "tomcat/common/lib". Am I doing something wrong or
> > this is the way? Why wouldn't oracle release it as "classes12.jar" then?
> >
> > Thanks!
> > Frank
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC Driver Installation

2002-10-02 Thread Jun

I was using the tomcat 3.2.1, everything is working fine in my webapps, but
after I installed the 4.0.3 ( in the new dictory, I changed everything I
suppose to change in the envoirment.I could see the localhost 8080 ,but  it
won't see my oracle database in my webapps.

thanks



-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 8:22 PM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Which version of Tomcat are you using?

- Original Message -
From: "Jun" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 4:57 PM
Subject: RE: JDBC Driver Installation


I did that, but it won't work. by the way, I use windown NT 4.0. I renamed
the file to clases12. jar, it does not working either :((

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 6:18 PM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Rename your file to classes12.jar and restart tomcat.
Regards
Zeeshan

- Original Message -
From: "Frank Liu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:12 PM
Subject: Re: JDBC Driver Installation



Is it a bug that tomcat can't recognize oracle's classes12.zip
even though I installed it in the "common/lib"?

thanks,
frank

On Tue, 1 Oct 2002, Rick Fincher wrote:

> Hi Frank,
>
> Putting it in the common/lib directory is the correct place for it if you
> want it accessible by Tomcat and alll your web apps.  That way you don't
> have multiple copies of your JDBC driver cluttering up your system.  Put
it
> in WEB-INF/lib makes it available to only that web app.
>
> This is explained in README in the Tomcat docs.
>
> Rick
>
>
> - Original Message -
> From: "Frank Liu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 5:06 PM
> Subject: JDBC Driver Installation
>
>
> >
> > for mysql jdbc driver, I just copied
"mysql-connector-java-2.0.14-bin.jar"
> > to the "tomcat/common/lib" directory and restart tomcat. the application
> > can find the driver without a problem. Is this the right way to install
> > the jdbc driver? or shall it copy it to the application's own
> > "WEB-INF/lib" directory? Which is the preferred way?
> >
> > today when I try the same thing for the oracle jdbc driver
> "classes12.zip",
> > this trick doesn't work anymore. I have to rename it to "classes12.jar"
> > before I copy to "tomcat/common/lib". Am I doing something wrong or
> > this is the way? Why wouldn't oracle release it as "classes12.jar" then?
> >
> > Thanks!
> > Frank
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 4.1.12 JSPC question

2002-10-02 Thread Kris Schneider

Peter,

Not sure if you're running into the same problem, but here's a thread
that didn't get much of a reaction. I haven't filed a bug on this
(yet?):

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

peter lin wrote:
> 
> after a lot of digging, I tracked part of the problem down to jakarta
> string taglib. once I removed that from my file, it correctly compiles
> the jsp page.  I'm working on tracking down the exact cause, but it
> might be an issue with jsp 1.1 tags. JSTL 1.2 compliant, but string
> taglib is 1.1.
> 
> if anyone has seen this, I'd like to hear about it. it might help me
> diagnose the problem and find a fix faster.
> 
> peter
> 
> Rick Fincher wrote:
> >
> > Hi Peter,
> >
> > The docs are not very good on this.  There is good news and bad news.  The
> > bad news is that even using JSPC all you get is a bunch of uncompiled
> > servlets.  You still have the slowdown at runtime with the first compile
> > into class files.  You can go in and compile the servlets but getting the
> > classpaths correct is difficult and in many cases the command line is too
> > long to be processed.
> >
> > The good new is that there are ant scripts for doing all of this for you in
> > 4.1.12. Check the Manager App How-To in the docs for details.
> >
> > Rick
> >
> > - Original Message -
> > From: "peter lin" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 02, 2002 8:14 AM
> > Subject: 4.1.12 JSPC question
> >
> > >
> > > I'm trying to get JSPC to work correctly and compile my webapp, but I am
> > > having a bit of difficulty. jspc with tomcat 4.0.3 worked fine, but
> > > 4.1.12 is having trouble resolving the included files and is therefore
> > > throwing NPE.  I've gone through every tomcat 4 doc on the site and I've
> > > read through the javadoc, but it's still unclear to me which jspc
> > > options are required and which are not.
> > >
> > > I've managed to compile single jsp files, but not a webapp.  Here is an
> > > example of the command I am using.
> > >
> > > C:\tomcat\bin>jspc -webapp c:\project\myapp -d
> > > c:\tomcat\work\Standalone\localhost\_ -uriroot c:\project\myapp -uribase
> > > c:\project\myapp
> > >
> > > I'm hoping it's just stupid user error on my part. One thing is my pages
> > > use JSTL  as well as other JSTL tags.
> > >
> > > peter
> >
> > --
> > To unsubscribe, e-mail:   
> > For additional commands, e-mail: 

-- 
Kris Schneider 
D.O.Tech   


smime.p7s
Description: S/MIME Cryptographic Signature


RE: JDBC Driver Installation

2002-10-02 Thread Galbayar

copy to yourcontext/WEB-INF/lib directory

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 9:22 AM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Which version of Tomcat are you using?

- Original Message -
From: "Jun" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 4:57 PM
Subject: RE: JDBC Driver Installation


I did that, but it won't work. by the way, I use windown NT 4.0. I renamed
the file to clases12. jar, it does not working either :((

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 6:18 PM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Rename your file to classes12.jar and restart tomcat.
Regards
Zeeshan

- Original Message -
From: "Frank Liu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:12 PM
Subject: Re: JDBC Driver Installation



Is it a bug that tomcat can't recognize oracle's classes12.zip
even though I installed it in the "common/lib"?

thanks,
frank

On Tue, 1 Oct 2002, Rick Fincher wrote:

> Hi Frank,
>
> Putting it in the common/lib directory is the correct place for it if you
> want it accessible by Tomcat and alll your web apps.  That way you don't
> have multiple copies of your JDBC driver cluttering up your system.  Put
it
> in WEB-INF/lib makes it available to only that web app.
>
> This is explained in README in the Tomcat docs.
>
> Rick
>
>
> - Original Message -
> From: "Frank Liu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 5:06 PM
> Subject: JDBC Driver Installation
>
>
> >
> > for mysql jdbc driver, I just copied
"mysql-connector-java-2.0.14-bin.jar"
> > to the "tomcat/common/lib" directory and restart tomcat. the application
> > can find the driver without a problem. Is this the right way to install
> > the jdbc driver? or shall it copy it to the application's own
> > "WEB-INF/lib" directory? Which is the preferred way?
> >
> > today when I try the same thing for the oracle jdbc driver
> "classes12.zip",
> > this trick doesn't work anymore. I have to rename it to "classes12.jar"
> > before I copy to "tomcat/common/lib". Am I doing something wrong or
> > this is the way? Why wouldn't oracle release it as "classes12.jar" then?
> >
> > Thanks!
> > Frank
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JDBC Driver Installation

2002-10-02 Thread Zeeshan

Which version of Tomcat are you using?

- Original Message -
From: "Jun" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 4:57 PM
Subject: RE: JDBC Driver Installation


I did that, but it won't work. by the way, I use windown NT 4.0. I renamed
the file to clases12. jar, it does not working either :((

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 6:18 PM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Rename your file to classes12.jar and restart tomcat.
Regards
Zeeshan

- Original Message -
From: "Frank Liu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:12 PM
Subject: Re: JDBC Driver Installation



Is it a bug that tomcat can't recognize oracle's classes12.zip
even though I installed it in the "common/lib"?

thanks,
frank

On Tue, 1 Oct 2002, Rick Fincher wrote:

> Hi Frank,
>
> Putting it in the common/lib directory is the correct place for it if you
> want it accessible by Tomcat and alll your web apps.  That way you don't
> have multiple copies of your JDBC driver cluttering up your system.  Put
it
> in WEB-INF/lib makes it available to only that web app.
>
> This is explained in README in the Tomcat docs.
>
> Rick
>
>
> - Original Message -
> From: "Frank Liu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 5:06 PM
> Subject: JDBC Driver Installation
>
>
> >
> > for mysql jdbc driver, I just copied
"mysql-connector-java-2.0.14-bin.jar"
> > to the "tomcat/common/lib" directory and restart tomcat. the application
> > can find the driver without a problem. Is this the right way to install
> > the jdbc driver? or shall it copy it to the application's own
> > "WEB-INF/lib" directory? Which is the preferred way?
> >
> > today when I try the same thing for the oracle jdbc driver
> "classes12.zip",
> > this trick doesn't work anymore. I have to rename it to "classes12.jar"
> > before I copy to "tomcat/common/lib". Am I doing something wrong or
> > this is the way? Why wouldn't oracle release it as "classes12.jar" then?
> >
> > Thanks!
> > Frank
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC Driver Installation

2002-10-02 Thread Jun

I did that, but it won't work. by the way, I use windown NT 4.0. I renamed
the file to clases12. jar, it does not working either :((

-Original Message-
From: Zeeshan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 6:18 PM
To: Tomcat Users List
Subject: Re: JDBC Driver Installation


Rename your file to classes12.jar and restart tomcat.
Regards
Zeeshan

- Original Message -
From: "Frank Liu" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 3:12 PM
Subject: Re: JDBC Driver Installation



Is it a bug that tomcat can't recognize oracle's classes12.zip
even though I installed it in the "common/lib"?

thanks,
frank

On Tue, 1 Oct 2002, Rick Fincher wrote:

> Hi Frank,
>
> Putting it in the common/lib directory is the correct place for it if you
> want it accessible by Tomcat and alll your web apps.  That way you don't
> have multiple copies of your JDBC driver cluttering up your system.  Put
it
> in WEB-INF/lib makes it available to only that web app.
>
> This is explained in README in the Tomcat docs.
>
> Rick
>
>
> - Original Message -
> From: "Frank Liu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 5:06 PM
> Subject: JDBC Driver Installation
>
>
> >
> > for mysql jdbc driver, I just copied
"mysql-connector-java-2.0.14-bin.jar"
> > to the "tomcat/common/lib" directory and restart tomcat. the application
> > can find the driver without a problem. Is this the right way to install
> > the jdbc driver? or shall it copy it to the application's own
> > "WEB-INF/lib" directory? Which is the preferred way?
> >
> > today when I try the same thing for the oracle jdbc driver
> "classes12.zip",
> > this trick doesn't work anymore. I have to rename it to "classes12.jar"
> > before I copy to "tomcat/common/lib". Am I doing something wrong or
> > this is the way? Why wouldn't oracle release it as "classes12.jar" then?
> >
> > Thanks!
> > Frank
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jdbc realm fails to authenticate sometimes

2002-10-02 Thread Paul Phillips

Hello all

I am running Tomcat 4.1.10 and using a jdbc realm with mysql.  It is setup
accordingto the docs on the jakarta web site.  (At least I think it is!)

The entry in my server.xml file looks like this:




I am finding occasional authentication failures that always follow the
same pattern.I say occasional in that often the authentication works perfectly well.

When it doesn't this is what happens...
1) user tries to authenticate (typing very carefully the username and
password),tomcat throws error, sending user to error.jsp page.
2) Sometimes, on second attempt, authentication works, and user is allowed
accessto webapp.
3) However, sometimes on second attempt, Tomcat throws a null pointer
exception.If the user simply presses retry (on the browser) at that point, he/she is
allowedaccess to the application!  So, in this case, somehow the authentication
is takingplace on the second attempt, but an exception is being thrown somewhere...

I was wondering if this had something to do with the 8 hour disconnect of
mysql, andI added:
autoreconnect=true
to the URL above, but that didn't seem to fix the problem.

This is driving users of my webapp nuts (as you can imagine).  Does anyone
haveany ideas of where to look, or what I can do to avoid this?

Thanks
Paul Phillips



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




build.xml for Ant/JspC

2002-10-02 Thread Subir Sengupta

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:   
For additional commands, e-mail: 




Re: accessing GlobalNamingResources?

2002-10-02 Thread Craig R. McClanahan



On Wed, 2 Oct 2002, Jeff Wishnie wrote:

> Date: Wed, 2 Oct 2002 11:35:07 -0700
> From: Jeff Wishnie <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: accessing GlobalNamingResources?
>
> The Tomcat documentation is unclear--
>
> I a servlet, in order to access resources defined in the  
>section of my server.xml do I have to explicitly
> add a  to my context?
>

Yes.

> Thanks,
>
> jeff

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: authorization using tomcat...

2002-10-02 Thread Mubaraka Arif

hi ,

I am trying to use the JDBC authentication using Informix database on 
Debain Tomcat 4.1.
The snippet of the server.xml :

  
  


execution
-
1. tomcat process started

2. tried to access the page login.jsp.
It throws an expection "connection refused".

3. When tomcat process is stopped.

schroeder:/etc/init.d# tomcat4 stop Using CATALINA_BASE:   
/usr/share/tomcat4
Using CATALINA_HOME:   /usr/share/tomcat4
Using CATALINA_TMPDIR: /usr/share/tomcat4/temp
Using JAVA_HOME:   /usr/lib/j2sdk1.3
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
 at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
 at java.net.Socket.(Socket.java:273)
 at java.net.Socket.(Socket.java:100)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:579)
 at 
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
 at 
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

I went the documentation of Tomcat explaining the JDBCRealm - how to. 
But , if you can explain me the steps to go through I would greatly 
appreciate.



Thanks,
Mubaraka Arif
DataManagement Software Developer
St Mary's University



On 2002.10.02 13:19 Padhu Vinirs wrote:
> 
> Now I am able to access the secure page through the login page. But 
> even if I close the browser ( whcih i assume will close the  session 
> ), and restart it, I am able to access the secure page without going 
> through the login page. Is there a place where I need to say that the 
> login info should not be a permanent cookie but only session scope ???
> 
> Thanks
> 
> -- padhu
> 
> 
> 
> 
> Rick Fincher wrote:
> 
>> Hi Padu,
>> 
>> It looks like you have this set up OK.  Do you have a memory realm 
>> set up in
>> conf/web.xml as is required for this setup?
>> 
>> Also, since your transport guarantee is set up as confidential it is 
>> going
>> to use SSL so you either have to use an HTTPS:// url or you have to 
>> have
>> redirection turned on in port 80 (or whatever your HTTP port is) in
>> conf/web.xml.
>> 
>> If your HTTPS port isn't 443 you'll have to have :8443 (if 8443 is 
>> the HTTPS
>> port) in the url too.
>> 
>> Rick
>> 
>> - Original Message -
>> From: "Padhu Vinirs" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, October 02, 2002 10:19 AM
>> Subject: authorization using tomcat...
>> 
>> 
>> 
>>> I am testing web resource form-based authentication. I have created 
>>> a
>>> dummy jsp page "Details.jsp" and have created the following nodes in
>>> web.xml:
>>> 
>>> 
>>>
>>>SecurePages
>>>Details.jsp
>>>
>>>
>>>EditUsers
>>>
>>>
>>>CONFIDENTIAL
>>>
>>>
>>>
>>>FORM
>>>
>>>/login.jsp
>>>/error.jsp
>>>
>>>
>>>
>>>Users who can edit
>>>EditUsers
>>>
>>> 
>>> 
>>> I have created a "EditUsers" role in tomcat-users.xml.
>>> 
>>> But when I access "Details.jsp", I am redirected to the Netscape 
>>> search
>>> page !!! I am able to access the login and error.jsp pages fine.
>>> 
>>> Any ideas ?
>>> 
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>> 
>> 
>> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Error Compiling JSP under 4.1.12

2002-10-02 Thread John M . Hollingsworth

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/index_jsp.
> java:7: '.' expected
> import WebApp;
>  ^
> /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp.
> java:8: '.' expected
> import CalServlet;
>  ^
> /usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/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:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tomcat 4.1.12 symlink problems

2002-10-02 Thread Matt Raible

I'm trying to upgrade my application (roller) to work on Tomcat 4.1.12.
It works fine with my context from Tomcat 4.0.4, but won't follow my
symlinks.  So to get it to follow my symlinks - I tried addding the
following to my context:



When I do this, I get the errors below. Without it - it works fine, but
doesn't follow symlinks.

Any ideas are appreciated.

Matt


2002-10-02 16:08:26 ContextConfig[] Exception processing JAR at resource
path /WEB-INF/lib/velocity-1.3.jar
javax.servlet.ServletException: Exception processing JAR at resource
path /WEB-INF/lib/velocity-1.3.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.io.FileNotFoundException
at
org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344)
at
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:161)
at
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
at
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Documentation

2002-10-02 Thread Jon Eaves

Hiya Gustavo (and others)

I'm going to disagree.  The Tomcat docs for the most part are very good.
I was able to read them and setup Tomcat to do all the "normal" things.
I can create different contexts, map servlets, create database pools,
custom error pages etc.  The 4.1.x documentation is updated from the 3.x
and 4.0.x documentation and I can't remember it being broken in any
real way due to bitrot.  Some of the newer features are a little terse,
but you have to expect that, then again, there aren't that many "How do
I configure and create Filters" type questions.

I haven't tried to use mod_jk yet, but there seems to be a lot of questions
about that, but I suspect it's because people haven't read that
documentation to start with.

Frankly, my rule of mailing lists are that people would rather ask a
question because they are too lazy to find the answer themselves.  Most
of the questions that are asked do exist in the Tomcat documentation, and
those that aren't there have generally been answered very clearly by
list members.  The list is searchable, and Google (www.google.com) is
_always_ your friend.

This list is certainly one of the most friendly and helpful that I've been
on.  Sadly that tends to be to it's detriment as people abuse that help.

There are definitely areas of the documentation that need work, and
potentially others that need cleaning up, but in general they are pretty
damn good.

Cheers,
-- jon

Gustavo Vegas wrote:
> I agree with Jeff. The Tomcat documentation reminds me of the old times 
> when I had to compile TeX. A lot of the information for things I have 
> needed to configure in my installation have come from the docs from 
> version 3.3, although I am using 4.0.5. This also makes me worry that 
> some of the things I am using may be deprecated.
> 
> Cheers,
> 
> -- Gustavo Vegas.
> 
> Jeff Wishnie wrote:
> 
>> A pretty high percentage seem to be becuase the docs really are lousy.
>>
>> Wouldn't it be nice to answer 'RTFM' to most of them?
>>
>> When my time frees up on this project I plan on submitting several 
>> documentation changes.
>>
>> - Jeff
>>

-- 
Jon Eaves <[EMAIL PROTECTED]>
http://www.eaves.org/jon/


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




4.1.2, DefaultContext, ResourceLink

2002-10-02 Thread steve_olson

As part of testing 4.1.12, we have started using DBCP for pooling and have
defined a pool in the GlobalNamingResources tag in server.xml.  There is
also a context tag in server.xml that looks like this:


  
  


This worked fine.  It is a manually deployed WAR in the webapps directory,
and admin deployment tools were not used for this test.  I then tried to
remove the hardcoded Context definition and replaced it with a
DefaultContext:


  
  


The intent was that these resourc links to the global definitions would
then be available to any deployed contexts.  However, it looks like in this
configuration the ResourceLink back to the global definition doesn't work,
because the first connect fails with this (abbreviated) call stack:

java.sql.SQLException: Cannot load JDBC driver class 'null'
  at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:529)
  at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)
  .
  .
  .

The resource definition in GlobalNamingResources is identical, and has the
proper driver for DB2 Connect defined.  Since it works in the explicit
context case, I'm pretty sure it's correct for the default context case.

I did some searches and didn't get any hits on this particular issue.  It's
obviously not a major issue, but I am hoping someone knows if this is
working as designed or not.  If DefaultContext is intended to support
resource link definitions, then I'll dig into it, post a bug, and maybe a
fix.


Thanks in advance!



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Mod_Proxy/Apache and Apache/Mod_JK

2002-10-02 Thread BCorrigan

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   all works appropriately.
When I go to 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/  
ProxyPassReverse / 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] 
 



access denied for non-localhost ssl

2002-10-02 Thread Joan Friedman

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:   
For additional commands, e-mail: 




Re: Tomcat And HTML Frames !

2002-10-02 Thread John M . Hollingsworth

I need more information.  Are you doing references between the frames?

> 
> From: Sigurður Bjarnason <[EMAIL PROTECTED]>
> Date: 2002/10/02 Wed AM 04:36:31 EDT
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Subject: Tomcat And HTML Frames !
> 
> Hi all
> 
> I have a website.. witch is in frames, the site is run with Tomcat 4.0.4 and Apache 
>1.3.
> 
> The site works fine.. for all parts.. except on frame.. it is a login frame that 
>shows this error.. ( 500 internel Server Error ) although the rest of the site is ok 
>?!
> This .. happens.. once in a while.. not all the time.. ?
> 
> Have anyone info on this.. is this frames related.. or something else..
> 
> regards
> Siggi
> 
> 
> 

<>
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Documentation

2002-10-02 Thread Gustavo Vegas

I agree with Jeff. The Tomcat documentation reminds me of the old times 
when I had to compile TeX. A lot of the information for things I have 
needed to configure in my installation have come from the docs from 
version 3.3, although I am using 4.0.5. This also makes me worry that 
some of the things I am using may be deprecated.

Cheers,

-- Gustavo Vegas.

Jeff Wishnie wrote:

>A pretty high percentage seem to be becuase the docs really are lousy.
>
>Wouldn't it be nice to answer 'RTFM' to most of them?
>
>When my time frees up on this project I plan on submitting several documentation 
>changes.
>
>- Jeff
>
>  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on L inux RH 7.3)

2002-10-02 Thread Tam, Michael

Thank you John for your correction.

Actually, I have run through my apache conf file and found the port 8443
being comment out.  

Regarding to the original question, the given example url is using the
default 443 port for ssl and tomcat ssl default is using 8443.  So, make
sure you make tomcat to listen to 443 instead.

I am using 8443 at this point and it works for me and I suppose it works the
same for port 443.

Cheers,
Michael


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 12:05 PM
To: 'Tomcat Users List'
Subject: RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on
L inux RH 7.3)



That won't work...only one service can bind to a given port at a
time...communications between Apache and Tomcat occur on the given connector
port (8009 is the default for AJP13), SSL or not.

John

> -Original Message-
> From: Tam, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 3:01 PM
> To: 'Tomcat Users List'
> Subject: RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 
> 1.3.26 (on
> L inux RH 7.3)
> 
> 
> I believe you have to make Tomcat to listen to port 443 
> instead of 8443 for
> SSL then allow Apache to listen to port 443.
> 
> Hope this help.
> 
> Cheers,
> Michael
> 
> -Original Message-
> From: Gustavo Vegas [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 11:56 AM
> To: [EMAIL PROTECTED]
> Subject: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on
> Linux RH 7.3)
> 
> 
> Hello everyone,
> Here is my problem; I am trying to make SSL requests to Tomcat 
> through mod_jk, but they do not appear to work. I am even able to see 
> properly through plain HTTP those pages I want served by 
> Tomcat through 
> SSL. When I use the https://hosts/directory/page.jsp, I get 
> the source 
> code of the file. If I try using the 8443 port, it displays 
> properly. I 
> am also using j2sdk version 1.4.1.
> Here is the definition of the virtual host under Apache:
> --
> --
> ---
> 
>   LoadModule jk_module libexec/mod_jk.so
> 
> 
> JkWorkersFile "/usr/local/apache/conf/workers.properties"
> JkLogFile "/web/logs/mod_jk.log"
> 
> JkLogLevel debug
> 
>  NameVirtualHost *
> 
> 
> # Should mod_jk send SSL information to Tomcat (default is On)
> JkExtractSSL On
> # What is the indicator for SSL (default is HTTPS)
> JkHTTPSIndicator HTTPS
> # What is the indicator for SSL session (default is SSL_SESSION_ID)
> JkSESSIONIndicator SSL_SESSION_ID
> # What is the indicator for client SSL cipher suit (default 
> is SSL_CIPHER)
> JkCIPHERIndicator SSL_CIPHER
> # What is the indicator for the client SSL certificated (default is 
> SSL_CLIENT_C
> ERT)
> JkCERTSIndicator SSL_CLIENT_CERT
> # Other needed settings
> SSLOptions +StdEnvVars +ExportCertData
> ###
> # (BEGIN) Definition of SSL host.company.com virtual host #
> # NOTE: SSL Connections are only supported on IP-based virtual#
> # hosts   #
> ###
> 
> 
> ServerName host.company.com
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /web/htdocs/host.company.com
> ScriptAlias /cgi-bin/ 
> /web/htdocs/host.company.com/www/cgi-bin/
> DirectoryIndex index.html index.htm index.shtml 
> index.shtm index.jsp
> Alias /reports/ /web/htdocs/host.company.com/reports
> JkAutoAlias /export/home/host.company.com
> SSLEngine On
> SSLCertificateFile /usr/local/XXX/certs/host.company.com.cert
> SSLCertificateKeyFile /usr/local/XXX/keys/host.company.com.com.key
> SSLCipherSuite 
> ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
> 
> Alias /pfctestssl "/web/htdocs/host.company.com/ssl"
> 
> JkMount /pfctestssl/*.jsp ajp13
> JkMount /pfctestssl/* ajp13
> JkMount /pfctestssl/*.do ajp13
> JkMount /pfctestssl/manager ajp13
> JkMount /pfctestssl/manager/* ajp13
> 
> JkMount /pfctestssl/*/*.jsp ajp13
> JkMount /pfctestssl/*/* ajp13
> JkMount /pfctestssl/*/*.do ajp13
> JkMount /pfctestssl/*/manager ajp13
> JkMount /pfctestssl/*/manager/* ajp13
> 
> 
> 
> 
> 
>  AllowOverride None
>  Deny from all
> 
> ErrorLog/web/logs/host.company.com/ssl_error_log
> CustomLog   /web/logs/host.company.com/ssl_access_log combined
> TransferLog   /web/logs/host.company.com/ssl_transfer_log
> 
> ###
> # (END) Definition of SSL host.company.com virtual host   #
> # ##
> 
> 
> --
> --
> ---
> I believe this to be a problem with jk_mod not understanding 
> what to do 
> with 

Re: Documentation

2002-10-02 Thread Jeff Wishnie

A pretty high percentage seem to be becuase the docs really are lousy.

Wouldn't it be nice to answer 'RTFM' to most of them?

When my time frees up on this project I plan on submitting several documentation 
changes.

- Jeff

- Original Message - 
From: "Ignacio J. Ortega" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 12:57 PM
Subject: RE: Documentation


> > De: Turner, John [mailto:[EMAIL PROTECTED]]
> > Enviado el: 1 de octubre de 2002 14:12
> 
> > they should cover.  If they did, this list wouldn't get 
> > 100-150 messages
> > every night.
> 
> :-), Please count how many messages of this 100 or 150 are from simply
> not reading ANY docs... good or bad.. 
> 
> Saludos ,
> Ignacio J. Ortega
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Apache 1.3/Tomcat 4.0 Ajp13 Integration on Linux

2002-10-02 Thread Jeff Hair

I have two webapps defined in server.xml of tomcat: demo and demo2.
I've modified httpd.conf to load mod_jk.so and it uses
worker.properties and mod_jk.conf.

My current configuration allows the user to access the 'demo' webapp
via "http:///demo". Works nicely, apache handling static
pages and tomcat handling jsps & servlets.

For the second webapp (demo2), the user wants to access it via
"http://demo2.net";. The context in server.xml is 'demo2'.

Do I need to use a virtual host? Could someone point me in the right
direction?

Thanx,
jsh


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Documentation

2002-10-02 Thread Ignacio J. Ortega

> De: Turner, John [mailto:[EMAIL PROTECTED]]
> Enviado el: 1 de octubre de 2002 14:12

> they should cover.  If they did, this list wouldn't get 
> 100-150 messages
> every night.

:-), Please count how many messages of this 100 or 150 are from simply
not reading ANY docs... good or bad.. 

Saludos ,
Ignacio J. Ortega

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: any way to customize 404 messages?

2002-10-02 Thread Danny Morgan

i think it is


404
X


in the web.xml file

Danny L. Morgan

-Original Message-
From: vincent [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 3:28 PM
To: tomcat-user
Subject: any way to customize 404 messages?


Hello,
have you seen some sites that have a
cool page that get returned instead of
the usual boring 404 message?
Is there any way to do that in tomcat as well?
Write a servlet? Overwrite a method somewhere? a server.xml config?
Thanks.
-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Doubt about multiple applications

2002-10-02 Thread Cox, Charlie


> -Original Message-
> From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Doubt about multiple applications
> 
> 
> I think that the Tomcat isn't load my jar file to the classpath...

tomcat doesn't use the classpath.

> Actualy My jar file is a jdbc driver. And my error message 
> is:  no suitable 
> driver. Thus my jar file wasn't load or the Tomcat don't put 
> this in the 
> classpath.
> I have a xerces.jar in the lib directory of Tomcat, Can it be 
> the mistake ?
> 
> if I put app by app in the Tomcat, all works !!!

if you mean that you put the jar in each /WEB-INF/lib, that is how it 
is supposed to work. you need the library in each webapp in order for
that web app to see it (if you don't want it in the common/lib)

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

every app sees that directory, so it should work :)

some drivers may use native libraries and therefore may not be able to load 
in multiple classloaders(each webapp has its own). Therefore you may not
have 
a choice except to place the jar it in /common/lib.

Charlie

> 
> >From: "Cox, Charlie" <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> >Subject: RE: Doubt about multiple applications
> >Date: Wed, 2 Oct 2002 13:31:57 -0400
> >
> >what error are you getting? did you look in the error logs?
> >
> >Charlie
> >
> > > -Original Message-
> > > From: David Mossakowski [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, October 02, 2002 4:02 PM
> > > To: Tomcat Users List
> > > Subject: Re: Doubt about multiple applications
> > >
> > >
> > > There is no reason for this to be the case.  You must be
> > > doing something
> > > else wrong.
> > >
> > > There is nothing stopping you from copying application
> > > webapps/A into a
> > > directory called webapps/Aprime and still have this
> > > application working
> > > (this requires using links in JSPs that dont hardcode A as in
> > > href="/A/something.jsp" of course).
> > >
> > > d.
> > >
> > > Ricardo de Souza Moura wrote:
> > > > I am using Tomcat 4.0...
> > > > I have two applications, A and B
> > > >
> > > > in the lib directory of A I have a file1.jar, and in the
> > > lib directory
> > > > of B I have the same file, file1.jar.
> > > >
> > > > I am not wanting to put my file file1.jar in the lib
> > > directory of Tomcat.
> > > >
> > > > But when the Tomcat load the applications, only one get 
> access this
> > > > resource, file1.jar. Why ?
> > > >
> > > > Only one application works...
> > > >
> > > > But if I put only one application by time all works 
> > > >
> > > > Sorry my bad English !!!
> > > > Thanks !!!
> > > >
> > > > 
> _
> > > > MSN Photos é a maneira mais fácil e prática de editar e
> > > compartilhar sua
> > > > fotos: http://photos.msn.com.br
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > > >
> > >
> > > --
> > > David Mossakowski  [EMAIL PROTECTED]
> > > Instinet Corporation 212.310.7275
> > >
> > >
> > >
> > > **
> > > **
> > > <>
> > >
> > > 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:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> 
> 
> _
> Converse com seus amigos online, faça o download grátis do 
> MSN Messenger: 
> http://messenger.msn.com.br
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




any way to customize 404 messages?

2002-10-02 Thread Vincent Stoessel

Hello,
have you seen some sites that have a
cool page that get returned instead of
the usual boring 404 message?
Is there any way to do that in tomcat as well?
Write a servlet? Overwrite a method somewhere? a server.xml config?
Thanks.
-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (onLinux RH 7.3)

2002-10-02 Thread Thad Humphries

I'm having a similar problem!  I have one web page containing a
 for an applet. If served from Tomcat 4.0.5, loads fine in
all browsers but if served from Tomcat 4.1.12, it won't see a parameter
in Mozilla 1.0/1.1/Netscape 6.2.  In IE 6, it's okay.  Moreover, the
generated HTML *looks* the same in all cases.

Has anyone else seen this?

On Wed, 2002-10-02 at 15:19, Gustavo Vegas wrote:
> Hello again,
> Ok, this is getting a little weird. I have been using mozilla (1.1 
> and 1.0) to display the pages that I am having problems with. I tried 
> using IE (6.X) on a different box, and the problem goes away! This is 
> bizarre. Is there any connection as to how a given request from a 
> browser may break this connection?
>...
-- 

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:   
For additional commands, e-mail: 




Re: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on LinuxRH 7.3)

2002-10-02 Thread Gustavo Vegas

Hello again,
Ok, this is getting a little weird. I have been using mozilla (1.1 
and 1.0) to display the pages that I am having problems with. I tried 
using IE (6.X) on a different box, and the problem goes away! This is 
bizarre. Is there any connection as to how a given request from a 
browser may break this connection?

Thanks,

-- Gustavo Vegas.




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: authorization using tomcat...

2002-10-02 Thread Rick Fincher

You have to call the invalidate method on the session.  You can also use
setMaxInactiveInterval(int seconds) to kill the session after an inactive
period.  I think the default in Tomcat is 30 minutes.

Rick

- Original Message -
From: "Padhu Vinirs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 2:19 PM
Subject: Re: authorization using tomcat...


>
> Now I am able to access the secure page through the login page. But even
> if I close the browser ( whcih i assume will close the  session ), and
> restart it, I am able to access the secure page without going through
> the login page. Is there a place where I need to say that the login info
> should not be a permanent cookie but only session scope ???
>
> Thanks
>
> -- padhu
>
>
>
>
> Rick Fincher wrote:
>
> >Hi Padu,
> >
> >It looks like you have this set up OK.  Do you have a memory realm set up
in
> >conf/web.xml as is required for this setup?
> >
> >Also, since your transport guarantee is set up as confidential it is
going
> >to use SSL so you either have to use an HTTPS:// url or you have to have
> >redirection turned on in port 80 (or whatever your HTTP port is) in
> >conf/web.xml.
> >
> >If your HTTPS port isn't 443 you'll have to have :8443 (if 8443 is the
HTTPS
> >port) in the url too.
> >
> >Rick
> >
> >- Original Message -
> >From: "Padhu Vinirs" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, October 02, 2002 10:19 AM
> >Subject: authorization using tomcat...
> >
> >
> >
> >
> >>I am testing web resource form-based authentication. I have created a
> >>dummy jsp page "Details.jsp" and have created the following nodes in
> >>web.xml:
> >>
> >>
> >>
> >>SecurePages
> >>Details.jsp
> >>
> >>
> >>EditUsers
> >>
> >>
> >>CONFIDENTIAL
> >>
> >>
> >>
> >>FORM
> >>
> >>/login.jsp
> >>/error.jsp
> >>
> >>
> >>
> >>Users who can edit
> >>EditUsers
> >>
> >>
> >>
> >>I have created a "EditUsers" role in tomcat-users.xml.
> >>
> >>But when I access "Details.jsp", I am redirected to the Netscape search
> >>page !!! I am able to access the login and error.jsp pages fine.
> >>
> >>Any ideas ?
> >>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on L inux RH 7.3)

2002-10-02 Thread Turner, John


That won't work...only one service can bind to a given port at a
time...communications between Apache and Tomcat occur on the given connector
port (8009 is the default for AJP13), SSL or not.

John

> -Original Message-
> From: Tam, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 3:01 PM
> To: 'Tomcat Users List'
> Subject: RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 
> 1.3.26 (on
> L inux RH 7.3)
> 
> 
> I believe you have to make Tomcat to listen to port 443 
> instead of 8443 for
> SSL then allow Apache to listen to port 443.
> 
> Hope this help.
> 
> Cheers,
> Michael
> 
> -Original Message-
> From: Gustavo Vegas [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 11:56 AM
> To: [EMAIL PROTECTED]
> Subject: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on
> Linux RH 7.3)
> 
> 
> Hello everyone,
> Here is my problem; I am trying to make SSL requests to Tomcat 
> through mod_jk, but they do not appear to work. I am even able to see 
> properly through plain HTTP those pages I want served by 
> Tomcat through 
> SSL. When I use the https://hosts/directory/page.jsp, I get 
> the source 
> code of the file. If I try using the 8443 port, it displays 
> properly. I 
> am also using j2sdk version 1.4.1.
> Here is the definition of the virtual host under Apache:
> --
> --
> ---
> 
>   LoadModule jk_module libexec/mod_jk.so
> 
> 
> JkWorkersFile "/usr/local/apache/conf/workers.properties"
> JkLogFile "/web/logs/mod_jk.log"
> 
> JkLogLevel debug
> 
>  NameVirtualHost *
> 
> 
> # Should mod_jk send SSL information to Tomcat (default is On)
> JkExtractSSL On
> # What is the indicator for SSL (default is HTTPS)
> JkHTTPSIndicator HTTPS
> # What is the indicator for SSL session (default is SSL_SESSION_ID)
> JkSESSIONIndicator SSL_SESSION_ID
> # What is the indicator for client SSL cipher suit (default 
> is SSL_CIPHER)
> JkCIPHERIndicator SSL_CIPHER
> # What is the indicator for the client SSL certificated (default is 
> SSL_CLIENT_C
> ERT)
> JkCERTSIndicator SSL_CLIENT_CERT
> # Other needed settings
> SSLOptions +StdEnvVars +ExportCertData
> ###
> # (BEGIN) Definition of SSL host.company.com virtual host #
> # NOTE: SSL Connections are only supported on IP-based virtual#
> # hosts   #
> ###
> 
> 
> ServerName host.company.com
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /web/htdocs/host.company.com
> ScriptAlias /cgi-bin/ 
> /web/htdocs/host.company.com/www/cgi-bin/
> DirectoryIndex index.html index.htm index.shtml 
> index.shtm index.jsp
> Alias /reports/ /web/htdocs/host.company.com/reports
> JkAutoAlias /export/home/host.company.com
> SSLEngine On
> SSLCertificateFile /usr/local/XXX/certs/host.company.com.cert
> SSLCertificateKeyFile /usr/local/XXX/keys/host.company.com.com.key
> SSLCipherSuite 
> ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
> 
> Alias /pfctestssl "/web/htdocs/host.company.com/ssl"
> 
> JkMount /pfctestssl/*.jsp ajp13
> JkMount /pfctestssl/* ajp13
> JkMount /pfctestssl/*.do ajp13
> JkMount /pfctestssl/manager ajp13
> JkMount /pfctestssl/manager/* ajp13
> 
> JkMount /pfctestssl/*/*.jsp ajp13
> JkMount /pfctestssl/*/* ajp13
> JkMount /pfctestssl/*/*.do ajp13
> JkMount /pfctestssl/*/manager ajp13
> JkMount /pfctestssl/*/manager/* ajp13
> 
> 
> 
> 
> 
>  AllowOverride None
>  Deny from all
> 
> ErrorLog/web/logs/host.company.com/ssl_error_log
> CustomLog   /web/logs/host.company.com/ssl_access_log combined
> TransferLog   /web/logs/host.company.com/ssl_transfer_log
> 
> ###
> # (END) Definition of SSL host.company.com virtual host   #
> # ##
> 
> 
> --
> --
> ---
> I believe this to be a problem with jk_mod not understanding 
> what to do 
> with the requests for these pages. I even tried  to tell it 
> to pass such 
> requests by adding wildcards for the subdirectories under the ssl 
> directory, but it did not work. Any help on this issue would 
> be highly 
> appreciated. BTW, all other configuration bits seem to work. This was 
> actually working prior to us getting Tomcat talking to a database 
> server, but this would be extremely weird if it prevents mod_jk from 
> talking SSL. That is why I am not including any other configuration 
> files here. If need be, I will post any additional information that 
> people may want to take a look at.
> 
> Thanks,
> 
> -- Gustavo Vegas.
> 
> 
> --
> To unsubs

Re: authorization using tomcat...

2002-10-02 Thread Rick Fincher

Ah Ha.  That means you didn't have HTTPS set up properly in the Connector
for SSL Coyote HTTP 1.1, in the conf/server.xml file.

Rick

- Original Message -
From: "Padhu Vinirs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 2:07 PM
Subject: Re: authorization using tomcat...


>
> When I commented out the data constraint CONFIDENTIAL the code worked.
>
> Thanks everybody,
>
> -- padhu
>
>
>
> Craig R. McClanahan wrote:
>
> >On Wed, 2 Oct 2002, Padhu Vinirs wrote:
> >
> >
> >
> >>Details.jsp
> >>
> >>
> >
> >URL patterns need to start with a "/" character.  Change this to:
> >
> >  /Details.jsp
> >
> >and you will have much better luck.
> >
> >Craig
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

> >
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Another Problem that annoys the hell out of me

2002-10-02 Thread Glenn Nielsen

Upgarde to the latest 2.x versions of both xerces and xalan.
If this fixes the build problem then please file a bug report
using bugzilla that recommends that the build docs be updated
to recommend the correct versions of xerces and xalan.

Glenn

Chuck Carson wrote:
> 
> I am using the latest xalan.jar, but I am using the latest 1.x release 
> of xerces. AShould I use the 2.x versions of xerces?
> 
> I was going with the recommended version the docs say to, which is 1.4.4 
> I beleive.
> 
> ??
> 
> -Chuck
> 
> 
> Glenn Nielsen wrote:
> 
>> Check the version of xalan and xerces being used by Ant.
>> I had similar problems with some older versions of these.
>>
>> I have no problem with the latest releases of both of the above.
>>
>> Chuck Carson wrote:
>>  > Does anyone run into this problem when building on Solaris.
>>  >
>>  > About 75% into the build process is starts crapping out on *.xml 
>> files.
>>  > For example:
>>  >
>>  > Docs:
>>  > 
>>  >   [style] Failed to process
>>  > 
>> /root/TOMCAT/jakarta-tomcat-connectors-4.1.12-src/jk/xdocs/jk/neshowto.x
>>  > ml
>>  >
>>  > BUILD FAILED
>>  > 
>> file:/root/TOMCAT/jakarta-tomcat-connectors-4.1.12-src/jk/build.xml:433:
>>  > Fatal error during transformation
>>  >
>>  >
>>  > If I execute another 'ant dist' it gets past this point but fails on
>>  > another xml file. I have to do this about 15 times to get a successful
>>  > build. This behavior was the same under 4.0.4 thru 4.1.2. This appears
>>  > consistent with some file but random with others. For example, I have
>>  > seen it die on the following files more than once: faq.xml,
>>  > iishowto.xml, neshowto.xml, and a few others.
>>  >
>>  > Anyone else see this problem?
>>  >
>>  > -Chuck
>>  >
>>  >
>>  > --
>>  > To unsubscribe, e-mail:   
>> 
>>  > For additional commands, e-mail: 
>> >  >
>>
>>
>>
>>
>> -- 
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
> 
> 


-- 
--
Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder|
MOREnet System Programming   |  * if iz ina coment.  |
Missouri Research and Education Network  |  */   |
--


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on Linux RH 7.3)

2002-10-02 Thread Tam, Michael

I believe you have to make Tomcat to listen to port 443 instead of 8443 for
SSL then allow Apache to listen to port 443.

Hope this help.

Cheers,
Michael

-Original Message-
From: Gustavo Vegas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 11:56 AM
To: [EMAIL PROTECTED]
Subject: SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on
Linux RH 7.3)


Hello everyone,
Here is my problem; I am trying to make SSL requests to Tomcat 
through mod_jk, but they do not appear to work. I am even able to see 
properly through plain HTTP those pages I want served by Tomcat through 
SSL. When I use the https://hosts/directory/page.jsp, I get the source 
code of the file. If I try using the 8443 port, it displays properly. I 
am also using j2sdk version 1.4.1.
Here is the definition of the virtual host under Apache:

---

  LoadModule jk_module libexec/mod_jk.so


JkWorkersFile "/usr/local/apache/conf/workers.properties"
JkLogFile "/web/logs/mod_jk.log"

JkLogLevel debug

 NameVirtualHost *


# Should mod_jk send SSL information to Tomcat (default is On)
JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is 
SSL_CLIENT_C
ERT)
JkCERTSIndicator SSL_CLIENT_CERT
# Other needed settings
SSLOptions +StdEnvVars +ExportCertData
###
# (BEGIN) Definition of SSL host.company.com virtual host #
# NOTE: SSL Connections are only supported on IP-based virtual#
# hosts   #
###


ServerName host.company.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /web/htdocs/host.company.com
ScriptAlias /cgi-bin/ /web/htdocs/host.company.com/www/cgi-bin/
DirectoryIndex index.html index.htm index.shtml index.shtm index.jsp
Alias /reports/ /web/htdocs/host.company.com/reports
JkAutoAlias /export/home/host.company.com
SSLEngine On
SSLCertificateFile /usr/local/XXX/certs/host.company.com.cert
SSLCertificateKeyFile /usr/local/XXX/keys/host.company.com.com.key
SSLCipherSuite 
ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

Alias /pfctestssl "/web/htdocs/host.company.com/ssl"

JkMount /pfctestssl/*.jsp ajp13
JkMount /pfctestssl/* ajp13
JkMount /pfctestssl/*.do ajp13
JkMount /pfctestssl/manager ajp13
JkMount /pfctestssl/manager/* ajp13

JkMount /pfctestssl/*/*.jsp ajp13
JkMount /pfctestssl/*/* ajp13
JkMount /pfctestssl/*/*.do ajp13
JkMount /pfctestssl/*/manager ajp13
JkMount /pfctestssl/*/manager/* ajp13





 AllowOverride None
 Deny from all

ErrorLog/web/logs/host.company.com/ssl_error_log
CustomLog   /web/logs/host.company.com/ssl_access_log combined
TransferLog   /web/logs/host.company.com/ssl_transfer_log

###
# (END) Definition of SSL host.company.com virtual host   #
# ##



---
I believe this to be a problem with jk_mod not understanding what to do 
with the requests for these pages. I even tried  to tell it to pass such 
requests by adding wildcards for the subdirectories under the ssl 
directory, but it did not work. Any help on this issue would be highly 
appreciated. BTW, all other configuration bits seem to work. This was 
actually working prior to us getting Tomcat talking to a database 
server, but this would be extremely weird if it prevents mod_jk from 
talking SSL. That is why I am not including any other configuration 
files here. If need be, I will post any additional information that 
people may want to take a look at.

Thanks,

-- Gustavo Vegas.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Doubt about multiple applications

2002-10-02 Thread Ricardo de Souza Moura

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

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


>From: "Cox, Charlie" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>Subject: RE: Doubt about multiple applications
>Date: Wed, 2 Oct 2002 13:31:57 -0400
>
>what error are you getting? did you look in the error logs?
>
>Charlie
>
> > -Original Message-
> > From: David Mossakowski [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 02, 2002 4:02 PM
> > To: Tomcat Users List
> > Subject: Re: Doubt about multiple applications
> >
> >
> > There is no reason for this to be the case.  You must be
> > doing something
> > else wrong.
> >
> > There is nothing stopping you from copying application
> > webapps/A into a
> > directory called webapps/Aprime and still have this
> > application working
> > (this requires using links in JSPs that dont hardcode A as in
> > href="/A/something.jsp" of course).
> >
> > d.
> >
> > Ricardo de Souza Moura wrote:
> > > I am using Tomcat 4.0...
> > > I have two applications, A and B
> > >
> > > in the lib directory of A I have a file1.jar, and in the
> > lib directory
> > > of B I have the same file, file1.jar.
> > >
> > > I am not wanting to put my file file1.jar in the lib
> > directory of Tomcat.
> > >
> > > But when the Tomcat load the applications, only one get access this
> > > resource, file1.jar. Why ?
> > >
> > > Only one application works...
> > >
> > > But if I put only one application by time all works 
> > >
> > > Sorry my bad English !!!
> > > Thanks !!!
> > >
> > > _
> > > MSN Photos é a maneira mais fácil e prática de editar e
> > compartilhar sua
> > > fotos: http://photos.msn.com.br
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > >
> >
> > --
> > David Mossakowski  [EMAIL PROTECTED]
> > Instinet Corporation 212.310.7275
> >
> >
> >
> > **
> > **
> > <>
> >
> > 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:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




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


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: authorization using tomcat...

2002-10-02 Thread Rick Fincher

Sounds like you are close now.  It is working but it is rejecting your
username, password or role.

The name and role in WEB-INF/web.xml have to match the name and role in
conf/tomcat-users.xml.  The password is verified at login and must match the
password in conf/tomcat-users.xml.

You can add a debug statement to the realm configuration in conf/server.xml
to give you some debug output on this to help narrow down the problem,  but
I think it is a mis-match in the password-username-role somewhere.

See Realm How-To memory realm in the docs for details.

Rick

- Original Message -
From: "Padhu Vinirs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 1:58 PM
Subject: Re: authorization using tomcat...


>
> I did make that change and uncommented the MemoryRealm in servers.xml,
> restarted the server. Now I dont see any error in the logs files, but I
> get a error
>
> The server encountered an internal error (/ExamBuilder/Details.jsp) that
> prevented it from fulfilling this request.
>
> My servers.xml entry is:
>
> 
>
>
> Any ideas ?
>
>
> Thanks
>
>
> -- padhu
>
>
>
>
>
> Craig R. McClanahan wrote:
>
> >On Wed, 2 Oct 2002, Padhu Vinirs wrote:
> >
> >
> >
> >>Details.jsp
> >>
> >>
> >
> >URL patterns need to start with a "/" character.  Change this to:
> >
> >  /Details.jsp
> >
> >and you will have much better luck.
> >
> >Craig
> >



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: putting workers2.properties in $CATALINA_HOME/conf

2002-10-02 Thread Thad Humphries

Never mind, I found it!  In httpd.conf, put

# Tomcat mod_jk2.so Stuff
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file /opt/jakarta/catalina/conf/workers2.properties

But tell me, why does workers2.properties use TOMCAT_HOME instead of
CATATLINA_HOME?

On Wed, 2002-10-02 at 12:51, Thad Humphries wrote:
> The docs
> (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html)
> says to put workers2.properties in
> "${serverRoot}/conf/workers2.properties, where ${serverRoot} is
> something like /opt/apache."  And although the "Installation" section is
> blank (did someone say "documentation"?), I figured out to put
> LoadModule jk2_module modules/mod_jk2.so in my httpd.conf file.
> 
> So, I've got Apache 2 and Tomcat 4.1 working with jk2.  Great! 
> Question:  How can I put workers2.properties in $CATALINA_HOME/conf and
> get it read by Apache 2 (or 1.3) on startup?  On most installs around
> here, the root user is responsible for everything under Apache and the
> web app administrator runs Tomcat so I'd like to put workers2.properties
> in the Tomcat tree.
> ...
-- 

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:   
For additional commands, e-mail: 




SSL and mod_jk Problems on Tomcat 4.0.5 + Apache 1.3.26 (on LinuxRH 7.3)

2002-10-02 Thread Gustavo Vegas

Hello everyone,
Here is my problem; I am trying to make SSL requests to Tomcat 
through mod_jk, but they do not appear to work. I am even able to see 
properly through plain HTTP those pages I want served by Tomcat through 
SSL. When I use the https://hosts/directory/page.jsp, I get the source 
code of the file. If I try using the 8443 port, it displays properly. I 
am also using j2sdk version 1.4.1.
Here is the definition of the virtual host under Apache:
---

  LoadModule jk_module libexec/mod_jk.so


JkWorkersFile "/usr/local/apache/conf/workers.properties"
JkLogFile "/web/logs/mod_jk.log"

JkLogLevel debug

 NameVirtualHost *


# Should mod_jk send SSL information to Tomcat (default is On)
JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is 
SSL_CLIENT_C
ERT)
JkCERTSIndicator SSL_CLIENT_CERT
# Other needed settings
SSLOptions +StdEnvVars +ExportCertData
###
# (BEGIN) Definition of SSL host.company.com virtual host #
# NOTE: SSL Connections are only supported on IP-based virtual#
# hosts   #
###


ServerName host.company.com
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /web/htdocs/host.company.com
ScriptAlias /cgi-bin/ /web/htdocs/host.company.com/www/cgi-bin/
DirectoryIndex index.html index.htm index.shtml index.shtm index.jsp
Alias /reports/ /web/htdocs/host.company.com/reports
JkAutoAlias /export/home/host.company.com
SSLEngine On
SSLCertificateFile /usr/local/XXX/certs/host.company.com.cert
SSLCertificateKeyFile /usr/local/XXX/keys/host.company.com.com.key
SSLCipherSuite 
ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL

Alias /pfctestssl "/web/htdocs/host.company.com/ssl"

JkMount /pfctestssl/*.jsp ajp13
JkMount /pfctestssl/* ajp13
JkMount /pfctestssl/*.do ajp13
JkMount /pfctestssl/manager ajp13
JkMount /pfctestssl/manager/* ajp13

JkMount /pfctestssl/*/*.jsp ajp13
JkMount /pfctestssl/*/* ajp13
JkMount /pfctestssl/*/*.do ajp13
JkMount /pfctestssl/*/manager ajp13
JkMount /pfctestssl/*/manager/* ajp13





 AllowOverride None
 Deny from all

ErrorLog/web/logs/host.company.com/ssl_error_log
CustomLog   /web/logs/host.company.com/ssl_access_log combined
TransferLog   /web/logs/host.company.com/ssl_transfer_log

###
# (END) Definition of SSL host.company.com virtual host   #
# ##


---
I believe this to be a problem with jk_mod not understanding what to do 
with the requests for these pages. I even tried  to tell it to pass such 
requests by adding wildcards for the subdirectories under the ssl 
directory, but it did not work. Any help on this issue would be highly 
appreciated. BTW, all other configuration bits seem to work. This was 
actually working prior to us getting Tomcat talking to a database 
server, but this would be extremely weird if it prevents mod_jk from 
talking SSL. That is why I am not including any other configuration 
files here. If need be, I will post any additional information that 
people may want to take a look at.

Thanks,

-- Gustavo Vegas.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JNDI for JMS configuration question

2002-10-02 Thread Shapira, Yoav

Hi,
I'm using tomcat 4.1.12-LE / jdk 1.4.1, and I'd like to send a JMS
message to a remote server.  

I have the parameters for the server, e.g. providerURL,
connectionFactory, queue name.  I'd like to configure these in my
web.xml, not server.xml, and use tomcat's InitialContext implementation
to lookup the remote JMS queue.  

Is this possible?

If so, configuration and code help would be appreciated.  Let's say my
resources are:
providerURL = http://myprovider:myport
connectionFactory = com.mypackage.MyConnectionFactory
JMS queue = com.mypackage.MyQueue

Thanks in advance,

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:   
For additional commands, e-mail: 


Re: log4j & tomcat

2002-10-02 Thread Dan Lipofsky

This solution involves writing more code and
puts the burden on log4j.  I would prefer the
solution of simply telling tomcat not to use log4j
for its internal logging.  Is this possible?  Since
tomcat is capable of using different loggers and
has some mechanism to choose which one it uses,
how much harder would it be to give the user a bit
of control on that.  I would think it would already exist.
- Dan

> You are going to have to Buy Ceki Gülcü's book and look at the section
> about Repository Selectors.  Since log4j's configuration is static,
> the first app that configures log4j will have configured it for all
> contexts which is almost certainly not what you want.  You want your
> config file to be specific for your app.  That is where Repository
> Selectors come in.  I haven't read much about them, so I can't go into
> detail, but Ceki's book should answer just about any question you may
> have on Log4j.
>
> Actually, I spoke too quickly.  Look at this excerp from the book
>
> http://qos.ch/containers/sc.html
>
> See about the book here:
> http://qos.ch/log4jBook.html



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: accessing GlobalNamingResources?

2002-10-02 Thread echambe1


Yes you do

Ej




"Jeff Wishnie" <[EMAIL PROTECTED]> on 10/02/2002 01:35:07 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:accessing GlobalNamingResources?


The Tomcat documentation is unclear--

I a servlet, in order to access resources defined in the
 section of my server.xml do I have to explicitly
add a  to my context?

Thanks,

jeff


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









**
Confidentiality Notice: This email message, including any attachments, 
contains or may contain confidential information intended only for the 
addressee. If you are not an intended recipient of this message, be 
advised that any reading, dissemination, forwarding, printing, copying
or other use of this message or its attachments is strictly prohibited. If
you have received this message in error, please notify the sender 
immediately by reply message and delete this email message and any
attachments from your system.  
**


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




accessing GlobalNamingResources?

2002-10-02 Thread Jeff Wishnie

The Tomcat documentation is unclear--

I a servlet, in order to access resources defined in the  
section of my server.xml do I have to explicitly
add a  to my context?

Thanks,

jeff


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs


Now I am able to access the secure page through the login page. But even 
if I close the browser ( whcih i assume will close the  session ), and 
restart it, I am able to access the secure page without going through 
the login page. Is there a place where I need to say that the login info 
should not be a permanent cookie but only session scope ???

Thanks

-- padhu




Rick Fincher wrote:

>Hi Padu,
>
>It looks like you have this set up OK.  Do you have a memory realm set up in
>conf/web.xml as is required for this setup?
>
>Also, since your transport guarantee is set up as confidential it is going
>to use SSL so you either have to use an HTTPS:// url or you have to have
>redirection turned on in port 80 (or whatever your HTTP port is) in
>conf/web.xml.
>
>If your HTTPS port isn't 443 you'll have to have :8443 (if 8443 is the HTTPS
>port) in the url too.
>
>Rick
>
>- Original Message -
>From: "Padhu Vinirs" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, October 02, 2002 10:19 AM
>Subject: authorization using tomcat...
>
>
>  
>
>>I am testing web resource form-based authentication. I have created a
>>dummy jsp page "Details.jsp" and have created the following nodes in
>>web.xml:
>>
>>
>>
>>SecurePages
>>Details.jsp
>>
>>
>>EditUsers
>>
>>
>>CONFIDENTIAL
>>
>>
>>
>>FORM
>>
>>/login.jsp
>>/error.jsp
>>
>>
>>
>>Users who can edit
>>EditUsers
>>
>>
>>
>>I have created a "EditUsers" role in tomcat-users.xml.
>>
>>But when I access "Details.jsp", I am redirected to the Netscape search
>>page !!! I am able to access the login and error.jsp pages fine.
>>
>>Any ideas ?
>>
>>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs


When I commented out the data constraint CONFIDENTIAL the code worked.

Thanks everybody,

-- padhu



Craig R. McClanahan wrote:

>On Wed, 2 Oct 2002, Padhu Vinirs wrote:
>
>  
>
>>Details.jsp
>>
>>
>
>URL patterns need to start with a "/" character.  Change this to:
>
>  /Details.jsp
>
>and you will have much better luck.
>
>Craig
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs


I did make that change and uncommented the MemoryRealm in servers.xml, 
restarted the server. Now I dont see any error in the logs files, but I 
get a error

The server encountered an internal error (/ExamBuilder/Details.jsp) that 
prevented it from fulfilling this request.

My servers.xml entry is:




Any ideas ?


Thanks


-- padhu





Craig R. McClanahan wrote:

>On Wed, 2 Oct 2002, Padhu Vinirs wrote:
>
>  
>
>>Details.jsp
>>
>>
>
>URL patterns need to start with a "/" character.  Change this to:
>
>  /Details.jsp
>
>and you will have much better luck.
>
>Craig
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Doubt about multiple applications

2002-10-02 Thread Cox, Charlie

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

Charlie

> -Original Message-
> From: David Mossakowski [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 4:02 PM
> To: Tomcat Users List
> Subject: Re: Doubt about multiple applications
> 
> 
> There is no reason for this to be the case.  You must be 
> doing something 
> else wrong.
> 
> There is nothing stopping you from copying application 
> webapps/A into a 
> directory called webapps/Aprime and still have this 
> application working 
> (this requires using links in JSPs that dont hardcode A as in 
> href="/A/something.jsp" of course).
> 
> d.
> 
> Ricardo de Souza Moura wrote:
> > I am using Tomcat 4.0...
> > I have two applications, A and B
> > 
> > in the lib directory of A I have a file1.jar, and in the 
> lib directory 
> > of B I have the same file, file1.jar.
> > 
> > I am not wanting to put my file file1.jar in the lib 
> directory of Tomcat.
> > 
> > But when the Tomcat load the applications, only one get access this 
> > resource, file1.jar. Why ?
> > 
> > Only one application works...
> > 
> > But if I put only one application by time all works 
> > 
> > Sorry my bad English !!!
> > Thanks !!!
> > 
> > _
> > MSN Photos é a maneira mais fácil e prática de editar e 
> compartilhar sua 
> > fotos: http://photos.msn.com.br
> > 
> > 
> > -- 
> > To unsubscribe, e-mail:   
> > 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > 
> 
> -- 
> David Mossakowski  [EMAIL PROTECTED]
> Instinet Corporation 212.310.7275
> 
> 
> 
> **
> **
> <>
> 
> 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:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re[2]: log4j & tomcat

2002-10-02 Thread Jacob Kjome

Hello Dan,

You are going to have to Buy Ceki Gülcü's book and look at the section
about Repository Selectors.  Since log4j's configuration is static,
the first app that configures log4j will have configured it for all
contexts which is almost certainly not what you want.  You want your
config file to be specific for your app.  That is where Repository
Selectors come in.  I haven't read much about them, so I can't go into
detail, but Ceki's book should answer just about any question you may
have on Log4j.

Actually, I spoke too quickly.  Look at this excerp from the book

http://qos.ch/containers/sc.html

See about the book here:
http://qos.ch/log4jBook.html

Jake

Wednesday, October 02, 2002, 11:22:31 AM, you wrote:

DL> Is there a way to control this?
DL> Suppose I do want to put log4j.jar in common/lib (because I
DL> don't want to wrap it in the war and reinstall it every time).
DL> But I want it only to be used by my application.
DL> Can I do this?
DL> - Dan

>> There's a library called common-lib that uses any of log systems you have.
>> Modjk2 uses it, so if you put log4j in common/lib modjk2 will use it. If
DL> you
>> put modjk2 it in your webbapps directory, then only your application can
>> reach it.
>>
>> Regards
>>
>> -Mensaje original-
>> De: Maxime Colas des Francs [mailto:[EMAIL PROTECTED]]
>> Enviado el: miércoles, 02 de octubre de 2002 14:52
>> Para: Tomcat Users List
>> Asunto: log4j & tomcat
>>
>> Hi,
>>
>> I want to use log4j in a tomcat 4.1.10 web application.
>> and I think I don't understand relation between tomcat and log4j.
>>
>> I have a log4j-1.2.6.jar
>>
>> If i don't put it anywhere i have a :
>> java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator
>> in my 'onload' servlet (so i think it's nomal and i think log4j is not
>> integrate in tomcat)
>>
>> If i put this jar in $CATALINA_HOME/common/lib,
>> it seems that tomcat and mod_jk2 libs use it and log in my application log
>> ?!?
>> (and not a little ...)
>> DEBUG 2002-10-02 08:40:00,326 [main]
>> org.apache.jk.server.JkMain.processProperty(JkMain.java:468) : Processing
>> handler::handler list
>> DEBUG 2002-10-02 08:40:00,359 [main]
>> org.apache.jk.server.JkMain.processProperty(JkMain.java:468) : Processing
>> apr::apr NativeSo
>> DEBUG 2002-10-02 08:40:00,367 [main]
>> org.apache.jk.server.JkMain.processProperty(JkMain.java:481) : Setting
>> NativeSo on apr org.apache.jk.apr.AprImpl@26dbec
>> DEBUG 2002-10-02 08:40:00,371 [main]
>> org.apache.jk.server.JkMain.setBeanProperty(JkMain.java:359) : setProperty
>> org.apache.jk.apr.AprImpl@26dbec
>> ... etc ...
>>
>> If i put it in $CATALINA_HOME/webapps/myapp/WEB-INF/lib,
>> only my application log in my log file as expected.
>>
>> Do you know why ??
>> Can i put it in common/lib and tell tomcat to stop log in my application
DL> log
>> ?
>>
>> Thanks.
>>
>> My log configuration :
>>
>> log4j.rootCategory=DEBUG,  textFile
>> log4j.appender.textFile=org.apache.log4j.DailyRollingFileAppender
>> log4j.appender.textFile.layout=org.apache.log4j.PatternLayout
>> log4j.appender.textFile.layout.ConversionPattern=%-5p %d [%t] %l : %m%n
>> log4j.appender.textFile.DatePattern='.'-MM-dd
>> log4j.appender.textFile.File=/usr/local/tomcat/webapps/myapp/logs/log.txt



DL> --
DL> To unsubscribe, e-mail:   
DL> For additional commands, e-mail: 



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: web.xml conflict with element tags SERVLET and RESOURCE-REF ? help?

2002-10-02 Thread Larry Isaacs

The commas in the DTD declaration for the  element
(i.e. the commas in "(icon?,display-name?,...") dictate
that these elements *must* occur in the sequence specified.
The sequence of the  and  elements
in your web.xml *do not match* the DTD sequence specified
for the  element.  Thus, the "must match" error.

Cheers,
Larry

> -Original Message-
> From: Paul Tomsic [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, October 02, 2002 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: web.xml conflict with element tags SERVLET and 
> RESOURCE-REF ? help?
> 
> 
> Does anyone know anything about a conflict in the
> web.xml file when using both the 
> tag AND the  tag?
> 
> Apache1.3/Tomcat4.1.12 on Linux.
> 
> When my web.xml file contains both tags (see below for
> example) I get the following error in the catalina.out
> file:
> -
> 6 [main] ERROR digester.Digester  - Parse Error at
> line 21 column 11: The conten
> t of element type "web-app" must match
> "(icon?,display-name?,description?,distri
> butable?,context-param*,servlet*,servlet-mapping*,session-conf
> ig?,mime-mapping*,
> welcome-file-list?,error-page*,taglib*,resource-ref*,security-
> constraint*,login-
> config?,security-role*,env-entry*,ejb-ref*)".
> org.xml.sax.SAXParseException: The content of element
> type "web-app" must match
> "(icon?,display-name?,description?,distributable?,context-para
m*,servlet*,servle
> t-mapping*,session-config?,mime-mapping*,welcome-file-list?,er
> ror-page*,taglib*,
> resource-ref*,security-constraint*,login-config?,security-role
> *,env-entry*,ejb-r
> ef*)".
> 
> 
> But when I use only one or the other of these tags, I
> get no error.  Is there a way to have both elements
> live in the same web.xml?
> The reason I'm trying to do this is to take advantage
> of web pooling and JNDI.
> 
> Here's my web.xml file:
> 
> --
> 
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>
> 
> 
> Amedd | Agilis
> Application
>   
>   DB Connection
>
> jdbc/TestDB
>   javax.sql.DataSource
>   Container
> 
>   
> 
> 
> user
>
> com.mycompany.server.UserManagementModule
> 
> 
> 
> 
> 
> thoughts?
> 
> thanks,
> Paul 
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> __
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: RPM for 4.1.12

2002-10-02 Thread Monte . Gardner

Can you please let us know when and where it is posted.  I could sure 
user one of those rpm dealies also. :)


--Monte Glenn Gardner


On Wed, 2 Oct 2002, Henri Gomez wrote:

> I'm working on, should be released today at both
> www.jpackage.org and on rpms subdir at jakarta.
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/rpms/
> 
> Stay tuned...
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Documentation

2002-10-02 Thread Turner, John


Thanks!

John


> -Original Message-
> From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 12:16 PM
> To: Tomcat Users List
> Subject: Re: Documentation
> 
> 
> John:
> 
> I found JFreeChart from a post on this list and it's pretty 
> darn good from
> what I can tell.  Go to
> http://www.object-refinery.com/jfreechart/index.html.  The 
> library is free
> but the documentation costs $30.  I bought the docs and am 
> going through it
> right now.
> 
> My main task is getting graphing up and going from data in an Oracle
> database.  I did get graphs up and going on my own using 
> Java's Advanced
> Imaging library from Sun but JFreeChart has most of the hard 
> work already
> done.
> 
> Hope this helps,
> Kenny
> 
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 02, 2002 11:09 AM
> Subject: RE: Documentation
> 
> 
> >
> > We're looking for a Java charting solution.  I'd be very 
> interested in
> > seeing a doc on how to use JFreeChart, I've never heard of 
> it before.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, October 02, 2002 12:08 PM
> > > To: Tomcat Users List
> > > Subject: Re: Documentation
> > >
> > >
> > > I would also like to help on the docs.  Tomcat is a
> > > technology that we are
> > > betting our software engineering future on right now so I'll
> > > be in it for
> > > the long haul.  I've already written a step-by-step document
> > > on how to get
> > > Apache, Tomcat, SSL for Apache, JDBC for Oracle, Oracle 9i
> > > client, and the
> > > Java charting library JFreeChart all installed and working on
> > > Red Hat Linux
> > > 7.3.  Though the document is extremely informal (more like me
> > > taking notes
> > > during the install), I would not mind turning it into a
> > > HOW-TO or something.
> > >
> > > Just let me know if I can help,
> > > Kenny
> > >
> > > - Original Message -
> > > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 02, 2002 11:03 AM
> > > 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-proce

Re: JAVA SOAP Discussion List

2002-10-02 Thread micael

www.servlets.com

At 11:29 AM 10/2/2002 -0300, you 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:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




putting workers2.properties in $CATALINA_HOME/conf

2002-10-02 Thread Thad Humphries

The docs
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html)
says to put workers2.properties in
"${serverRoot}/conf/workers2.properties, where ${serverRoot} is
something like /opt/apache."  And although the "Installation" section is
blank (did someone say "documentation"?), I figured out to put
LoadModule jk2_module modules/mod_jk2.so in my httpd.conf file.

So, I've got Apache 2 and Tomcat 4.1 working with jk2.  Great! 
Question:  How can I put workers2.properties in $CATALINA_HOME/conf and
get it read by Apache 2 (or 1.3) on startup?  On most installs around
here, the root user is responsible for everything under Apache and the
web app administrator runs Tomcat so I'd like to put workers2.properties
in the Tomcat tree.
-- 

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:   
For additional commands, e-mail: 




Re: Doubt about multiple applications

2002-10-02 Thread David Mossakowski

There is no reason for this to be the case.  You must be doing something 
else wrong.

There is nothing stopping you from copying application webapps/A into a 
directory called webapps/Aprime and still have this application working 
(this requires using links in JSPs that dont hardcode A as in 
href="/A/something.jsp" of course).

d.

Ricardo de Souza Moura wrote:
> I am using Tomcat 4.0...
> I have two applications, A and B
> 
> in the lib directory of A I have a file1.jar, and in the lib directory 
> of B I have the same file, file1.jar.
> 
> I am not wanting to put my file file1.jar in the lib directory of Tomcat.
> 
> But when the Tomcat load the applications, only one get access this 
> resource, file1.jar. Why ?
> 
> Only one application works...
> 
> But if I put only one application by time all works 
> 
> Sorry my bad English !!!
> Thanks !!!
> 
> _
> MSN Photos é a maneira mais fácil e prática de editar e compartilhar sua 
> fotos: http://photos.msn.com.br
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 
> 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




<>

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:   
For additional commands, e-mail: 




RE: tomcat 4.1.12 JDBC driver class 'null'

2002-10-02 Thread Robert Herold

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:
>
>  
>   type="javax.sql.DataSource"/>
> 
>  
>factory
>org.apache.commons.dbcp.BasicDataSourceFactory
>  
>  
>username
>fred
>  
>  
>password
>fred
>  
>  
>driverClassName
>oracle.jdbc.driver.OracleDriver
>  
>  
>driverName
>jdbc:oracle:thin:@localhost:1521:ctg
>  
>  
>maxActive
>20
>  
>  
>maxIdle
>10
>  
>  
>maxWait
>-1
>  
>
>   
>
> And it is referenced in web.xml with:
>
>   
>
> 
>   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.
> 
>
> jdbc/CotagesoftDB
> javax.sql.DataSource
> Container
>
>   
>
> Any ideas on what to try would be appreciated.  Thanks.
>
> -- bob
>
> --
> Robert Herold
> Cotagesoft, Inc.
> 650 474 9013 x808
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




virtual hosts in Apache and Tomcat conf files

2002-10-02 Thread David Mossakowski

What is the difference between specifying VirtualHost in apache conf 
file vs. Host element in Tomcat server.xml file?

Does this depend on the connector used?  Would using Host elements in 
server.xml remove dependency on what connector is used?

Thanks,
d.

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275



***
<>

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:   
For additional commands, e-mail: 




Problem with Tomcat 4.0.2 hanging

2002-10-02 Thread tysonlowery

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.(ZipFile.java:112)
at java.util.jar.JarFile.(JarFile.java:117)
at java.util.jar.JarFile.(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:   
For additional commands, e-mail: 




web.xml conflict with element tags SERVLET and RESOURCE-REF ? help?

2002-10-02 Thread Paul Tomsic

Does anyone know anything about a conflict in the
web.xml file when using both the 
tag AND the  tag?

Apache1.3/Tomcat4.1.12 on Linux.

When my web.xml file contains both tags (see below for
example) I get the following error in the catalina.out
file:
-
6 [main] ERROR digester.Digester  - Parse Error at
line 21 column 11: The conten
t of element type "web-app" must match
"(icon?,display-name?,description?,distri
butable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,
welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-
config?,security-role*,env-entry*,ejb-ref*)".
org.xml.sax.SAXParseException: The content of element
type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,servlet*,servle
t-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,
resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-r
ef*)".


But when I use only one or the other of these tags, I
get no error.  Is there a way to have both elements
live in the same web.xml?
The reason I'm trying to do this is to take advantage
of web pooling and JNDI.

Here's my web.xml file:

--



http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>


Amedd | Agilis
Application
  
  DB Connection
   
jdbc/TestDB
  javax.sql.DataSource
  Container

  


user
   
com.mycompany.server.UserManagementModule





thoughts?

thanks,
Paul 
[EMAIL PROTECTED]





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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: AW: AW: Graphics on a web server

2002-10-02 Thread David Mossakowski

If you're running jdk 1.4 and are still getting the X error after 
specifying headless as you are then the only conclusion is that this 
option is not passed correctly.

Our startup options modify the JAVA_OPTS not the CATALINA_OPTS like this:

JAVA_OPTS = "-server -Djava.awt.headless=true ... "

HTH

d.

Dr A.C. Marshall wrote:
> I have been looking further into this. The reason that I cannot get
> graphics to work on our web server is becuase we are getting a library
> error - for some reason the library libmlib.so is not being found
> despite the fact that it is present and on the LD_LIBRARY_PATH. Most
> most odd, esp. as java manages to find all the other libraries in the
> same dir with the same permissions, eg, libawt.so.
> 
> Does this sound familliar to anybody?
> 
> Adam Marshall
> 
> On Mon, 16 Sep 2002, Ralph Einfeldt wrote:
> 
> |Depending on which linux/unix you have xvfb migh aready be
> |part of the distribution.
> |
> |The important part of the startscript is something like
> |
> |XVFBARGS=":99 -screen 0 1024x768x24 -fbdir /var/run -ac"
> |
> |You have to set it up, so that it is started by the init
> |process. (How to do that depends on your unix, there are
> |2 common solutions: bsd and system V, look at
> |http://www.slackware.com/config/init.php or
> 
>|http://www.redhat.com/support/resources/tips/Boot-Process-Tips/Boot-Process-Tips-3.html)
> |
> |For tomcat you just have to set an environment variable
> |DISPLAY with the value localhost:99.0
> |
> |Are you shure that /usr/java/jre is jdk 1.4 ?
> |
> |Verify this with
> |
> |/usr/java/jre/bin/java -version
> |
> |(To be honest, I havn't used the headless option myself,
> | but have seen some posts where people reported success)
> |
> |
> |> -Ursprüngliche Nachricht-
> |> Von: Dr A.C. Marshall [mailto:[EMAIL PROTECTED]]
> |> Gesendet: Montag, 16. September 2002 19:07
> |> An: Tomcat Users List
> |> Betreff: Re: AW: Graphics on a web server
> |>
> |> On Mon, 16 Sep 2002, Ralph Einfeldt wrote:
> |
> |>
> |> So one would install xvfb on the web server? Is that all
> |> there is to it?
> |> Surely one must have to tell the JVM about the virtual framebuffer?
> |>
> |> I set in the startup script
> |>
> |>  CATALINA_OPTS="-Xms64M -Xmx256M -Duser.home=/usr/java/jre
> |> -Djava.awt.headless=true"
> |>  export CATALINA_OPTS
> |>
> |>  java.lang.InternalError: Can't connect to X11 window server
> |> using ':0.0' as the value of the DISPLAY variable.
> |>
> |
> |
> |--
> |To unsubscribe, e-mail:   
> |For additional commands, e-mail: 
> |
> |
> 

-- 
David Mossakowski  [EMAIL PROTECTED]
Instinet Corporation 212.310.7275




<>

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:   
For additional commands, e-mail: 




Re: Help with Startup Script

2002-10-02 Thread Chuck Carson

Well, your suggestion got me going in the right direction, I needed to 
reference startup.sh plus add the env variables to the startup script 
explicitly.

Thanks for your help,
CC

Here is the final working startup script for Solaris 8 (prolly work on 
Linux as well)


#!/sbin/sh
#

JAVA_HOME=/usr/j2sdk1.3.1_04   ;export JAVA_HOME
PATH=/bin:/usr/bin:/sbin:/usr/local/bin:$JAVA_HOME/bin ;export PATH
CATALINA_BASE=/usr/local/jakarta-tomcat-4.1.12 ;export CATALINA_BASE
CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.12 ;export CATALINA_HOME

case "$1" in
start)
 echo "Starting Tomcat Server 4.1.12"
 echo ". using JAVA_HOME=$JAVA_HOME"
 echo ". using PATH=$PATH"
 echo ". using CATALINA_BASE=$CATALINA_BASE"
 echo ". using CATALINA_HOME=$CATALINA_HOME"
 echo ". using CATALINA_TMPDIR=$CATALINA_HOME/temp"
 /usr/local/jakarta-tomcat-4.1.12/bin/startup.sh
 echo "End of Tomcat initialization."
 ;;
stop)
 echo "Stopping tomcat server..."
 /usr/local/jakarta-tomcat-4.1.12/bin/shutdown.sh
 ;;
*)
 echo "Usage: $0 {start|stop}"
 exit 1
 ;;
esac

exit 0


Turner, John wrote:
> What if you call startup.sh and shutdown.sh instead of catalina.sh directly?
> 
> John
> 
> 
> 
>>-Original Message-
>>From: Chuck Carson [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, October 02, 2002 11:20 AM
>>To: Tomcat Users List
>>Subject: Help with Startup Script
>>
>>
>>
>>I am unable to get tomcat to start automatically under 
>>Solaris 8. I try 
>>starting it after several other socket based applications (such as 
>>oracle and postgres)
>>
>>I get nothing in the logs, the service merely refuses to start.
>>
>>Here is the startup script:
>>#!/sbin/sh
>>case "$1" in
>>start)
>> echo "Starting tomcat server..."
>> /sbin/su - root -c . /root/.bashrc && 
>>/usr/local/tomcat4/bin/catalina.sh start
>> ;;
>>stop)
>> echo "Stopping tomcat server..."
>> /usr/local/tomcat4/bin/catalina.sh stop
>> ;;
>>*)
>> echo "Usage: $0 {start|stop}"
>> exit 1
>> ;;
>>esac
>>exit 0
>>
>>I added the 'su - root -c . /root/.bashrc' bit as a troubleshooting 
>>step, the explicit sourcing of root's .bashrc is not needed on other 
>>services that I start at boot time.
>>
>>I have this script here: /etc/rc3.d/S70tomcat4
>>
>>When the system is booting, I see the message "Starting tomcat 
>>server..." so I know the script is getting executed.
>>
>>The default runlevel is set to 3.
>>
>>
>>Anyone have any ideas?
>>
>>Thanks,
>>CC
>>
>>-- 
>>Chuck Carson
>>Sr. Systems Administrator
>>Syrrx, Inc.
>>10410 Science Center Drive
>>San Diego, CA 92121
>>E: [EMAIL PROTECTED]
>>W: +1 858.731.3540
>>M: +1 858.442.0827
>>
>>
>>--
>>To unsubscribe, e-mail:   
> 
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


-- 
Chuck Carson
Sr. Systems Administrator
Syrrx, Inc.
10410 Science Center Drive
San Diego, CA 92121
E: [EMAIL PROTECTED]
W: +1 858.731.3540
M: +1 858.442.0827


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: log4j & tomcat

2002-10-02 Thread Dan Lipofsky

Is there a way to control this?
Suppose I do want to put log4j.jar in common/lib (because I
don't want to wrap it in the war and reinstall it every time).
But I want it only to be used by my application.
Can I do this?
- Dan

> There's a library called common-lib that uses any of log systems you have.
> Modjk2 uses it, so if you put log4j in common/lib modjk2 will use it. If
you
> put modjk2 it in your webbapps directory, then only your application can
> reach it.
>
> Regards
>
> -Mensaje original-
> De: Maxime Colas des Francs [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles, 02 de octubre de 2002 14:52
> Para: Tomcat Users List
> Asunto: log4j & tomcat
>
> Hi,
>
> I want to use log4j in a tomcat 4.1.10 web application.
> and I think I don't understand relation between tomcat and log4j.
>
> I have a log4j-1.2.6.jar
>
> If i don't put it anywhere i have a :
> java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator
> in my 'onload' servlet (so i think it's nomal and i think log4j is not
> integrate in tomcat)
>
> If i put this jar in $CATALINA_HOME/common/lib,
> it seems that tomcat and mod_jk2 libs use it and log in my application log
> ?!?
> (and not a little ...)
> DEBUG 2002-10-02 08:40:00,326 [main]
> org.apache.jk.server.JkMain.processProperty(JkMain.java:468) : Processing
> handler::handler list
> DEBUG 2002-10-02 08:40:00,359 [main]
> org.apache.jk.server.JkMain.processProperty(JkMain.java:468) : Processing
> apr::apr NativeSo
> DEBUG 2002-10-02 08:40:00,367 [main]
> org.apache.jk.server.JkMain.processProperty(JkMain.java:481) : Setting
> NativeSo on apr org.apache.jk.apr.AprImpl@26dbec
> DEBUG 2002-10-02 08:40:00,371 [main]
> org.apache.jk.server.JkMain.setBeanProperty(JkMain.java:359) : setProperty
> org.apache.jk.apr.AprImpl@26dbec
> ... etc ...
>
> If i put it in $CATALINA_HOME/webapps/myapp/WEB-INF/lib,
> only my application log in my log file as expected.
>
> Do you know why ??
> Can i put it in common/lib and tell tomcat to stop log in my application
log
> ?
>
> Thanks.
>
> My log configuration :
>
> log4j.rootCategory=DEBUG,  textFile
> log4j.appender.textFile=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.textFile.layout=org.apache.log4j.PatternLayout
> log4j.appender.textFile.layout.ConversionPattern=%-5p %d [%t] %l : %m%n
> log4j.appender.textFile.DatePattern='.'-MM-dd
> log4j.appender.textFile.File=/usr/local/tomcat/webapps/myapp/logs/log.txt



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: "allowLinking" in 4.1.12

2002-10-02 Thread Dan Lipofsky

>From my server.xml:

  
  

- Dan

> I've searched the archives and the only message I found was:
> 
> http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg67063.html
> 
> I'd like to turn "allowLinking" ON - how?  Do I add allowLinking="true"
> to the context?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Documentation

2002-10-02 Thread Kenny G. Dubuisson, Jr.

John:

I found JFreeChart from a post on this list and it's pretty darn good from
what I can tell.  Go to
http://www.object-refinery.com/jfreechart/index.html.  The library is free
but the documentation costs $30.  I bought the docs and am going through it
right now.

My main task is getting graphing up and going from data in an Oracle
database.  I did get graphs up and going on my own using Java's Advanced
Imaging library from Sun but JFreeChart has most of the hard work already
done.

Hope this helps,
Kenny

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 11:09 AM
Subject: RE: Documentation


>
> We're looking for a Java charting solution.  I'd be very interested in
> seeing a doc on how to use JFreeChart, I've never heard of it before.
>
> John
>
>
> > -Original Message-
> > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 02, 2002 12:08 PM
> > To: Tomcat Users List
> > Subject: Re: Documentation
> >
> >
> > I would also like to help on the docs.  Tomcat is a
> > technology that we are
> > betting our software engineering future on right now so I'll
> > be in it for
> > the long haul.  I've already written a step-by-step document
> > on how to get
> > Apache, Tomcat, SSL for Apache, JDBC for Oracle, Oracle 9i
> > client, and the
> > Java charting library JFreeChart all installed and working on
> > Red Hat Linux
> > 7.3.  Though the document is extremely informal (more like me
> > taking notes
> > during the install), I would not mind turning it into a
> > HOW-TO or something.
> >
> > Just let me know if I can help,
> > Kenny
> >
> > - Original Message -
> > From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 02, 2002 11:03 AM
> > 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
> > > M

RE: Documentation

2002-10-02 Thread Turner, John


Thanks!

John


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 12:03 PM
> To: Tomcat Users List
> 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:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Documentation

2002-10-02 Thread Turner, John


We're looking for a Java charting solution.  I'd be very interested in
seeing a doc on how to use JFreeChart, I've never heard of it before.

John


> -Original Message-
> From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 12:08 PM
> To: Tomcat Users List
> Subject: Re: Documentation
> 
> 
> I would also like to help on the docs.  Tomcat is a 
> technology that we are
> betting our software engineering future on right now so I'll 
> be in it for
> the long haul.  I've already written a step-by-step document 
> on how to get
> Apache, Tomcat, SSL for Apache, JDBC for Oracle, Oracle 9i 
> client, and the
> Java charting library JFreeChart all installed and working on 
> Red Hat Linux
> 7.3.  Though the document is extremely informal (more like me 
> taking notes
> during the install), I would not mind turning it into a 
> HOW-TO or something.
> 
> Just let me know if I can help,
> Kenny
> 
> - Original Message -
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 02, 2002 11:03 AM
> 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:
> 
> > For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Documentation

2002-10-02 Thread Kenny G. Dubuisson, Jr.

I would also like to help on the docs.  Tomcat is a technology that we are
betting our software engineering future on right now so I'll be in it for
the long haul.  I've already written a step-by-step document on how to get
Apache, Tomcat, SSL for Apache, JDBC for Oracle, Oracle 9i client, and the
Java charting library JFreeChart all installed and working on Red Hat Linux
7.3.  Though the document is extremely informal (more like me taking notes
during the install), I would not mind turning it into a HOW-TO or something.

Just let me know if I can help,
Kenny

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 11:03 AM
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:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: authorization using tomcat...

2002-10-02 Thread Craig R. McClanahan



On Wed, 2 Oct 2002, Padhu Vinirs wrote:

> Details.jsp

URL patterns need to start with a "/" character.  Change this to:

  /Details.jsp

and you will have much better luck.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat DataSource question

2002-10-02 Thread [EMAIL PROTECTED]

Hi all,

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"). 
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:   
For additional commands, e-mail: 




RE: tomcat 4.1.12 JDBC driver class 'null'

2002-10-02 Thread Robert Herold

I've tried it as both driverName and url.  Neither work.  Besides, the docs
say that drivername will continue to be supported for backward
compatibility - see the end of section 4 in the "JDBC Data Sources" topic in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

-- bob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
g]On Behalf Of Raj Saini
Sent: Wednesday, October 02, 2002 1:07 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 JDBC driver class 'null'


There is an error in your datasource configureation. The DriveName
element is changed to url in 4.1.12


   driverName
   jdbc:oracle:thin:@localhost:1521:ctg


should be


   url
   jdbc:oracle:thin:@localhost:1521:ctg


Raj


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:
>
>  
>   type="javax.sql.DataSource"/>
> 
>  
>factory
>org.apache.commons.dbcp.BasicDataSourceFactory
>  
>  
>username
>fred
>  
>  
>password
>fred
>  
>  
>driverClassName
>oracle.jdbc.driver.OracleDriver
>  
>  
>driverName
>jdbc:oracle:thin:@localhost:1521:ctg
>  
>  
>maxActive
>20
>  
>  
>maxIdle
>10
>  
>  
>maxWait
>-1
>  
>
>   
>
> And it is referenced in web.xml with:
>
>   
>
> 
>   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.
> 
>
> jdbc/CotagesoftDB
> javax.sql.DataSource
> Container
>
>   
>
> Any ideas on what to try would be appreciated.  Thanks.
>
> -- bob
>
> --
> Robert Herold
> Cotagesoft, Inc.
> 650 474 9013 x808
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Documentation

2002-10-02 Thread Craig R. McClanahan



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:   
For additional commands, e-mail: 




Tomcat service problem vs. Tomcat command line

2002-10-02 Thread Matt Fury

 
 

=

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:   
For additional commands, e-mail: 




Re: MBeans?

2002-10-02 Thread Raj Saini

Hi,

MBean stands for Management Bean. They are JMX stuff. JMX is a Java 
specification for Remote Management of applications. More and more 
applicaitons are now supporting JMX API. Tomcat uses the mx4j JMX 
implementation. mx4j is a opensource project hosted at sourceforge.

You can program your application JMX way and use the Sun RI or mx4j for 
administring them. The administration task you can perform are, stop, 
start, restart etc.

If you are trying to provide custom Realm support for, I will suggest 
you to use the LDAP based realm. That would be the cool stuff for the 
companies you work for.

Raj

Randy Secrist wrote:
> I am building a custom user system which extends that which tomcat 4.1.12
> did - basically an extended version of the UserDatabaseRealm and
> UserDatabase - to meet a companies specific security needs.  As such, any
> classes I write for this go into the server/lib directory.  I noticed I
> could disable JMX support and everything worked fine... - but since this is
> the first I have heard about JMX, I would like to know more about what JMX's
> role is in J2EE systems.  Funny how new features in Tomcat somehow get me
> introduced to new java libraries I never knew about...
> 
> I made the decision to do this for many reasons - but primarily because I
> like the new administration features of 4.1.12, and (except for encoding
> issues in realms), I like the catalina interface.
> 
> I have heard a lot of good things about JBoss - mostly integrating various
> J2EE components - however I am not yet familiar enough with ejb's, and jms
> to use them in a production environment.  Eventually, when I get out of
> school, I will probably delve into it full time - but until then I need to
> just figure out how to best provide good service to the companies that
> supply my fledling family their bread and butter.  :)
> 
> Randy
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, October 01, 2002 6:40 AM
> Subject: RE: MBeans?
> 
> 
> Howdy,
> What kind of bean what you like to add so that tomcat knows about it?
> 
> In the (current) tomcat world, there are two kind of MBeans: its own and
> yours.  Yours are under your webapp, visible only to you, and tomcat
> doesn't want to have anything to do with them.  Its own MBeans are
> visible only to it, and you shouldn't have anything to do with them.
> This might change in the future.
> 
> JBoss supports a nice dynamic MBean model.  It may be more suitable for
> your task.  Which goes back to the original question, what exactly are
> you trying to do?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> 
>>-Original Message-
>>From: Randy Secrist [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, September 30, 2002 11:01 PM
>>To: Tomcat Users List
>>Subject: MBeans?
>>
>>
>>Is there a way to append to the information kept in the MBean
> 
> descriptor
> 
>>without having to modify the file in catalina.jar?  i.e. - is there a
> 
> way
> 
>>to dynamically add MBeans so that TC knows about them at run time?
>>
>>Does anyone know what I am talking about, or is this more geared for
> 
> the
> 
>>developer's group?
>>
>>Randy Secrist
> 
> 
> 
> 
> 
> 
> 
> 
> 
>>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:
> 
> 
> 
>>For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




weird problem with tomcat 4.0 & Apache mod_proxy -- how to diagnose

2002-10-02 Thread Sundar Narasimhan

Hi, All; First of, thanks much for tomcat (I suspect you here that
often).

I have a web app that works fine in an intranet and internet setting
where tomcat is directly accessible to the browser(s).

But I need to deploy it in a configuration that is fronted by
mod_proxy on Apache. (i.e. users will come in at
http://external/xyz/bar and they will be directed to
http://internal/abc/). 

Perhaps this is an apache question, but what I am finding is that
Tomcat's sessions are not reliably kept over mod_proxy. What I'd like
to know is exactly how Tomcat decides to locate a session
corresponding to a browser. (I think it uses 'cookies' and perhaps
mod_proxy somehow doesn't work w/ this?)

Does anyone have experience deploying tomcat along with mod_proxy?
Thanks.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Installing tomcat service

2002-10-02 Thread Charles Gardner


 I have run the following commands on a Win2K system.  I have my wrapper.properties
file setup as shown.The service seems to be installed but wont start.  There is a 
mention of a problem with file names which are not of the 8.3 type (as shown where my 
home for tomcat).  I cant seem to find a log file giving me more details of the 
problem.

=

C:\Program Files\jakarta-tomcat-3.3.1\bin>jk_nt_service -I tomcat -A wrapper.properties
Asked (and given) winsock 1.1
The service named tomcat was created. Now adding registry entries
Registry values were added
If you have already updated wrapper.properties you may start the tomcat service by 
executing "jk_nt_service -s tomcat" f
rom the command prompt

C:\Program Files\jakarta-tomcat-3.3.1\bin>jk_nt_service -s tomcat
Asked (and given) winsock 1.1
Starting tomcat.
tomcat failed to start.

===

#
# $Header: /home/cvspublic/jakarta-tomcat/src/etc/jk/wrapper.properties,v 1.4 
2002/03/13 03:40:07 larryi Exp $
# $Revision: 1.4 $
# $Date: 2002/03/13 03:40:07 $
#
#
# jk_service.properties - a bootstrup file for the Tomcat NT service.
#
# This file provides jk_nt_service with the needed information to
# start tomcat at a different process.
#
# As a general note, the characters $( and ) are used internally to define
# macros. Do not use them!!!
#
# Whenever you see a set of lines such as:
# x=value
# y=$(x)\something
#
# the final value for y will be value\something
#
# Normaly all you will need to modify is the first two properties, i.e.
# wrapper.tomcat_home and wrapper.java_home. Most of the configuration
# is derived from these two.
#

#
# wrapper.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
wrapper.tomcat_home=c:\"Program Files"\jakarta-tomcat-3.3.1

#
# wrapper.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
wrapper.java_home=d:\java\j2sdk1.4.0

-
Adventa Control Technologies | Voice: 972.543.1689 
3001 East Plano Parkway #100 | Fax:   972.633.9317 
Plano TX 75074-7422  |   
-



RE: JAVA SOAP Discussion List - Mailing List Archives

2002-10-02 Thread Cooperstock, Dan

There are very good archives of a lot of mailing lists under:

http://marc.theaimsgroup.com

This particular one is at:

http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

> --
> From: Alphonsus[SMTP:[EMAIL PROTECTED]]
> Reply To: Tomcat Users List
> Sent: October 2, 2002 10:29 AM
> To:   'Tomcat Users List'
> Subject:  JAVA SOAP Discussion List
> 
> 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:
> 
> For additional commands, e-mail:
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: 4.1.12 JSPC question

2002-10-02 Thread peter lin


Here is a bit more information. I took a look at the jar files for jsp
1.1 tags and they include a taglib.tld file in meta-inf/.  Once I remove
that, it compiles the pages fine.  It looks like there's a conflict in
either jasper compiler or jspc that is unable to resolve which .tld file
to use.

peter lin


peter lin wrote:
> 
> after a lot of digging, I tracked part of the problem down to jakarta
> string taglib. once I removed that from my file, it correctly compiles
> the jsp page.  I'm working on tracking down the exact cause, but it
> might be an issue with jsp 1.1 tags. JSTL 1.2 compliant, but string
> taglib is 1.1.
> 
> if anyone has seen this, I'd like to hear about it. it might help me
> diagnose the problem and find a fix faster.
> 
> peter
> 
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Error Compiling JSP under 4.1.12

2002-10-02 Thread Sexton, George

Never mind. I found this described in Bug #10036.

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: 28 September, 2002 9:52 AM
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/index_jsp.
java:7: '.' expected
import WebApp;
 ^
/usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp.
java:8: '.' expected
import CalServlet;
 ^
/usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/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:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: problem using MultipartParser and MultipartRequest together

2002-10-02 Thread jon wingfield

Have you seen:
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart/FileRename
Policy.html
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart/DefaultFil
eRenamePolicy.html

We use an implementation of FileRenamePolicy when instantiating the
MultipartRequest. This may be what you need.

-Original Message-
From: hugo [mailto:[EMAIL PROTECTED]]
Sent: 02 October 2002 11:07
To: [EMAIL PROTECTED]
Subject: problem using MultipartParser and MultipartRequest together


Hi

I have a jsp file where I would like download files to a particular
directory on the server.

I am have form fields, including file upload fields, the content of
which is forwarded to a second jsp where I use MultipartRequest from the
com.oreilly.servlet.* package to download the uploaded files to a
location on the server.

This all works well, but I would like to check first if file(s) with the
same filename already exists in that directory on the server. This can
be done by executing a unix command on the server and getting the
filenames from the directory.

So far so good. However, the moment I use MultipartRequest to get the
names of the files that are uploaded (to compare them with the ones
already in the directory), they are immediately downloaded to the directory.

So I thought I use MultipartParser first to obtain the filenames - but
the moment I do this, I am using the generic method HttpServlet request
and this means that, when using MultipartParser early in the jsp it
seems I can no longer use MultipartRequest afterwards and vice versa (if
there's a solution to this, please let me know).

This led me to try to make the part that checks existing filenames
agains the filenames in the upload fields into a javaBean - I can then
call the Bean's method that does the checking from my second jsp file
(to which form variables are forwarded). The bean would simply return a
string containing "yes" of "no" depending on whether the filenames to be
stored are unique or not.

However, I have to pass the contents of the fields that contains the
filenames to the bean - which means I have to once more use a request
method to get those values in the first place.

So the problem is that somehow I have to pass on HttpServlet request
values to the bean, and I am not sure how to do this without getting the
values out first with MultiPartParser - which makes it impossible for me
to use MultipartRequest.

The bean is listed in my jsp file as:



and I am calling its method further down in the jsp:

String samefile = checkupload.getdoCheck(BUT HERE I NEED TO PASS IN A
REQUEST!);

I have to pass in the request (parameter of file to be uploaded) to the
bean - have a look at the method below in the bean itself. Note that
without making the bean extend HttpServlet I cannot construct
MultipartParser parser in the Bean's method getdoCheck later on.

Complex problem, I know, but I am sort of hoping someone can set me back
on the right path, as at this stage I am really lost as how to proceed.

Any help, particularly code examples will be greatly appreciated.

Thanks very much.

Hugo

***
Here is the bean:

package com.geoinformex.project;
import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import com.oreilly.servlet.*;
import com.oreilly.servlet.multipart.*;
import com.oreilly.servlet.multipart.MultipartParser;

public class checkUpload extends HttpServlet{

//String lineOfText ="";
String proj_id_b ="";
String proj_id ="";
//String makedir ="";
int proj_id_count = 0;
Vector proj_id_number = new Vector();
Vector proj_id_base = new Vector();
Vector project_ID_list = new Vector();
Vector existingfiles = new Vector();

String upload1 = "";
String upload2 = "";
String upload3 = "";
Part part;

public String getdoCheck(HttpServletRequest request,HttpServletResponse
response) throws IOException, ServletException {

String samefile = "";

//Trying to get the filenames from the upload fields from my form (but
this fails).

MultipartParser parser = new MultipartParser(request, 10*1024*1024);
while ((part = parser.readNextPart()) != null) {
if (part.isFile()) {
// It's a file part I am after
  FilePart filePart = (FilePart) part;
 String fileName = filePart.getFileName();
 if (fileName != null) {
 existingfiles.add(fileName);
 System.out.println("filename: " + fileName);
 }
   }
}

// Reading in filenames from the directory.

try {
 Process p = Runtime.getRuntime().exec("ls /var/www/projects_data/");
 BufferedReader stdInput = new BufferedReader(new
InputStreamReader(p.getInputStream()));
 String s = "";
 BufferedReader stdError = new BufferedReader(new
  InputStreamReader(p.getErrorStream()));
 while ((s = stdInput.readLine()) != null) {
 System.out.println ("line of input is: " + s);
 StringTokenizer tr = new StringTokenizer(s," ", true );
 String t = t

  1   2   >