Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 72506 invoked from network); 2 Dec 2004 18:53:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Dec 2004 18:53:34 -0000 Received: (qmail 60244 invoked by uid 500); 2 Dec 2004 18:53:06 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 60188 invoked by uid 500); 2 Dec 2004 18:53:05 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 60128 invoked by uid 99); 2 Dec 2004 18:53:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ncspsmtp2.ncs.com (HELO ncspsmtp2.ncs.com) (159.182.31.5) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 02 Dec 2004 10:53:03 -0800 Received: from iowacexchbrg.ic.ncs.com (Not Verified[10.25.4.190]) by ncspsmtp2.ncs.com with NetIQ MailMarshal (v5.5.6.7) id ; Thu, 02 Dec 2004 12:53:01 -0600 Received: by iowacexchbrg.ic.ncs.com with Internet Mail Service (5.5.2657.72) id ; Thu, 2 Dec 2004 12:53:00 -0600 Message-ID: <18968BD835AAB943BB27330F0A080FB20A2D7813@iowacexch2.ic.ncs.com> From: "Lane, Brad" To: Struts Users Mailing List Subject: RE: retrieveMessageResources: NullPointerException Date: Thu, 2 Dec 2004 12:52:58 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Message-resources needs to come AFTER action-mappings according to dtd. You should be getting errors from your container about it. -----Original Message----- From: Bernd Prager [mailto:Bernd.Prager@RSGSystems.com] Sent: Thursday, December 02, 2004 12:00 PM To: user@struts.apache.org Subject: retrieveMessageResources: NullPointerException After days of reading tons of docs and searching the mail archive I feel kind of stupid right now. I know this question came up a couple of times but I didn't find the answer. Here I am and hope you can help me: I try to use the bean:message tags and my index.jsp fails with: --- snip ------------------- Dec 2, 2004 11:47:42 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java :1219) at org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:226) at org.apache.jsp.index_jsp._jspx_meth_bean_message_0(org.apache.jsp.index_ jsp:135) at org.apache.jsp.index_jsp._jspx_meth_html_html_0(org.apache.jsp.index_jsp :102) at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:71) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:325) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Unknown Source) --- snip ------------------- I have following index.jsp: --- snip ------------------- <%@ page language="java" %> <%@ taglib uri="/tags/struts-bean" prefix="bean" %> <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-logic" prefix="logic" %> <bean:message bundle="text" key="index.title" /> test --- snip ------------------- My struts-config.xml is: --- snip ------------------- --- snip ------------------- I do have ApplicationResources.properties in webapps\app\WEB-INF\classes And struts-config.xml in webapps\app\WEB-INF, also in webapps\app\WEB-INF\lib: commons-beanutils.jar commons-digester.jar commons-logging.jar jakarta-oro.jar commons-collections.jar commons-fileupload.jar commons-validator.jar struts.jar All files are readable to all users. I think something is wrong with my struts-config file. I read that the message bundle might not be available yet when I invoke index.jsp directly. I that the cause of my problem? Thanks for any help. -- Bernd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org **************************************************************************** This email may contain confidential material. If you were not an intended recipient, Please notify the sender and delete all copies. We may monitor email to and from our network. **************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org