I would like to put two small constant objects (one TreeMap and one ArrayList) somewhere in the ServletContext of a Struts2 webapp (running under Tomcat 6), such that those objects may be accessible from any JSP, through the Application Scope.
Under Struts1, I would have used one of those startup "plug-ins" (defined in struts-config.xml...
I wish to use the Tomcat install/deploy tasks from catalina-ant.jar to deploy a webapp to a remote app server.
After installing Ant using the instructions found here, my ant folder is configured as:
/usr/local/ant
My "Ant Home" has also been set to that directory through Eclipse. I copied catalina-ant.jar to my ant/lib folder.
My b...
Hi,
We are getting this error on starting tomcat (both as a service and via command line):
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
We have the version with a tomcat5.exe and ...
I get the following error:
javax.servlet.ServletException: Cannot find a matching 1-argument function named {http://exslt.org/dynamic}evaluate()
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:841)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:774)
The top...
I'd like to setup Tomcat on Windows and have authentication in my web application be done against the Windows users (or a subset of those users). I read that if you have users setup on Active Directory, you can use the JNDI realm.
What if you don't have Active Directory, but just have "simple Windows users" setup on the server? Is it po...
What's the best/easiest way to run periodic tasks (like a daemon thread) on a tomcat/jetty server? How do I start the thread? Is there a simple mechanism or is this a bad idea at all?
...
I have a JSP which attaches a XSL to an XML document pulled from a database. The application is using the Saxon Parser but my XML needs to use the Xalan one. Can a JSP page override which parser to use?
...
Hi,
This is with reference to my question: java.awt.HeadlessException Applets not displayed.
There is a next question that has come up from the Sys Admins. They are asking -
"Why does java1.5 now requires the explicit export DISPLAY in tomcat at all when java1.4 did not?"
So what has changed in java1.5 which is causing it to throw ...
I have a set of .tag files (for example a tag that renders a copyright notice) that I want to share across all my application contexts on my Tomcat application server.
I've only ever used them in a context's /WEB-INF/tags directory, referring to them via the taglib directive tagdir = "/WEB-INF/tags"
How can I make the tags available to...
For simplicity, i have the following file named test.jsp:
<script language="javascript">
alert("a$b".replace(/\$/g,"k"));
</script>
I put this file in my local server, then display it using firefox: http://localhost:8080/myproj/test.jsp. It works okay, the result alert string is:
akb
But when i put this file in a remote serve...
How do you ensure that your applications in production are up and running?
How do you alert your team of developers if something goes wrong?
I'm asking this because I'm writing a bash script to check for this issue, I'd like to know if there is a smarter or more complete way to achieve this.
The idea behind is this command: 'wget -q -O ...
I'm about to use MySQL with Hibernate on a Tomcat 5.5.x server.
Do I have to put mysql-connector-java-[version]-bin.jar in $CATALINA_HOME/common/lib/ or could I place it in WEB-INF/lib inside my WAR file with my other library dependencies?
It would be easier to have it in my WAR in WEB-INF/lib, as I could get it using the Maven reposit...
I'm developing on a Ubuntu 8.04 machine using Eclipse Ganymede. I installed Tomcat 5.5 using sudo apt-get install tomcat5.5 tomcat5.5-admin and using an Ant script I deploy my WAR file by copying it to $CATALINA_HOME/webapps.
I then created an Eclipse project and I have it output compiled source in a similar but separate directory struc...
I keep getting a "PermGen" error on my Tomcat 6 server.
I know what application is causing the problem, but I am not sure why it is doing so. The application is using MySQL 5 and running on JDK 6.
Are there any tools/suggestions to diagnosis or analyze the underlying issue(s) with the specific application?
Thanks
...
I have setup Tomcat to use the NTLoginModule, but when logging in, I get a:
javax.security.auth.login.LoginException: java.lang.ArrayIndexOutOfBoundsException
at com.sun.security.auth.module.NTSystem.getCurrent(Native Method)
at com.sun.security.auth.module.NTSystem.<init>(Unknown Source)
at com.sun.security.auth.module.NTLo...
I've got a foo.war file from a third-party vendor. I've defined a context in my Tomcat configuration by creating conf/Catalina/localhost/foo.xml that contains:
<Context docBase="/path/to/foo.war" ...> ... </Context>
I want Tomcat to load up the foo context at startup. But the WEB-INF/web.xml (deployment descriptor) in the foo.war fi...
Hey,
I have this application i'm developing in JSP and i wish to export a couple of data from the database into XLS (MS Excel format).
Is it possible under tomcat to just write a file as if it was a normal java aplication, and then generate a link to this file? Or do i need to use a specific API for it?
Will i have permition problems...
Hi! If I start with a Eclipse IDE for Java Developers (85 MB) (Ganymede) installation. What plug ins do I need to install to be a able to:
See the Server tab and being able to add my Tomcat 6 installation.
Be able to create a Dynamic Web Project which I may connect to my server.
I want to be able to start and stop the server.
See the s...
I've got a Tomcat application mounted on /geo and that app has an 'index.jsp' that is accessible directly and works, but when I try to get apache to use it as a directory index entry it never shows up. More odd than this, if I remove the index.html from the DIrectoryIndex line in my httpd configuration, an access of '/' redirects some ho...
Hi.
I am using JBoss 4.0.4 GA, which has Tomcat Servlet Container 5.5.
I also have IIS 6.0 redirected to this JBoss. (via IIS tomcat connector, which is used as ISAPI filter in IIS).
All is working OK, configured the workers as described.
Here is a piece of workers.properties file of the connector:
#
# Defining a worker named ajp13 and...