Connection pooling reconnect problem

2007-09-04 Thread Alper Sarı
Dear All, We have configured a portal system on Linux. In our system we uses connection pooling to connect to different databases. One of them is Oracle 9i. We have a problem with reconnection to the database. When the database restart tomcat can't establish connection to them or don't try to

Re: Tomcat freeze after some times

2007-09-04 Thread Ice72
Yes ... in theory. But if was this case, in the jstack dump, we should view the incoming http-req which waiting for a pooled connection (I have a ConnPool.getConnection() class/method). But ... on the dump there is anything ... P-( Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSA

Re: an easier way to deploy war file?

2007-09-04 Thread Angelo Chen
Hi, Can war file be deployed without creating a directory, I meant, tomcat can just use the WAR file without creating a directory? Thanks, A.C. samk-2 wrote: > > See Thread at: http://www.techienuggets.com/Detail?tx=11882 Posted on > behalf of a User > > Even when you hot or auto-deploy the

Re: Question on static variables

2007-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chad, Chad Lung wrote: > What I want to do is store information in a few static variables used > in a servlet. I'm looking for speed more than anything as the clients will > be polling the server every 2-3 seconds. I think what you really want is to

Re: an easier way to deploy war file?

2007-09-04 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=11882 Posted on behalf of a User Even when you hot or auto-deploy the war file the previous version has to be replaces by extracting content from the new war file. There will be a pause with 404 errors if you hit the URL while the deployment

Re: an easier way to deploy war file?

2007-09-04 Thread Angelo Chen
Hi Gregor, Thanks, i tried this, it works, sometimes I can see the updated program immediately, but sometimes I got all those 404 errors, I have to wait for a few minutes before I can see the updates reflected, any idea? how to reflect changes asap? Thanks. Gregor Schneider wrote: > > - *neve

RE: Problem with form based JSP authentication using Firefox with Tomcat

2007-09-04 Thread Luke McMahon
Thanks p (hope this is formatted better!) I tried this without success. I've attached the livehttpheader output below. What seems to happen in Firefox is the first time I go to the login page, it passes the jsessionid to j_security_check. If I then invalidate the session, and go to log in agai

Re: Question on static variables

2007-09-04 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=11977 Posted on behalf of a User Nothing to do with Tomcat. Look up the Singleton pattern and it will teach you what you need. In Response To: I have a unique situation where I'm building a polling server for a Flash/Flex application. I

Question on static variables

2007-09-04 Thread Chad Lung
I have a unique situation where I'm building a polling server for a Flash/Flex application. I want to turn information around very quickly between clients and therefore don't want to use a database if I don't have to. What I want to do is store information in a few static variables used in a serv

Re: random Listening port

2007-09-04 Thread Lionel Crine
Well, good point, I think jmx is activated. I'll check that and come back to you. I'm using sun JVM 5.0 on Linux. Lionel Caldarale, Charles R a écrit : From: Lionel Crine [mailto:[EMAIL PROTECTED] Subject: random Listening port I've installed tomcat 6.0 and I'm wondering why there is random

Re: jsvc.pid question / Possibility of jsvc.pid collisions?

2007-09-04 Thread Ole Ersoy
Super - Thanks Azhar - definitely making a note of the -pidfile switch. Thanks again, - Ole Waseem Azhar wrote: Yes, this is a valid issue from the start/stop tomcat perspective. If you have multipe tomcat servers running on the same machine you can use -pidfile switch to specify the differen

RE: Please help...

2007-09-04 Thread Mike Cronin
Brian, Hassan and Charles; did I happen to mention that you guys ROCK! Your responses assisted me in coming to the conclusion that the problem had nothing to do with the element at all. It turns out that I had referenced this resource within the wrong (the default was actually being called). Sil

Re: localhost.log vs. catalina.out

2007-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 icet, icet wrote: > What's the difference between [catalina.out and localhost.log]? catalina.out should be where standard error and standard output for the Tomcat process are redirected. localhost.log is dependent on how you configure any in your se

Re: HttpSessionListener

2007-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashok, OFFICIAL WEBSITE wrote: > 3. Problem. The listener class does not report sessionCreate and > sessionDestroy. It responds perfectly to all other types of event > listeners. The servlet class, of course, reports each HttpRequest as > they come in

Re: Tomcat freeze after some times

2007-09-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ice, Ice72 wrote: > Hi Cris, > > thanks for your reply. Yes: I checked the process via top/netstat/lsof and I > haven't detect any > strange situation. The super-strange thing is that the other webapps, on the > same tomcat-instance, > continue to w

Re: Problem with form based JSP authentication using Firefox with Tomcat

2007-09-04 Thread Pid
Try putting all of the Cache-Control commands inline, comma separated: content="no-store,no-cache,must-revalidate"> You can also set the headers: <% response.setHeader("Cache-Control","no-cache,no-store,must-revalidate"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expi

Problems with mod_jk and cygwin

2007-09-04 Thread Javier Badaracco
Hi!. I follow the instruction to build the connector so all step was well done, but the .so archive was not create it. Thanks

Re: an easier way to deploy war file?

2007-09-04 Thread Peter Stavrinides
If you set up Tomcat correctly, and place all your jars in the correct places you can hot deploy the war without a restart. This works over plain http, you don't even need access to the server, all you need is a password for the manager (it's better to use a database realm). There are many w

Problem with form based JSP authentication using Firefox with Tomcat

2007-09-04 Thread Luke McMahon
Hi there, I'm new to the list, just having some trouble getting my authentication to work with Firefox. I'm trying to protect access to a member area in my new website, and am just using the built in form based security for now. I'm using Tomcat 6.0.14, IE7 and Firefox 2.0.0.6.When attempting to

Re: an easier way to deploy war file?

2007-09-04 Thread Juha Laiho
Angelo Chen wrote: > I use Tomcat 5.5, I installed it in an ubuntu, I have to start it as root > with startup.sh. to deplay a war file during development I have to do > following: > > 1. ftp to my home directory > 2. ssh to the host as root, shutdown.sh > 3. delete the program directory under weba

Re: Using HSQLDB for Authentication

2007-09-04 Thread remmons
Sorry, further testing showed that Tomcat was locating one of my databases, but not the one I thought. It was locating a database in %CATALINA_HOME%/data. So the database location and connectionURL which I posted previously are not consistent. Here is the corrected database location: * Locate

RE: random Listening port

2007-09-04 Thread Caldarale, Charles R
> From: Lionel Crine [mailto:[EMAIL PROTECTED] > Subject: random Listening port > > I've installed tomcat 6.0 and I'm wondering why there is > random port open. Do you have JMX remote enabled? (Setting -Dcom.sun.management.jmxremote opens a random port with a Sun JVM.) What JVM are you using?

Re: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps//lib?

2007-09-04 Thread Ghodmode
I'm happy to say that I have discovered the solution to this problem as well as my problem with NoClassDefFoundError for HttpServlet... The problem seemed intermittent and now I know why. It depended on what directory I was in when I started Tomcat. I wanted to save myself some typing, so I made

Re: an easier way to deploy war file?

2007-09-04 Thread Gregor Schneider
- *never* start tomcat as root: create a user "tomcat" if not already existing and run tomcat with that user-id - if it's not a production-server with very high security, grant ftp-access to user "tomcat" - from your local pc, ftp to your ubuntu, login as user "tomcat" - change to directory "www

Re: Tomcat JNI Netbeans

2007-09-04 Thread Mark Thomas
soulboy wrote: > "both this class and the shared library should be placed in the > $CATALINA_HOME/shared/lib directory." > > Actually $CATALINA_HOME/shared/lib directory doesn't exist on my > installation so I created it and as test > I created and placed a dummy javalibrary in a .jar file in this

Re: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps//lib?

2007-09-04 Thread Ghodmode
On 9/4/07, reno <[EMAIL PROTECTED]> wrote: > > hello, > > ... your web.xml is a bit different from the Wicket HelloWorld example > http://wicket.apache.org/examplehelloworld.html > > did you try with: > wicket.protocol.http.WicketServlet > ?? > and did you follow this tutorial?? > Hi Reno. Than

Re: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps//lib?

2007-09-04 Thread reno
hello, > Here's my web.xml: > @home:~/dev/tomcat/webapps/HelloWicket/WEB-INF$ cat web.xml > > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" >"http://java.sun.com/dtd/web-app_2_3.dtd";> > > > configuration > development > > >

random Listening port

2007-09-04 Thread Lionel Crine
Hello, I've installed tomcat 6.0 and I'm wondering why there is random port open. On tomcat 5.5, there is no random port open. What is it for ? For example : What is the first port java5107 tomcat6u IPv6 13478475 TCP *:42590 (LISTEN) java5107 tomcat8u IPv6 13478

Re: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps//lib?

2007-09-04 Thread Ghodmode
On 9/4/07, Per Johnsson <[EMAIL PROTECTED]> wrote: > > > Just a quick one, how do you start Tomcat? Is it another user? Does the > directories/apps have the correct rights. And does Tomcat/java have the > necessery rights to read, and run? > > Hi Per, I start Tomcat using $CATALINA_HOME/bin/startu

Tomcat JNI Netbeans

2007-09-04 Thread soulboy
Hi I am having some trouble configuring a web application on Tomcat 6.0.14 that is calling native libs via JNI on Red Hat Ent 3.0. I have not been able to configure it successfully and I am running out of ideas. I get errors like this java.lang.UnsatisfiedLinkError: Native Library WEB-INF/l

RE: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps//lib?

2007-09-04 Thread Per Johnsson
Just a quick one, how do you start Tomcat? Is it another user? Does the directories/apps have the correct rights. And does Tomcat/java have the necessery rights to read, and run? Regards Per Jonsson -Original Message- From: Ghodmode [mailto:[EMAIL PROTECTED] Sent: den 4 september 2007 0

Re: jsvc.pid question / Possibility of jsvc.pid collisions?

2007-09-04 Thread Waseem Azhar
Yes, this is a valid issue from the start/stop tomcat perspective. If you have multipe tomcat servers running on the same machine you can use -pidfile switch to specify the different pid file location for each server. Otherwise you won't be able to start both servers simultaneously. e.g -pidfile

Re: an easier way to deploy war file?

2007-09-04 Thread Yannick Haudry
Hi, maybe there is a better way, but at least I guess you can use Ant to automate all that in one task. Yannick On 9/4/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I use Tomcat 5.5, I installed it in an ubuntu, I have to start it as root > with startup.sh. to deplay a war file during d

Re: Noob needs help with a webservice wich uses resources located in a folder

2007-09-04 Thread Tomás Tormo
Hello First of all thank you for your answer. The owner of tomcat it's my user, but the problem is that my system doesn't have the group (or user) tomcat. I tried to launch tomcat as root (just as a test) moving the folder to the same place as the .class is, and later the same moving the fold

an easier way to deploy war file?

2007-09-04 Thread Angelo Chen
Hi, I use Tomcat 5.5, I installed it in an ubuntu, I have to start it as root with startup.sh. to deplay a war file during development I have to do following: 1. ftp to my home directory 2. ssh to the host as root, shutdown.sh 3. delete the program directory under webapps 4. copy war file from m

Re: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps//lib?

2007-09-04 Thread Ghodmode
On 9/4/07, David Delbecq <[EMAIL PROTECTED]> wrote: > > J2EE specs says librairies of a webapp must be in /WEB-INF/lib (that's > for the part about subjet line where you use /lib) Thank you David. That was a typo. I am actually using WEB-INF/lib. Now, for you mail content you seem to be indee

Re: NoClassDefFoundError, Tomcat isn't seeing JARs in webapps//lib?

2007-09-04 Thread David Delbecq
J2EE specs says librairies of a webapp must be in /WEB-INF/lib (that's for the part about subjet line where you use /lib) Now, for you mail content you seem to be indeed using WEB-INF/lib, and it seems to be the 3 libs required by wicket example. I suggest you investigate the possibility of h