struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: HOW TO: Running struts 1.0 on Iplanet 4.1 on Solaris and it w orks on NT too!
Date Wed, 06 Feb 2002 10:06:32 GMT
Thanks Mikkel for the details... I am trying it out and will let you know
any further implications I face...

 -----Original Message-----
From: 	Mikkel Bruun [] 
Sent:	Wednesday, February 06, 2002 2:23 PM
To:	''
Subject:	HOW TO: Running struts 1.0 on Iplanet 4.1 on Solaris and it
works on NT too!

Running struts 1.0 on Iplanet 4.1 on Solaris and it works on NT too!

The guide explains how to deploy struts on the IP41 server.
This deployment guide is limited to only describing the deployment of the
action servlet and not 
the taglibs.

If you are using taglibs please check the IP documentation...Even though its
a hard battle, it
is possible to deploy the struts taglibs using the documentation...I know, I
did it and forgot how ;-)

When deploying on IP41 yo face many challenges. First of all, filesystem is
standard compliant, meaning no webapps folder, no WEB-INF, no web-xml, no
wars etc...

I took me a couple of days when I first had to find out how to do it but
deployment on the IP is fairly simple, as long as you stay away from
all the funky stuff, such as serving .jsps out of WEB-INF, running several
apps, etc...

In this document I have the following layout...

Iplanet is installed in /apps/iplanet

The documentroot is at /apps/iplanet/docs

The classes folder is at /apps/iplanet/docs/classes and contains both .jars
and class files...

Putting the files in the right place...

As IP doesnt have any WEB-INf capabilities, and considering that struts
tries to load struts-config.xml from this folder, your first problem arises.

The easiest fix is to create a WEB-INF folder in the documentroot and put
struts-config.xml in here...

Another way to solve it is to add the "config" parameter to (see later), and point at an absolute file path... also go into the class folder.

Your .jsp's , images, etc goes into the document root (of course)...

Next task is to copy the struts.jar (and all your other .jars and classes)
to the
classes folder.

Configuring the Action servlet.
(Could be done through the GUI interface...but really...)

We now point your attention to the IP configuration files:

These are placed in /apps/iplanet/https-yourserver/config

First of all we need to look at the jvm12.conf. This file contains the
that the jvm is launched with.

- Add struts.jar, xerces.jar and probably parser.jar to the jvm.classpath.

Next up is the

Add the following line


This registers the ActionServlet under the name action

optionally, add the following line:

Which tells the action servlet where to look for struts configuration

Then we turn to the
This file contains the url mapping of the servlet.

Add the following line


This makes the action servlet react to urls containing action, such as

Note: The struts website contains info on registering the action servlet as

So, thats it...struts is now deployed and you should be able to run your app

Mikkel Bruun 
mikkel at helenius dot org

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message