Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with WAS 6.0/RAD 7.0

 
kalpna sharma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
I have installed Rad7.o and migrated old appplicxation from RAD6.0/WAS 5.1 to Rad7.0/WAS6.0. While starting the server, it complains about foward slash "/" in front of WEB_INF in WEBContent/WEB_INF/web.xml file.

Below is excerpt from stack trace-

ActionServlet E org.apache.struts.action.ActionServlet handleConfigException Parsing error processing resource path
/WEB-INF/config/smb-config.xml,
/WEB-INF/config/flow-config.xml,
/WEB-INF/config/orderStatus-config.xml,
/WEB-INF/config/checkout-config.xml,
/WEB-INF/config/authentication-config.xml,
/WEB-INF/config/addToCart-config.xml,
/WEB-INF/config/newConnect-config.xml,
/WEB-INF/config/serviceQual-config.xml,
/WEB-INF/config/DSLRenewalQual-config.xml,
/WEB-INF/config/manageCart-config.xml,
/WEB-INF/config/browseCatalog-config.xml,
/WEB-INF/config/logout-config.xml,
/WEB-INF/config/localization-config.xml,
/WEB-INF/config/pauseOrder-config.xml,
/WEB-INF/config/lightSpeed-config.xml


And, If I remove "/" from web.xml and set custom property(prependSlashToResource and its value = �true�) through admin console then also it through exception-

00a WebApp W SRVE0238E: Resource paths should have a leading slash
[2/4/08 12:26:03:148 PST] 0000000a Digester E org.apache.struts.config.ActionMappingFactory createObject ActionMappingFactory.createObject:
java.lang.ClassNotFoundException: com.sbc.swot.arch.client.mvc.action.SwotActionMapping
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:464)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:365)
at java.lang.ClassLoader.loadClass(ClassLoader.java:584)
at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:231)
at org.apache.struts.config.ActionMappingFactory.createObject(ConfigRuleSet.java:361)
at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:429)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:310)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1696)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:140)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:820)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:547)


Earlier with WAS 5.1 it was working good without forward slash to WEB_INF instances.

Any help will be appreciated.
Thanks,
Kalpna
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "forward slash" are you refering to an entry in web.xml?
 
vamsheedhar devarishati
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not Delete slash.

You are adding that property to ignore this Check.Just add this property and bounce the server to pick up the change.

Refer the following link for more info.

http://www-1.ibm.com/support/docview.wss?uid=swg21190234
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic