tomcat

Apache Mod_cache configuration with Tomcat and Max-age directives

Hi, I have the following system configured: Tomcat -> Apache Now, I have some URLs on which I have Max-Age, LastModified and Etags set. My expectation is when Client1 makes a call to the server, the page should get served from tomcat, but should get cached in the mod_cache module of Apache. So that when next client makes a call, the ...

netbeans giving error when i tried to deploy servlet application?

i am using netbeans 6.7.1 and apache tomcat server 7.0 but when in tried to deploy my servlet application it gives following errors Deployment is in progress... deploy?config=file%3A%2FC%3A%2FDOCUME%7E1%2FBadr%2FLOCALS%7E1%2FTemp%2Fcontext6286056025186380410.xml&path=/iEHR http://localhost:8080/manager/deploy?config=file%3A%2FC%3A%2FD...

How to speedup Tomcat SSL init

I am doing development of a Tomcat webapp and need to be able to restart Tomcat to load code changes. However, sometimes Tomcat takes a long time to startup as the main thread is stalled in the following place: java.lang.Thread.State: RUNNABLE at org.apache.tomcat.jni.SSL.initialize(Native Method) at sun.reflect.NativeMethodAccessor...

Embedding ActiveMQ broker in Spring-MVC Tomcat webapp

I have a small Spring MVC webapp (which embeds ActiveMQ) that is designed to run in a local Tomcat, and reliably message to a queue on a remote ActiveMQ. All of that's in place, except for the "reliably". At the moment, if the remote site goes down, the send fails dramatically. My send config: <!-- Connection setup --> <bean id="connec...

Need solution to webapp errors from Tomcat trying to log events after logger has been disposed

Enviroment: JSF 2.0, RichFaces 3.3.3, Facelets 1.1.15B1, Spring Framework 3.x, WebFlow 2.1, MyBatis 3.0.1, Oracle 10/11 g backend, SLF4j into Log4j. Well thats probably TMI since my issue is only a logging problem but better to be too thorough than not. Anyways... I just setup SLF4j & log4j so now all of the internal facelets log msgs ...

Where is the deployment directory in Eclipse?

I'm developing a web app in Eclipse. where is the deployment directory tree situated? In the Apache directory structure or some sub-directory tree structure in my Java workspace tree? I ask because I went browsing the directory tree(s) when an update to my tutorial app didn't work and, assuming that the src subtree represents my developm...

How to retrieve active sessions in a tomcat instance?

Hi all I was designated to implement a security requierement to mimic "messenger like" authentication, for example: if a user first logs in, then another user tries to log in with the same username, this new user will be prompted to "kick" the previously loged user and the system should invalidate the first user's web session, the web ap...

Tomcat 6.x support for JSR-109

I'm trying to understand Tomcat 6.0's support for JSR-109. What does this feature get me? In the Tomcat documentation, it says Tomcat provides factories for JSR 109 which may be used to resolve web services references. But I don't understand what that gets me. Has anyone used this feature of Tomcat 6.x and have a specific use ca...

HTTPS configuration in Jboss

I am using JBoss 4.2. And I'd like a certain URL pattern to be visited through HTTPS. I used self-certificated keystore file,and the problem is: once the HTTPS url is visited, all others urls in the site are all go through HTTPS, what's the problem? updated: I found out the problem. I used relative path to references to the resources, s...

2 or more Zend apps on a single host with base url rewrite

how can i configure my zend apps so that they can be accessed on the same domain like the one found on apache tomcat e.g. if you have two applications deployed on apache tomcat server you can access them like http://localhost:8080/AplicationOne http://localhost:8080/ApplicationTWo now what i want to have is if i have 2 apps X and ...

web service start problem

Hi, I want to create bottom up web service. I have configured axis2 and eclipse. But while creating web service it is giving following error IWAB0489E Error when deploying Web service to Axis runtime axis-admin failed with {http://xml.apache.org/axis/}HTTP (502)Proxy Error ( Connection refused ) I searched lot for the error. Onl...

Tomcat on production server, PermGen and redeploys

It looks like MemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space is a common problem. You can Increase the size of your perm space, but after 100 or 200 redeploys it will be full. Tracking ClassLoader memory leaks is nearly impossible. What are your methods for Tomcat (or another simple servlet container - Jetty...

Collecting Java heapdump under load

I am running load against Tomcat 6 running on Java 6. I want to collect a heapdump of the Java heap while the Tomcat server is under load. I normally use jmap -dump to collect my heapdumps. However, when I try to do this when Tomcat is handling a high load I find that the heapdump collection fails. Is jmap the best tool for collecting...

How to know that app version changed in GWT?

Hi, I have a use case where my GWT application is running on a client browser and I stop my tomcat and update the relevant WAR. What I'd like to happen is that once I load the tomcat every existing client will be reloaded automatically so they will be using the correct version of the application. Currently I'm facing two problems: I do...

Login validation using JSTL (JSP) but stuck with error : "Unterminated &lt;sql:setDataSource tag"

Hi, I am getting following error when I try to perform login validation using JSTL Custom Tags org.apache.jasper.JasperException: /checlLogin.jsp(12,38) Unterminated <sql:setDataSource tag Please find below software specifications I have - I have placed JSTL.jar and Standard.jar at CATALINE_HOME...\WEB-INF\lib - Working with s...

how to turn off tomcat5 'session expire' log messages?

I've been trying to turn off these excessive log messages without success. INFO | jvm 1 | 2010/08/19 14:36:30 | DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (ManagerBase.java:677) - Start expire sessions StandardManager at 1282242990088 sessioncount 0 INFO | jvm 1 | 2010/08/19 14:36:30 | DEBUG [ContainerBac...

Solr, Tomcat 7 on windows Server 2008 (64 bit), admin screens return 404

I'm not sure if this belongs here or on super user. We have set up Tomcat 7 on our server and have configured Solr. We can go to localhost/solr and localhost/solr/admin, but on the admin screen when we click "configure" or "schema" we get a 404 error for "/solr/admin/file/?file=solrconfig.xml" We tried entering the url /solr/admin/get...

How to create tree using web service?

Hi, I want to create tree structure using web service. I have used bottom up web service technique for creation of simple arithmatic operation. I can not understand, how to build a tree using web services. Is there is way to achieve this? ...

PHP app in liferay - HTTP Status 404

Hi, I'm a liferay newbie. I'm trying to write a simple php app that echos some text and add it as a plug in to liferay. I've created the file helloworld.php, zipped it up and installed it. Finally I add it to the page but am getting the following error: HTTP Status 404 - /helloworldapp/ type Status report message /helloworldapp/ descri...

Tomcat manager/html is not available?

Hi I just installed Tomcat and and am trying to get it up and running however whenever I try to navigate to manager/html it gives me this error "The requested resource (/manager/html) is not available". The homepage, /docs, /examples all work fine and my logs show nothing. How do I fix this? I'm using Tomcat 6.0.20 and JDK 1.6.0_21 on ...