You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "G.L. Grobe" <ga...@grobe.org> on 2001/03/07 21:59:02 UTC

can't get struts working w/ orion ...

After reading this, could it be that I don't have my ActionServlet
installed.
I thought I'd be able to just test the taglibs in a very simple
configuration.
Just started learning struts. I'm using orion server 1.4.5. I've got
the struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs
in the ~/WEB-INF/web.xml file as well as included all the *.tld files
in this same dir.

<taglib>
    <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
    <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
     <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
 ...

When running the following page (or even just browsing to
http://localhost:80 to see if the orion server is running), I get
the error listed at the bottom of this page. I've also got a file
called 'myProps.properties' packaged under the
~/WEB-INF/classes/com.neuroquest.cais.resources dir. (i think i've
got this right as resources is a dir name and i've got a file called
myProps.properties in it, though I don't see how orion knows about
this file just cause it's in this dir).

-------- index.jsp -----------------------------------

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
<title>
   <bean:message key="main.title" />
</title>
</head>
<body>
<html:errors />
This is a atest.
</body>
</html:html>

-------- web.xml -----------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

   <servlet>
      <servlet-name>action</servlet-name>
      <servlet-class>
         org.apache.struts.action.ActionServlet
      </servlet-class>
      <init-param>
         <param-name>application</param-name>
         <param-value>com.neuroquest.cais.resources</param-value>
      </init-param>
   </servlet>

   <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
   </welcome-file-list>

   <taglib>
      <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
   </taglib>

   <taglib>
      <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
   </taglib>

   <taglib>
      <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-form.tld</taglib-location>
   </taglib>

   <taglib>
      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
   </taglib>

   <taglib>
      <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
   </taglib>

   <taglib>
      <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
      <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
   </taglib>

</web-app>

----------- error output -------------------------

500 Internal Server Error
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE at
org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
Code) at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
at com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code)
at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
at com.evermind.server.http.d3.sw(JAX, Compiled Code)
at com.evermind.server.http.d3.su(JAX, Compiled Code)
at com.evermind.server.http.ef.s1(JAX, Compiled Code)
at com.evermind.server.http.ef.do(JAX, Compiled Code)
at com.evermind.util.f.run(JAX, Compiled Code)


Re: can't get struts working w/ orion ...

Posted by Wayland Chan <in...@yahoo.com>.
This has been discussed in length on both the
struts-user and orion-interest mailing lists. I
suggest you search www.mail-archive.com for hints.

If I recall correctly, Struts-1.0b1 won't work in
Orion (for exact reasons, search the above). Try
Struts-0.5 and it should work fine.


--- "G.L. Grobe" <ga...@grobe.org> wrote:
> After reading this, could it be that I don't have my
> ActionServlet
> installed.
> I thought I'd be able to just test the taglibs in a
> very simple
> configuration.
> Just started learning struts. I'm using orion server
> 1.4.5. I've got
> the struts.jar in my ~/WEB-INF/lib dir and have
> listed the taglibs
> in the ~/WEB-INF/web.xml file as well as included
> all the *.tld files
> in this same dir.
> 
<snip>

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Re: can't get struts working w/ orion ...

Posted by "G.L. Grobe" <ga...@grobe.org>.
Well, I deleted all my *tld's from struts.jar (using unzip -d, so when I do
a jar -tvf, those files no longer show up).
My WEB-INF dir looks like this.

 drwxrwxr-x    3 build    build        4096 Mar  3 04:35 classes
drwxrwxr-x    2 build    build        4096 Mar  7 17:29 lib (where my
struts.jar is located)
drwxrwxr-x    3 build    build        4096 Mar  7 17:25 org
-rw-r--r--    1 build    build       10657 Mar  2 21:49 struts-bean.tld
-rw-rw-r--    1 build    build         698 Mar  7 17:10 struts-config.xml
-rw-r--r--    1 build    build       53594 Mar  2 21:49 struts-form.tld
-rw-r--r--    1 build    build       60308 Mar  2 21:49 struts-html.tld
-rw-r--r--    1 build    build       17052 Mar  2 21:49 struts-logic.tld
-rw-r--r--    1 build    build        1961 Mar  2 21:49 struts-template.tld
-rw-r--r--    1 build    build       51057 Mar  2 21:49 struts.tld
-rw-rw-r--    1 build    build         553 Feb 24 20:39 taglib.tld
-rw-rw-r--    1 build    build        1587 Mar  3 04:32 web.xml

I also copied the tld's toWEB-INF/classes/org/apache/struts/resources
directory in case these weren't being seen, but since this is the path in my
web.xml, they should be seen.

But I still got the same error msg, any ideas?

----- Original Message -----
From: "Christian Billen" <cb...@mail.com>
To: <st...@jakarta.apache.org>
Sent: Wednesday, March 07, 2001 3:27 PM
Subject: RE: can't get struts working w/ orion ...


> I had the same problem with Orion 1.4.7 and Struts 1.0beta (today's
build),
> here's how I got it to work:
>
> You have to remove all the tlds from WEB-INF/lib/struts.jar that are under
> org.apache.struts.resources and put them under
> WEB-INF/classes/org/apache/struts/resources.  Don't just copy them, they
> have to disapear from your struts.jar
>
> Took care of my issue, a bit annoying we have to do this but looks more
like
> a bug in Orion than in Struts.  Any comments on this?
>
> Christian
>
> > -----Original Message-----
> > From: G.L. Grobe [mailto:gary@grobe.org]
> > Sent: Wednesday, March 07, 2001 2:59 PM
> > To: struts-user@jakarta.apache.org
> > Subject: can't get struts working w/ orion ...
> >
> >
> > After reading this, could it be that I don't have my ActionServlet
> > installed.
> > I thought I'd be able to just test the taglibs in a very simple
> > configuration.
> > Just started learning struts. I'm using orion server 1.4.5. I've got
> > the struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs
> > in the ~/WEB-INF/web.xml file as well as included all the *.tld files
> > in this same dir.
> >
> > <taglib>
> >     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> >     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > </taglib>
> > <taglib>
> >      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> >      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> > </taglib>
> >  ...
> >
> > When running the following page (or even just browsing to
> > http://localhost:80 to see if the orion server is running), I get
> > the error listed at the bottom of this page. I've also got a file
> > called 'myProps.properties' packaged under the
> > ~/WEB-INF/classes/com.neuroquest.cais.resources dir. (i think i've
> > got this right as resources is a dir name and i've got a file called
> > myProps.properties in it, though I don't see how orion knows about
> > this file just cause it's in this dir).
> >
> > -------- index.jsp -----------------------------------
> >
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <html:html>
> > <head>
> > <title>
> >    <bean:message key="main.title" />
> > </title>
> > </head>
> > <body>
> > <html:errors />
> > This is a atest.
> > </body>
> > </html:html>
> >
> > -------- web.xml -----------------------------------
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> > 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >
> > <web-app>
> >
> >    <servlet>
> >       <servlet-name>action</servlet-name>
> >       <servlet-class>
> >          org.apache.struts.action.ActionServlet
> >       </servlet-class>
> >       <init-param>
> >          <param-name>application</param-name>
> >          <param-value>com.neuroquest.cais.resources</param-value>
> >       </init-param>
> >    </servlet>
> >
> >    <welcome-file-list>
> >       <welcome-file>index.jsp</welcome-file>
> >    </welcome-file-list>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-form.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
> >    </taglib>
> >
> > </web-app>
> >
> > ----------- error output -------------------------
> >
> > 500 Internal Server Error
> > javax.servlet.jsp.JspException: Cannot find message resources under key
> > org.apache.struts.action.MESSAGE at
> > org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
> > Code) at
> > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
> > Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
> > at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
> > at com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code)
> > at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
> > at com.evermind.server.http.d3.sw(JAX, Compiled Code)
> > at com.evermind.server.http.d3.su(JAX, Compiled Code)
> > at com.evermind.server.http.ef.s1(JAX, Compiled Code)
> > at com.evermind.server.http.ef.do(JAX, Compiled Code)
> > at com.evermind.util.f.run(JAX, Compiled Code)
> >
> >
> >
>


Re: can't get struts working w/ orion ...

Posted by Thierry Cools <th...@s1.com>.
Follow the instructions below and it should work

----- Original Message -----
From: "Ate Douma" <at...@iwise1.demon.nl>
To: "Orion-Interest" <or...@orionserver.com>
Sent: Friday, December 15, 2000 20:19
Subject: Re: Struts 1.0 - Anyone Do It?


> Ok, once more: Deploying the stuts 1.0 pre-release example web application
> on Orion in (more or less) five steps
> (based on Orion 1.3.8 and jakarta-struts-src-20001209.zip on W2k, jdk1.3):
>
> 1. build the struts example web application (or retrieve it from the
nightly
> build distribution)
>     1.1. extract the struts src distribution in a temporary directory
> ([struts])
>     1.2. build struts distribution by executing
"[struts]\jakarta-struts\ant
> dist" (using [struts]\jakata-struts\build.xml)
> 2. modify the web application archive
> [struts]\dist\struts\webapps\struts-example.war:
>     2.1. extract struts-example.war in a clean temporary directory
([temp])
>     2.2. open [temp]\WEB-INF\lib\struts.jar and extract
> org\apache\struts\resources\struts-config_1_0.dtd to
[temp]\WEB-INF\classes\
> creating file
> [temp]\WEB-INF\classes\org\apache\struts\resources\struts-config_1_0.dtd
>     2.3 delete the above file from struts.jar and save struts.jar in
> [temp]\WEB-INF\lib\
>     2.4 jar (or zip) the contents of [temp]\ in a new web application
> archive [temp]\struts-example.war (don't forget keeping the folder names)
> 3. create a struts.ear file by:
>     3.1. create file [temp]\META-INF\application.xml containing the
> following:
>             <?xml version="1.0"?>
>             <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD
> J2EE Application 1.2//EN"
> "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
>             <application>
>               <display-name>struts</display-name>
>               <module>
>                 <web>
>                   <web-uri>struts-example.war</web-uri>
>                   <context-root>/struts-example</context-root>
>                 </web>
>               </module>
>             </application>
>     3.2 jar (or zip) [temp]\META-INF\application.xml and
> [temp]\struts-examples.war into a new enterprise application archive
> [temp]\struts.ear (using folder names)
> 4. deploy the example web application on orion
>     4.1. extract orion1.3.8.zip in some directory ([orion])
>     4.2. copy the struts.ear file into [orion]/application
>     4.3. modify [orion]\config\server.xml by adding the following element
> under (nested within) the <application-server ...> element:
>           <application name="struts" path="../applications/struts.ear" />
>     4.4. modify [orion]\config\default-web-site.xml by adding the
following
> element under (nested within) the <web-site ...> element:
>           <web-app application="struts" name="struts-example"
> root="/struts-example" />
> 5. run the example web application
>     5.1. startup orion by executing "java -jar orion.jar" within the
> [orion]\ directory
>     5.2. access the example web application from a browser using url:
> http://localhost/struts-example
>
> Ate Douma

Regards,
Thierry


Thierry Cools
 
Senior Java Developer 
S1 Brussels 
Kleine Kloosterstraat, 23 
1932 st. Stevens-Woluwe 
Belgium 
Tel : +32 2 200 43 82 
Email : thierry.cools@s1.com 

  ----- Original Message ----- 
  From: Alan Yackel 
  To: struts-user@jakarta.apache.org 
  Sent: Thursday, March 08, 2001 7:53 AM
  Subject: Re: can't get struts working w/ orion ...


  Yeah, same here.  I noticed that when I use tomcat I get this message:

   Resolving to alternate DTD
  'jar:file:/usr/local/jakarta-tomcat/webapps/struts-upload/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'

  But when I use orion it says this:

       Resolving to alternate DTD
  'jndi:/usr/local/orion/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dtd'

      End event threw exception

  The difference is it says 'jar:file:/' in tomcat and 'jndi"/' in orion.  Anyone
  know why this is?

  Alan Yackel

  Christian Billen wrote:

  > I had the same problem with Orion 1.4.7 and Struts 1.0beta (today's build),
  > here's how I got it to work:
  >
  > You have to remove all the tlds from WEB-INF/lib/struts.jar that are under
  > org.apache.struts.resources and put them under
  > WEB-INF/classes/org/apache/struts/resources.  Don't just copy them, they
  > have to disapear from your struts.jar
  >
  > Took care of my issue, a bit annoying we have to do this but looks more like
  > a bug in Orion than in Struts.  Any comments on this?
  >
  > Christian
  >
  > > -----Original Message-----
  > > From: G.L. Grobe [mailto:gary@grobe.org]
  > > Sent: Wednesday, March 07, 2001 2:59 PM
  > > To: struts-user@jakarta.apache.org
  > > Subject: can't get struts working w/ orion ...
  > >
  > >
  > > After reading this, could it be that I don't have my ActionServlet
  > > installed.
  > > I thought I'd be able to just test the taglibs in a very simple
  > > configuration.
  > > Just started learning struts. I'm using orion server 1.4.5. I've got
  > > the struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs
  > > in the ~/WEB-INF/web.xml file as well as included all the *.tld files
  > > in this same dir.
  > >
  > > <taglib>
  > >     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
  > >     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  > > </taglib>
  > > <taglib>
  > >      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
  > >      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  > > </taglib>
  > >  ...
  > >
  > > When running the following page (or even just browsing to
  > > http://localhost:80 to see if the orion server is running), I get
  > > the error listed at the bottom of this page. I've also got a file
  > > called 'myProps.properties' packaged under the
  > > ~/WEB-INF/classes/com.neuroquest.cais.resources dir. (i think i've
  > > got this right as resources is a dir name and i've got a file called
  > > myProps.properties in it, though I don't see how orion knows about
  > > this file just cause it's in this dir).
  > >
  > > -------- index.jsp -----------------------------------
  > >
  > > <%@ page language="java" %>
  > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
  > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
  > > <html:html>
  > > <head>
  > > <title>
  > >    <bean:message key="main.title" />
  > > </title>
  > > </head>
  > > <body>
  > > <html:errors />
  > > This is a atest.
  > > </body>
  > > </html:html>
  > >
  > > -------- web.xml -----------------------------------
  > > <?xml version="1.0" encoding="ISO-8859-1"?>
  > >
  > > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
  > > 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
  > >
  > > <web-app>
  > >
  > >    <servlet>
  > >       <servlet-name>action</servlet-name>
  > >       <servlet-class>
  > >          org.apache.struts.action.ActionServlet
  > >       </servlet-class>
  > >       <init-param>
  > >          <param-name>application</param-name>
  > >          <param-value>com.neuroquest.cais.resources</param-value>
  > >       </init-param>
  > >    </servlet>
  > >
  > >    <welcome-file-list>
  > >       <welcome-file>index.jsp</welcome-file>
  > >    </welcome-file-list>
  > >
  > >    <taglib>
  > >       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
  > >       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  > >    </taglib>
  > >
  > >    <taglib>
  > >       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
  > >       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  > >    </taglib>
  > >
  > >    <taglib>
  > >       <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
  > >       <taglib-location>/WEB-INF/struts-form.tld</taglib-location>
  > >    </taglib>
  > >
  > >    <taglib>
  > >       <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
  > >       <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  > >    </taglib>
  > >
  > >    <taglib>
  > >       <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
  > >       <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  > >    </taglib>
  > >
  > >    <taglib>
  > >       <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
  > >       <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
  > >    </taglib>
  > >
  > > </web-app>
  > >
  > > ----------- error output -------------------------
  > >
  > > 500 Internal Server Error
  > > javax.servlet.jsp.JspException: Cannot find message resources under key
  > > org.apache.struts.action.MESSAGE at
  > > org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
  > > Code) at
  > > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
  > > Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
  > > at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
  > > at com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code)
  > > at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
  > > at com.evermind.server.http.d3.sw(JAX, Compiled Code)
  > > at com.evermind.server.http.d3.su(JAX, Compiled Code)
  > > at com.evermind.server.http.ef.s1(JAX, Compiled Code)
  > > at com.evermind.server.http.ef.do(JAX, Compiled Code)
  > > at com.evermind.util.f.run(JAX, Compiled Code)
  > >
  > >
  > >



Re: can't get struts working w/ orion ...

Posted by Alan Yackel <ay...@home.com>.
Yeah, same here.  I noticed that when I use tomcat I get this message:

 Resolving to alternate DTD
'jar:file:/usr/local/jakarta-tomcat/webapps/struts-upload/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'

But when I use orion it says this:

     Resolving to alternate DTD
'jndi:/usr/local/orion/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dtd'

    End event threw exception

The difference is it says 'jar:file:/' in tomcat and 'jndi"/' in orion.  Anyone
know why this is?

Alan Yackel

Christian Billen wrote:

> I had the same problem with Orion 1.4.7 and Struts 1.0beta (today's build),
> here's how I got it to work:
>
> You have to remove all the tlds from WEB-INF/lib/struts.jar that are under
> org.apache.struts.resources and put them under
> WEB-INF/classes/org/apache/struts/resources.  Don't just copy them, they
> have to disapear from your struts.jar
>
> Took care of my issue, a bit annoying we have to do this but looks more like
> a bug in Orion than in Struts.  Any comments on this?
>
> Christian
>
> > -----Original Message-----
> > From: G.L. Grobe [mailto:gary@grobe.org]
> > Sent: Wednesday, March 07, 2001 2:59 PM
> > To: struts-user@jakarta.apache.org
> > Subject: can't get struts working w/ orion ...
> >
> >
> > After reading this, could it be that I don't have my ActionServlet
> > installed.
> > I thought I'd be able to just test the taglibs in a very simple
> > configuration.
> > Just started learning struts. I'm using orion server 1.4.5. I've got
> > the struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs
> > in the ~/WEB-INF/web.xml file as well as included all the *.tld files
> > in this same dir.
> >
> > <taglib>
> >     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> >     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > </taglib>
> > <taglib>
> >      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> >      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> > </taglib>
> >  ...
> >
> > When running the following page (or even just browsing to
> > http://localhost:80 to see if the orion server is running), I get
> > the error listed at the bottom of this page. I've also got a file
> > called 'myProps.properties' packaged under the
> > ~/WEB-INF/classes/com.neuroquest.cais.resources dir. (i think i've
> > got this right as resources is a dir name and i've got a file called
> > myProps.properties in it, though I don't see how orion knows about
> > this file just cause it's in this dir).
> >
> > -------- index.jsp -----------------------------------
> >
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <html:html>
> > <head>
> > <title>
> >    <bean:message key="main.title" />
> > </title>
> > </head>
> > <body>
> > <html:errors />
> > This is a atest.
> > </body>
> > </html:html>
> >
> > -------- web.xml -----------------------------------
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> > 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> >
> > <web-app>
> >
> >    <servlet>
> >       <servlet-name>action</servlet-name>
> >       <servlet-class>
> >          org.apache.struts.action.ActionServlet
> >       </servlet-class>
> >       <init-param>
> >          <param-name>application</param-name>
> >          <param-value>com.neuroquest.cais.resources</param-value>
> >       </init-param>
> >    </servlet>
> >
> >    <welcome-file-list>
> >       <welcome-file>index.jsp</welcome-file>
> >    </welcome-file-list>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-form.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> >    </taglib>
> >
> >    <taglib>
> >       <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
> >       <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
> >    </taglib>
> >
> > </web-app>
> >
> > ----------- error output -------------------------
> >
> > 500 Internal Server Error
> > javax.servlet.jsp.JspException: Cannot find message resources under key
> > org.apache.struts.action.MESSAGE at
> > org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
> > Code) at
> > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
> > Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
> > at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
> > at com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code)
> > at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
> > at com.evermind.server.http.d3.sw(JAX, Compiled Code)
> > at com.evermind.server.http.d3.su(JAX, Compiled Code)
> > at com.evermind.server.http.ef.s1(JAX, Compiled Code)
> > at com.evermind.server.http.ef.do(JAX, Compiled Code)
> > at com.evermind.util.f.run(JAX, Compiled Code)
> >
> >
> >


RE: can't get struts working w/ orion ...

Posted by Ben Souther <bs...@redtrain.com>.
Yep, that's and Orion Bug and yes, it is annoying. Orion for some reason
can't read DTDs inside a jar file.


-----Original Message-----
From: Christian Billen [mailto:cbillen@mail.com]
Sent: Wednesday, March 07, 2001 4:28 PM
To: struts-user@jakarta.apache.org
Subject: RE: can't get struts working w/ orion ...


I had the same problem with Orion 1.4.7 and Struts 1.0beta (today's build),
here's how I got it to work:

You have to remove all the tlds from WEB-INF/lib/struts.jar that are under
org.apache.struts.resources and put them under
WEB-INF/classes/org/apache/struts/resources.  Don't just copy them, they
have to disapear from your struts.jar

Took care of my issue, a bit annoying we have to do this but looks more like
a bug in Orion than in Struts.  Any comments on this?

Christian

> -----Original Message-----
> From: G.L. Grobe [mailto:gary@grobe.org]
> Sent: Wednesday, March 07, 2001 2:59 PM
> To: struts-user@jakarta.apache.org
> Subject: can't get struts working w/ orion ...
>
>
> After reading this, could it be that I don't have my ActionServlet
> installed.
> I thought I'd be able to just test the taglibs in a very simple
> configuration.
> Just started learning struts. I'm using orion server 1.4.5. I've got
> the struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs
> in the ~/WEB-INF/web.xml file as well as included all the *.tld files
> in this same dir.
>
> <taglib>
>     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> </taglib>
> <taglib>
>      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> </taglib>
>  ...
>
> When running the following page (or even just browsing to
> http://localhost:80 to see if the orion server is running), I get
> the error listed at the bottom of this page. I've also got a file
> called 'myProps.properties' packaged under the
> ~/WEB-INF/classes/com.neuroquest.cais.resources dir. (i think i've
> got this right as resources is a dir name and i've got a file called
> myProps.properties in it, though I don't see how orion knows about
> this file just cause it's in this dir).
>
> -------- index.jsp -----------------------------------
>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <html:html>
> <head>
> <title>
>    <bean:message key="main.title" />
> </title>
> </head>
> <body>
> <html:errors />
> This is a atest.
> </body>
> </html:html>
>
> -------- web.xml -----------------------------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> <web-app>
>
>    <servlet>
>       <servlet-name>action</servlet-name>
>       <servlet-class>
>          org.apache.struts.action.ActionServlet
>       </servlet-class>
>       <init-param>
>          <param-name>application</param-name>
>          <param-value>com.neuroquest.cais.resources</param-value>
>       </init-param>
>    </servlet>
>
>    <welcome-file-list>
>       <welcome-file>index.jsp</welcome-file>
>    </welcome-file-list>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-form.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
>    </taglib>
>
> </web-app>
>
> ----------- error output -------------------------
>
> 500 Internal Server Error
> javax.servlet.jsp.JspException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE at
> org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
> Code) at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
> Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
> at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
> at com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code)
> at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
> at com.evermind.server.http.d3.sw(JAX, Compiled Code)
> at com.evermind.server.http.d3.su(JAX, Compiled Code)
> at com.evermind.server.http.ef.s1(JAX, Compiled Code)
> at com.evermind.server.http.ef.do(JAX, Compiled Code)
> at com.evermind.util.f.run(JAX, Compiled Code)
>
>
>



RE: can't get struts working w/ orion ...

Posted by Christian Billen <cb...@mail.com>.
I had the same problem with Orion 1.4.7 and Struts 1.0beta (today's build),
here's how I got it to work:

You have to remove all the tlds from WEB-INF/lib/struts.jar that are under
org.apache.struts.resources and put them under
WEB-INF/classes/org/apache/struts/resources.  Don't just copy them, they
have to disapear from your struts.jar

Took care of my issue, a bit annoying we have to do this but looks more like
a bug in Orion than in Struts.  Any comments on this?

Christian

> -----Original Message-----
> From: G.L. Grobe [mailto:gary@grobe.org]
> Sent: Wednesday, March 07, 2001 2:59 PM
> To: struts-user@jakarta.apache.org
> Subject: can't get struts working w/ orion ...
>
>
> After reading this, could it be that I don't have my ActionServlet
> installed.
> I thought I'd be able to just test the taglibs in a very simple
> configuration.
> Just started learning struts. I'm using orion server 1.4.5. I've got
> the struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs
> in the ~/WEB-INF/web.xml file as well as included all the *.tld files
> in this same dir.
>
> <taglib>
>     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> </taglib>
> <taglib>
>      <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>      <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> </taglib>
>  ...
>
> When running the following page (or even just browsing to
> http://localhost:80 to see if the orion server is running), I get
> the error listed at the bottom of this page. I've also got a file
> called 'myProps.properties' packaged under the
> ~/WEB-INF/classes/com.neuroquest.cais.resources dir. (i think i've
> got this right as resources is a dir name and i've got a file called
> myProps.properties in it, though I don't see how orion knows about
> this file just cause it's in this dir).
>
> -------- index.jsp -----------------------------------
>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <html:html>
> <head>
> <title>
>    <bean:message key="main.title" />
> </title>
> </head>
> <body>
> <html:errors />
> This is a atest.
> </body>
> </html:html>
>
> -------- web.xml -----------------------------------
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
> 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> <web-app>
>
>    <servlet>
>       <servlet-name>action</servlet-name>
>       <servlet-class>
>          org.apache.struts.action.ActionServlet
>       </servlet-class>
>       <init-param>
>          <param-name>application</param-name>
>          <param-value>com.neuroquest.cais.resources</param-value>
>       </init-param>
>    </servlet>
>
>    <welcome-file-list>
>       <welcome-file>index.jsp</welcome-file>
>    </welcome-file-list>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-form.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-form.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>       <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
>       <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
>    </taglib>
>
> </web-app>
>
> ----------- error output -------------------------
>
> 500 Internal Server Error
> javax.servlet.jsp.JspException: Cannot find message resources under key
> org.apache.struts.action.MESSAGE at
> org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
> Code) at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
> Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code)
> at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
> at com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code)
> at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
> at com.evermind.server.http.d3.sw(JAX, Compiled Code)
> at com.evermind.server.http.d3.su(JAX, Compiled Code)
> at com.evermind.server.http.ef.s1(JAX, Compiled Code)
> at com.evermind.server.http.ef.do(JAX, Compiled Code)
> at com.evermind.util.f.run(JAX, Compiled Code)
>
>
>