tomcat

Requesting newer technologies

Hi there, I'm working on a project which takes use of several technologies: Java JDBC Transaction Isolation Level Java Service Wrapper Log4j Apache Tomcat Webserver BIRT Apache Version Numbering System Apache ANT Build System SOAP The software supports well known databases, such as MSSQL, MySQL, Oracle and DB2. The environment is ...

How to make a nice jsp GUI without using HTML tags?

I'm new to servlets and JSP and I'm trying to discover forms, and how to make my own web form. I know HTML but and I see examples for using HTML tags in the servlets, but isn't there a more higher level way to just say "Make a form here, make a table there" without getting my hands dirty with HTML tags? I want to build a war file and d...

Possible to specify access to isAttribute vs getAttribute in JSP EL?

Our Topic object has BOTH isChannel and getChannel public methods. The object graph is too complex to change this. Channel has an Integer type. We are migrating from one application server to Tomcat. When using this expression ${topic.channel.type}, in JSPs our current app server finds the getChannel method. However, Tomcat finds the ...

Another Tomcat/PermGen nightmare; Tomcat won't start..

hi, i've gotten PermGen out of space errors in the past and would just restart tomcat to fix it. but now Tomcat won't start at all. it's tomcat 5.5 Exception: java.lang.OutOfMemoryError: PermGen space Exception: null Exception in thread "http-8080-Processor15" java.lang.OutOfMemoryError: PermGen space Exception in thread "http-8080-Proc...

Require authentication through https with spring security?

I'm using tomcat 6, spring mvc 3.0.0 and spring security 3.0.0, and since the passwords I store in the database are sha1 hashed, I can't use digest authentication (section 9.2.1 of the documentation spells that out). For this reason, I need to make authentication happen through https. Due to potential processing overhead, I want to keep...

SQL Server 2008 slow down after 30,000 user Insert from a busy Java web application

One of our system finally launch in production and during the peak hour (about 200 concurrent user at any one time), traffic can ramp up to 30,000 user transaction within an hour. What we notice is a strange behavior that right after our SQL server restarted, the performance is very fast. Even with 200 concurrent user at the beginning,...

Serve static content in a web server and dynamic content in tomcat is still a good performance practice?

In old versions of tomcat (like 3.2) you can find the recomendation to serve static content in a apache web server and leave the dynamic content to the tomcat itself. At the new versions of the tomcat docs you cannot find any reference to this practice even at the mod_jk configuration tutorial. So I am wondering. Is still true that tom...

Tomcat not recovering from excess trafic

When my tomcat (6.0.20) maxThreads limit is reached, i get the expected error: Maximum number of threads (XXX) created for connector with address null and port 80 And then request starts hanging on queue and eventually timing out. so far, so good. The problem is that when the load goes down, the server does not recover and is forev...

Is there a means of executing code during the startup of Apache Tomcat 6.x to perform intialization routines, etc.?

I want to initialize a global instance of a class before my Tomcat server completes startup and begins to offer my servlets. If this service somehow fails initialization, I'd like the entire startup sequence to fail as well (or as close to this as possible; it would be pointless for the server to be running otherwise). What's the best ...

How to implement "remember me" for tomcat JndiRealm form authentication?

I have a webapp running on tomcat using a JndiRealm and form authentication. I would like to add a "remember me" checkbox to that form. What is the best way to do this? ...

Knowing class loading and unloading in tomcat

I am specifying the below command in catalina.bat > set JAVA_OPTS=-XX:+TraceClassLoading -XX:+TraceClassUnloading -XX:+PrintGCDetails The logs are printed in console but i am not able to redirect the logs in file. Using startup.bat > logs.txt Can anyone tell me how to save/trace the console logs?? ...

PsExec from ant does not terminate

Hi! I want to start and stop a tomcat server on a remote windows machine. I want to be able to do this from an ant script (so our build server can do this). I wasn't able to get this solved using sc.exe, because there is no way to pass username and password to the remote machine. Instead I'm using psexec to run commands on the remote ...

Using other HTTP connectors with JBoss 5.1

I'm trying to use a "better" HTTP connector than JBoss' default HTTP/1.1 connector. Following BalusC's recommendations, I changed the connector in server.xml to: <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="8080" address="${jboss.bind.address}" connectionTimeout="20000" ...

Migration Apache Tomcat 6 project with context.xml to GlassFish

Hi. I have application originally developed for Tomcat. There is context.xml file in META-INF using for creating datasource. As was mentioned here glassfish has support of context.xml file from Tomcat. I tried to migrate this app to Glassfishv3. But I still, my app (actually Hibernate) can't find jdbc datasource resource via jndi. There ...

Is Quercus (Java) faster than native PHP?

If so, why? (Or maybe the better question is 'when'?) I've found some scattered comments, such as in this post, which seem to indicate that Quercus may actually offer some performance advantages over native PHP. I am looking to use a Tomcat/Quercus configuration instead of an Apache/PHP one. (I need a Java servlet container and the alt...

Session Lost when closing the browser.

Hi, I setup my Session time out. <session-config> <session-timeout>11520</session-timeout> </session-config> Each time when I close the browser and open it again by calling the servlet, I see that new session is created. It can be seen from SessionCreated method executed in HttpSessionListener each time when browser reopened. I'm...

Wildcard Tomcat url-mapping or filter-mapping

I'm using Railo 3.1 , Tomcat 6 , Apache 2.2. I'd like to create a servlet-mapping that recognizes any path. e.g. <servlet-mapping> <servlet-name>CFMLServlet</servlet-name> <url-pattern>/default/*.cfm/*</url-patter> </servlet-mapping> I know that this url-pattern is incorrect per the specification. Since this I'm using a conte...

The requested resource not available in case of JSF

I am using JSF in one of my application and the scenario is as follows: I have "pages" folder under "WEB" in side "pages" I have "a.jsp" When I deploy this application with the local tomcat and access the application it works perfectly ok but when I deploy this application on my web hosting providers tomcat, it says "The requested reso...

Use existing java application with tomcat & cie.

I created a java application a year ago which is basically a multithread socket server for a website. I built this around a tutorial, which I expanded to do many things, including live multiplayer game with Flash client. The tutorial I used is the following (in french): http://defaut.developpez.com/tutoriel/java/serveur/multithread/ It...

Vmware Server 2.0.2 : Bind webAccess(bundled Tomcat) to only listen on 1IP

Hello, I recently installed VMware Server 2.0.2 on a Dedicated Server. My problem is that the Tomcat server bundled to serve the webAccess application is listening on all IPs on all interfaces. I would like to bind it to localhost only (So I could only access it while SSH tunneling) and prevent it from being accessed with the public IP....