Re: Missing message for key index.title - general comments

2001-12-04 Thread Keith Bacon

Frank,
I agree very much! Error messages that have a unique
cause  point you towards the solution are much better
than things like
'can't find x in scope null'.
It takes time to add this stuff to code. An
alternative is for us users to set up a faq list or a
common errors  suggested solutions database. I'm not
volunteering, I'm only an occasional struts user -
hoping to use it more though.
Keith. 

--- Frank Lawlor [EMAIL PROTECTED] wrote:
 I noticed lots of people having struts problems with
 this
 symptom.
 
 From what I have seen of the struts startup, many
 startup
 problems will cause this to be the first symptom for
 the
 example app.  This kind of one error for all
 situations
 makes diagnosis difficult.
 
 Looking in the log may clarify the problem, but I
 noticed
 that some of the problems do not produce obvious log
 entries (errors are swallowed).
 
 I have some suggestions that struts (and web apps
 generally) can use to help make it easier to debug
 installation and other similar startup problems.
 
 1) Don't just swallow errors without a clear error
 log
 entry.  E.g.,
 getServletContext().getResourceAsStream(config)
 just swallows security exceptions.  Not good.  It
 does return 
 a null, but this is not enough to identify the
 problem.
 
 2) keep some type of structure in which some
 meaningful
 message can be sent to the application interface. 
 For example,
 initialization and other code can put some
 indication of the
 problem in an Errors structure.  When the user
 makes a 
 query the application (or struts infrastructure) can
 check to 
 see if Errors is non-empty and display a special
 error 
 page which will provide better help in diagnosing
 the problem.
 
 3) install and config problems can be more easily
 diagnosed
 by explicitly checking for necessary pre-conditions
 (e.g.,
 file access, network access, etc.) and generating
 specific
 errors.  This could be run separately or optionally
 as part
 of init.
 
 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm
 integrating technology
 strategy and software solutions.
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Missing message for key index.title

2000-12-20 Thread Neal Kaiser

Thanks. I actually have both of those already. I think it might have to do
with
the Orion Server.  I did take the steps that have been posted in the past to
get it to work with Orion, but still no luck.  Could this be related? In my
orion console I see:

[root@www orion]# Orion/1.4.4 initialized
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Not registered, use system identifier
Parse Error at line 37 column -1: Element "struts-config" does not allow
"form-beans" here.
org.xml.sax.SAXParseException: Element "struts-config" does not allow
"form-beans" here.

and a bunch more errors.

Neal

 -Original Message-
 From: Jason Haase [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 20, 2000 9:22 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Missing message for key index.title



 It sounds like your ApplicationResources.properties file is not there.
 Check to make sure it is in
 ...\struts-example\WEB-INF\classes\org\apache\struts\example.
 Orion should
 have unpacked the struts-example.war file for you.  Otherwise,
 look in your
 web.xml file to make sure your "Action Servlet Configuration"
 specifies the
 right properties file.  Like this:

 init-param
   param-nameapplication/param-name

 param-valueorg.apache.struts.example.ApplicationResources/param-value
 /init-param


 Jason Haase



 -Original Message-
 From: Neal Kaiser [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, December 20, 2000 6:09 PM
 To: [EMAIL PROTECTED]
 Subject: Missing message for key index.title


 Can someone tell me what this error means:

 javax.servlet.jsp.JspException: Missing message for key index.title   at
 org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:261)

 I get it when trying to run the  struts-example on Orion Server.

 THanks