weblogic下出现的weblogic.servlet.jsp.JspException错误原因

style="WIDTH: 345px; HEIGHT: 285px" align="left" marginwidth="0" marginheight="0" src="http://www.ymfund.com/web/ad.html" frameborder="0" width="468" scrolling="no" height="60">

         因为做的几个项目选择的WEB服务器都是BEA公司的webogic,从开发到生产用起来都还蛮方便的,总之对它的评价就是对机器要求不高,生产上配一台PC server就能跑得十分流畅了,是中小企业的首选.平时自己做开发也是在机器上搭一个weblgic服务器,用来调试非常方便。特别是相对比IBM的websphere,websphere对机器配置要求高,部署起来也是相当麻烦,记得以前在websphere上配置一个连接池,也花了好几天的时候才弄好。

         但是今天在weblogic上部署了一个已经调试好了的应用程序却出现问题了,真让人纳闷啊,平时碰到的都是在weblogic上调试好的程序在websphere上跑不起来,原因大多都是websphere对程序代码要求比较高,都必须符合这个那个规范了。

         错误提示是 weblogic.servlet.jsp.JspException page directive contentType at /head.jsp previously defined at /index.jsp:1,分析了一下,很明显问题出在 head.jsp这个页面,后来仔细想了想,在index.jsp页面中是用 <%@ include file="/head.jsp" %> 这种方式把 head.jsp引进来的。这里就涉及至 静态include和动态include的区别了。

         动态INCLUDE用jsp:include动作实现:<jsp:include page="included.jsp" flush="true" />它总是会检查所含文件中的变化,适合用于包含动态页面,并且可以带参数。静态INCLUDE用include伪码实现,不会检查所含文件的变化,适用于包含静态页面<%@ include file="included.htm" %>

        很明显静态include是把head.jsp的内容直接添加到index.jsp里面,这样就会出现一个问题,就是<%@ page contentType="text/html;charset=GBK" %> 这段代码在head.jsp和index.jsp里面都有,这样就会造成重复了,所以报错了。呵呵,但是程序在webspher上能够成功的跑起来,看来这里websphere里的问题了。

发布了82 篇原创文章 · 获赞 4 · 访问量 26万+
展开阅读全文

java.lang.NoClassDefFoundError问题

10-27

java.lang.NoClassDefFoundError at jsp_servlet._mis._selfcard._productmanager._updatezxactivity._search.__define._jspService(__define.java:442) 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.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.filter.LogFilter.doFilter(LogFilter.java:51) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at com.sinosoft.common.EncodingFilter.doFilter(EncodingFilter.java:39) 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) 求解,生产上有时重启下服务,清理下缓存,又好使了,但一会儿又不行了 ,这个是因为编译文件的丢失吗? 问答

weblogic 页面载入JAVAbean报错

03-09

错误如下:请指点一下,希望能解释一下,第一次用WEBLOGIC weblogic.servlet.jsp.JspException: (line 7): class 'com.coscon.netsale.biz.user.LoginBean' could not be loaded at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:711) at weblogic.servlet.jsp.JspLexer.processBeanTag(JspLexer.java:1379) at weblogic.servlet.jsp.JspLexer.mXML_OPEN_USEBEAN(JspLexer.java:3634) at weblogic.servlet.jsp.JspLexer.mXML_THING(JspLexer.java:1931) at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1824) at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1752) at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:962) at weblogic.servlet.jsp.JspParser.doit(JspParser.java:105) at weblogic.servlet.jsp.JspParser.parse(JspParser.java:228) at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:120) at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258) at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:364) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:220) at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:172) at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:504) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:349) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:431) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6310) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) 问答

weblogic部署异常,之前正常的

03-24

<2014-3-24 上午09时17分04秒 CST> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "education": Io 异常: The Network Adapter could not establish the connection> <2014-3-24 上午09时17分05秒 CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'education' due to error weblogic.application.ModuleException: . weblogic.application.ModuleException: at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:289) at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93) at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26) at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56) Truncated. see log file for complete stacktrace weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Io 异常: The Network Adapter could not establish the connection at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:236) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1073) at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:995) at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:214) at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1042) Truncated. see log file for complete stacktrace > 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览