当前位置: 代码迷 >> Weblogic >> weblogic 怎么调试JSP
  详细解决方案

weblogic 怎么调试JSP

热度:10593   发布时间:2013-02-26 00:00:00.0
weblogic 如何调试JSP?
大家好!

我最近遇到一个weblogic 10.3 上的应用,JSP 编译错误 的问题!我们的web 应用基于 structs. 在winodws,
solaris, linux, hp 以及 aix上部署!现在只有AIX上有问题!

我们这次是做了weblogic 10.3 的升级,同时JDK也升级到6.0(weblogic 10.3要求的)!


报出的错:

1. 我检查了我的WEB-INF 目录,发现提示缺少的文件都在!
2. 我试过"tags/mdreport.tld" 或者直接换成http://struts.apache.org/tags-bean/
struts-bean.tld 之类的,也是报同样的错!
3. 这个问题我已经搞了快一周了,还是没有结果!本人之前没有接触过 structs, 请问用什么方法可以调试我的jSP?或者应该从哪里着手解
决问题啊?谢谢!

logon.jsp:2:5: Invalid tag library.
<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>
  ^----^
logon.jsp:2:5: No tag library could be found with this URI. Possible
causes could be that the URI is incorrect, or that there were errors
during parsing of the .tld file.
<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>
  ^----^
logon.jsp:2:5: Invalid tag library.
<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>
  ^----^
logon.jsp:2:5: No tag library could be found with this URI. Possible
causes could be that the URI is incorrect, or that there were errors
during parsing of the .tld file.
<%@ taglib uri="/WEB-INF/mdreport.tld" prefix="md" %>
  ^----^
logon.jsp:3:5: Invalid tag library.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  ^----^
logon.jsp:3:5: No tag library could be found with this URI. Possible
causes could be that the URI is incorrect, or that there were errors
during parsing of the .tld file.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  ^----^
logon.jsp:3:5: Invalid tag library.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  ^----^
logon.jsp:3:5: No tag library could be found with this URI. Possible
causes could be that the URI is incorrect, or that there were errors
during parsing of the .tld file.
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  ^----^
。。。

------解决方案--------------------------------------------------------
你试试这个办法,如果不灵再试别的办法:
在你的WEB应用的WEB-INF目录,看看有没有weblogic.xml文件,如果没有就创建一个。内容如下:

<?xml version="1.0" encoding="ISO-8859-1"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

WebLogic专业技术社区: http://www.weblogicfans.net

------解决方案--------------------------------------------------------
这个文件支持weblogic9.2吗?我也出现同样的问题了. tomcat下跑没有报错, 一发布的weblogic就有这样的错..



"Timer-0" daemon prio=5 tid=0x2d253978 nid=0x154c in Object.wait() [0x2c85f000..0x2c85fc30]
at java.lang.Object.wait(Native Method)
- waiting on <0x067733d8> (a java.util.TaskQueue)
at java.lang.Object.wait(Object.java:474)
at java.util.TimerThread.mainLoop(Timer.java:483)
- locked <0x067733d8> (a java.util.TaskQueue)
at java.util.TimerThread.run(Timer.java:462)

"Low Memory Detector" daemon prio=5 tid=0x008cc840 nid=0x1450 runnable [0x00000000..0x00000000]

"CompilerThread0" daemon prio=10 tid=0x2c2c1b28 nid=0xebc waiting on condition [0x00000000..0x2c64f694]

"Signal Dispatcher" daemon prio=10 tid=0x008cca00 nid=0xf70 runnable [0x00000000..0x00000000]

"JDWP Command Reader" daemon prio=5 tid=0x008cbb10 nid=0x1588 runnable [0x00000000..0x00000000]

"JDWP Event Helper Thread" daemon prio=5 tid=0x008ca9b0 nid=0x1460 runnable [0x00000000..0x00000000]
  相关解决方案