• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts!! will it work on websphere??

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am moving this to the Java Frameworks forum.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts works just fine on WebSphere 4.0. I have a project running on it now.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems IBM integrates Struts in its websphere studio 5.0.
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are running 4.03 with Struts and its doing OK.
Chris
 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It also runs just fine on older versions of Websphere.
SeeThe Struts Framework Project - Installation - WebSphere 3.5.2
 
lusha tak
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


http://localhost:9080/struts-example/


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
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


http://localhost:9080/struts-example/


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
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic