You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Matt Raible <ma...@yahoo.com> on 2001/06/19 21:53:15 UTC
struts-blank on iPlanet
I am trying to get a bare-bones, blank application to
work on iPlanet Application Server, SP2, and I get the
following error:
Any ideas?
directory structure is as follows:
uiframework
index.jsp
WEB-INF
*.tld
*.xml
lib
struts.jar
[19/Jun/2001 13:46:26:7] info:
--------------------------------------
javax.servlet.jsp.JspException: Missing message for
key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at
jsp.APPS.uiframework.index._jspService(index.java:73)
at
jsp.APPS.uiframework.index.service(index.java:35)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown
Source)
at
__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/
Re: struts-blank on iPlanet
Posted by Matt Raible <ma...@yahoo.com>.
So in my web.xml, I have:
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
And in my deployed app, I have
WEB-INF\classes\ApplicationResources.properties
In this file, there is:
index.title=Struts Starter Application
index.heading=Hello World!
index.message=To get started on your own application, copy the
struts-blank.war to a new WAR file using the name for your application.
Place it in your container's "webapp" folder (or equivalent), and let your
container auto-deploy the application. Edit the skeleton configuration files
as needed, reload Struts or restart your container, and you are on your way!
(You can find the ApplicationResources file with this message in the classes
folder.)
Does this mean that it "should" be working?
Thanks,
Matt
----- Original Message -----
From: "Mike Thompson" <mr...@instanton.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, June 19, 2001 2:04 PM
Subject: Re: struts-blank on iPlanet
> Looks like your index.jsp? Is trying to use the <bean:message key=?/> tag
> and the key does not exist in your message props file or your message prop
> file can not be found. In your web.xml you should have an entry
>
> <init-param>
> <param-name>application</param-name>
> <param-value>class name of your application</param-value>
> </init-param>
>
> under the servlet entry for the struts ActionServlet. Not you really
don't
> have to have a real class for your application, it just looks up the
> ResourceBundle with this key. So if you had something like
> foo.bar.package.MyApplication
> for the param-value
>
> you would need a file
> \classes\foo\bar\package\MyApplication.properties
>
> that has all your message keys in it like
> index.title = My Title
>
> --m
>
>
> ----- Original Message -----
> From: "Matt Raible" <ma...@yahoo.com>
> To: <st...@jakarta.apache.org>
> Sent: Tuesday, June 19, 2001 2:53 PM
> Subject: struts-blank on iPlanet
>
>
> > I am trying to get a bare-bones, blank application to
> > work on iPlanet Application Server, SP2, and I get the
> > following error:
> >
> > Any ideas?
> >
> > directory structure is as follows:
> >
> > uiframework
> > index.jsp
> > WEB-INF
> > *.tld
> > *.xml
> > lib
> > struts.jar
> >
> >
> > [19/Jun/2001 13:46:26:7] info:
> > --------------------------------------
> > javax.servlet.jsp.JspException: Missing message for
> > key index.title
> > at
> > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
> > at
> > jsp.APPS.uiframework.index._jspService(index.java:73)
> > at
> > jsp.APPS.uiframework.index.service(index.java:35)
> > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> > at
> > com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
> > Source)
> > at
> > com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown
> > Source)
> > at
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Spot the hottest trends in music, movies, and more.
> > http://buzz.yahoo.com/
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Re: struts-blank on iPlanet
Posted by Mike Thompson <mr...@instanton.com>.
Looks like your index.jsp? Is trying to use the <bean:message key=?/> tag
and the key does not exist in your message props file or your message prop
file can not be found. In your web.xml you should have an entry
<init-param>
<param-name>application</param-name>
<param-value>class name of your application</param-value>
</init-param>
under the servlet entry for the struts ActionServlet. Not you really don't
have to have a real class for your application, it just looks up the
ResourceBundle with this key. So if you had something like
foo.bar.package.MyApplication
for the param-value
you would need a file
\classes\foo\bar\package\MyApplication.properties
that has all your message keys in it like
index.title = My Title
--m
----- Original Message -----
From: "Matt Raible" <ma...@yahoo.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, June 19, 2001 2:53 PM
Subject: struts-blank on iPlanet
> I am trying to get a bare-bones, blank application to
> work on iPlanet Application Server, SP2, and I get the
> following error:
>
> Any ideas?
>
> directory structure is as follows:
>
> uiframework
> index.jsp
> WEB-INF
> *.tld
> *.xml
> lib
> struts.jar
>
>
> [19/Jun/2001 13:46:26:7] info:
> --------------------------------------
> javax.servlet.jsp.JspException: Missing message for
> key index.title
> at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
> at
> jsp.APPS.uiframework.index._jspService(index.java:73)
> at
> jsp.APPS.uiframework.index.service(index.java:35)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
> Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unknown
> Source)
> at
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.com/
Re: on iPlanet
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Tue, 19 Jun 2001, Matt Raible wrote:
> Has anyone solved this error before?
>
> <html:html locale="true"> seems to be causing the
> following error:
>
This will happen on containers that do not correctly implement the latest
errata for JSP 1.1, which can be found at
<http://java.sun.com/products/jsp/download.html>. Basically, the page
compiler is supposed to look at the data type of the underlying property
(boolean, in this case), and do an automatic type conversion of the
incoming value, according to Table 2-4.
Craig McClanahan
> [19/Jun/2001 15:00:33:7] info:
> --------------------------------------
> [19/Jun/2001 15:01:40:4] error: Exception:
> SERVLET-compile_failed: Failed in com
> piling template: /uiframework/index.jsp, javac error:
> d:\iplanet\ipm6\ias\APPS\m
> odules\uiframework\WEB-INF\compiled_jsp\jsp\APPS\uiframework\index.java:66:
> Inco
> mpatible type for method. Can't convert
> java.lang.String to boolean.
>
> ((org.apache.struts.taglib.html.HtmlTag)_JSP__5).setLocale("true");
>
> ^
> 1 error
>
> __________________________________________________
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.com/
>
on iPlanet
Posted by Matt Raible <ma...@yahoo.com>.
Has anyone solved this error before?
<html:html locale="true"> seems to be causing the
following error:
[19/Jun/2001 15:00:33:7] info:
--------------------------------------
[19/Jun/2001 15:01:40:4] error: Exception:
SERVLET-compile_failed: Failed in com
piling template: /uiframework/index.jsp, javac error:
d:\iplanet\ipm6\ias\APPS\m
odules\uiframework\WEB-INF\compiled_jsp\jsp\APPS\uiframework\index.java:66:
Inco
mpatible type for method. Can't convert
java.lang.String to boolean.
((org.apache.struts.taglib.html.HtmlTag)_JSP__5).setLocale("true");
^
1 error
__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/