This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Websphere and the fly likes Issue with WAS 6.0/RAD 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Issue with WAS 6.0/RAD 7.0" Watch "Issue with WAS 6.0/RAD 7.0" New topic
Author

Issue with WAS 6.0/RAD 7.0

kalpna sharma
Greenhorn

Joined: Apr 08, 2004
Posts: 5
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

Joined: Mar 16, 2001
Posts: 986

When you say "forward slash" are you refering to an entry in web.xml?


Please ignore post, I have no idea what I am talking about.
vamsheedhar devarishati
Greenhorn

Joined: Feb 19, 2008
Posts: 25
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


Deva
SCJP, WAS6.0, Sun webservices, IBM ILOG JRules 7.0 Certified
 
Don't get me started about those stupid light bulbs.
 
subject: Issue with WAS 6.0/RAD 7.0