Bump: Loss of Subject/AccessControlContext in JSTL
Hi All, Is the below issue completely and utterly uninteresting and boring, or should I just go ahead and file a bugreport? Regards, Michiel We've been tracking a nasty issue in our web application when using Tomcat 5.0.28 and JSTL. If we call a method from JSTL, any code that tries to access the AccessControlContext behaves differently than it would if called directly in a JSP using plain java. e.g. If we have a utility method in our dataBean that returns the (JAAS) Subject using Subject.getSubject(AccessController.getContext()), the syntax: %= dataBean.getSubjectFromContext() % returns the Subject whereas: ${dataBean.subjectFromContext} returns null This is quite unexpected behaviour and seems to be caused by the call to: org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:880) which uses AccessController.doPrivileged(PrivilegedExceptionAction) rather than AccessController.doPrivileged(PrivilegedExceptionAction, AccessControlContext) to evaluate the EL syntax. I think that changing: retValue = AccessController.doPrivileged( new PrivilegedExceptionAction(){ . } ); To: retValue = AccessController.doPrivileged( new PrivilegedExceptionAction(){ . }, AccessController.getContext() ); should solve this. Can someone please have a look at this? Cheers, Michiel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where to put context.xml?
This is probably an obvious question to most but I am new with tomcat 5.5 so I am still trying to figure things out. I want to create a web project with the document base in /home/tomcat/applications as opposed to the normal webapps folder. This is what I have in my server.xml: Server port=8005 shutdown=SHUTDOWN GlobalNamingResources !-- Used by Manager webapp -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8081 / Engine name=Catalina defaultHost=localhost !-- Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / -- Host name=localhost debug=0 Context path= docBase=/home/tomcat/applications/ debug=0 reloadable=true / /Host /Engine /Service /Server It works when I point my browser to http://www.myhost.com:8081/ and it shows a customized welcome page from my index.jsp. However, as I understand it, Context should now be in its own xml file. I extracted the Context content and placed it in context.xml. I placed context.xml in $CATALINA_HOME/conf/Catalina/localhost, restarted tomcat but now the browser shows nothing. I also tried placing it in the conf/ folder but that doesn't work either. Where does the file go? Thanks for any help in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put context.xml?
Nearly. Rename your file ROOT.xml and a path of /ROOT and you're away. The other alternative is create in your web application folder META-INF/context.xml Allistair -Original Message- From: Michael Lai [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 10:07 To: tomcat-user@jakarta.apache.org Subject: Where to put context.xml? This is probably an obvious question to most but I am new with tomcat 5.5 so I am still trying to figure things out. I want to create a web project with the document base in /home/tomcat/applications as opposed to the normal webapps folder. This is what I have in my server.xml: Server port=8005 shutdown=SHUTDOWN GlobalNamingResources !-- Used by Manager webapp -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8081 / Engine name=Catalina defaultHost=localhost !-- Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / -- Host name=localhost debug=0 Context path= docBase=/home/tomcat/applications/ debug=0 reloadable=true / /Host /Engine /Service /Server It works when I point my browser to http://www.myhost.com:8081/ and it shows a customized welcome page from my index.jsp. However, as I understand it, Context should now be in its own xml file. I extracted the Context content and placed it in context.xml. I placed context.xml in $CATALINA_HOME/conf/Catalina/localhost, restarted tomcat but now the browser shows nothing. I also tried placing it in the conf/ folder but that doesn't work either. Where does the file go? Thanks for any help in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to put context.xml?
Allistair Crossley wrote: Nearly. Rename your file ROOT.xml and a path of /ROOT and you're away. The other alternative is create in your web application folder META-INF/context.xml Allistair Thank you for your prompt replay, Allistair. I choosed the second option and created the META folder. So I now have: /home/tomcat/applications/META-INF/context.xml And my context.xml shows: Context path= docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context I restarted tomcat but with the same effect. Is there some other configuration that I have to modify to inform tomcat that I have a project in this folder? Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - JAAS - getting users ip address
Hi all, to authentify a client I am using tomcat 5, j_security and JAAS. Is it possible to get the IP address of an acutally client within the JAAS module (like getRemoteAddress in jsp)? If not: Is it possible to extend j_security, in sort that my_j_security set a *callback* with the client IP address, so that I can grab the IP address in my JAAS module? Another question: In which scope is JAAS running (application, session, request) ? Thanks -- Franck - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where to put context.xml?
Hi, The docBase is just the folder where your web applications are located. You need to have a folder in applications for your web application. For the empty path application this is /ROOT. Thus Context path=/ROOT docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context Means a folder at /home/tomcat/applications/ROOT/META-INF/context.xml applications -Original Message- From: Michael Lai [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 10:21 To: Tomcat Users List Subject: Re: Where to put context.xml? Allistair Crossley wrote: Nearly. Rename your file ROOT.xml and a path of /ROOT and you're away. The other alternative is create in your web application folder META-INF/context.xml Allistair Thank you for your prompt replay, Allistair. I choosed the second option and created the META folder. So I now have: /home/tomcat/applications/META-INF/context.xml And my context.xml shows: Context path= docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context I restarted tomcat but with the same effect. Is there some other configuration that I have to modify to inform tomcat that I have a project in this folder? Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NPE in RealmBase.findSecurityConstraints
Hi, I'm using tomcat 5.5.9, my weapp is in the root context (under webapps/ROOT) and configured to use jaas via META-INF/context.xml Sometimes (not always, don't know how to reproduce this), when I try to log in, it fails, and the following exception appears: 2005-09-13 09:55:12,989 ERROR [CoyoteAdapter] (http-80-Processor2:) An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.apache.catalina.realm.RealmBase.findSecurityConstraints(RealmBase.java:476) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:400) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) The line that causes the exception assumes the uri paramter is not null. Is this a bug in Tomcat? I'd be happy to provide more details Thanx, Ittay -- === Ittay Dror ([EMAIL PROTECTED]) Application Team Leader, RD Qlusters Inc. +972-3-6081994 Fax: +972-3-6081841 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The process tomcat {pid 1488.0000 } is leaking handles
We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/jvm shutdown very slow after enabling JMX remote management...
If found an old post mentioning the same issue, but no resolution or others. My config is pretty vanilly except for setting the JMX options as part of the normal Tomcat startup (CATALINA_OPTS)... export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.port= export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate=false export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.ssl=false Shutdown of tomcat takes a very long time when jmx is enabled, even if I use manager to shutdown the individual webapps. With jmx disabled, shutdown times are normalhas anyone else seen or resolved this? -Original Message- From: Paul ANDERSON [EMAIL PROTECTED] Subject: RE: Shutdown not working under SLES8 and FC2 Date: Mon, 21 Feb 2005 11:08:01 GMT Raw Message Prev Next Prev by Thread Next by Thread I have had the same problem of Tomcat not terminating and having to be killed by hand. It occurred with Tomcat 5.0.27, JDK1.4.2, RH Enterprise Linux 3 when I enabled JMX via jk2 configuration. I tried 5.0.28 but the same happened using jk2, so I put JMX on a back burner. Now I'm using 5.5.7, JDK1.4.2_06 and the same thing happens - but again, only when mx.enabled is true. Uname -a gives: 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux The problem seems to happen even with a clean distro - all it takes is for jk2.properties to be modified to start JMX support, with the MX jars in common/lib. Fortunately it happens every time on ./shutdown.sh so I hope someone can shed some light on it. I'd like to use JMX even without JDK1.5 - maybe using jsvc is a workaround. I don't want to force a process kill as normal procedure, in case some cleanup is skipped such as session persistence. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Storing a request
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, this is my first mail to this list, forgive me for any mistake I may make... I'm developing a authorization filter for Tomcat 5; in some cases, if the user credentials are invalid, I have to save the original request, redirect the user to an external authentication engine, handle the response and then proceed with the original request. The problem is, I can't find a way to clone the request or create a new one. Any comments are welcome. Thanks everyone, Ajay -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDJqOSUIJoGmiuVrwRAqiHAJ4xBi9L2CwbPUAG2IfuZ04vnw7S1wCg9AJA Z7/YgABDRBF0JMc0D82DtYs= =eyYs -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Storing a request
From: Ajay Arjandas Daryanani [mailto:[EMAIL PROTECTED] I'm developing a authorization filter for Tomcat 5; in some cases, if the user credentials are invalid, I have to save the original request, redirect the user to an external authentication engine, handle the response and then proceed with the original request. The problem is, I can't find a way to clone the request or create a new one. Any comments are welcome. There was a similar thread a couple of months back. The conclusion of that thread was that you cannot clone the original or create a new request, and that there are sound architectural reasons for this. Instead, you'll have to do it the proper way - store the data you need from the original request in some appropriate manner, then handle the new request using that stored data when it comes in. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat/jvm shutdown very slow after enabling JMX remote management...
You should only set the JMX JAVA_OPTS for startup. If you use the same JAVA_OPTS for shutdown, the shutdown-VM will unsuccessfully try to start a JMX server on port . That's what taking so long. Joe R. Lindsay wrote: If found an old post mentioning the same issue, but no resolution or others. My config is pretty vanilly except for setting the JMX options as part of the normal Tomcat startup (CATALINA_OPTS)... export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.port= export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate=false export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.ssl=false Shutdown of tomcat takes a very long time when jmx is enabled, even if I use manager to shutdown the individual webapps. With jmx disabled, shutdown times are normalhas anyone else seen or resolved this? -Original Message- From: Paul ANDERSON [EMAIL PROTECTED] Subject: RE: Shutdown not working under SLES8 and FC2 Date: Mon, 21 Feb 2005 11:08:01 GMT Raw Message Prev Next Prev by Thread Next by Thread I have had the same problem of Tomcat not terminating and having to be killed by hand. It occurred with Tomcat 5.0.27, JDK1.4.2, RH Enterprise Linux 3 when I enabled JMX via jk2 configuration. I tried 5.0.28 but the same happened using jk2, so I put JMX on a back burner. Now I'm using 5.5.7, JDK1.4.2_06 and the same thing happens - but again, only when mx.enabled is true. Uname -a gives: 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux The problem seems to happen even with a clean distro - all it takes is for jk2.properties to be modified to start JMX support, with the MX jars in common/lib. Fortunately it happens every time on ./shutdown.sh so I hope someone can shed some light on it. I'd like to use JMX even without JDK1.5 - maybe using jsvc is a workaround. I don't want to force a process kill as normal procedure, in case some cleanup is skipped such as session persistence. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The process tomcat {pid 1488.0000 } is leaking handles
This Peregrine Get Answers application is probably leaking file handles. Ask their support. [EMAIL PROTECTED] wrote: We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/jvm shutdown very slow after enabling JMX remote management...
Thanks, actually setting the JMX OPTS during shutdown ends up creating a port in use error. I managed to figure that one out.I tried setting jmxremote to false and that was a noop as expected... I still get the long shutdown with the jmx OPTS excluded. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 3:38 AM To: Tomcat Users List Subject: Re: tomcat/jvm shutdown very slow after enabling JMX remote management... You should only set the JMX JAVA_OPTS for startup. If you use the same JAVA_OPTS for shutdown, the shutdown-VM will unsuccessfully try to start a JMX server on port . That's what taking so long. Joe R. Lindsay wrote: If found an old post mentioning the same issue, but no resolution or others. My config is pretty vanilly except for setting the JMX options as part of the normal Tomcat startup (CATALINA_OPTS)... export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.port= export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.authenticate=false export CATALINA_OPTS=$CATALINA_OPTS -Dcom.sun.management.jmxremote.ssl=false Shutdown of tomcat takes a very long time when jmx is enabled, even if I use manager to shutdown the individual webapps. With jmx disabled, shutdown times are normalhas anyone else seen or resolved this? -Original Message- From: Paul ANDERSON [EMAIL PROTECTED] Subject: RE: Shutdown not working under SLES8 and FC2 Date: Mon, 21 Feb 2005 11:08:01 GMT Raw Message Prev Next Prev by Thread Next by Thread I have had the same problem of Tomcat not terminating and having to be killed by hand. It occurred with Tomcat 5.0.27, JDK1.4.2, RH Enterprise Linux 3 when I enabled JMX via jk2 configuration. I tried 5.0.28 but the same happened using jk2, so I put JMX on a back burner. Now I'm using 5.5.7, JDK1.4.2_06 and the same thing happens - but again, only when mx.enabled is true. Uname -a gives: 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux The problem seems to happen even with a clean distro - all it takes is for jk2.properties to be modified to start JMX support, with the MX jars in common/lib. Fortunately it happens every time on ./shutdown.sh so I hope someone can shed some light on it. I'd like to use JMX even without JDK1.5 - maybe using jsvc is a workaround. I don't want to force a process kill as normal procedure, in case some cleanup is skipped such as session persistence. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The process tomcat {pid 1488.0000 } is leaking handles
I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 11:40 To: Tomcat Users List Subject: Re: The process tomcat {pid 1488. } is leaking handles This Peregrine Get Answers application is probably leaking file handles. Ask their support. [EMAIL PROTECTED] wrote: We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The process tomcat {pid 1488.0000 } is leaking handles
I think, I'm not quite getting it: You (your organisation) bought Get Answers and Tomcat is used as a part of it. I.e. Tomcat can be considered as part of Get Answers. Right? Then Peregrine has the responsibility to fix any errors which occur in this combination. [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 11:40 To: Tomcat Users List Subject: Re: The process tomcat {pid 1488. } is leaking handles This Peregrine Get Answers application is probably leaking file handles. Ask their support. [EMAIL PROTECTED] wrote: We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SOLVED] :) user authetication on MySql db issue need some help!
hello everyone, i found out what was the problem:) okay the problem is that my jdbc driver was to old and could not comunicate with my mysql and after finding that out using a java based mysql administartion tool (dbvisualzer) i could not login and i was wondering the whole tiome what could be the source of the problem and i find out that yesterday as i was debuggin (seeking the problem i setted the passwords without md5 no digest and my passwords was as a MD5 crypted so the request 050913 14:40:12 5 Execute [1] SELECT user_pass FROM users WHERE user_name = ? 5 Execute [2] SELECT role_name FROM user_roles WHERE user_name = ? did not match the e115d589186390dd1405e7034d897 not i added the digest=MD5 to my server xml again and thing works fine one thing iam now dealing with is how to lets tomcat manager grab the user and roles data from the db okay have a great time everyone! regards and dont give up :) yassine ps: Wade thanks again! directBOX Reply --- From: WadeChandler ([EMAIL PROTECTED]) To: TomcatUsersList (tomcat-user@jakarta.apache.org) Date: 12.09.2005 18:41:54 --- Yassine ELassad [EMAIL PROTECTED] wrote: hi list, iam about to set my user to a database instead of file and i am now trying to get that done on a mysql rdbms i created the following tables : mysql use authority; Database changed mysql show tables; +-+ | Tables_in_authority | +-+ | user_roles | | users | +-+ 2 rows in set (0.00 sec) mysql describe user_roles; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | user_name | varchar(15) | | PRI | | | | role_name | varchar(10) | | | | | +---+-+--+-+-+---+ 2 rows in set (0.00 sec) mysql describe users; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | user_name | varchar(15) | | PRI | | | | user_pass | varchar(32) | | | | | +---+-+--+-+-+---+ 2 rows in set (0.00 sec) and this this is my server.xml: = Server port=8005 shutdown=SHUTDOWN GlobalNamingResources !-- Used by Manager webapp -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector port=8080 / !-- This is here for compatibility only, not required -- Connector port=8009 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost Logger className=org.apache.catalina.logger.FileLogger / Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://dekold4711/authority connectionName=tomcat connectionPassword=tomcat userTable=users userNameCol=user_name userCredCol=user_pass userRoleTable=user_roles roleNameCol=role_name digest=md5 / Host name=localhost appBase=webapps / /Engine /Service /Server each time iam trying to login i gets an error message telling me wrong username or wrong password catalina.out dont show any susspecious errors any idea what i could be doing wrong please!! regards Yassine ELassad I'm using mysql fine. I use a context.xml file for my web app in META-INF and this is it: ?xml version=1.0 encoding=UTF-8? Context path= reloadable=true Resource auth=Container driverClassName=com.mysql.jdbc.Driver maxActive=100 maxIdle=30 maxWait=1 name=jdbc/caro462 password= removeAbandoned=true type=javax.sql.DataSource url=jdbc:mysql://localhost:3306/caro462?autoReconnect=true username=caro462/ Realm className=org.apache.catalina.realm.DataSourceRealm dataSourceName=jdbc/caro462 debug=99 localDataSource=true roleNameCol=role userCredCol=password userNameCol=userid userRoleTable=USERROLELINKS userTable=USERS/ /Context I then have my web.xml file setup with different security constraints like this one:
Tomcat autoDeploy problem on Unix
Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The process tomcat {pid 1488.0000 } is leaking handles
You are quite getting it. Im pushing it back onto Peregrine as they should be looking into it but in the mean time i thought id pose the question on this forum...speaking to my server support area - they have seen the same problem on other servers running tomcat -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 12:14 To: Tomcat Users List Subject: Re: The process tomcat {pid 1488. } is leaking handles I think, I'm not quite getting it: You (your organisation) bought Get Answers and Tomcat is used as a part of it. I.e. Tomcat can be considered as part of Get Answers. Right? Then Peregrine has the responsibility to fix any errors which occur in this combination. [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 11:40 To: Tomcat Users List Subject: Re: The process tomcat {pid 1488. } is leaking handles This Peregrine Get Answers application is probably leaking file handles. Ask their support. [EMAIL PROTECTED] wrote: We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments..
RE: problem with tomcat manager's deploy command
Thanks Charles, Now I am defining my application context in a separate file under META-INF But still I am not been able to undeploy my application (using tomcat manager) Tomcat Manager's undeploy command, which I run from ant is not cleaning some of the jar files in my application's lib folder However no error shown on ant prompt. This is how I am using undeploy command in ant script target name=undeploy description=Remove application from Tomcat undeploy url=${tomcat.manager.url} username=${tomcat.manager.username} password=${tomcat.manager.password} path=/${app.name} / /target any suggestions? -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 7:50 PM To: Tomcat Users List Subject: RE: problem with tomcat manager's deploy command Importance: High From: rahul [mailto:[EMAIL PROTECTED] Subject: problem with tomcat manager's deploy command If I remove this context tag from server.xml then the deploy command works fine. But I want to keep this information in server.xml and at the same time use tomcat manager's deploy command from ant script You may want to rethink that one. From the Tomcat 5.5 documentation for Context: Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The process tomcat {pid 1488.0000 } is leaking handles
I could think of quite a number of reasons, why handle are leaked. Without further knowing the application I could only guess. Since Tomcat is widely used and I haven't heard of handles leaked by tomcat (itself) here on the list, I would strongly suspect the Get Answers application as the source of the problem. Most of the time not tomcat is the problem, but the web-application deployed to tomcat. [EMAIL PROTECTED] wrote: You are quite getting it. Im pushing it back onto Peregrine as they should be looking into it but in the mean time i thought id pose the question on this forum...speaking to my server support area - they have seen the same problem on other servers running tomcat -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 12:14 To: Tomcat Users List Subject: Re: The process tomcat {pid 1488. } is leaking handles I think, I'm not quite getting it: You (your organisation) bought Get Answers and Tomcat is used as a part of it. I.e. Tomcat can be considered as part of Get Answers. Right? Then Peregrine has the responsibility to fix any errors which occur in this combination. [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 11:40 To: Tomcat Users List Subject: Re: The process tomcat {pid 1488. } is leaking handles This Peregrine Get Answers application is probably leaking file handles. Ask their support. [EMAIL PROTECTED] wrote: We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
RE: Where to put context.xml?
From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Where to put context.xml? Context path=/ROOT docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context To again quote from the Tomcat doc for the path attribute of the Context element: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. Also note that placing Context tags is server.xml is strongly discouraged. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with tomcat manager's deploy command
Hi, I had the same trouble with undeploy, residual JARs in WEB-INF/lib which then totally screwed up any chance of redeploying. So another stop Tomcat, delete manually, deploy. I'd be interested to learn if there is anything that can be done too ... Allistair. -Original Message- From: rahul [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 14:23 To: Tomcat Users List Subject: RE: problem with tomcat manager's deploy command Thanks Charles, Now I am defining my application context in a separate file under META-INF But still I am not been able to undeploy my application (using tomcat manager) Tomcat Manager's undeploy command, which I run from ant is not cleaning some of the jar files in my application's lib folder However no error shown on ant prompt. This is how I am using undeploy command in ant script target name=undeploy description=Remove application from Tomcat undeploy url=${tomcat.manager.url} username=${tomcat.manager.username} password=${tomcat.manager.password} path=/${app.name} / /target any suggestions? -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 7:50 PM To: Tomcat Users List Subject: RE: problem with tomcat manager's deploy command Importance: High From: rahul [mailto:[EMAIL PROTECTED] Subject: problem with tomcat manager's deploy command If I remove this context tag from server.xml then the deploy command works fine. But I want to keep this information in server.xml and at the same time use tomcat manager's deploy command from ant script You may want to rethink that one. From the Tomcat 5.5 documentation for Context: Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
Hi ! I'm using tomcat-specific ant tasks and very happy :) It's allows you to restart web app without restarting tomcat. Take a look at manager web app came with distribution. http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant On 9/13/05, Olena Mitovska [EMAIL PROTECTED] wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems setting up tomcat on debian sarge
Hello, I used tomcat4 with Sun and blackdown JVM in the past. And they work fine. On sarge, you can use the java-package package to build a .deb with sun jdk. If you want to use tomcat5, you can test my packages (only tested with 1.4 jvm): http://debian.gallet.info/search.do?config=htdigwords=jakarta+apache+org+tomcat Sebastien Jim Buttafuoco a écrit : good questions, all I did was have apt-get install tomcat4 + all needed packages. I know I have kaffe installed. here is a list from dpkg of what I have installed. let me know if I should look for and/or install another package. thanks for you help Jim ii gjdoc 0.7.3-1documentation generation framework for java ii java-common0.22 Base of all Java packages ii jikes 1.22-2 Fast Java compiler adhering to language and ii kaffe 1.1.5-3A JVM to run Java bytecode ii libant1.6-java 1.6.2-2.1 Java based build tool like make -- library ii libapache-mod- 1.2.5-2Apache 1.3 connector for the Tomcat Java ser ii libbcel-java 5.1-4 Analyze, create, and manipulate (binary) Jav ii libcommons-bea 1.6.1-4utility for manipulating JavaBeans ii libcommons-dig 1.5.0.1-4 Rule based XML Java object mapping tool ii libcommons-lan 2.0-6 Extension of the java.lang package ii libcommons-mod 1.1-4 A convenience library to use Java Management ii libjaxp1.2-jav 1.2.01-1 Java XML parser and transformer APIs (DOM, S ii liblog4j1.2-ja 1.2.9-1Logging library for java ii libmx4j-java 2.0.1-4An open source implementation of the JMX(TM) ii liboro-java2.0.8-3Regular expression library for Java ii libregexp-java 1.3-1 regular expression library for Java ii libservlet2.3- 4.0-6 Servlet 2.3 and JSP 1.2 Java classes and doc ii libstruts1.1-j 1.1-2 Java Framework for MVC web applications ii libstruts1.2-j 1.2.4-1Java Framework for MVC web applications ii libtomcat4-jav 4.1.31-3 Java Servlet engine -- core libraries ii libxerces2-jav 2.6.2-2Validating XML parser for Java with DOM leve ii tomcat44.1.31-3 Java Servlet 2.3 engine with JSP 1.2 support ii tomcat4-admin 4.1.31-3 Java Servlet engine -- admin web interfaces ii tomcat4-webapp 4.1.31-3 Java Servlet engine -- documentation and exa -- Original Message --- From: [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org, [EMAIL PROTECTED] Sent: Mon, 12 Sep 2005 23:43:25 + Subject: Re: problems setting up tomcat on debian sarge Which JDK are you using? Hi all, I am trying to setup tomcat 4.1 (comes with debian sarge in contrib) inside a vserver also running debian sarge. I am getting the following error after I login into the adminstration tool, the sample apps and the manage tool both seems to be working. I am new to java and tomcat so please be gentle. Thanks Jim HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:621) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:596) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:504) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke (ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:594) at
RE: Where to put context.xml?
Hi, Thanks. I am pretty sure that earlier 5.5 implementations needed /ROOT specified for the older 5.0 empty path. Looks like it's either changed back to 5.0's method or I read something incorrectly, Thanks in either case, Allistair. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 14:25 To: Tomcat Users List Subject: RE: Where to put context.xml? From: Allistair Crossley [mailto:[EMAIL PROTECTED] Subject: RE: Where to put context.xml? Context path=/ROOT docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context To again quote from the Tomcat doc for the path attribute of the Context element: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. Also note that placing Context tags is server.xml is strongly discouraged. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The process tomcat {pid 1488.0000 } is leaking handles
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: RE: The process tomcat {pid 1488. } is leaking handles I have and they put it down to being the Tomcat application - not much use at all! Since this has not been reported by anyone else, it is highly likely to be the application, not Tomcat. In any event, what version of Tomcat, what OS, what JDK, etc., are you using? On task manager it does indicate that tomcat is at fault.. That's only because all applications under Tomcat are part of the Tomcat process. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? Olena Mitovska wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
On Tue, Sep 13, 2005 at 03:31:37PM +0200, Christoph Kutzinski wrote: Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? I could think the timezones on the development server and the deployment server are different, so the modified files could be in future, and thus tomcat will never reload files if they have modification time current time. -- Eugene N Dzhurinsky - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems setting up tomcat on debian sarge
I struggled with running tomcat5 on sarge for a while and found that the blackdown jvm was the only one that seemed to work properly. I had great problems using the Sun JVM (there was a thread on here about 6 weeks ago) whereby tomcat would just stop responding, and refuse to shutdown unless i killed the process. I've not had any problems since switching to blackdown. If you are going to try tomcat 5.5 then you'll need to remember to install the compatibility patch for using a 1.4 jvm. thanks, Martin Sébastien GALLET wrote: Hello, I used tomcat4 with Sun and blackdown JVM in the past. And they work fine. On sarge, you can use the java-package package to build a .deb with sun jdk. If you want to use tomcat5, you can test my packages (only tested with 1.4 jvm): http://debian.gallet.info/search.do?config=htdigwords=jakarta+apache+org+tomcat Sebastien Jim Buttafuoco a écrit : good questions, all I did was have apt-get install tomcat4 + all needed packages. I know I have kaffe installed. here is a list from dpkg of what I have installed. let me know if I should look for and/or install another package. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to put context.xml?
Allistair Crossley wrote: Hi, The docBase is just the folder where your web applications are located. You need to have a folder in applications for your web application. For the empty path application this is /ROOT. Thus Context path=/ROOT docBase=/home/tomcat/applications/ debug=0 reloadable=true /Context Means a folder at /home/tomcat/applications/ROOT/META-INF/context.xml Thanks, it works now. I used your first method instead. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with tomcat manager's deploy command
From: rahul [mailto:[EMAIL PROTECTED] Subject: RE: problem with tomcat manager's deploy command Tomcat Manager's undeploy command, which I run from ant is not cleaning some of the jar files in my application's lib folder However no error shown on ant prompt. What happens if you try undeploy from the manager web page, rather than with an Ant script? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems setting up tomcat on debian sarge
Hi Martin, I have tomcat 5.0.25 - 30 running on Sarge without a problem. Sun JVM 1.42r5 and greater. The orginal poster seems to have a problem with his application as manager applets etc work. I would however recommend running a 2.6 kernel Andrew On Sep 13, 2005, at 3:37 PM, Martin Wood wrote: I struggled with running tomcat5 on sarge for a while and found that the blackdown jvm was the only one that seemed to work properly. I had great problems using the Sun JVM (there was a thread on here about 6 weeks ago) whereby tomcat would just stop responding, and refuse to shutdown unless i killed the process. I've not had any problems since switching to blackdown. If you are going to try tomcat 5.5 then you'll need to remember to install the compatibility patch for using a 1.4 jvm. thanks, Martin Sébastien GALLET wrote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems setting up tomcat on debian sarge
maybe it was just the combinations i tried :) and i should have read what his actual problem is... sorry for the noise. Andrew Miehs wrote: Hi Martin, I have tomcat 5.0.25 - 30 running on Sarge without a problem. Sun JVM 1.42r5 and greater. The orginal poster seems to have a problem with his application as manager applets etc work. I would however recommend running a 2.6 kernel Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where to put context.xml?
Caldarale, Charles R wrote: To again quote from the Tomcat doc for the path attribute of the Context element: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. Also note that placing Context tags is server.xml is strongly discouraged. OK, I took out /ROOT from the path field and it still works. But the context file must still be named ROOT.xml. The application fails to work with any other filename. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
1)I have created the WAR file on Windows and deployed to Solaris but I also tried using the Tomcat Manager GUI without any luck. It is interesting to note that when I FTP the WAR file over from the Windows box, both the app directory and the new WAR file disappear. If I FTP the WAR a second time it seems to deploy fine. 2) The system clocks ARE in sync. 3) The file attributes are OK 4) If I touch the war file it seems to blow up the application that is running. Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/13/05 10:31 am Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? Olena Mitovska wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The process tomcat {pid 1488.0000 } is leaking handles
I have a web application that I host for our customers. Right now we are running about 60 virtual hosts with tens of thousands of hits per day. I've also run stress tests using Jmeter where literally millions of requests are generated. I have never observed a resource leak. This is a common topic in the forum. In almost every instance, it is the application that is leaking resources. Developers should run findbugs: http://findbugs.sourceforge.net/ And PMD http://pmd.sourceforge.net To scan their applications for resource leaks. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 3:37 AM To: tomcat-user@jakarta.apache.org Subject: The process tomcat {pid 1488. } is leaking handles We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts, JSP 2.0 and Jasper2 compiler/code generation error
I am running into a class hierarchy mismatch with taglibs and jasper2 out of tomcat 5.5 and precompiling jsp pages built with the struts taglibs. I have: Jboss AS 4.0.2 Tomcat 5.5 (bundled) Struts 1.2.4 The error I am getting at compile time is: [javac] F:\Sandboxes\Projects\rainier-1\cudgel\tmp\jsp-java\com\lqmi\admin\contact_jsp.java:119: _jspx_meth_html_link_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in com.lqmi.admin.contact_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext) The issue is that JBoss AS 4/Tomcat 5.5 is conforming to JSP 2.0. Struts confirms to JSP 1.x. In 2.0, a new base interface is defined (JspTag) for all tag classes, and that is causing the compile error. Has anyone run into this, and if so, what is the work around? Thank you. - clark. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting this error when trying to generate a graphic
javax.servlet.ServletException: /data0/apps/java/jdk1.5.0_02/jre/lib/sparc/libawt.so: ld.so.1: /data0/apps/java/jdk1.5.0_02/bin/java: fatal: libmlib_image.so: open failed: No such file or directory org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846) All I am trying to do is run this Dashboard application that basically dynamically generates graphic files based on data from a database.I am running this successfully on the other Sun Solaris 9 box (identical environment) yet on this new Production server with the same version of Tomcat (5.5.7) I get this error. Any help is greatly appreciated. Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with tomcat manager's deploy command
I have not tried that because I am deploying on a remote machine, and I dont know how to do it from manager's web page (is it possible anyway? ) - RahulJoshi -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 7:13 PM To: Tomcat Users List Subject: RE: problem with tomcat manager's deploy command From: rahul [mailto:[EMAIL PROTECTED] Subject: RE: problem with tomcat manager's deploy command Tomcat Manager's undeploy command, which I run from ant is not cleaning some of the jar files in my application's lib folder However no error shown on ant prompt. What happens if you try undeploy from the manager web page, rather than with an Ant script? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat autoDeploy problem on Unix
Hi. Try something like this in your context.xml Context path=/webapp docBase=webapp debug=99 reloadable=true antiJARLocking=true antiResourceLocking=false I've had similar problems with Tomcat 5.5.x on Linux but the above line works. HTH, Sergey. Ritchie Gillam пишет: 1)I have created the WAR file on Windows and deployed to Solaris but I also tried using the Tomcat Manager GUI without any luck. It is interesting to note that when I FTP the WAR file over from the Windows box, both the app directory and the new WAR file disappear. If I FTP the WAR a second time it seems to deploy fine. 2) The system clocks ARE in sync. 3) The file attributes are OK 4) If I touch the war file it seems to blow up the application that is running. Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 [EMAIL PROTECTED] 09/13/05 10:31 am Do you create the WAR file on Windows and deploy to Solaris? Have you checked that the system clocks are in sync? Have you checked that the file attributes are ok on Solaris? Have you tried to touch the war file? Olena Mitovska wrote: Hi, We have Tomcat 5.5.7 installed on Solaris 9 and the autoDeploy option doesn't work. We have to restart the server every time we redeploy the application so that changes will be seen, and it is unacceptable for us since it is a production server. Here is the excerpt from our server.xml where we enabled autoDeploy option. - Host appBase=webapps autoDeploy=true name=localhost unpackWARs=true xmlNamespaceAware=false xmlValidation=false and for every application the Context element have attribute reloadable=true. The same settings work fine in windows environment so we tend to think it is specific Unix problem. Can you, please ,advise, how we can redeploy application without having to restart the server every time. Olena - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URL embedded filename suggestion not working inTomcat
This url is not working in Tomcat, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat but of course the browser proposes program1.cgi as the name instead of filename.txt, as desired in the first url. http://my.company.com/cgi-bin/program1.cgi?parameter1=123 Note: I am using tomcat 4.1.31 on windows, and IE 6.x browser. I have enabled cgi support on Tomcat. Ideas?
Re: Getting this error when trying to generate a graphic
Hi! Althogh my error sounded a bit different, I think I had the same problem. You already specified headless=true as sysprop or java option in catalina.sh? Unfortunately this is not enough under linux/unix. On my linux at home, there are a lot of .so-files under /usr/X11R6/lib, especially those with libXt and libXst in the name, which where absent on the server. I had to copy these onto the server to be able to do anything that is calling an awt package. I cannot tell you now wich files are needed, but perhaps someone else? Greetings, sonja Am Dienstag, den 13.09.2005, 11:18 -0300 schrieb Ritchie Gillam: javax.servlet.ServletException: /data0/apps/java/jdk1.5.0_02/jre/lib/sparc/libawt.so: ld.so.1: /data0/apps/java/jdk1.5.0_02/bin/java: fatal: libmlib_image.so: open failed: No such file or directory org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846) All I am trying to do is run this Dashboard application that basically dynamically generates graphic files based on data from a database.I am running this successfully on the other Sun Solaris 9 box (identical environment) yet on this new Production server with the same version of Tomcat (5.5.7) I get this error. Any help is greatly appreciated. Thanks, Ritchie Gillam Programmer Analyst, Information Services, Halifax Regional Municipality Email: [EMAIL PROTECTED] Phone: (902) 490-6167 Fax: (902) 490-6583 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Sonja Löhr [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: The process tomcat {pid 1488.0000 } is leaking handles
--- [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. -Original Message- From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 11:40 To: Tomcat Users List Subject: Re: The process tomcat {pid 1488. } is leaking handles This Peregrine Get Answers application is probably leaking file handles. Ask their support. [EMAIL PROTECTED] wrote: We have a server running Peregrine Get Answers which use TOMCAT as part of its installation We are seeing (via task manager) a slow build up of handles for the tomcat app.. Has anyone come across this before? This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments.. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons.. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. All task manager can tell you is that the application Tomcat is holding all these file handles opened. Your application is running inside of Tomcat, so of course the tomcat application is holding the files open, but if your web app is doing this then it's the code in the web app even though the Tomcat server is holding open the files. The code opening the files should be closing them. What files are being held open? Can you tell this with any tools you have? That would help you more than anything. Wade - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The process tomcat {pid 1488.0000 } is leaking handles
On 9/13/05, Wade Chandler [EMAIL PROTECTED] wrote: --- [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. I'm assuming by the reference to task manager that this is running on Windows so download filemon from http://sysinternals.com, then run it (requires no installation) and it will instantly tell you what files are open and hence where the problem is. Regards, -- Jason Bainbridge http://kde.org - [EMAIL PROTECTED] Personal Site - http://jasonbainbridge.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The process tomcat {pid 1488.0000 } is leaking handles
Wade Chandler wrote: --- [EMAIL PROTECTED] wrote: I have and they put it down to being the Tomcat application - not much use at all! On task manager it does indicate that tomcat is at fault.. Another suggestion. Grab a copy of JBoss or Sun App Serv (or whatever you have handy) and see if the problem is reproduceable on one of those platforms. If so, the problem is clearly with the app, not the app server. Then send the software vendor an invoice for debugging their issues ;-) -david- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why are tag files always compiled to class files?
Hi, I hope someone could shed some light on this: I'm trying to pre-compile JSPs using Jasper (Jasper2 Ant task from the document). My Tomcat version is 5.0.28. In my webapp, there are a few custom tags in tag file format. When I set the jasper2 comiple attribute to false, I expect only java files being generated by Jasper Ant task -- they shouldn't be compiled to class files. This is generally true for all the JSP files. However the tag files don't follow this rule, they always get compiled to class files. Is it possible to let jasper only generate the java files for tag files? Thanks,
Case-insensitive URLs for serving HTML
I have a webb app in Tomcat that serves only HTML, and I'd like to make the path component of the URL case-insensitive. So if the client navigates to http://domain.host/Pics or http://domain.host/pics or http://domain.host/PIcs they'll get the same resource. I guess I'd like to match the URL pattern to a regular expression. Is there a way to do that? -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Case-insensitive URLs for serving HTML
[EMAIL PROTECTED] wrote: I have a webb app in Tomcat that serves only HTML, and I'd like to make the path component of the URL case-insensitive. ... I guess I'd like to match the URL pattern to a regular expression. One quick, easy approach: UrlRewriteFilter http://tuckey.org/urlrewrite/ HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure Tomcat for multiple IPs
I have one NIC with 2 external IPs bound to it on a Windows XP box. The goal is to have Tomcat service two web sites, each web site having it's own IP address. www.website1.com -- xxx.xxx.xxx.xxx www.website2.com -- yyy.yyy.yyy.yyy I have tried defining two Service's with Connector's that have address=xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy elements in them. The second Service listed in server.xml never started. I would never see any log information for it in any logs like I did for the first Service listed and it was defined exactly the same as the first one with the exception of address and the name elements, logfile names, etc. I have tried one Service with multiple Connector's, one Connector for xxx.xxx.xxx.xxx and one Connector for yyy.yyy.yyy.yyy. I also had two Host elements in this scenario, but got no indication that anything was running on yyy.yyy.yyy.yyy. I tried configuring it as if I only had one IP, one Service, one Connector, one Engine and one Host and did not specify the address element. In this case, browsing to either xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy produced the same results. They both went to website1. I'm assuming this is because Tomcat will bind to all available IPs on the specified port if an address is not specified. Anyway, could someone please tell me the correct way to do this? TIA, Brian Barnett This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Different JDBC sources?
Hi, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way of achieving this? Thanks, Simon -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Different JDBC sources?
The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair. -Original Message- From: Vsevolod (Simon) Ilyushchenko [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 16:36 To: Tomcat Users List Subject: Different JDBC sources? Hi, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way of achieving this? Thanks, Simon -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redeploy a war host without reboot
Hi to all, I've set up Tomcat v. 5.5.9 as the server for the domain www.univaperta.it This is a virtual host, not the only site in this server. Configuration is the following: Host appBase=webapps/univaperta name=www.univaperta.it Context docBase= path= reloadable=true WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource /Context /Host The site works fine. The problem is that I develop this on another computer and deploy as a war (univaperta.war). For every update I have to follow this procedure: - undeploy the site from tomcat manager - restart tomcat - deploy the war file - restart tomcat Is there an easier way to do this? Thank you Andrea Bondi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different JDBC sources?
Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair, And then I would publish my code into two places? (Or alternatively I can have two applications under one Tomcat, I guess.) I was hoping to somehow avoid that and reuse one set of files (I do it in my Perl apps by having different front controller scripts for different URLs). Thanks, Simon -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure Tomcat for multiple IPs
Barnett, Brian W. wrote: I have tried one Service with multiple Connector's, one Connector for xxx.xxx.xxx.xxx and one Connector for yyy.yyy.yyy.yyy. I also had two Host elements in this scenario, but got no indication that anything was running on yyy.yyy.yyy.yyy. What indication were you looking for? :-) I have a production box with one Service and four Connectors (2 IPs using ports 80 and 443), so that should be fine. Maybe you should post the relevant parts of your server.xml. BTW, did you run nmap or telnet or something to check if anything was listening on the specified IPs in that configuration? -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redeploy a war host without reboot
Andrea Bondi wrote: Hi to all, I've set up Tomcat v. 5.5.9 as the server for the domain www.univaperta.it This is a virtual host, not the only site in this server. Configuration is the following: Host appBase=webapps/univaperta name=www.univaperta.it Context docBase= path= reloadable=true WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource /Context /Host The site works fine. The problem is that I develop this on another computer and deploy as a war (univaperta.war). For every update I have to follow this procedure: - undeploy the site from tomcat manager - restart tomcat - deploy the war file - restart tomcat Is there an easier way to do this? Yes. Probably, anyway. :) I've never worked with .war so I can't say for sure, but I just copy the files I changed and touch the web.xml file - that's enought to trigger an application reload as web.xml is one of the WatchedResources. Could you try that way and see if tomcat reloads the app, just so we can eliminate non-war-related problems? Regards, Tomislav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different JDBC sources?
Simon, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way of achieving this? Shamelessly promoting our own product, you might want to take a look at Qilan. An OS X application, Qilan accesses multiple JDBC database sources and automatically creates all the necessary JSP code. The developer merely creates web pages (webtemplates), with or without specialized tags, then exports them to Tomcat/webapps. If you are using SQL, Qilan handles this as well. Download at: http://cgs.qilan.com:8080/qilan/Qilanv3Beta Stephen Caine CommonGround Softworks, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redeploy a war host without reboot
Hello The easiest way is to have each virtual host with it's own webapp directory (like webapps/ for default host, webapps-univaperta for the univaperta host). In each virtualhost, copy the manager webapp (this can be downloaded from tomcat webpage). You should have something like webapps-univaperta/manager/ in your directory structure afterwards. Start tomcat and point your browser to http://www.univaperta.it/manager/html login using the manager account (see manager doc for details at http://www.univaperta.it/manager/). Inside this manager there is everything you need undeploy/deploy/start/stop webapps. Only the webapps of current virtualhost will be listed :) And no, you don't need to stop/restart tomcat to reploy your war. Le Mardi 13 Septembre 2005 18:05, Andrea Bondi a écrit : Hi to all, I've set up Tomcat v. 5.5.9 as the server for the domain www.univaperta.it This is a virtual host, not the only site in this server. Configuration is the following: Host appBase=webapps/univaperta name=www.univaperta.it Context docBase= path= reloadable=true WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource WatchedResourceWEB-INF/web.xml/WatchedResource /Context /Host The site works fine. The problem is that I develop this on another computer and deploy as a war (univaperta.war). For every update I have to follow this procedure: - undeploy the site from tomcat manager - restart tomcat - deploy the war file - restart tomcat Is there an easier way to do this? Thank you Andrea Bondi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Delbecq Royal Meteorological Institute of Belgium - Is there life after /sbin/halt -p? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Different JDBC sources?
Hi, Yes it's called source control and build management. The same, as you call it, code is the managed master code (cvs/vss etc.) and when you want that pushed to different servers you do so with automated build scripts like Ant, or deployment using application server deploy tools. The point is that you don't modify you code in-situ within the staging/production Tomcat server, you do it in the local dev envionrment, and when ready for deploy, it gets committed, tagged and then war'd up and deployed. Sounds like this may just be too much for your project, but it's nevertheless the standard way. Allistair. -Original Message- From: Vsevolod (Simon) Ilyushchenko [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 17:01 To: Tomcat Users List Subject: Re: Different JDBC sources? Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair, And then I would publish my code into two places? (Or alternatively I can have two applications under one Tomcat, I guess.) I was hoping to somehow avoid that and reuse one set of files (I do it in my Perl apps by having different front controller scripts for different URLs). Thanks, Simon -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK Disclaimer: The information contained within this e-mail is confidential and may be privileged. This email is intended solely for the named recipient only; if you are not authorised you must not disclose, copy, distribute, or retain this message or any part of it. If you have received this message in error please contact the sender at once so that we may take the appropriate action and avoid troubling you further. Any views expressed in this message are those of the individual sender. QAS Limited has the right lawfully to record, monitor and inspect messages between its employees and any third party. Your messages shall be subject to such lawful supervision as QAS Limited deems to be necessary in order to protect its information, its interests and its reputation. Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS Limited cannot guarantee that attachments are virus free or compatible with your systems and does not accept any liability in respect of viruses or computer problems experienced. /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why are tag files always compiled to class files?
Yeah, I ran into this too. It would require a refactoring of jasper to allow this. The last time I looked into this - at first glance, it appeared the tag file need compiled so that all of its properties can be looked up for pages which used that tag file. -Tim ping xu wrote: Hi, I hope someone could shed some light on this: I'm trying to pre-compile JSPs using Jasper (Jasper2 Ant task from the document). My Tomcat version is 5.0.28. In my webapp, there are a few custom tags in tag file format. When I set the jasper2 comiple attribute to false, I expect only java files being generated by Jasper Ant task -- they shouldn't be compiled to class files. This is generally true for all the JSP files. However the tag files don't follow this rule, they always get compiled to class files. Is it possible to let jasper only generate the java files for tag files? Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL embedded filename suggestion not working inTomcat
You could use the Content-Disposition header to send the filename back to the user. -Tim Ron Cozad wrote: This url is not working in Tomcat, but it works with Apache http server. http://my.company.com/cgi-bin/program1.cgi/filename.txt?parameter1=123 Next url does work with tomcat but of course the browser proposes program1.cgi as the name instead of filename.txt, as desired in the first url. http://my.company.com/cgi-bin/program1.cgi?parameter1=123 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different JDBC sources?
Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way of achieving this? Presumably these are two different Contexts; put the appropriate Resource in each ${context}.xml file... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure Tomcat for multiple IPs
What indication were you looking for? :-) Tried browsing to the IP and got nothing. Also didn't see any log file information for it. BTW, did you run nmap or telnet or something to check if anything was listening on the specified IPs in that configuration? To test listening on the specified IPs, I just pinged them both and that was successful. Can you send me the complete Service element of your working configuration please? I'm running Tomcat 5.0.28. Thanks, Brian Barnett -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 10:03 AM To: Tomcat Users List Subject: Re: How to configure Tomcat for multiple IPs Barnett, Brian W. wrote: I have tried one Service with multiple Connector's, one Connector for xxx.xxx.xxx.xxx and one Connector for yyy.yyy.yyy.yyy. I also had two Host elements in this scenario, but got no indication that anything was running on yyy.yyy.yyy.yyy. What indication were you looking for? :-) I have a production box with one Service and four Connectors (2 IPs using ports 80 and 443), so that should be fine. Maybe you should post the relevant parts of your server.xml. BTW, did you run nmap or telnet or something to check if anything was listening on the specified IPs in that configuration? -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to configure Tomcat for multiple IPs
Barnett, Brian W. wrote: BTW, did you run nmap or telnet or something to check if anything was listening on the specified IPs in that configuration? To test listening on the specified IPs, I just pinged them both and that was successful. Well, yeah, that says the interface is alive, but doesn't mean anything's listening; running `telnet xxx.xxx.xxx.xxx 80` will tell you a lot more :-) Can you send me the complete Service element of your working configuration please? I'm running Tomcat 5.0.28. I'm running 5.5.9 but it shouldn't matter; I'll send it offlist. -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Storing a request
Take a look at how form authenticator does it. See http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java?rev=1.24view=markup and the SavedRequest class in the same package. Note that the way this restores the request, particularly the body content, is *very* Tomcat specific. Mark Ajay Arjandas Daryanani wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, this is my first mail to this list, forgive me for any mistake I may make... I'm developing a authorization filter for Tomcat 5; in some cases, if the user credentials are invalid, I have to save the original request, redirect the user to an external authentication engine, handle the response and then proceed with the original request. The problem is, I can't find a way to clone the request or create a new one. Any comments are welcome. Thanks everyone, Ajay -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFDJqOSUIJoGmiuVrwRAqiHAJ4xBi9L2CwbPUAG2IfuZ04vnw7S1wCg9AJA Z7/YgABDRBF0JMc0D82DtYs= =eyYs -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake
Hello, I am trying to set up Tomcat5 ( as standalone web server ) with https mutal authentication. There is the connector config Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 scheme=https secure=true keystoreFile=F:\Apache Software Foundation\keystores\serverstore.jks keystorePass=changeit clientAuth=true sslProtocol=TLS/ The keys and keystore were created using Keytool Client certificate client.cer was sent to the client machine which uses IE6 to connect the tomcat server. IE6 imported the client certificate into IE6 under the Trusted Root Certification Authorites. When the client IE6 connects to the tomcat web server, the Client Authentication Window appeared without the client certificate. Tomcat log gives following error: *** CertificateRequest Cert Types: RSA, DSS, Cert Authorities: CN=ppwchongdev.plugpower.com, OU=IS, O=Plug Power, L=Latham, ST=New York, C=US CN=Client, OU=TRL, O=IBM, L=Yamato-shi, ST=Kanagawa-ken, C=JP *** ServerHelloDone http-443-Processor25, WRITE: SSLv3 Handshake, length = 938 http-443-Processor25, received EOFException: error http-443-Processor25, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake http-443-Processor25, SEND SSLv3 ALERT: fatal, description = handshake_failure http-443-Processor25, WRITE: SSLv3 Alert, length = 2 http-443-Processor25, called closeSocket() http-443-Processor25, called close() http-443-Processor25, called closeInternal(true) Has anyone know why does this error happen? I am suspecting that IE6 has a problem with the imported client.cer file but I am not able to pinpoint it. Your help will be very much appreciated. Hong
Re: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake
Xia, Hong wrote: Hello, I am trying to set up Tomcat5 ( as standalone web server ) with https mutal authentication. There is the connector config Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 scheme=https secure=true keystoreFile=F:\Apache Software Foundation\keystores\serverstore.jks keystorePass=changeit clientAuth=true sslProtocol=TLS/ The keys and keystore were created using Keytool Client certificate client.cer was sent to the client machine which uses IE6 to connect the tomcat server. IE6 imported the client certificate into IE6 under the Trusted Root Certification Authorites. When the client IE6 connects to the tomcat web server, the Client Authentication Window appeared without the client certificate. Tomcat log gives following error: *** CertificateRequest Cert Types: RSA, DSS, Cert Authorities: CN=ppwchongdev.plugpower.com, OU=IS, O=Plug Power, L=Latham, ST=New York, C=US CN=Client, OU=TRL, O=IBM, L=Yamato-shi, ST=Kanagawa-ken, C=JP *** ServerHelloDone http-443-Processor25, WRITE: SSLv3 Handshake, length = 938 http-443-Processor25, received EOFException: error http-443-Processor25, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake http-443-Processor25, SEND SSLv3 ALERT: fatal, description = handshake_failure http-443-Processor25, WRITE: SSLv3 Alert, length = 2 http-443-Processor25, called closeSocket() http-443-Processor25, called close() http-443-Processor25, called closeInternal(true) Has anyone know why does this error happen? I am suspecting that IE6 has a problem with the imported client.cer file but I am not able to pinpoint it. Your help will be very much appreciated. Hong You need to import the client cert as a user cert, not as a trusted root certificate. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake
Thanks for your help Mark. When I imported the client cert, I pick the 'Automatically select the certificate store ...' option and the certificate appeared under the Trusted Root. I tried to place the certificate under Personal and Other People but the certificate did not appear after the import. -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 2:56 PM To: Tomcat Users List Subject: Re: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake Xia, Hong wrote: Hello, I am trying to set up Tomcat5 ( as standalone web server ) with https mutal authentication. There is the connector config Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 scheme=https secure=true keystoreFile=F:\Apache Software Foundation\keystores\serverstore.jks keystorePass=changeit clientAuth=true sslProtocol=TLS/ The keys and keystore were created using Keytool Client certificate client.cer was sent to the client machine which uses IE6 to connect the tomcat server. IE6 imported the client certificate into IE6 under the Trusted Root Certification Authorites. When the client IE6 connects to the tomcat web server, the Client Authentication Window appeared without the client certificate. Tomcat log gives following error: *** CertificateRequest Cert Types: RSA, DSS, Cert Authorities: CN=ppwchongdev.plugpower.com, OU=IS, O=Plug Power, L=Latham, ST=New York, C=US CN=Client, OU=TRL, O=IBM, L=Yamato-shi, ST=Kanagawa-ken, C=JP *** ServerHelloDone http-443-Processor25, WRITE: SSLv3 Handshake, length = 938 http-443-Processor25, received EOFException: error http-443-Processor25, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake http-443-Processor25, SEND SSLv3 ALERT: fatal, description = handshake_failure http-443-Processor25, WRITE: SSLv3 Alert, length = 2 http-443-Processor25, called closeSocket() http-443-Processor25, called close() http-443-Processor25, called closeInternal(true) Has anyone know why does this error happen? I am suspecting that IE6 has a problem with the imported client.cer file but I am not able to pinpoint it. Your help will be very much appreciated. Hong You need to import the client cert as a user cert, not as a trusted root certificate. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake
Xia, Hong wrote: Thanks for your help Mark. When I imported the client cert, I pick the 'Automatically select the certificate store ...' option and the certificate appeared under the Trusted Root. I tried to place the certificate under Personal and Other People but the certificate did not appear after the import. Then you haven't created the certifcate correctly. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake
Hi Xia: I think you cannot use an self-signed certificate (as keytool generates) for mutual authentication. User certificate's certificate authority signer shoul be the same that signs the server certificate. In this case, the server certificate is self-signed. On the othe hand, who signs the client certificate ? It's self signed too ? In this case, there is a problem, because both of them are self signed -- both of them are signed by different CAs -- there is a handshake failure. INHO, Tomcat's cert shoud be signed by a true CA ... then the browser should recognize CA's cert. I'm sure there is a more technical and deep explanation, but I hope this help. Hector./ Xia, Hong wrote: Hello, I am trying to set up Tomcat5 ( as standalone web server ) with https mutal authentication. There is the connector config Connector port=443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=true disableUploadTimeout=true acceptCount=100 scheme=https secure=true keystoreFile=F:\Apache Software Foundation\keystores\serverstore.jks keystorePass=changeit clientAuth=true sslProtocol=TLS/ The keys and keystore were created using Keytool Client certificate client.cer was sent to the client machine which uses IE6 to connect the tomcat server. IE6 imported the client certificate into IE6 under the Trusted Root Certification Authorites. When the client IE6 connects to the tomcat web server, the Client Authentication Window appeared without the client certificate. Tomcat log gives following error: *** CertificateRequest Cert Types: RSA, DSS, Cert Authorities: CN=ppwchongdev.plugpower.com, OU=IS, O=Plug Power, L=Latham, ST=New York, C=US CN=Client, OU=TRL, O=IBM, L=Yamato-shi, ST=Kanagawa-ken, C=JP *** ServerHelloDone http-443-Processor25, WRITE: SSLv3 Handshake, length = 938 http-443-Processor25, received EOFException: error http-443-Processor25, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake http-443-Processor25, SEND SSLv3 ALERT: fatal, description = handshake_failure http-443-Processor25, WRITE: SSLv3 Alert, length = 2 http-443-Processor25, called closeSocket() http-443-Processor25, called close() http-443-Processor25, called closeInternal(true) Has anyone know why does this error happen? I am suspecting that IE6 has a problem with the imported client.cer file but I am not able to pinpoint it. Your help will be very much appreciated. Hong
DBCP problems with Hibernate
Jason Bell wrote (under Re: Source code for naming-factory-dbcp.jar ?): naming-factory-dbcp.jar Have a look at Commons DBCP. http://jakarta.apache.org/commons/dbcp/ Hope this helps. Yes thanks. I've a problem, that with Hibernate 3.0.5 and TC 5.5.9 using DBCP I am quickly seeing exhaustion of connections. With the default settings I can see 4 active connections with SHOW PROCESSLIST under MySQL. I've managed to trace the code path from Hibernate during close of handle back into TCs DBCP code, so the close is being called. How do you go about enabling DEBUG / TRACE output of DBCP under TC ? Does anybody know of a TC 5.5.9 distibution in SDK form, that is with source and class files in the jars to help debugging this sort of problem, I've attempted to rename and attach source files in Eclipse to see whats going on but have found the line numbers out of sync. How do you find out exactly which version of DBCP TC ships with ? FYI my META-INF/context.xml: Resource name=jdbc/label auth=Container scope=Shareable type=javax.sql.DataSource factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory url=jdbc:mysql://127.0.0.1:3306/label driverClassName=com.mysql.jdbc.Driver username=generic password=generic maxWait=3000 / Thanks Darryl -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; version=2.0 jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} /jsp:root org.apache.jasper.JasperException: /test10.jsp(9,31) The value of attribute value associated with an element type c:set must not contain the '' character. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav a:211) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:196) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any advice? Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different JDBC sources?
Hassan Schroeder wrote on 09/13/2005 12:33 PM: Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way of achieving this? Presumably these are two different Contexts; put the appropriate Resource in each ${context}.xml file... Hassan, Thanks! How will different contexts be invoked depending on the URL? Also, I need to distinguish between the test and production environment in the code to figure out whether emails should be sent or not. Can I detect the current context there? Thanks, Simon -- Simon (Vsevolod ILyushchenko) [EMAIL PROTECTED] http://www.simonf.com Terrorism is a tactic and so to declare war on terrorism is equivalent to Roosevelt's declaring war on blitzkrieg. Zbigniew Brzezinski, U.S. national security advisor, 1977-81 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL mutual communication problem with Tomcat5 --- Remote host closed connection during handshake
Hector Adolfo Alonso wrote: Hi Xia: I think you cannot use an self-signed certificate (as keytool generates) for mutual authentication. User certificate's certificate authority signer shoul be the same that signs the server certificate. In this case, the server certificate is self-signed. On the othe hand, who signs the client certificate ? It's self signed too ? In this case, there is a problem, because both of them are self signed -- both of them are signed by different CAs -- there is a handshake failure. INHO, Tomcat's cert shoud be signed by a true CA ... then the browser should recognize CA's cert. I'm sure there is a more technical and deep explanation, but I hope this help. This is simply wrong. There is *no* requirement that the client and server certificates must be signed by the same CA for the handshake to work. Possible causes of the problem are: - CA cert client not in $JAVA_HOME/jre/lib/security/cacerts on server - client certificate not created with correct usage types - wrong key algorithm / signing algorithm selected First, get HTTPS working with a server certificate. Then get it working over HTTPS using BASIC auth and then get it working using CLIENT-CERT auth. Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Different JDBC sources?
Vsevolod (Simon) Ilyushchenko wrote: Presumably these are two different Contexts; put the appropriate Resource in each ${context}.xml file... Thanks! How will different contexts be invoked depending on the URL? Well, maybe I misunderstood the original question :-) My presumption was that the same code exists at, say, http://dev.example.com/ and http://www.example.com which are clearly different Contexts, even if they're on the same machine being run as virtual hosts. So each Context has a Resource addressing the appropriate DB. Also, I need to distinguish between the test and production environment in the code to figure out whether emails should be sent or not. Can I detect the current context there? If your setup is as described above, you could use getServerName(); alternatively, put a Parameter in the Context to turn on/off email sending. Apologies if this isn't relevant to your environment, though! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't change servlet path
Hi; I have tried the following in context.xml (in webapps/store/WEB-INF and META-INF): Context path=/abc docBase=store debug=5 reloadable=true crossContext=true Resource name=jdbc/storeDB auth=Container type=javax.sql.DataSource username=sa password=* driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select Method=cursor maxActive=8 maxIdle=4/ /Context But http://localhost:8080/abc/ fails while http://localhost:8080/store/ works. What am I doing wrong? Also, does context.xml go in WEB-INF or META-INF? Thanks - dave
RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; % jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} However, I'd like to find out if it anyway somehow possible to use the jsp xml syntax and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 For example Resin does allow it. Any ideas? -Original Message- From: Seva Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:59 PM To: Tomcat Users List Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; version=2.0 jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} /jsp:root org.apache.jasper.JasperException: /test10.jsp(9,31) The value of attribute value associated with an element type c:set must not contain the '' character. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav a:211) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:196) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any advice? Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: Can't change servlet path I have tried the following in context.xml (in webapps/store/WEB-INF and META-INF): Please read the very explicit doc: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html (Since you didn't bother to tell us which Tomcat version you're using, you'll need to adjust the above URL appropriately.) In particular, the above says: In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above. If you are using 5.5, also note the following for the path attribute: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Case-insensitive URLs for serving HTML
That looks like just what I needed. Thanks. -Mark Hassan Schroeder wrote: [EMAIL PROTECTED] wrote: I have a webb app in Tomcat that serves only HTML, and I'd like to make the path component of the URL case-insensitive. ... I guess I'd like to match the URL pattern to a regular expression. One quick, easy approach: UrlRewriteFilter http://tuckey.org/urlrewrite/ HTH! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
You may want to consider using the jTDS (http://jtds.sourceforge.net/) SQL Server driver also. It is faster and more reliable. Sample ResourceParams entries: parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter nameurl/name valuejdbc:jtds:sqlserver://host:port/db;user=username;password=password/v alue /parameter -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 3:51 PM To: tomcat-user@jakarta.apache.org Subject: Can't change servlet path Hi; I have tried the following in context.xml (in webapps/store/WEB-INF and META-INF): Context path=/abc docBase=store debug=5 reloadable=true crossContext=true Resource name=jdbc/storeDB auth=Container type=javax.sql.DataSource username=sa password=* driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select Method=cursor maxActive=8 maxIdle=4/ /Context But http://localhost:8080/abc/ fails while http://localhost:8080/store/ works. What am I doing wrong? Also, does context.xml go in WEB-INF or META-INF? Thanks - dave This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Scripting variable is not generated
I am migrating some code from tomcat 4.* to 5.5. However, I got some compilation error regarding the scripting variable from taglib. This is the definition of the scripting variable in TEI file: VariableInfo vSystemName = new VariableInfo( SystemName, String, true, VariableInfo.AT_END ); This is how this tag is used in the JSP page: If( some condition ) { system:getSystemName/ %=SystemName% } else { system:getSystemName/ %=SystemName% } But a got a Java compilation error saying the second SystemName cannot be resolved. I looked into the generated java code and it seems that only one SystemName is declared which is within the âifâ and not visible in the âelseâ. If I remove the âsystem:getSystemNameâ inside if, âSystemNameâ is now declared inside âelseâ. This works differently from Tomcat 4.* which always generate the declaration of the âSystemNameâ in above case. And I donât think itâs consistent with the spec. The variable is defined as âAT_ENDâ scope and âdeclareâ is set to true. So it should always be declared or a lot of existing code will be broken. Any thoughts? Did I miss anything? Thanks Wei __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cluster exception - please explain
Exception in thread Cluster-MembershipReceiver java.lang.OutOfMemoryError: Jav a heap space I am getting the above error. Can someone tell me why?? I am running tomcat5.5 with a jsdk1.5.0_04 on windows xp How can I fix this? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5.5 and startup.bat
I would prefer to run Tomcat5.5 from a script. Can this be done? The scripts are not in the download anymore John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat5.5 and startup.bat
From: John MccLain [mailto:[EMAIL PROTECTED] Subject: Tomcat5.5 and startup.bat I would prefer to run Tomcat5.5 from a script. Can this be done? The scripts are not in the download anymore They're in the .zip and .tar.gz downloads, but not in the .exe one. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
Hello; I am using Tomcat 5.5 (which is really nice). 1) I have no Context nodes in server.xml 2) Tomcat 5.5\conf\context.xml is: Context WatchedResourceWEB-INF/web.xml/WatchedResource /Context 3) Tomcat 5.5\webapps\store\META-INF\context.xml is: Context path=/abc docBase=store debug=5 reloadable=true crossContext=true Resource name=jdbc/storeDB auth=Container type=javax.sql.DataSource username=sa password=* driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver url=jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=StoreTest;Select Method=cursor maxActive=8 maxIdle=4/ /Context Yet http://localhost:8080/abc fails and http://localhost:8080/store succeeds. I've read all the docs and it seems to me this is supposed to work. What am I missing Thanks - dave -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 3:59 PM To: Tomcat Users List Subject: RE: Can't change servlet path From: David Thielen [mailto:[EMAIL PROTECTED] Subject: Can't change servlet path I have tried the following in context.xml (in webapps/store/WEB-INF and META-INF): Please read the very explicit doc: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html (Since you didn't bother to tell us which Tomcat version you're using, you'll need to adjust the above URL appropriately.) In particular, the above says: In addition to nesting Context elements inside a Host element, you can also store them: * in the individual $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps * in the individual $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory * if the previous file was not found for this application, in individual file at /META-INF/context.xml inside the application files Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place Context elements directly in the server.xml file. Instead, put them in the META-INF/context.xml directory of your WAR file or the conf directory as described above. If you are using 5.5, also note the following for the path attribute: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path 3) Tomcat 5.5\webapps\store\META-INF\context.xml is: Context path=/abc docBase=store debug=5 reloadable=true crossContext=true /Context What am I missing To repeat (3rd time today): If you are using 5.5, also note the following for the path attribute: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat does not honor acceptCount configuration variable
Iâve just migrated to Tomcat 5.5 and found that the configuration variable âacceptCountâ under âConnectorâ takes no effect. For example, if I set acceptCount to 1000 but leave maxThreads to 75, it cannot handle 500 concurrent requests. I have to increase the maxThreads to around 1000, otherwise, most of the request will be rejected by Tomcat. I remember we have similar problem in Tomcat 4.*. I am wondering whether this issue has been resolved in Tomcat 5. Thanks Wei __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cross context info
I have 2 webapps living on the same server and they are linked to the same user experiance.. Now both apps require login but i don't want my users to have to login on both apps. Also while they are browsing in one context i don't want the session to expire for the other context. so the question is Is there a way to do session.setAtribute in one context and retrieve it from another and also to link the 2 session so that they don't expire or expire at the same time? i'd like not to have to use hidden iframe and stuff like that thanks! -- Alain Gaeremynck CTO Le Groupe Interstructure (514) 374-1110 (514) 825-7810 cell weblog: http://www.sanssucre.ca (En informatique, comme en musique, n'importe quoi sauf du commercial) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
Hi; I'm sorry - I saw all the notes about don't put anything in server.xml and so skipped over that part. Out of curiosity, three questions: 1) Why is this forced in server.xml when otherwise we are supposed to put everything in our META-INF? 2) In this case, is the context.xml in my META-INF used also? In other words, should I put the JDBC Resource node in the Context node in server.xml or in my context.xml? 3) While /abc now works, /store still does too. Is this by design? Thanks again - dave -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 5:42 PM To: Tomcat Users List Subject: RE: Can't change servlet path From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path 3) Tomcat 5.5\webapps\store\META-INF\context.xml is: Context path=/abc docBase=store debug=5 reloadable=true crossContext=true /Context What am I missing To repeat (3rd time today): If you are using 5.5, also note the following for the path attribute: The value of this field must not be set except when statically defining a Context in server.xml, as it will be infered [sic] from the filenames used for either the .xml context file or the docBase. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem making my servlet the default servlet (instead of ROOT)
Hi; If I do Context path=/ docBase=store., then http://localhost:8080/cart.faces returns an error 404. I figured it should be / and not ? If I do Context path= docBase=store., then it works. But. http://localhost:8080/store/cart.faces works http://localhost/store/cart.faces works (via IIS) http://localhost:8080/cart.faces works http://localhost/cart.faces - error 404 Any idea why the error only if using the root? ??? - thanks - dave
Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote: BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; % jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} However, I'd like to find out if it anyway somehow possible to use the jsp xml syntax and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 For example Resin does allow it. Any ideas? snip/ Funny you should ask [ http://marc.theaimsgroup.com/?l=tomcat-userm=112493628101874w=2 ] -Rahul -Original Message- From: Seva Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:59 PM To: Tomcat Users List Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; version=2.0 jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} /jsp:root org.apache.jasper.JasperException: /test10.jsp(9,31) The value of attribute value associated with an element type c:set must not contain the '' character. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav a:211) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:196) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any advice? Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't change servlet path
From: David Thielen [mailto:[EMAIL PROTECTED] Subject: RE: Can't change servlet path 1) Why is this forced in server.xml when otherwise we are supposed to put everything in our META-INF? You should consider the use of Context in server.xml as merely a migration mechanism from older Tomcat versions. The path attribute has to be used in this situation, since there is no other means of determining the application name. For the other two cases, the application name is derivable from either the location or the name of the .xml file. 2) In this case, is the context.xml in my META-INF used also? In other words, should I put the JDBC Resource node in the Context node in server.xml or in my context.xml? You simply shouldn't have a Context tag in server.xml (see above). 3) While /abc now works, /store still does too. Is this by design? I suspect that your app has actually been deployed twice - once for each of the Context instances you have. I believe the normal way of handling a single app that you want to use under multiple path names is to have trivial secondary apps that merely forward requests to the real one. (Others may have better solutions, since I primarily work on the inside of the JVM, not on J2EE apps.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat does not honor acceptCount configuration variable
From: Wei Zhao [mailto:[EMAIL PROTECTED] Subject: Tomcat does not honor acceptCount configuration variable I’ve just migrated to Tomcat 5.5 and found that the configuration variable “acceptCount†under “Connector†takes no effect. Can you show us your complete Connector/ tag from server.xml? (Hopefully it won't suffer from the same character mapping problems your e-mails seem to have.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Problem making my servlet the default servlet (instead of ROOT)
If I do Context path=/ docBase=store., then http://localhost:8080/cart.faces returns an error 404. Yep. It will. Since you are using the path attribute I assume this is in the server.xml and to set it as the root you would use . If you specify a context path of an empty string (), you are defining the default web application for this Host, which will process all requests not assigned to other Contexts. If this is not in the server.xml then remove the path attribute completely. Name your package ROOT.war and deploy it. (Someone correct me if I am wrong here.) I figured it should be / and not ? No. See above. If I do Context path= docBase=store., then it works. But. http://localhost:8080/store/cart.faces works http://localhost/store/cart.faces works (via IIS) http://localhost:8080/cart.faces works http://localhost/cart.faces - error 404 Any idea why the error only if using the root? I don't use IIS but I would say it is a configuration issue in the connector, as you are connecting to two different apps in the first two URLs than you are in the last two. And since both :8080 URLs work then Tomcat is working. Out of curiosity is there any particular reason you are using IIS and not Tomcat alone? Doug - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1
It is funny. Once I talked with you a while ago I found in the spec that I indeed should use %= exp % in a JSP documents (i.e. with xml syntax) instead of %= exp % in a JSP page. I tried it then and it did not work for me. So I've decided that it's implemented differently in Tomcat. I've just have tried it once more and it is working fine! I guess last time my jsp was cached and that's why I did not see the result :) Thanks again for your responce. It was helpful. --Seva From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: Tue 9/13/2005 6:28 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote: BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml syntax) it's working fine: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt; % %@ taglib prefix=fn uri=http://java.sun.com/jsp/jstl/functions; % jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} However, I'd like to find out if it anyway somehow possible to use the jsp xml syntax and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 For example Resin does allow it. Any ideas? snip/ Funny you should ask [ http://marc.theaimsgroup.com/?l=tomcat-userm=112493628101874w=2 ] -Rahul -Original Message- From: Seva Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:59 PM To: Tomcat Users List Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:fmt=http://java.sun.com/jsp/jstl/fmt; xmlns:fn=http://java.sun.com/jsp/jstl/functions; version=2.0 jsp:directive.page contentType=text/html; charset=UTF-8/ c:set var=aheader value='%=System.getProperty(com.tv.common.assets.header)%'/ ${aheader} /jsp:root org.apache.jasper.JasperException: /test10.jsp(9,31) The value of attribute value associated with an element type c:set must not contain the '' character. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand ler.java:39) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java :405) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java :86) org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.jav a:211) org.apache.jasper.compiler.ParserController.doParse(ParserController.jav a:196) org.apache.jasper.compiler.ParserController.parse(ParserController.java: 100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja va:556) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:293) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Any advice? Thanks, Seva - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Issue with the admin webapp
I filed a bug for this (http://issues.apache.org/bugzilla/show_bug.cgi?id=35835) and it seems this is fixed in 5.5.10. But I don't see a 5.5.10 download and wanted clarification on whether 5.5.11-alpha contains the fix as well. I'm going to check it out anyways when I get a chance. Sastry Toby Vidler wrote: Hi All, I am also experiencing issues with this and am wondering if what is happening is intended behaviour or not. Have replicated this using Tomcat 5.5.7 and 5.5.9 on Windows. When I use the Tomcat Admin webapp the server.xml is overwritten without any of our customised preexisting (manually configured) settings. Indeed, when I use the admin app to configure settings in the server.xml these changes are applied OK but then seem to be lost on a Tomcat restart anyway! Surely I'm doing *something* wrong! Any help here would be great. There doesn't seem to be much documentation around for this Admin app so any pointers in this regard would be helpful as well. Regards, Toby Sastry Malladi wrote: Hi, I've noticed that when I use the admin web app (the default one that comes with tomcat distribution) and click on commit changes, the SSL connector entry in server.xml seems to get corrupted. As a result, tomcat can not be restarted. This happens whether or not I actually change any parameters through the admin page, before I click on commit changes. For example, there are extra duplicate attributes on the SSL connector entry : secure=true keystore=.. protocol=TLS If I remove the duplicate attributes manually, and then restart, it works ok. Has anyone else noticed this ? Is this a known issue ? I'm using tomcat 5.0.28 Thanks, Sastry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]