tomcat

What is the difference between APR implementation of SSL and JSSE implementation of SSL on TOMCAT5.5

Hi I'm configing SSL to support HTTPS on TOMCAT 5.5. So I referred to "http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html" which elaborates on how to implement SSL. Document describe two ways to implement SSL namely APR implementation, JSSE implementation. I wonder the difference between them, including their shortcomings and adva...

Tomcat and logback.xml

Hello guys! I am starting up a Seam + Hibernate + Logback project deployed to Tomcat 6. I use Eclipse as an IDE. Hibernate prints many debug statements, so I have put the level to ERROR, so I don't see them. <logger name="org.hibernate"> <level value="ERROR" /> </logger> I don't paste my whole logback.xml, because the problem I h...

Manage sessions on different tomcat instances

Hi I am having scenario that I am using 4 tomcat instances on our server.When user login then suppose it is connected to tomcat-1 so we stored all session values in tomcat-1.Then we are processing paypal.After paypal processing user is get diverted to another tomcat say tomcat-2.So there are no values in session for this user.And I am fa...

How could randomly my session is null?

I am using Tomcat 6.0, JSF2.0.2 I realized that randomly HttpServletRequest getSession method, returns null. I could the session randomly be null? How can I debug who sets the session to null? I checked it with request.getSession(true) and it returns null. How could it be that it cannot create a session? ...

Weblogic dynamic class loading

Does someone found a way to use (for development) a "dynamic" class loader for weblogic 8 or 10 ? I am looking for an hot, jar / classes, classloader reload mecanism. For tomcat 4 -> 6, i use since several years an old, but very convenient, Dev class loader : http://www.eclipsetotale.com/tomcatPlugin.html So, i am looking for an anal...

Is there a way to start/stop/restart REMOTE Tomcat server from Eclipse ?

Is there a way to start/stop/restart REMOTE Tomcat server from Eclipse ? I have the access to web manager interface via http and also ssh access to server that holds tomcat application. ...

Configure SSL to work with Java web app on Tomcat 5.5 server

This is a bit of a noob question but what do I need to get SSL working in my Java web application (standard sort of Java web app using Stripes for its MVC implementation, Spring and Hibernate)? I'm deploying my war file on Tomcat 5.5. I only want SSL to be used for certain URLS - any that are transferring the user's password - so accoun...

Tomcat 6.0 on Mac OS X

Hey, I'm trying to run Apache Tomcat 6.0.26 on Mac OS X - Snow Leopard, but with no luck :( I've downloaded Tomcat core from: http://tomcat.apache.org/download-60.cgi unarchived it at /Livrary/Tomcat directory, but when I'm trying to run it using ./bin/startup.sh command from log/catalina.out logs it seem's that it can't find servlet-ap...

Pre-deployment application properties update on Tomcat 6

Hi everyone I'm looking for the best way to update some properties before deploying of application onto tomcat 6. There is a jee application that's going to be installed on some Windows workstations. Few modules of the app need property update before deploying onto tomcat server. Property updater is realized as standalone java applicat...

How to start/stop/redeploy maven web app using cargo start inside Ecipse

I have Maven2 war project built, I'm using the cargo start plugin, and it works great for deploying the web app. To run the maven command, I use a .bat file in my workspace, and I have en external run config to run the the bat file. I can't seem to stop the server from the Eclipse console, or re-deploy. Does anyone have any advice on ...

Logging with Guice

Does anybody know if there is a way to make Guice log errors before throwing them? We are using Tomcat and any exceptions thrown at deploy-time keep getting swallowed. If we could make guice log the exception before tomcat has the opportunity to throw it away we would have a much better chance of solving our current issue. ...

What do you guys think of RestEASY?

So I wrote a sample REST resource that works like a charm in Jersey/Tomcat, but when I take it to RestEASY/Tomcat it blows. I mean really? what happened to working out of the box. Anyway a little frustrated. I get this error when trying to access the resource(http://localhost:7070/mg/mytest) "content-type was null and expecting to extra...

Intermittetly NPE during parseParameters in Tomcat's Request

We have intermittet NPE during parseParemeters in org.apache.catalina.connector.Request. The more users are online, the more this NPE happens. After a JBoss restart, the NPEs disappear for a while. Within 24 hours we receive between one and over 400 of those NPE. It does not matter which service is called. Any service request can end in ...

tomcat - CATALINA_BASE and CATALINA_HOME variables

I have multiple instances of tomcat 6 running on the same server (Linux) and it works as expected. I am trying to find out what the standard practice is with regards to setting the CATALINA_HOME and CATALINA_BASE variables. In my tomcat installation, I have setup CATALINA_HOME to point to a "common" folder (say /tomcat6) and the CATALIN...

Tomcat Traffic Monitoring

What's the best way/tool to measure the amount of traffic has been received/sent from tomcat? ...

Registering HornetQ resources in Tomcat JNDI (CF / Destination)

How can I put the connection factory and destination of HornetQ into the JNDI of Tomcat? ...

IntelliJ says 'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission denied

In intelliJ ulimate, running a bare bone spring mvc application I get the error: 'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission denied How to I fix this? (i'm on a mac) ...

Tomcat session management - url rewrite and switching from http to https

I'm an old hand at C but a raw newbie at Java/Tomcat. I'm fine with Tomcat session management in http alone. Its when I've come to look at switching to https that I've had problems. I gather for Tomcat that you have to start with an http session if you want to maintain a session as you switch from http to https and back to http. This ...

How can I get the Tomcat JSESSIONID on the client side?

Hi Guys I want to get the JSESSIONID of Tomcat on the client side. Is that possible? If yes, how? Thanks ...

Switching between HTTPS and HTTP in Java web appliction

I have set up SSL in Tomcat 5.5 and have the following in my web.xml: <security-constraint> <web-resource-collection> <web-resource-name>SSL URLs</web-resource-name> <url-pattern>/j_spring_security_check</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> ...