RE: Problem in struts-example accessing ApplicationResources

2001-06-03 Thread Nigel Ainslie

Mark,
I had this problem about 4 months ago when first started, although I can't
seem to replicate it now. I recall that I gave up and just read the code and
the documentationwe now have an implemented Struts framework which
works really well so its worth persevering. In our implementation we
followed the doco and put (our own) applicationresources file in the
WEB-INF/classes directory, however in the Struts-example it is in the
org.apache.struts.example.ApplicationResources directory: this path is
(always) defined in the web.xml file in the WEB-INF directory.
If you drop the .war file into Tomcat/webapps directory and then run Tomcat
it should deploy the files for you (you shouldn't need to amend or add any
classpath details or change anything at all). 
I guess you first need to check that Tomacat has deployed the
applicationresources file in the
org.apache.struts.example.ApplicationResources directory as defined in the
web.xml file and then just check to see that it does have an index.title
entry in the file (!).
cheers Nige

-Original Message-
From: MarNette Enterprises, Inc. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 3 June 2001 1:12
To: [EMAIL PROTECTED]
Subject: Problem in struts-example accessing ApplicationResources


I am evaluating Struts as a development environment and I am having trouble
getting the struts example to run.  As I have found some other users are
experiencing similar problems when running the example application the
following message appears:
 
"javax.servlet.ServletException: Exception thrown processing JSP page.
 javax.servlet.JspException: Missing message for key index.title ".
 
I am running Apache stand alone on Windows 2000 Professional using JDK 1.3.
I have seen other developers suggest changing the class path to include
"struts-example\WEB-INF\classes".  I tried this and it did not solve the
problem.  As you can tell I am getting a little frustrated with it and it
would be great if you could help me clear this up.
 
Mark Robinson
MarNette Enterprises, Inc.
770-438-9100




Re: Problem in struts-example accessing ApplicationResources

2001-06-02 Thread Dan Miser



The only place that struts.jar should exist is in 
WEB-INF\lib. Don't put it in the CLASSPATH. Don't put it in TOMCAT\LIB. 
Don't modify BAT files to include it. Just deploy struts-example.war to 
TOMCAT\WEBAPPS and everything will be fine.
--
Dan Miser
http://www.distribucon.com

  - Original Message - 
  From: 
  MarNette Enterprises, Inc. 
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, June 02, 2001 10:12 
  PM
  Subject: Problem in struts-example 
  accessing ApplicationResources
  
  I am evaluating Struts as a development 
  environment and I am having trouble getting the struts example to run.  
  As I have found some other users are experiencing similar problems when 
  running the example application the following message appears:
   
  "javax.servlet.ServletException: Exception thrown 
  processing JSP page.
   javax.servlet.JspException: Missing message 
  for key index.title ".
   


Problem in struts-example accessing ApplicationResources

2001-06-02 Thread MarNette Enterprises, Inc.



I am evaluating Struts as a development environment 
and I am having trouble getting the struts example to run.  As I have found 
some other users are experiencing similar problems when running the example 
application the following message appears:
 
"javax.servlet.ServletException: Exception thrown 
processing JSP page.
 javax.servlet.JspException: Missing message 
for key index.title ".
 
I am running Apache stand alone on Windows 
2000 Professional using JDK 1.3.  I have seen other developers suggest 
changing the class path to include "struts-example\WEB-INF\classes".  
I tried this and it did not solve the problem.  As you can tell I am 
getting a little frustrated with it and it would be great if you could help me 
clear this up.
 
Mark Robinson
MarNette Enterprises, 
Inc.770-438-9100


RE: Problem in struts-example accessing ApplicationResources

2001-05-03 Thread Anthony Martin



I had 
this problem last night on Windows ME, JDK 1.3.1.  The exact same project 
files worked fine on Win2k and FreeBSD without having to mess with the classpath 
like that.
 
I have 
found that Windows ME has issues with it's environment space.  Some issues 
clear up when you execute "COMMAND /e 2048" from start, run.
 
 
Anthony

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 03, 2001 4:11 
  PMTo: [EMAIL PROTECTED]Subject: Problem in 
  struts-example accessing ApplicationResourcesI have just started to evaluate Struts as a 
  possible platform for development. When I tried to run the 
  struts-example I got the following error (reading the mail indicates other 
  newbies are having similar problems): Error: 500 Location: 
  /struts-example/index.jsp Internal Servlet Error: 
  javax.servlet.ServletException: Missing message for key index.title 
    This seemed like an 
  environment problem and I was able to get around this by adding: 
  $TOMCAT_HOME\webapps\struts-example\WEB-INF\classes to my 
  classpath.  Does anyone have an explanation for why this was necessary? 
  I am running Tomcat 3.2.1 standalone on Windows ME and use 
  jdk1.2.2-006. Thanks, Damon 



Problem in struts-example accessing ApplicationResources

2001-05-03 Thread Damonwfinney
I have just started to evaluate Struts as a possible platform for development.

When I tried to run the struts-example I got the following error (reading the 
mail indicates other newbies are having similar problems):

Error: 500
Location: /struts-example/index.jsp
Internal Servlet Error:

javax.servlet.ServletException: Missing message for key index.title
  

This seemed like an environment problem and I was able to get around this by 
adding:

$TOMCAT_HOME\webapps\struts-example\WEB-INF\classes

to my classpath.  Does anyone have an explanation for why this was necessary?

I am running Tomcat 3.2.1 standalone on Windows ME and use jdk1.2.2-006.

Thanks,
Damon