Re: Context.xml not updating dataSource

2009-07-20 Thread Rainer Frey
On Monday 20 July 2009 17:08:15 Mike Frohme wrote: > > > >> Edit the copy of the context.xml file and all will work as you > > > >> expect. > > > > > > 1. In production, the operations folks don't have to unpack the app, > > > edit the context file and re-pack the app to edit the configuration. >

Re: providing downloading functionality for a file which is on disk

2009-07-20 Thread Kham Mulman
you can. for instance, File file = new File("C:\\temp\\downloadfilename.csv"); FileInputStream fileIn = new FileInputStream(file); ServletOutputStream out = response.getOutputStream(); byte[] outputByte = new byte[4096]; //copy binary contect to output stream while(fileIn.read(outputByte, 0, 409

providing downloading functionality for a file which is on disk

2009-07-20 Thread Ritesh399
Hi all I am developing a web application using jsp and want to provide some links for a user to download data. The data is not in web application's directory(somewhere else on disk) Can I provide a direct link to that data file ? Thanks Ritesh -- View this message in context: http://www.nabb

Configuring worker MPM for Tomcat

2009-07-20 Thread Anand Kumar Prabhakar
Could anyone please explain how to configure worker MPM for Tomcat, I'm using Tomcat 6.0.20 version. -- View this message in context: http://www.nabble.com/Configuring-worker-MPM-for-Tomcat-tp24582105p24582105.html Sent from the Tomcat - User mailing list archive at Nabble.com. ---

Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE

2009-07-20 Thread Varuna Seneviratna
Is there a Tomcat service already installed, perhaps from an > > older version? It must be removed first. No there is no previous version of Tomcat or any other installed as a service,I checked whether JRun could be installed as a service and it did.Then I uninstalled it, and now there is no serv

RE: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Caldarale, Charles R
> From: its_toas...@yahoo.com [mailto:its_toas...@yahoo.com] > Subject: Re: Seeking the right solution to > java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > > PS - I just hacked together the Hibernate-controlled database > connection / pooling on a freshly installed Tomcat 6.0.20. > It wo

RE: RMI call fails when URL contain spaces

2009-07-20 Thread Caldarale, Charles R
> From: Tomas Pollak [mailto:tomas_pol...@yahoo.com] > Subject: RMI call fails when URL contain spaces > > I'm developing a web applicaton that makes an RMI call to a server. > If I have a standalone Tomcat instance, and deploy the war to it, > it works fine. > > However there must be some bug wi

Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread its_toasted
--- On Mon, 7/20/09, David Smith wrote: > From: David Smith > Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: > com.mysql.jdbc.Driver > To: "Tomcat Users List" > Date: Monday, July 20, 2009, 6:16 PM > Caldarale, Charles R wrote: > >> From: David Smith [mailto:d...

RE: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE

2009-07-20 Thread Caldarale, Charles R
> From: Varuna Seneviratna [mailto:varunasenevira...@gmail.com] > Subject: Fwd: Is it not possible to install apache-tomcat-6.0.20 with a > J2SE 5 JRE > > But not Tomcat, The installation always stops when > it is using jvm.dll. Since no one else is having this problem, it's something specific w

RMI call fails when URL contain spaces

2009-07-20 Thread Tomas Pollak
Hello all, I have this use case: I'm developing a web applicaton that makes an RMI call to a server. If I have a standalone Tomcat instance, and deploy the war to it, it works fine. However, when I use the maven-tomcat-plugin I get a MalformedURLException. Searching for this problem online the

Fwd: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5 JRE

2009-07-20 Thread Varuna Seneviratna
Even JRun 4 can be installed as a service But not Tomcat, The installation always stops when it is using jvm.dll. Your comments!! -- Forwarded message -- From: Varuna Seneviratna Date: 2009/7/19 Subject: Re: Is it not possible to install apache-tomcat-6.0.20 with a J2SE 5

RE: newbie looking for guidance

2009-07-20 Thread Martin Gainty
mg>see below > Date: Mon, 20 Jul 2009 16:58:54 -0800 > From: tom.bur...@alaska.gov > Subject: newbie looking for guidance > To: users@tomcat.apache.org > > Hello All, > I'm a web developer making the jump from PHP to java. I'm taking over a project created by a contractor no longer employe

RE: newbie looking for guidance

2009-07-20 Thread Caldarale, Charles R
> From: Hassan Schroeder [mailto:hassan.schroe...@gmail.com] > Subject: Re: newbie looking for guidance > > 1) find out *exactly* what version the production system is running Not just the Tomcat version, but also the JVM version. Make sure your test environment duplicates the production enviro

Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread David Smith
Caldarale, Charles R wrote: >> From: David Smith [mailto:d...@cornell.edu] >> Subject: Re: Seeking the right solution to >> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver >> >> This configuration is using a tomcat managed database pool. Put your >> mysql jar file in tomcat's lib folder an

Re: newbie looking for guidance

2009-07-20 Thread Hassan Schroeder
On Mon, Jul 20, 2009 at 5:58 PM, Burton, Tom (DOR sponsored) wrote: >        I'm a web developer making the jump from PHP to java.  I'm taking over > a project created by a contractor no longer employed by my division.  I've > been tasked with fixing a couple of minor issues that never got fixed

newbie looking for guidance

2009-07-20 Thread Burton, Tom (DOR sponsored)
Hello All, I'm a web developer making the jump from PHP to java. I'm taking over a project created by a contractor no longer employed by my division. I've been tasked with fixing a couple of minor issues that never got fixed before he left. I'm using NetBeans and tomcat 6.0.16

RE: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Caldarale, Charles R
> From: David Smith [mailto:d...@cornell.edu] > Subject: Re: Seeking the right solution to > java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > > This configuration is using a tomcat managed database pool. Put your > mysql jar file in tomcat's lib folder and you'll see the error go away.

Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread David Smith
> >> > name="jdbc/CSRapp" >description="DB Connection" >type="javax.sql.DataSource" >scope="shareable" > >driverClassName="com.mysql.jdbc.Driver" >factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" >url="jdbc:mysql://localhost:3306/CSRapp" >username="CSRa

Re: reply timeout, connect_timeout and preprost_timeout values

2009-07-20 Thread Madhuri Patwardhan
Hi, Thanks for all the information so far. This communication has really made apache-tomcat load balancing aspects clear to me. As you suggested earlier, I am attaching my configuration. I have also added %D in apache access log and seeing the response time. Accordingly, I will try to increase

Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Bob Marcum
Thank you all for your help. Caldarale, Charles R wrote: From: Bob Marcum [mailto:bmar...@bcscomputers.com] Subject: Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver I did a "find" scan of my system, looking for other copies of both hibernate3.jar and my

Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Mark Thomas
Bob Marcum wrote: > Suggestions, gents? Showing us the full stack trace would help. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Caldarale, Charles R
> From: Bob Marcum [mailto:bmar...@bcscomputers.com] > Subject: Re: Seeking the right solution to > java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > > I did a "find" scan of my system, looking for other copies of > both hibernate3.jar and mysql-connector-java-3.1.10-bin.jar to > confirm t

Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Bob Marcum
Responding to both ... Being guided by your judgements I have made a few adjustements and re-tried. 1. I removed the mysql driver jar from my jse/jre/lib/ext 2. I confirmed hibernate3.jar is in myapp/WEB-INF/lib. It has always been there. 3. I put mysql-connector-java-3.1.10-bin.jar back into W

java.io.IOException: Stream closed org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:204) on forward while processing jsp:include

2009-07-20 Thread Leonard Gestrin
Hello, In my application I have servlet filter that handles error handling for runtime exceptions; when such exception happens, it forwards request to error page where user-frienldy error is presented. It works fine for most of the cases, however, if runtime exception happens during processing

RE: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Caldarale, Charles R
> From: Bob Marcum [mailto:bmar...@bcscomputers.com] > Subject: Seeking the right solution to > java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > > That would mean code directly in my app could see all the > jar files in WEB-INF/lib but hibernate code, for instance, > could not ?? !! Depe

Re: Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread David Smith
You are right ... it shouldn't be put there. One thing you didn't seem to mention is how you are using your mysql driver. Are you trying to use the built-in database pooling? If that's the case, the mysql driver should be in tomcat's lib directory because tomcat's internals need access to it as

Seeking the right solution to java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2009-07-20 Thread Bob Marcum
I have been experiencing "java.lang.ClassNotFoundException: com.mysql.jdbc.Driver" when attempting to run my webapp under tomcat 6.0.18. I have run my application successfully before under prior versions of Tomcat. I have found and implemented a solution that works, but I believe it is a "wrong

Clustering with persistent sessions

2009-07-20 Thread Mitch Claborn
The web site we are developing will have at least two tomcat servers behind some kind of load balancer (looking at nginx so far). The requirement is that the session data be completely persistent, even if all of the members of the cluster fail. This will be an extremely rare condition, but it cou

Re: Clustering help

2009-07-20 Thread Mitch Claborn
FYI - running one of the instances in a VMWare virtual machine works fine. Mitch Mitch Claborn wrote: > Yes to both questions. What a bummer. I'll try running the second > instance on a VM an see what happens. > > Mitch > > > Filip Hanik - Dev Lists wrote: > >> Wait a second, are both your i

RE: Context.xml not updating dataSource

2009-07-20 Thread Mike Frohme
Sorry for the late reply, Rainer. There is, in principle. Set deployXML to false in the Host declaration in your server.xml and it will do exactly what you want. On the flip side, tomcat will remove the configuration when the app is undeployed, so you need a little care in your deployment pro

RE: find Cell,node and process value.

2009-07-20 Thread Caldarale, Charles R
> From: Ruchirak [mailto:sharma.ruch...@gmail.com] > Subject: find Cell,node and process value. > > can we have tomcat servlet or a servlet filter to extract the > cell,node and process name from a deployment manager. What do you mean by "cell"? What do you mean by "node"? Neither of the above

find Cell,node and process value.

2009-07-20 Thread Ruchirak
In Websphere Application Server we have class com.ibm.websphere.management.AdminServiceFactory is used to retrieve the following values: cell name node name process name Do we have any way to find these values in tomcat. can we have tomcat servlet or a servlet filter to