hi, thanks for replying, in myeclipse,if i do contrl + click on the struts-default.xml in struts.xml, it opens the file, hence it seems this is also not the error, thanks abhishek
On Tue, Feb 8, 2011 at 3:06 PM, Mohamed SIDI <mhm.s...@gmail.com> wrote: > You should have problem in your classpath, it looks for a file named > struts-default in your classpath, so in your classes directory can you > check > if you have this file or not, another alternative, check your > classpathconfiguration in your eclipse . > > > > 2011/2/8 abhishek jain <abhishek.netj...@gmail.com> > > > On Tue, Feb 8, 2011 at 2:47 PM, Mohamed SIDI <mhm.s...@gmail.com> wrote: > > > > > Hi, > > > > > > May be you dont have well configure your application context. > > > > > > check your web.xml file > > > > > > best wishes !! > > > > > > 2011/2/8 abhishek jain <abhishek.netj...@gmail.com> > > > > > > > Hi, > > > > I am running myeclipse(8.x) on windows. trying my hands on struts 2.x > > > > application, when i try to run the application i see hte following > > error > > > in > > > > console. > > > > > > > > Dont know why , pl help. due to this i cannt run the application and > > 404 > > > > error appears. I think i narrowed this to possibly remove the xerces > > > > library, but i am not sure than will other things break. > > > > pl. help. > > > > I am using tomcat 6. > > > > > > > > > > > > Unable to load configuration. - [unknown location] > > > > at > > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431) > > > > at > > > > > > > > > > > > > > org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693) > > > > at > > > > > > org.apache.catalina.core.StandardContext.start(StandardContext.java:4340) > > > > at > > > > > > > > > > org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105) > > > > at > > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203) > > > > at > > > > > > > > > > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) > > > > at > > > > > > > > > > > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) > > > > at > > > > > > > > > > > > > > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) > > > > at java.lang.Thread.run(Thread.java:619) > > > > Caused by: Unable to load configuration. - [unknown location] > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58) > > > > at > > > > > > > > > > > > > > org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374) > > > > at > > org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418) > > > > ... 15 more > > > > Caused by: Caught exception while loading file struts-default.xml - > > > > [unknown > > > > location] > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:902) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) > > > > ... 17 more > > > > Caused by: java.lang.ClassCastException: > > > > org.apache.xerces.parsers.XML11Configuration cannot be cast to > > > > org.apache.xerces.xni.parser.XMLParserConfiguration > > > > at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) > > > > at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) > > > > at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown > Source) > > > > at > > > > > > > > > > > > > > org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown > > > > Source) > > > > at > > > > > > > > > > > > > > com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:69) > > > > at > > > > > > > > > > > > > > com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187) > > > > at > > > > > > > > > > > > > > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392) > > > > at > > > > > > > > > > > > > > com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137) > > > > at > > > > > > > > > > com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167) > > > > at > com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107) > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893) > > > > ... 21 more > > > > > > > > -- > > > > Thanks and kind Regards, > > > > Abhishek jain > > > > > > > > > > > > > > > > -- > > > > > > > > > Cordialement > > > > > > Mohamed > > > > > > > i think my web.xml is fine, > > here i what i have in there > > <?xml version="1.0" encoding="UTF-8"?> > > <web-app version="2.5" > > xmlns="http://java.sun.com/xml/ns/javaee" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> > > <welcome-file-list> > > <welcome-file>index.jsp</welcome-file> > > </welcome-file-list> > > <filter> > > <filter-name>struts2</filter-name> > > > > > <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> > > </filter> > > <filter-mapping> > > <filter-name>struts2</filter-name> > > <url-pattern>/*</url-pattern> > > </filter-mapping> > > <session-config> > > <session-timeout> > > 30 > > </session-timeout> > > </session-config> > > </web-app> > > -- > > abhi > > > > > > -- > > > Cordialement > > Mohamed >