Re: HP-UX Tomcat refuses connections after boot

2007-01-29 Thread Pulkit Singhal
Hi, It seems like one of the lines in your catalina.sh file can't find the "touch" command. I'm guessing that starting/stopping manually is not quite the same thing as the server coming up via "/sbin/rc3.d/S998Tomcat start" when it comes to the path that has the touch command in it. On 1/29/07,

HP-UX Tomcat refuses connections after boot

2007-01-29 Thread mocherla14
Effect: Right after booting from HP-UX PA-RISC, Tomcat refuses connections. Description: No startup error messages are logged and processes are up and running. Checking /etc/rc.log: Starting Tomcat server Output from "/sbin/rc3.d/S998Tomcat start": --

Re: session hijacking again

2007-01-29 Thread Martin Gainty
John and Peter SE seems definitely O/T so please email me offline on this topic of Social Engineering..Perhaps this is a project which the government never discloses? Admittedly I have no information as to the definition and or implications of such a plan Thanks, Martin-- -

Apache2, Tomcat5.5, mod_jk and HTTP content-type

2007-01-29 Thread Joe Pemberton
I'm trying to connect Apache2 with mod_jk to Tomcat5.5. Almost everything seems to work. However, if I have cookies disabled, Tomcat will rewrite all urls to include ;jsessionid=X (which is I want and expect). Unfortunately, it seems as though Apache2 insists on determining the content-

Re: Tomcat and MySQL sync problems

2007-01-29 Thread Mark Thomas
Luiz Siqueira wrote: > Sorry about this message but I'm a little despaired. > > I create a JAR library with the business logic, I use Hibernate and > MySQL. Everything work fine but when I try use the JAR from a WebApp > using the bundled TomCat on NetBeans 5.5 I got an server error. I > believe t

Re: Tomcat 6.0.8 & JSF 1.2 RI

2007-01-29 Thread Jason Rasmussen
I found that with Tomcat 6.0.8, I didn't need to initialize the JspRuntimeContext, however my ELResolver is never actually hit. I placed print outs in the constructor and all the overridden methods of my ELResolver to determine if they were ever called. Only the constructor is ever called. The

RE: HTTP PUT - HOW TO CONFIG?

2007-01-29 Thread Robert Harper
-Original Message- From: Zhan, Jimmy [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 3:20 PM To: Tomcat Users List Subject: RE: HTTP PUT - HOW TO CONFIG? Hi Robert, Thanks for your help. After I added that readonly into web.xml, I can put files into /webapp

Re: session hijacking again

2007-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: > We plan on using SSL to do the initial authentication, but then use > session ids without SSL for the data transfer. Okay, thanks for clarifying that. This is definitely a good thing to do, and it appears that session hijack

RE: HTTP PUT - HOW TO CONFIG?

2007-01-29 Thread Zhan, Jimmy
Hi Robert, Thanks for your help. After I added that readonly into web.xml, I can put files into /webapps/incoming. Right now it is ok for me. Because user ONLY can put files under /webapps/incoming dir. Also, in this way, tomcat does not require userID and passw

Tomcat 6.0.7: JspContext is null in ELContext

2007-01-29 Thread Jason Rasmussen
I set up the ELResolver stack as follows: javax.servlet.jsp.el.ImplicitObjectELResolver demo.resolver.DCELResolver javax.el.MapELResolver javax.el.ResourceBundleELResolver javax.el.ListELResolver javax.el.ArrayELResolver javax.el.BeanELResolver demo.resolver.DebugE

Re: session hijacking again

2007-01-29 Thread John Caron
Hi Peter: Peter Stavrinides wrote: Do you use Java? yes We are a financial institution, we use a Java Framework based on servlets with SSL, but if you ask my opinion SSL is not the big issue. The vast majority of hacked sites are social engineering attacks. Secure your database (do not s

Re: session hijacking again

2007-01-29 Thread John Caron
Hi Christopher: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, John Caron wrote: Our application is serving large amounts of scientific data over HTTP. The user needs to login to access the data. We would like to use session ids to reduce the login overhead. W

Re: datasource-realm troubles

2007-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oliver, Walter, Oliver (BR/ICI3) wrote: > In META-INF/Context.xml i defined a datasource: > > and in web.xml a resource reference: > > [snip] > With hibernate everything works fine, no problems, but if i define a > datasource realm in Context.xm

Re: Tomcat and MySQL sync problems

2007-01-29 Thread Martin Dubuc
Not sure if it is the same problem, but we had similar issue and resolved it by increasing value of wait_timeout in /etc/my.cnf: wait_timeout=2147483647 I am not sure if the issue we were seeing was tied wth Tomcat or not though. Martin On 1/29/07, Chris Long <[EMAIL PROTECTED]> wrote: Hello,

Re: TCP Connection Aborted problems

2007-01-29 Thread JNeuhoff
We'll repeat the stresstest with subsequent threaddump tomorrow morning. However, I just experienced the same TCP Connections aborted scenario on another test server running the same web service ('/demo-e/servlet'), and I managed to get a threaddump from there: [2007-01-29 17:21:07] [info] Consol

Re: How do I increase performance on Tomcat?

2007-01-29 Thread Leon Rosenberg
On 1/29/07, Nelson, Tracy M. <[EMAIL PROTECTED]> wrote: | From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] | Sent: Monday, 29 January, 2007 06:11 | | I have an application that has been working fine for last half an year | or so. Recently the load has started increasing and the time it takes t

AW: datasource-realm troubles

2007-01-29 Thread Walter, Oliver (BR/ICI3)
Hello David, thanks for the reply. We are talking about your 2. description. The file is named "context.xml" and it is stored in the war`s META-INF directory. The full error output is: 106627 [http-8080-Processor24] DEBUG com.jmangos.beans.LoginBean - Validating given password. 106627 [http-8

RE: How do I increase performance on Tomcat?

2007-01-29 Thread Nelson, Tracy M.
| From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] | Sent: Monday, 29 January, 2007 06:11 | | I have an application that has been working fine for last half an year | or so. Recently the load has started increasing and the time it takes to | serve a request is going up significantly. When I loo

Re: datasource-realm troubles

2007-01-29 Thread David Smith
I would guess from the outset that your "Context.xml" file isn't being used. Where are your putting it and what are you naming it? What's the name of your webapp when deployed? Quick checks: 1. It has to be named to match your webapp if your are storing it in Catalina/localhost and deploying an

Re: Tomcat and MySQL sync problems

2007-01-29 Thread Luiz Siqueira
Sorry about this message but I'm a little despaired. I create a JAR library with the business logic, I use Hibernate and MySQL. Everything work fine but when I try use the JAR from a WebApp using the bundled TomCat on NetBeans 5.5 I got an server error. I believe that the problem is that the serv

Re: Tomcat and MySQL sync problems

2007-01-29 Thread David Smith
It appears your code is holding on to a connection to the database. Bad design practice. Review your code for any place that might keep hold of a connection between requests and make sure the connection is closed. Also, If you haven't done so yet, use a database connection pool. If using tomca

datasource-realm troubles

2007-01-29 Thread Walter, Oliver (BR/ICI3)
Hello, i have some trouble using a datasource realm in tomcat 5.5.20, jdk 1.5.0_09. In META-INF/Context.xml i defined a datasource: and in web.xml a resource reference: DB Connection jdbc/mangos javax.sql.DataSource Container With hibernate everything works

Re: Can servlets safely spawn threads?

2007-01-29 Thread Bill Au
If you are spawning threads from your servlet, make sure that they are cleaned up when the servlet is destroyed. Otherwise, you will have a thread leak. I have ran into this problem when the webapp is reloaded without restarting the server. Each leaked thread has a reference to its classloader,

Re: Tomcat 6.0.8 & JSF 1.2 RI

2007-01-29 Thread Zaphod
I found the reason a few days ago: I overlooked that I had the jsp lib in 2 different locations, so they were loaded in different classloaders. Thanks to all replies. martind wrote: > > I am able to use JSF 1.2_03 RI inside Tomcat 6.0.8. Ensure you have > the JSTL 1.2 also loaded. > > Ma

RE: Tomcat and MySQL sync problems

2007-01-29 Thread Scott Purcell
If I remember correctly, MySQL basically disconnects and shutdowns after a certain amount of time. I remember doing something with a "reload="true" in the datasource to prevent this. Hopefully someone else may clue you in better, but you may want to check the datasource props and see if this is va

Re: Tomcat and MySQL sync problems

2007-01-29 Thread Andreas Deller
Hi We had a simliar problem with Oracle and Tomcat 4.1.30 and a firewall in between and I don't remember the exact error message, so I'm not sure if this helps: The problem was that Tomcat held the DB connection open infinitely, and the firewall after a while decided it wanted to drop the connect

Re: XML Parse problem in a webapp context.xml

2007-01-29 Thread Pete
Mark, here is the stacktrace. Hope that helps. -P Jan 26, 2007 1:01:51 PM org.apache.tomcat.util.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflec

Tomcat and MySQL sync problems

2007-01-29 Thread Chris Long
Hello, I'm having a problem where it seems Tomcat and MySQL go out of sync and I am no longer able to connect to the MySQL database. The only way I've found to be able to reconnect to my database is to restart Tomcat. This generally seems to happen some time over the course of the night and I n

Re: Can servlets safely spawn threads?

2007-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Danny, David Delbecq wrote: > 1) Your servlet must always take care to finish all Threads it has > spawned. This mean when servlet gets unloaded, you must have provided a > mecanism in your servlet to stop all running threads your servlet has > create

Tomcat bundled Hibernate MySQL

2007-01-29 Thread Luiz Siqueira
I create a JAR library with the business logic, I use Hibernate and MySQL. Everything work fine but when I try use the JAR from a WebApp using the bundled TomCat on NetBeans 5.5 I got an server error. I believe that the problem is that the server don't know about Hibernate and the MySQL drive. I d

Jars of different webapps causing problem

2007-01-29 Thread CHHAJED, Amit, GBM
Hi there, I have problem running two webapps deployed on my Tomcat 5.X, which otherwise works fine, when deployed separately. Both the webapps have the same jars related to visibroker (vbjorb and vbjsec). When I try running both the webapp together in the same tomcat instance, my first app throws

Re: Can servlets safely spawn threads?

2007-01-29 Thread David Delbecq
En l'instant précis du 01/29/07 11:33, Danny Ayers s'exprimait en ces termes: > Hi, > > I would be grateful is someone could answer these questions: > > * Can servlets safely spawn threads? short answer, yes. They *can*. However that does not mean all spawned Threads are safe. > > * If so, under w

RE: How do I increase performance on Tomcat?

2007-01-29 Thread Peter Crowther
> From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED] > I have an application that has been working fine for last > half an year > or so. Recently the load has started increasing and the time > it takes to > serve a request is going up significantly. When I look at the resource > utilization(mem

How do I increase performance on Tomcat?

2007-01-29 Thread Gaurav Kushwaha
Hi, I have an application that has been working fine for last half an year or so. Recently the load has started increasing and the time it takes to serve a request is going up significantly. When I look at the resource utilization(memory and CPU), it hardly shows an increase. Garbage collection

Re: Tomcat Production Date processing

2007-01-29 Thread Jacob Rhoden
Jacob Rhoden wrote: Sql problem: java.sql.SQLException: Cannot convert value '2007-01-28 01:19:15' from column 5(2007-01-28 01:19:15 ) to DATE. For future reference, If you receive this error in your servlet, it can be resolved by upgrading the mysql connector to the latest version. Best

Problem with static files served from NAS

2007-01-29 Thread Andreas Deller
Hi This is a side/follow-up thread to 'HTTP response code "200 -" in access log'. One contributor hinted that files being served from a NAS could cause problems = files not being able to be read sometimes. This could yield the access log entries with HTTP code 200 but no content length ('200 -')

Re: Tomcat not reading context path directive

2007-01-29 Thread Markus Schönhaber
Alan Cooper wrote: > I'm running Tomcat 5.5.12 (Red Hat Enterprise Linux stock packages). > > I am trying to set a Context path directive for /ejava/appname > > Tomcat is ignoring the Context path and instead taking the context from > the xml file name (so it's reading the file and the docBase dir

Re: TCP Connection Aborted problems

2007-01-29 Thread Rainer Jung
I had a look at your log files. It really looks like something is wrong on the remote=tomcat side (or in between mod_jk and tomcat). Please do a couple of thread dumps for the tomcat JVM immediately after your stress test, during the time you cannot send request via mod_jk. Under Windows you h

Re: Can't startup Tomcat properly, help!

2007-01-29 Thread Jacob Rhoden
You can only run two versions of tomcat if they are configured to use different network ports. Make sore both versions are using a different port. Best Regards, Jacob ICT Department wrote: New problem, although the one from the other day still exists about the IE issues with starting JSPWiki -

TCP Connection Aborted problems

2007-01-29 Thread JNeuhoff
As a followup from the http://www.nabble.com/mod_jk-replacement--tf3050993.html I am still looking for a working solution of the err=-53 (TCP Connection aborted) problem. To summarize what is happening: We have a Windows 2003 server (with Apache 2.0.59, mod_jk 1.2.20 and Tomcat 5.5.17). It was

Can't startup Tomcat properly, help!

2007-01-29 Thread ICT Department
New problem, although the one from the other day still exists about the IE issues with starting JSPWiki - just can't even attempt to sort this as now Tomcat won't start correctly! Basically, we installed SonicWall ViewPoint (Firewall software for creating reports of Internet usage etc) on Friday,

Tomcat Production Date processing

2007-01-29 Thread Jacob Rhoden
Hi Guys, I am getting a very strange problem I have no idea where to start and I thought you guys might know, its possible its not may not be a tomcat problem... I am running netbeans 5.5(tomcat 5.5.17)/java 1.5/mysql connector 3.1.13 The production server has java 1.6/mysql connecter 3.1.13

Can servlets safely spawn threads?

2007-01-29 Thread Danny Ayers
Hi, I would be grateful is someone could answer these questions: * Can servlets safely spawn threads? * If so, under what conditions? I tried to find the answers searching the web, but found conflicting views. So I thought it worth asking about a specific servlet container implemention. I'm tr

Tomcat not reading context path directive

2007-01-29 Thread Alan Cooper
HI there, I'm running Tomcat 5.5.12 (Red Hat Enterprise Linux stock packages). I am trying to set a Context path directive for /ejava/appname Tomcat is ignoring the Context path and instead taking the context from the xml file name (so it's reading the file and the docBase directive). The ser

Re: Cannot authenticate client with Tomcat 5.0.28

2007-01-29 Thread Jose Rafael Romero Miret
[EMAIL PROTECTED] wrote: Hi everyone, I work for a municipality we need to implement a service that can log users(from a browser) by electronic identity card. I've installed a card reader, and created https connector for tomcat 5.5 that way: maxThreads="150" minSpareThreads="

Cannot authenticate client with Tomcat 5.0.28

2007-01-29 Thread arrow . toni
Hi everyone, I work for a municipality we need to implement a service that can log users(from a browser) by electronic identity card. I've installed a card reader, and created https connector for tomcat 5.5 that way: For server authentication, I've created a self-signed certificate us

Re: session hijacking again

2007-01-29 Thread Peter Stavrinides
Do you use Java? We are a financial institution, we use a Java Framework based on servlets with SSL, but if you ask my opinion SSL is not the big issue. The vast majority of hacked sites are social engineering attacks. Secure your database (do not store clear text passwords in the database) m