Login exception after TeamCity 4.0 upgrade: NoClassDefFoundError: jetbrains/buildServer/web/util/CommentTransformer

Hi,

I'm getting the exception below on first login to TeamCity 4.0.


Here is the procedure I followed:
- Shut down Tomcat (on Linux), via shutdown.sh.
- Backed up MySQL DB.
- Moved the webapps/teamcity directory out of the way.
- Copied over ~/TeamCity-4.0.war from home directory as teamcity.war.
- Started up Tomcat (to unpack the war): /site/apps/tomcat/bin/startup.sh
- Shut down Tomcat again.
- Copied mysql-connector-java-5.1.5-bin.jar into teamcity/WEB-INF/lib
- Started Tomcat.
- Tried to login, to http://myTestTeamCityServer:8080/teamcity


I had successfully test-upgraded the same instance from TeamCity 3.1.1 to TeamCity 3.1.2 a couple of days ago, following essentially the same procedure.


Login method is LDAP.


Poking around in the .wars that I downloaded from here:  http://www.jetbrains.com/teamcity/download/#j2ee, and here: http://www.jetbrains.com/teamcity/download/#linux ...I compared the "jar" listing in these with my TeamCity-3.1.2.war, and unlike 3.1.2, the 4.0 packages don't include a WEB-INF/classes directory.  Is this by design?  That's where the CommentTransformer appears to live, e.g. from a "jar tvf TeamCity-3.1.2.war"...


1129 Thu Aug 07 16:50:08 CDT 2008 WEB-INF/classes/jetbrains/buildServer/web/util/CommentTransformer$TransformPattern.class
3184 Thu Aug 07 16:50:08 CDT 2008 WEB-INF/classes/jetbrains/buildServer/web/util/CommentTransformer.class





    Unexpected Error

    Error message: javax.servlet.jsp.JspException: java.lang.NoClassDefFoundError: jetbrains/buildServer/web/util/CommentTransformer

          Show stacktrace
    javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: java.lang.NoClassDefFoundError: jetbrains/buildServer/web/util/CommentTransformer
    at org.apache.jsp.login_jsp$Helper.invoke(login_jsp.java:723)
    at org.apache.jsp.tag.web.externalPage_tag.doTag(externalPage_tag.java:137)

    [See attached for complete trace]


    Attachment(s):
    NoClassDefFound_CommentTransformer.txt
    2 comments
    Comment actions Permalink

    Try to stop server and clean Tomcat/work directory. Then start server again. Probably Tomcat did not recompile some JSP files.

    --
    Pavel Sher

    0
    Comment actions Permalink

    That did the trick, thanks Pavel!  I suggest adding that step to the upgrade instructions.

    Have a Merry Christmas,
    -chris

    0

    Please sign in to leave a comment.