struts.jar会用到很多commons-xxx.jar,所以会报NoClassDefFoundError."不装载我的应用了."什么意思?

解决方案 »

  1.   

    struts.jar会用到很多commons-xxx.jar,所以会报NoClassDefFoundError."不装载我的应用了."什么意思?
      

  2.   

    不装载我的应用就是在日志里没有我的web项目装载的信息
    看看日志.没有我项目名称而struts-example都有另外.struts1.1不能只使用struts.jar了????????还得加很多别的jar????
    2004-10-14 11:40:01 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-10-14 11:40:10 StandardContext[/struts-example]action: []: Verifying ModuleConfig for this application module
    2004-10-14 11:40:10 StandardContext[/struts-example]action: []: Verification of ModuleConfig has been completed
    2004-10-14 11:40:14 StandardContext[/jsp-examples]ContextListener: contextInitialized()
    2004-10-14 11:40:14 StandardContext[/jsp-examples]SessionListener: contextInitialized()
    2004-10-14 11:40:14 StandardContext[/servlets-examples]ContextListener: contextInitialized()
    2004-10-14 11:40:14 StandardContext[/servlets-examples]SessionListener: contextInitialized()
      

  3.   

    我想因为struts example都能正常运行.
    而我的项目不行.应该就是配置问题.帮我看看web.xml和struts-config有什么问题?
    BTW:struts-config的action配置中attribute属性是作用域的含义(struts-example就用的这个属性),而网上有的项目又用的formbean的名字.也就是action的name属性.   区别在哪?
      

  4.   

    struts-config的action配置中attribute属性是作用域的含义(struts-example就用的这个属性),而网上有的项目又用的formbean的名字.也就是action的name属性.   区别在哪?
    还有.为什么tomcat不输出System.out的日志?
    我已经把控制台的log level设置为debug了why
      

  5.   

    你的web.xml有配制问题,,,,楼主应把<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>404</error-code>
    <location>/error.jsp</location>
    </error-page>
    放在<taglib...>前,,