在编译jsp WebLogic 12c时抛出错误

时间:2016-04-20 05:37:13

标签: java jsp java-8 weblogic12c

weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jspnew/loans/loanRepayment.jsp
loanRepayment.jsp:383:143: This attribute is not recognized.
                                                                branchBtnDisabled=""  branchDescName="" branchDescValue="<%=branchDesc%>" branchDescCssClass = "FieldTextRO" branchTabIndex="<%=""+tabIndex++%>" branchDescReadonly="true" branchDescTabIndex="-1"
                                                                                                                                                                                                      ^------^
loanRepayment.jsp:386:122: This attribute is not recognized.
                                                                moduleDescName=""  moduleDescValue="<%=moduleDesc%>" moduleDescCssClass = "FieldTextRO" moduleTabIndex="<%=""+tabIndex++%>"   moduleDescReadonly="true" moduleDescTabIndex="-1"
                                                                                                                                                                                 ^------^
loanRepayment.jsp:389:121: This attribute is not recognized.
                                                                schemeDescName="" schemeDescValue="<%=schemeDesc%>" schemeDescCssClass = "FieldTextRO" schemeTabIndex="<%=""+tabIndex++%>" schemeDescReadonly="true" schemeDescTabIndex="-1"
                                                                                                                                                                                ^------^
loanRepayment.jsp:392:133: This attribute is not recognized.
                                                                acctNoDescName="" acctNoDescValue="<%=custAcct.getNameLong()%>" acctNoDescCssClass = "FieldTextRO" acctNoTabIndex="<%=""+tabIndex++%>" acctNoDescReadonly="true" acctNoDescTabIndex="-1" noInputRequired="true"/>
                                                                                                                                                                                            ^------^

    at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:247)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage0(JavelinxJSPStub.java:183)
    at weblogic.servlet.jsp.JavelinxJSPStub.access$000(JavelinxJSPStub.java:50)
    at weblogic.servlet.jsp.JavelinxJSPStub$1.run(JavelinxJSPStub.java:111)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:108)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:267)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:218)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:414)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:304)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:489)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:376)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at dm.web.utils.SecurityCheck.doFilter(SecurityCheck.java:126)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:32)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3654)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3620)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
    at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)
    at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2423)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2280)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2258)
    at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1626)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1586)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270)
    at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
    at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
    at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
    at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
    at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)

1 个答案:

答案 0 :(得分:0)

我找到了解决这个问题的方法。在weblogic中有一个旧的jsp代码的设置。后向jsp兼容性必须从weblogic控制台中选择。 这是菜单路径 - Home&gt; base_domain - &gt;在“Web应用程序”选项卡下 - &gt; JSP编译器向后兼容它可以解决你的问题。