I noticed the WAS installation instructions at the URLs below needed to be 
merged. At this point, there is no reason to recompile the Struts source to 
make things work with WAS, so the second URL is a bit dated. I also found 
the key to making Struts work without resorting to creating extra WEB-INF 
directories or moving files around.

I took the text from the first URL and modified it. I split the doc up into 
2 parts: general Struts config and getting the struts-example to run under 
WAS.

I'd appreciate it if someone else running WAS would give this a spin to 
double-check me. If it checks out OK, I would suggest that this doc replace 
the other two.

Any comments or suggestions are most welcome. If you need me to submit this 
to Bugzilla, just let me know.

http://jakarta.apache.org/struts/installation-was352-x.html
http://jakarta.apache.org/struts/installation-was352.html

Begin text
==========

<h3><a name="was352">WebSphere Application Server 3.5 Configuration</a></h3>

<p>Server: Windows 2000 Server with WebSphere 3.5.3 Advanced<br></p>
<b>Configuring WAS 3.5</b>
<ol>
<li>Open struts.jar with WinZip.  Extract the three DTD's 
(struts-config_1_0.dtd, web-app_2_2.dtd and web-app_2_3.dtd) into 
c:\websphere\appserver\classes, making sure you use folder names (so the 
files extract to classes/org/apache/struts/resources). Now WebSphere can 
find the DTD files with it's class loader, and there is no problem with 
using the SYSTEM identifier for the DTD. These files will be available to 
all webapps that WAS hosts with no additional effort.</li>
</ol>

<b>Deploying struts-example</b>
<ol>
<li>Start up the adminserver. </li>
<li>Start up Admin Console. </li>
<li>Use the Convert War file task to convert the struts-example.war from the 
struts-b1 distrib as-is. </li>
<li>Convert to the default_server, default servlet engine and standard
install directory (c:\websphere\appserver\hosts\default_host). </li>
<li>Copy jaxp 1.0.1's (NOT 1.1.1's) jaxp.jar and parser.jar to the servlets 
directory of the strut-example webapp. </li>
<li>Click on struts-example in the Admin Console under Default 
Server/Default Servlet Engine and click the advanced tab on the right hand 
side of the screen. </li>
<li>Down where it says Default Error Page, enter /ErrorReporter and then
click Apply. </li>
<li>Start the Default Server via the Admin Console. You should see a whole 
bunch of ActionServlet messages in the default_host_stdout.log file with no 
exceptions. </li>
<li>Via a browser accessed the app using 
http://localhost/struts-example/index.jsp. </li>
<li>If it returns "Application not Available" then go back to the Admin
Console, right-click on struts-example and select Restart WebApp. </li>
<li>Once it reports success, go back to the URL above and try again - it
should work flawlessly. </li>
</ol>
<p>

========
End text

--
Dan Miser
http://www.distribucon.com
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Reply via email to