How do you debug Authentication Problems

2006-01-13 Thread Alan Chandler
I have tomcat4 fronted by apache2 and linked via mod_jk. I am running well with basic applications, but up until now I have been manually loading applications. I tried to use the manager application, and it is asking me to authenticate myself. I have added myself into the manager role in the t

Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-13 Thread Ken Johanson
There's a comment in the web.xml settings for the default servlet: Is there any possibility that you're actually getting into the default servlet rather than your own? - Chuck Yes Sir, that was the answer!! It works in write-mode now. Apparently that setting must be made on the Defa

Easiest Open Source Shopping Cart Fnctnlty to plug into Tomcat

2006-01-13 Thread Kyle
Hello folks I was wondering whether someone can point me in the direction of some Open Source Shopping Cart type functionality I can easily plug-in to Tomcat and integrate into a site please? I found a few on Google, but have no idea which does what and how complex , etc. Can you offer gui

Re: Question reg. setting the environment variable

2006-01-13 Thread gupta vidhi
thanks for the great help.finally, i'd installed n currently running it successfully. i've one more query: previously i'd installed Tomcat 5.5 with jdk-1_5_0_02-windows-i586-p-iftw,but was facing many problems as everytime i run it on the localhost, everytime the "page cannot be displayed"

Re: Question reg. setting the environment variable

2006-01-13 Thread gupta vidhi
thanks for the great help.finally, i'd installed n currently running it successfully. i've one more query: previously i'd installed Tomcat 5.5 with jdk-1_5_0_02-windows-i586-p-iftw,but was facing many problems as everytime i run it on the localhost, everytime the "page cannot be displayed" p

RE: connection pooling mysql (Pool Exhausted exception)

2006-01-13 Thread Daniel Blumenthal
I received a similar (identical?) error when I was first starting up, and the solution was to be very careful to ALWAYS close ResultSets. ResultSet rset = stmt.executeQuery("select foo from bar where ID=7"); int foo = rset.getInt(1); rset.close(); > -Original Message- > From: Khawaja Sham

RE: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-13 Thread Caldarale, Charles R
> From: Ken Johanson [mailto:[EMAIL PROTECTED] > Subject: Re: Unable to override doPut(), etc, from Tomcat's > JSPServlet (response 403) > > Perhaps tomcat 5 outright prohibits PUT and other methods from even > getting to _jspService (or JspServlet in general)?? There's a comment in the web.xm

Re: Environmental Variables set

2006-01-13 Thread Wade Chandler
--- Zach Moazeni <[EMAIL PROTECTED]> wrote: > Hello, > > In a Spring application that is being deployed to > Tomcat I need to be able to load a file. The file > resides in the /WEB-INF folder of the webapp. Is > there any environmental variables I can be sure will > be set so I can open a file re

RE: PreparedStatement w/ Connection Pooling

2006-01-13 Thread George Sexton
> -Original Message- > From: Khawaja Shams [mailto:[EMAIL PROTECTED] > Sent: Friday, January 13, 2006 2:44 PM > To: Tomcat Users List > Subject: Re: PreparedStatement w/ Connection Pooling > > Hello, > Benchmarking is precisely what I am trying to do. However, if I > prepare a stat

Re: PreparedStatement w/ Connection Pooling

2006-01-13 Thread Marc Richards
The primary performance benefit to be gained from prepared statements is from the SQL package that some DB systems support. Your first step would be to investigate this with your DB and find out if package support is offered - if not, prepared statements will probably offer you some organizational

Deploying New Context Descriptor from Within Webapp

2006-01-13 Thread Brandon Philips
Hello- I am creating a first-run configuration wizard for a webapp; it would be something similiar to OpenCMS' installer. When first deployed the application has a minimal web.xml and context.xml but after a user uses the setup form to enter their database user name and passwords the web.xml and

Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-13 Thread Ken Johanson
Tim Funk wrote: You cannot add a doPut() to your servlet and excpect it to work. But in your JSP, you can do this: // The following worked fine with tomcat 5.0.28 (plus unrelated patches) if("PUT".equals(request.getMethod()) { /*put code*/ } else { /*not put code*/ } JSP's declare Servlet.

RE: Small connection problems with JK 1.2.15 and IIS 5

2006-01-13 Thread br1
> Why do you have 30 workers? > The worker should reflect a physical connection to the backend server. > It would only make sense if you'd have 30 Tomcats behing. Yes, I do, that's why I was asking.. :-) > It depends on your client load, but I would say that 200 is more > then enough for a singl

Secure Tomcat replication for WAN

2006-01-13 Thread Gmail User
Has anyone implemented some replication strategy for Tomcat on WAN. It is my understanding that the regular replication mechanism that broadcasts invitations over UDP is not very suitable for this as it would broadcast to too many listeners as well as create a security risks. Also, to the best of m

RE: PreparedStatement w/ Connection Pooling

2006-01-13 Thread GB Developer
I've looked at the CVS HEAD for PoolingConnection... http://cvs.apache.org/viewcvs.cgi/jakarta-commons/dbcp/src/java/org/apache/c ommons/dbcp/PoolingConnection.java?view=markup public synchronized PreparedStatement prepareStatement(String sql) throws SQLException { try { return(PreparedS

Re: [Fwd: Re: Cannot find servlet]

2006-01-13 Thread Thom Hehl
As we all suspected, I was, in fact, being an idiot. My lib directory was under the rex directory, not under rex/WEB-INF. I've been looking at this for hours and it just never sunk in. Must be tired. Been a long week. Thanks! Thom Hehl wrote: I tried uncompressing the jar file into the classe

Environmental Variables set

2006-01-13 Thread Zach Moazeni
Hello, In a Spring application that is being deployed to Tomcat I need to be able to load a file. The file resides in the /WEB-INF folder of the webapp. Is there any environmental variables I can be sure will be set so I can open a file relative to Tomcat? Things like "catalina.home" or "catal

JK Apache2 Tomcat 5.0.28 Truncated Response

2006-01-13 Thread Ian Shafer
Hello, I'm having trouble with my Apache2/Tomcat 5 via JK setup. Most requests are completed fine, but large requests (large is over 64K) are truncated. I get a variable amount of data back. I'm testing this using wget (a simple command line http client). When I go directly to Tomcat, I g

RE: Changing default web apps

2006-01-13 Thread Caldarale, Charles R
> From: Khawaja Shams [mailto:[EMAIL PROTECTED] > Subject: Re: Changing default web apps > > However, I have a datasource defined in > conf/Catalina/localhost/MyApp.xml. > Is there any way to access this datasource without > declaring it here? Put your tag and everything inside it in webapps/R

[Fwd: Re: Cannot find servlet]

2006-01-13 Thread Thom Hehl
I tried uncompressing the jar file into the classes directory, but it didn't change anything. Anyone have any ideas for me to look at? I don't know what's up. Thom Hehl Heavyweight Software for Heavyweight Needs www.heavyweightsoftware.com -- "In every revolution, there is one man with a vision

Re: Changing default web apps

2006-01-13 Thread Khawaja Shams
Hello, this suggestion is a great short cut. However, I have a datasource defined in conf/Catalina/localhost/MyApp.xml. Is there any way to access this datasource without declaring it here? I tried declaring a global datasource in server.xml, but the only way I figured out how to use it was by

Re: PreparedStatement w/ Connection Pooling

2006-01-13 Thread Khawaja Shams
Hello, Benchmarking is precisely what I am trying to do. However, if I prepare a statement every time I need to execute the statement, it would not be an accurate measurement of optimizations that preparedStatements can offer. In fact, this would probably be worse than just executing the sta

Re: Realms

2006-01-13 Thread Khawaja Shams
I have gotten JDBC realm to work with 5.5.12. On 1/13/06, Vinny <[EMAIL PROTECTED]> wrote: > > Hello, > I decided to give 5.5.15 a try and I am not able to get any > Realm implementation to work except for MemoryRealm. > This is the same issue that I have been having in 5.5.14. > I can confirm tha

Re: Cannot find servlet

2006-01-13 Thread Thom Hehl
I verified this and the class is correctly stored in the jar. I'm really stumped on this one. Wade Chandler wrote: --- Thom Hehl <[EMAIL PROTECTED]> wrote: Sigh, I don't know why I keep having problems like this. I have the following servlet: package rex; /* * Copyright 2006, Heavyweig

Re: Cannot find servlet

2006-01-13 Thread Wade Chandler
--- Thom Hehl <[EMAIL PROTECTED]> wrote: > Sigh, I don't know why I keep having problems like > this. I have the > following servlet: > > package rex; > /* > * Copyright 2006, Heavyweight Software. All rights > reserved. > */ > > import java.io.IOException; > > import javax.servlet.ServletEx

Cannot find servlet

2006-01-13 Thread Thom Hehl
Sigh, I don't know why I keep having problems like this. I have the following servlet: package rex; /* * Copyright 2006, Heavyweight Software. All rights reserved. */ import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.

RE: Image Scaling Code

2006-01-13 Thread Ben Kim
On Fri, 13 Jan 2006, Wouter Boers wrote: >That was the old way to fix a bug in the JVM I believe. Anyways nowadays you >can pass the following option to the server when starting: >-Djava.awt.headless=true This page seems to summarize it all ... http://tomcat.apache.org/faq/unix.html How do

Realms

2006-01-13 Thread Vinny
Hello, I decided to give 5.5.15 a try and I am not able to get any Realm implementation to work except for MemoryRealm. This is the same issue that I have been having in 5.5.14. I can confirm that Datasource/JDBC/JaasRealm all do not work in 5.5.15. Any one else having Realm issues since 5.5.10 or

Re: Small connection problems with JK 1.2.15 and IIS 5

2006-01-13 Thread Mladen Turk
myrealbruno wrote: > Sorry - the message was cut for some reason. > I was also saying that one that decides to use XP Pro for a production machine should be shot (and you could reply that everyone > that decides to use Windows should be shot :-) > In the end I was only suggesting a global setti

Re: help for OutOfMemoryError

2006-01-13 Thread Tim Funk
http://tomcat.apache.org/faq/memory.html#why -Tim Qaiser Mehmood wrote: Hi everyone, Can anyone help me that why I am getting this error : 2006-01-13 09:50:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError: Java heap space

help for OutOfMemoryError

2006-01-13 Thread Qaiser Mehmood
Hi everyone, Can anyone help me that why I am getting this error : 2006-01-13 09:50:11 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.OutOfMemoryError: Java heap space Qaiser -

RE: PreparedStatement w/ Connection Pooling

2006-01-13 Thread George Sexton
Let me just ask one simple question: Have you benchmarked your queries with prepared and unprepared statements to see if there is really a performance difference? Many people blindly follow "common knowledge" about performance, and this "common knowledge" is often wrong. People waste time and ene

RE: Small connection problems with JK 1.2.15 and IIS 5

2006-01-13 Thread br1
So one shouldn't be able to put more then 1 worker because on WinXP it is not supported..? :-) I was talking about a server version infact.. more than 20 connections, etc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: java.net.BindException issue

2006-01-13 Thread Markus Schönhaber
David McMinn wrote: >I tried installing the latest version and received this error message in the logs: > :SEVERE: Error starting endpoint > > java.net.BindException: Address already in use: JVM_Bind > > What should I do now? Stop the application that has bound to the port(s) Tomcat tri

java.net.BindException issue

2006-01-13 Thread David McMinn
I tried installing the latest version and received this error message in the logs: :SEVERE: Error starting endpoint java.net.BindException: Address already in use: JVM_Bind What should I do now? David

RE: concurrency of users on tomcat

2006-01-13 Thread Peter Crowther
> From: vishwas kharajge [mailto:[EMAIL PROTECTED] > Our requirement is to provide 200 concurrent hits per second > There are 300K users registration on the server > For this what is the requirement? Hiring someone who can do the calculations. > How much bandwidht it require for giving above con

Re: forwarding JDOM-Objects

2006-01-13 Thread Christian Stalp
David Delbecq schrieb: Your class in not available for your servlet. Check in you war that com/softwareag/tamino/db/api/accessor/TInsertException is either in WEB-INF/classes, either in a .jar in WEB-INF/lib Mercy, this was really the problem. After I copied all .jar-files I need into t

Re: Tomcat 5.5 will not reload exploded applications when a class is recompiled

2006-01-13 Thread Julien Martin
Hello and thanks for the reply, The unpackwar is already set at true... Any other idea? Julien. 2006/1/13, Jarrar Hussain <[EMAIL PROTECTED]>: > > Hello Julien, > > What about the unpackWARs attribute (in server.xml)? I think its also > need to be true. > > Regards, > Jarrar. > > Julien Martin wro

Forwarding to contexts in other hosts

2006-01-13 Thread Marco Poehler
Hello, is it possible to forward a request to a context in another host-section ? for example from server.xml: ---%<--- ... ... --->%--- To forward from cont

Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-13 Thread Ken Johanson
Tim Funk wrote: You cannot add a doPut() to your servlet and excpect it to work. But in your JSP, you can do this: // The following worked fine with tomcat 5.0.28 (plus unrelated patches) if("PUT".equals(request.getMethod()) { /*put code*/ } else { /*not put code*/ } JSP's declare Servlet.

Re: Image Scaling Code

2006-01-13 Thread Dakota Jack
"headless" I think the command is. On 1/12/06, Dakota Jack <[EMAIL PROTECTED]> wrote: > > You need to set a java command option so that your code won't search for a > display. Apparently you are using this with a server that has no monitor? > I forget the option but look them up under the java co

Re: Recommended way to selectively RequestDispatch.include/forward to form based login?

2006-01-13 Thread Ken Johanson
Bill Barker wrote: . The above seems like it should work; however I happen to get a StringIndexOutOfBounds* (with tomcat 5.0.30), probably caused by RD not being able to resolve the path of a protected URI (a guess) - so I'm looking for another way.. No, it's actually because it's inc

Re: Question reg. setting the environment variable

2006-01-13 Thread Seak, Teng-Fong
gupta vidhi wrote: hello, i'd installed jdk-1_5_0_02-windows-i586-p-iftw and jakarta-tomcat-4.1.31 on desktop.but unable to set its required path.i request u to kindly help me out for the same and starting my Tomcat. You might find my answer irrelevant, but why are you still using Tomc

Re: Image Scaling Code

2006-01-13 Thread Jarrar Hussain
Hallo Wouter, Yes I had the same problem and I add: -Djava.awt.headless=true option in /usr/local/tomcat5/bin/catalina.sh file like this: CATALINA_OPTS="-Djava.awt.headless=true" and than everything works as expected. Regards, Jarrar. Wouter Boers wrote: That was the old way to fix a b

Re: forwarding JDOM-Objects

2006-01-13 Thread David Delbecq
Your class in not available for your servlet. Check in you war that com/softwareag/tamino/db/api/accessor/TInsertException is either in WEB-INF/classes, either in a .jar in WEB-INF/lib Le Vendredi 13 Janvier 2006 15:44, Christian Stalp a écrit : > So I wrote this servlet, it gets a JDOM-object

Re: Tomcat 5.5 will not reload exploded applications when a class is recompiled

2006-01-13 Thread Jarrar Hussain
Hello Julien, What about the unpackWARs attribute (in server.xml)? I think its also need to be true. Regards, Jarrar. Julien Martin wrote: Hello, I have the following problem: Tomcat 5.5 will not reload exploded applications when a class is recompiled. Is there any modification to be applie

Re: forwarding JDOM-Objects

2006-01-13 Thread Christian Stalp
So I wrote this servlet, it gets a JDOM-object from another servlet and returns with a another attribute. Document mydoc = (Document) this.getServletContext().getAttribute("jdom_object"); TXMLObject tobj = TXMLObject.newInstance ( mydoc); ServletContext sercon = this.getServletC

Tomcat 5.5 will not reload exploded applications when a class is recompiled

2006-01-13 Thread Julien Martin
Hello, I have the following problem: Tomcat 5.5 will not reload exploded applications when a class is recompiled. Is there any modification to be applied to Tomcat. Note that my autodeploy attribute is set to true(host) and that my reloadable attribute is also set to true(context). Any clue very we

Re: Unable to override doPut(), etc, from Tomcat's JSPServlet (response 403)

2006-01-13 Thread Tim Funk
You cannot add a doPut() to your servlet and excpect it to work. But in your JSP, you can do this: // The following worked fine with tomcat 5.0.28 (plus unrelated patches) if("PUT".equals(request.getMethod()) { /*put code*/ } else { /*not put code*/ } JSP's declare Servlet.service() as fina

Re: help for error javax.servlet.ServletException

2006-01-13 Thread Tim Funk
A servlet threw a Throwwable during its service method which was not caught by any number of exceptions. There should be something in the logs (catalina.out of localhost_log_{date}.txt which should tell you the nested part of the exception. Otherwise - start looking for timestamps and trace tha

Re: concurrency of users on tomcat

2006-01-13 Thread Tim Funk
Tomcat should be able to handle this. The real question is "can your application handle it? Bandwidth is application dependent. You'll need to examine the average file size being returned. Whether the file can be compressed (via gzip). How many database queries need to be done. Can the databas

Re: Small connection problems with JK 1.2.15 and IIS 5

2006-01-13 Thread Mladen Turk
br1 wrote: Mladen, Thank you very much for your reply. I didn't catch cachesize relates to concurrent users, in this case I will have to change a lot of workers. So I assume that there are (currently) no recommendations regarding a maximum total worker.cachesize for a single IIS5 server, corr

RE: Small connection problems with JK 1.2.15 and IIS 5

2006-01-13 Thread br1
Mladen, Thank you very much for your reply. I didn't catch cachesize relates to concurrent users, in this case I will have to change a lot of workers. So I assume that there are (currently) no recommendations regarding a maximum total worker.cachesize for a single IIS5 server, correct? Also, a

Tomcat 5.5. APR Standalone Page not loading without compression ...

2006-01-13 Thread M A
Hi All, My config .. tomcat 5.5 jdk1.5._06 apr 1.2.2 tomcat-jni 1.1.0 server.xml The problem is this, I have a jsp page with will result in about 14KB worth of HTML.. with compression off .. this page doesnt not load, i keep getting a could not load page .. if i create a html file representi

RE: Image Scaling Code

2006-01-13 Thread Wouter Boers
That was the old way to fix a bug in the JVM I believe. Anyways nowadays you can pass the following option to the server when starting: -Djava.awt.headless=true That will prevent the errors mentioned below when you don't have a graphical shell running on your system. Regards, Wouter -Origi

Re: Question reg. setting the environment variable

2006-01-13 Thread vineesh kumar
which windows version u r using? Usually u can right click on start->controlpanel-> system select the ADVANCED tab then click the environmental variables at the bottom and enter ur calsspath and all On 1/13/06, gupta vidhi <[EMAIL PROTECTED]> wrote: > hello, > > i'd installed jdk-1_5_0_02-

Tomcat on Windows Server 2003 : What Windows User Account?

2006-01-13 Thread Tom Burke
I wonder if recipients can advise me what Windows user account would be used by an external process triggered by a JSP app running on Tomcat? We have an JSP application, served up by Tomcat, with a MySQL back-end database. At intervals it is necessary to do a bulk update of the database. We int