Blocking public access to certain Context
Hi all, I get this request to configure Tomcat 4.1 so that certain context can be allow to be access through local IP and not through public IP. I'd tried to used the valve tag settings in the Context tag to deny the request but failed. It seems that the tag only denied the configured client IP. Is there any other configuration i can do to block public access to certain context in Tomcat?? Thanx. Regards, F.S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat as service under linux how-to
Here's my rc.local script that i used to start the Tomcat and Apache automatically. however i did not have any script that startup Apache and Tomcat both at boot time. i just added the isStarted and if statement, and haven't test on it, maybe u would wanna try on it, no success is guaranteed though :p . If anyone else have a better options then u could use theirs. PS: to use this script u must have the httpd and tomcat4 script in ur /etc/rc.d/init.d folder, which i think should come with the installation of the Apache and tomcat4. u should be able to get these script from the web if u dun have them.. Hope this helps: #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local service httpd start isStarted=`ps -ef | grep -i httpd | grep -v grep | awk {'print $2'} | head -1` if [ $isStarted 0 ] then service tomcat4 start fi - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; [EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 3:19 PM Subject: RE: tomcat as service under linux how-to Do u hv the example script for this ? That's what I mean actually. Sorry for the previous mail. -Original Message- From: Foo Shyn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 11:18 AM To: Tomcat Users List Subject: Re: tomcat as service under linux how-to Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat as service under linux how-to
Put a script that starts Apache and Tomcat into the /etc/rc.d/init.d folder. U can modify the rc.local script to run the script when Linux boot. U can run a ps -ef | grep command to check whether Tomcat is running before u start running Apache. By the way, y do u need to start Tomcat first before starting Apache? if u wanna do connection between Apache and Tomcat using mod_jk, i think that starting Apache first before starting Tomcat is the way, just my opinion though. BTW, Google is your friend. F.S. - Original Message - From: dummy [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, July 20, 2005 9:29 AM Subject: tomcat as service under linux how-to Hi, I would like to know how to start-up tomcat as services under LINUX and at the same time start-up apache after tomcat has started. How to check whether tomcat is already started before apache is started ? I don't have this on windows system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5.0 Database Connection Pooling Configuration
Hi there, Have a question on dbcp settings. I'd done the settings by configuring the server.xml and the web.xml of my application and it works fine. But since i need to install multiple application on the same Tomcat server, i'll need to place different context tag in the server.xml for each application to enable the datasource for each of my apps. Since my apps are all connecting to a same database server, is there any configuration method that allows me to setup once in server.xml (such as setting a 'common context') and let my web.xml to handle the rest? Thanx. Regards, F.S.
Re: org.apache.catalina.util.ParameterMap.put exception
- Original Message - From: cristi [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, July 14, 2005 5:01 PM Subject: org.apache.catalina.util.ParameterMap.put exception Hello all I receive the following exception in a non deterministic manner. The reader should understand that the exception is not thrown due to my direct action on a ParameterMap instance. Is there any possibility of knowing what to do in this case ? - BEGIN EXCEPTION - HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.IllegalStateException: Cannot find message associated with key 'parameterMap.locked' at org.apache.catalina.util.ParameterMap.put(ParameterMap.java:212) at org.apache.coyote.tomcat4.CoyoteRequest.getParameterMap(CoyoteRequest.java:9 37) at org.apache.coyote.tomcat4.CoyoteRequestFacade.getParameterMap(CoyoteRequestF acade.java:193) at org.apache.catalina.core.ApplicationHttpRequest.setRequest(ApplicationHttpRe quest.java:525) at org.apache.catalina.core.ApplicationHttpRequest.(ApplicationHttpRequest.java :125) at org.apache.catalina.core.ApplicationDispatcher.wrapRequest(ApplicationDispat cher.java:921) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:414) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at mypackage.Hello.showResult(Hello.java:167) at mypackage.Hello.doGet(Hello.java:194) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) . . . - END EXCEPTION - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Are u trying to redirect the user to another page from Hello?? Probably u can try using response.sendRedirect instead to redirect the user? Hope this help. F.S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]