top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Migrating from GlassFish to Tomcat 7

+1 vote
658 views

I have a GWT application which currently is running on GlassFish 3.x. I want to migrate to Tomcat 7. Previously, I would store properties that the GWT application could retrieve by org.apache.commons.configuration.SystemConfiguration. I would put these settings in my domain.xml for GlassFish. What is the Tomcat equivalent? I tried putting settings under my WEB-INFweb.xml file as context-paramsection. However, my GWT application cannot see them still.

Where should I put settings that can be read by calling org.apache.commons.configuration.SystemConfiguration from my GWT app from Tomcat?

posted Aug 22, 2013 by Anderson

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer
  1. Looks like this class is loading items from system properties.
  2. You'd want to add system properties in "$CATALINA_BASE/bin/setenv.sh". Note this file doesn't exist by default, you'll need to create it.
    Ex:
    CATALINA_OPTs="-Dmy.property.1=xyz -Dmy.property.2=abc"
answer Aug 22, 2013 by Seema Siddique
Thank you - it's working!
Similar Questions
0 votes

I am just trying upgrade tomcat 7 to latest GA 8 for my application, I am seeing quite lots of change in web dav functionality.

The org.apache.naming.resources.ProxyDirContext do not exists do anybody know where I can find the alternative? in the past we got use resource to lookup something but now is not this one, can anybody know any doc?

+2 votes

I got a Problem with Tomcat deployment. I am using TC 7.0.42, OS: Win2k8r2, J 1.7.0._45.

We used to deploy unpacked webapps (dirs) on a Tomcat 5.0.26 outside the Webapps-dir. We used the manager (web-IF) to deploy these apps, giving the context name and the local directory. The tomcat ran the app from this location. It creates a .xml in it's config dir.

Now in TC7, the tomcat COPIES the APP from the given location to the default Webapps directory. But we want it to run from where it is, not a copy. One way to archieve this is to manually create a .xml file in the conf/server/localhost dir. But our deployment process needs it to be done via web interface. So, is there any possibility to configure tomcat 7 to behave like tomcat 5 when deploying local webapp directories from outside the webapps dir? I tried autoDeploy and unpackWars to false, but it didn't help. :(

0 votes

I am running Apache Tomcat 7.0.4 on Linux and the session-timeout is configured to 30 minutes. All requests from my client pass in the session cookie. However, I do not want the session timeout counter to get reset for certain URLs.

Is there a way to configure Tomcat to ignore certain URLs when resetting its timeout counter for a particular session?

+2 votes

Here is the scenario

We have a build process setup from Jenkins tool to build and auto ftp the war file to the Webapps € folder of Tomcat.

In Tomcat we have deployed the SailPoint IdentityIQ toll which is a 300mbwar file.

Often the IdentityIQ application will be running few Tasks which take longer duration (5-6 hours)

When the application is executing the long running taks, though the war file is placed/updated in web apps, tomcat is unable to stop the application due to task execution and we are unable to stop Tomcat as well

We are forced to kill Tomcat and re trigger the Jenkins build.

I am looking on few options to configure on the Tomcat server side to check for any Active sessions OR threads running related to the application and abort the Redeployment/Auto Deployment

Will it be possible?

...