tomcat

How to find problematic thread in Eclipse remote debugger?

I have a web application running in a jboss application server (But it is not jboss specific so we could also assume it is a tomcat or any other server). Now I have the problem that one thread seems to be in dead-lock situation. It uses 100% CPU all the time. I have started the server with enabled debug port and I can connect Eclipse to ...

WebApplications (.war file) and common jar file.

Hi:) i need to deploy at Tomcat many web applications with a lot of common jars (Jersey jars). I've created WAR file without JARS and added to MANIFEST.MF eg: "Class_Path: .jar .jar". But WebApplications does not work. What I am doing wrong? ...

SSL, Tomcat and GRAILS.

I want to implement SSL in grails. I cannot find the file /conf/server.xml in grails folder structure. Has any implemented it? Much appreciated. ...

GZip compression on HTTP Request with Tomcat

I'm new to using Tomcat so perhaps I'm missing something. In the server.xml it looks as though it is possible to enable GZip compression for HTTP Responses from the server to the client. However in my application, there are large chunks of XML data being sent from the client to the server. Is there a way to enable GZip compression in ...

How to determine what execution rights a J2EE application needs?

I've created a J2EE application using a set of libraries. Works like a charm. Now it needs to be deployed into production. Our admin is very cautious about execution security and requires the permissions granted explicitly. Going through all the code and looking up security requirements (especially the custom libraries) is time consuming...

Form based authentication is not working in tomcat 6.0

I'm using Tomcat 6.0 as a webserver, and I want to know how can I run login page over https protocol? I've implemented form based authentication correctly with NONE as value in tag, but when I changed <transport-gurantee> tag with the value CONFIDENTIAL, my browser is not able to display the page and returning an error: Firefox can'...

Why are Managed Beans not loaded in Tomcat?

Hi, I created a JSF 2 web application with facelets. The libs for JSF where stored at tomcat/lib, to share it between several applications. I thought maybe it would be better to store the libs inside the WEB-INF/lib folder of the application, to get the application more independent from server configurations. Now when I start tomcat vi...

two context problem

Hi! I'm new here and hope you can help me a little. I use two contexts: <Context docBase="Base1" path="/Con1" reloadable="true"/> <Context docBase="Base1" path="/Con2" reloadable="true"/> Is it possible to start the tomcat in a way that we use just one context but we can somehow keep the other context? (maybe unvisible for the serv...

How do I set JSP UseBean values from a servlet

I am writing a web application that uses a JSP usebean tag in the session scope as shown below <jsp:useBean id="userSession" class="project.session.UserSession" scope="session" /> I have also written a filter which does some processing and needs to set some values on the userSession bean. How do I get a handle onto the object and set ...

Howto configure a JDBC realm for container managed security with tomcat?

Hi, I want to configure tomcat / my web application to use a JDBC realm for container managed security. I specified the realm inside tomcat's server.xml file like this: <Realm className="org.apache.catalina.realm.JDBCRealm" driverName="net.sourceforge.jtds.jdbc.Driver" connectionURL="jdbc:jtds:sqlserver://hostname:1433/intranet;user=sa...

Eclipse can't find project source after tomcat restart.

I posted this on the eclipse forum in November and didn't get an answer. It seems that someone must have experienced this problem before, so I thought I'd post it here as well. General Description: Every time I restart my local tomcat web server, the next time I hit a breakpoint, eclipse can't find the project source. Background: I hav...

Grails + Tomcat + Ubuntu problem: CLOSE_WAIT connections

I have encountered a really bizarre stability problem in production when running a trivial Grails application using standard components. After some time of normal operation the number of Tomcat (jsvc) TCP connections in state CLOSE_WAIT increases until Tomcat hits its thread ceiling (Maximum number of threads (N) created for connector),...

Is it possible to cache JSP bytecode to avoid recompiles w/ Tomcat?

Hi, Is there any way of caching the bytecode for JSP webapps/ In particular, using Tomcat as the Java servlet? I'm getting really fed up of Tomcat taking up all the CPU for 10 minutes while it compiles 4 different webapps every time I restart it.... I'm already using Jikes to "speed up" the compiles, but it's really killing me. The cod...

Why are error pages ignored in RESTEasy web service running on Tomcat?

I'm developing a REST-ful web service using RESTEasy deployed on Tomcat. I've configured an error page which takes the exception's message and generates an XML based on it when any exception occurs during the request. This works fine for any application generated exceptions. However, if client sends an invalid XML which cannot be unma...

What does 'Failed shutdown of Apache Portable Runtime' log message mean?

After shutting down tomcat, I get this message: INFO: Failed shutdown of Apache Portable Runtime Then Tomcat shuts down after all I haven't found a reasonable explanation googling around, nor in the single duplicate I've found (0 answers) ...

Changes to JBoss web.xml have no effect

I just added this to my web.xml on my JBOSS server. But it had no effect. I am still allowed to connect to ports that do not use bi-directional certificate exchange. Anyone have an ideas? <!-- Force SSL for entire site as described here: http://wiki.metawerx.net/wiki/ForcingSSLForSectionsOfYourWebsite --> <security-constraint> ...

MyFaces 1.2.8 causes Tomcat 6 to crash on deployment

Hello I've got a JSF app built with MyFaces 1.2.8, Facelets 1.1.14 and building it with Tomcat 6 through it's plugin in Eclipse Ganymede. I've just installed the latest versions of the above libs and on build, the app deploys ok and the server goes to start and immediately I get this: javax.servlet.ServletException: javax.crypto.BadPa...

othen than quartz scheduler, what other options or pupular job tools are there?

Other than quartz schedular, what are other popular job services in the Java world? Ideally something that works well with Spring. I am assuming Tomcat can handle this type of scheduling? ...

benchmark/profiling maximum users can support on web application

any easy to use utility/tool/profiler/benchmark that able to test what is the maximum users a web application able to support by analyzing session size , cpu speed, memory size..etc and 'PREDICT' when server is overpacked/overloaded? ...

Custom JSTL TagLib and TomCat Problem

I've just created a custom taglib which runs fine with Jetty. When using TomCat 6.0 I get the following exception: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/sql/Result Any ideas on how to resolve this issue? I'm using Facelets and JSF 1.2. Thxs. ...