Hello, I have developed a REST service with Apache Jersey, running on Tomcat.
It works OK, but now I have to securize it using data obtained from a X.509 client certificate. I don't know where to start...
Could you guys give me some advices?? Thank you for your valuable help.
...
Using tomcat, how do I get a request for http://www.mydomain.com to redirect to http://www.mydomain.com/somethingelse/index.jsp ? i haven't even managed to get an index.html to display from http://mydomain.com.
...
I have an external Tomcat server configured to run J2EE applications on my development (Gentoo Linux install) machine. This works great if the server is started prior to opening Netbeans and deploying the code [within the IDE]. This fails when I try to restart the server or to debug the server application. The error I get is that it is u...
Where does Tomcat or Jetty saves the sessionids (without session persistence configuration)? Does it go anywhere in the file system, or does it stay just in memory?
...
Running Tomcat through eclipse works fine in non-debug mode, but not in debug mode. When I try to start the Tomcat server in debug mode, the console output looks fine for a while, but then starts slowing down and eventually just stops, pegging the cpu at 100%. I don't think it's relevant, but just in case - here's the console output ri...
I am getting a PermGen Space Exception whenever I deploy my web application.
I tried some JVm option in NetBeans but still unable to resolve the issue.
...
We use Tomcat for our java web application. There is a properties file under WEB-INF folder.
AES encryption will be used to generate key and encrypt password. The encrypted password will be stored in the properties file. Where should be the encryption key stored? Is it a good idea to put the key and the encrypted password in the same p...
I found this in the Tomcat documentation here
What I don't understand is why they close all the JDBC objects twice - once in the try{} block and once in the finally{} block. Why not just close them once in the finally{} clause?
This is the relevant docs:
Random Connection Closed Exceptions
These can occur when one request gets a db ...
I have an application which resides in ROOT. This application has a java class(in ROOT\WEB-INF\classes) which does some specific operation.
I have an axis webservice with a java class which is basically duplication of the one in ROOT, and it resides in axis\WEB-INF\classes.
Is there any way that I can migrate these two(axis and ROOT) ...
I am trying to run a Spring webapp using maven with the
mvn tomcat:run
command, but whenever I navigate to http://localhost:8080/myApp, I get the error: "The requested resource () is not available". Nothing shows up in the logs. I think my app is supposed to be deployed to "/" instead of "/myApp". Is there a way to do this?
Maven out...
What are the accepted practices for creating a Tomcat deployment that reads configuration parameters from a properties file?
It would be nice to be able to deliver a WAR file and specify that the client need only create or edit a properties file in a specific directory. Is this a somewhat regular way of doing things? Is there a better ...
A 3rd party web application has a cross-scripting security issue. There is one page with three fields which are not sanitized. The vendor will not provide a timely fix and I need to.
The application is running in Tomcat and uses Struts 1. The action for the bad page looks like this:
<action
path="/badpage"
type="com.badvendor.Ba...
Hi gentlemen
I want to do Url rewrite in Tomcat using UrlRewriteFilter
This is the rule would like in mod_rewrite apache
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1 [L]
I'm confused in how to check the request filename if it's not a file or not a folder in UrlRewri...
Can you hot deploy JAR files on Tomcat 5? The idea is to avoid restarting Tomcat and still be able to load (via reflection) some class from a newly added JAR.
Can it be done? How? Is it unadvisable for a production system?
Thanks
Edit: my scenario requires the addition of new JAR files for which the names aren't known in advance. Can t...
I am a newbie trying to figure out the pros and cons of using Hibernate with Tomcat and with JBoss.
I am developing a web application with Flex at the front-end, BlazeDS as the messaging service and Java at the back-end. We have decided on using Hibernate as the persistence mechanism but would like to know the trade-offs of using it wit...
I have actually figured this problem out, but it took me days, so I thought I would paste my solution here to aide others.
I am using Fedora 11, and in Eclipse I tried adding a Tomcat 6 server and starting it. I would get the following error:
'Starting Tomcat v6.0 Server at localhost' has encountered a problem.
Server Tomcat v6...
My tomcat (running in linux/ubuntu) crashes sometimes with a thread dump appended to catalina.out. How do I get this thread dump into a separate log file?
The thread dump is quite large due to the large number of threads running and therefore fills catalina.out making it hard to debug.
...
Is there a facility in Tomcat (version 6) to add/delete/edit JNDI resources? If it's possible, how would I update a JDBC data source (as an example)?
Note that I'm looking for a possibility to update a JNDI resource without redeploying an application.
Apparently Glassfish let's you do this, unfortunately using another application server...
Hello,
I am using Tomcat 5.5.9 and Apache 2.x
We are trying to use a path name in ProxyPass that is different
than the Tomcat context name.
ProxyPass /path http://localhost:8080/contextname
However, this does not work. When these two are the same
then everything works fine.
Most examples I see on the net also have the path equal to...
I would like to get access to the Tomcat internal data from a servlet (or filter). In particular, I would like to read information about busy threads, from thread pool manager. So, my question is if it is possible at all (I can imagine that it could be blocked for safety reason)? If it's possible, maybe someone could give me any advice w...