Follow the instructions below and it should work
 
----- Original Message -----
From: "Ate Douma" <
[EMAIL PROTECTED]>
To: "Orion-Interest" <
[EMAIL PROTECTED]>
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 : [EMAIL PROTECTED]
----- Original Message -----
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:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 07, 2001 2:59 PM
> > To: [EMAIL PROTECTED]
> > 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)
> >
> >
> >

Reply via email to