Request parameters when using Apache mod_rewrite
Hi, I'm running Tomcat 6.0.14 behind an Apache with mod_rewrite proxying. code RewriteRule ^/www/(.*\.xyz)$ http://127.0.0.1:8080/webapp/$1 [P] /code Now when I examine the request object with e.g. code request.getRemoteAddr(); /code I (of course) get 127.0.0.1. So my question is: Is there a way to get the real remote address (the remote address _before_ it get's rewritten) with this scenario? Many thanks in advance Dilino - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request parameters when using Apache mod_rewrite [SOLVED]
Ok, sorry for bugging you. I overlooked the fact that I get the following headers: x-forwarded-for: 1.2.3.4 x-forwarded-host: abc.com x-forwarded-server: abc.com Dilino Dieter Schicker wrote: Hi, I'm running Tomcat 6.0.14 behind an Apache with mod_rewrite proxying. code RewriteRule ^/www/(.*\.xyz)$ http://127.0.0.1:8080/webapp/$1 [P] /code Now when I examine the request object with e.g. code request.getRemoteAddr(); /code I (of course) get 127.0.0.1. So my question is: Is there a way to get the real remote address (the remote address _before_ it get's rewritten) with this scenario? Many thanks in advance Dilino - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application startup problem
A different David here ... given the error doesn't have actual version numbers in it, it may be a corrupted class. Can you recompile it and see if that fixes the issue? --David Jannetta Steyn wrote: Hi David Thanks for your response. At least one class file in your war requires a jvm which's version should be higher than the one running tomcat. It generally occurs when you try to load a java 5 compiled class file using a java 1.4 or earlier jvm. I'll check twice the version tomcat is actually using to run. It is most probably not what you said, because tomcat requires a JDK, and not a JRE! Since tomcat did not refuse to start mentionning it's not a jdk, it certainly did not use JRE1.5.0_14 in your server. Having had problems with this server before, I uninstalled every JDK and JRE I could find and installed the JRE mentioned. When I installed Tomcat 5.5, I selected that JRE. Tomcat seems to run fine and a previous version of my application also seems to be running quite happily. Why does Tomcat 5.5 need a JDK (only answer, if it is not RTFM, because I obviously haven't done it properly) There are a few JREs left in Oracle directories and because I don't know what they are I have had to leave them since the server is also used by others. Below is the server path: D:\Program Files\PHP\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Progr am Files\Dell\OpenManage\Array Manager;C:\Program Files\Common Files\Network Ass ociates\VirusScan Engine\4.0.xx\;C:\Program Files\Microsoft SQL Server\80\Tools\ Binn\;C:\Program Files\DataDirect\ODBC32v50\Drivers;D:\oracle9i\OPatch;D:\San_Fr ancisco\Products\SIST\bin;D:\Edits\products\EDITS\bin;D:\oracle9i\jre\1.4.2\bin\ client;D:\oracle9i\jre\1.4.2\bin;D:\oracle9i\bin;C:\Program Files\Oracle\jre\1.3 .1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;D:\oracle10g\product\OraDb10gHome\j re\1.4.2\bin\client;D:\oracle10g\product\OraDb10gHome\jre\1.4.2\bin;C:\Program F iles\Java\jre1.5.0_14\bin;\bin;C:\Program Files\Oracle\jre\1.1.7\bin;D:\Edits\pr oducts\EDITS\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\MySQL\MySQL Se rver 5.0\bin;Ø The truth is, that from what I can see, this server is in a very iffy state, but unfortunately I have no control over it and I'll have to request our IT department to re-do the server which will probably take weeks (I'm not allowed to do it myself - I wouldn't have used Windows in the first place, but there you go ... ). Before going the re-do way I wanted to try and resolve the problem if possible. I'll start by moving my path to jre1.5.0 to the front of the path. But if anyone spots anything else that could help resolve the problem, I'd appreciate some pointers. Regards Jannetta This e-mail and any attachments are for the intended addressee(s) only and may contain confidential and/or privileged material. If you are not a named addressee, do not use, retain or disclose such information. This email is not guaranteed to be free from viruses and does not bind Serco in any contract or obligation. Serco Limited. Registered in England and Wales. No: 242246 Registered Office: Serco House,16 Bartley Wood Business Park, Hook, Hampshire RG27 9UY United Kingdom. Help cut carbon...please don’t print this e-mail unless you really need to. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application startup problem
Jannetta Steyn a écrit : Hi David Thanks for your response. At least one class file in your war requires a jvm which's version should be higher than the one running tomcat. It generally occurs when you try to load a java 5 compiled class file using a java 1.4 or earlier jvm. I'll check twice the version tomcat is actually using to run. It is most probably not what you said, because tomcat requires a JDK, and not a JRE! Since tomcat did not refuse to start mentionning it's not a jdk, it certainly did not use JRE1.5.0_14 in your server. Having had problems with this server before, I uninstalled every JDK and JRE I could find and installed the JRE mentioned. When I installed Tomcat 5.5, I selected that JRE. Tomcat seems to run fine and a previous version of my application also seems to be running quite happily. Why does Tomcat 5.5 need a JDK (only answer, if it is not RTFM, because I obviously haven't done it properly) Try a java 6, just to be sure? :) Am not used a lot to tomcat under windows, and the way it locates it's jvm under that os. As for your question, tomcat officially only support jdks, because it needs a compiler to compile JSPs. However, wiki states that if JSPs are precompiled, you can use a simple jre, at your own risks. It's not impossible oracle's jvms interfers with your tomcat. Also ensure your .war is in fact build to work with java 5 or later. You should perhaps also check your log files, around tomcat startup, to get informations about tomcat startup, and maybe about which jvm it uses. As far as i remember, it should at least show warning about using a jre. There are a few JREs left in Oracle directories and because I don't know what they are I have had to leave them since the server is also used by others. Below is the server path: D:\Program Files\PHP\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Progr am Files\Dell\OpenManage\Array Manager;C:\Program Files\Common Files\Network Ass ociates\VirusScan Engine\4.0.xx\;C:\Program Files\Microsoft SQL Server\80\Tools\ Binn\;C:\Program Files\DataDirect\ODBC32v50\Drivers;D:\oracle9i\OPatch;D:\San_Fr ancisco\Products\SIST\bin;D:\Edits\products\EDITS\bin;D:\oracle9i\jre\1.4.2\bin\ client;D:\oracle9i\jre\1.4.2\bin;D:\oracle9i\bin;C:\Program Files\Oracle\jre\1.3 1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;D:\oracle10g\product\OraDb10gHome\j re\1.4.2\bin\client;D:\oracle10g\product\OraDb10gHome\jre\1.4.2\bin;C:\Program F iles\Java\jre1.5.0_14\bin;\bin;C:\Program Files\Oracle\jre\1.1.7\bin;D:\Edits\pr oducts\EDITS\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\MySQL\MySQL Se rver 5.0\bin;Ø The truth is, that from what I can see, this server is in a very iffy state, but unfortunately I have no control over it and I'll have to request our IT department to re-do the server which will probably take weeks (I'm not allowed to do it myself - I wouldn't have used Windows in the first place, but there you go ... ). Before going the re-do way I wanted to try and resolve the problem if possible. I'll start by moving my path to jre1.5.0 to the front of the path. But if anyone spots anything else that could help resolve the problem, I'd appreciate some pointers. Regards Jannetta This e-mail and any attachments are for the intended addressee(s) only and may contain confidential and/or privileged material. If you are not a named addressee, do not use, retain or disclose such information. This email is not guaranteed to be free from viruses and does not bind Serco in any contract or obligation. Serco Limited. Registered in England and Wales. No: 242246 Registered Office: Serco House,16 Bartley Wood Business Park, Hook, Hampshire RG27 9UY United Kingdom. Help cut carbon...please don’t print this e-mail unless you really need to. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
Jonadan wrote: BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? Are you delivering your PDF over an HTTPS connection? It's not a Tomcat problem, it's probably an IE problem. Some versions of IE have issues with responses that contain combinations of the application/pdf mime-type in the Content-Type header, no-cache Cache instructions and HTTPS connections. p - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: application startup problem
Hi David Thanks for your response. At least one class file in your war requires a jvm which's version should be higher than the one running tomcat. It generally occurs when you try to load a java 5 compiled class file using a java 1.4 or earlier jvm. I'll check twice the version tomcat is actually using to run. It is most probably not what you said, because tomcat requires a JDK, and not a JRE! Since tomcat did not refuse to start mentionning it's not a jdk, it certainly did not use JRE1.5.0_14 in your server. Having had problems with this server before, I uninstalled every JDK and JRE I could find and installed the JRE mentioned. When I installed Tomcat 5.5, I selected that JRE. Tomcat seems to run fine and a previous version of my application also seems to be running quite happily. Why does Tomcat 5.5 need a JDK (only answer, if it is not RTFM, because I obviously haven't done it properly) There are a few JREs left in Oracle directories and because I don't know what they are I have had to leave them since the server is also used by others. Below is the server path: D:\Program Files\PHP\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Progr am Files\Dell\OpenManage\Array Manager;C:\Program Files\Common Files\Network Ass ociates\VirusScan Engine\4.0.xx\;C:\Program Files\Microsoft SQL Server\80\Tools\ Binn\;C:\Program Files\DataDirect\ODBC32v50\Drivers;D:\oracle9i\OPatch;D:\San_Fr ancisco\Products\SIST\bin;D:\Edits\products\EDITS\bin;D:\oracle9i\jre\1.4.2\bin\ client;D:\oracle9i\jre\1.4.2\bin;D:\oracle9i\bin;C:\Program Files\Oracle\jre\1.3 .1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;D:\oracle10g\product\OraDb10gHome\j re\1.4.2\bin\client;D:\oracle10g\product\OraDb10gHome\jre\1.4.2\bin;C:\Program F iles\Java\jre1.5.0_14\bin;\bin;C:\Program Files\Oracle\jre\1.1.7\bin;D:\Edits\pr oducts\EDITS\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\MySQL\MySQL Se rver 5.0\bin;Ø The truth is, that from what I can see, this server is in a very iffy state, but unfortunately I have no control over it and I'll have to request our IT department to re-do the server which will probably take weeks (I'm not allowed to do it myself - I wouldn't have used Windows in the first place, but there you go ... ). Before going the re-do way I wanted to try and resolve the problem if possible. I'll start by moving my path to jre1.5.0 to the front of the path. But if anyone spots anything else that could help resolve the problem, I'd appreciate some pointers. Regards Jannetta This e-mail and any attachments are for the intended addressee(s) only and may contain confidential and/or privileged material. If you are not a named addressee, do not use, retain or disclose such information. This email is not guaranteed to be free from viruses and does not bind Serco in any contract or obligation. Serco Limited. Registered in England and Wales. No: 242246 Registered Office: Serco House,16 Bartley Wood Business Park, Hook, Hampshire RG27 9UY United Kingdom. Help cut carbon...please don’t print this e-mail unless you really need to. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
Mark Riggins wrote: Instead of a basic-authentication dialog box, I get the following error message instead. HTTP Status 401 - type Status report message description This request requires HTTP authentication (). Apache Tomcat/6.0.13 My tomcat-users.xml file looks like this: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=manager password=manager roles=manager/ user username=admin password=admin roles=admin/ /tomcat-users From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat Manager Application/realm-name /login-config !-- Security roles referenced by this web application -- security-role description The role that is required to log in to the Manager Application /description role-namemanager/role-name /security-role But the dialog NEVER APPEARS. Any help would be greatly appreciated. I can't get ANT to work without this. I have the exact same problem. The only thing I changed in my configuration was adding a user. I never get the dialog prompt. I'd really like a solution for this problem. -- View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14948099.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application startup problem
At least one class file in your war requires a jvm which's version should be higher than the one running tomcat. It generally occurs when you try to load a java 5 compiled class file using a java 1.4 or earlier jvm. I'll check twice the version tomcat is actually using to run. It is most probably not what you said, because tomcat requires a JDK, and not a JRE! Since tomcat did not refuse to start mentionning it's not a jdk, it certainly did not use JRE1.5.0_14 in your server. Jannetta Steyn a écrit : Hi All I hope someone can point me in the right direction. I am at a bit of a loss. I am having a problem deploying an application to a Windows 2000 server, running Tomcat 5.5 and JRE1.5.0_14. I am getting a java.lang.UnsupportedClassVersionError: Bad version number in .class file error in the catalina log file, but I'm not making any sense of it. The application runs perfectly on my Windows XP workstation Can anybody perhaps help. If I have not provided enough or the appropriate information, please just ask and I'll post it. The full entry in the log is pasted below. Many thanks Jannetta The error in the log is : Jan 18, 2008 10:55:17 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive EDITS_v2.0.0.war Jan 18, 2008 10:55:19 AM org.apache.catalina.startup.HostConfig deployWAR SEVERE: Error deploying web application archive EDITS_v2.0.0.war java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla ssLoader.java:1852) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader .java:876) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1329) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1208) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1068) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458 ) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:139 4) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet .java:213) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 51) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 4) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
application startup problem
Hi All I hope someone can point me in the right direction. I am at a bit of a loss. I am having a problem deploying an application to a Windows 2000 server, running Tomcat 5.5 and JRE1.5.0_14. I am getting a java.lang.UnsupportedClassVersionError: Bad version number in .class file error in the catalina log file, but I'm not making any sense of it. The application runs perfectly on my Windows XP workstation Can anybody perhaps help. If I have not provided enough or the appropriate information, please just ask and I'll post it. The full entry in the log is pasted below. Many thanks Jannetta The error in the log is : Jan 18, 2008 10:55:17 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive EDITS_v2.0.0.war Jan 18, 2008 10:55:19 AM org.apache.catalina.startup.HostConfig deployWAR SEVERE: Error deploying web application archive EDITS_v2.0.0.war java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla ssLoader.java:1852) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader .java:876) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1329) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1208) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1068) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:515) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:458 ) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown Source) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown Source) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:139 4) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet .java:213) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 51) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87 4) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:689) at java.lang.Thread.run(Unknown Source) This e-mail and any attachments are for the intended addressee(s) only and may contain confidential and/or privileged material. If you are not a named addressee, do not use, retain or disclose such information. This email is not guaranteed to be free from viruses and does not bind Serco in any contract or obligation. Serco Limited. Registered in England and Wales. No: 242246 Registered Office: Serco House,16 Bartley Wood Business Park, Hook, Hampshire RG27 9UY
RE: Tomcat 6 - Cluster error.
Hi Filip, Thank you for that suggestion. We are going to try it now. On the other side, if You want to reproduce the error: We have used a server here configured with the same config.xml files. To force it to the crash we send a high amount of login request (Those that creates a new session), for a long time. Not always, but this can reproduce the error without having to wait 12 days. At the moment, we tried once the new keepAliveCount=0, and both nodes worked perfectly during the experiment (45 min, 11.000 hits). It will be a pleasure that you get the debug error, let me know anything more you need. Thank you for the response. We will see the real results in 13 days, I'll update. Best Regards Raúl. -Mensaje original- De: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Enviado el: jueves, 17 de enero de 2008 19:01 Para: Tomcat Users List Asunto: Re: Tomcat 6 - Cluster error. already replied to your old thread ok, it looks like you might have ended up with a rogue socket, and what happens is that any message sent to that socket just gets lost in the ether, since it doesn't have any interest ops. There is a workaround for this, turn off keep alives all together, or implement a keep alive timeout Option 1 - no keep alives at all Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender timeout=6 keepAliveCount=0/ Option 2 - implement a keep alive timeout Transport className=org.apache.catalina.tribes.transport.nio.PooledParallelSender timeout=6 keepAliveTime=12/ or make a combination of both values either option should work for you. On a side note, I'm interested if the scenario you run into is reproducible, it keeps happening over and over again, then if possible, I'd like to get some debug logs from you Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom initialization after startup
Jonadan a écrit : Is there any way I can perform custom initialization IMMEDIATELY after Tomcat startup automatically? use lifecycle listener http://tomcat.apache.org/tomcat-5.5-doc/config/engine.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Impossible to use multi threading with Tomcat by using a DLL ?
Hello, I realize a web application using Struts with Tomcat. In this application, I call a DLL (created with JNI) which call an other DLL (in language C). The last one is in the directory system32 of windows et it use several threads. There is no error but according to the log files, no thread are called. I have call the same DLLs without Tomcat, and it works. Does Tomcat block the multi-threading ? Is there a solution to authorize the multi-threading ? Thanks, Claire.
JSP compilation internal error
Hi All, I am compiling JSP files using ANT and TOMCAT 5.5.17. ANT with jspcompile target gives this output on screen: jspcompile: [jasper2] Jan 18, 2008 9:32:12 AM org.apache.jasper.compiler.TldLocationsCache processWebDotXml [jasper2] WARNING: Internal Error: File /WEB-INF/web.xml not found This happens when I have 2 or more jsp files in JSP folder of the application. If I re-run the same command, it says SUCCESSFULL. That is, it happens first time only. If I keep only 1 jsp file inside JSP folder, everything is fine. Any clue about internal error here. I am trying to create java application with embedded tomcat and MYSQL database. Thanks. -- View this message in context: http://www.nabble.com/JSP-compilation-internal-error-tp14950383p14950383.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd:Tomcat Manager Problems
Hi all, I've a serious problem, I've installed Tomcat on my PC and when I started the service my manager page (http://localhost:8080/manager/html) doesn't show me any information, I've tried to unistall and re-install my Tomcat 5.5.17. I haven't made any further operation on my PC. This is what my catalina log file show me: What should I do? 18-gen-2008 15.34.44 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Programmi\MiKTeX 2.6\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\File comuni\Adobe\AGL;C:\Lindoapi\bin\win32;C:\apache-ant-1.7.0\bin;C:\gwt-windows-1.4.61\;C:\Programmi\QuickTime\QTSystem\; 18-gen-2008 15.34.44 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 18-gen-2008 15.34.44 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 844 ms 18-gen-2008 15.34.44 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 18-gen-2008 15.34.44 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 18-gen-2008 15.34.44 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 18-gen-2008 15.34.46 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 18-gen-2008 15.34.47 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 18-gen-2008 15.34.47 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/15 config=null 18-gen-2008 15.34.47 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 18-gen-2008 15.34.47 org.apache.catalina.startup.Catalina start INFO: Server startup in 2438 ms 18-gen-2008 15.35.08 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) 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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) 18-gen-2008 15.35.10 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) 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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) 18-gen-2008 15.35.10 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at
Re: Custom initialization after startup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonadan, Jonadan wrote: | I need to start database before any servlet gets first request. ~From the servlet specification for ServletContextListener.contextInitialized: Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized. So, this should meet your needs. You should read the documentation for classes suggested by contributors to this list before claiming that they will not meet your needs. | So | immediately after server start, initialize embedded database and make it | ready for incoming first requests, of course, in a separate thread. Actually, you /don't/ want a separate thread: you want it to happen serially, so that nothing else happens during your database initialization. | The same goes not termination time. Again, please read the documentation for ServletContextListener. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeQygoACgkQ9CaO5/Lv0PCvzQCdHYD6/rj/wYVrTO2ZUasia5EL A/0AnRqwEeKkKZupfyfHQKHDe8YS9H0X =szcA -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Filtering the apache clients
Jean-Louis Mateo Pour : users@tomcat.apache.org 18/01/2008 17:09 cc : Objet : Filtering the apache clients Hello, Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server ? It seems that the Connector can accept any requests from any machine. I don't want to do a filtering IP by the unix means (no firewall). Thank you for your response Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24 __ BULL TELESERVICE : Support et conseil logiciels progiciels multi-éditeurs GCOS - AIX - Open Source - Microsoft __ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cluster Not Syncing After Restart
Hi David, I have also made a test with two cluster nodes. Is node2 under load as node1 is started the message are normal. Cluster is starts first and receive message, but the application starts later. As application is startet at node1 the manager request node2 for current sessions. All message that received before the sync is complete are dropped. All message has a timestamp and only message dropped before the GET_ALL_SESSION message are created. At next release 5.5.26 the sessionCounter is also set correct after restart. At my test all sessions are correct load after restart. Peter PS: My Cluster Config: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster doClusterLog=true clusterLogName=clusterlog manager.className=org.apache.catalina.cluster.session.DeltaManager manager.expireSessionsOnShutdown=false manager.notifyListenersOnReplication=false manager.notifySessionListenersOnReplication=false manager.sendAllSessions=false manager.sendAllSessionsSize=500 manager.sendAllSessionsWaitTime=20 Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=224.0.0.4 mcastPort=${mcast.port.prefix}7 mcastFrequency=1000 mcastDropTime=3/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=${port.prefix}7 tcpSelectorTimeout=100 tcpThreadCount=6 / Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=fastasyncqueue recoverTimeout=5000 recoverCounter=6 doTransmitterProcessingStats=true doProcessingStats=true doWaitAckStats=true queueTimeWait=true queueDoStats=true queueCheckLock=true ackTimeout=15000 waitForAck=true keepAliveTimeout=8 keepAliveMaxRequestCount=-1/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.* \.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; primaryIndicator=true / Valve className=org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true / ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / ClusterListener className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderLi stener / /Cluster Am 17.01.2008 um 09:24 schrieb David Rees: On Jan 17, 2008 12:16 AM, Peter Rossbach [EMAIL PROTECTED] wrote: you can't restart your nodes so quickly. As you shutdown one node you must wait 30-45 sec before next restart. Don't restart both nodes at same time. I am waiting at 4 minutes before restarting node 2 before restarting node 1, so that is not the problem in this case. The sequence goes like this: 04:30: Shut down node 1, it gets restarted automatically immediately after it has completely shut down (typically within 10 seconds). 04:34: Shut down node 2, it gets restarted automatically immediately after it has completely shut down (typically within 10 seconds). -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd:Tomcat Manager Problems
Hi all, I've a serious problem, I've installed Tomcat on my PC and when I started the service my manager page (http://localhost:8080/manager/html) doesn't show me any information, I've tried to unistall and re-install my Tomcat 5.5.17. I haven't made any further operation on my PC. This is what my catalina log file show me: What should I do? 18-gen-2008 15.34.44 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Programmi\MiKTeX 2.6\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\File comuni\Adobe\AGL;C:\Lindoapi\bin\win32;C:\apache-ant-1.7.0\bin;C:\gwt-windows-1.4.61\;C:\Programmi\QuickTime\QTSystem\; 18-gen-2008 15.34.44 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 18-gen-2008 15.34.44 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 844 ms 18-gen-2008 15.34.44 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 18-gen-2008 15.34.44 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 18-gen-2008 15.34.44 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 18-gen-2008 15.34.46 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 18-gen-2008 15.34.47 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 18-gen-2008 15.34.47 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/15 config=null 18-gen-2008 15.34.47 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 18-gen-2008 15.34.47 org.apache.catalina.startup.Catalina start INFO: Server startup in 2438 ms 18-gen-2008 15.35.08 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) 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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) 18-gen-2008 15.35.10 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) 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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) 18-gen-2008 15.35.10 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at
Re: Impossible to use multi threading with Tomcat by using a DLL ?
In fact, some of the fonctions of the DLL works except the ones which call the threads. To test my DLL, I have created an applet which call the two DLL and it works very well when I don't use Tomcat. And when I call exactly the same applet with Tomcat, that doesn't work : there is no error but the thread are blocked. 2008/1/18, david delbecq [EMAIL PROTECTED]: Tomcat does not block multi threading. There is not such thing i think in the JVM anyway, so i don't see how it could prevent your native code from creating threads. When you say you are having same call without tomcat, you mean in a spearate jvm, using the same jni libraries? Maybe you are just misuing your system library? Or not calling it at all? There is not restriction in JNI that rpevent multiple thread to call native code, nor is it restriction as to what thread natvie code create. It can even create java threads as far a i know! Claire Dugenet a écrit : Hello, I realize a web application using Struts with Tomcat. In this application, I call a DLL (created with JNI) which call an other DLL (in language C). The last one is in the directory system32 of windows et it use several threads. There is no error but according to the log files, no thread are called. I have call the same DLLs without Tomcat, and it works. Does Tomcat block the multi-threading ? Is there a solution to authorize the multi-threading ? Thanks, Claire. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
Jonadan wrote: BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? FYI, a while ago I wrote a page on the Struts wiki dealing with serving PDFs... while it was meant for Struts, the majority of the information is in fact completely generic and applicable here (Tomcat vs. any other server doesn't matter, most of my issues... I've had the same issues under Tomcat and Websphere). http://wiki.apache.org/struts/ServingPdfDocuments?highlight=%28pdf%29 Frank -- Frank W. Zammetti Author of Practical Ajax Projects With Java Technology (2006, Apress, ISBN 1-59059-695-1) and JavaScript, DOM Scripting and Ajax Projects (2007, Apress, ISBN 1-59059-816-4) and Practical DWR 2 Projects (2008, Apress, ISBN 1-59059-941-1) Java Web Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: No Authentication Dialog appears for Tomcat Manager
From: wlievens [mailto:[EMAIL PROTECTED] Subject: Re: No Authentication Dialog appears for Tomcat Manager Mark Riggins wrote: Instead of a basic-authentication dialog box, I get the following error message instead. HTTP Status 401 - I have the exact same problem. The only thing I changed in my configuration was adding a user. I never get the dialog prompt. As explained before in this thread, this is not a Tomcat problem. Displaying any form of dialog box is the responsibility of the client (usually a browser), not the server. The 401 response Tomcat is returning is exactly what it's supposed to do when an unauthenticated request for a protected resource arrives. Fix your client. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Impossible to use multi threading with Tomcat by using a DLL ?
Tomcat does not block multi threading. There is not such thing i think in the JVM anyway, so i don't see how it could prevent your native code from creating threads. When you say you are having same call without tomcat, you mean in a spearate jvm, using the same jni libraries? Maybe you are just misuing your system library? Or not calling it at all? There is not restriction in JNI that rpevent multiple thread to call native code, nor is it restriction as to what thread natvie code create. It can even create java threads as far a i know! Claire Dugenet a écrit : Hello, I realize a web application using Struts with Tomcat. In this application, I call a DLL (created with JNI) which call an other DLL (in language C). The last one is in the directory system32 of windows et it use several threads. There is no error but according to the log files, no thread are called. I have call the same DLLs without Tomcat, and it works. Does Tomcat block the multi-threading ? Is there a solution to authorize the multi-threading ? Thanks, Claire. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tcnative dll
I am working on a soon to be released product that is currently in a bind as it requires a fix that has been implemented in tcnative-1.dll (ver 1.1.12). Does anyone one know when this version will be released? I have tried compiling the tomcat native source code, but the dll that is produced has to be bundled with separate apr and openssl dlls. If this release isn't in the next day or so, how do I statically compile the source to get one .dll which includes OpenSSL and APR? Stacy
RE: Tomcat Manager Problems
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Fwd:Tomcat Manager Problems What should I do? To start, don't post the same message more than once. 18-gen-2008 15.35.08 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk The above class is contained in server/lib/tomcat-util.jar. I haven't checked the 5.5.17 distribution, but the current 5.5 one does contain the above jar, which does contain the class of interest. (So why are you using such an old Tomcat level?) Did you or some other software set the CLASSPATH environment variable? (QuickTime installation does, for example.) If so, delete the variable - it must not be used when running Tomcat. Its presence can cause symptoms like the 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirects from Root?
Yes, thank you. I think I seen this before, but forgot until you pointed it out. Coo! On Jan 18, 2008 12:58 PM, Hassan Schroeder [EMAIL PROTECTED] wrote: On Jan 16, 2008 2:22 PM, Justin Stanczak [EMAIL PROTECTED] wrote: Anyone have suggestions on setting up redirect for the ROOT folder? http://tuckey.org/urlrewrite/ should take care of it :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- All that is necessary for the triumph of evil is that good men do nothing. - Edmund Burke
Re: URL Redirects from Root?
Just bumping this. Not sure if it got through. I got an email error. On Jan 16, 2008 5:22 PM, Justin Stanczak [EMAIL PROTECTED] wrote: Anyone have suggestions on setting up redirect for the ROOT folder? What I have is an old IIS server that I'm moving to Linux Tomcat. The IIS has all kinds of redirects. My first thought was to just create folders and index.jsp pages with a redirect tag, but is there a better way? -- All that is necessary for the triumph of evil is that good men do nothing. - Edmund Burke -- All that is necessary for the triumph of evil is that good men do nothing. - Edmund Burke
Re: Impossible to use multi threading with Tomcat by using a DLL ?
If your applet code is called from button actions, all calsl to your dll will be made from the same AWT thread. If you call it from a servlet in tomcat , a random thread from the HttpThread pool will be used, that's probably your difference that make it work one side and not the other. Claire Dugenet a écrit : In fact, some of the fonctions of the DLL works except the ones which call the threads. To test my DLL, I have created an applet which call the two DLL and it works very well when I don't use Tomcat. And when I call exactly the same applet with Tomcat, that doesn't work : there is no error but the thread are blocked. 2008/1/18, david delbecq [EMAIL PROTECTED]: Tomcat does not block multi threading. There is not such thing i think in the JVM anyway, so i don't see how it could prevent your native code from creating threads. When you say you are having same call without tomcat, you mean in a spearate jvm, using the same jni libraries? Maybe you are just misuing your system library? Or not calling it at all? There is not restriction in JNI that rpevent multiple thread to call native code, nor is it restriction as to what thread natvie code create. It can even create java threads as far a i know! Claire Dugenet a écrit : Hello, I realize a web application using Struts with Tomcat. In this application, I call a DLL (created with JNI) which call an other DLL (in language C). The last one is in the directory system32 of windows et it use several threads. There is no error but according to the log files, no thread are called. I have call the same DLLs without Tomcat, and it works. Does Tomcat block the multi-threading ? Is there a solution to authorize the multi-threading ? Thanks, Claire. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
comet end event
What do I do to make the END event stop repeating? I don't want to close the CometEvent yet because the server is waiting for data to send to the client. If I don't close the comet event, the END event repeats incessantly. I'm using an unsigned applet as a comet client. To accommodate proxies, I've had to change my comet client to use HttpURLConnection instead of Sockets. (Accessing ProxySelector from an applet to create a socket with a proxy generates an AccessControlException.) HttpURLConnection unfortunately sends a 0crlf when its input stream is retrieved for reading. This generates a Comet END event. Short of closing the comet event, how can I make the server stop notifying me of END events? I can't close the comet event because I want to hold onto the comet output stream for use later to send data to the client. From the comet docs: EventType.END: End may be called to end the processing of the request. Fields that have been initialized in the begin method should be reset. After this event has been processed, the request and response objects, as well as all their dependent objects will be recycled and used to process other requests. End will also be called when data is available and the end of file is reached on the request input (this usually indicates the client has pipelined a request). This seems to indicate that even if I could get the END event to go away quietly, the comet event's output stream might no longer be usable anyway. It seems to me I have 3 options: 1) figure out how to make the comet END event stop repeating and hope it's output stream still works 2) figure out how to keep HttpURLConnection from sending 0crlf (don't know if that can be done) 2) use sockets with ProxySelector (which requires signing my applet and getting users to grant it privileges) Thanks, Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | this is not a cluster error, basically, you are storing a map in the | session, and someone is modifying the map while the cluster is trying to | replicate it How should this be solved? The OP could really only synchronize his own code against either an external monitor, or the Map itself. On the other hand, how should the application's code interact with the cluster replication code to avoid such concurrent modifications? Does the servlet spec provide a mechanism to protect session replication against this? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeRKeYACgkQ9CaO5/Lv0PAF5ACeIlYZAami/vJv8q4DJsOuCl0G v20AoK2+svEmZuyZMJd16P7N8PIfnfMJ =mTNL -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to set ContentType from within Filter?
Hi, I have a simple filter whose goal is to set the content type for a page. However, when I check the actual headers that are returned by the server, I see that they have been overridden by something in Tomcat; I'm just not sure what / where this is happening. I am using tomcat 6.0.14. This is my filter( stripped down): public void doFilter( ServletRequest servletRequest, ServletResponse servletResponse, FilterChain chain ) throws IOException, ServletException { // map to http HttpServletRequest request = (HttpServletRequest) servletRequest; HttpServletResponse response = (HttpServletResponse) servletResponse; servletResponse.setContentType( text/css ); // continue chain.doFilter( servletRequest, servletResponse ); } I see my filter firing properly, but when I look at the returned headers, the content type is set to text/html. Does Tomcat set the ContentType after running executing the filters? Is there a way to override a contentType set in web.xml? Thanks, Eric - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom initialization after startup
Christopher Schultz-2 wrote: This is a self-defeating technique: your threads are not guaranteed to complete your database configuration before any requests are serviced. Nop! The embedded DMBS is not designed such crappy way. That's why we need to use specially developed embedded DBMSs! It creates a server socket that will delay all incoming requests until others are ready! Christopher Schultz-2 wrote: By definition, Tomcat will call this method exactly once before a web application is destroyed, and requests are guaranteed not to follow this call. | Note that ServletContextEvent does not provide such information! What information? I need to know whether Tomcat server shutdown is destroying or whether it is destroyed by administrators. I have to say detecting server shutdown may be difficult. -- View this message in context: http://www.nabble.com/Custom-initialization-after-startup-tp14937407p14965130.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
Unfortunately, I'm not sure, and I don't know how to recreate the problem. Sorry. Mark David Smith-2 wrote: I'm just wondering if you got a 401 page, but a 200 status or something like that. Maybe one of your customizations did some filtering and/or proxying and changed the response code. Seems like the most reasonable cause of your problem. --David Mark Riggins wrote: It turns out that Netbeans likes to use the Tomcat Manager, so I had to get this working. Since others claimed that it worked out of the box I just uninstalled everything [losing quite a bit of customization] and did a clean vanilla install. Now it works, but I have no idea what caused the problem. This is NOT A BROWSER PROBLEM -- I tried two different browsers before, firefox and IE, neither worked before, and both work now. I too had added another user, so perhaps it has something to do with that. At this point, I'm just glad its working. Fortunately, at this point, I'm just dorking around, refreshing my tech skills, which have gotten a little dusty, so I can easily chuck the whole install and start fresh. Mark wlievens wrote: Mark Riggins wrote: Instead of a basic-authentication dialog box, I get the following error message instead. HTTP Status 401 - type Status report message description This request requires HTTP authentication (). Apache Tomcat/6.0.13 My tomcat-users.xml file looks like this: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=manager password=manager roles=manager/ user username=admin password=admin roles=admin/ /tomcat-users From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat Manager Application/realm-name /login-config !-- Security roles referenced by this web application -- security-role description The role that is required to log in to the Manager Application /description role-namemanager/role-name /security-role But the dialog NEVER APPEARS. Any help would be greatly appreciated. I can't get ANT to work without this. I have the exact same problem. The only thing I changed in my configuration was adding a user. I never get the dialog prompt. I'd really like a solution for this problem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14962122.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Removing Context from URL
I am using Tomcat 5.5. I also failed to mention that this is behind IIS using the isapi_redirect.dll. Do the same instructions still apply? Thanks- Joe -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 4:10 PM To: Tomcat Users List Subject: RE: Removing Context from URL From: Woytasik Joe [mailto:[EMAIL PROTECTED] Subject: Removing Context from URL I have a user that wants to be able to hit their app without specifying the context. Assuming you're running on a reasonably recent version of Tomcat (you didn't bother to tell us), just name the webapp ROOT (case sensitive). Tomcat treats ROOT as the default webapp for the Host. Make sure you delete the old webapps/ROOT directory first, of course. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this e-mail in error, please tell us immediately by return e-mail to [EMAIL PROTECTED] and delete the document. E-mails containing unprofessional, discourteous or offensive remarks violate Sentry policy. You may report employee violations by forwarding the message to [EMAIL PROTECTED] No recipient may use the information in this e-mail in violation of any civil or criminal statute. Sentry disclaims all liability for any unauthorized uses of this e-mail or its contents. This e-mail constitutes neither an offer nor an acceptance of any offer. No contract may be entered into by a Sentry employee without express approval from an authorized Sentry manager. Warning: Computer viruses can be transmitted via e-mail. Sentry accepts no liability or responsibility for any damage caused by any virus transmitted with this e-mail. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filtering the apache clients
Caldarale, Charles R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1) Comment out the other Connector elements. 2) Configure the RemoteAddrValve for the desired IP address: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Address%20Filter This won't work, since under AJP/1.3 the Remote Address is the address of the client that connects to Apache, not the address of the Apache machine. From a quick code check, it looks like the secure option isn't supported any longer in mod_jk (it was never that secure to begin with). You can duplicate it by setting: JkEnvVar MyAuthCode password in trusted Apache's, and write a filter that rejects requests that don't have a Request attribute of MyAuthCode with value password. Of course, it is only as secure as your way to secure the name and value. If you want to restrict access to only the copy of Apache running on the same machine as Tomcat, then you can do: Connector protocol=AJP/1.3 address=localhost .. / For any other configuration, you should really have a firewall between the internet and Tomcat. - Chuck - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cluster Not Syncing After Restart
On Jan 18, 2008 1:13 PM, David Rees [EMAIL PROTECTED] wrote: So your testing is with the to-be-released 5.5.26? Where can I get a copy of this and the changes going into 5.5.26? I found the changelog, looks like I need to build 5.5.26 from source myself if i want to test it? http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/webapps/docs/changelog.xml It does look like there are some bugfixes in it which may affect cluster synchronization. -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
It's just plain HTTP! Pid-2 wrote: Jonadan wrote: BTW, is this problem is specific to Tomcat ONLY? Or also occurs in other servers such as JBoss, and so on? Are you delivering your PDF over an HTTPS connection? -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14957804.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
I'm just wondering if you got a 401 page, but a 200 status or something like that. Maybe one of your customizations did some filtering and/or proxying and changed the response code. Seems like the most reasonable cause of your problem. --David Mark Riggins wrote: It turns out that Netbeans likes to use the Tomcat Manager, so I had to get this working. Since others claimed that it worked out of the box I just uninstalled everything [losing quite a bit of customization] and did a clean vanilla install. Now it works, but I have no idea what caused the problem. This is NOT A BROWSER PROBLEM -- I tried two different browsers before, firefox and IE, neither worked before, and both work now. I too had added another user, so perhaps it has something to do with that. At this point, I'm just glad its working. Fortunately, at this point, I'm just dorking around, refreshing my tech skills, which have gotten a little dusty, so I can easily chuck the whole install and start fresh. Mark wlievens wrote: Mark Riggins wrote: Instead of a basic-authentication dialog box, I get the following error message instead. HTTP Status 401 - type Status report message description This request requires HTTP authentication (). Apache Tomcat/6.0.13 My tomcat-users.xml file looks like this: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=manager password=manager roles=manager/ user username=admin password=admin roles=admin/ /tomcat-users From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat Manager Application/realm-name /login-config !-- Security roles referenced by this web application -- security-role description The role that is required to log in to the Manager Application /description role-namemanager/role-name /security-role But the dialog NEVER APPEARS. Any help would be greatly appreciated. I can't get ANT to work without this. I have the exact same problem. The only thing I changed in my configuration was adding a user. I never get the dialog prompt. I'd really like a solution for this problem. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No Authentication Dialog appears for Tomcat Manager
It turns out that Netbeans likes to use the Tomcat Manager, so I had to get this working. Since others claimed that it worked out of the box I just uninstalled everything [losing quite a bit of customization] and did a clean vanilla install. Now it works, but I have no idea what caused the problem. This is NOT A BROWSER PROBLEM -- I tried two different browsers before, firefox and IE, neither worked before, and both work now. I too had added another user, so perhaps it has something to do with that. At this point, I'm just glad its working. Fortunately, at this point, I'm just dorking around, refreshing my tech skills, which have gotten a little dusty, so I can easily chuck the whole install and start fresh. Mark wlievens wrote: Mark Riggins wrote: Instead of a basic-authentication dialog box, I get the following error message instead. HTTP Status 401 - type Status report message description This request requires HTTP authentication (). Apache Tomcat/6.0.13 My tomcat-users.xml file looks like this: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=manager password=manager roles=manager/ user username=admin password=admin roles=admin/ /tomcat-users From web.xml I have: !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method realm-nameTomcat Manager Application/realm-name /login-config !-- Security roles referenced by this web application -- security-role description The role that is required to log in to the Manager Application /description role-namemanager/role-name /security-role But the dialog NEVER APPEARS. Any help would be greatly appreciated. I can't get ANT to work without this. I have the exact same problem. The only thing I changed in my configuration was adding a user. I never get the dialog prompt. I'd really like a solution for this problem. -- View this message in context: http://www.nabble.com/No-Authentication-Dialog-appears-for-Tomcat-Manager-tp14780731p14957770.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to trap exceptions
lanchez a écrit : All, I have a web application and I want to create a generic exception handler/listener which will listen to all the exceptions (checked and runtime) which are thrown by web application. If they reach level of tomcat, just write a servlet filter, and manage it there (try { chain.doFiter(...) } (catch .) {} During a debug sessions I want to enable this listener and bring Tomcat to a screeching halt if there is an exception thrown so I need a listener for any / all exceptions. I have a large code base that I inherited and an exception is being thrown and buried somewhere so there is no stack trace from the exception in any of the tomcat logs. Any idea how can I do this? If you want to bring tomcat to a streching halt when an exception is thrown somewhere (whever or not it is catched), i suggest you run tomcat in eclipse debugger - supend on exception... However! You will quickly notice it's not manageable unless you know which exception you want to look at. This is because in the normal exception of application tons of exception are thrown and catched as part of normal application execution. Regards. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL Redirects from Root?
On Jan 16, 2008 2:22 PM, Justin Stanczak [EMAIL PROTECTED] wrote: Anyone have suggestions on setting up redirect for the ROOT folder? http://tuckey.org/urlrewrite/ should take care of it :-) -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy
Hi, We work on Tomcat clustered server (5.5) and we have this exception in the log (at 5-10 TPS). Could you explain us what's hapenning. Have you a solution? Thanks. Exception: SEVERE: Failed to serialize the session! java.util.ConcurrentModificationException at org.apache.commons.collections.SequencedHashMap$OrderedIterator.next(SequencedHashMap.java:757) at org.apache.commons.collections.LRUMap.writeExternal(LRUMap.java:174) at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1478) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:948) at org.apache.catalina.cluster.session.ReplicatedSession.writeObjectData(ReplicatedSession.java:189) at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.writeSession(SimpleTcpReplicationM anager.java:353) at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.requestCompleted(SimpleTcpReplicat ionManager.java:317) at org.apache.catalina.cluster.tcp.ReplicationValve.send(ReplicationValve.java:549) at org.apache.catalina.cluster.tcp.ReplicationValve.sendMessage(ReplicationValve.java:536) at org.apache.catalina.cluster.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.ja va:518) at org.apache.catalina.cluster.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:428) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:362) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Env: Tomcat Version 5.5.25 Platform OS Linux xxx 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 x86_64 x86_64 GNU/Linux JVM : java version 1.5.0_12 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04) BEA JRockit(R) (build R27.4.0-90-89592-1.5.0_12-20070928-1715-linux-x86_64, compiled mode) Web Server Apache 2.0.59 and mod_jk-1.2.25 Apache jk/worker conf: -- worker.list=balancer worker.balancer.type=lb worker.balancer.balance_workers=asur,asmar worker.balancer.sticky_session=1 worker.asur.host=x worker.asur.port=8009 worker.asur.type=ajp13 worker.asur.lbfactor=1 worker.asur.activation=disabled worker.asmar.host=xxx worker.asmar.port=8009 worker.asmar.type=ajp13 worker.asmar.lbfactor=1 worker.asmar.redirect=asur Cluster configuration: -- _ Microsoft vous offre un logiciel pour classer, retoucher et partager vos photos ! http://www.windowslive.fr/galerie/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to trap exceptions
All, I have a web application and I want to create a generic exception handler/listener which will listen to all the exceptions (checked and runtime) which are thrown by web application. During a debug sessions I want to enable this listener and bring Tomcat to a screeching halt if there is an exception thrown so I need a listener for any / all exceptions. I have a large code base that I inherited and an exception is being thrown and buried somewhere so there is no stack trace from the exception in any of the tomcat logs. Any idea how can I do this? Regards. -- View this message in context: http://www.nabble.com/How-to-trap-exceptions-tp14955601p14955601.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Removing Context from URL
I have a user that wants to be able to hit their app without specifying the context. Right now they need to type http://applicationname.mycompany.com/context and they would like to type http://applicationname.mycompany.com and be directed to their app. Is this possible? If so, what is the best way to accomplish this? Thanks- Joe This e-mail is confidential. If you are not the intended recipient, you must not disclose or use the information contained in it. If you have received this e-mail in error, please tell us immediately by return e-mail to [EMAIL PROTECTED] and delete the document. E-mails containing unprofessional, discourteous or offensive remarks violate Sentry policy. You may report employee violations by forwarding the message to [EMAIL PROTECTED] No recipient may use the information in this e-mail in violation of any civil or criminal statute. Sentry disclaims all liability for any unauthorized uses of this e-mail or its contents. This e-mail constitutes neither an offer nor an acceptance of any offer. No contract may be entered into by a Sentry employee without express approval from an authorized Sentry manager. Warning: Computer viruses can be transmitted via e-mail. Sentry accepts no liability or responsibility for any damage caused by any virus transmitted with this e-mail.
Re: Cluster Not Syncing After Restart
On Jan 18, 2008 8:17 AM, Peter Rossbach [EMAIL PROTECTED] wrote: I have also made a test with two cluster nodes. Is node2 under load as node1 is started the message are normal. Cluster is starts first and receive message, but the application starts later. As application is startet at node1 the manager request node2 for current sessions. All message that received before the sync is complete are dropped. All message has a timestamp and only message dropped before the GET_ALL_SESSION message are created. Just to be clear, you are able to stop and immediately restart a node multiple times without issue? At next release 5.5.26 the sessionCounter is also set correct after restart. At my test all sessions are correct load after restart. So your testing is with the to-be-released 5.5.26? Where can I get a copy of this and the changes going into 5.5.26? Thanks, Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ordered loading of WAR files
If you deploy apps as deflated, shouldn't that solve your problem? I mean insstead of war files, just copy directoried as UNZIPPED. Regards. Fu-Tung Cheng wrote: Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet context.xml mechanism. On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... and that on the 2nd startup it tries to test the connection before the war that is the connection has loaded. I've solved this temporarily by deleting this directory before startup. Does anyone know of a better way to do this? I am using tomcat 6014. Thanks, Fu-Tung Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- View this message in context: http://www.nabble.com/Ordered-loading-of-WAR-files-tp14937881p14957811.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Filtering the apache clients
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1) Comment out the other Connector elements. 2) Configure the RemoteAddrValve for the desired IP address: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Addre ss%20Filter - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd:Tomcat Manager Problems
Check the tomcat use use did not get corrupted / truncated during download. Between installs / reinstall, ensure you also redownloaded tomcat jar (not from browser cache!) [EMAIL PROTECTED] a écrit : Hi all, I've a serious problem, I've installed Tomcat on my PC and when I started the service my manager page (http://localhost:8080/manager/html) doesn't show me any information, I've tried to unistall and re-install my Tomcat 5.5.17. I haven't made any further operation on my PC. This is what my catalina log file show me: What should I do? 18-gen-2008 15.34.44 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Programmi\MiKTeX 2.6\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\File comuni\Adobe\AGL;C:\Lindoapi\bin\win32;C:\apache-ant-1.7.0\bin;C:\gwt-windows-1.4.61\;C:\Programmi\QuickTime\QTSystem\; 18-gen-2008 15.34.44 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 18-gen-2008 15.34.44 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 844 ms 18-gen-2008 15.34.44 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 18-gen-2008 15.34.44 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.17 18-gen-2008 15.34.44 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 18-gen-2008 15.34.46 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 18-gen-2008 15.34.47 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 18-gen-2008 15.34.47 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/15 config=null 18-gen-2008 15.34.47 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 18-gen-2008 15.34.47 org.apache.catalina.startup.Catalina start INFO: Server startup in 2438 ms 18-gen-2008 15.35.08 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) 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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) 18-gen-2008 15.35.10 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/ByteChunk at org.apache.catalina.util.Base64.decode(Base64.java:213) at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:164) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) 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:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 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) 18-gen-2008 15.35.10 org.apache.catalina.connector.CoyoteAdapter service GRAVE: An exception or error
Re: Ordered loading of WAR files
I believe if you specify your applications as Context elements inside server.xml, they will be deployed in the order they are specified Filip Fu-Tung Cheng wrote: Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet context.xml mechanism. On windows my issues appears to be that the context.xml from the auth.war is being cached inside tc/conf/Catalina/localhost/... and that on the 2nd startup it tries to test the connection before the war that is the connection has loaded. I've solved this temporarily by deleting this directory before startup. Does anyone know of a better way to do this? I am using tomcat 6014. Thanks, Fu-Tung Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.5/1228 - Release Date: 1/16/2008 9:01 AM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy
this is not a cluster error, basically, you are storing a map in the session, and someone is modifying the map while the cluster is trying to replicate it org.apache.commons.collections.LRUMap Filip LERBSCHER JEAN-PIERRE wrote: Hi, We work on Tomcat clustered server (5.5) and we have this exception in the log (at 5-10 TPS). Could you explain us what's hapenning. Have you a solution? Thanks. Exception: SEVERE: Failed to serialize the session! java.util.ConcurrentModificationException at org.apache.commons.collections.SequencedHashMap$OrderedIterator.next(SequencedHashMap.java:757) at org.apache.commons.collections.LRUMap.writeExternal(LRUMap.java:174) at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1478) at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:948) at org.apache.catalina.cluster.session.ReplicatedSession.writeObjectData(ReplicatedSession.java:189) at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.writeSession(SimpleTcpReplicationM anager.java:353) at org.apache.catalina.cluster.session.SimpleTcpReplicationManager.requestCompleted(SimpleTcpReplicat ionManager.java:317) at org.apache.catalina.cluster.tcp.ReplicationValve.send(ReplicationValve.java:549) at org.apache.catalina.cluster.tcp.ReplicationValve.sendMessage(ReplicationValve.java:536) at org.apache.catalina.cluster.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.ja va:518) at org.apache.catalina.cluster.tcp.ReplicationValve.sendReplicationMessage(ReplicationValve.java:428) at org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:362) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:773) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:895) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Env: Tomcat Version 5.5.25 Platform OS Linux xxx 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 x86_64 x86_64 GNU/Linux JVM : java version 1.5.0_12 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04) BEA JRockit(R) (build R27.4.0-90-89592-1.5.0_12-20070928-1715-linux-x86_64, compiled mode) Web Server Apache 2.0.59 and mod_jk-1.2.25 Apache jk/worker conf: -- worker.list=balancer worker.balancer.type=lb worker.balancer.balance_workers=asur,asmar worker.balancer.sticky_session=1 worker.asur.host=x worker.asur.port=8009 worker.asur.type=ajp13 worker.asur.lbfactor=1 worker.asur.activation=disabled worker.asmar.host=xxx worker.asmar.port=8009 worker.asmar.type=ajp13 worker.asmar.lbfactor=1 worker.asmar.redirect=asur Cluster configuration: -- _ Microsoft vous offre un logiciel pour classer, retoucher et partager vos photos ! http://www.windowslive.fr/galerie/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 6 embedded use - problems with jsp - No Java compiler available
Hi Oliver, I would guess that a library is missing in your classpath. I am also using Tomcat in embedded mode, and I had seen the same kind of error because I missed to add el-api.jar to the classpath. These are the tomcat libraries I have included and which are sufficient (without any further jasper setup) to compile and run JSPs: annotations-api.jar catalina.jar el-api.jar jasper.jar jasper-el.jar jasper-jdt.jar jsp-api.jar servlet-api.jar tomcat-coyote.jar tomcat-juli.jar tomcat-juli-adapters.jar Regards, Matthias -Original Message- From: olk [mailto:[EMAIL PROTECTED] Sent: Thursday, January 17, 2008 10:33 AM To: users@tomcat.apache.org Subject: Re: Tomcat 6 embedded use - problems with jsp - No Java compiler available Hi, I found a first hint on my own - it is probably related to setting-up jasper correctly - but I hope someone can tell me how to set the parameter for jasper in embedded mode. What I did was: // Create a handler for jsps Wrapper jspServlet = context.createWrapper(); jspServlet.setName(jsp); jspServlet.setServletClass(org.apache.jasper.servlet.JspServlet); jspServlet.addInitParameter(fork, false); jspServlet.addInitParameter(xpoweredBy, false); jspServlet.setLoadOnStartup(2); context.addChild(jspServlet); context.addServletMapping(*.jsp, jsp); context.addServletMapping(*.jspx, jsp); But it seams not enough for embedded mode. I think I have to set also classpath , compiler ,compilerSourceVM , compilerTargetVM. But I do not know where to point them in embedded mode ??? Is there somebody who can help me on this ? Thx. -- View this message in context: http://www.nabble.com/Tomcat-6-embedded-use---problems-with-jsp---No-Jav a-compiler-available-tp14881179p14915285.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: application startup problem
From: david delbecq [mailto:[EMAIL PROTECTED] Subject: Re: application startup problem tomcat requires a JDK, and not a JRE! That's not true. Tomcat 5.0 and older required a JDK, 5.5 and newer run quite happily with just a JRE, since they no longer use javac. - Chuck THIS COMMUNICATION 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
catalina.out hangs in tomcat5.5
hi my tomcat5.5 server works correctly with APR as it showing default web pages for both 8180 and 8443 ports.. but when i try to open catalina.out file in the logs directory it hangs the terminal..file shows no data.. when i did ls -al for this file i got prwx-- 1 tomcat55 root 0 2008-01-18 12:23 catalina.out couple of times opening this file showed crashed editio sessions of vi..so asked to recover , i recovered but its recovery terminal also crashed.. also i changed group of this file to nogroup from root, deleting all .swp files and restarted the server.. then again ls -al gave identical output as above.. and again the file session crashed.. in all the above tomcat server works correctly... what may be the problem? neha Now you can chat without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tcnative dll
Assuming you already downloaded TC6 source This comes straight from the native connector build docs Building from the cvs tree: sh buildconf --with-apr=apr_source_location. configure --with-apr=apr_install_location --with-ssl=openssl_install_locatio n make Testing the build: The make should produce a .so file named libtcnative-1.so. Build the jar containing the example by cd .. ant jar Run the example: ant example-basic Using it in Tomcat: 1 - In Connector use of conf/server.xml: protocol=org.apache.coyote.http11.Http11AprProtocol 2 - In bin/setenv.sh add the following: CATALINA_OPTS=$CATALINA_OPTS -Djava.library.path=tclib_location In my machine I am using: /home/jfclere/tomcat-connectors/jni/native/.libs for tclib_location NOTES: - configure --without-ssl : Configure without ssl support. - To use it in Tomcat you may have to add in bin/setenv.sh: LD_LIBRARY_PATH=openssl_install_location/lib; export LD_LIBRARY_PATH (use ldd ./.libs/libtcnative-1.so to check it). - quick testing: openssl s_client -connect localhost:8443 - For MAC OS X you must manually add a link cd ${tcnative installdir} ln -d libtcnative-1.dylib libtcnative-1.jnilib Martin-- - Original Message - From: Stacy Johnson (stacjohn) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Tomcat Users List users@tomcat.apache.org Sent: Friday, January 18, 2008 8:13 AM Subject: tcnative dll I am working on a soon to be released product that is currently in a bind as it requires a fix that has been implemented in tcnative-1.dll (ver 1.1.12). Does anyone one know when this version will be released? I have tried compiling the tomcat native source code, but the dll that is produced has to be bundled with separate apr and openssl dlls. If this release isn't in the next day or so, how do I statically compile the source to get one .dll which includes OpenSSL and APR? Stacy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Removing Context from URL
From: Woytasik Joe [mailto:[EMAIL PROTECTED] Subject: Removing Context from URL I have a user that wants to be able to hit their app without specifying the context. Assuming you're running on a reasonably recent version of Tomcat (you didn't bother to tell us), just name the webapp ROOT (case sensitive). Tomcat treats ROOT as the default webapp for the Host. Make sure you delete the old webapps/ROOT directory first, of course. - 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PDF problem on IE from JSP
PS; Dynamic generation of PDF files involves more than I thought. I noticed that iText may not generate the same byte strings for the same code. This is from iText manuals. In addition, database contents may change. So there is no way I can deliver the same byte stream in case IE reissues partial requests. Given this type of problems, the following header should be a reasonable compromise that works; response.setContentType(application/pdf;charset=UTF-8); response.setHeader(Content-Disposition, inline;filename=\Document.pdf\); // response.setHeader(Content-Disposition, attachment;filename=\Document.pdf\); response.setContentLength(baos.size()); response.setHeader(Cache-Control, cache); // to make IE work! response.setHeader(Pragma, cache); // to make IE work! response.setDateHeader(Expires, 1); Note that browser will cache for the first time. But will abandon next time for fresh copy! At least current my testing worked. Regards. -- View this message in context: http://www.nabble.com/PDF-problem-on-IE-from-JSP-tp14879788p14967238.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: comet end event
during end and error, you MUST close the Comet event Filip Peter Warren wrote: What do I do to make the END event stop repeating? I don't want to close the CometEvent yet because the server is waiting for data to send to the client. If I don't close the comet event, the END event repeats incessantly. I'm using an unsigned applet as a comet client. To accommodate proxies, I've had to change my comet client to use HttpURLConnection instead of Sockets. (Accessing ProxySelector from an applet to create a socket with a proxy generates an AccessControlException.) HttpURLConnection unfortunately sends a 0crlf when its input stream is retrieved for reading. This generates a Comet END event. Short of closing the comet event, how can I make the server stop notifying me of END events? I can't close the comet event because I want to hold onto the comet output stream for use later to send data to the client. From the comet docs: EventType.END: End may be called to end the processing of the request. Fields that have been initialized in the begin method should be reset. After this event has been processed, the request and response objects, as well as all their dependent objects will be recycled and used to process other requests. End will also be called when data is available and the end of file is reached on the request input (this usually indicates the client has pipelined a request). This seems to indicate that even if I could get the END event to go away quietly, the comet event's output stream might no longer be usable anyway. It seems to me I have 3 options: 1) figure out how to make the comet END event stop repeating and hope it's output stream still works 2) figure out how to keep HttpURLConnection from sending 0crlf (don't know if that can be done) 2) use sockets with ProxySelector (which requires signing my applet and getting users to grant it privileges) Thanks, Peter - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy
the solution is to not store stuff in the session modified by other threads, if that's the case, then its not really something you wanna store in a session Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | this is not a cluster error, basically, you are storing a map in the | session, and someone is modifying the map while the cluster is trying to | replicate it How should this be solved? The OP could really only synchronize his own code against either an external monitor, or the Map itself. On the other hand, how should the application's code interact with the cluster replication code to avoid such concurrent modifications? Does the servlet spec provide a mechanism to protect session replication against this? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkeRKeYACgkQ9CaO5/Lv0PAF5ACeIlYZAami/vJv8q4DJsOuCl0G v20AoK2+svEmZuyZMJd16P7N8PIfnfMJ =mTNL -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Filtering the apache clients
On Fri, 2008-01-18 at 10:53 -0600, Caldarale, Charles R wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Filtering the apache clients Is there any way of configuring the Tomcat Connector to only accept AJP connections from a specific apache server? 1) Comment out the other Connector elements. 2) Configure the RemoteAddrValve for the desired IP address: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Addre ss%20Filter - Chuck In addition to Chuck's suggestions, you may also be interested in the secret setting that can be set in workers.properties on Apache HTTPD and in the tomcat connector conf. This allows you to specify a shared secret between Apache HTTPD and Tomcat, so connections will only be accepted if the secret is provided in the connection attempt. Search for secret in this page: http://tomcat.apache.org/connectors-doc/reference/workers.html Cheers, Ben 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]