Re: ClassCastException when forwarding wrapped HttpServletRequest

2006-05-09 Thread Bill Barker
>"Yuri de Wit" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >I am not sure I should have posted this question to the dev mailing list, >let me know if that should be the case. > >I am using Tomcat 5.5.16. > >I have a series of chained HttpServlets in my web app. The first servlet

Re: Tomcat and VirtualHosts

2006-05-09 Thread Bill Barker
"Jorge Isaac Martínez Hatch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can I have IP-Based Virtual Hosting using just Tomcat? > Assuming that your Tomcat version is recent enough, look at the 'useIPVHosts' option at http://tomcat.apache.org/tomcat-5.5-doc/config/http.html.

(Very O/T!) Oracle JDev configuration topic

2006-05-09 Thread Martin Gainty
Good Evening Fellow Coders- Since most of my development has used Oracle I have been using JDeveloper but encountered some problems when I downloaded latest 10G development distro for whatever reason the xalan libraries that come with the distro are not the right version..to correct I would down

Tomcat and VirtualHosts

2006-05-09 Thread Jorge Isaac Martínez Hatch
Can I have IP-Based Virtual Hosting using just Tomcat? or I need Apache running and then Tomcat over it? Thank you very much, Isaac Martinez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Deployment problems

2006-05-09 Thread Jon Strayer
I have this probem from time to time and was wondering if anyone else has seen it. Using the Tomcat Manager to deploy a war file remotely works most of the time, but sometime it doesn't. When it doesn't work you can't undeploy the app. There is no error message, but the app doesn't go away. It

RE: clusters and admin app

2006-05-09 Thread Tim Lucia
Here's the original post I made with the 'bug' while expanding: http://mail-archives.apache.org/mod_mbox/tomcat-users/200604.mbox/%3C00b501c [EMAIL PROTECTED] This problem is no longer present, but neither is the webapp ;-) Tim -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTE

Re: Unable to get tomcat default page

2006-05-09 Thread Hadraba Petr
Hmm, you are running Windows, don't you? Windows XP! It looks like a firewall issue... Try to enable the port 8080 for localhost---sorry, I'm not Windows Firewall expert... Have a nice night PETR On 5/9/06, Java Newbee <[EMAIL PROTECTED]> wrote: When i am not connected to internet, i get th

clusters and admin app

2006-05-09 Thread Tim Lucia
All, I have a question concerning the admin app in a cluster environment. If I deploy a war file manually across multiple servers, and then look at the admin, I see: + Tomcat Server + Service (Catalina) + Host (localhost) + Context (/mywebapp) However, if I deploy using the farm dep

Re: Virtual Hosts + Tomcat 5 + Windows

2006-05-09 Thread Jorge Isaac Martínez Hatch
Thank you Marc, Other question: Can I have IP-Based Virtual Hosting using just Tomcat, or I need Apache running and then Tomcat? Any help is welcome... Isaac Martinez - Original Message - From: "Marc Farrow" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, May 09, 2006 2

Re: Virtual Hosts + Tomcat 5 + Windows

2006-05-09 Thread Marc Farrow
The HTTPD.CONF file is an Apache file, not a Tomcat file. You are mixing two different products. On 5/9/06, Jorge Isaac Martínez Hatch <[EMAIL PROTECTED]> wrote: Hi, I found information of how to create a virtual host adding some code to the httpd.conf file, but I'm running Windows not Linux.

Virtual Hosts + Tomcat 5 + Windows

2006-05-09 Thread Jorge Isaac Martínez Hatch
Hi, I found information of how to create a virtual host adding some code to the httpd.conf file, but I'm running Windows not Linux. I don't have a httpd.conf file. Should I put this code somewhere else? maybe in the server.xml? ServerName www.somedomain.com DocumentRoot [path] Serv

Re: stylesheets giving 404 after a long response time

2006-05-09 Thread Frank W. Zammetti
I'm not sure, it's just one of those things that seems fishy to me... I would *logically* think it has nothing to do with it, or at least if it did, I definitely would not expect a 404... but I also know that logic frequently has nothing to do with solving problems like this :) If the timeouts

Re: stylesheets giving 404 after a long response time

2006-05-09 Thread Vivek Mohan
Yes, its Tomcat which is serving the resources. And I've made the timeouts to be infinity for my application so I don't think timeouts would be occurring. But in any case how does a timeout affect the fishing out of stylesheets? -- Vivek. On 5/10/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:

Re: stylesheets giving 404 after a long response time

2006-05-09 Thread Frank W. Zammetti
A 20 minute response time? Before I worried about why the stylesheet gets a 404, I'd solve that :) Trying to hold an HTTP connection open that long is a recipe for all sorts of problem (proxy timeouts, browser timeouts, etc). Is Tomcat serving the stylesheet, i.e., no web server in front of

stylesheets giving 404 after a long response time

2006-05-09 Thread Vivek Mohan
Hi People, I've an application running on tomcat 4.1. In one particular request, I could find that the server response takes a long time, say around 20 minutes, and when the page comes back all the stylesheets and header jsps are missing from the page. If I check my access logs, I see a 404 respo

Unable to get tomcat default page

2006-05-09 Thread Java Newbee
When i am not connected to internet, i get the default Apache Tomcat homepage after succesfully starting the Tomcat server. However, once i get my internet connections enabled, I am unable to get the default Apache Tomcat home page. I tried to change the port 8080 just incase it was being used by

Re: classloader problem

2006-05-09 Thread Filip Hanik - Dev Lists
Hi A Srivani, I this is not a problem with tomcat, instead it is a problem with your deployment. You are putting commons-discovery.jar, and this JAR file is storing a reference to the webapp classloader. When the app is reloaded, the old webapp classloader gets invalidated, and a new one is cre

RE: Session last-access/lifetime clustered versus non

2006-05-09 Thread Tim Lucia
This does fix the problem. Thank you! -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 12:43 PM To: Tomcat Users List Subject: Re: Session last-access/lifetime clustered versus non yes, I believe peter just fixed this, here is the SVN

update jar file does not work immediately

2006-05-09 Thread Tony Smith
Hi, I am using Tomcat 5.5.9 on Windows. I use Eclipse to write my server code. Every time I change my code, I export the jar directly to the myapp/WEB-INF/lib directory and restart Tomcat. I found that the new code is not immediately used by Tomcat, I have to re-export, re-start Tomcat a couple t

Re: Context fails to load with Filter

2006-05-09 Thread Jason Beck
Well, I feel silly now, but 10 seconds after I sent the email to the list, I looked back at my Class and noticed that I had declared it Abstract. Once I removed the "abstract" declaration and recompiled it all works as expected. Thanks for your time. -Jason On 5/9/06, Mike Sabroff <[EMAIL PROTE

Re: System.setProperty failed during Tomcat5 startup

2006-05-09 Thread Tim Funk
Don't know - you'll need to ask a spring related user list. -Tim lee hwaying wrote: sorry for that. THanks for the reply is there any way round it without having to touch the security manager as I am running it from a web hosting package many thanks From: Tim Funk <[EMAIL PROTECTED]> R

Re: System.setProperty failed during Tomcat5 startup

2006-05-09 Thread lee hwaying
sorry for that. THanks for the reply is there any way round it without having to touch the security manager as I am running it from a web hosting package many thanks From: Tim Funk <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: System.setProperty fai

Re: Context fails to load with Filter

2006-05-09 Thread Mike Sabroff
Disreguard my previous statement as I am obviously brain deadsorry Mike Sabroff wrote: If this is truly what your web.xml looks like, you are missing the end tag '>' in the following line com.affinity.tasc.filters.AuthenticateFilter Jason Beck wrote: Hello list, I have written my first

Re: URL with WWW problem

2006-05-09 Thread Hassan Schroeder
On 5/9/06, Scott Purcell <[EMAIL PROTECTED]> wrote: I know someone yesterday mentioned filters, but I could not find any examples of this type via a heavy google search. -- Hassan Schroeder [EMAIL PROTECTED] ---

RE: Native Connector Question

2006-05-09 Thread Fenlason, Josh
Thanks for the explanation. , Josh. > -Original Message- > From: Mladen Turk [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 09, 2006 11:19 AM > To: Tomcat Users List > Subject: Re: Native Connector Question > > Fenlason, Josh wrote: > > That sucks. Thanks for the pointer though. How c

Re: Native Connector Question

2006-05-09 Thread Mladen Turk
Fenlason, Josh wrote: That sucks. Thanks for the pointer though. How come it works on Windows? Thanks. It won't work if the library you load depends on other library that is not in the PATH, so it's basically the same. For Windows we build tcnative statically linked to OpenSSL and APR, so if

Re: Native Connector Question

2006-05-09 Thread Markus Schönhaber
Mladen Turk wrote: > Fenlason, Josh wrote: > > My native lib binary is fine because setting LD_LIBRARY_PATH works fine. > > I've tried adding -Djava.library.path to JAVA_OPTS and CATALINA_OPTS in > > my Tomcat startup script, but it isn't loading the native connector. Any > > thoughts on why the s

Re: Intercepting Context exceptions

2006-05-09 Thread Filip Hanik - Dev Lists
you have several options 1. implement a Valve that catches all exceptions and logs them 2. implement a filter (this will only catch within the application) 3. custom error page, and log the exception from there Edoardo Causarano wrote: Hello list, I'm managing some legacy web apps, some jsp

Re: Context fails to load with Filter

2006-05-09 Thread Mike Sabroff
If this is truly what your web.xml looks like, you are missing the end tag '>' in the following line com.affinity.tasc.filters.AuthenticateFilter Jason Beck wrote: Hello list, I have written my first filter and think that I have it right, but when I try to start Tomcat 5.5.9 after applying th

RE: Native Connector Question

2006-05-09 Thread Fenlason, Josh
That sucks. Thanks for the pointer though. How come it works on Windows? Thanks. , Josh. > -Original Message- > From: Mladen Turk [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 09, 2006 11:00 AM > To: Tomcat Users List > Subject: Re: Native Connector Question > > Fenlason, Josh wrote

Context fails to load with Filter

2006-05-09 Thread Jason Beck
Hello list, I have written my first filter and think that I have it right, but when I try to start Tomcat 5.5.9 after applying the necessary configuration changes to web.xml, the Context that the Filter is in fails to start. Perhaps someone can tell me what I may have done wrong. <-- web.xml -

Re: Native Connector Question

2006-05-09 Thread Mladen Turk
Fenlason, Josh wrote: My native lib binary is fine because setting LD_LIBRARY_PATH works fine. I've tried adding -Djava.library.path to JAVA_OPTS and CATALINA_OPTS in my Tomcat startup script, but it isn't loading the native connector. Any thoughts on why the second method isn't working? Thank

RE: Native Connector Question

2006-05-09 Thread Fenlason, Josh
I tried each of these in /bin/setenv.sh #JAVA_OPTS="$JAVA_OPTS -Djava.library.path=/home/snow/jfenlason/solaris/install/tomcat/bin" CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/home/snow/jfenlason/solaris/install/tomcat/bin" At the moment, I have all the native libraries i

Intercepting Context exceptions

2006-05-09 Thread Edoardo Causarano
Hello list, I'm managing some legacy web apps, some jsp and other servlet based, that lack good Exception handling (or at least Logging and reporting). Rather than a plain blank page I'd like to return some infomative message within sone nice html message. Most importantly I'd like to log these e

[OT] Hijack (WAS: Re: System.setProperty failed during Tomcat5 startup)

2006-05-09 Thread Antonio Petrelli
Tim Funk ha scritto: 1) Don't hijack threads - start a new one The last famous words... some people will never learn ;-) Ciao Antonio - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: error during tomcat startup when starting springframework

2006-05-09 Thread Konstantin Ignatyev
I used to do it with JDBC-ODBC bridge driver few years ago http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html Asegid Debebe wrote: Dear All, Can you please tell me where I can download the JDBC driver for Microsoft Access 2002/3 databases? I have write a sample Servlet that r

Re: Native Connector Question

2006-05-09 Thread Markus Schönhaber
Fenlason, Josh wrote: > My native lib binary is fine because setting LD_LIBRARY_PATH works fine. > I've tried adding -Djava.library.path to JAVA_OPTS and CATALINA_OPTS in my > Tomcat startup script, but it isn't loading the native connector. Any > thoughts on why the second method isn't working?

Re: URL with WWW problem

2006-05-09 Thread Marc Farrow
Filters are your best bet or using another server in front and using URL rewriting. On 5/9/06, Scott Purcell <[EMAIL PROTECTED]> wrote: Hello, Tomcat 5.5 standalone. Yesterday I had a thread stating that sometimes users, and google may refer to my site something like http://mysite.com <

Re: error during tomcat startup when starting springframework

2006-05-09 Thread Asegid Debebe
Dear All, Can you please tell me where I can download the JDBC driver for Microsoft Access 2002/3 databases? I have write a sample Servlet that reads data from Microsost Access databases, very quickly. Thanks, AD

RE: Native Connector Question

2006-05-09 Thread Fenlason, Josh
My native lib binary is fine because setting LD_LIBRARY_PATH works fine. I've tried adding -Djava.library.path to JAVA_OPTS and CATALINA_OPTS in my Tomcat startup script, but it isn't loading the native connector. Any thoughts on why the second method isn't working? Thanks in advance. , Josh.

URL with WWW problem

2006-05-09 Thread Scott Purcell
Hello, Tomcat 5.5 standalone. Yesterday I had a thread stating that sometimes users, and google may refer to my site something like http://mysite.com omitting the www portion of the URL. As I stated yesterday, my site needs the www.mysite.com

Re: Native Connector Question

2006-05-09 Thread Markus Schönhaber
Fenlason, Josh wrote: > What do I have to do to configure Tomcat to use the native connector on > Unix? I've tried adding Where? > -Djava.library.path=, but it isn't > loading them. It works for me on Windows, so I'm not sure what I'm > doing wrong on Unix. Any suggestions? Thanks. Creating

Native Connector Question

2006-05-09 Thread Fenlason, Josh
What do I have to do to configure Tomcat to use the native connector on Unix? I've tried adding -Djava.library.path=, but it isn't loading them. It works for me on Windows, so I'm not sure what I'm doing wrong on Unix. Any suggestions? Thanks. , Josh.

JDBCRealms

2006-05-09 Thread Sean O'Reilly
Hi all, Am setting up authentication through a jdbcrealm and all appears to work fine. The only problem i am having is with setting parameters like maxActive, maxIdle and maxWait. Can these be set for a JDBCRealm in tomcat 5.5 and if so how and where. Have been trawling the Internet for ages tryi

Tomcat 5 File Access

2006-05-09 Thread johnny
I have a servlet that writes a file to a local path outside the application path. It works perfectly fine with Tomcat 4. I'm trying to get it to work on Tomcat 5, but Tomcat 5 doesn't allow it to write to any path outside the application path. I've read the Security Manager Howto, but can't f

Re: "This page contains secure and non secure elements" (was "mod_jk : "connection aborted or network problems", but apache and tomcat are on the same machine??")

2006-05-09 Thread Jim Jagielski
On May 8, 2006, at 3:44 PM, Francis Galiegue wrote: OK, I have some more information... The whole webapp is served through mod_ssl, as such (in the webapp specific config file): Not sure if this was already mentioned, but check to make sure that all resources are either relative or else use

Re: System.setProperty failed during Tomcat5 startup

2006-05-09 Thread Tim Funk
1) Don't hijack threads - start a new one 2) Your running tomcat in with the security manager turned on. When the security manager is enabled - methods System.setProperty() and System.exit() are not allowed to be called. -Tim lee hwaying wrote: Tomcat startup fail with below error log when S

error during tomcat startup when starting springframework

2006-05-09 Thread lee hwaying
can some one help please @4000445f116006a73194 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB- INF/applicationContext-hibernate.xml]: Initialization of bean failed; nested exception is java.lan

RE: Apache, Tomcat, rewrite and jkmount

2006-05-09 Thread Jon Haugsand
> From: Jon Haugsand [mailto:[EMAIL PROTECTED] > A strange problem occured to me. This is a part of my > httpd.conf: > > > ServerName hamsun > RewriteEngine on > RewriteRule ^/victoria - [L,PT] > RewriteRule (.*) /victoria$1 [L,PT] > JkMount/* hamsun

System.setProperty failed during Tomcat5 startup

2006-05-09 Thread lee hwaying
Tomcat startup fail with below error log when Springframework tried to call System.setProperty. Can some one help me? I ran the code succesyfully at windows pc but not on unix server thanks hy java.security.AccessControlException: access denied (java.util.PropertyPermission webApp.root write) @

JAASRealm programmatic call

2006-05-09 Thread Chapoor Chapoor
Hi, can someone provide me code for calling JAASRealm programmaticaly ? I do something like this, but it fails: org.apache.catalina.realm.JAASRealm realm = new org.apache.catalina.realm.JAASRealm(); realm .setAppName("MyApp"); realm.authenticate("john", "smith"); I know you can specify

RE: Default servlet

2006-05-09 Thread Tim Lucia
Mark is right (of course)... my bad. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 10:14 PM To: Tomcat Users List Subject: Re: Default servlet Tim Lucia wrote: > Look in conf/web.xml -- it is commented out by default. Not it isn't. The default

Re: Does Tomcat reuse parameterMap?

2006-05-09 Thread Tim Funk
It can be reused - but it is only used in by a single request at a time. A single request is bound to a thread. So it is thread safe. Now if you have listeners that is assigning the value of the map or the servlet request to something else. And that something else lives longer than the life of

Re: Listener in tld files - bug ?

2006-05-09 Thread Tim Funk
Yes. You can turn on XML validation of the XML file before using it - but many people believe that should be a build time exercise and not a run/deploy time exercise. -Tim MiSt wrote: Tim Funk: Listeners are allowed in TLD files. Thanks for answer You are right. Element listener is allow

Adding servlets during startup

2006-05-09 Thread Martyn Hiemstra
Hi All I am currently using Struts 1.2.9 in combination with tomcat 5.0.28. I want to constructed my website so that its possible to import modules. Each module is a seperate package, meaning servlets are placed over multiple packages. The problem with this is that the web.xml cant contain s

Re: allowLinking tomcat 5.5.17

2006-05-09 Thread Markus Schönhaber
Manos Moschous wrote: > i changed to $(catalina.home)/conf/context.xml > and it changed for all web applications running on tomcat. > > BTW, i am not sure what is the procedure to make it for individual > applications http://tomcat.apache.org/tomcat-5.5-doc/config/context.html Regards mks

回复: Re: allowLinking tomcat 5.5.17

2006-05-09 Thread Kyle Wu
well, I think u should put your own context.xml in the META-INF/ directory under your webapp directory. --- Manos Moschous <[EMAIL PROTECTED]>写道: > ok, > > i changed to $(catalina.home)/conf/context.xml > and it changed for all web applications running on > tomcat. > > BTW, i am not sure what

Re: allowLinking tomcat 5.5.17

2006-05-09 Thread Manos Moschous
ok, i changed to $(catalina.home)/conf/context.xml and it changed for all web applications running on tomcat. BTW, i am not sure what is the procedure to make it for individual applications thank you very much Manos Markus Schönhaber wrote: Manos Moschous wrote: i am trying to enable t

Re: allowLinking tomcat 5.5.17

2006-05-09 Thread Markus Schönhaber
Manos Moschous wrote: > i am trying to enable tomcat to follow symbolic links > Unfortunately, i wasnt able to make it work for my web application which > is called "mv" and is located > to the $(catalina.home)/webapps/mv directory. > > I tried the options below: > > 1) touch file to $(catalina.hom

Is anyone here using ha-jdbc with database clusters?

2006-05-09 Thread David Goodenough
I am trying to set up ha-jdbc, and tried asking quesions on their mailing list but it seems to be a dead list, no traffic for >24 hours apart from my questions. I have it talking from one tomcat to multiple DBs, but I need to set it up using the tag to have these same DBs access from across a To

allowLinking tomcat 5.5.17

2006-05-09 Thread Manos Moschous
Hi, i am trying to enable tomcat to follow symbolic links Unfortunately, i wasnt able to make it work for my web application which is called "mv" and is located to the $(catalina.home)/webapps/mv directory. I tried the options below: 1) touch file to $(catalina.home)/conf/Catalina/localhost/m

Re: Listener in tld files - bug ?

2006-05-09 Thread MiSt
Tim Funk: Listeners are allowed in TLD files. Thanks for answer You are right. Element listener is allowed in tld from version 1.2 http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd but not in 1.1 http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd My tld file 1.1//EN" "http://java.sun.