TweetI have been working on an issue where HttpServletRequest.getHostName() always return the IP address, instead of the host name. The Tomcat 5.5 and Tomcat 6 documentation states enableLookups is set to true by default. Link to this post!
READ MORE »Posts tagged Tomcat
JVM and Tomcat 6 Tuning new Grails application with legacy Java webservice
TweetRecently I ran into issues where a web application running on Tomcat 6.0 was crashing due to load spikes in requests. What I noticed in the diagrams below, was there was no issue with CPU or Memory, but rather issues with GC cycles and high Thread count/spike causing the Tomcat instance to become unresponsive and [...]
READ MORE »Cannot create JDBC driver of class ” for connect URL ‘null’
TweetSo I keep getting this error complaining about org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class ” for connect URL ‘null’ in a Hibernate DAO JUnit 4 test case I have and this is the full trace: Link to this post!
READ MORE »Utah Code Camp 2009
TweetI was a keynote speaker at the 2009 Utah Code Camp (http://utcodecamp.com/speakers/) I wanted to post my source code, and Slide Deck below. Source Code (http://baselogic.com/code/ucc2009/webapp.zip) Slide Deck PPT (http://baselogic.com/code/ucc2009/ucc.ppt) I will be converting this slide deck into a blog as soon as I have time to do so. Stay tuned…. Link to this post!
READ MORE »Spring Security issue: Duplicate detected.
TweetSo I ran into an issue today that has been detailed at http://forum.springframework.org/showthread.php?p=193052 in the Spring forums that at first glance, looked identical to my issue. But this was in fact not my issue. First off, when I was using acegi, I declared an applicationContext-test.xml that myTestNG would instanciate. I then would import my other [...]
READ MORE »Keeping Tomcat binaries locally for integration testing on Linux
TweetI ran into an issue of server timeouts with embedded Tomcat in my Maven build once I moved to my Linux Build Server. I defined the cargo plugin as that is starting my embedded Tomcat during the build: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0-alpha-4</version> <configuration> <wait>${cargo.wait}</wait> <container> <containerId>${cargo.container}</containerId> <output>${project.build.directory}/${cargo.container}.log</output> <log> ${project.build.directory}/${cargo.container}-cargo.log </log> <zipUrlInstaller> <url>${cargo.container.url}</url> <installDir>${installDir}</installDir> </zipUrlInstaller> </container> [...]
READ MORE »Deploying webapp to multiple containers
TweetIn my efforts to integrate Jetty, tomcat and selenium into my Maven build for continuous integration tests, I have run into some strange issues. It seems that if I run my webapp-2.2.war in my standalone Tomcat 5.5 installation, or in my Maven integrated Jetty, I can refer to my application at my root context of [...]
READ MORE »Testing CXF within embeded Tomcat using Spring
TweetI converted from XFire to CXF which is really XFire 2 I guess. Now I am using Maven, DBUnit, TestNG, H2 and embedded Tomcat for continuous integration testing. Now I wanted to be able to test my webservice contracts as well, and Spring has helped me to accomplish that. In my webservices war, I first [...]
READ MORE »
