How to configure session replication with a database

2006-11-13 Thread Hacim Bengali
We want to use session replication using a database to access sessions from several servers behind a load balancer. When a request is sent to the load balancer we do not know which server actually serves the request. Thus the session data must be up-to-date in the database at once (at once

Re: Tomcat 6 and comet

2006-11-13 Thread silvanoh722
hi. just install tomcat doesn't work because you need the java native support for the apr. see the documentation at http://tomcat.apache.org/tomcat-6.0-doc/apr.html you must install the native support which you can find it (tomcat-native.tar.gz) in the bin directory of the apache-tomcat package.

Re: Tomcat 6 and comet

2006-11-13 Thread Peter Rossbach
Hi, Comet style communication work also with the new NIO Connector. Test it with Tomcat 6.0.1 or the svn trunk. Connector port=8084 URIEncoding=UTF-8 connectionTimeout=30 protocol=org.apache.coyote.http11.Http11NioProtocol/

mod_jk - logging the name of the worker

2006-11-13 Thread Henk Fictorie
Hi, Since recently the name of the worker isn't necessary the same as the jvmRoute of the connected Tomcat instance. You can specify: worker.foo.jvm_route=bar In the mod_jk logging these two names are used both, which causes some confusion. The requestlogging will used the jvm_route, while the

Re: mod_jk - logging the name of the worker

2006-11-13 Thread Rainer Jung
I'll have a look into it. Henk Fictorie schrieb: Hi, Since recently the name of the worker isn't necessary the same as the jvmRoute of the connected Tomcat instance. You can specify: worker.foo.jvm_route=bar In the mod_jk logging these two names are used both, which causes some

RE: StandartSession.accessCount bug?

2006-11-13 Thread Michael Kantarovich
So what about this bug? When the fix will be out? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Sunday, November 05, 2006 1:34 AM To: Tomcat Users List Subject: Re: StandartSession.accessCount bug? Christopher Schultz wrote: 150ns per request (on my hardware) is

Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel
hi there i'm trying to alter the bootstrap.java class to fit my needs. i got the source of 5.5.20. now i altered the source in eclipse and exported all files that belong to it to bootstrap.jar and copy it to my tomcat/bin dir. unfortunately i get the following error-message while trying to

Re: Problem with bootstrap.java

2006-11-13 Thread Rainer Jung
It's looking for LogFactory in main of Bootstrap. Have a look to learn at the manifest of the bootstrap.jar to learn about the dependencies. Regards, Rainer Stephan Schöffel wrote: hi there i'm trying to alter the bootstrap.java class to fit my needs. i got the source of 5.5.20. now i

Re: Problem with bootstrap.java

2006-11-13 Thread David Delbecq
Log factory is part of the commons loggin facilities. Try to use the tomcat provided build script instead of using eclipse jar builder to create your bootstrap.jar Stephan Schöffel a écrit : hi there i'm trying to alter the bootstrap.java class to fit my needs. i got the source of 5.5.20. now

JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved....

2006-11-13 Thread Mano
Hi, Am trying to get the Springapp (the example found in the Spring Framework 2.0 running on my system. Am running Tomcat 5.5.17 and jdk 1.5). When I try to access localhost:8080/mano-projects/mostgain/ I get the following error: _ exception

Re: JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved....

2006-11-13 Thread David Delbecq
This is most probably a problem in the example webapplication (missing jstl related jar). Refer to spring framework mailing list. Mano a écrit : Hi, Am trying to get the Springapp (the example found in the Spring Framework 2.0 running on my system. Am running Tomcat 5.5.17 and jdk 1.5). When

Re: JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved....

2006-11-13 Thread David Delbecq
Hi, sorry, i just read the bottom of you email, i thought you had downloaded a spring app and it wasn't working. (Overlooked the bottom as a signature ^^) Your problem is most probably the leading space in your URI. Remove the space between the quote and the http:// David Delbecq a écrit : This

Re: socket connection within servlet to the same container

2006-11-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitry, Dmitry Kandalov wrote: Say I have code like this: [snip] socket = new Socket( request.getLocalAddr(), request.getLocalPort() ); socket.getOutputStream().write( requestString.getBytes( ISO-8859-1 ) );

Problem with RemoteAddrValve in Context.xml

2006-11-13 Thread Peter Neu
Hello, I'm trying to define an ip access filter with RemoteAddrValve in the context.xml file I deploy with my war file. If I read the documentation right the only thing to be done is write the following into the context.xml file: ?xml version=1.0 encoding=UTF-8? Context

Re: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel
where can i find the manifest of bootstrap.jar? It's looking for LogFactory in main of Bootstrap. Have a look to learn at the manifest of the bootstrap.jar to learn about the dependencies. Regards, Rainer Stephan Schöffel wrote: hi there i'm trying to alter the bootstrap.java class to

Re: Problem with bootstrap.java

2006-11-13 Thread Martin Gainty
I see a different error message when using the build.xml at http://tomcat.apache.org/tomcat-5.5-doc/building.html ant dir=${tomcat.home} target=download / Target download does not exist M- This e-mail communication and any attachments may contain confidential and privileged information for

Re: Problem with bootstrap.java

2006-11-13 Thread Rainer Jung
Inside the jar. Google for jar manifest will give you a link like: http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html Jars and manifest are a general notation with java, they are not special for tomcat. Stephan Schöffel wrote: where can i find the manifest of bootstrap.jar? It's

Re: How do I ........?

2006-11-13 Thread Martin Gainty
You may want to consider using ant to automate these tasks so you are not sidetracked by environment specific maladies M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the

Which version of Tomcat Native library to use?

2006-11-13 Thread Matthias Krebs
Hello, I installed Tomcat 5.5.20 and compiled the included (1.1.13) Tomcat Native Library from bin/tomcat-native.tar.gz. This works, but in the log i get this message: FEIN: An older version 1.1.3 of the Apache Tomcat Native library is installed, while Tomcat recommends version greater than

JSP Compile Error

2006-11-13 Thread michael
Hello, I am getting this error on deployment of a web app: org.apache.jasper.compiler.CompileException: /Trollope-l/trollope/index.jsp(44,12) /WEB-INF/jspf/appnav.jspf(13,54) Unterminated This happens when I deploy on Tomcat 4.0.6. However, the application was developed on and runs fine on

Re: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel
i tried running the build file. not very familiar with build files i got the following error message after downloading a lot of common libs: downloadzip: [get] Getting: http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/ drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip [get]

Re: Which version of Tomcat Native library to use?

2006-11-13 Thread Markus Schönhaber
Matthias Krebs wrote: I installed Tomcat 5.5.20 and compiled the included (1.1.13) Tomcat Native Library from bin/tomcat-native.tar.gz. This works, but in the log i get this message: FEIN: An older version 1.1.3 of the Apache Tomcat Native library is installed, while Tomcat recommends

Re: JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved....

2006-11-13 Thread Martin Gainty
Mano- I would start with a working Spring webapp such as petclinic sample webapp from spring and modify the code accordingly Feel free to contact me offline as this specific issue appears to be a mis-alignment with your spring environment M- This e-mail communication and any attachments may

Re: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel
is there a way to build boostrap.jar without having to build the whole container? David Delbecq wrote: Log factory is part of the commons loggin facilities. Try to use the tomcat provided build script instead of using eclipse jar builder to create your bootstrap.jar Stephan Schöffel a écrit

Re: Problem with bootstrap.java

2006-11-13 Thread Martin Gainty
Please display build.xml you are using M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this

Re: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel
i used the build.xml delivered with the tomcat 5.5.20 source: project name=Tomcat 5.0 Netbuild default=build basedir=. !-- = Initialize Property Values === -- !-- See build.properties.sample in the top level directory for all -- !-- property

RE: Installing my SSL Certificate.

2006-11-13 Thread Kent, Doug
Sounds like you somehow are trying to install a different reply certificate. And make sure you generate the request from the machine you are going to import the reply to. From: Andy Tipton [mailto:[EMAIL PROTECTED] Sent: Sun 11/12/2006 8:35 PM To: 'Tomcat

RE: Why is ROOT appended?

2006-11-13 Thread Caldarale, Charles R
From: D. Alvarado [mailto:[EMAIL PROTECTED] Subject: Why is ROOT appended? Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false but when i request a loose page, it gets the file from webapps/ROOT. How do I

Tomcat 6, can't display examples page

2006-11-13 Thread Dick Steflik
Hi all, I've been a Tomcat user on and off for the last five or six years. I just installed Tomcat 6 on a Fedora Core 5 box in /usr/local/share/tomcat6; when I go to localhost:8080 I get the default page (like I am supposed to) but can't bring up the examples page as I have in the past. Have

Memory Leaks

2006-11-13 Thread Daniel L. Gross
I am running tomcat 5.5.17 with the newest J-Connector talking to MySql. I have many servlets which access the database, and with Tomcat 5.5.17, it seems that each time I access a servlet, it uses more memory, and doesn't release it when the servlet is done. Previously I was running tomcat 4

RE: Tomcat 6, can't display examples page

2006-11-13 Thread Caldarale, Charles R
From: Dick Steflik [mailto:[EMAIL PROTECTED] Subject: Tomcat 6, can't display examples page Have I forgotten to do something or did I do something wrong? Neither - the new ROOT/index.html file is slightly broken. Try entering: http://localhost:8080/examples/jsp or

Re: Why is ROOT appended?

2006-11-13 Thread D. Alvarado
Ok, let me ask another question. If I want to change the directory to where I put JSP files that I don't want to package into a WAR, to say, /usr/local/apache2/htdocs, how do I do that? - Dave On 11/13/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: D. Alvarado [mailto:[EMAIL

Re: Why is ROOT appended?

2006-11-13 Thread Edoardo Panfili
D. Alvarado ha scritto: Ok, let me ask another question. If I want to change the directory to where I put JSP files that I don't want to package into a WAR, to say, /usr/local/apache2/htdocs, how do I do that? take a look at http://tomcat.apache.org/tomcat-5.5-doc/config/host.html you can

Re: Why is ROOT appended?

2006-11-13 Thread D. Alvarado
Thanks but this fails. Here's what I changed the appBase dir to Host name=localhost appBase=/usr/local/apache2/htdocs unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false and here is what happened when I restarted and tried to request a page that I just

RE: Why is ROOT appended?

2006-11-13 Thread Caldarale, Charles R
From: D. Alvarado [mailto:[EMAIL PROTECTED] Subject: Re: Why is ROOT appended? Ok, let me ask another question. If I want to change the directory to where I put JSP files that I don't want to package into a WAR, to say, /usr/local/apache2/htdocs, how do I do that? They don't have to be

Monitor Tomcat

2006-11-13 Thread Philippe Couas
What are best solution to Monitor Tomcat and verifiy Memory and ressource ? Regards Philippe

Re: Tomcat 6, can't display examples page

2006-11-13 Thread Dick Steflik
Chuck, Thanks a lot, thought I was going crazy there for a while. Dick Steflik Binghamton University Binghamton, NY Caldarale, Charles R wrote: From: Dick Steflik [mailto:[EMAIL PROTECTED] Subject: Tomcat 6, can't display examples page Have I forgotten to do something or did I do something

Re: Why is ROOT appended?

2006-11-13 Thread D. Alvarado
Thanks. I did as you instructed creating in $CATALINA_HOME/conf/Catalina/localhost the file ROOT.xml Context docBase=/usr/local/apache2/htdocs privileged=true antiResourceLocking=false antiJARLocking=false /Context and I deleted the webapps/ROOT directory. I restarted and now i get a

jsvc error: Cannot found Daemon Loader version entry point

2006-11-13 Thread Odzeyem Nuertey-Y17577
Hello, I am trying to run Tomcat as a daemon on Solaris. Compilation went succesfully but when I invoke jsvc, I get the following error log: 13/11/2006 10:53:46 12608 jsvc debug: Using default JVM in /usr/java/jre/lib/sparc/client/libjvm.so 13/11/2006 10:53:46 12608 jsvc debug: Attemtping to

Re: Tomcat 6 and comet

2006-11-13 Thread Rémy Maucherat
On 11/13/06, Peter Rossbach [EMAIL PROTECTED] wrote: Hi, Comet style communication work also with the new NIO Connector. Test it with Tomcat 6.0.1 or the svn trunk. Connector port=8084 URIEncoding=UTF-8 connectionTimeout=30

Tomcat start problem in NetBeans

2006-11-13 Thread kanika thapar
Hi All, My tomcat 5.5.9 was working fine with Netbeans but after running my module several times[im building my app with jsf pages] i started getting http 404 error.Here are the tomcat logs which mainly state error starting static resources this has happened with several projects of

Reset Connection Pool while Webapp is Running

2006-11-13 Thread Michael Tran
Hello there! I'm a relative beginner at web development and I'm wondering if you could help me with a problem. I'm building a webapp using Struts and iBatis. The problem is, I'd like to be able to change the database connection information while the app is running and without having to restart

Tomcat VS JBOSS

2006-11-13 Thread Ernie Ho
Hi, could anyone out there highlight some major differences between Tomcat and JBOSS? In particular, Tomcat is an app server with a built-in web (HTTP) server; does JBOSS require an external webserver to run its web applications ? Thanks, Ernie

Re: Memory Leaks

2006-11-13 Thread Daniel L. Gross
Additional Information. I did some more testing and it appears that the memory only goes up in tomcat 5 when I open a connection to the mysql database using the J-Connector. If I run a simple servlet that does nothing but opens a connection to my database then closes it at the end, I still

Re: Tomcat VS JBOSS

2006-11-13 Thread Karim Zibari
I think the major difference is that whereas Tomcat is only a web container (JSP and Servlet container), JBoss is full J2EE application server that also supports business components and enterprise JavaBeans. Best regards Karim Zibari - Original Message From: Ernie Ho [EMAIL

Connection Pooling

2006-11-13 Thread Karim Zibari
Hi I have been using this connection pooling declaration for my web app for many months but I never really know what it is doing: Resource name=jdbc/JSNDB auth=Container type=javax.sql.DataSource maxActive=50 maxIdle=30 maxWait=1

Re: Tomcat VS JBOSS

2006-11-13 Thread Edoardo Panfili
Ernie Ho ha scritto: Hi, could anyone out there highlight some major differences between Tomcat and JBOSS? In particular, Tomcat is an app server with a built-in web (HTTP) server; does JBOSS require an external webserver to run its web applications ? Jboss is an application server

Re: Connection Pooling

2006-11-13 Thread David Smith
With maxWait=1, I believe on pool exhaustion, it'll wait for up to 10 seconds for one to become available. Failing that, I'm not sure. The request might get a null connection back or an exception. Honestly I've never looked at the internals of DBCP, but I have done some programming work on

session replication/tomcat 5.5

2006-11-13 Thread David O'Dell
Is anyone using session replication in production? Is there an alternative to using multicasting? In the doc http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html It states This is an algorithm that is only efficient when the clusters are small. I have 6 tomcat instances behind a load

RE: Tomcat VS JBOSS

2006-11-13 Thread Caldarale, Charles R
From: Ernie Ho [mailto:[EMAIL PROTECTED] Subject: Tomcat VS JBOSS In particular, Tomcat is an app server with a built-in web (HTTP) server; does JBOSS require an external webserver to run its web applications ? Actually, Tomcat is a component of JBoss; no external webservers are

RE: Tomcat start problem in NetBeans

2006-11-13 Thread Caldarale, Charles R
From: kanika thapar [mailto:[EMAIL PROTECTED] Subject: Tomcat start problem in NetBeans Here are the tomcat logs which mainly state error starting static resources Any chance you're not closing files and then running out of file descriptors? This usually results in an OOME, but there may

Re: Monitor Tomcat

2006-11-13 Thread antarix
I use lambdaprobe http://www.lambdaprobe.org/d/index.htm Grettings!! 2006/11/13, Philippe Couas [EMAIL PROTECTED]: What are best solution to Monitor Tomcat and verifiy Memory and ressource ? Regards Philippe

Re: Tomcat start problem in NetBeans

2006-11-13 Thread EDMOND KEMOKAI
Using CATALINA_BASE: /Users/kanika/.netbeans/5.0/jakarta- tomcat-5.5.9_base Using CATALINA_HOME: /Applications/NetBeans.app/Contents/ Resources/NetBeans/enterprise2/jakarta-tomcat-5.5.9 Using CATALINA_TMPDIR: /Users/kanika/.netbeans/5.0/jakarta- tomcat-5.5.9_base/temp Using JRE_HOME:

RE: Why is ROOT appended?

2006-11-13 Thread Caldarale, Charles R
From: D. Alvarado [mailto:[EMAIL PROTECTED] Subject: Re: Why is ROOT appended? Context docBase=/usr/local/apache2/htdocs privileged=true antiResourceLocking=false antiJARLocking=false /Context Is the ROOT.xml file correct? That looks o.k. to me. Could there be a permissions

Re: How do I ........?

2006-11-13 Thread Steve R Burrus
hi chris this is steve Burrus and the line of code in question is the while loop : while( ( r = in.read(by)) != -1) { the server error for a long time has always pointed to that line of code creating the NPE. Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve,

RE: Tomcat start problem in NetBeans

2006-11-13 Thread Caldarale, Charles R
From: EDMOND KEMOKAI [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat start problem in NetBeans Using CATALINA_BASE: /Users/kanika/.netbeans/5.0/ jakarta-tomcat-5.5.9_base Using CATALINA_HOME: /Applications/NetBeans.app/Contents/ Resources/NetBeans/enterprise2/jakarta-tomcat-5.5.9 Using

Re: How do I ........?

2006-11-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve R Burrus wrote: hi chris this is steve Burrus and the line of code in question is the while loop : while( ( r = in.read(by)) != -1) { the server error for a long time has always pointed to that line of code creating the NPE. Yup,

Re: Why is ROOT appended?

2006-11-13 Thread D. Alvarado
Actually the problem was I still had /usr/local/apache2/htdocs as my appBase directive in my server.xml file. When I changed that back to webapps, things worked. Thanks for your taking the time to explain these things. - Dave On 11/13/06, Caldarale, Charles R [EMAIL PROTECTED] wrote: From:

Re: Tomcat start problem in NetBeans

2006-11-13 Thread EDMOND KEMOKAI
my mistake, the error isn't on the environment variables. : java.lang.IllegalArgumentException: Document base /Users/kanika/ research work/evm/build/web does not exist or is not a readable directory You could also try to do a clean build in netbeans, sometimes if you make changes and just

How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Patrick Mc Erlean
Hi, I am sending packets from a mobile application to Apache Tomcat version 5.5.20. I am getting a response code of 411 when my packets are over 2016 bytes in length. Apparently this is a bug in Apache Tomcat, where it doesn't deal properly with Chunked Transfer. I read that this problem

Re: Tomcat VS JBOSS

2006-11-13 Thread Martin Gainty
You are not necessarily confined to that 2.4 Servlet Container as mentioned in the docs and Tomcat classes specified in server.xml Read install and cluster config docs info at http://docs.jboss.org/jbportal/v2.4/reference-guide/en/html/clustering.html M- This e-mail communication and any

Re: How do I ........?

2006-11-13 Thread Martin Gainty
the instant you execute code where a variable is NULL you will throw NullPointerException if you want robust code you are better off wrapping in try catch block as in try { if( in == null) System.out.println(This statement will never be executed as NullPointerException will be thrown); }

RE: How do I ........?

2006-11-13 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: Re: How do I ? the instant you execute code where a variable is NULL you will throw NullPointerException Absolute bullshit. try { if( in == null) System.out.println(This statement will never be executed as

RE: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Caldarale, Charles R
From: Patrick Mc Erlean [mailto:[EMAIL PROTECTED] Subject: How do I update the commons-fileupdate JAR from 1.0 to 1.2? It looks like it's not as simple as replacing the jar. The jar actually resides in ./server/webapps/manager/WEB-INF/lib. That location is only for the manager webapp -

Re: How do I ........?

2006-11-13 Thread David Smith
Sorry Martin -- won't work the way you did it. Testing for null will not throw an NPE. That's how we avoid an NPE all together. However if you attempt to access a method on a null object reference, it will throw an NPE. Example: try { javax.sql.DataSource dbds = null ;

Re: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Patrick Mc Erlean
Charles, My understanding is that the manager webapp is part of the Apache Tomcat installation. It's definitely not my app. I was told that the commons-fileupload-1.2 jar would fix my problem (i.e. it would accept chunked transfer for HTTP POSTs). The only place I found the

RE: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Caldarale, Charles R
From: Patrick Mc Erlean [mailto:[EMAIL PROTECTED] Subject: Re: How do I update the commons-fileupdate JAR from 1.0 to 1.2? My understanding is that the manager webapp is part of the Apache Tomcat installation. It's definitely not my app. But is it actually the one you're using from the

How to handle trailing slash and upper/lower case combinations

2006-11-13 Thread David Uctaa
I'm running Tomcat 5.5 in standalone mode -- no web server front-ending it. If Apache were front-ending it, I would know how to handle the situation where the context path is entered in differring upper/lower case(s), or if a directory's trailing slash was included or not, but how do I configure

Re: How do I ........?

2006-11-13 Thread david.delbecq
o.O . . (not laughing, not laughing, not laughing) this is going to be my funniest evening in the week, and yet it still monday! Martin Gainty a écrit : the instant you execute code where a variable is NULL you will throw NullPointerException Change your books! Here

Re: Application Path

2006-11-13 Thread Vernon _
Harry, Thanks for your detailed information. The approach doesn't work for my situation for the reason of url definiton in the application. For instance, I have a url mapping for /home.htm but not /myapp/home.htm. And changing the mapping xml file doesn't seem to be a good way to deal with

RE: How to handle trailing slash and upper/lower case combinations

2006-11-13 Thread Caldarale, Charles R
From: David Uctaa [mailto:[EMAIL PROTECTED] Subject: How to handle trailing slash and upper/lower case combinations how do I configure this when using Tomcat standalone? So all of the following combinations should resolve to http://my.domain.com/MyApp http://my.domain.com/myapp

Re: How do I ........?

2006-11-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, The following example is patently false. Do not follow its example: Martin Gainty wrote: the instant you execute code where a variable is NULL you will throw NullPointerException if you want robust code you are better off wrapping in try

Re: How do I ........?

2006-11-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, * Throwing |null| as if it were a |Throwable| value. Wow, I never knew that one. You learn something new every day. I guess I was always careful not to throw null ;) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5

Re: How do I ........?

2006-11-13 Thread Martin Gainty
Well bs chuck and laughing dave I ran your exact example / deleted FunkyImage.jpg and got this on screen java.lang.NullPointerException coreservlets.ImageFile.doGet(ImageFile.java:34) javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

JSP error

2006-11-13 Thread Ernie Ho
Hi, I'm pretty sure of this, but Tomcat is reading the classpath environment variable right ? I mean, there is not another config file that specifies all the JARs it needs, correct? I'm getting a JSP compile error on Tomcat: An error occurred at line: 23 in the jsp file: /oemaccount.jsp

Re: How do I ........?

2006-11-13 Thread Markus Schönhaber
Martin Gainty wrote: Well bs chuck and laughing dave I ran your exact example / deleted FunkyImage.jpg and got this on screen java.lang.NullPointerException coreservlets.ImageFile.doGet(ImageFile.java:34) javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

RE: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Caldarale, Charles R
From: Patrick Mc Erlean [mailto:[EMAIL PROTECTED] Subject: Re: How do I update the commons-fileupdate JAR from 1.0 to 1.2? I understand what you're saying and it does seem strange that the commons-fileupload jar lives under the manager webapp. Not strange at all - the manager webapp

Cookie expiry date...

2006-11-13 Thread Dave Roberts
Hello, After an absurd amount of searching about, I have not been able to find a single reference on how to ensure that the cookies set by Tomcat expire 3 months after they're created (they currently expire sometime in 2019). I am aware of the session time out that can be set in web.xml...

RE: JSP error

2006-11-13 Thread Caldarale, Charles R
From: Ernie Ho [mailto:[EMAIL PROTECTED] Subject: JSP error I'm pretty sure of this, but Tomcat is reading the classpath environment variable right ? No, the classpath environment variable (which is a truly bad idea) is ignored by Tomcat. I mean, there is not another config file that

Re: How do I ........?

2006-11-13 Thread Steve Burrus
fellas how about getting back to my original problem please!! I simply wanted to see an image of something in a servlet. Now please refer back to my code which I have submitted to this group and on the line w. the while loop I ALWAYS have gotten the NPE. Any FRESH ideas about this possibly?

RE: How do I ........?

2006-11-13 Thread Caldarale, Charles R
From: Steve Burrus [mailto:[EMAIL PROTECTED] Subject: Re: How do I ? Any FRESH ideas about this possibly? Chris already gave you the answer - you need to check for null before referencing the input stream, and not blindly assume the resource exists. - Chuck THIS COMMUNICATION

Re: How do I ........?

2006-11-13 Thread David Smith
You already have the answer (code you posted modified with the answer): package coreservlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class

Re: JSP error

2006-11-13 Thread David Smith
It is NOT reading the classpath environment variable. You should place the jars your webapp needs in your web application's WEB-INF/lib where they can be automatically found. For further class loader issues, see: http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html --David Ernie

Re: Cookie expiry date...

2006-11-13 Thread David Rees
On 11/13/06, Dave Roberts [EMAIL PROTECTED] wrote: After an absurd amount of searching about, I have not been able to find a single reference on how to ensure that the cookies set by Tomcat expire 3 months after they're created (they currently expire sometime in 2019). What cookies are you

Re: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Patrick Mc Erlean
Caldarale, Charles R wrote: From: Patrick Mc Erlean [mailto:[EMAIL PROTECTED] Subject: Re: How do I update the commons-fileupdate JAR from 1.0 to 1.2? I understand what you're saying and it does seem strange that the commons-fileupload jar lives under the manager webapp. Not strange

Re: Accessing ssl pages using client authentication

2006-11-13 Thread Mark Thomas
Andrew Friebel wrote: I am also having trouble access the page using a browser. I extract my each certificate from my certificate chain, and import them into the keystore on the server running tomcat. After I accept the server certificate (before I select my client certificate to send), the

isapi redirector 404 error

2006-11-13 Thread Milan Hampl
I am using isapi_redirector in W2003, IIS6.0 and Apache tomcat 5.5.9 environment. Goal of this solution is to use active directory logon to use also in Apache application (Archibus web central). I tried a lot of variants of configuration files, such as workers.properties, uriworkers,

Re: StandartSession.accessCount bug?

2006-11-13 Thread Mark Thomas
Michael Kantarovich wrote: So what about this bug? When the fix will be out? The fix is in SVN now. It will be in 5.5.21. Release date for 5.5.21 is TBD. Mark - To start a new topic, e-mail: users@tomcat.apache.org To

Re: Problem with RemoteAddrValve in Context.xml

2006-11-13 Thread Mark Thomas
Peter Neu wrote: I'm trying to define an ip access filter with RemoteAddrValve in the context.xml file I deploy with my war file. If I read the documentation right the only thing to be done is write the following into the context.xml file: ?xml version=1.0 encoding=UTF-8? Context

Re: JSP Compile Error

2006-11-13 Thread Mark Thomas
[EMAIL PROTECTED] wrote: Can someone tell me what causes the error; and, can I fix it? I am not in a position to upgrade the old version. I googled it but didn't get anything useful. No idea without seeing the original JSP code. At a guess you are using some JSP 2.0 code which Tomcat 4.x

RE: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Steffen Heil
Hi The URL of my servlet is http://www.noveleditions.com/gaaradio/servlet/GAARadioServlet. My servlet does read from the input stream of the http servet request, and doesn't use FileUploadBase directly. The servlet lives in a webapp directory called gaaradio. The servlet mapping is set

RE: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Steffen Heil
Hi Apparently the reason Apache rejects this request is that there is a Content Length check for -1 in the FileUploadBase class. BTW, this makes me think about your setup. Do you have apache in front of tomcat? Then try tomcat standalone first. Regards, Steffen smime.p7s Description:

RE: How do I update the commons-fileupdate JAR from 1.0 to 1.2?

2006-11-13 Thread Caldarale, Charles R
From: Patrick Mc Erlean [mailto:[EMAIL PROTECTED] Subject: Re: How do I update the commons-fileupdate JAR from 1.0 to 1.2? Apparently the reason Apache rejects this request is that there is a Content Length check for -1 in the FileUploadBase class. Not true in this case - FileUploadBase

Re: Cookie expiry date...

2006-11-13 Thread Dave Roberts
Thanks for the reply. I am unable to tell where the cookie is coming from, so instead I have created a filter (declared in web.xml). Inside the filter I get all the cookies in the incoming HttpServletRequest object and where the getMaxAge() returns -1, I set it to 129600 (then call

RE: Accessing ssl pages using client authentication

2006-11-13 Thread Andrew Friebel
Mark, Thanks for your input. I have got normal SSL working, and that works like a charm (using both IE - doGet, and via a servlet - doPost). My certificates are self signed, to answer your questions: o I do not believe this is an issue with self signed certificates - as the issuer

Need help w/ installing certificate continued...

2006-11-13 Thread Andy Tipton
I have read all through the documentation and can't find what I am doing wrong. The only thing that I didn't do was the importing of the valicert_class2_root.crt file because I wasn't given one when I downloaded my certificate. I imported the real one after I imported the intermediate crt.

Re: Accessing ssl pages using client authentication

2006-11-13 Thread Mark Thomas
Andrew Friebel wrote: Mark, Thanks for your input. I have got normal SSL working, and that works like a charm (using both IE - doGet, and via a servlet - doPost). Great. My certificates are self signed, to answer your questions: o I do not believe this is an issue with self signed

Another JSP error/question

2006-11-13 Thread Ernie Ho
Hi, thanks for all the valuable replies. Hers is yet another error I'm seeing : I just took a webapp that had been developed on IBM WebSphere and placed the app On Tomcat. It's pretty much a JSP page that calls a bunch of java classes. These Java class files have all been appropriately

RE: Another JSP error/question

2006-11-13 Thread Caldarale, Charles R
From: Ernie Ho [mailto:[EMAIL PROTECTED] Subject: Another JSP error/question (It looks like its trying to load some class file in websphere. But the JSP code Is generic java code..) But the classes the JSP is using apparently are not. Either you have something that's Websphere-specific

regarding server side includes in shtml

2006-11-13 Thread prakash shanmugam
In my project I need to use Server Side Includes. I just want to know the details how to make that server side includes to work properly which is constructed as . Shtml file . I am using tomcat5 . I have done the following things. 1) included servlet tags in html file wherever

  1   2   >