how to disable tomcat caching?
how to disable tomcat caching? I use this - <Context antiJARLocking="true" antiResourceLocking="true" cachingAllowed="false" cacheMaxSize ="0" cacheTTL="1"> in Tomcat/conf/context.xml but it not helps ...
how to disable tomcat caching? I use this - <Context antiJARLocking="true" antiResourceLocking="true" cachingAllowed="false" cacheMaxSize ="0" cacheTTL="1"> in Tomcat/conf/context.xml but it not helps ...
Hello all, I'm building a Spring MVC application, and the frontController servlet is mapped in "/" intercepting all requests, I'd to be able to serve the static contents (.js,.css,.png...) from tomcat and not by Spring. My app structure is -webapp/ styles/ images/ WEB-INF/ views/ By default, because the frontContr...
I'm trying to set up my dev environment on my new MBP which has 8GB of RAM. My IDE of choice is NetBeans 6.9 and I keep getting a memory exception (Permgen Outofmemory error) when I start an application through Tomcat 6. Here's my netbeans.conf file: netbeans_default_options="-J-Xms256m -J-Xmx2048m -J-XX:PermSize=32m -J-XX:MaxPermSiz...
I'm getting this error when I try to view the page: SQLException: Cannot create JDBC driver of class '' for connect URL 'null' I have the following /WEB-INF/web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app> <display-name>WSwartzendruber.net</display-name> <description>Personal Website</description> <!-- Servlet st...
I wrote Front Controller Pattern and ran the test. Somehow request.getPathInfo() is returning null when it should return the path info. 1. HTML that calls servlet <a href="tmp.do">Test link to invoke cool servlet</a> 2. Map the servlet in DD. Anything that has .do extension (ex tmp.do) will invoke the servlet "Redirector" <!-- SERVL...
Probably a repeat! I am using Tomcat as my server and want to know what is best way to spawn threads in the servlet with deterministic outcomes. I am running some long running updates from a servlet action and would like for the request to complete and the updates to happen in the background. Instead of adding a messaging middleware like...
I created a certificate using keytool: keytool -genkey -alias tomcat -keyalg RSA Exported and imported it into my keystore: keytool -export -alias tomcat name.crt keytool -import -file name.crt When I do keytool -list I have 2 entries: tomcat, Sept 15, 2010, keyEntry, Certificate fingerprint (MD5): ... mykey, Sept 17, 2010, trust...
i have to run 2 web apps on two diffrent ports , one on default port 80 and other is on 89 port, i am using Jboss 4.2.3 , and i need to depoly both WARs to same JBoss intance. ...
Hi, I try to setup a database connection in java with JNDI in combination with eclipseLink/JPA on Tomcat 5.5. I already configured the JNDI resource in web.xml and context.xml. The db connection works with JNDI without using JPA and eclipseLink. After configuring the persistence.xml for eclipseLink, I got the following exception. I do...
I need to list files under a folder of a different web application. Is there a way to get this done without having to provide the actual path in a properties file? Webapps - WebApp1 -MyFolderOfInterest - WebApp2 - WEB-INF - Classes - MyClasstoListFiles TIA ...
Hi Folk, i'm trying to use session with metro webservice and tomcat but i have a strange issue, look at these line of code: MessageContext mc = wsCtxt.getMessageContext(); HttpSession session = ((javax.servlet.http.HttpServletRequest) mc.get(MessageContext.SERVLET_REQUEST)).getSession(); At the first call a session is created, at the ...
Hi All, I am trying a spring MVC application on tomcat server.. I am always getting the error as resource not found(please see the question if you have time)..I think there is some problem with the view resolver.. I want debug this application to know where i am doing wrong... Is that possible? I don't know if it is a lame question ...
Hi all, I'm developing a Java webapp using Spring, Spring Security, Tomcat and MySQL. Right now I'm still in a phase where I'm making fairly frequent changes to the database as well as recreating the database to purge test data. Ultimately, this won't be an issue, but is there a way to have a bean that is instantiated or code that is ...
Hello, Can someone please tell me how to set Tomcat timeout in seconds? as far as i know it can be 1minute at minimum.... thanking in anticipation.. ...
Hi all when i tried to get the requested url on some page on myapp.com i get something like : http://127.0.0.1:8084/myapp/mypage and it was expected to be: http://myapp.com/mypage i think that this is because Apache acts as a Mediator between the tomcat and the user requests/responses any ideas guys why such behaviour occurs, and how ...
Is it possible to do 301 redirect with Tomcat 5.5 running standalone, not behind IIS/Apache? ...
I have a Java web-app using standard web.xml and servlets. At the moment, I'm using the <context-param> tags in web.xml to define the database configuration (JDBC url, username, password, etc.). These are picked up by a servlet in its init() method. But I'd like to not include database username/password in my source repository. For t...
I'm fairly new to java/eclipse development and I'm having a bit of a problem debugging code from a specific jar in a web app that my company uses. First off, I have Tomcat setup properly and can run the webapp successfully (other than the bug that I'm trying to find!). There are about two dozen jar files in the lib directory for the we...
I have multiple folders containing reports under /report folder in the BIRT WebViewer. I would like to be able to deliver these reports on the web. Directory structure is as follows - BIRTWebViewer - report - Finance - Sales - Marketing I have tried adding the folder to the report parameter value passed to the frameset ...
I have a web app running on Tomcat 7, that requires a connection to multiple databases. For efficiency's sake I'd like to employ multiple connection pools using JDBC and probably DBCP. What options are available using multiple pools? The Tomcat server has multiple, virtual hosts and web applications on each virtual host. ...