当前位置: 代码迷 >> Java Web开发 >> [求助]关于struts资源文件读取不了的问题
  详细解决方案

[求助]关于struts资源文件读取不了的问题

热度:191   发布时间:2006-05-30 22:46:00.0
[求助]关于struts资源文件读取不了的问题

这个struts的模型很简单,看着孙卫琴的源码写的,可是部属到weblobic8下的时候,跳出异常,说找不到"hello.title"
我把原码也附上,兄弟姐妹们,帮个忙,把我的错误找出来,谢谢了!!!

Error page hellojsp


An error occurred in the bean. Error Message is: Cannot find bean hello.title in any scope
Stack Trace is :

javax.servlet.jsp.JspException: Cannot find bean hello.title in any scope
	at org.apache.struts.taglib.TagUtils.lookup(Ljavax/servlet/jsp/PageContext;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;(TagUtils.java:992)
	at org.apache.struts.taglib.bean.MessageTag.doStartTag()I(MessageTag.java:212)
	at jsp_servlet.__hellojsp._jspService(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V(__hellojsp.java:169)
	at weblogic.servlet.jsp.JspBase.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(JspBase.java:33)
	at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;(ServletStubImpl.java:1072)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:526)
	at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:6981)
	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
	at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
	at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:3892)
	at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic/kernel/ExecuteThread;)V(ServletRequestImpl.java:2766)
	at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)
	at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
	at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)

搜索更多相关主题的帖子: struts  资源  文件  

----------------解决方案--------------------------------------------------------
hello.title是资源文件里面的一个key
----------------解决方案--------------------------------------------------------
  相关解决方案