Hi,
I downloaded struts 2 days ago and am trying to create a new app under Tomcat 4.1.24 and JDK1.4.2. When I try to start the server I get the following exception. Can anyone tell me whats wrong? Thanks, Ramesh. <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd"> <struts-config> <form-beans> <form-bean name="loginForm" type="com.paycycle.profile.forms.ProfileForm"/> </form-beans> <global-forwards> <forward name="something" path="/success.html"/> </global-forwards> <action-mappings> <action path="/login" type="com.paycycle.profile.actions.ProfileAction" name ="loginForm"> <forward name="success" path="/success.html"/> <forward name="failure" path="/failure.html"/> </action> </action-mappings> </struts-config> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <!-- Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> SEVERE: Begin event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property Utils.java:1789) at org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property Utils.java:1684) at org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils. java:1713) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101 9) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule .java:259) at org.apache.commons.digester.Rule.begin(Rule.java:200) at org.apache.commons.digester.Digester.startElement(Digester.java:1273) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML Validator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen tScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp atch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe rvlet.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 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3420) at org.apache.catalina.core.StandardContext.reload(StandardContext.java: 2567) at org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(Web appLoader.java:1369) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 3) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1355) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1289) at org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig. java:320) at org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:1 91) ... 29 more Oct 29, 2003 4:24:24 PM org.apache.struts.action.ActionServlet handleConfigExcep tion SEVERE: Parsing error processing resource path java.lang.reflect.InvocationTargetException at org.apache.commons.digester.Digester.createSAXException(Digester.java :2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java :2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML Validator.java:1284) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen tScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp atch(XMLDocumentScanner.java:1182) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe rvlet.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 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:935) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82 3) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3420) at org.apache.catalina.core.StandardContext.reload(StandardContext.java: 2567) at org.apache.catalina.loader.WebappLoader$WebappContextNotifier.run(Web appLoader.java:1369) at java.lang.Thread.run(Thread.java:534)