Exception when creating a build configuration for a new project

Hi All

I've just installed TeamCity 4.5.2 on my new machine (in Tomcat). The install went fine and after a bit of searching I figured out how to set it up with SQL server. However when I create a new project and try to create a build configuration for this project I get an error (see bottom of the message). Would anybody know how to fix this? Just for the record there are no VCS roots yet but I think I should be able to define a build configuration without one right? I mean currently I can't even get to the screen to define a build configuration. The error occurs when I click on the link to create a build configuration (in the project setup screen).

Thanks

Patrick

------------------------ ERROR MESSAGE ------------------------------

Error message: Unable to compile class for JSP: An error occurred at line: 16 in the jsp file: /WEB-INF/tags/admin/buildTypeBuildNumbers.tag The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String) 13: It may also contain a reference to VCS changeset number, like {build.vcs.number.1}. 14: Note: maximum length of a build number after all substitutions is 256 characters. 15: 16: 17:
18: Your build number pattern contains {build.vcs.number}, however more than one VCS root is attached to this build configuration. 19: In this case instead of {build.vcs.number} you should use the following patterns: An error occurred at line: 27 in the jsp file: /WEB-INF/tags/admin/buildTypeBuildNumbers.tag The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String) 24: 25:
26: 27: 28:
29: Your build number pattern contains {build.vcs.number}, but no VCS roots are attached to this build configuration. 30: Build number cannot be calculated in this case. Stacktrace:
Trace: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 16 in the jsp file: /WEB-INF/tags/admin/buildTypeBuildNumbers.tag
The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String)
13:       It may also contain a reference to VCS changeset number, like {build.vcs.number.1}.</span>
14:     <span >Note: maximum length of a build number after all substitutions is <strong>256</strong> characters.</span>
15:     <c:choose>
16:       <c:when test="${fn:contains(buildForm.buildNumberFormat, '{build.vcs.number}') and fn:length(buildForm.vcsRootsBean.vcsRoots) > 1}">
17:         <div >
18:           Your build number pattern contains <strong>{build.vcs.number}</strong>, however more than one VCS root is attached to this build configuration.
19:           In this case instead of <strong>{build.vcs.number}</strong> you should use the following patterns:


An error occurred at line: 27 in the jsp file: /WEB-INF/tags/admin/buildTypeBuildNumbers.tag
The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String)
24:           </ul>
25:         </div>
26:       </c:when>
27:       <c:when test="${fn:contains(buildForm.buildNumberFormat, '{build.vcs.number}') and fn:length(buildForm.vcsRootsBean.vcsRoots) == 0}">
28:         <div >
29:           Your build number pattern contains <strong>{build.vcs.number}</strong>, but no VCS roots are attached to this build configuration.
30:           Build number cannot be calculated in this case.


Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:215)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:624)
at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:52)
at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:684)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:702)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:195)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:215)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:624)
at org.apache.jasper.compiler.TagFileProcessor.access$000(TagFileProcessor.java:52)
at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:684)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2542)
at org.apache.jasper.compiler.Node$JspBody.accept(Node.java:1994)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:688)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2537)
at org.apache.jasper.compiler.Node$NamedAttribute.accept(Node.java:1905)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:688)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:702)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:195)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:240)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:252)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1173)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:901)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:453)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at jetbrains.spring.web.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:8)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:0)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
at java.lang.Thread.run(Unknown Source)



6 comments
Comment actions Permalink

Hello Patrick,

  What version of Tomcat do you use? Try using the latest version  of Tomcat in 6.0.x branch.

  Kind regards,
  KIR

0
Comment actions Permalink

Hi Kirill

I've got Tomcat 6.0.2. I think that's the latest version, right? Is there another version that I should try?

Thanks

Patrick

0
Comment actions Permalink

Same problem here.

TeamCity-4.5.3.war on tomcat-6.0.20

Trace: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 16 in the jsp file: /WEB-INF/tags/admin/buildTypeBuildNumbers.tag
The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String)
13:       It may also contain a reference to VCS changeset number, like {build.vcs.number.1}.</span>
14:     <span >Note: maximum length of a build number after all substitutions is <strong>256</strong> characters.</span>
15:     <c:choose>
16:       <c:when test="${fn:contains(buildForm.buildNumberFormat, '{build.vcs.number}') and fn:length(buildForm.vcsRootsBean.vcsRoots) > 1}">
17:         <div >
18:           Your build number pattern contains <strong>{build.vcs.number}</strong>, however more than one VCS root is attached to this build configuration.
19:           In this case instead of <strong>{build.vcs.number}</strong> you should use the following patterns:


An error occurred at line: 27 in the jsp file: /WEB-INF/tags/admin/buildTypeBuildNumbers.tag
The method setTest(boolean) in the type WhenTag is not applicable for the arguments (String)
24:           </ul>
25:         </div>
26:       </c:when>
27:       <c:when test="${fn:contains(buildForm.buildNumberFormat, '{build.vcs.number}') and fn:length(buildForm.vcsRootsBean.vcsRoots) == 0}">
28:         <div >
29:           Your build number pattern contains <strong>{build.vcs.number}</strong>, but no VCS roots are attached to this build configuration.
30:           Build number cannot be calculated in this case.

0
Comment actions Permalink

Hi

i get attached buildTypeBuildNumbers.tag but this does not help, some error occured, and i dont see any changes in it

0
Comment actions Permalink

Hi,

   Please try to clean tomcat/work/* directory and try again.

   Update: wrong file was attached to the issue, correct one was just added.

   HTH,
   KIR

Message was edited by: Kirill Maximov

0

Please sign in to leave a comment.