Hi Yusuf, and your classes should be in <webapp>/WEB-INF/classes/ Best greetings, Paweł Wielgus.
2010/5/19 Tasneem Yusuf <tasneem_...@yahoo.co.in>: > > Hello all, > I am using version struts1.3 , tomcat 6 and jdk 1.5.I am using > the eclipse IDE to develop my web app.The problem I 'm facing is when my web > app makes a call to any of the action classes , I get a classnot found error. > My classes are in the <webapp>/WEB-INF/classes/src/java folder. The package > structure for my java source files is WEB-INF/src/java/*.java. Below is the > web.xml and the struts-config.xml. Please can anyone help me in figuring out > what is the problem, Thanks > > My app's web.xml > > <?xml version="1.0" encoding="ISO-8859-1"?> > <!-- > Licensed to the Apache Software Foundation (ASF) under one or more > contributor license agreements. See the NOTICE file distributed with > this work for additional information regarding copyright ownership. > The ASF licenses this file to You under the Apache License, Version 2.0 > (the "License"); you may not use this file except in compliance with > the License. You may obtain a copy of the License at > > http://www.apache.org/licenses/LICENSE-2.0 > > Unless required by applicable law or agreed to in writing, software > distributed under the License is distributed on an "AS IS" BASIS, > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > See the License for the specific language governing permissions and > limitations under the License. > --> > > <!DOCTYPE web-app PUBLIC > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > <web-app> > <display-name>Struts Blank Application</display-name> > > <!-- Standard Action Servlet Configuration --> > <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> > <load-on-startup>0</load-on-startup> > </servlet> > > > <!-- Standard Action Servlet Mapping --> > <servlet-mapping> > <servlet-name>action</servlet-name> > <url-pattern>*.do</url-pattern> > </servlet-mapping> > > > <!-- The Usual Welcome File List --> > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > > </web-app> > > > > MY APPS STRUT-CONFIG.XML > > <?xml version="1.0" encoding="ISO-8859-1" ?> > <!-- > Licensed to the Apache Software Foundation (ASF) under one or more > contributor license agreements. See the NOTICE file distributed with > this work for additional information regarding copyright ownership. > The ASF licenses this file to You under the Apache License, Version 2.0 > (the "License"); you may not use this file except in compliance with > the License. You may obtain a copy of the License at > > http://www.apache.org/licenses/LICENSE-2.0 > > Unless required by applicable law or agreed to in writing, software > distributed under the License is distributed on an "AS IS" BASIS, > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. > See the License for the specific language governing permissions and > limitations under the License. > --> > > <!DOCTYPE struts-config PUBLIC > "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" > "http://struts.apache.org/dtds/struts-config_1_3.dtd"> > > > > <struts-config> > > > <!-- ========================================= Global Exception Definitions > --> > > <global-exceptions> > <!-- sample exception handler > <exception > key="expired.password" > type="app.ExpiredPasswordException" > path="/changePassword.jsp"/> > end sample --> > </global-exceptions> > > > <!-- =========================================== Global Forward Definitions > --> > > <global-forwards> > <!-- Default forward to "Welcome" action --> > <!-- Demonstrates using index.jsp to forward --> > <forward > name="welcome" > path="/Welcome.do"/> > </global-forwards> > > > <!-- =========================================== Action Mapping Definitions > --> > > <action-mappings> > > <action > path="/WelcomeAction" > type="src.java.WelcomeAction" > forward="/pages/Welcome.jsp" > /> > </action-mappings> > > > <!-- ======================================== Message Resources Definitions > --> > > <message-resources parameter="MessageResources" /> > > > > </struts-config> > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org