Re: sharing directory between web application

2005-08-26 Thread Davide Frigerio
Thanks a lot, but probaly this doesn't solve my problem. This is my situation, e.g. I have two images http://localhost:8080/application1/img/example.jpg http://localhost:8080/application2/img/example.jpg The image example.jpg is the same, as other resources in /img/ directory. There's a

application memory leak

2005-08-26 Thread Àíäðèåâñêèé Äìèòðèé
Hello, May be it's some kind of stupid question, but where in tomcat environment may be memory leak? I can imagine three subjects: - objects stored in application scope - objects stored in session scope - objects handled by static properties Is there any other place where objects can be

Re: configuration files for war deployments

2005-08-26 Thread Nikola Milutinovic
Patrick Lacson wrote: hi All, If I were to deploy my application as a .war file, where do I place the .properties configuration files? I know there's the option of auto-expanding the war file at deployment, but is there a way to keep the war file unexpanded and provide an external .properties

Where Is A ...

2005-08-26 Thread Eugene Poole
Where is a exact example of how to do the jndi, jdbc datasource, and the reseorce ref necessary to get a database connection to a Oracle9i database from Tomcat 5.0.28? Gene [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL

Re: Clustering problems

2005-08-26 Thread Peter Rossbach
Read the doc and configure greater waitForAck timeouts and more pooled worker. Sender ... ackTimeout=5 maxPoolSocketLimit=40 .. I only used fastasyncqueue mode in my production system! Sender

Re: Making a Database Image Show Up on a Jsp Page

2005-08-26 Thread Philip Cote
Thank you, Wade and everyone else. ServletOutputStream worked perfectly. Wade Chandler wrote: --- Edmund Urbani [EMAIL PROTECTED] wrote: Philip Cote wrote: I'm trying to write to binary data from a MySQL database into a jpeg file so I can show it on a jsp page but

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Paul Austin
The test case I am using is running on Tomcat 5.5.9. 1. The web application is deployed as a the app.war file, with no context.xml file to the wars/host directory 2. The Host configuration is as follows. Host debug=99 name=host unpackWARs=false deployXML=false Logger

Re: Where Is A ...

2005-08-26 Thread David Delbecq
Le Vendredi 26 Août 2005 03:08, Eugene Poole a écrit : Where is a exact example of how to do the jndi, jdbc datasource, and the reseorce ref necessary to get a database connection to a Oracle9i database from Tomcat 5.0.28?

Re: Sharing non-session data in a cluster

2005-08-26 Thread Peter Rossbach
Hey Joakim, you can register your own ClusterListener and send ClusterMessages with SimpleTcpCluster object. With the 5.5.11 release you can configure it and look inside following code pieces:

How to Configure Tomcat to display the error on to Client rather than into logs

2005-08-26 Thread shyama
Hi All, When a client asks for a jsp file and an error has been encountered by Server while compiling the .jsp to .class then I would like to display that on the client browser rather than it dumping to the log file local_host ...log. Please let me know whether there is any parameter to be

Re: Viewing PDF in Internet Explorer

2005-08-26 Thread Mark Sutton
This may be due to the version of Tomcat you are using. It sounds a lot like this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=24970 This hit me when I tried upgrading from 4.1.27 to 4.1.29. I am not sure in which subsequest version it was fixed. It may have been 4.1.31. You

Re: Viewing PDF in Internet Explorer

2005-08-26 Thread Mark Sutton
This may be due to the version of Tomcat you are using. It sounds a lot like this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=24970 This hit me when I tried upgrading from 4.1.27 to 4.1.29. I am not sure in which subsequest version it was fixed. It may have been 4.1.31. You

Undeploy leaves residual files

2005-08-26 Thread Allistair Crossley
Hi, I've noticed that undeploy of my web applications that the ROOT folder is left behind as follows; ROOT WEB-INF classes log4j.properties lib ehcache.jar struts.jar The web application has a ContextListener that calls LogManager shutdowns and

using disks SATA against SCSI in tomcat 5.5.9 cluster servers

2005-08-26 Thread Acácio Furtado Costa
Respected friends of the list, I am specifying Cluster nodes (hosts) to use with tomcat 5.5.9 with an apache server as dispatcher. In the specification of the disks I have doubts because the new disks SATA has great performance and speed and with cost comparative minor to the SCSI Disks.

RE: using disks SATA against SCSI in tomcat 5.5.9 cluster servers

2005-08-26 Thread Peter Crowther
From: Acácio Furtado Costa [mailto:[EMAIL PROTECTED] In the specification of the disks I have doubts because the new disks SATA has great performance and speed and with cost comparative minor to the SCSI Disks. Considering applications WEB, where the WAR files are loaded in memory

RE: Malformed URL Exception: unknown protocol: c

2005-08-26 Thread Jay Burgess
Then I'm at loss as to what the issue is. The fact that it works in some cases, and not others, has me puzzled. I'd suggest digging into the javax.xml source and see if you can figure out the condition that throws the exception, etc. And I'm still not fully clear on whether our C:\... strings

Custom SSLServerSocket implementation

2005-08-26 Thread Alain Brousseau
Hi, I need to tell Tomcat 5.5 to use my custom SSLServerSocketFactory for backwards compatibility with our client-side software. It was relatively easy with Tomcat 4.1 (using a Factory element in the Connector configuration) but with tomcat 5.5 it doesn't work. The Connector seems to ignore

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Hassan Schroeder
Paul Austin wrote: The test case I am using is running on Tomcat 5.5.9. 1. The web application is deployed as a the app.war file, with no context.xml file to the wars/host directory _and_ no META-INF/context.xml in the war file, right? 2. The Host configuration is as follows. Host

upgrade to 5

2005-08-26 Thread David Ellis
Hello, I'm extremely new to all this. I was wondering if it is possible to upgrade from tomcat version 3.2.3 to version 5? I've read that the upgrade from version 3 to 4 was difficult, so my guess is that I will have to go to version 4 before I can go to 5. Thanks Dave

RE: upgrade to 5

2005-08-26 Thread Allistair Crossley
Hi there, Of course you can, you just need to be aware of what elements of Tomcat you need to configure, e.g JNDI resources and so on and then lookup the way you do that in Tomcat 5. It's not a *far* cry from Tomcat 3/4, you still use server.xml for a bunch of stuff, but it's recommended that

Re: upgrade to 5

2005-08-26 Thread David Ellis
Thanks, that's somewhat of a relief, although I'm sure I have plenty of work cut out for me :) Off I go - Original Message - From: Allistair Crossley [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, August 26, 2005 11:48 AM Subject: RE: upgrade to

RE: upgrade to 5

2005-08-26 Thread Allistair Crossley
Hey, Yep, there's always toothache to be had with these things :) Cheers, Allistair. -Original Message- From: David Ellis [mailto:[EMAIL PROTECTED] Sent: 26 August 2005 16:55 To: Tomcat Users List Subject: Re: upgrade to 5 Thanks, that's somewhat of a relief, although I'm

Re: upgrade to 5

2005-08-26 Thread Brian Cook
I would skip straight to 5. No point in going though 2 painful migrations instead of just one. All the cores stuff is the same. Read over the config docs, step up a test server play with it and when your ready update your production server. David Ellis wrote: Hello, I'm extremely new

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Remy Maucherat
On 8/26/05, Paul Austin [EMAIL PROTECTED] wrote: The test case I am using is running on Tomcat 5.5.9. 1. The web application is deployed as a the app.war file, with no context.xml file to the wars/host directory 2. The Host configuration is as follows. Host debug=99 name=host

Re: newbie with a short question

2005-08-26 Thread Brian Cook
Couple of things 1. You will get better responses on this list if you review the posting guide at. This post is way to vague to get specific answers. So most people are not going to respond to it. http://jakarta.apache.org/site/mail.html 2. If I follow the description correctly you

Oracle Tomcat 5.5.x

2005-08-26 Thread Durfee, Bernard
Hello, I am trying to create an Oracle 10g datasource with connection caching enabled. In my server.xml I have the following... Resource name=jdbc/myDS auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@my.db.com:1521:me username=my_name

Re: How to Configure Tomcat to display the error on to Client rather than into logs

2005-08-26 Thread Brian Cook
What is it you want to display? The stack trace? shyama wrote: Hi All, When a client asks for a jsp file and an error has been encountered by Server while compiling the .jsp to .class then I would like to display that on the client browser rather than it dumping to the log file local_host

RE: newbie with a short question

2005-08-26 Thread Robert Harper
The JVM by default does not allow you to run anything on the client. You will have to change the .properties file on the client to enable the server to interact with the client's file system etc. This is one of the reasons JavaScript is safer than VBScript. The VBVM allows the browser to do

compatibility for Tomcat 3.x and Tomcat 4.x with JDK 1.4

2005-08-26 Thread My-Tien Tran
Does anyone know where I can check for the compatibility for Tomcat 3.x and Tomcat 4.x with JDK 1.4? Is JDK 1.4 compatible with Tomcat 3.2.4 and Tomcat 4.x? My-Tien Sadler Senior Technical Support Engineer Peregrine Systems, Inc. 3611 Valley Centre Dr. San Diego, CA 92130 main: 800-960-9998

Waiting for sessions to be deallocated

2005-08-26 Thread kar
I have been running tomcat on a test environment for the past 2 months.I have lately noticed that,when i keep using it for a while,the server hangs up and locks up my dbcp thread that connects to oracle.This is very sporadic.When i shutdown the server,i get this message Waiting for 2 Sessions

Re: newbie with a short question

2005-08-26 Thread Hassan Schroeder
nick sturm wrote: ok, I have done the two things on that page: renamed the serverlet and deleted the comments around the cgi section of the web.xml config file. Uh, you probably want to *read* those comments :-) -- specifically !-- executableName of the exectuable used to run the -- !--

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Paul Austin
I know almost have it 'The way I want it to work (TM)' using the following configuration. - server.xml Host appBase=wars/host autoDeploy=false debug=99 name=host unpackWARs=false deployXML=false Logger className=org.apache.catalina.logger.FileLogger prefix=host timestamp=false

resource processing

2005-08-26 Thread Durfee, Bernard
How are Resource elements in the server.xml file processed? For instance... Resource name=jdbc/myDS auth=Container type=javax.sql.DataSource factory=org.apache.commons.dbcp.BasicDataSourceFactory driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@my.db.com:1521:me username=me

Re: Automatic deploy of updated war deletes the context file

2005-08-26 Thread Hassan Schroeder
Paul Austin wrote: Now the final question is how can I set the path to be a sub directory? So /subdir/app. This worked on my Tomcat 5 installation on Linux but doesn't work here. It seems to just ignore the path. No idea, never had a reason to try such a configuration -- sorry! -- Hassan

Re: Undeploy leaves residual files

2005-08-26 Thread Robert Taylor
I had the same issues and it looks like we are using similar technologies. Struts1.2.7, Hibernate 3.0.5, Spring 1.2.3 The struts issue (I think) is caused by validator access the validator.dtd resource and no releasing it. Under WEB-INF/classes/org/apache/commons/validator/resources I added

Tomcat 5.5.9 WebStart using wrong jnlp file on launch

2005-08-26 Thread Dave Murvin
I am new to Tomcat and am having a hard time finding the answer to my problem. I have a simple WebStart application that I am trying to run from the webapps directory. I am getting the following WebStart -Download error: Unable to load resource:

invalidate session after calling listeners

2005-08-26 Thread Franklin Phan
Is there a way to set Tomcat to call listeners before invalidate() is called on a session? I'm trying to code a method to clean up specifically named files inside a working dir (in Windows XP) whenever the session times out. I can't seem to find a way to do it. Apparently, invalidate() is

Servlet EG Java EE 5 Web Tier Proposed Final Draft

2005-08-26 Thread Jan Luehe
We're pleased to announce the availability of the Public Review of the next versions of the specifications for the Java Web tier. This includes Servlet, JavaServer Pages (JSP), the JSP Standard Tag Library (JSTL) and JavaServer Faces (Faces). Servlet is being developed under JSR-154, JSP 2.1 is

Re: Making a Database Image Show Up on a Jsp Page

2005-08-26 Thread Philip Cote
Caldarale, Charles R wrote: From: Philip Cote [mailto:[EMAIL PROTECTED] Subject: Re: Making a Database Image Show Up on a Jsp Page My only sticking point is how I'm supposed to write that binary data to the jpeg file. I think the point people are trying to make is that you don't

Re: configuration files for war deployments

2005-08-26 Thread QM
On Fri, Aug 26, 2005 at 02:16:26AM +0800, Patrick Lacson wrote: : I know that's typically where they go, but if the file is inside the : .war, how is the file going to be configured by the sysadming folks? Webapps are meant to be fairly standalone. If you require that one be configured after it

Loadbalancing issues with mod_jk 1.2.14

2005-08-26 Thread Andreas Oesterer
I tried to upgrade from 1.2.8 to 1.2.14 this week. I must say that the behavior of mod_jk has changed quite a bit. Especially troublesome is that the LB seems less equally distributing in 1.2.14 than it was in 1.2.8. Essentilly I experienced some Tomcats die under the load while others where

Re: Where Is A ...

2005-08-26 Thread Eugene Poole
Thanks, that's just what I needed. Gene [EMAIL PROTECTED] David Delbecq wrote: Le Vendredi 26 Août 2005 03:08, Eugene Poole a écrit : Where is a exact example of how to do the jndi, jdbc datasource, and the reseorce ref necessary to get a database connection to a Oracle9i database from

Re: invalidate session after calling listeners

2005-08-26 Thread Darek Czarkowski
You could implement HttpSessionBindingListener and define your own valueBound and valueUnbound methods. DarekC On Fri, 2005-08-26 at 13:08, Franklin Phan wrote: Is there a way to set Tomcat to call listeners before invalidate() is called on a session? I'm trying to code a method to clean up

Cluster tcpThreadCount

2005-08-26 Thread Randy Paries
Hello, How do I determine what value I should set tcpThreadCount to Currently I have the setting below and a very busy app server. Thanks Randy Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=10.0.0.88 tcpListenPort=4001

Re: Custom SSLServerSocket implementation

2005-08-26 Thread Bill Barker
Alain Brousseau [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I need to tell Tomcat 5.5 to use my custom SSLServerSocketFactory for backwards compatibility with our client-side software. It was relatively easy with Tomcat 4.1 (using a Factory element in the Connector

Re: invalidate session after calling listeners

2005-08-26 Thread Franklin Phan
Darek, I've tried your suggestion. As I've said before: I need to access the Session object. This is what I have: package abcd; import java.io.*; import javax.servlet.http.*; public class AbcdSessionListener implements HttpSessionBindingListener { private String userId; public void