tomcat

where to store uploaded images - in the tomcat application or on the server?

Hi! What do you suggest for location of images that the user uploads to my application? in my server application (like WebContent->images) or in system location? ...

NIO Connector in Tomcat

Hi, I'm trying to enable NIO Connector in Tomcat 6.0 by configuring server.xml file, but I'm getting Firefox can't establish a connection to the server at localhost:8081. in the browser whenever I type localhost:8081. This is how I've configured NIO connector in Tomcat 6.0. May I know what's the problem? <Connector connectionTimeout=...

How to call read event by using post request

Hello, I'm trying to call read event by sending post request to servlets in Tomcat. The code which I'm using in client side is in jquery $.post('just.do',{username:value},function(data){ $('#div').html(data); } ); but whenever I make a post request I get a response "Oh no" of begin event. I've not closed any connection in...

How to Synchronize Session / Security between ASP.NET and Tomcat?

I have an Asp.NET 3.5 application with security/authentication. I have a second application (built using GWT and running on Windows Tomcat) running on a different machine. I need to make the second application available to the user via a link generated from the .NET application. This part is easy, I have constructed the link in the ...

Using Ant in Eclipse to copy files to Tomcat directory

I have checked out a java servlet project from subversion that has a strange organization. All the java is in one directory and the resources ( JSPs, properties files, etc are in another ). I want to use Ant to build the project, but then copy files to the appropriate Tomcat directory on my machine. For example I would like to copy th...

Tomcat version within JBoss?

What version of Tomcat does JBoss 5.1.0 have embedded? Thanks ...

Tomcat6 ignores logging.properties partially

I'm using Tomcat 6, and this is my logging.properties: handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler .level=FINE org.apache.catalina.core.ApplicationContext.level = OFF org.apache.juli.FileHandler.level = ALL org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = m...

what makes a Tomcat5.5 cannot be "aware" of new Java Web Applications?

This is for uni homework, but I reckon it is more a generic problem to the Tomcat Server(version 5.5.27) on my uni. The problem is, I first did a skeleton Java Web Application (Just a simple Servlet and a welcome-file, nothing complicated, no lib included) using NetBeans 6.8 with the bundled Tomcat 6.0.20 (localhost:8084/WSD) Then, to ...

Jboss EAP 5 and Tomcat 6 on the same Win env. (Jboss gets Toncat`s home page when`s up)

Hi guys, I`m newbie to Java technologies, just trying to catch up some idea of it. I was trying to build a java environment to play with Eclipse, Mysql, Tomcat and Jboss and integrate these together. I did: 1. Installed jdk1.6.0_20 (including JAVA_HOME and path variables; I work on Win Vista), mysql 5 and eclipse-jee-galileo (the lates...

tomcat 5 having error log4j

Whenever i start my tomcat 5, the following error occur, log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. how this can be solve ...

Can tomcat perform ssl redirection by filtering host alias?

Hi, We have a tomcat server (6.0.20) running one web application behind two urls, e.g. www.foo and secure.foo This is configured in the server.xml as one host with a single alias: <Host name="www.foo" appBase="webapps"> <Context docBase="foo" path=""></Context> <Alias>secure.foo</Alias> </Host> Ideally we'd like any requests...

Remove Foobar.xhtml from URL with JSF

I have written a facelets web application using tomcat as a application server. My program has a foobar.xhtml and the URL to it is: http://localhost:8080/Myapplication/foobar.faces Can I change something in my application so that a link to: http://localhost:8080/Myapplication/ ..will actually render my application on http://localhost...

How to update individual files in a war file

Hi guys, I am doing some research in the way i can deploy an application efficiently using a war file. What i currently do is i deliver the war file everytime there is a release. This means everytime there is a change no matter how small the change is i have to build and deliver all files that make up the application. I am thinking t...

Java Servlet says file does not exist

Hello World! I have developed a java servlet that monitors a folder on a network drive for new files then does some actions on them depending on what kind of file it is. It worked in Eclipse when Eclipse and Tomcat were running with each other, but now that I have deployed it onto a server(different machine), the servlet keeps logging t...

Init Startup of Tomcat

Hi I put a init script into /etc/init.d to startup the Apache-tomcat. when i'm reboot the machine. i think the Tomcat try to start and aborted in some level. i am using Ubuntu 9.04. my guessing is the given time to start the tomcat is not enough. if any way have to increase the time to execute a script in startup. ...

Tomcat error with Hibernate 3.5.1

I just upgraded to hibernate 3.5.1 and I get an error now saying: java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval () Z. This only happens with Tomcat not with Jetty. I've checked and I don't have any conflict and this method definitely exists. I have hibernate-jpa-2.0-api-1.0.0.Final.jar on the class path, and...

Should values kept in Tomcat Session be set to null when session is being destroyed?

Should values kept in Tomcat Session be set to null when session is being destroyed? Or they are automatically destroyed? We had a problem with multiple .ser files in tomcat folder. Could that be because we do not set values kept in session to null after using them ? ...

Tomcat reporting 404 error on all of newly deployed WAR files?

I deployed a WAR file into $TOMCAT_HOME/webapps by copying the file into the directory, just like I've done a thousand times before. Tomcat detects the WAR and inflates it. I can traverse the directory tree on my server at the command line (it's Fedora). But when I address the webapp within my client machine's browser, I get nothing b...

Tomcat startup logs - SEVERE: Error filterStart how to get a stack trace?

When I start Tomcat I get the following error: Jun 10, 2010 5:17:25 PM org.apache.catalina.core.StandardContext start SEVERE: Error filterStart Jun 10, 2010 5:17:25 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/mywebapplication] startup failed due to previous errors It seems odd that the logs for Tomcat would not...

Java/Tomcat standalone, how to log/access all the HTTP GET requests

I'm running Tomcat in standalone mode. The "standalone" part is very important: I am not going to install Apache in front of Tomcat. In my question here, about how to implement a "web bug", I got a great answer: http://stackoverflow.com/questions/3011876 However the answer states: In your access logs, you can count for your jpg ...