File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts!! will it work on websphere?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts!! will it work on websphere??" Watch "Struts!! will it work on websphere??" New topic
Author

Struts!! will it work on websphere??

lusha tak
Ranch Hand

Joined: Dec 30, 2000
Posts: 185
Hi folks!!!
any idea about what differrent application servers supports struts?? Is websphere among them??
If we deploy our struts app on websphere4.0....shall it work?? has anybody tried it??
Also i tried to look for install struts-example.war on websphere V4.0 ..but it didnt work...any ideawhat all has to be done make it work??? :roll:
Thankyou for ur interest and time..
Lusha
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
http://www7b.software.ibm.com/webapp/dd/ViewServlet.wss?viewType=Library&devDomain=wsdd&sortBy=Posted&start=1&keyword=struts&prodfam=0&topic=0&format=0&count=10
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I am moving this to the Java Frameworks forum.


Matthew Phillips
Michael McElwee
Ranch Hand

Joined: Nov 06, 2001
Posts: 30
Struts works just fine on WebSphere 4.0. I have a project running on it now.


SCJP2<br />IBM Certified Solution Developer<br />MCSD
Budong Li
Greenhorn

Joined: Nov 20, 2002
Posts: 9
It seems IBM integrates Struts in its websphere studio 5.0.
Chris Spierings
Greenhorn

Joined: Mar 29, 2001
Posts: 25
We are running 4.03 with Struts and its doing OK.
Chris
Michael Zalewski
Ranch Hand

Joined: Apr 23, 2002
Posts: 168
It also runs just fine on older versions of Websphere.
SeeThe Struts Framework Project - Installation - WebSphere 3.5.2
lusha tak
Ranch Hand

Joined: Dec 30, 2000
Posts: 185
Then why is that struts-example.war doesnt get installed on websphere 4.0?? I mean i tried installing but the application doesnt work :roll:
pl. give me some information or link as to how to go about it...

somebody suggested that i will have to use convert war tool which comes with fixpack 2 ...but somehow i am not able to locate the link to download fixpack 2 for websphere 4.0 on the ibm site...
Folks, who have their struts aplication already running on websphere 4.0...what steps/sequence did they follow???
pl help...
Lusha
Michael Zalewski
Ranch Hand

Joined: Apr 23, 2002
Posts: 168
Perhaps it would help if you tell us what doesn't work?
In Websphere 4.0, you must build and deploy an EAR file with the AAT. But there is no reason why Struts won't work -- it's just a jar file and a set of tag libraries.
Also, it's pretty easy to download the fix-packs from the IBM site. The only problem is that the fix-packs tend to be very large.
lusha tak
Ranch Hand

Joined: Dec 30, 2000
Posts: 185
o.k. here is what i did...
i copied the struts-example.war file on the c: drive.
then i opened cmd window
i typed

seappinstall -install c:\struts-example.war
...and then specified the app name and context root path ..etc.

re-started the server
here is what i got...
i opened the browser window and typed

o/p is
A Blank Page

when i check the logs/default_server_stderr.text i find the following error message

[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1257)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:451)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:698)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:136)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:102)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:355)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:147)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:237)
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1120)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:140)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:228)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:133)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:597)
at com.ibm.ws.runtime.Server.startModule(Server.java:499)
at com.ibm.ws.runtime.StandardServer.startModule(StandardServer.java:349)
at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:364)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:728)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:522)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:63)
[ERROR] ActionServlet - -null <java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader>
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:860)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:698)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:136)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:102)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:355)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:147)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:237)
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1120)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:140)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:228)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:133)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:597)
at com.ibm.ws.runtime.Server.startModule(Server.java:499)
at com.ibm.ws.runtime.StandardServer.startModule(StandardServer.java:349)
at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:364)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:728)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:522)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:63)
[ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts-config.xml <java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader>

lusha tak
Ranch Hand

Joined: Dec 30, 2000
Posts: 185
o.k. here is what i did...
i copied the struts-example.war file on the c: drive.
then i opened cmd window
i typed

seappinstall -install c:\struts-example.war
...and then specified the app name and context root path ..etc.

re-started the server
here is what i got...
i opened the browser window and typed

o/p is
A Blank Page

when i check the logs/default_server_stderr.text i find the following error message

[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1257)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:451)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:698)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:136)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:102)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:355)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:147)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:237)
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1120)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:140)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:228)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:133)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:597)
at com.ibm.ws.runtime.Server.startModule(Server.java:499)
at com.ibm.ws.runtime.StandardServer.startModule(StandardServer.java:349)
at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:364)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:728)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:522)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:63)
[ERROR] ActionServlet - -null <java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader>
java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader
at org.apache.commons.digester.Digester.getXMLReader(Digester.java:892)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:860)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:698)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:136)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:102)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:355)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:147)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:237)
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1120)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:140)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:228)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:133)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:597)
at com.ibm.ws.runtime.Server.startModule(Server.java:499)
at com.ibm.ws.runtime.StandardServer.startModule(StandardServer.java:349)
at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:364)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:728)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:522)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:63)
[ERROR] ActionServlet - -Parsing error processing resource path /WEB-INF/struts-config.xml <java.lang.AbstractMethodError: javax/xml/parsers/SAXParser.getXMLReader>


any help will be greatly appreciated
thanks
Lusha
John Rainey
Greenhorn

Joined: Dec 05, 2002
Posts: 17
lusha
I had the same problem. Struts required a different version of the xml parser. You need to 1) get a newer version of xerces.jar and put it in your lib directory of your web app
or
2) upgrade to 4.03 -
the upgrade to 4.03 solved the problem that i was having...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts!! will it work on websphere??
 
Similar Threads
Struts Templates and Tiles not working properly with Websphere 4.02 or 4.03
Struts with websphere 3.5.2
WebSphere 4.0.1 and Struts 1.1
Struts in Websphere 3.5.2
Struts!! will it work on websphere??