Forum Stats

  • 3,853,839 Users
  • 2,264,285 Discussions
  • 7,905,471 Comments

Discussions

How to debug Portal application?

658254
658254 Member Posts: 3
edited Oct 7, 2008 5:39PM in WebLogic Portal
Hi,

I am developing a weblogic console extension application with web logic portal framework, I got some error, but no idea how to debug,

I can see some error on buildApplication.jsp file, but can't find __buildapplication.java file which is compiled from buildApplication.jsp,
so I can't know the error is in which line in buildApplication.jsp file. and I dont' even know which tag is tag1 tag2 tag3 in that jsp file.





at jsp_servlet._ext_jsp.__buildapplication._jsp__tag3(__buildapplication.java:292)
at jsp_servlet._ext_jsp.__buildapplication._jsp__tag2(__buildapplication.java:260)
at jsp_servlet._ext_jsp.__buildapplication._jsp__tag1(__buildapplication.java:211)
at jsp_servlet._ext_jsp.__buildapplication._jspService(__buildapplication.java:138)





Code of buildApplication.jsp:

<fmt:setBundle basename="detwds" var="current_bundle" scope="page"/>
<beehive-template:template templatePage="/layouts/configBaseLayoutNoTransact.jsp">
<beehive-template:section name="configAreaIntroduction">
<fmt:message key="buildApplication.jsp.page.introduction" bundle="detwds"/>
</beehive-template:section>

<beehive-template:section name="form">
<html:xhtml/>
<wl-extension:template name="/templates/jmxform.xml">
<wl-extension:form name="ExtensionForm" type="com.det.consoleext.form.ExtensionForm" action="/BuildApplication" bundle="detwds">


<wl-extension:select
property="contents" labelId="buildApplication.jsp.page.repositoryList.label" inlineHelpId="buildApplication.jsp.page.repositoryList.inlinehelp"
singlechange="false">
<wl-extension:optionsCollection property="repositoryName"
label="label"
value="value"/>
</wl-extension:select>

</wl-extension:form>
</wl-extension:template>
</beehive-template:section>
</beehive-template:template>


Error message:

2755> <BEA-423405> <An exception [java.lang.String] was thrown while rendering the content at [ext_jsp/buildApplication.jsp].
java.lang.ClassCastException: java.lang.String
at jsp_servlet._ext_jsp.__buildapplication._jsp__tag3(__buildapplication.java:292)
at jsp_servlet._ext_jsp.__buildapplication._jsp__tag2(__buildapplication.java:260)
at jsp_servlet._ext_jsp.__buildapplication._jsp__tag1(__buildapplication.java:211)
at jsp_servlet._ext_jsp.__buildapplication._jspService(__buildapplication.java:138)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.java:119)
at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:551)
at com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(NetuiContent.java:363)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:483)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
at jsp_servlet._framework._skeletons._default.__gridlayout._jspService(__gridlayout.java:285)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
at jsp_servlet._framework._skeletons._default.__gridlayout._jspService(__gridlayout.java:285)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
at jsp_servlet._framework._skeletons._default.__flowlayout._jspService(__flowlayout.java:281)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:482)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:62)
at jsp_servlet._framework._skeletons._default.__gridlayout._jspService(__gridlayout.java:285)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:528)
at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:123)
at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:188)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:142)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:377)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:253)
at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:206)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:191)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:124)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

Answers

  • 655221
    655221 Member Posts: 116
    Hello,
    Debugging a JSP using a stack trace is made possible by using the keepgenerated element of the jsp-descriptor element in your web app descriptor in WEB-INF/weblogic.xml. The working-dir and verbose elements are also of interest.

    You can edit weblogic.xml or you can use the Oracle WebLogic Server console to configure your web app. In the console you would go to "Deployments", find your web app, select the "Configuration" tab, Lock & Edit, and do your thing. The settings you are interested in are "Debug Enabled", "JSP Keep Generated", and "JSP Verbose". I'm not sure which weblogic.xml element the "Debug Enabled" corresponds to, but it might be something like the debug-enabled element of the session-descriptor element.

    I can never remember where JSP generated servlet source code files end up if I have not specified a working dir. They end up buried DEEPLY. I just search the file system in my workspace for the generated files. For example, I just found the generated source for my helloOne.jsp in:

    C:\bea_wlp102\user_projects\workspaces\frmwrk\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\frmwrk_domain\work\MyWAR\jsp_servlet\_portlets\__helloone.java
  • 655221
    655221 Member Posts: 116
    Forgot to include this link to the docs for the jsp-descriptor element of weblogic.xml:

    http://edocs.bea.com/wls/docs103/webapp/weblogic_xml.html#wp1038491
This discussion has been closed.