RE: Another request for struts on orion

2001-04-04 Thread Michael J. Cannon

On April 3r, 2001, quoth Rick Hightower:

"Is there a way to search this mail archive?

The URL is here:

http://www.mail-archive.com/orion-interest@orionserver.com

now, on searching, found this for 1.45:

"Have you put struts.jar in your WEB-INF/lib directory (correct) or in
the orion/lib directory (incorrect)?

Also struts needs to be patched to work with Orion (ActionServlet.java
as I remember, its in the archives)."

and this for 1.47:

" 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"

and this, further, for 1.4.7:

"You're still going to run into problems when you try to use message
resources (used prolifically for internal messages).  Struts
PropertyMessageResources calls getResourceAsStream() like this:

is = this.getClass().getClassLoader().getResourceAsStream(name);

...and if you look at the Orion classloader, it does not implement
getResourceAsStream().

This is what produces the "Cannot find message resources under
org.apache.struts.action.MESSAGE" error.  Look through the struts code
for the source of that message; it has nothing to do with loading the
dtds.


The change described below is not necessary on Orion 1.4.5 or 1.4.7 (the
only versions I have tested struts on).  My current struts code has
this.getClass().getResource(), and I see on the Orion console the
correct Digester registration methods for the dtds.
this.getClass().getClassLoader().getResource() is returning the correct
thing.

...browsing the (decompiled) source, it is amusing to note that the
Orion ServletContext (com.evermind.server.http.HttpApplication) does
implement getResourceAsStream(), but from the Struts
PropertyMessageResources you do not have access to the servlet context
so it's no use :-)

Jeff"

and that seems to be all of substance...had it working myself since about
the 15th of last month, but use it rarely, as we are a Cocoon shop.

Michael J. Cannon


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Rick Hightower
 Sent: Tuesday, April 03, 2001 6:08 PM
 To: Orion-Interest
 Subject: Another request for struts on orion





 I am also having a problem running struts on Orion.

 I followed the instructions and noticed that the directions to install the
 sample application on Orion (as written) would not work. First it only
 mentions copying one xml file not action.xml (it mentions
 struts_config.xsl). Then it asks you to point the config setting to
 action.xml without copying it to the web application root. The directions
 seem to be missing some steps.

 I tried to improvise and tried to copy all xml (and tag definition files)
 files from WEB-INF to the web app root of the sample, but I am running out
 of ideas. I realize that Orion is popular and someone has this running
 somewhere. And I also realize that this question has been asked for

 Where is a good place to search for the answers to this question?
 Is there a way to search this mail archive?

 (BTW I did get struts to work on weblogic 5.1)

 --Rick Hightower
 Software Developer
 http://www.geocities.com/rick_m_hightower/


 -Original Message-
 From: Shawn Stephens [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 03, 2001 2:42 PM
 To: [EMAIL PROTECTED]
 Subject: jndi


 Hello,
   Does anyone have the strut examples working with orionserver 1.4.5
 or later.  If not, does anyone know where I can find more
 information on how
 to get this to work.  I have implemented the extra procedures required to
 set up strut with orion.


 Thanks,
 Shawn Stephens

 I get this error when I try to run the app:

 4/3/01 4:33 PM defaultWebApp: 1.4.7 Started
 4/3/01 4:33 PM strutsExample: database: init
 4/3/01 4:33 PM strutsExample: database: Initializing database servlet
 4/3/01 4:33 PM strutsExample: database: Loading database from
 '/WEB-INF/database.xml'
 4/3/01 4:33 PM strutsExample: action: init
 4/3/01 4:33 PM strutsExample: action: Loading application resources from
 resource org.apache.struts.example.ApplicationResources
 4/3/01 4:33 PM strutsExample: action: Initializing configuration from
 resource path /WEB-INF/action.xml
 4/3/01 4:33 PM strutsExample: action: null
 java.net.MalformedURLException: unknown protocol: jndi
   at
 org.apache.struts.digester.Digester.resolveEntity(Digester.java:581)
   at
 org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExt
 ernalEntit
 y(DefaultEntityHandler.java:750)
   at
 org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExt

Another request for struts on orion

2001-04-03 Thread Rick Hightower




I am also having a problem running struts on Orion.

I followed the instructions and noticed that the directions to install the
sample application on Orion (as written) would not work. First it only
mentions copying one xml file not action.xml (it mentions
struts_config.xsl). Then it asks you to point the config setting to
action.xml without copying it to the web application root. The directions
seem to be missing some steps.

I tried to improvise and tried to copy all xml (and tag definition files)
files from WEB-INF to the web app root of the sample, but I am running out
of ideas. I realize that Orion is popular and someone has this running
somewhere. And I also realize that this question has been asked for

Where is a good place to search for the answers to this question?
Is there a way to search this mail archive?

(BTW I did get struts to work on weblogic 5.1)

--Rick Hightower
Software Developer
http://www.geocities.com/rick_m_hightower/


-Original Message-
From: Shawn Stephens [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 2:42 PM
To: [EMAIL PROTECTED]
Subject: jndi


Hello,
Does anyone have the strut examples working with orionserver 1.4.5
or later.  If not, does anyone know where I can find more information on how
to get this to work.  I have implemented the extra procedures required to
set up strut with orion.


Thanks,
Shawn Stephens

I get this error when I try to run the app:

4/3/01 4:33 PM defaultWebApp: 1.4.7 Started
4/3/01 4:33 PM strutsExample: database: init
4/3/01 4:33 PM strutsExample: database: Initializing database servlet
4/3/01 4:33 PM strutsExample: database: Loading database from
'/WEB-INF/database.xml'
4/3/01 4:33 PM strutsExample: action: init
4/3/01 4:33 PM strutsExample: action: Loading application resources from
resource org.apache.struts.example.ApplicationResources
4/3/01 4:33 PM strutsExample: action: Initializing configuration from
resource path /WEB-INF/action.xml
4/3/01 4:33 PM strutsExample: action: null
java.net.MalformedURLException: unknown protocol: jndi
at
org.apache.struts.digester.Digester.resolveEntity(Digester.java:581)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit
y(DefaultEntityHandler.java:750)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse
t(DefaultEntityHandler.java:566)
at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
:1139)
at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2201)
at
org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner
.java:86)
at
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML
DocumentScanner.java:887)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
at org.apache.struts.digester.Digester.parse(Digester.java:716)
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.evermind.server.http.HttpApplication.xc(JAX)
at com.evermind.server.http.HttpApplication.wu(JAX)
at com.evermind.server.http.HttpApplication.w4(JAX)
at com.evermind.server.http.HttpApplication.wf(JAX)
at com.evermind.server.http.HttpApplication.init(JAX)
at com.evermind.server.Application.u2(JAX)
at com.evermind.server.http.en.u2(JAX)
at com.evermind.server.http.em.nu(JAX)
at com.evermind.server.http.eg.s9(JAX)
at com.evermind.server.http.eg.dr(JAX)
at com.evermind.util.f.run(JAX)
4/3/01 4:33 PM strutsExample: action: Mapping for servlet 'action' = 'null'
4/3/01 4:33 PM strutsExample: 1.4.7 Started





Re: Another request for struts on orion

2001-04-03 Thread Werner Bohl

I had it running in 1.4.5 (as a test), following instructions on the struts
install file. In 1.4.7 its not running anymore!


Werner Bohl
Systems Consultant

- Original Message -
From: Rick Hightower [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, April 03, 2001 6:07 PM
Subject: Another request for struts on orion





 I am also having a problem running struts on Orion.

 I followed the instructions and noticed that the directions to install the
 sample application on Orion (as written) would not work. First it only
 mentions copying one xml file not action.xml (it mentions
 struts_config.xsl). Then it asks you to point the config setting to
 action.xml without copying it to the web application root. The directions
 seem to be missing some steps.

 I tried to improvise and tried to copy all xml (and tag definition files)
 files from WEB-INF to the web app root of the sample, but I am running out
 of ideas. I realize that Orion is popular and someone has this running
 somewhere. And I also realize that this question has been asked for

 Where is a good place to search for the answers to this question?
 Is there a way to search this mail archive?

 (BTW I did get struts to work on weblogic 5.1)

 --Rick Hightower
 Software Developer
 http://www.geocities.com/rick_m_hightower/


 -Original Message-
 From: Shawn Stephens [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 03, 2001 2:42 PM
 To: [EMAIL PROTECTED]
 Subject: jndi


 Hello,
 Does anyone have the strut examples working with orionserver 1.4.5
 or later.  If not, does anyone know where I can find more information on
how
 to get this to work.  I have implemented the extra procedures required to
 set up strut with orion.


 Thanks,
 Shawn Stephens

 I get this error when I try to run the app:

 4/3/01 4:33 PM defaultWebApp: 1.4.7 Started
 4/3/01 4:33 PM strutsExample: database: init
 4/3/01 4:33 PM strutsExample: database: Initializing database servlet
 4/3/01 4:33 PM strutsExample: database: Loading database from
 '/WEB-INF/database.xml'
 4/3/01 4:33 PM strutsExample: action: init
 4/3/01 4:33 PM strutsExample: action: Loading application resources from
 resource org.apache.struts.example.ApplicationResources
 4/3/01 4:33 PM strutsExample: action: Initializing configuration from
 resource path /WEB-INF/action.xml
 4/3/01 4:33 PM strutsExample: action: null
 java.net.MalformedURLException: unknown protocol: jndi
 at
 org.apache.struts.digester.Digester.resolveEntity(Digester.java:581)
 at

org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit
 y(DefaultEntityHandler.java:750)
 at

org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse
 t(DefaultEntityHandler.java:566)
 at

org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
 :1139)
 at

org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
 anner.java:2201)
 at

org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner
 .java:86)
 at

org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML
 DocumentScanner.java:887)
 at

org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
 java:381)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952)
 at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
 at org.apache.struts.digester.Digester.parse(Digester.java:716)
 at

org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at com.evermind.server.http.HttpApplication.xc(JAX)
 at com.evermind.server.http.HttpApplication.wu(JAX)
 at com.evermind.server.http.HttpApplication.w4(JAX)
 at com.evermind.server.http.HttpApplication.wf(JAX)
 at com.evermind.server.http.HttpApplication.init(JAX)
 at com.evermind.server.Application.u2(JAX)
 at com.evermind.server.http.en.u2(JAX)
 at com.evermind.server.http.em.nu(JAX)
 at com.evermind.server.http.eg.s9(JAX)
 at com.evermind.server.http.eg.dr(JAX)
 at com.evermind.util.f.run(JAX)
 4/3/01 4:33 PM strutsExample: action: Mapping for servlet 'action' =
'null'
 4/3/01 4:33 PM strutsExample: 1.4.7 Started







Re: Another request for struts on orion

2001-04-03 Thread Klaus Thiele

Hi

it' easy to set up struts running with orion :)

1) struts-0.5 runs out-of-the-box with orion  1.3.8
2) struts-1.0:
- un-jar struts.jar
 - **move** the whole directory org/apache/struts/resources to a save 
place
- recreate struts.jar (now without org/apache/struts/resources)
- put the saved directory org/apache/struts/resources to 
WEB-INF/classes

... and it will work.

hope that helps
 klaus

Am Dienstag, 3. April 2001 23:07 schrieben Sie:
I am also having a problem running struts on Orion.

  [...]
--Rick Hightower

-Original Message-
From: Shawn Stephens [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 2:42 PM
To: [EMAIL PROTECTED]
Subject: jndi
 [...]
Shawn Stephens
  [...]

--
Klaus Thiele - Personal  Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."