Solaris + Tomcat Installation Problem

I've been following the instructions on http://confluence.jetbrains.net/display/TCD5/Installing+and+Configuring+the+TeamCity+Server and setting up the Generic J2EE deploy to Tomcat 6 running on Solaris.

I've modified my catalina.sh to include the following line

JAVA_OPTS="-Dlog4j.configuration=file:../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Dteamcity.data.path=/opt/teamcity"

I included useBodyEncodingForURI="true"  in the connector tag of server.xml

The TeamCity application appears to be correctly installed according to the Tomcat Service Manager and tomcat is the owner of the data path directory as follows:

total 8
drwsrwsrwx   4 tomcat   tomcat       512 Jul 22 20:23 ./
drwxr-xr-x  15 root     sys          512 Jul 22 20:22 ../
drwxr-sr-x   2 tomcat   tomcat       512 Jul 22 20:23 config/
drwxr-sr-x   5 tomcat   tomcat       512 Jul 22 20:23 system/

However, when I try accessing the application I get the following error (full stack trace attached).

Error creating bean with name 'jspPrecompiler' defined in ServletContext resource [/WEB-INF/buildServerSpringWeb.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jspPrecompiler' defined in ServletContext resource [/WEB-INF/buildServerSpringWeb.xml]: Initialization of bean failed; nested exception is java.lang.NullPointerException

Any ideas anyone?

Thanks.



Attachment(s):
teamcitycrash.txt.zip
2 comments

I suppose you are trying to use war file without unpacking it. This will not work with TeamCity. Please unpack the war and point Tomcat to the unpacked directory. Or use TeamCity .tar.gz distribution as it can be simpler to setup.

0

Yep, exploding the war file and deploying it that way fixed it, I now have BuildServer as well as a BuildAgent working on Solaris using Tomcat.

Also, I chown'ed - R tomcat:tomcat tomcat as well as the data folder.

0

Please sign in to leave a comment.