RE: Struts with WebSphere 4.0 on Win2000
Kent, I'm in the process of writing them up. I'll post them as soon as I'm done. Here to help, Stephen :-{)
RE: Struts with WebSphere 4.0 on Win2000
Stephen, Appreciate the info because I know it takes time to figure out and is hard to come by. Thanks again, Kent -Original Message- From: Assenza, Chris [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 8:55 AM To: '[EMAIL PROTECTED]' Subject: RE: Struts with WebSphere 4.0 on Win2000 Stephen, We aren't using VAJ (currently) so I can't vouch for the WTE, although it is supposed to be identical to the single-server free license you can d/l from the IBM site. For 4.0 there ARE no long-winded "extra" steps believe it or not. It's been a while since I last played with it but you just need to package a J2EE compliant EAR or WAR file and use the Application Assembly tool to "Generate Code for Deployment" (If I recall the menu option correctly). The DTD thing is no longer an issue, at least from my experience. It is really quite easy. I compiled some PRELIMINARY steps for our own application and have included them here. They take place after the EAR file has been made "deployable" by the AA tool. :) Please don't take them as the absolute only and best way to get the job done, they stem from early experimenting. :) Since so many people seem to be asking I might just go home tonight and try to formalize the whole process. :) Brief Preliminary Deployment Instructions for WAS 4.0 · Deploy Application o Install WebSphere 4.0 o Once completed and system is restarted (if necessary): Start the WebSphere service (startServer.bat on NT, probably startServer.sh on Unix) o After the server has started, log onto the web-based Administration Console (http://localhost:9090/admin). o Next, expand "Nodes" on the left. o Click on Enterprise Applications o Click on Install o Browse to the file Deployed_app.ear that you created with the AA tool. o Select the file follow the steps the console takes you through: § Click next on EJB deployment screen. § Click next on the Web Module deployment screen (change your preference on pre-compiling if you so desire). § On the next screen, allow WebSphere to redeploy YourApp-ejb.jar by leaving the box checked and clicking next. (ed: Not sure if this step is necessary) § Review the settings and click Finish when ready. · Once finished, begin JDBC configuration. (for Oracle) o Expand Resources in the left navigation area. o Click "JDBC Drivers" o Click "New" § The Server Class Path is the location of classes12.zip (Oracle's JDBCdrivers) on the server. § Name is: "OracleJdbcDriver" § Implementation Classname is: oracle.jdbc.pool.OracleConnectionPoolDataSource o Click Ok to add the driver. o Expand the newly created "OracleJdbcDriver" in the left navigation area. o Click on "Data Sources" o Click "New" § Name is: somePool § JNDI Name is: jdbc/somePool § Default Userid is: someId § Defaults Password is: somePass § All others left blank/default. o Click Ok to add the Data Source. o From the Data Source screen, click on somePool. o Click on Property Set (on the bottom). o Click Resource Properties o Click "New" § Name is: URL § Type is: java.lang.String § Value is: jdbc:oracle:thin:user/pass@host:port:sid Where: · user/pass are the username/password respectively · host is the IP address of the Oracle DB Server · port is the port on which Oracle is listening (ex. 1521). · sid is the Oracle SID or name for the database o Click Ok until you've reached the Data Source Screen. · Complete Deployment o Click "Save" on the nav-bar at the top of the screen. o Select server-config.xml (or the top option) and click Ok. o Stop and then restart the WebSphere AppServer. · Once started, go to http://someIpAddress/appname/file.jsp to test the deployment. -Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message----- Fro
RE: Struts with WebSphere 4.0 on Win2000
Stephen, We aren't using VAJ (currently) so I can't vouch for the WTE, although it is supposed to be identical to the single-server free license you can d/l from the IBM site. For 4.0 there ARE no long-winded "extra" steps believe it or not. It's been a while since I last played with it but you just need to package a J2EE compliant EAR or WAR file and use the Application Assembly tool to "Generate Code for Deployment" (If I recall the menu option correctly). The DTD thing is no longer an issue, at least from my experience. It is really quite easy. I compiled some PRELIMINARY steps for our own application and have included them here. They take place after the EAR file has been made "deployable" by the AA tool. :) Please don't take them as the absolute only and best way to get the job done, they stem from early experimenting. :) Since so many people seem to be asking I might just go home tonight and try to formalize the whole process. :) Brief Preliminary Deployment Instructions for WAS 4.0 · Deploy Application o Install WebSphere 4.0 o Once completed and system is restarted (if necessary): Start the WebSphere service (startServer.bat on NT, probably startServer.sh on Unix) o After the server has started, log onto the web-based Administration Console (http://localhost:9090/admin). o Next, expand "Nodes" on the left. o Click on Enterprise Applications o Click on Install o Browse to the file Deployed_app.ear that you created with the AA tool. o Select the file follow the steps the console takes you through: § Click next on EJB deployment screen. § Click next on the Web Module deployment screen (change your preference on pre-compiling if you so desire). § On the next screen, allow WebSphere to redeploy YourApp-ejb.jar by leaving the box checked and clicking next. (ed: Not sure if this step is necessary) § Review the settings and click Finish when ready. · Once finished, begin JDBC configuration. (for Oracle) o Expand Resources in the left navigation area. o Click "JDBC Drivers" o Click "New" § The Server Class Path is the location of classes12.zip (Oracle's JDBCdrivers) on the server. § Name is: "OracleJdbcDriver" § Implementation Classname is: oracle.jdbc.pool.OracleConnectionPoolDataSource o Click Ok to add the driver. o Expand the newly created "OracleJdbcDriver" in the left navigation area. o Click on "Data Sources" o Click "New" § Name is: somePool § JNDI Name is: jdbc/somePool § Default Userid is: someId § Defaults Password is: somePass § All others left blank/default. o Click Ok to add the Data Source. o From the Data Source screen, click on somePool. o Click on Property Set (on the bottom). o Click Resource Properties o Click "New" § Name is: URL § Type is: java.lang.String § Value is: jdbc:oracle:thin:user/pass@host:port:sid Where: · user/pass are the username/password respectively · host is the IP address of the Oracle DB Server · port is the port on which Oracle is listening (ex. 1521). · sid is the Oracle SID or name for the database o Click Ok until you've reached the Data Source Screen. · Complete Deployment o Click "Save" on the nav-bar at the top of the screen. o Select server-config.xml (or the top option) and click Ok. o Stop and then restart the WebSphere AppServer. · Once started, go to http://someIpAddress/appname/file.jsp to test the deployment. -Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -----Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 10:36 AM To: [EMAIL PROTECTED] Subject: RE: Struts with WebSphere 4.0 on Win2000 Chris, I've managed to get this running in VAJ 4.0(WTE), but for some reason, I'm missing some step somewhere in getting it to run in WAS 4.0. D
RE: Struts with WebSphere 4.0 on Win2000
Stephen, What did you do to get it running in VAJ? Do you have any specific steps you followed? Thanks, Kent -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 8:36 AM To: [EMAIL PROTECTED] Subject: RE: Struts with WebSphere 4.0 on Win2000 Chris, I've managed to get this running in VAJ 4.0(WTE), but for some reason, I'm missing some step somewhere in getting it to run in WAS 4.0. Do you (or anyone else watching), by chance have step-by-step intstructions for getting the example app running in 4.0? I've heard various piecies, like needing to change the xml describing the dtd's to use SYSTEM, and that WAS has a problem with the FormTag class (and that there's a 2 line fix), etc and I was wondering if anyone had put all the pieces together along with the values to enter for the console when installing the ear file. (ASIDE: What makes this even more frustrating is I'm just learning the new WAS 4.0 tools after finally getting used to the 3.5.x ones.) Any help would be greatly appreciated!!! Getting frustrated, Stephen :-{)
RE: Struts with WebSphere 4.0 on Win2000
Chris, I've managed to get this running in VAJ 4.0(WTE), but for some reason, I'm missing some step somewhere in getting it to run in WAS 4.0. Do you (or anyone else watching), by chance have step-by-step intstructions for getting the example app running in 4.0? I've heard various piecies, like needing to change the xml describing the dtd's to use SYSTEM, and that WAS has a problem with the FormTag class (and that there's a 2 line fix), etc and I was wondering if anyone had put all the pieces together along with the values to enter for the console when installing the ear file. (ASIDE: What makes this even more frustrating is I'm just learning the new WAS 4.0 tools after finally getting used to the 3.5.x ones.) Any help would be greatly appreciated!!! Getting frustrated, Stephen :-{)
RE: Struts with WebSphere 4.0 on Win2000
Kent, Yes, we use EJB's - no special libraries for that specific functionality, although there are issues with deployment and servlet spec compatibility. Not to repeat what Terence said but I'm going to cut and paste an earlier response from yesterday. :) Details on the shortcoming of WAS' JASPER can be found: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10964.html and somewhere else in the archive with some explanation from Craig and others, but I don't recall where. :) As for WebSphere, I can vouch for it with both 3.5.3 and 4.0. There are a few things to be aware of prior to moving forward. First and foremost - both WAS 3.5.x and 4.0 are using versions of Jasper that are slightly behind the latest spec; unfortunately, Struts makes use of the parts of the spec wherein WAS is lacking. A very simple change has been made to the Form taglib that will allow Struts 1.0 to work in a WAS environment. It can be downloaded at: http://www.enfused.com/struts.jar Second, in 3.5.3 deployment requires some extra steps and some tweaking. A list of the special steps can be found: http://jakarta.apache.org/struts/installation-was352-x.html As for 4.0, deployment is pretty straight forward. The Application Assembly tool is the nicest and most usable J2EE deployment tool I've seen to date and will get the job done just fine. The fact that 4.0 is J2EE compliant helps a lot too - finally we can use EAR's and WAR's properly. :) Hope that helps, Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: Kent Roylance [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 10:06 AM To: [EMAIL PROTECTED] Subject: RE: Struts with WebSphere 4.0 on Win2000 Are you using EJB? What libraries did you have to import to get it working? Is there anything special you had to do to get it working? Thanks, Kent -Original Message- From: Assenza, Chris [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 7:15 AM To: '[EMAIL PROTECTED]' Subject: RE: Struts with WebSphere 4.0 on Win2000 Yes, it works quite well. :) Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 7:35 PM To: [EMAIL PROTECTED] Subject: Struts with WebSphere 4.0 on Win2000 Any chance anyone has done this for WAS 4.0 on 2000?
RE: Struts with WebSphere 4.0 on Win2000
Are you using EJB? What libraries did you have to import to get it working? Is there anything special you had to do to get it working? Thanks, Kent -Original Message- From: Assenza, Chris [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 23, 2001 7:15 AM To: '[EMAIL PROTECTED]' Subject: RE: Struts with WebSphere 4.0 on Win2000 Yes, it works quite well. :) Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 7:35 PM To: [EMAIL PROTECTED] Subject: Struts with WebSphere 4.0 on Win2000 Any chance anyone has done this for WAS 4.0 on 2000?
Re: Struts with WebSphere 4.0 on Win2000
Hi. One thing you should watch out for. WAS contains a bug that causes an error when using the Struts form tag. Comment out the 2 "pageContext.removeAttribute" lines in the org.apache.struts.taglib.html.FormTag class (doEndTag() method, starting at line 591), rebuild Struts, and all should be ok. Alternatively, you could do this: try { pageContext.removeAttribute(Constants.BEAN_KEY, PageContext.REQUEST_SCOPE); } catch (IllegalArgumentException iaex) {} try { pageContext.removeAttribute(Constants.FORM_KEY, PageContext.REQUEST_SCOPE); } catch (IllegalArgumentException iaex) {} Terence [EMAIL PROTECTED] wrote: Any chance anyone has done this for WAS 4.0 on 2000?
RE: Struts with WebSphere 4.0 on Win2000
Yes, it works quite well. :) Chris Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 7:35 PM To: [EMAIL PROTECTED] Subject: Struts with WebSphere 4.0 on Win2000 Any chance anyone has done this for WAS 4.0 on 2000?
Re: Struts with WebSphere 4.0 on Win2000
Check out the redbook IBM Webshphere 4.0 Handbook - there is a sample app that used STRUTS! ** MailSweeper This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on the information contained in this e-mail is prohibited. If you have received this email in error, please immediately notify your email administrator. Blue Cross Blue Shield of Rhode Island 459-1000 x4357 (in state) 1-800-637-3718 x4357 (out of state) **