Problem with tomcat559 in XP machine
Tomcat 5.5.9 hanged and when I do a netstat under Windows XP, I saw port 8009 with a long list and all user can't access. Is this tomcat problem or windows ? Active Connections Proto Local Address Foreign AddressState TCPtc:3376localhost:8009 ESTABLISHED TCPtc:3939localhost:8009 ESTABLISHED TCPtc:3940localhost:8009 ESTABLISHED TCPtc:3942localhost:8009 ESTABLISHED TCPtc:4108localhost:8009 ESTABLISHED TCPtc:4109localhost:8009 ESTABLISHED TCPtc:4110localhost:8009 ESTABLISHED TCPtc:4111localhost:8009 ESTABLISHED TCPtc:4112localhost:8009 ESTABLISHED TCPtc:4114localhost:8009 ESTABLISHED TCPtc:4116localhost:8009 ESTABLISHED TCPtc:4117localhost:8009 ESTABLISHED TCPtc:4118localhost:8009 ESTABLISHED TCPtc:4119localhost:8009 ESTABLISHED TCPtc:4120localhost:8009 ESTABLISHED TCPtc:4124localhost:8009 FIN_WAIT_2 TCPtc:4125localhost:8009 ESTABLISHED TCPtc:4126localhost:8009 ESTABLISHED TCPtc:4133localhost:8009 ESTABLISHED TCPtc:4134localhost:8009 ESTABLISHED TCPtc:8009localhost:3376 ESTABLISHED TCPtc:8009localhost:3938 CLOSE_WAIT TCPtc:8009localhost:3939 ESTABLISHED TCPtc:8009localhost:3940 ESTABLISHED TCPtc:8009localhost:3942 ESTABLISHED TCPtc:8009localhost:4010 CLOSE_WAIT TCPtc:8009localhost:4011 CLOSE_WAIT TCPtc:8009localhost:4012 CLOSE_WAIT TCPtc:8009localhost:4013 CLOSE_WAIT TCPtc:8009localhost:4014 CLOSE_WAIT TCPtc:8009localhost:4015 CLOSE_WAIT TCPtc:8009localhost:4016 CLOSE_WAIT TCPtc:8009localhost:4095 CLOSE_WAIT TCPtc:8009localhost:4096 CLOSE_WAIT TCPtc:8009localhost:4097 CLOSE_WAIT TCPtc:8009localhost:4098 CLOSE_WAIT TCPtc:8009localhost:4099 CLOSE_WAIT TCPtc:8009localhost:4101 CLOSE_WAIT TCPtc:8009localhost:4102 CLOSE_WAIT TCPtc:8009localhost:4103 CLOSE_WAIT TCPtc:8009localhost:4104 CLOSE_WAIT TCPtc:8009localhost:4105 CLOSE_WAIT TCPtc:8009localhost:4108 ESTABLISHED TCPtc:8009localhost:4109 ESTABLISHED TCPtc:8009localhost:4110 ESTABLISHED TCPtc:8009localhost:4111 ESTABLISHED TCPtc:8009localhost:4112 ESTABLISHED TCPtc:8009localhost:4114 ESTABLISHED TCPtc:8009localhost:4115 CLOSE_WAIT TCPtc:8009localhost:4116 ESTABLISHED TCPtc:8009localhost:4117 ESTABLISHED TCPtc:8009localhost:4118 ESTABLISHED TCPtc:8009localhost:4119 ESTABLISHED TCPtc:8009localhost:4120 ESTABLISHED TCPtc:8009localhost:4121 CLOSE_WAIT TCPtc:8009localhost:4124 CLOSE_WAIT TCPtc:8009localhost:4125 ESTABLISHED TCPtc:8009localhost:4126 ESTABLISHED TCPtc:8009localhost:4133 ESTABLISHED TCPtc:8009localhost:4134 ESTABLISHED TCPtc:http192.3.1.4:1358 ESTABLISHED TCPtc:3317esales.cmks.com.sg:2809 ESTABLISHED TCPtc:3382esales.cmks.com.sg:2903 ESTABLISHED TCPtc:3386esales.cmks.com.sg:2939 ESTABLISHED TCPtc:3398esales.cmks.com.sg:2996 ESTABLISHED TCPtc:3401esales.cmks.com.sg:3003 ESTABLISHED TCPtc:3753esales.cmks.com.sg:4828 ESTABLISHED TCPtc:3932esales.cmks.com.sg:4959 ESTABLISHED TCPtc:3936esales.cmks.com.sg:4970 ESTABLISHED TCPtc:3944esales.cmks.com.sg:4994 ESTABLISHED TCPtc:3948esales.cmks.com.sg:1026 ESTABLISHED
Re: Problem with tomcat559 in XP machine
maybe U should increase the AcceptCount parameter in Connector..it's inside server.xml Tomcat will wait until there's a resource finish their task if the AcceptCount parameter reached, so it's hanged. By increasing it, U should get more AcceptCount. Regards On 8/1/05, dummy [EMAIL PROTECTED] wrote: Tomcat 5.5.9 hanged and when I do a netstat under Windows XP, I saw port 8009 with a long list and all user can't access. Is this tomcat problem or windows ? Active Connections Proto Local Address Foreign Address State TCP tc:3376 localhost:8009 ESTABLISHED TCP tc:3939 localhost:8009 ESTABLISHED TCP tc:3940 localhost:8009 ESTABLISHED TCP tc:3942 localhost:8009 ESTABLISHED TCP tc:4108 localhost:8009 ESTABLISHED TCP tc:4109 localhost:8009 ESTABLISHED TCP tc:4110 localhost:8009 ESTABLISHED TCP tc:4111 localhost:8009 ESTABLISHED TCP tc:4112 localhost:8009 ESTABLISHED TCP tc:4114 localhost:8009 ESTABLISHED TCP tc:4116 localhost:8009 ESTABLISHED TCP tc:4117 localhost:8009 ESTABLISHED TCP tc:4118 localhost:8009 ESTABLISHED TCP tc:4119 localhost:8009 ESTABLISHED TCP tc:4120 localhost:8009 ESTABLISHED TCP tc:4124 localhost:8009 FIN_WAIT_2 TCP tc:4125 localhost:8009 ESTABLISHED TCP tc:4126 localhost:8009 ESTABLISHED TCP tc:4133 localhost:8009 ESTABLISHED TCP tc:4134 localhost:8009 ESTABLISHED TCP tc:8009 localhost:3376 ESTABLISHED TCP tc:8009 localhost:3938 CLOSE_WAIT TCP tc:8009 localhost:3939 ESTABLISHED TCP tc:8009 localhost:3940 ESTABLISHED TCP tc:8009 localhost:3942 ESTABLISHED TCP tc:8009 localhost:4010 CLOSE_WAIT TCP tc:8009 localhost:4011 CLOSE_WAIT TCP tc:8009 localhost:4012 CLOSE_WAIT TCP tc:8009 localhost:4013 CLOSE_WAIT TCP tc:8009 localhost:4014 CLOSE_WAIT TCP tc:8009 localhost:4015 CLOSE_WAIT TCP tc:8009 localhost:4016 CLOSE_WAIT TCP tc:8009 localhost:4095 CLOSE_WAIT TCP tc:8009 localhost:4096 CLOSE_WAIT TCP tc:8009 localhost:4097 CLOSE_WAIT TCP tc:8009 localhost:4098 CLOSE_WAIT TCP tc:8009 localhost:4099 CLOSE_WAIT TCP tc:8009 localhost:4101 CLOSE_WAIT TCP tc:8009 localhost:4102 CLOSE_WAIT TCP tc:8009 localhost:4103 CLOSE_WAIT TCP tc:8009 localhost:4104 CLOSE_WAIT TCP tc:8009 localhost:4105 CLOSE_WAIT TCP tc:8009 localhost:4108 ESTABLISHED TCP tc:8009 localhost:4109 ESTABLISHED TCP tc:8009 localhost:4110 ESTABLISHED TCP tc:8009 localhost:4111 ESTABLISHED TCP tc:8009 localhost:4112 ESTABLISHED TCP tc:8009 localhost:4114 ESTABLISHED TCP tc:8009 localhost:4115 CLOSE_WAIT TCP tc:8009 localhost:4116 ESTABLISHED TCP tc:8009 localhost:4117 ESTABLISHED TCP tc:8009 localhost:4118 ESTABLISHED TCP tc:8009 localhost:4119 ESTABLISHED TCP tc:8009 localhost:4120 ESTABLISHED TCP tc:8009 localhost:4121 CLOSE_WAIT TCP tc:8009 localhost:4124 CLOSE_WAIT TCP tc:8009 localhost:4125 ESTABLISHED TCP tc:8009 localhost:4126 ESTABLISHED TCP tc:8009 localhost:4133 ESTABLISHED TCP tc:8009 localhost:4134 ESTABLISHED TCP tc:http 192.3.1.4:1358 http://192.3.1.4:1358 ESTABLISHED TCP tc:3317 esales.cmks.com.sg:2809 http://esales.cmks.com.sg:2809ESTABLISHED TCP tc:3382 esales.cmks.com.sg:2903 http://esales.cmks.com.sg:2903ESTABLISHED TCP tc:3386 esales.cmks.com.sg:2939 http://esales.cmks.com.sg:2939ESTABLISHED TCP tc:3398 esales.cmks.com.sg:2996 http://esales.cmks.com.sg:2996ESTABLISHED TCP tc:3401 esales.cmks.com.sg:3003 http://esales.cmks.com.sg:3003ESTABLISHED TCP tc:3753 esales.cmks.com.sg:4828 http://esales.cmks.com.sg:4828ESTABLISHED TCP tc:3932 esales.cmks.com.sg:4959 http://esales.cmks.com.sg:4959ESTABLISHED TCP tc:3936 esales.cmks.com.sg:4970 http://esales.cmks.com.sg:4970ESTABLISHED TCP tc:3944 esales.cmks.com.sg:4994 http://esales.cmks.com.sg:4994ESTABLISHED TCP tc:3948 esales.cmks.com.sg:1026 http://esales.cmks.com.sg:1026ESTABLISHED TCP tc:4035 esales.cmks.com.sg:1285 http://esales.cmks.com.sg:1285ESTABLISHED TCP tc:5900 test.cmks.com.sg:1965 http://test.cmks.com.sg:1965ESTABLISHED -- --- http://www.psychotazkia.or.id
illogical redirect on Tomcat 4.1
My Tomcat 4.1.24 returns a 302 (redirect) status on all its physical files (so not JSPs or servlets), complete with a valid redirect path. Anyone seen this behaviour before? It also happens on other systems, so it is an Tomcat/application issue. But since the application has nothing to do with the physical files... Tom - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with tomcat559 in XP machine
But I m not using the http connector. I m using Apache and mod_jk. I disabled the http connectot. -Original Message- From: Lintang JP [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 2:17 PM To: Tomcat Users List Subject: Re: Problem with tomcat559 in XP machine maybe U should increase the AcceptCount parameter in Connector..it's inside server.xml Tomcat will wait until there's a resource finish their task if the AcceptCount parameter reached, so it's hanged. By increasing it, U should get more AcceptCount. Regards On 8/1/05, dummy [EMAIL PROTECTED] wrote: Tomcat 5.5.9 hanged and when I do a netstat under Windows XP, I saw port 8009 with a long list and all user can't access. Is this tomcat problem or windows ? Active Connections Proto Local Address Foreign Address State TCP tc:3376 localhost:8009 ESTABLISHED TCP tc:3939 localhost:8009 ESTABLISHED TCP tc:3940 localhost:8009 ESTABLISHED TCP tc:3942 localhost:8009 ESTABLISHED TCP tc:4108 localhost:8009 ESTABLISHED TCP tc:4109 localhost:8009 ESTABLISHED TCP tc:4110 localhost:8009 ESTABLISHED TCP tc:4111 localhost:8009 ESTABLISHED TCP tc:4112 localhost:8009 ESTABLISHED TCP tc:4114 localhost:8009 ESTABLISHED TCP tc:4116 localhost:8009 ESTABLISHED TCP tc:4117 localhost:8009 ESTABLISHED TCP tc:4118 localhost:8009 ESTABLISHED TCP tc:4119 localhost:8009 ESTABLISHED TCP tc:4120 localhost:8009 ESTABLISHED TCP tc:4124 localhost:8009 FIN_WAIT_2 TCP tc:4125 localhost:8009 ESTABLISHED TCP tc:4126 localhost:8009 ESTABLISHED TCP tc:4133 localhost:8009 ESTABLISHED TCP tc:4134 localhost:8009 ESTABLISHED TCP tc:8009 localhost:3376 ESTABLISHED TCP tc:8009 localhost:3938 CLOSE_WAIT TCP tc:8009 localhost:3939 ESTABLISHED TCP tc:8009 localhost:3940 ESTABLISHED TCP tc:8009 localhost:3942 ESTABLISHED TCP tc:8009 localhost:4010 CLOSE_WAIT TCP tc:8009 localhost:4011 CLOSE_WAIT TCP tc:8009 localhost:4012 CLOSE_WAIT TCP tc:8009 localhost:4013 CLOSE_WAIT TCP tc:8009 localhost:4014 CLOSE_WAIT TCP tc:8009 localhost:4015 CLOSE_WAIT TCP tc:8009 localhost:4016 CLOSE_WAIT TCP tc:8009 localhost:4095 CLOSE_WAIT TCP tc:8009 localhost:4096 CLOSE_WAIT TCP tc:8009 localhost:4097 CLOSE_WAIT TCP tc:8009 localhost:4098 CLOSE_WAIT TCP tc:8009 localhost:4099 CLOSE_WAIT TCP tc:8009 localhost:4101 CLOSE_WAIT TCP tc:8009 localhost:4102 CLOSE_WAIT TCP tc:8009 localhost:4103 CLOSE_WAIT TCP tc:8009 localhost:4104 CLOSE_WAIT TCP tc:8009 localhost:4105 CLOSE_WAIT TCP tc:8009 localhost:4108 ESTABLISHED TCP tc:8009 localhost:4109 ESTABLISHED TCP tc:8009 localhost:4110 ESTABLISHED TCP tc:8009 localhost:4111 ESTABLISHED TCP tc:8009 localhost:4112 ESTABLISHED TCP tc:8009 localhost:4114 ESTABLISHED TCP tc:8009 localhost:4115 CLOSE_WAIT TCP tc:8009 localhost:4116 ESTABLISHED TCP tc:8009 localhost:4117 ESTABLISHED TCP tc:8009 localhost:4118 ESTABLISHED TCP tc:8009 localhost:4119 ESTABLISHED TCP tc:8009 localhost:4120 ESTABLISHED TCP tc:8009 localhost:4121 CLOSE_WAIT TCP tc:8009 localhost:4124 CLOSE_WAIT TCP tc:8009 localhost:4125 ESTABLISHED TCP tc:8009 localhost:4126 ESTABLISHED TCP tc:8009 localhost:4133 ESTABLISHED TCP tc:8009 localhost:4134 ESTABLISHED TCP tc:http 192.3.1.4:1358 http://192.3.1.4:1358 ESTABLISHED TCP tc:3317 esales.cmks.com.sg:2809 http://esales.cmks.com.sg:2809ESTABLISHED TCP tc:3382 esales.cmks.com.sg:2903 http://esales.cmks.com.sg:2903ESTABLISHED TCP tc:3386 esales.cmks.com.sg:2939 http://esales.cmks.com.sg:2939ESTABLISHED TCP tc:3398 esales.cmks.com.sg:2996 http://esales.cmks.com.sg:2996ESTABLISHED TCP tc:3401 esales.cmks.com.sg:3003 http://esales.cmks.com.sg:3003ESTABLISHED TCP tc:3753 esales.cmks.com.sg:4828 http://esales.cmks.com.sg:4828ESTABLISHED TCP tc:3932 esales.cmks.com.sg:4959 http://esales.cmks.com.sg:4959ESTABLISHED TCP tc:3936 esales.cmks.com.sg:4970 http://esales.cmks.com.sg:4970ESTABLISHED TCP tc:3944 esales.cmks.com.sg:4994 http://esales.cmks.com.sg:4994ESTABLISHED TCP tc:3948 esales.cmks.com.sg:1026 http://esales.cmks.com.sg:1026ESTABLISHED TCP tc:4035 esales.cmks.com.sg:1285 http://esales.cmks.com.sg:1285ESTABLISHED TCP tc:5900 test.cmks.com.sg:1965 http://test.cmks.com.sg:1965ESTABLISHED -- --- http://www.psychotazkia.or.id
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
any log file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
my application name is sd. This is my catalina.out . . . INFO: Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/balancer.xml Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /sd from URL file:/opt/tomcat5/webapps/sd Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505) . . . .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) . . . . On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: any log file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
Servlet mapping specifies an unknown servlet name invoker Maybe you try to map a servlet name that's not declared yet on web.xml ? How about your web.xml file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: my application name is sd. This is my catalina.out . . . INFO: Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/balancer.xml Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployerinstall INFO: Installing web application at context path /sd from URL file:/opt/tomcat5/webapps/sd Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java :252) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505) . . . .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException(Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java :2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) . . . . On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: any log file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id
Re: Servlet mapping - url pattern with *
flower [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Let's consider situation like this: We have got some servlets responsible for genereting galery page. We want group galery pages by use common part in uri (/galery/): http://x.com/galery/galery_id/firstpage.html http://x.com/galery/galery_id/secondpage.html firstpage.html is generated by servlet1 , secondpage.html by servlet2. So we must url-pattern like this: /galery/*/firstpage.html and /galery/*/secondpage.html but this url-pattern doesn't work. question: why ? ( I use version 5.5.9 ) Some people, with I was talking about this, said that patterns like this was work with previously version and that version 5.5.9 is crazy ;] I've got a vague recollection that some some such Tomcat-specific extension was proposed on the dev list. Can't remember if it was ever implemented (and to which version), and I'm much to lazy to look it up :). However, the 5.5.9 behavior is in strict compilance with the Servlet spec (and, hence anything but crazy). Is any way to obtain behaviour like above with latest version ? Simplest is with a Filter that does something like: RequestDispatcher rd = null; if(request.getRequestURI().endsWith(/firstpage.html) { rd = getServletContext().getNamedDispatcher(servlet1); } else if(request.getRequestURI().endsWith(/secondpage.html); rd = getServletContext().getNamedDispatcher(servlet2); } if(rd != null) { rd.forward(request, response); } Greatings flow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
which one? tomcat or my application web.xml ? On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Servlet mapping specifies an unknown servlet name invoker Maybe you try to map a servlet name that's not declared yet on web.xml ? How about your web.xml file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: my application name is sd. This is my catalina.out . . . INFO: Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/balancer.xml Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /sd from URL file:/opt/tomcat5/webapps/sd Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java :505) . . . .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) . . . . On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: any log file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
you app.specific web.xml, at WEB-INF On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: which one? tomcat or my application web.xml ? On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Servlet mapping specifies an unknown servlet name invoker Maybe you try to map a servlet name that's not declared yet on web.xml ? How about your web.xml file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: my application name is sd. This is my catalina.out . . . INFO: Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/balancer.xml Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /sd from URL file:/opt/tomcat5/webapps/sd Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java :252) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java :505) . . . .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException(Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java :2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) . . . . On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: any log file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) -- --- http://www.psychotazkia.or.id
TC5.5.9 Linux - shutdown port 8005 not bound BUG?
I've never had TC bind itself to 127.0.0.1:8005 to allow correct shutdown to occur. I've always had to kill the TC JVM. I use JSVC to be able to get a non-root userid. Does this affect how the shutdown port works ? My startup command line: ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -classpath :/opt/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/opt/jakarta-tomcat-5.5.9/bin/commons-logging-api.jar -Dcatalina.base=/opt/jakarta-tomcat-5.5.9 -Dcatalina.home=/opt/jakarta-tomcat-5.5.9 -Djava.io.tmpdir=/opt/jakarta-tomcat-5.5.9/temp -outfile ./logs/catalina.out -errfile ./logs/catalina.err -user jakarta -Xmx2048M -Xms512M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start $ netstat -tanp | grep 80 tcp0 0 :::127.0.0.1:8009 :::*LISTEN 4621/jsvc.exec tcp0 0 :::127.0.0.1:8080 :::*LISTEN 4621/jsvc.exec Should I file this as a bug ? -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC5.5.9 Linux - shutdown port 8005 not bound BUG?
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Subject: TC5.5.9 Linux - shutdown port 8005 not bound BUG? I've never had TC bind itself to 127.0.0.1:8005 to allow correct shutdown to occur. [...] $ netstat -tanp | grep 80 tcp0 0 :::127.0.0.1:8009 :::*LISTEN 4621/jsvc.exec There it is, on 8009 not 8005. Should I file this as a bug ? Depends - have you changed your server.xml at all? - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TC5.5.9 Linux - shutdown port 8005 not bound BUG?
Peter Crowther wrote: From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Subject: TC5.5.9 Linux - shutdown port 8005 not bound BUG? I've never had TC bind itself to 127.0.0.1:8005 to allow correct shutdown to occur. [...] $ netstat -tanp | grep 80 tcp0 0 :::127.0.0.1:8009 :::*LISTEN 4621/jsvc.exec There it is, on 8009 not 8005. Should I file this as a bug ? Depends - have you changed your server.xml at all? Sorry yes... 8009 is the apj13 port (was figuring you'd guess). My apache is using it locally I have added address=127.0.0.1 for ajp13 so its not exposed externally. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TC5.5.9 Linux - shutdown port 8005 not bound BUG?
From: Darryl L. Miles [mailto:[EMAIL PROTECTED] Sorry yes... 8009 is the apj13 port (was figuring you'd guess). Doh. My bad - I use Tomcat directly, not via a front-end, so missed that one. Sorry Darryl (and anyone reading this thread in the archives). My apache is using it locally I have added address=127.0.0.1 for ajp13 so its not exposed externally. Makes sense. I'll crawl back into my hole now. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
I don't think its a good idea to post it here. The files got thousands of lines.. perhaps there are specific parts that I should be look in to? On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: you app.specific web.xml, at WEB-INF On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: which one? tomcat or my application web.xml ? On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Servlet mapping specifies an unknown servlet name invoker Maybe you try to map a servlet name that's not declared yet on web.xml ? How about your web.xml file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: my application name is sd. This is my catalina.out . . . INFO: Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/balancer.xml Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /sd from URL file:/opt/tomcat5/webapps/sd Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java :505) . . . .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException : Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) . . . . On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: any log file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.net ) - To unsubscribe, e-mail:
Re: need help for deployment of unpack apps at Linux Tomcat 5.0
1. try to match the servlet-name part with the servlet-mapping, maybe there's some unmatch item there 2. If U just migrate to tomcat 5, U shd also look the DTD item at the top of your web.xml file, which dtd is used by web.xml in tomcat 5 I guess that's all ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I don't think its a good idea to post it here. The files got thousands of lines.. perhaps there are specific parts that I should be look in to? On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: you app.specific web.xml, at WEB-INF On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: which one? tomcat or my application web.xml ? On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Servlet mapping specifies an unknown servlet name invoker Maybe you try to map a servlet name that's not declared yet on web.xml ? How about your web.xml file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: my application name is sd. This is my catalina.out . . . INFO: Processing Context configuration file URL file:/etc/tomcat5/Catalina/localhost/balancer.xml Aug 1, 2005 11:21:31 PM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /sd from URL file:/opt/tomcat5/webapps/sd Aug 1, 2005 11:21:33 PM org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor46.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java :252) at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java :505) . . . .Aug 1, 2005 11:21:33 PM org.apache.catalina.startup.ContextConfig applicationConfig SEVERE: Parse error in application web.xml java.lang.IllegalArgumentException : Servlet mapping specifies an unknown servlet name invoker at org.apache.commons.digester.Digester.createSAXException(Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java :2566) at org.apache.commons.digester.Digester.endElement(Digester.java:1061) at org.apache.xerces.parsers.AbstractSAXParser.endElement (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement (Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument (Unknown Source) . . . . On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: any log file ? On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm not using the war. This is an Unpacked deployment. On 8/1/05, Lintang JP [EMAIL PROTECTED] wrote: Hi Jeffry, are you trying to deploy a .war file ? maybe U should use the tomcat manager, usually it's located at http://localhost:8080/manager/html, U can deploy your .war files from that tools. On 8/1/05, Mohd. Jeffry [EMAIL PROTECTED] wrote: I'm migrating form Tomcat 4.1.2 to Tomcat 5.0. In Tomcat 4.1.2 I usually put my unpacked apps at /opt/tomcat/webapps/myapp and it work. Now It doesn't work with the newly installed tomcat 5. Tomcat gives me 404 error. The example that came with the package works fine. Any thing that I miss? -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id -- Malaysian Java Online Community ( www.kampungjawa.cjb.nethttp://www.kampungjawa.cjb.net) -
j_security_check sessions
Hi, I am using the built in security constraints to password protect some directories in my app. It works fine, but I was wondering when someone uses the login form to get to the passworded directory or page, is it possible to get the username and/or password that the user submits in the j_security_check form? I'd like to be able to set a cookie or session variable with the persons username in after they log in so the next time they come back to the site they see a personalised greeting kind of thing. I've tried printing out all request attributes/parameters, session variables and cookies after and before login but apart from the sessionid there isnt anything set. Does anyone know how to do what I want? Cheers, Chris.
Redirect HTTP to HTTPS
I know I can redirect HTTP to HTTPS by adding: user-data-constraint transport-guarantee CONFIDENTIAL /transport-guarantee /user-data-constraint to my web.xml but the problem is that this does not redirect when someone just goes to a directory path. I would like http://servername/ to redirect to https://servername/ Thanks, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
turning all logging off (Tomcat 4.1.18)
Hi, I am switching from Tomcat 3.2.X to Tomcat 4.1.18 (yeah, I know these are old, but that's what a 3rd party software vendor requires for their servlet). I do not need any of the Tomcat/servlets' logs and in Tomcat 3.2.X have modified the conf/server.xml Logger tags to contain the attribute path=/dev/null. Tomcat 4.1.18, though, does not seem to honor this anymore. It honors the directory attribute instead and I can get the 3.2.X behaviour by making directory=/dev/null. Is this the right way to do it? Also I had to modify the conf/catalina.sh script's start argument path to not append to catalina.out but to /dev/null. Besides turning all logging off, am I doing something wrong without realising it? Thanks, Nik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Redirect HTTP to HTTPS
Just create a filter (mapping it to /* for example so it gets applied to all requests), test for a secure connection with request.isSecure(), and if it isn't, redirect using response.sendRedirect. Martin Faine, Mark wrote: I know I can redirect HTTP to HTTPS by adding: user-data-constraint transport-guarantee CONFIDENTIAL /transport-guarantee /user-data-constraint to my web.xml but the problem is that this does not redirect when someone just goes to a directory path. I would like http://servername/ to redirect to https://servername/ Thanks, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check sessions
AFAIK, no, there is no way to do it. Here at work we've built a whole security framework that works hand-in-hand with J2EE security, specifically to deal with shortcomings just like this. In our framework, we have a filter who has a couple of functions, and one of them is exactly what you describe. Since j_security_check is nothing but a servlet that a request is redirected to when intercepted, you still have the opportunity to have a filter fire, so you can grab j_username and j_password if you wish and stick them in session (assuming it is created already... you may have set things up to not have a session at that point). -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, August 1, 2005 9:04 am, Chris Holden said: Hi, I am using the built in security constraints to password protect some directories in my app. It works fine, but I was wondering when someone uses the login form to get to the passworded directory or page, is it possible to get the username and/or password that the user submits in the j_security_check form? I'd like to be able to set a cookie or session variable with the persons username in after they log in so the next time they come back to the site they see a personalised greeting kind of thing. I've tried printing out all request attributes/parameters, session variables and cookies after and before login but apart from the sessionid there isnt anything set. Does anyone know how to do what I want? Cheers, Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ZipOutputStream Tomcat 5.5 problem
Hi all, I have a web app that writes some plain text data and then some zipped data to the client: ServletOutputStream out = ... out.print(PLAIN_HEADER|); ZipOutputStream zos = new ZipOutputStream(out); ... use zos ... well, this code is in production since tomcat 4.0.x and works fine since tomcat 5.0.19; but on tomcat 5.5 I got, on the client side, unexpected end of zlib input stream. I got the error only with large datasets, with small ones all works fine. Do you have some advice? I don't know what to do. Best Regards, Tommaso Nolli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Moving to another drive
Hi everybody I'm using Tomcat (4.1) with the Sysdeo plug-in for Eclipse (3.0) on a WinXP machine. Had everything installed on C:\ and all was right with the world. rant Then came McAfee and the bureaucrats, who feel that ALL files should be scanned on access. Which means that even something as benign as looking for a file in an archive, a zip, or jar, causes the entire archive to be scanned, every time. This drives the CPU time consumed by McAfee to 99%. /rant The bureaucrats' solution... Move them all to a network drive, where more powerful machines will do the scanning (and get maxed out) So... I've moved the C:\eclipse and C:\tomcat directories to a networked drive, H:\ I've changed the environment variable CATALINA_HOME to be H:\tomcat and I've changed references in H:\tomcat\conf\server.xml to H: instead of C: Eclipse comes up fine, but when I try to start tomcat, I get: java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap The Bootstrap class is in H:\tomcat\bin\bootstrap.jar, I copied it back to C:\ and tried to start tomcat, and got: Exception during startup processing java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:857) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:176) So... tomcat is still looking at C: for stuff when starting. What am I missing, any ideas? Thank you R. Cornell Sternbergh PennDOT/BIS APRASTeam (717) 787-6760 [EMAIL PROTECTED] Sternbergh, Cornell.vcf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Moving to another drive
Did you change Tomcat Home and Configuration File at Window/Preferences/Tomcat? Fight the bureaucrats ;) - Manfred Sternbergh, Cornell wrote: Hi everybody I'm using Tomcat (4.1) with the Sysdeo plug-in for Eclipse (3.0) on a WinXP machine. Had everything installed on C:\ and all was right with the world. rant Then came McAfee and the bureaucrats, who feel that ALL files should be scanned on access. Which means that even something as benign as looking for a file in an archive, a zip, or jar, causes the entire archive to be scanned, every time. This drives the CPU time consumed by McAfee to 99%. /rant The bureaucrats' solution... Move them all to a network drive, where more powerful machines will do the scanning (and get maxed out) So... I've moved the C:\eclipse and C:\tomcat directories to a networked drive, H:\ I've changed the environment variable CATALINA_HOME to be H:\tomcat and I've changed references in H:\tomcat\conf\server.xml to H: instead of C: Eclipse comes up fine, but when I try to start tomcat, I get: java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap The Bootstrap class is in H:\tomcat\bin\bootstrap.jar, I copied it back to C:\ and tried to start tomcat, and got: Exception during startup processing java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:857) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:176) So... tomcat is still looking at C: for stuff when starting. What am I missing, any ideas? Thank you R. Cornell Sternbergh PennDOT/BIS APRASTeam (717) 787-6760 [EMAIL PROTECTED] Sternbergh, Cornell.vcf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot create JDBC driver of class - help!!
Hi, I'm trying to create a struts based application which tries to access MySQL dB using mysql-connector-java-3.1.10 connector. I'm having problem with my getConnection() code. The following error is occurring. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:780) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 40) at com.tavant.app1_2.dao.MySQLLoader.executeQuery(MySQLLoader.java:29) at com.tavant.app1_2.action.HomePageAction.execute(HomePageAction.java:28) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:419) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) ..etcetc I've pasted the server.xml, web.xml and my java program only including relevant parts. server.xml ?xml version='1.0' encoding='utf-8'? Server context path=/teststruts docBase=teststruts.war debug=1 reloadable=true Resource name=mydatasource type=javax.sql.DataSource/ ResourceParams name=mydatasource parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuef_695248/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/tavant/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valueroot/value /parameter /ResourceParams /context /Server - web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-namemydatasource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app - MySQLLoader.java package com.tavant.app1_2.dao; import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; public class MySQLLoader { public void executeQuery() { try { InitialContext ctx = new InitialContext(); Context ctx2 = (Context)ctx.lookup(java:comp/env); DataSource ds = (DataSource)ctx2.lookup(mydatasource); Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(); stmt.executeUpdate(Insert into customer values('001','Anish','001')); stmt.close(); conn.close(); } catch(Exception e) { //some code } finally{ //some code } } - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Moving to another drive
That's what I was missing! I'd mucked about in eclipse looking for something like that, I was looking for a tomcat menu item, that could lead to preferences. I didn't think that the preferences would contain the preferences for all. Thanks Manfred! Thanks Cornell Sternbergh (717) 787-6760 [EMAIL PROTECTED] -Original Message- From: Manfred Steurer [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 10:50 To: Tomcat Users List Subject: Re: Moving to another drive Did you change Tomcat Home and Configuration File at Window/Preferences/Tomcat? Fight the bureaucrats ;) - Manfred Sternbergh, Cornell wrote: Hi everybody I'm using Tomcat (4.1) with the Sysdeo plug-in for Eclipse (3.0) on a WinXP machine. Had everything installed on C:\ and all was right with the world. rant Then came McAfee and the bureaucrats, who feel that ALL files should be scanned on access. Which means that even something as benign as looking for a file in an archive, a zip, or jar, causes the entire archive to be scanned, every time. This drives the CPU time consumed by McAfee to 99%. /rant The bureaucrats' solution... Move them all to a network drive, where more powerful machines will do the scanning (and get maxed out) So... I've moved the C:\eclipse and C:\tomcat directories to a networked drive, H:\ I've changed the environment variable CATALINA_HOME to be H:\tomcat and I've changed references in H:\tomcat\conf\server.xml to H: instead of C: Eclipse comes up fine, but when I try to start tomcat, I get: java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap The Bootstrap class is in H:\tomcat\bin\bootstrap.jar, I copied it back to C:\ and tried to start tomcat, and got: Exception during startup processing java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassL o ader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassL o ader.java:857) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:176) So... tomcat is still looking at C: for stuff when starting. What am I missing, any ideas? Thank you R. Cornell Sternbergh PennDOT/BIS APRASTeam (717) 787-6760 [EMAIL PROTECTED] Sternbergh, Cornell.vcf --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cannot create JDBC driver of class - help!!
Is Context not supposed to be within a Host element? You also have a lowercase c in context rather than Context. You also will want jdbc/ before the name for the datasource. In fact, I think you need to read the manual (I am assuming Tomcat 5.0, otherwise look at your version). http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html Allistair. -Original Message- From: Anish Tom Ashley [mailto:[EMAIL PROTECTED] Sent: 01 August 2005 16:30 To: tomcat-user@jakarta.apache.org Subject: Cannot create JDBC driver of class - help!! Importance: High Hi, I'm trying to create a struts based application which tries to access MySQL dB using mysql-connector-java-3.1.10 connector. I'm having problem with my getConnection() code. The following error is occurring. org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'null' at org.apache.commons.dbcp.BasicDataSource.createDataSource(Basic DataSource.jav a:780) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDat aSource.java:5 40) at com.tavant.app1_2.dao.MySQLLoader.executeQuery(MySQLLoader.java:29) at com.tavant.app1_2.action.HomePageAction.execute(HomePageAction .java:28) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProces sor.java:419) at org.apache.struts.action.RequestProcessor.process(RequestProce ssor.java:224) at org.apache.struts.action.ActionServlet.process(ActionServlet.j ava:1194) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) ..etcetc I've pasted the server.xml, web.xml and my java program only including relevant parts. server.xml ?xml version='1.0' encoding='utf-8'? Server context path=/teststruts docBase=teststruts.war debug=1 reloadable=true Resource name=mydatasource type=javax.sql.DataSource/ ResourceParams name=mydatasource parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namemaxActive/name value4/value /parameter parameter namepassword/name valuef_695248/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/tavant/value /parameter parameter namedriverClassName/name valuecom.mysql.jdbc.Driver/value /parameter parameter namemaxIdle/name value2/value /parameter parameter nameusername/name valueroot/value /parameter /ResourceParams /context /Server -- -- - web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app resource-ref description Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file. /description res-ref-namemydatasource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app -- -- - MySQLLoader.java package com.tavant.app1_2.dao; import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; public class MySQLLoader { public void executeQuery() { try { InitialContext ctx = new InitialContext(); Context ctx2 = (Context)ctx.lookup(java:comp/env); DataSource ds = (DataSource)ctx2.lookup(mydatasource); Connection conn = ds.getConnection(); Statement stmt = conn.createStatement(); stmt.executeUpdate(Insert into customer values('001','Anish','001'));
RE: HTTP/1.1 GZIP compression and its impact on server
Our App does GZIP compression. I actually did some real testing on using it. Here's what we tell our customers: Enable GZIP Compression Enabling this option will cause Connect Daily to send web pages to the browser compressed in the GZIP format. This can result in a compression factor of six (6) times. Needless to say, this can make your calendar noticeably faster to end users. Our testing indicates serviced per minute was reduced by 2.3% when GZIP compression is enabled. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Peddireddy Srikanth [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 26, 2005 12:33 AM To: Tomcat Users List Subject: HTTP/1.1 GZIP compression and its impact on server Hi all, Iam planning to turn on the HTTP/1.1 GZIP compression for my application by setting the compression attribute of http connector. Iam sure that this will reduce my bandwidth requirements. But I have a doubt. Is Compressing the responses will eat away many CPU cycles and affect my throughput or performance or scalability. Any one have used this option in production environment and what r the results(performance etc) thanx for any info on this . Regards Srikanth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem front-ending tomcat with IIS
Hi all, I am trying to configure Basic Authentication with IIS/Tomcat and have not had any success yet. Here is my operating environment: Tomcat 5.5.9 IIS 5.0 I get HTTP 401 error when I ran this setup. I have successfully ran the same setup with Apache/Tomcat. I would appreciate it if anyone could point me to any material that I might read to resolve this issue, or if anyone has had the same experience I would like to know what you did to resolve this issue. Thanks, Ike
Re: Tomcat, getRequestURI(), and URL fragments
At 01:02 PM 7/30/2005, you wrote: The web browser never sends (or shouldn't send) #blah so the webserver will never see it. -Tim Ah. That's kind of what I was thinking. For some reason, some browsers do actually send it, so I was getting a little confused. Thanks. Kito D. Mann wrote: I've noticed an interest consequence of getRequestURI() with Tomcat -- getRequestURI() doesn't return the URL fragment (the part after the #). So, if the URL is http://www.foo.com/page.html#blah, getRequestURI() only returns /page.html, as opposed to /page.html#blah. Apache, however, knows the full URL (which is recorded in the logs). Can anyone tell me if this is normal behavior, and if there's a way to retrieve the URL fragment? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ~~~ Kito D. Mann Author, JavaServer Faces in Action http://www.JSFCentral.com - JSF FAQ, news, and info Are you using JSF in a project? Send your story to [EMAIL PROTECTED], and you could get your story published and win a free copy of JavaServer Faces in Action! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Having problem posting to the group
Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having problem posting to the group
I've posited twice today, this will be my third. Both posts showed up (Subject: moving to another drive). Both posts caused emails complaining of delivery failure to show up in my inbox. Thanks Cornell Sternbergh (717) 787-6760 [EMAIL PROTECTED] -Original Message- From: Ikonne, Ike [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 12:40 To: Tomcat Users List Subject: Having problem posting to the group Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
invalid web.xml - mime-mappng is not facet-valid with regard to the '+' char
I don't think I have tried to ever validate the $CATALINA_HOME/conf/web.xml before, but I am trying to track down a bug and found the web.xml to be invalid (according to XML Schema validation). For example it fails on: ... mime-mapping extensionmathml/extension mime-typeapplication/mathml+xml/mime-type /mime-mapping ... It seems to be failing on the plus (+) character. Anybody know what's up? best, -Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having problem posting to the group
Hi Ike, I've been having the same problem since Friday. But, I did get your post. So it appears to be going out to the list, it is just also giving you the error. Which means maybe my posts worked as well -- did you see one titled WARs not being unpacked in Embedded Tomat?. Perhaps it was sent to the list. Since no one responded and I got the same error email you did, I didn't think it was posted. cheers, Chuck --- Ikonne, Ike [EMAIL PROTECTED] wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having problem posting to the group
Maybe you subscribed with an alias (a different email address than you reply-to that also arrives in the same mailbox)? Tom Ikonne, Ike wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having problem posting to the group
Hi all, Thanks, you know when you receive that message you can never tell if your posting actually made it to the list, it is comforting to know that the problem is not unique to me alone. Ike -Original Message- From: Spammed TooMuch [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 12:13 PM To: Tomcat Users List Subject: Re: Having problem posting to the group Hi Ike, I've been having the same problem since Friday. But, I did get your post. So it appears to be going out to the list, it is just also giving you the error. Which means maybe my posts worked as well -- did you see one titled WARs not being unpacked in Embedded Tomat?. Perhaps it was sent to the list. Since no one responded and I got the same error email you did, I didn't think it was posted. cheers, Chuck --- Ikonne, Ike [EMAIL PROTECTED] wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having problem posting to the group
Hi Tom, Actually, this is the only e-mail address that I have used to subscribe to Tomcat Thanks, Ike -Original Message- From: Tom [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 12:18 PM To: Tomcat Users List Subject: Re: Having problem posting to the group Maybe you subscribed with an alias (a different email address than you reply-to that also arrives in the same mailbox)? Tom Ikonne, Ike wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having problem posting to the group
I have that same problem since 2 weeks or so. I did see your post about WARs not being unpacked though =) Adios Luis Spammed TooMuch wrote: Hi Ike, I've been having the same problem since Friday. But, I did get your post. So it appears to be going out to the list, it is just also giving you the error. Which means maybe my posts worked as well -- did you see one titled WARs not being unpacked in Embedded Tomat?. Perhaps it was sent to the list. Since no one responded and I got the same error email you did, I didn't think it was posted. cheers, Chuck --- Ikonne, Ike [EMAIL PROTECTED] wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having problem posting to the group
And I might point out that the address in the error message is tomcat-user@jakarta.apache.org which would indicate that jakarta.apache.org doesn't know about tomcat-user... except that it does, as is evidenced by the mail that comes from there ;-) Thanks Cornell Sternbergh (717) 787-6760 [EMAIL PROTECTED] -Original Message- From: Ikonne, Ike [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 13:20 To: Tomcat Users List Subject: RE: Having problem posting to the group Hi Tom, Actually, this is the only e-mail address that I have used to subscribe to Tomcat Thanks, Ike -Original Message- From: Tom [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 12:18 PM To: Tomcat Users List Subject: Re: Having problem posting to the group Maybe you subscribed with an alias (a different email address than you reply-to that also arrives in the same mailbox)? Tom Ikonne, Ike wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Having problem posting to the group
Hi Cornell, That's exactly correct ;) Ike -Original Message- From: Sternbergh, Cornell [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 12:57 PM To: Tomcat Users List Subject: RE: Having problem posting to the group And I might point out that the address in the error message is tomcat-user@jakarta.apache.org which would indicate that jakarta.apache.org doesn't know about tomcat-user... except that it does, as is evidenced by the mail that comes from there ;-) Thanks Cornell Sternbergh (717) 787-6760 [EMAIL PROTECTED] -Original Message- From: Ikonne, Ike [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 13:20 To: Tomcat Users List Subject: RE: Having problem posting to the group Hi Tom, Actually, this is the only e-mail address that I have used to subscribe to Tomcat Thanks, Ike -Original Message- From: Tom [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 12:18 PM To: Tomcat Users List Subject: Re: Having problem posting to the group Maybe you subscribed with an alias (a different email address than you reply-to that also arrives in the same mailbox)? Tom Ikonne, Ike wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange cache behavior in Tomcat 5.5.9?
Gabriel Belingueres wrote: Hi, In my JSP pages I put the following tags to avoid the browser cache the pages. head meta http-equiv=Expires content=0 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Cache-Control content=no-cache / I wouldn't trust this way. I would always use the below method for manipulating any cache control or general HTTP headers. % response.setHeader(Cache-Control,no-store); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); % This is the way to do it. Also, it's backwares compatible. This sends actual HTTP headers back to the client in the response. Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having problem posting to the group
See: http://marc.theaimsgroup.com/?l=tomcat-userm=111895333829546w=2 There has been no progress since my original message. Mark [EMAIL PROTECTED] Ikonne, Ike wrote: Hi all, Could anyone explain to me why I can't post to [EMAIL PROTECTED] I get the following error message when I make a post to the group: Unable to deliver message to the following address(es) tomcat-user@jakarta.apache.org. Remote host said: 554 delivery error: This user doesn't have an ac I know that I subscribe to the group and I do receive postings from the members of the group. Thanks, Ike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
W3C log format in Tomcat 4?
I'm new to Tomcat 4 and am trying to figure out how to configure my logs so that Deepmetrix's LiveStats 7 can import them. Does Tomcat 4 support logging to the W3C Extended logging format? If so, could you provide me with a link to a resource that tells how to configure this? Thanks, Jason __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: W3C log format in Tomcat 4?
Jason, See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html You want the AccessLogValve Mark Jason wrote: I'm new to Tomcat 4 and am trying to figure out how to configure my logs so that Deepmetrix's LiveStats 7 can import them. Does Tomcat 4 support logging to the W3C Extended logging format? If so, could you provide me with a link to a resource that tells how to configure this? Thanks, Jason __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet mapping - url pattern with *
Bill Barker wrote: flower [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, Let's consider situation like this: We have got some servlets responsible for genereting galery page. We want group galery pages by use common part in uri (/galery/): http://x.com/galery/galery_id/firstpage.html http://x.com/galery/galery_id/secondpage.html firstpage.html is generated by servlet1 , secondpage.html by servlet2. So we must url-pattern like this: /galery/*/firstpage.html and /galery/*/secondpage.html but this url-pattern doesn't work. question: why ? ( I use version 5.5.9 ) Some people, with I was talking about this, said that patterns like this was work with previously version and that version 5.5.9 is crazy ;] I've got a vague recollection that some some such Tomcat-specific extension was proposed on the dev list. Can't remember if it was ever implemented (and to which version), and I'm much to lazy to look it up :). However, the 5.5.9 behavior is in strict compilance with the Servlet spec (and, hence anything but crazy). mhm, when some time ago I was reading Servlet spec, I noticed that. Is any way to obtain behaviour like above with latest version ? Simplest is with a Filter that does something like: RequestDispatcher rd = null; if(request.getRequestURI().endsWith(/firstpage.html) { rd = getServletContext().getNamedDispatcher(servlet1); } else if(request.getRequestURI().endsWith(/secondpage.html); rd = getServletContext().getNamedDispatcher(servlet2); } if(rd != null) { rd.forward(request, response); } thx for example :) I was thinking about somethings like this ... but my lazy force me to looking buildin solution :) thx and greetings flow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I get user credential in Tomcat
Hi all, I am implementing Basic authentication, I would like to make both the Principal and Credential visible to my servlet being managed by Tomcat, I know how to get the Principal, but I can't seem to find a away to get the Credential. Does anyone have an idea as to how I can get this information inside my servlet. Thanks, Ike
Using more than one SSL cert in keystore?
If I host more than one domain on my tomcat installation (standalone, not with apache), can I imort an SSL certificate for each domain and will tomcat just know which to use for which hosts? Justin Jaynes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: W3C log format in Tomcat 4?
Try the ExtendedAccessLogValve. You'll need to look in the javadocs for the details. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html -Tim Jason wrote: I'm new to Tomcat 4 and am trying to figure out how to configure my logs so that Deepmetrix's LiveStats 7 can import them. Does Tomcat 4 support logging to the W3C Extended logging format? If so, could you provide me with a link to a resource that tells how to configure this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Forwarding Domains
Is it possible for me to host somedomain.com on my tomcat, and as that is my prefered domain name format, and want all users who go to www.somedomain.com (YES, I have A records set up for both and they point to the same tomcat server) to be re-directed to somedomain.com, using my tomcat setup? In other words, I want to move all my users from the domain they enter to a domain I prefer USING my tomcat setup. I imagine there is some way to set up my server.xml to do it. Justin Thanks in advance. I have never had an issue unresolved after submitting to this list. Bravo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WARs not being unpacked in Embedded Tomat?
Hi, Following up my post in-case anyone can correct or learn from my experiments. It appears I have to tell Embedded to use the WAR file myself. To keep it like regular Tomcat, I check for a directory first. If not found and there is a WAR file of the same name, I: deployer.findDeployedApp( context ); deployer.install( context, war ); It certainly seems Tomcat should just do this, nothing in the doc says it will not in the Embedded situation. In fact there is doc that implies it will. It's weird but I can't find the unpacked files. There is a dirctory of the right name in the work directory, but it is never populated. Will be trying v5 out in the next couple of months... cheers, Chuck --- Spammed TooMuch [EMAIL PROTECTED] wrote: can not get it to use packed WAR files. I have the __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting multiple docbases in Tomcat
I am using Tomcat 5.0.28 on AIX. I have a third-party app that has multiple directories strewn about the filesystem containing html and jsps that I want to load as part of the main app I load from webapps. I looked into adding context tags tp the server.xml but there are some reasons not to do this (classloaders getting created for each context tag being one of them). Is there an easy way to setup locations like in Apache in Tomcat? These are not wars but static content to display help and guides, etc. Thanks, Ben Ricker -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using more than one SSL cert in keystore?
In the (brief) interim between my asking the original question below, and now, I have found additional information--SSL must occur before HTTP handshake, and will therefore not work on hosts based on the same IP. I have more than one IP available from my ISP. I suppose the question would better be this: How do I cofigure virtual hosting of more than one SSL enabled host over ONE interface using multiple IP addresses? Sorry for the confusion. --- Justin Jaynes [EMAIL PROTECTED] wrote: If I host more than one domain on my tomcat installation (standalone, not with apache), can I imort an SSL certificate for each domain and will tomcat just know which to use for which hosts? Justin Jaynes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I get user credential in Tomcat
Previous mails on 'j-security_check sessions' could give you a useful information. Since you're looking at Basic authentication, try to extract the credential from the authorization header. Jo.- - Original Message - From: Ikonne, Ike [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, August 02, 2005 7:30 AM Subject: How do I get user credential in Tomcat Hi all, I am implementing Basic authentication, I would like to make both the Principal and Credential visible to my servlet being managed by Tomcat, I know how to get the Principal, but I can't seem to find a away to get the Credential. Does anyone have an idea as to how I can get this information inside my servlet. Thanks, Ike !DSPAM:42ee992a207451223150608! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do I get user credential in Tomcat
Well thanks to Frank I have been looking into filters so I'll probably use j_security_check and a filter to do what I want. I did look at BASIC authentication as an alternative, as you can extract the user:pass combo from the Authorization header with a little base64decoding, have a look at this site you might find it useful http://www.unix.org.ua/orelly/java-ent/servlet/ch08_01.htm#ch08-3-fm2xml Chris. - Original Message - From: Jo [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, August 02, 2005 12:36 AM Subject: Re: How do I get user credential in Tomcat Previous mails on 'j-security_check sessions' could give you a useful information. Since you're looking at Basic authentication, try to extract the credential from the authorization header. Jo.- - Original Message - From: Ikonne, Ike [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, August 02, 2005 7:30 AM Subject: How do I get user credential in Tomcat Hi all, I am implementing Basic authentication, I would like to make both the Principal and Credential visible to my servlet being managed by Tomcat, I know how to get the Principal, but I can't seem to find a away to get the Credential. Does anyone have an idea as to how I can get this information inside my servlet. Thanks, Ike !DSPAM:42ee992a207451223150608! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I get user credential in Tomcat
Hi Chris, Thanks, the information you provided is very useful. Ike -Original Message- From: Chris Holden [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 6:48 PM To: Tomcat Users List Subject: Re: How do I get user credential in Tomcat Well thanks to Frank I have been looking into filters so I'll probably use j_security_check and a filter to do what I want. I did look at BASIC authentication as an alternative, as you can extract the user:pass combo from the Authorization header with a little base64decoding, have a look at this site you might find it useful http://www.unix.org.ua/orelly/java-ent/servlet/ch08_01.htm#ch08-3-fm2xml Chris. - Original Message - From: Jo [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Tuesday, August 02, 2005 12:36 AM Subject: Re: How do I get user credential in Tomcat Previous mails on 'j-security_check sessions' could give you a useful information. Since you're looking at Basic authentication, try to extract the credential from the authorization header. Jo.- - Original Message - From: Ikonne, Ike [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, August 02, 2005 7:30 AM Subject: How do I get user credential in Tomcat Hi all, I am implementing Basic authentication, I would like to make both the Principal and Credential visible to my servlet being managed by Tomcat, I know how to get the Principal, but I can't seem to find a away to get the Credential. Does anyone have an idea as to how I can get this information inside my servlet. Thanks, Ike !DSPAM:42ee992a207451223150608! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How do I get user credential in Tomcat
Hi Jo, Thanks, that's exactly what I was looking for. Ike -Original Message- From: Jo [mailto:[EMAIL PROTECTED] Sent: Monday, August 01, 2005 6:36 PM To: Tomcat Users List Subject: Re: How do I get user credential in Tomcat Previous mails on 'j-security_check sessions' could give you a useful information. Since you're looking at Basic authentication, try to extract the credential from the authorization header. Jo.- - Original Message - From: Ikonne, Ike [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, August 02, 2005 7:30 AM Subject: How do I get user credential in Tomcat Hi all, I am implementing Basic authentication, I would like to make both the Principal and Credential visible to my servlet being managed by Tomcat, I know how to get the Principal, but I can't seem to find a away to get the Credential. Does anyone have an idea as to how I can get this information inside my servlet. Thanks, Ike !DSPAM:42ee992a207451223150608! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forwarding Domains
Sorry, there is no way out of the box. But there are filters which can do this for you. For example: http://tuckey.org/urlrewrite/ -Tim Justin Jaynes wrote: Is it possible for me to host somedomain.com on my tomcat, and as that is my prefered domain name format, and want all users who go to www.somedomain.com (YES, I have A records set up for both and they point to the same tomcat server) to be re-directed to somedomain.com, using my tomcat setup? In other words, I want to move all my users from the domain they enter to a domain I prefer USING my tomcat setup. I imagine there is some way to set up my server.xml to do it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: W3C log format in Tomcat 4?
Tim, This looks like it is what I was looking for. Since I'm very new to Tomcat, I'm struggling to figure out how to implement this valve. Do you have an example of a standard implementation that you could send me that I could paste into my server.xml file? Thanks a bunch for your help! Jason --- Tim Funk [EMAIL PROTECTED] wrote: Try the ExtendedAccessLogValve. You'll need to look in the javadocs for the details. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html -Tim Jason wrote: I'm new to Tomcat 4 and am trying to figure out how to configure my logs so that Deepmetrix's LiveStats 7 can import them. Does Tomcat 4 support logging to the W3C Extended logging format? If so, could you provide me with a link to a resource that tells how to configure this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: W3C log format in Tomcat 4?
I think this will work ... Valve className=org.apache.catalina.valves.ExtendedAccessLogValve directory=logs pattern='c-ip cs-method cs-uri sc-status time' prefix=localhost_access_log. suffix=.txt resolveHosts=false/ -Tim Jason wrote: Tim, This looks like it is what I was looking for. Since I'm very new to Tomcat, I'm struggling to figure out how to implement this valve. Do you have an example of a standard implementation that you could send me that I could paste into my server.xml file? Thanks a bunch for your help! Jason --- Tim Funk [EMAIL PROTECTED] wrote: Try the ExtendedAccessLogValve. You'll need to look in the javadocs for the details. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html -Tim Jason wrote: I'm new to Tomcat 4 and am trying to figure out how to configure my logs so that Deepmetrix's LiveStats 7 can import them. Does Tomcat 4 support logging to the W3C Extended logging format? If so, could you provide me with a link to a resource that tells how to configure this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP: Tomcat 5.5.9 with jsvc as low priviledges user on Linux fails in Bootstrap
Hi, I manage to configure my tomcat with jsvc(common-daemon) and everything work great till I start to launch it as root. If I run it as tomcat user it does work great. If I try to run it as root from command prompt or from init.d I get the following exception ( see below ) Right are given as below chown -R tomcat:tomcat /usr/local/tomcat chown -R root:root /usr/local/tomcat/bin chown -R root:root /usr/local/tomcat/common This is not right - looks like the bootstrap is trying to access the Realm and there is no write access to the conf/tomcat-users.xml file. I can't believe the common-daemon not tomcat side didn't say a thing about this, I bet there are others experiencing the matter. Do i have to disable Tomcat realms ? It doesn't sounds right. There is no way I'd give others write access on that. Looking forward to hear from you if you experienced something similar. Thanks, MC Aug 1, 2005 7:23:15 PM org.apache.naming.NamingContext lookup WARNING: Unexpected exception resolving reference java.io.FileNotFoundException: /usr/local/tomcat/tomcat_home/conf/tomcat-users.xml.new (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.init(FileOutputStream.java:179) at java.io.FileOutputStream.init(FileOutputStream.java:131) at org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462) at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98) at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301) at org.apache.naming.NamingContext.lookup(NamingContext.java:792) at org.apache.naming.NamingContext.lookup(NamingContext.java:152) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:138) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:108) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:80) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.StandardServer.start(StandardServer.java:676) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:218) Aug 1, 2005 7:23:15 PM org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans SEVERE: Exception processing Global JNDI Resources - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: W3C log format in Tomcat 4?
Tim, Perfect, that worked exactly like I needed it to. Thank you VERY much! Is there a searcable archive of all these mailing list questions and responses? Thanks, Jason --- Tim Funk [EMAIL PROTECTED] wrote: I think this will work ... Valve className=org.apache.catalina.valves.ExtendedAccessLogValve directory=logs pattern='c-ip cs-method cs-uri sc-status time' prefix=localhost_access_log. suffix=.txt resolveHosts=false/ -Tim Jason wrote: Tim, This looks like it is what I was looking for. Since I'm very new to Tomcat, I'm struggling to figure out how to implement this valve. Do you have an example of a standard implementation that you could send me that I could paste into my server.xml file? Thanks a bunch for your help! Jason --- Tim Funk [EMAIL PROTECTED] wrote: Try the ExtendedAccessLogValve. You'll need to look in the javadocs for the details. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/valves/ExtendedAccessLogValve.html -Tim Jason wrote: I'm new to Tomcat 4 and am trying to figure out how to configure my logs so that Deepmetrix's LiveStats 7 can import them. Does Tomcat 4 support logging to the W3C Extended logging format? If so, could you provide me with a link to a resource that tells how to configure this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting multiple docbases in Tomcat
Hi Ben U can put your settings in TOMCAT_HOME/conf/Catalina/localhost, there are some xml files there, just create one xml file there, and fill it just like the other existing one. On 8/2/05, Ben Ricker [EMAIL PROTECTED] wrote: I am using Tomcat 5.0.28 on AIX. I have a third-party app that has multiple directories strewn about the filesystem containing html and jsps that I want to load as part of the main app I load from webapps. I looked into adding context tags tp the server.xml but there are some reasons not to do this (classloaders getting created for each context tag being one of them). Is there an easy way to setup locations like in Apache in Tomcat? These are not wars but static content to display help and guides, etc. Thanks, Ben Ricker -- Ben Ricker He's just this guy, you know? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- --- http://www.psychotazkia.or.id
Re: Forwarding Domains
Hi justin You can achieve url forwarding/rewriting using a simple servlet filter, or better if you have apache in the front, use mod-rewrite, which is configurable in your httpd.conf. If you are using iis, there are few available isapi filter which you can use, alternatively you can write your own, which reacts on the preprocheaders or urlmap notifications. Hope this helps. Bruno Georges Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Justin Jaynes [EMAIL PROTECTED] Sent: 01.08.2005 23:53 To: tomcat-user@jakarta.apache.org Subject: Forwarding Domains Is it possible for me to host somedomain.com on my tomcat, and as that is my prefered domain name format, and want all users who go to www.somedomain.com (YES, I have A records set up for both and they point to the same tomcat server) to be re-directed to somedomain.com, using my tomcat setup? In other words, I want to move all my users from the domain they enter to a domain I prefer USING my tomcat setup. I imagine there is some way to set up my server.xml to do it. Justin Thanks in advance. I have never had an issue unresolved after submitting to this list. Bravo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using more than one SSL cert in keystore?
Justin In this situation, I would use apache + modrewrite If you want some example I can help you Bruno Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Justin Jaynes [EMAIL PROTECTED] Sent: 02.08.2005 00:54 To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Using more than one SSL cert in keystore? In the (brief) interim between my asking the original question below, and now, I have found additional information--SSL must occur before HTTP handshake, and will therefore not work on hosts based on the same IP. I have more than one IP available from my ISP. I suppose the question would better be this: How do I cofigure virtual hosting of more than one SSL enabled host over ONE interface using multiple IP addresses? Sorry for the confusion. --- Justin Jaynes [EMAIL PROTECTED] wrote: If I host more than one domain on my tomcat installation (standalone, not with apache), can I imort an SSL certificate for each domain and will tomcat just know which to use for which hosts? Justin Jaynes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Forwarding Domains
Hi justin You can achieve url forwarding/rewriting using a simple servlet filter, or better if you have apache in the front, use mod-rewrite, which is configurable in your httpd.conf. If you are using iis, there are few available isapi filter which you can use, alternatively you can write your own, which reacts on the preprocheaders or urlmap notifications. Hope this helps. Bruno Georges Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Justin Jaynes [EMAIL PROTECTED] Sent: 01.08.2005 23:53 To: tomcat-user@jakarta.apache.org Subject: Forwarding Domains Is it possible for me to host somedomain.com on my tomcat, and as that is my prefered domain name format, and want all users who go to www.somedomain.com (YES, I have A records set up for both and they point to the same tomcat server) to be re-directed to somedomain.com, using my tomcat setup? In other words, I want to move all my users from the domain they enter to a domain I prefer USING my tomcat setup. I imagine there is some way to set up my server.xml to do it. Justin Thanks in advance. I have never had an issue unresolved after submitting to this list. Bravo! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_rewrite for Tomcat 5.5
Hi david As Tim pointed out, there are product which does this for you However, your requierments can be easily covered with a servlet filter. You just need to ship it with your war and configure it in your deployment descriptor I have some examples if needed Best regards Bruno Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: David Wall [EMAIL PROTECTED] Sent: 29.07.2005 00:48 To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: mod_rewrite for Tomcat 5.5 Can anybody recommend anything like mod_rewrite for Tomcat 5.5? I know the FAQ says something about why reinvent the wheel, but in this case, it's because we want to get rid of Apache just because we need one small feature. I've got an application that now only needs Apache httpd for some mod_rewrites, especially for converting short URLs to longer ones, such as: https://host.com/app/a?c=ehtU3vN9JWia6m=borrower gets rewritten to: https://host.com/app/customer/SomeBigCustomer/loanApplicationToSign.jsp?c=ehtU3vN9JWia6m=borrower With mod_rewrite, this is something like: RewriteRule ^/app/a(.*)$ https://host.com/app/customer/SomeBigCustomer/loanApplicationToSign.jsp$1 [R,L] In practice, I don't even need the full power of mod_rewrite to rewrite the domain part, so it would be okay just to map /app/a?c=ehtU3vN9JWia6m=borrower to /app/customer/SomeBigCustomer/loanApplicationToSign.jsp?c=ehtU3vN9JWia6m=borrower and keep the https://host.com; part the same. I won't be redirecting to another server (at least not initially). Thanks, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]