tomcat

Java (Tomcat): how to configure a cookieless subdomain to serve static content

One of the tip given by both Google and Yahoo! to speed up webpages loading is to configure a cookieless subdomain to server static content. How do you configure a "cookieless subdomain" using Tomcat in standalone mode (this question is not about how to use Apache to serve static content in a cookieless-way, but about how to do it in To...

I need to upload files in tomcat 5.5.28 in a network unit

Hi Basically i have an aplication deployed over tomcat 5.5.28 , i need put the files that the applicatio upload in a network unit in a shared folder. I know how make the configuration at web.xml level . I've not never upload file in the shared folder over the netwok unit....is it possible....? ...

Deploy to Geronimo with Ant

Hi, everybody. I have Apache Geronimo installed with Tomcat. I am building a war file and whant to deploy it to Geronimo automatically with Ant script. A standart way to deploy to Geronimo is to use deployer.jar, am I right? And I saw that there are tasks available to deploy jars on standalone Tomcat. So what would be the right way? Or m...

How to estimate tomcat server requirements?

We have a brand new webapp written that runs on Tomcat. So far, only one client is using it through the day. They run about 180 unique logins a day. Not really a lot IMO. Now, we managed to sell it to a brand new client who likes and wants to roll it out to 50,000 clients. How many of them will login at the same time - no idea. But I nee...

Including java libraries to Tomcat inside Eclipse

I am running Eclipse with Tomcat 5.5. My dynamic web site project includes some JAVA code that needs external jar files. Where should I place those jar files so Apache will not giving me errors such as java.lang.ClassNotFoundException ? Thanks on this. ...

Deploying project, created with Eclipse and Maven, to Tomcat

I'm using Eclipse 3.5, Maven 2, m2eclipse and Tomcat 6. So i create Maven project for archetype webapp. This is pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; <...

tomcat axis2 shared libs and spring destroy-method problem

in tomcat\lib there are axis*, axis2* jars. I cannot delete them [sysadmin won't allow to do that]. My web-app invokes web-services. I put Jax-ws jars directly to myapp/web-inf/lib. so inner calls frow a web app servlets use jax-ws libraries. but since "destroy-method" of the bean invokes a web-service, and session is destroyed, the...

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

I'm developing a servlet that receives a multipart request with content of multiple files, and I'm using apache commons file upload libraries. When I call parseRequest(request); method servlet throws following exception: GRAVE: Servlet.service() for servlet DiffOntology threw exception java.lang.NoClassDefFoundError: javax/servlet/http...

how to add Apache Tomcat6 to eclipse ?

when i go to windows preferences, there is no Tomcat6 !!! how can i add tomcat6 new server runtime environment in eclipse 3.5 ...

difference between TOMCAT server and BEA WEBLOGIC server

What is difference between TOMCAT server and BEA WEBLOGIC server ...

How to lock files in a tomcat web application?

The Java manual says: The locks held on a particular file by a single Java virtual machine do not overlap. The overlaps method may be used to test whether a candidate lock range overlaps an existing lock. I guess that if I lock a file in a tomcat web application I can't be sure that every call to this application is done by a diffe...

which version of tomcat is compatible with Java 1.6

hi, Friends I need to configure my project with JDK 1.6 version.In this project I have to use tomcat server which version of tomcat is compatible with Java 1.6. ...

Tomcat 6 Realm Config with Windows AD

We have Tomcat 6 connecting to a Win2k3 Server running AD. The realm is configured as such <Realm className="org.apache.catalina.realm.JNDIRealm" debug="99" referrals="follow" connectionURL="<url>" connectionName="CN=Query Account,OU=Service Accounts,DC=company,DC=com" connectionPassword="<pwd>" userBase="OU=Users,DC=com...

Problems importing WAR files in Eclipse?

I was unfortunately forced to result to uploading a WAR file as my backup for a web application I am working on. Luckily I have the most recent WAR file available. I am using Eclipse IDE and am using the Web Tools plugin for all the J2EE work that I am doing with the Dynamic Web Application Project. When I imported my WAR file, and ran...

Force session replication in Tomcat 5.5

I am runnig a web application on tomcat 5.5. How can I force dump of a session into disk on each request on each interval of time ...

Write Tomcat 5.5 output to one of Tomcat's log files

I'd like that all the output that is shown in Tomcat's console will be saved into a file including the output on startup and shutdown of Tomcat. How can I do this? I looked at apache documentation about logging, Do I need to change something in the logging.properties can I trust log4j to write message from the first message on startup t...

refering Tomcat JNDI datasource in persistence.xml

in server.xml I've defined global resource (I'm using Tomcat 6): <GlobalNamingResources> <Resource name="jdbc/myds" auth="Container" type="javax.sql.DataSource" maxActive="10" maxIdle="3" maxWait="10000" username="sa" password="" driverClassName="org.h2.Driver" url="jd...

Java EE app with PostGis hosting issue

Hello all I developed a web app that runs on tomcat 5.5 and needs PostGIS. It's been very difficult to find a hosting solution for these requirements. Is out there any professional hosting companies that can handle this hosting. (I say so because hostjava which i have payed already cannot install PostGIS) Any other suggestions? ...

How to limit the number of connections to a SQL Server server from my tomcat deployed java application?

I have an application that is deployed on tomcat on server A and sends queries to a huge variety of SQL Server databases on an server B. I am concerned that my application could overload this SQL Server database server and would like some way to preventing it making requests to connect to any database on that server if some arbitrary nu...

how does tomcat like web container handle struts 2 variables ?

i am a newbie . i have a question regarding struts 2 framework and tomcat . i know that each request has it own thread , but my question is are the global variables defined in struts action shared amongst requests. for ex: if i have a global variable named say int pageNo; and i am using in say method called paginationAll() ...