I have a web application running in Tomcat 6, and I've managed to configure it to use the built-in DBCP connection pooling, and all is working very well, however I suspect it is running in the wrong isolation level on the database. I'd like it to run in read uncommitted, but I think it's running in read committed and don't know how to se...
Hi All,
I have a J2EE webapp that works perfectly when I run it on Eclipse and my local tomcat server (I've also tested on a friend's tomcat server), but not on a production server.
This is the problem: The app is supposed to create a folder at a specific location (I've tried hardcoding this as well), but when run on the production s...
Hello All,
I'm running a local Tomcat 6.0 server on my desktop.
I'm trying to redirect any and all requests matching http://localhost:8080/RedirectDirectory/abc/efg/morejunk to a single JSP page.
In my RedirectDirectory project's web.xml I have
<servlet>
<servlet-name>IOPRedirect</servlet-name>
<jsp-file>/RedirectDirectory/filetree....
I am currently writing a Comet application which requires me to send chunks of data at a time on a persistent connection. However, I'm having trouble flushing the message to the client before closing the connection. Is there any reason the PrintWriter.flush() method is not behaving like I think it should?
This is my Tomcat Comet imple...
Is there some opensource solution that allows you to do that.I am working on a webapplication that i want to bundled as a desktop app.
I had seen some products that are web apps but are bundled as desktop apps.Is it possible to bundle JDK/tomcat/mysql and the webapp war file to ship as a desktop product.Could you please point to some res...
Hi, we would like to allow a url ref from a site running under Tomcat which accesses a another server running IIS (all internal/intranet).
Could someone explain how we might permit this so the user does not get a warning in the browser (IE) and access is permitted.
NB I don't know anything about Tomcat but need to pass the instructions f...
I'm converting a legacy app from ISO-8859-1 to UTF-8, and I've used a number of resources to determine what I need to set to get this to work. However, after several configuration, code, and environment changes, my Servlet (in Tomcat 5) doesn't seem to process submitted HTML form content as UTF-8.
Here's what I've set up for configurati...
I'm trying to profile a web application using Sysdeo Tomcat(1) on Eclipse using TPTP(2). Is it possible?
1 - Sysdeo Eclipse Tomcat Launcher plugin
2 - Eclipse Test & Performance Tools Platform Project
...
My webapp runs on dedicated Tomcat instances on various platforms and hardware--mainly x86 Linux and Windows, but also Solaris and I develop on OS X. I've been generally surprised by the variance in shut down times between OSes. And tomcat generally seems slower so shutdown than other non-trivial services (httpd, mysql, squid.) So, a s...
I am wondering how people manage maintaining JNDI resources across multiple instances of their Tomcat Application server. Lets take, for example, my database JNDI resource. It is declared within my /conf/context.xml file and references from my apps web.xml file.
That JNDI resource has to be independently defined on my development box, s...
I just downloaded a fresh copy of Tomcat6 to install on a development server. The server is running Win2k3 SP2 and Java6.
When I go to start Tomcat6 it reports the following:
D:\>d:\tomcat\bin\tomcat6.exe //TS/Tomcat6
[2009-07-14 15:26:38] [427 prunsrv.c] [error] The operation completed successfully.
[2009-07-14 15:26:38] [1336 pruns...
I have a simple ajax game between 2 users with java backend (tomcat, spring). I need some good way of notifying one user that his opponent made a turn. Now all communication is done through database and waiting for opponent to finish his turn looks like this:
while(!timeout && !opponentIsDone) {
//...get the game record from db and...
Hello,
I've recently started getting an error on our Tomcat servers : "Too Many Open Files" and the error goes on to reference the keystore file used for the server's SSL connector. Does anybody have any idea where this could be coming from ? Our server receives a considerable number of connections, but if I push the maximum acceptable...
Hi,
We need to change the session ID length gerenated by tomcat. By default it is 32 bytes, unfortunatly we need a session ID length of 20. Looking online I can see the StandardManager seems to manage this which extends PersistanceManager.
Does anyone know if the sessionIdLength can be modified in the tomcat config? If so what files?
...
Hi,
I'd like to setup RMI to pass through port 80 on a java servlet.. (To pass through the firewall)
I have a Tomcat server and i'm looking for the module that will catch the RMI http request and pass it to the RMI layer on the server machine.
I've read that RMI automatically handles this on it's side.
Is there a step-by-step guide to ...
I am working on a Java/Struts application that uses Tomcat 6.0.10. It's a typical web application that allows users to edit some forms, and streams PDFs. Way back, we added:
<security-constraint>
<web-resource-collection>
<web-resource-name>GeneralRequests</web-resource-name>
<url-pattern>/WR1/*</url-pattern>
</w...
I'm working in a legacy environment where an LDAP server is used only for authentication and contains no roles, and authorization is done against a database which contains the user-role mapping, but no passwords.
My plan is to implement a new Tomcat Realm by extending JNDIRealm, and overriding the role methods to call an encapsulated JD...
We have an automated build, managed by Hudson (1.312), that's got a few layers. On the slaves:
codewarrior cc/ld and other tools (some in-house), run by
a few recursive Cygwin GNU make 3.81 instances, run by
Hudson "execute windows batch command" (so cmd.exe running a batch file that hudson creates, as near as I can tell), run by
Huds...
I wrote some code to read a file in my Java Servlet class. (I'm using Netbeans on Windows along with Tomcat server). However, my servlet cannot find the file!
After much digging, I found that I had to place the file I wanted to read in Tomcat/bin folder. That's very surprising. How can I get the path to my Webapps/ folder? Let's assume ...
Hi.
I have an Axis (1.4) web service (running on Tomcat 6.0.20) that is working fine until I try to use any class from another project.
I have my web service project and another project containing business logic. I have added the business logic project as a project dependency/reference in my web service project.
package MyProject.serv...