2 Replies Last post: Oct 29, 2013 9:13 PM by David Pond  
David Pond Newbie 2 posts since
Oct 28, 2013
Currently Being Moderated

Oct 28, 2013 9:38 PM

Bean build not found within scope

Hi,

 

I've been trying to create a custom tab for the build results. I want to access some of the build's details and parameters. After looking in buildDetails.jsp from my local TeamCity installation I tried the following in my tab's JSP page.

 

<jsp:useBean id="build" type="jetbrains.buildServer.serverSide.SBuild" scope="request" />

 

But at runtime I get the following exception:

ERROR -   jetbrains.buildServer.SERVER - Error java.lang.InstantiationException: bean build not found within scope while processing request: GET '/buildLog/viewLog.jsp?buildTypeId=Abc_Abc&buildId=1&tab=redGateTeamCityBuildUtilitiesTab', from client 127.0.0.1:64038, authenticated as david, original page URL: /viewLog.html?buildTypeId=Abc_Abc&buildId=1&tab=redGateTeamCityBuildUtilitiesTab
java.lang.InstantiationException: bean build not found within scope

 

How can I best get access to information about the build from my JSP?

 

I would like to access the name of the build agent and the checkout directory.

 

Any help much appreciated!

 

Thanks,

David

Yegor Yarko JetBrains 1,816 posts since
May 5, 2004
Currently Being Moderated
Oct 29, 2013 8:47 PM in response to: David Pond
Re: Bean build not found within scope

Hi David,

 

Try adding the bean inside fillModel method of your extension.

Also, if you extend BuildTab, "build" should be present in JSP model.

More Like This

  • Retrieving data ...