您的位置:程序门 -> java -> j2ee / ejb / jms



百度了一個星期都沒有解決的問題,難道就沒有一個人有真正的處理方法么?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


百度了一個星期都沒有解決的問題,難道就沒有一個人有真正的處理方法么?
发表于:2007-09-29 16:06:42 楼主
the   server   encountered   an   internal   error   ()   that   prevented   it   from   fulfilling   this   request.

exception  

org.apache.jasper.jasperexception:   the   absolute   uri:   http://struts.apache.org/tags-bean   cannot   be   resolved   in   either   web.xml   or   the   jar   files   deployed   with   this   application

這個是界面報錯.
 
  而tomcat   的報錯是     :     一啟動tomcat控制台就提示missing   applicatioin   web.xml     當運行程序的時候就提示:web-inf/web.xml   not   found    
我用的環境是:jdk1.50   tomcat5.5,大家有辦法解決么?我這里分是不多,如果是解決好了,我開兩個號給妳送上
发表于:2007-09-29 16:07:371楼 得分:0
自己頂一下!
发表于:2007-09-29 16:10:442楼 得分:0
在頂,頂到有人為止
发表于:2007-09-29 16:13:263楼 得分:0
頂一下
发表于:2007-09-29 16:15:454楼 得分:0
可能是你web.xml文档有问题
你帖出来给大家瞧瞧
发表于:2007-09-29 16:16:285楼 得分:0
頂一下
发表于:2007-09-29 16:19:416楼 得分:0
<?xml   version="1.0"   encoding="utf-8"?>
<web-app   xmlns="http://java.sun.com/xml/ns/j2ee"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   version="2.4"   xsi:schemalocation="http://java.sun.com/xml/ns/j2ee       http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
        <servlet-name> action </servlet-name>
        <servlet-class> org.apache.struts.action.actionservlet </servlet-class>
        <init-param>
            <param-name> config </param-name>
            <param-value> /web-inf/struts-config.xml </param-value>
        </init-param>
        <init-param>
            <param-name> debug </param-name>
            <param-value> 3 </param-value>
        </init-param>
        <init-param>
            <param-name> detail </param-name>
            <param-value> 3 </param-value>
        </init-param>
        <load-on-startup> 0 </load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name> action </servlet-name>
        <url-pattern> *.do </url-pattern>
    </servlet-mapping>
   

    <jsp-config>
        <taglib>

          <taglib-uri> > /tags/struts-bean </taglib-uri>
        <taglib-location> /web-inf/struts-bean.tld </taglib-location>
    </taglib>
         
    <taglib>
        <taglib-uri> > /tags/struts-html </taglib-uri>
        <taglib-location> /web-inf/struts-html.tld </taglib-location>
    </taglib>
    <taglib>
        <taglib-uri> > /tags/struts-logic </taglib-uri>
        <taglib-location> /web-inf/struts-logic.tld </taglib-location>
    </taglib>
      <taglib>
        <taglib-uri> > /tags/struts-tiles </taglib-uri>
        <taglib-location> /web-inf/struts-tiles.tld </taglib-location>
    </taglib>
      <taglib>
        <taglib-uri> > /tags/struts-nested </taglib-uri>
        <taglib-location> /web-inf/struts-nested.tld </taglib-location>
    </taglib>
    </jsp-config>
</web-app>

這是配置的   我總是運行application的時候都有問題,
发表于:2007-09-29 16:20:187楼 得分:0
帮你顶下...具体xml贴出来..大家就会帮你解决啦!~
发表于:2007-09-29 16:21:218楼 得分:0
我在baidu上也看了很多資料,但是都沒有結果,我有存在web-inf/web.xml,可是加載的時候提示沒有   missing   application   web.xml
发表于:2007-09-29 16:22:369楼 得分:0
web.xml就這么多的哦`
发表于:2007-09-29 16:25:3810楼 得分:0
怎么這樣的問題沒有人幫忙解決下呢?
发表于:2007-09-29 16:27:1511楼 得分:0
信息太少了

tomcat   的logs贴出来看下
发表于:2007-09-29 16:28:2412楼 得分:0
<web-app   xmlns="http://java.sun.com/xml/ns/j2ee"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   version="2.4"   xsi:schemalocation="http://java.sun.com/xml/ns/j2ee       http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"   >

你把这句话去啦..
发表于:2007-09-29 16:28:4913楼 得分:0
<!doctype   web-app
    public   "-//sun   microsystems,   inc.//dtd   web   application   2.3//en"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
换成这个.
发表于:2007-09-29 16:30:1114楼 得分:0
好的,我試下,呵呵
发表于:2007-09-29 16:32:5315楼 得分:0
<param-name   > detail   </param-name   >  
              <param-value   > 3   </param-value   >  
          </init-param   >  
param-value   的值不要和上面的相同/
发表于:2007-09-29 16:33:3816楼 得分:0
不能換,要是換了,那么   <servlet-mapping>
        <servlet-name> action </servlet-name>
        <url-pattern> *.do </url-pattern>
    </servlet-mapping> 有錯誤,提示需要標記
发表于:2007-09-29 16:35:4317楼 得分:0
感觉你这段就有问题

<jsp-config   >  
            <taglib   >  

            <taglib-uri   >   > /tags/struts-bean   </taglib-uri   >  
          <taglib-location   > /web-inf/struts-bean.tld   </taglib-location   >  
      </taglib   >  
               
      <taglib   >  
          <taglib-uri   >   > /tags/struts-html   </taglib-uri   >  
          <taglib-location   > /web-inf/struts-html.tld   </taglib-location   >  
      </taglib   >  
      <taglib   >  
          <taglib-uri   >   > /tags/struts-logic   </taglib-uri   >  
          <taglib-location   > /web-inf/struts-logic.tld   </taglib-location   >  
      </taglib   >  
        <taglib   >  
          <taglib-uri   >   > /tags/struts-tiles   </taglib-uri   >  
          <taglib-location   > /web-inf/struts-tiles.tld   </taglib-location   >  
      </taglib   >  
        <taglib   >  
          <taglib-uri   >   > /tags/struts-nested   </taglib-uri   >  
          <taglib-location   > /web-inf/struts-nested.tld   </taglib-location   >  
      </taglib   >  
      </jsp-config   >  


多了一个尖括号>

其实,你最好先用ie打开这个xml
看看它是否经得起验证
发表于:2007-09-29 16:36:4318楼 得分:0
哎.還是不行,就是說
the   absolute   uri:   http://struts.apache.org/tags-bean   cannot   be   resolved   in   either   web.xml   or   the   jar   files   deployed   with   this   application
 
而tomcat里面還是web-inf/web.xml   not   found
发表于:2007-09-29 16:42:2619楼 得分:0
到底在tomcat啟動的時候,控制台提示:missing   applicationi   web.xml   和web-inf/web.xml   not   found   是哪里問題,,真的就沒有人可以發現或是碰到過后解決的呢?
发表于:2007-09-29 16:48:1120楼 得分:0
排除法,   把web.xml里的东西一块块去掉
发表于:2007-09-29 17:17:5621楼 得分:0
我都沒有運行項目就提示missing   application   web.xml了,所以錯了,但就是不知道那里的問題
发表于:2007-09-29 17:56:5322楼 得分:0
<taglib-uri   >   > 多了"> "
发表于:2007-09-29 18:03:3023楼 得分:0
tomcat   配置文件有问题哦!!确定在该目录下有web.xml文件
发表于:2007-09-29 20:05:5124楼 得分:0
先把这段删了试试
  <taglib   >
            <taglib-uri   >   > /tags/struts-bean   </taglib-uri   >
          <taglib-location   > /web-inf/struts-bean.tld   </taglib-location   >
      </taglib   >

不行就工程删了再重新发布,
tomcat报错,就用以前没错的工程试试,否则就重装tomcat
发表于:2007-09-29 21:16:4325楼 得分:0
  <taglib     >  
              <taglib-uri     > http://struts.apache.org/tags-bean   </taglib-uri     >  
            <taglib-location     > /web-inf/struts-bean.tld     </taglib-location     >  
        </taglib     >

在web.xml中把这个给加进去,系统提示的是你没有定义struts标签库的实际地址
/web-inf/struts-bean.tld     这个是你的标签库文件的实际地址
http://struts.apache.org/tags-bean这个是uri就像下面那样你在jsp文件引入标签库,但没有配置该uri所对应的
标签库文件的实际地址
<%@   taglib   uri="http://struts.apache.org/tags-bean"   prefix="tb"%>
发表于:2007-09-29 22:52:3826楼 得分:0
楼上正解
发表于:2007-09-29 23:19:1727楼 得分:0
那也是没有用的,我也试过了,tomcat什么版本都装过了n次,不过还是要谢谢了,正常情况下,控制台是不会提示   missing   application   web.xml     只要这个有出现,那么就是不行的

这个是启动和运行一个空白的一个jsp的   strust摸板出现的错误

发表于:2007-09-30 08:57:4528楼 得分:0
楼主你现在要做的就是用一个完全正常的web应用,部署到你的tomcat中,看看是不是tomcat的问题,如果一个完成没有错误的web应用都报错那就是tomcat的问题,如果能正常启用并运行,那就是你程序的问题,重新找找原因,我觉得最起码要先排除掉tomcat的问题先
发表于:2007-09-30 12:49:0429楼 得分:0
路过,看看。
发表于:2007-10-17 15:18:3830楼 得分:0
我也出现这样的问题,
问题到底解决没有啊??????????????????????????
问题出在哪里啊??????????????????
发表于:2007-10-17 22:11:0931楼 得分:0
是不是因为用了struts标签.在我的记忆里,有一次就是因为用了strust标签导致tomcat无法启动.不知是不是这吗会事?
发表于:2007-10-25 22:29:3732楼 得分:0
我也遇到这个问题,但是不知道我们的情况一不一样

我的情况是:
web-inf文件夹不是直接放在web根目录下(多了一层目录)----------web根目录\webroot\web-inf       webroot目录就是多出来的
发表于:2007-10-25 23:46:2033楼 得分:0
目录结构可能有问题,发布的目录应该有一个web-inf文件夹,里面应该有web.xml文件
发表于:2007-10-26 09:37:5634楼 得分:0
楼上说的是
你到tomcat发布的系统你面看看web-inf   下面有web.xml么
如果没   删掉重新发布     有的话用ie跑下web.xml看看
发表于:2007-10-26 09:47:0235楼 得分:0
我把lz的web.xml   用ie跑了便     报错了
<?xml   version="1.0"   encoding="utf-8"   ?>   --正确的
就是第1句报错
<?xml   version="1.0"   encoding="utf-8"?   >   lz的是这个
注意问号和空格。。。。改下   改成我写的那样应该就没问题了~!


快速检索

最新资讯
热门点击