Request parameters when using Apache mod_rewrite

2008-01-18 Thread Dieter Schicker
Hi, I'm running Tomcat 6.0.14 behind an Apache with mod_rewrite proxying. code RewriteRule ^/www/(.*\.xyz)$ http://127.0.0.1:8080/webapp/$1 [P] /code Now when I examine the request object with e.g. code request.getRemoteAddr(); /code I (of course) get 127.0.0.1. So my question is: Is there a

Re: Request parameters when using Apache mod_rewrite [SOLVED]

2008-01-18 Thread Dieter Schicker
Ok, sorry for bugging you. I overlooked the fact that I get the following headers: x-forwarded-for: 1.2.3.4 x-forwarded-host: abc.com x-forwarded-server: abc.com Dilino Dieter Schicker wrote: Hi, I'm running Tomcat 6.0.14 behind an Apache with mod_rewrite proxying. code RewriteRule

Re: application startup problem

2008-01-18 Thread David Smith
A different David here ... given the error doesn't have actual version numbers in it, it may be a corrupted class. Can you recompile it and see if that fixes the issue? --David Jannetta Steyn wrote: Hi David Thanks for your response. At least one class file in your war requires a jvm

Re: application startup problem

2008-01-18 Thread david delbecq
Jannetta Steyn a écrit : Hi David Thanks for your response. At least one class file in your war requires a jvm which's version should be higher than the one running tomcat. It generally occurs when you try to load a java 5 compiled class file using a java 1.4 or earlier jvm. I'll

Re: PDF problem on IE from JSP

2008-01-18 Thread Pid
Jonadan wrote: BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? Are you delivering your PDF over an HTTPS connection? It's not a Tomcat problem, it's probably an IE problem. Some versions of IE have issues with responses that contain

RE: application startup problem

2008-01-18 Thread Jannetta Steyn
Hi David Thanks for your response. At least one class file in your war requires a jvm which's version should be higher than the one running tomcat. It generally occurs when you try to load a java 5 compiled class file using a java 1.4 or earlier jvm. I'll check twice the version

Re: No Authentication Dialog appears for Tomcat Manager

2008-01-18 Thread wlievens
Mark Riggins wrote: Instead of a basic-authentication dialog box, I get the following error message instead. HTTP Status 401 - type Status report message description This request requires HTTP authentication (). Apache Tomcat/6.0.13 My

Re: application startup problem

2008-01-18 Thread david delbecq
At least one class file in your war requires a jvm which's version should be higher than the one running tomcat. It generally occurs when you try to load a java 5 compiled class file using a java 1.4 or earlier jvm. I'll check twice the version tomcat is actually using to run. It is most

application startup problem

2008-01-18 Thread Jannetta Steyn
Hi All I hope someone can point me in the right direction. I am at a bit of a loss. I am having a problem deploying an application to a Windows 2000 server, running Tomcat 5.5 and JRE1.5.0_14. I am getting a java.lang.UnsupportedClassVersionError: Bad version number in .class file error in

RE: Tomcat 6 - Cluster error.

2008-01-18 Thread Raúl García
Hi Filip, Thank you for that suggestion. We are going to try it now. On the other side, if You want to reproduce the error: We have used a server here configured with the same config.xml files. To force it to the crash we send a high amount of login request (Those that creates a new session),

Re: Custom initialization after startup

2008-01-18 Thread david delbecq
Jonadan a écrit : Is there any way I can perform custom initialization IMMEDIATELY after Tomcat startup automatically? use lifecycle listener http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html - To start a new

Impossible to use multi threading with Tomcat by using a DLL ?

2008-01-18 Thread Claire Dugenet
Hello, I realize a web application using Struts with Tomcat. In this application, I call a DLL (created with JNI) which call an other DLL (in language C). The last one is in the directory system32 of windows et it use several threads. There is no error but according to the log files, no

JSP compilation internal error

2008-01-18 Thread sush0000
Hi All, I am compiling JSP files using ANT and TOMCAT 5.5.17. ANT with jspcompile target gives this output on screen: jspcompile: [jasper2] Jan 18, 2008 9:32:12 AM org.apache.jasper.compiler.TldLocationsCache processWebDotXml [jasper2] WARNING: Internal Error: File /WEB-INF/web.xml not found

Fwd:Tomcat Manager Problems

2008-01-18 Thread [EMAIL PROTECTED]
Hi all, I've a serious problem, I've installed Tomcat on my PC and when I started the service my manager page (http://localhost:8080/manager/html) doesn't show me any information, I've tried to unistall and re-install my Tomcat 5.5.17. I haven't made any further operation on my PC. This is

Re: Custom initialization after startup

2008-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonadan, Jonadan wrote: | I need to start database before any servlet gets first request. ~From the servlet specification for ServletContextListener.contextInitialized: Notification that the web application initialization process is starting. All

Filtering the apache clients

2008-01-18 Thread jean-louis . mateo
Jean-Louis Mateo

Re: Cluster Not Syncing After Restart

2008-01-18 Thread Peter Rossbach
Hi David, I have also made a test with two cluster nodes. Is node2 under load as node1 is started the message are normal. Cluster is starts first and receive message, but the application starts later. As application is startet at node1 the manager request node2 for current sessions. All

Fwd:Tomcat Manager Problems

2008-01-18 Thread [EMAIL PROTECTED]
Hi all, I've a serious problem, I've installed Tomcat on my PC and when I started the service my manager page (http://localhost:8080/manager/html) doesn't show me any information, I've tried to unistall and re-install my Tomcat 5.5.17. I haven't made any further operation on my PC. This is

Re: Impossible to use multi threading with Tomcat by using a DLL ?

2008-01-18 Thread Claire Dugenet
In fact, some of the fonctions of the DLL works except the ones which call the threads. To test my DLL, I have created an applet which call the two DLL and it works very well when I don't use Tomcat. And when I call exactly the same applet with Tomcat, that doesn't work : there is no error but

Re: PDF problem on IE from JSP

2008-01-18 Thread Frank W. Zammetti
Jonadan wrote: BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? FYI, a while ago I wrote a page on the Struts wiki dealing with serving PDFs... while it was meant for Struts, the majority of the information is in fact completely

RE: No Authentication Dialog appears for Tomcat Manager

2008-01-18 Thread Caldarale, Charles R
From: wlievens [mailto:[EMAIL PROTECTED] Subject: Re: No Authentication Dialog appears for Tomcat Manager Mark Riggins wrote: Instead of a basic-authentication dialog box, I get the following error message instead. HTTP Status 401 - I have the exact same problem. The only

Re: Impossible to use multi threading with Tomcat by using a DLL ?

2008-01-18 Thread david delbecq
Tomcat does not block multi threading. There is not such thing i think in the JVM anyway, so i don't see how it could prevent your native code from creating threads. When you say you are having same call without tomcat, you mean in a spearate jvm, using the same jni libraries? Maybe you are

tcnative dll

2008-01-18 Thread Stacy Johnson (stacjohn)
I am working on a soon to be released product that is currently in a bind as it requires a fix that has been implemented in tcnative-1.dll (ver 1.1.12). Does anyone one know when this version will be released? I have tried compiling the tomcat native source code, but the dll that is produced

RE: Tomcat Manager Problems

2008-01-18 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Fwd:Tomcat Manager Problems What should I do? To start, don't post the same message more than once. 18-gen-2008 15.35.08 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container

Re: URL Redirects from Root?

2008-01-18 Thread Justin Stanczak
Yes, thank you. I think I seen this before, but forgot until you pointed it out. Coo! On Jan 18, 2008 12:58 PM, Hassan Schroeder [EMAIL PROTECTED] wrote: On Jan 16, 2008 2:22 PM, Justin Stanczak [EMAIL PROTECTED] wrote: Anyone have suggestions on setting up redirect for the ROOT folder?

Re: URL Redirects from Root?

2008-01-18 Thread Justin Stanczak
Just bumping this. Not sure if it got through. I got an email error. On Jan 16, 2008 5:22 PM, Justin Stanczak [EMAIL PROTECTED] wrote: Anyone have suggestions on setting up redirect for the ROOT folder? What I have is an old IIS server that I'm moving to Linux Tomcat. The IIS has all kinds of

Re: Impossible to use multi threading with Tomcat by using a DLL ?

2008-01-18 Thread david delbecq
If your applet code is called from button actions, all calsl to your dll will be made from the same AWT thread. If you call it from a servlet in tomcat , a random thread from the HttpThread pool will be used, that's probably your difference that make it work one side and not the other. Claire

comet end event

2008-01-18 Thread Peter Warren
What do I do to make the END event stop repeating? I don't want to close the CometEvent yet because the server is waiting for data to send to the client. If I don't close the comet event, the END event repeats incessantly. I'm using an unsigned applet as a comet client. To accommodate proxies,

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | this is not a cluster error, basically, you are storing a map in the | session, and someone is modifying the map while the cluster is trying to | replicate it How should this be solved? The OP could really

How to set ContentType from within Filter?

2008-01-18 Thread Eric B.
Hi, I have a simple filter whose goal is to set the content type for a page. However, when I check the actual headers that are returned by the server, I see that they have been overridden by something in Tomcat; I'm just not sure what / where this is happening. I am using tomcat 6.0.14.

Re: Custom initialization after startup

2008-01-18 Thread Jonadan
Christopher Schultz-2 wrote: This is a self-defeating technique: your threads are not guaranteed to complete your database configuration before any requests are serviced. Nop! The embedded DMBS is not designed such crappy way. That's why we need to use specially developed embedded DBMSs!

Re: No Authentication Dialog appears for Tomcat Manager

2008-01-18 Thread Mark Riggins
Unfortunately, I'm not sure, and I don't know how to recreate the problem. Sorry. Mark David Smith-2 wrote: I'm just wondering if you got a 401 page, but a 200 status or something like that. Maybe one of your customizations did some filtering and/or proxying and changed the response

RE: Removing Context from URL

2008-01-18 Thread Woytasik Joe
I am using Tomcat 5.5. I also failed to mention that this is behind IIS using the isapi_redirect.dll. Do the same instructions still apply? Thanks- Joe -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 4:10 PM To: Tomcat Users List

Re: Filtering the apache clients

2008-01-18 Thread Bill Barker
Caldarale, Charles R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1)

Re: Cluster Not Syncing After Restart

2008-01-18 Thread David Rees
On Jan 18, 2008 1:13 PM, David Rees [EMAIL PROTECTED] wrote: So your testing is with the to-be-released 5.5.26? Where can I get a copy of this and the changes going into 5.5.26? I found the changelog, looks like I need to build 5.5.26 from source myself if i want to test it?

Re: PDF problem on IE from JSP

2008-01-18 Thread Jonadan
It's just plain HTTP! Pid-2 wrote: Jonadan wrote: BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? Are you delivering your PDF over an HTTPS connection? -- View this message in context:

Re: No Authentication Dialog appears for Tomcat Manager

2008-01-18 Thread David Smith
I'm just wondering if you got a 401 page, but a 200 status or something like that. Maybe one of your customizations did some filtering and/or proxying and changed the response code. Seems like the most reasonable cause of your problem. --David Mark Riggins wrote: It turns out that

Re: No Authentication Dialog appears for Tomcat Manager

2008-01-18 Thread Mark Riggins
It turns out that Netbeans likes to use the Tomcat Manager, so I had to get this working. Since others claimed that it worked out of the box I just uninstalled everything [losing quite a bit of customization] and did a clean vanilla install. Now it works, but I have no idea what caused the

Re: How to trap exceptions

2008-01-18 Thread david delbecq
lanchez a écrit : All, I have a web application and I want to create a generic exception handler/listener which will listen to all the exceptions (checked and runtime) which are thrown by web application. If they reach level of tomcat, just write a servlet filter, and manage it

Re: URL Redirects from Root?

2008-01-18 Thread Hassan Schroeder
On Jan 16, 2008 2:22 PM, Justin Stanczak [EMAIL PROTECTED] wrote: Anyone have suggestions on setting up redirect for the ROOT folder? http://tuckey.org/urlrewrite/ should take care of it :-) -- Hassan Schroeder [EMAIL PROTECTED]

ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread LERBSCHER JEAN-PIERRE
Hi, We work on Tomcat clustered server (5.5) and we have this exception in the log (at 5-10 TPS). Could you explain us what's hapenning. Have you a solution? Thanks. Exception: SEVERE: Failed to serialize the session! java.util.ConcurrentModificationException at

How to trap exceptions

2008-01-18 Thread lanchez
All, I have a web application and I want to create a generic exception handler/listener which will listen to all the exceptions (checked and runtime) which are thrown by web application. During a debug sessions I want to enable this listener and bring Tomcat to a screeching halt if

Removing Context from URL

2008-01-18 Thread Woytasik Joe
I have a user that wants to be able to hit their app without specifying the context. Right now they need to type http://applicationname.mycompany.com/context and they would like to type http://applicationname.mycompany.com and be directed to their app. Is this possible? If so, what is the best

Re: Cluster Not Syncing After Restart

2008-01-18 Thread David Rees
On Jan 18, 2008 8:17 AM, Peter Rossbach [EMAIL PROTECTED] wrote: I have also made a test with two cluster nodes. Is node2 under load as node1 is started the message are normal. Cluster is starts first and receive message, but the application starts later. As application is startet at node1 the

Re: Ordered loading of WAR files

2008-01-18 Thread Jonadan
If you deploy apps as deflated, shouldn't that solve your problem? I mean insstead of war files, just copy directoried as UNZIPPED. Regards. Fu-Tung Cheng wrote: Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet

RE: Filtering the apache clients

2008-01-18 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1) Comment out the other Connector elements. 2) Configure the RemoteAddrValve for

Re: Fwd:Tomcat Manager Problems

2008-01-18 Thread david delbecq
Check the tomcat use use did not get corrupted / truncated during download. Between installs / reinstall, ensure you also redownloaded tomcat jar (not from browser cache!) [EMAIL PROTECTED] a écrit : Hi all, I've a serious problem, I've installed Tomcat on my PC and when I started the

Re: Ordered loading of WAR files

2008-01-18 Thread Filip Hanik - Dev Lists
I believe if you specify your applications as Context elements inside server.xml, they will be deployed in the order they are specified Filip Fu-Tung Cheng wrote: Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Filip Hanik - Dev Lists
this is not a cluster error, basically, you are storing a map in the session, and someone is modifying the map while the cluster is trying to replicate it org.apache.commons.collections.LRUMap Filip LERBSCHER JEAN-PIERRE wrote: Hi, We work on Tomcat clustered server (5.5) and we have

RE: Tomcat 6 embedded use - problems with jsp - No Java compiler available

2008-01-18 Thread Reich, Matthias
Hi Oliver, I would guess that a library is missing in your classpath. I am also using Tomcat in embedded mode, and I had seen the same kind of error because I missed to add el-api.jar to the classpath. These are the tomcat libraries I have included and which are sufficient (without any further

RE: application startup problem

2008-01-18 Thread Caldarale, Charles R
From: david delbecq [mailto:[EMAIL PROTECTED] Subject: Re: application startup problem tomcat requires a JDK, and not a JRE! That's not true. Tomcat 5.0 and older required a JDK, 5.5 and newer run quite happily with just a JRE, since they no longer use javac. - Chuck THIS COMMUNICATION

catalina.out hangs in tomcat5.5

2008-01-18 Thread Neha Agrawal
hi my tomcat5.5 server works correctly with APR as it showing default web pages for both 8180 and 8443 ports.. but when i try to open catalina.out file in the logs directory it hangs the terminal..file shows no data.. when i did ls -al for this file i got prwx-- 1 tomcat55 root 0

Re: tcnative dll

2008-01-18 Thread Martin Gainty
Assuming you already downloaded TC6 source This comes straight from the native connector build docs Building from the cvs tree: sh buildconf --with-apr=apr_source_location. configure --with-apr=apr_install_location --with-ssl=openssl_install_locatio n make Testing the build: The make

RE: Removing Context from URL

2008-01-18 Thread Caldarale, Charles R
From: Woytasik Joe [mailto:[EMAIL PROTECTED] Subject: Removing Context from URL I have a user that wants to be able to hit their app without specifying the context. Assuming you're running on a reasonably recent version of Tomcat (you didn't bother to tell us), just name the webapp ROOT

Re: PDF problem on IE from JSP

2008-01-18 Thread Jonadan
PS; Dynamic generation of PDF files involves more than I thought. I noticed that iText may not generate the same byte strings for the same code. This is from iText manuals. In addition, database contents may change. So there is no way I can deliver the same byte stream in case IE reissues

Re: comet end event

2008-01-18 Thread Filip Hanik - Dev Lists
during end and error, you MUST close the Comet event Filip Peter Warren wrote: What do I do to make the END event stop repeating? I don't want to close the CometEvent yet because the server is waiting for data to send to the client. If I don't close the comet event, the END event repeats

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Filip Hanik - Dev Lists
the solution is to not store stuff in the session modified by other threads, if that's the case, then its not really something you wanna store in a session Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | this is not a

RE: Filtering the apache clients

2008-01-18 Thread Ben Stringer
On Fri, 2008-01-18 at 10:53 -0600, Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1) Comment out