context « Tomcat « JSP-Servlet Q&A





1. Accessing Tomcat Context Path from Servlet    stackoverflow.com

In my Servlet I would like to access the root of the context so that I can do some JavaScript minifying. It would be possible to do the minify as part of ...

2. Servlet context scope vs global variable    stackoverflow.com

What (if any) is the difference between storing a variable in the ServletContext and just having it as a public static member of one of the classes? Instead of writing:

// simplified (!)
int ...

3. tomcat 5.5 setting up context path with virtual hosts (non webapps directory)    stackoverflow.com

I have been a web developer for a couple of years (some ASP, mostly PHP) and have recently taken on Java/JSP in the last two years. The one thing I have tried ...

4. Getting Tomcat to reload a web app with a static context    stackoverflow.com

I have a Host that doesn't automatically deploy all web apps.

  <Host name="localhost"  appBase="webapps"
        unpackWARs="true" autoDeploy="false"
       ...

5. How do I set javax.servlet.context.tempdir in Tomcat?    stackoverflow.com

More specifically, I'm using Tomcat 5.5. I've been searching online for a while and haven't found anything that actually tells me which file I have to update and how. How do ...

6. Accessing context.xml Environment variable from any JSP file    stackoverflow.com

I have items like: Environment name="debug" value="true type="java.lang.String" override="false" in my context.xml file in dev In non-development environments I don't have this line. In my webapp's JSP files I would ...

7. Multiple war files for a single webapp or context    stackoverflow.com

I have an application that has the following structure

$TOMCAT_HOME/webapps/myapp
            |-css
           ...

8. New Context problem - Tomcat 4.1.12    coderanch.com

I've created a context for my webapp in server.xml so that I could set up a connection pool. In doing so, Tomcat raises an exception on startup while trying to unpack the war, saying that the directory (into which it is trying to unpack) does not exist or is unreadable. If I create an empty directory there, it does start up, ...

9. how to maintain session for two different contexts in tomcat    coderanch.com

hi In our application we r using two contexts in our product like tomcat/webapps/csc and other one is tomcat/webapps/tcm;Both csc and tcm applications we r using two different login pages.if i login in csc application i have one hyperlink tcm;if i click tcm it is redirecting to the login page;i dont want that ;whatever session maintained in csc i want to ...





10. Servlet context in Tomcat Production server    coderanch.com

That certainly is a disconnect from your first post which asked about the web app display name, not the context path. In any case, what you've got coded won't work in the general case. It will only work when the context path coincides with the file path of the web app, which is often not the case in production. Rather, you ...

11. tomcat META-INF/context.xml    java-forums.org

12. Tomcat 6 + Context path configuration + JSP    forums.oracle.com

i got below the error in Log file, Jan 8, 2008 11:07:34 AM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jan 8, 2008 11:07:34 AM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jan 8, 2008 11:07:34 AM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter CAS Filter java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at edu.yale.its.tp.cas.client.filter.CASFilter.(CASFilter.java:87) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255) at ...