Re: Tomcat web application stops automatically
Am 15.04.2013 11:31, schrieb Rishad Ali: I have a dedicated server running CentOS 5.9, Apache-Tomcat 5.5.36. I have written a JAVA web applications which runs every minute to collect the data from multiple sensors. I am using ScheduledExecutorService to execute the threads. (one thread for each sensor every minute and there can be more than hundred sensors) The flow of the thread is A web application can be deployed to tomcat and when it is deployed it can be running or not. It can't run every minute. snip/ thread. The applications work fine but after some time(24 Hour - 48 Hours) the applications stop working. I can't find out what the problem What does that mean? Did you take a look at the tomcat logfiles? Ralph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat web application stops automatically
Am 15.04.2013 14:22, schrieb Rishad Ali: I think I mentioned this in the question that I am using ScheduledExecutorService to start threads every minute. This is not the application running every minute, these are the threads I create. And as I said It works fine for some time then it stops. Yes I checked the log but there is no sign of stopping application or nothing about Too many database connections. Please don't top-post. When your application(s) stopped: take a thread dump and post it here. Ralph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Catalina.out log level
Am 19.10.2012 21:32, schrieb vicky007aggar...@yahoo.co.in: Thanks ralph for responding Just only below line is enough?? Yes. You can find more info about logging with Tomcat here: http://tomcat.apache.org/tomcat-7.0-doc/logging.html Regards, Ralph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Catalina.out log level
Am 19.10.2012 14:49, schrieb vicky007aggar...@yahoo.co.in: Hi All, Can you please suggest how to change the log level of tomcat catalina.out file. I did change in the logging.properties for all handlers to finest but still catalina.out showing log levels with Info level only whereas all other log files have finest log level set (e.g. Host-manager.log/manager.log) Kindly help Thanks, Vicky Hi Vicky, you need to add: org.apache.catalina.level=FINEST Regards, Ralph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Authenticate requests from localhost using tomcat RemoteAddrFilter
Jaikit, Am 23.09.2012 00:04, schrieb Jaikit Savla: Hello Users, I have some admin api's which I want to have restricted access - such that only if the request originates from localhost - it will execute. For that I am using tomcat's RemoteAddrfilter what exactly do you mean with admin api's? filter filter-nameRemote Address Filter/filter-name filter-classorg.apache.catalina.filters.RemoteAddrFilter/filter-class init-param param-nameallow/param-name param-value127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1/param-value /init-param /filter filter-mapping filter-nameRemote Address Filter/filter-name url-pattern/*/url-pattern /filter-mapping /filter see http://www.oracle.com/technetwork/java/filters-137243.html „A filter dynamically intercepts requests and responses to transform or use the information contained in the requests or responses.” So this Is something that is part of a web application which is running on tomcat. Now when I execute the request from localhost - request fails with 403. Reason being REMOTE_ADDR is set with actual ip of the machine and filter does string comparison of ip. Hence it fails. Any clue on how to resolve this use case ? -bash-4.1$ curl -v http://localhost/ws/local/info * About to connect() to localhost port 80 (#0) * Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 80 (#0) GET /ws/local/vip/info HTTP/1.1 User-Agent: curl/7.21.7 (x86_64-unknown-linux-gnu) libcurl/7.21.7 OpenSSL/0.9.8o zlib/1.2.3 libidn/1.18 libssh2/1.2.2 Host: localhost Accept: */* HTTP/1.1 403 Forbidden I am guessing here: if you want to restrict access to your tomcat server to certain clients, you could solve this by configuring your firewall accordingly. Ralph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fwd: Problems loading external jar in my app !
Am 13.09.2012 07:42, schrieb joel badia escolà: Hello everyone, i have a problem with my jsp app for adding external jars. First of all I have tried the same code and app directory structure in netbeans ide built-in tomcat and works fine, but when i try to serve my app in my tomcat installation (installed using aptitude) it seems that it's impossible to locate the external jar. On which OS did you install tomcat6? I tried to put weka.jar in all this directories my-app/WEB-INF/lib/ /var/lib/tomcat6/common/ /var/lib/tomcat6/server/ /usr/share/tomcat6/lib/ If your OS would be Debian or Ubuntu, /usr/share/tomcat6/lib/ is the place to make weka.jar available for all webapps on tomcat. After dropping it in there, did you restart tomcat? Have you checked the file permissions of weka.jar? It has to be readable for the user tomcat6 is running with. Regards, Ralph - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org