Getting your application to run under iPlanet Web Server 6.0 SP2 Step by Step.
*Notice this is just something I type up as I went along to get one little sample application I created to run LOCALLY in iPlanet Web Server 6.0 SP2. I made it a little more generic for posting but basically these are just my notes... please no slams, constructive criticism always welcomed! I will use "sampleapp" as the application. 01. Create your "sampleapp" application and directory structure. 02. Create a ".war" file (ex: jar -cf sampleapp.war *) 03. Create a sampleapp empty directory where your application will be deployed In iPlanet Web Server Administration: 04. Create new Server 05. Leave default Server name 06. Choose port. I used 8071 07. Change Server Identifier to: sampleapp 08. Set your document root to the above "sampleapp" directory. for example mine is "C:/iplanet/sampleapp".. (Notice the forward slashes and NO ending slash!) 09. Click "OK" button. 10. I think you have to click on "Configure Server" next. 11. Top right-hand corner of browser, click "Class Manager". 12. Click "Manage" button to manage "sampleapp" 13. Click on "Web Applications" tab 14. Click "Deploy Web Application" tab -->War file Local -->War file path is path to the sampleapp.war file on your local harddrive -->Application URI, I choose "/sampleapp" -->Installation directory, directory you used in step 03. mine: C:\iplanet\sampleapp 12. Click "OK" 13. Click "Apply" top right-hand corner of browser 14. Click "Apply Changes" button. This basically just restarts your sampleapp server. 15. Open your browser and access "http://localhost:8071/sampleapp/xxxxxxx.jsp......or whatever... You could also create a Server called something like "struts-apps" and just deploy multiple .war files in the step 14, "Deploy Web Application" section of iPlanet. I did this and deployed most of the sample apps included with Struts. Other info: -did NOT have to add anything to iPlanet classpath/jvm12.conf -the only files in my web-inf\lib folder are: struts.jar and jdbc2_0-stdext.jar Hope this helps some of you, Jason -----Original Message----- From: Rajesh Kalluri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 2:18 PM To: Struts Users Mailing List Subject: RE: iPlanet and Struts 1.02 problem - last try. Jason, did you deploy this as a web-application if what is the web-app context i dont see you mention that any where in your mail. Rajesh. -----Original Message----- From: Jason Muse [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:28 AM To: [EMAIL PROTECTED] Subject: iPlanet and Struts 1.02 problem - last try. One more try at this issue.... Problem with an extra slash "/" being added to the front of my form action and links, examples from little app i wrote and struts-example app: Example 1: <form name="panelForm" method="POST" action="//do/panelForm;jsessionid= Example 2: href="//do/editRegistration;jsessionid= This causes an issue by trying to call "http://do/PanelForm" Server: iPlanet Web Server 6.0 SP2 Struts: 1.02 binary release Not sure where to go from here. Is there an iPlanet setting or something? I have tried MANY different settings in the struts-config.xml and web.xml, for example, tried using /do/* method, but it seems to do the same thing. Even the "/do.*" adds an extra http://PanelForm.do.. Here are some files if you need to look at them: ----------------[ clipping from struts-config.xml]------------------------ <action path="/panelForm" type="com.whatever.struts.PanelAction" name="panelForm" scope="request" input="/panelform.jsp" validate="true"> <forward name="success" path="/do/success.jsp"/> <forward name="failure" path="/do/panelForm" /> </action> ----------------[ clipping from web.xml]----------------------------------- <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>/do/*</url-pattern> </servlet-mapping> --------------[ clipping from panelform.jsp]------------------------------ <html:form action="/panelForm"> ---------------------------------------------------------------------------- ----- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>