You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jon Brisbin <br...@ipa.net> on 2001/07/24 07:24:54 UTC

still no luck with struts in tomcat 4 (was: Re: iPlanet - Cannot find message resources u/key)

i get this same error on the plain binary download of tomcat 4 and try to
fire the struts example...

jb

----- Original Message -----
From: <Br...@transplace.com>
To: <st...@jakarta.apache.org>
Sent: Monday, July 23, 2001 3:26 PM
Subject: Re: iPlanet - Cannot find message resources u/key


>
> All,
>
> Has anyone with iPlanet Webserver 4.x, 6.x been able to get Struts to
work?
> If so, have you run into the:
>
> javax.servlet.ServletException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE  error?
>
> If so, how were you able to fix it?
>
> Thanks,
> Brian
>
>
>
>
>                     Brian.Duchouquette@tran
>                     splace.com                     To:
struts-user@jakarta.apache.org
>                                                    cc:
>                     07/23/2001 02:50 PM            Subject:     Re:
iPlanet - Cannot find message resources u/key
>                     Please respond to
>                     struts-user
>
>
>
>
>
>
>
> Does iPlanet Webserver 6.0 know how to use web.xml? Or is it like iPlanet
> Webserver 4.2 which uses rules.properties to handle essentially the same
> thing?  (I have a call into iPlanet technical support for this question
> since I think I am getting too much into the container implementation of a
> particular vendor.  However if someone has already solved this problem
with
> iPlanet, then please feel free to let me know!).
>
> I did have the mapping in my Web.xml file from your last message, but I
> think that the iPlanet servlet container doesn't know how to use it.  This
> is just a guess... Maybe there is some other configuration I need to do in
> the administration console for iPlanet Webserver 6.0 to map to a servlet
> directory to get this to work?
>
> Brian
>
>
>
>
>                     Matt Raible
>
>                     <matt_raible@        To:
> struts-user@jakarta.apache.org
>                     yahoo.com>           cc:
>
>                                          Subject:     Re: iPlanet - Cannot
> find message resources u/key
>                     07/23/2001
>
>                     02:25 PM
>
>                     Please
>
>                     respond to
>
>                     struts-user
>
>
>
>
>
>
>
> Make sure your web.xml has the following entry for the action class:
>
>   <servlet>
>     <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>
>
> --- Brian.Duchouquette@transplace.com wrote:
> >
> > Matt,
> >
> > Oops, I suppose I should have specified Webserver or Appserver.  I'm
> using
> > iPlanet Webserver 6.0.  My classpath points to the directory containing
> > ApplicationResources.properties which is: c:
> >
>
\iPlanet\Servers\docs\webapps\struts\WEB-INF\classes\ApplicationResources.pr
operties
>
>
> >
> > This does not seem to work even after updating the server startup
> classpath
> > in jvm12.conf.
> >
> > Here is that entry in jvm12.conf:
> >
> > jvm.classpath=c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\lib\struts.jar;c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\;c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\lib;c:
> > \iPlanet\Servers\docs\webapps\struts\WEB-INF\classes;c:
> > \iPlanet\Servers\docs\WEB-INF\classes\beanutils.jar; c:
> > \iPlanet\Servers\docs\WEB-INF\classes\collections.jar;c:
> >
>
\iPlanet\Servers\docs\WEB-INF\classes\digester.jar;C:/iPlanet/Servers/plugin
s/servlets/examples/legacy/beans.10/SDKBeans10.jar
>
>
> >
> > Thanks,
> > Brian
> >
> >
> >
> >
> >
>
> >
> >                     Matt Raible
>
> >
> >                     <matt_raible@        To:
> > struts-user@jakarta.apache.org
> >                     yahoo.com>           cc:
>
> >
> >                                          Subject:     Re: iPlanet -
> Cannot
> > find message resources u/key
> >                     07/23/2001
>
> >
> >                     02:08 PM
>
> >
> >                     Please
>
> >
> >                     respond to
>
> >
> >                     struts-user
>
> >
> >
>
> >
> >
>
> >
> >
> >
> >
> >
> > iPlanet Web Server or App Server?  The fix on the appserver is a
> classpath
> > thing - probably the same on Web Server.
> >
> > --- Brian.Duchouquette@transplace.com wrote:
> > > All,
> > >
> > > Can someone please post their iPlanet 6x configuration files for the
> > > struts_example.war web application?  I'm sure the answer to my problem
> is
> > > entering the descriptor xml to point to the location of the resources
> > file,
> > > but since iPlanet does not support Webapps and WAR files, this is not
a
> > > straightforward process.
> > > Any hints appreciated...
> > >
> > > Thanks,
> > > Brian
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
> >
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
>
>
>
>
>
>
>


Re: still no luck with struts in tomcat 4 (was: Re: iPlanet - Cannot find message resources u/key)

Posted by "Craig R. McClanahan" <cr...@apache.org>.
Tomcat 4 does not expose an XML parser to web applications.  Thus, you'll
need to do one of the following:

* Stick an XML parser into the $CATALINA_HOME/lib directory to make it
  available to all web apps, or

* Stick an XML parser into the /WEB-INF/lib directory of your web app.

Note that the struts-example.war shipped with Struts does *not* have a
parser in it.

Craig


On Tue, 24 Jul 2001, Jon Brisbin wrote:

> i get this same error on the plain binary download of tomcat 4 and try to
> fire the struts example...
> 
> jb
> 
> ----- Original Message -----
> From: <Br...@transplace.com>
> To: <st...@jakarta.apache.org>
> Sent: Monday, July 23, 2001 3:26 PM
> Subject: Re: iPlanet - Cannot find message resources u/key
> 
> 
> >
> > All,
> >
> > Has anyone with iPlanet Webserver 4.x, 6.x been able to get Struts to
> work?
> > If so, have you run into the:
> >
> > javax.servlet.ServletException: Cannot find message resources under key
> > org.apache.struts.action.MESSAGE  error?
> >
> > If so, how were you able to fix it?
> >
> > Thanks,
> > Brian
> >
> >
> >
> >
> >                     Brian.Duchouquette@tran
> >                     splace.com                     To:
> struts-user@jakarta.apache.org
> >                                                    cc:
> >                     07/23/2001 02:50 PM            Subject:     Re:
> iPlanet - Cannot find message resources u/key
> >                     Please respond to
> >                     struts-user
> >
> >
> >
> >
> >
> >
> >
> > Does iPlanet Webserver 6.0 know how to use web.xml? Or is it like iPlanet
> > Webserver 4.2 which uses rules.properties to handle essentially the same
> > thing?  (I have a call into iPlanet technical support for this question
> > since I think I am getting too much into the container implementation of a
> > particular vendor.  However if someone has already solved this problem
> with
> > iPlanet, then please feel free to let me know!).
> >
> > I did have the mapping in my Web.xml file from your last message, but I
> > think that the iPlanet servlet container doesn't know how to use it.  This
> > is just a guess... Maybe there is some other configuration I need to do in
> > the administration console for iPlanet Webserver 6.0 to map to a servlet
> > directory to get this to work?
> >
> > Brian
> >
> >
> >
> >
> >                     Matt Raible
> >
> >                     <matt_raible@        To:
> > struts-user@jakarta.apache.org
> >                     yahoo.com>           cc:
> >
> >                                          Subject:     Re: iPlanet - Cannot
> > find message resources u/key
> >                     07/23/2001
> >
> >                     02:25 PM
> >
> >                     Please
> >
> >                     respond to
> >
> >                     struts-user
> >
> >
> >
> >
> >
> >
> >
> > Make sure your web.xml has the following entry for the action class:
> >
> >   <servlet>
> >     <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>
> >
> > --- Brian.Duchouquette@transplace.com wrote:
> > >
> > > Matt,
> > >
> > > Oops, I suppose I should have specified Webserver or Appserver.  I'm
> > using
> > > iPlanet Webserver 6.0.  My classpath points to the directory containing
> > > ApplicationResources.properties which is: c:
> > >
> >
> \iPlanet\Servers\docs\webapps\struts\WEB-INF\classes\ApplicationResources.pr
> operties
> >
> >
> > >
> > > This does not seem to work even after updating the server startup
> > classpath
> > > in jvm12.conf.
> > >
> > > Here is that entry in jvm12.conf:
> > >
> > > jvm.classpath=c:
> > > \iPlanet\Servers\docs\webapps\struts\WEB-INF\lib\struts.jar;c:
> > > \iPlanet\Servers\docs\webapps\struts\WEB-INF\;c:
> > > \iPlanet\Servers\docs\webapps\struts\WEB-INF\lib;c:
> > > \iPlanet\Servers\docs\webapps\struts\WEB-INF\classes;c:
> > > \iPlanet\Servers\docs\WEB-INF\classes\beanutils.jar; c:
> > > \iPlanet\Servers\docs\WEB-INF\classes\collections.jar;c:
> > >
> >
> \iPlanet\Servers\docs\WEB-INF\classes\digester.jar;C:/iPlanet/Servers/plugin
> s/servlets/examples/legacy/beans.10/SDKBeans10.jar
> >
> >
> > >
> > > Thanks,
> > > Brian
> > >
> > >
> > >
> > >
> > >
> >
> > >
> > >                     Matt Raible
> >
> > >
> > >                     <matt_raible@        To:
> > > struts-user@jakarta.apache.org
> > >                     yahoo.com>           cc:
> >
> > >
> > >                                          Subject:     Re: iPlanet -
> > Cannot
> > > find message resources u/key
> > >                     07/23/2001
> >
> > >
> > >                     02:08 PM
> >
> > >
> > >                     Please
> >
> > >
> > >                     respond to
> >
> > >
> > >                     struts-user
> >
> > >
> > >
> >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > iPlanet Web Server or App Server?  The fix on the appserver is a
> > classpath
> > > thing - probably the same on Web Server.
> > >
> > > --- Brian.Duchouquette@transplace.com wrote:
> > > > All,
> > > >
> > > > Can someone please post their iPlanet 6x configuration files for the
> > > > struts_example.war web application?  I'm sure the answer to my problem
> > is
> > > > entering the descriptor xml to point to the location of the resources
> > > file,
> > > > but since iPlanet does not support Webapps and WAR files, this is not
> a
> > > > straightforward process.
> > > > Any hints appreciated...
> > > >
> > > > Thanks,
> > > > Brian
> > > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > > http://phonecard.yahoo.com/
> > >
> > >
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> >
> >
> >
> >
> >
> >
> >
> >
> 
>