AW: error while running a webapp

2006-10-05 Thread Oliver Wagner
Thanks for your hint. The PDF can be reached at:

http://www.tv-wetzlar-badminton.de/errorMessageTomcat.pdf

the code from the Method conOK:

public boolean conOK(int pointer) {
 PreparedStatement pstmt = null;
 try {
  pstmt = con[pointer].prepareStatement(SELECT * FROM kostensaetze);
  pstmt.executeQuery();
 } catch (Exception e) {
  return false;
 } finally {
  try {
   if (pstmt != null)
pstmt.close();
  } catch (Exception e) {}
 }
 return true;
}

This method should test if the connection is still ok. I hope someone can help 
me.

tia, Oli

PS:
I think the DB close the connection while the tomcat is running and I don't 
know (at my Connection-Pool) how to know when that happened. Because isClosed() 
don’t care about that problem. :-(

 -Ursprüngliche Nachricht-
 Von: Propes, Barry L [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 4. Oktober 2006 23:27
 An: Tomcat Users List; [EMAIL PROTECTED]
 Betreff: RE: error while running a webapp
 
 pdf didn't come through.
 
 -Original Message-
 From: Oliver Wagner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 04, 2006 4:21 PM
 To: users@tomcat.apache.org
 Subject: error while running a webapp
 
 
 Hello,
 I wrote a web application (JSPs, Beans, JDBC and MYSQL) and use the tomcat
 container. But if the container runs a while the strange error occurs. I
 don't know how to solve this problem. While the problem occurs the other
 web applications are still running without a problem. After a restart of
 the tomcat-Container the problem is gone and the web application (with the
 problem before) works again - but some hours later the error comes again.
 
 I attached the message as a pdf-File and hope someone can help me to solve
 the problem, because I don't have any ideas anymore.
 
 Tia and greets
 
 Oli



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error while running a webapp

2006-10-04 Thread Oliver Wagner
Hello,
I wrote a web application (JSPs, Beans, JDBC and MYSQL) and use the tomcat 
container. But if the container runs a while the strange error occurs. I don't 
know how to solve this problem. While the problem occurs the other web 
applications are still running without a problem. After a restart of the 
tomcat-Container the problem is gone and the web application (with the problem 
before) works again - but some hours later the error comes again.

I attached the message as a pdf-File and hope someone can help me to solve the 
problem, because I don't have any ideas anymore.

Tia and greets

Oli

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Tomcat 5.5.17 with windows xp

2006-09-24 Thread Oliver Wagner
Hello,
the last years I developed my webapps with tomcat and Linux. Because of my new 
employer I have to use windows now. But there occurs a problem. At the moment I 
debug my webapp.

With Tomcat and Linux I just have to restart the server and the container is 
completely erased. After the restart the tomcat react like it was never touched 
before.

Tomcat and windows react different. A exception occurred, I change some classes 
to solve the problem, I stop the Tomcat, wait a second and start the tomcat 
again. But the Tomcat behaviour is very strange. A normal behaviour (like 
with Linux) is only possible, if I restart my computer (windows).

But that need very much time, what can I do to have the same behaviour like 
tomcat and Linux? I hope someone can help me.

Tia

Oli


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Tomcat 5.5.17 with windows xp

2006-09-24 Thread Oliver Wagner
Hello,
now I noticed, that it is enough to restart my browser. The browser restart is 
needed by IE and Firefox. With Linux I don't need to restart the Firefox to see 
the changes from the restarted web server. What is the reason for that 
behaviour?

I use the session-mechanism from the tomcat - is that the root of the problem?

Greets

Oli

PS:
Sorry for my bad English.

 -Ursprüngliche Nachricht-
 Von: Oliver Wagner [mailto:[EMAIL PROTECTED]
 Gesendet: Sonntag, 24. September 2006 09:39
 An: users@tomcat.apache.org
 Betreff: Tomcat 5.5.17 with windows xp
 
 Hello,
 the last years I developed my webapps with tomcat and Linux. Because of my
 new employer I have to use windows now. But there occurs a problem. At the
 moment I debug my webapp.
 
 With Tomcat and Linux I just have to restart the server and the container
 is completely erased. After the restart the tomcat react like it was never
 touched before.
 
 Tomcat and windows react different. A exception occurred, I change some
 classes to solve the problem, I stop the Tomcat, wait a second and start
 the tomcat again. But the Tomcat behaviour is very strange. A normal
 behaviour (like with Linux) is only possible, if I restart my computer
 (windows).
 
 But that need very much time, what can I do to have the same behaviour
 like tomcat and Linux? I hope someone can help me.
 
 Tia
 
 Oli
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]