You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Olivier Baujard <ol...@careon.com> on 2001/04/05 10:40:57 UTC

RE: FIXED: Problem using struts1.0 with ORION 1.3.8 1.4.0 and 1. 4.5 UPDATED ---> not working !!!

I followed your instructions, struts-config.xml is red as the action
mappings
trace appears in the cmd shell from which I start orion but when I access
the
struts-example (or any other one) I got the damned HTTP 500 Internal Server
Error

By the way, moving only the org/apache/struts/resources directory in
WEB-INF/classes
seems to do the same as the 8 steps mentionned with the advantage of not
modifying any
files except struts.jar

Any further idea for our problem ? I wonder how some succeed in running
struts 1.0
with orion 1.4.5 as many posts suggest when others following the same
approach don't.
IT sorcery I presume :-)

Olivier

-----Original Message-----
From: Shawn Stephens [mailto:sstephens@coredata.net]
Sent: mercredi, 4. avril 2001 21:43
To: struts-user@jakarta.apache.org
Subject: FIXED: Problem using struts1.0 with ORION 1.3.8 1.4.0 and 1.4.5
UPDATED




Sorry the last message was sent too early.  Please use this one.

As I have posted before I ran into the same problem.

I now have struts running with orion 1.4.5.  Here are the steps I took

1.	I changed the code in ActionServlet.java as described by this
message:  
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05062.html

NOTE:  THERE ARE TWO INSTANCES OF THIS LINE OF CODE TO CHANGE I ADDED THIS
CODE

I changed this
			URL url =
this.getClass().getResource(registrations[i+1]);


to this

			URL url = null;
			try
			{
           			url =
getServletContext().getResource(registrations[i+1]);
			}catch(java.net.MalformedURLException e)
			{
				log("MalformedURLException "+
e.getMessage());
			}

2.	I then compiled and placed the ActionServlet.class file into the
struts.jar file.  I used winzip, opened strut.jar in the $strutshome$/lib
directory and pasted ActionServlet.class file from
C:\org\apache\struts\action.  I instructed winzip to use full path info to
overwrite the existing ActionServlet.class.

3.	Now replace all instances of strut.jar(in my case.
C:\javaadd\jakarta-struts\webapps\struts-example\WEB-INF\lib\struts.jar)
with the modified struts.jar

4.	I added this to the orion application.xml file

	<web-module id="strutsDoc"
	
path="C:\javaadd\jakarta-struts\webapps\struts-documentation.war"/>
	<web-module id="strutsExample"
	
path="C:\javaadd\jakarta-struts\webapps\struts-example.war"/>

5.	I added this to the orion default-web-site.xml file 

	<web-app application="default" name="strutsDoc"
  	root="/struts-documentation"/>
	<web-app application="default" name="strutsExample"
 	 root="/struts-example"/>

6.	I changed
C:\javaadd\jakarta-struts\webapps\struts-example\WEB-INF\web.xml

	I changed the <!DOCTYPE tag to
	
	<!DOCTYPE web-app
  	PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  	"file:///C:/javaadd/jakarta-struts/lib/web-app_2_2.dtd">
	
	CHANGE THIS

	<init-param>
      	<param-name>config</param-name>
      	<param-value>/WEB-INF/struts-config.xml</param-value>
    	</init-param>

	TO THIS

	<init-param>
      	<param-name>config</param-name>
      	<param-value>/struts-config.xml</param-value>
    	</init-param>

7. I made the following change to struts-config.xml so the file will read
locally

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
          "file:///C:/javaadd/jakarta-struts/lib/struts-config_1_0.dtd">

8.  Now copy
\jakarta-struts\webapps\struts-example\WEB-INF\struts-config.xml up in level
to 
\jakarta-struts\webapps\struts-example\struts-config.xml

9.  Now start orion ans hold your breathe and hope it works.  It worked
great for me.

Shawn Stephens

	



-----Original Message-----
From: Rick Hightower [mailto:rick@eblox.com]
Sent: Wednesday, April 04, 2001 2:02 PM
To: struts-user@jakarta.apache.org
Subject: RE: Problem using struts1.0 with ORION 1.3.8 1.4.0 and 1.4.5


I am having the same types of problems.
I checked the  mail archive, we are not alone.




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


-----Original Message-----
From: Olivier Baujard [mailto:olivier.baujard@careon.com]
Sent: Wednesday, April 04, 2001 4:12 AM
To: 'struts-user@jakarta.apache.org'
Subject: Problem using struts1.0 with ORION 1.3.8 1.4.0 and 1.4.5



Hi,

I have some problem with struts1.0 and orion servers from version 1.3.8 to
1.4.5
When installing struts, I followed the instruction mentionned in struts help
and
also to resole the jndi problem, I moved the org.apache.struts.resources
directory
from struts.jar to web-inf/classes which solves that problem. But now, when
accessing
samples or my own app, I got the message HTTP 500 Internal Server Error (not
been able
to dig further without appropriate log).

Could someone who succeed in installing sruts1.0 with orion 1.4.5 for
instance describe the howto.

Any help welcome.

Olivier

> --------------------------------------------------------------------------
> --------------
> Olivier Baujard (Ph.D) Global Practice Leader, System Integration
> CareOn SA, Impasse Colombelle 8
> 1218 Grand Saconnex Switzerland
> Tel: + 41 22 791 76 00  Fax: + 41 22 791 76 01 Web: www.careon.com
> Email: Olivier.Baujard@careon.com
> --------------------------------------------------------------------------
> --------------
>