When I run mvn jetty:run-war the following message is embedded in the Command
Prompt window (see the bold text).

******************* start of message *******************************
[INFO] Web overrides =  none
[INFO] Starting jetty 6.1.9 ...
2008-10-26 09:35:53.06::INFO:  jetty-6.1.9
2008-10-26 09:35:53.022::INFO:  Extract
jar:file:/C:/Documents%20and%20Settings/
Mike%20King/AppFuseWorkspace/AppFuseSandbox/mikeFirstProject/target/mikeFirstPro
ject-1.0-SNAPSHOT.war!/ to C:\Documents and Settings\Mike
King\AppFuseWorkspace\
AppFuseSandbox\mikeFirstProject\target\work\webapp
log4j:WARN Continuable parsing error 57 and column 64
log4j:WARN Attribute value "com.opensymphony.xwork2.util.OgnlValueStack" of
type
 ID must be unique within the document.
2008-10-26 09:36:00.471::INFO:  No Transaction manager found - if your
webapp re
quires one, please configure one.
2008-10-26 09:36:03.830:/:INFO:  Initializing Spring root
WebApplicationContext
[mikeFirstProject] WARN [main] Settings.getLocale(143) | Settings: Could not
par
se struts.locale setting, substituting default VM locale
2008-10-26 09:36:07.404::WARN:  failed struts
Action class [ObjectClassAction] not found - action -
file:/C:/Documents%20and%2
0Settings/Mike%20King/AppFuseWorkspace/AppFuseSandbox/mikeFirstProject/target/wo
rk/webapp/WEB-INF/classes/struts.xml:136:56
...
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
2008-10-26 09:36:08.622::INFO:  Started [EMAIL PROTECTED]:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 3 seconds.
******************* end of message *******************************

Here are some relevant snippets of the code.

******************* start of snippets of the
code*******************************
THE UNFOUND CLASS
package com.StatsSA.crud.action;
/**
 * @author Mike King
 * @version 1.0
 * @created 23-Oct-2008 11:47:50 AM
 */
import org.appfuse.webapp.action.BaseAction;
import org.appfuse.service.GenericManager;
import com.StatsSA.crud.model.Object_Class;
import java.text.MessageFormat;
import java.util.List;
public class ObjectClassAction extends BaseAction {
        GenericManager<Object_Class, Long> manager;
        Object_Class objectClass;
        Long id;
        public ObjectClassAction(){

  ------------------------------------
APPLICATIONCONTEXT.XML
<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:tx="http://www.springframework.org/schema/tx";
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

    <bean class="org.appfuse.dao.spring.HibernateExtensionPostProcessor">
        <property name="annotatedClasses">
            <list>
                <value>com.StatsSA.crud.model.Object_Class</value>
            </list>
        </property>
    </bean>
    
    <bean id="objectClassManager"
class="org.appfuse.service.impl.GenericManagerImpl">
        <constructor-arg>
            <bean class="org.appfuse.dao.hibernate.GenericDaoHibernate"
autowire="byType">
                <constructor-arg
value="com.StatsSA.crud.model.Object_Class"/>
            </bean>
        </constructor-arg>
    </bean>
    
    <bean id="objectClassAction"
class="com.StatsSA.crud.action.ObjectClassAction" scope="prototype">
        <property name="objectClassManager" ref="objectClassManager"/>
    </bean>
</beans>

  ------------------------------------  
STRUTS.XML
<package name="admin" extends="default" namespace="/admin">
        <action name="activeUsers"
class="com.opensymphony.xwork2.ActionSupport">
            <result
name="success">/WEB-INF/pages/admin/activeUsers.jsp</result>
        </action>

        <action name="flushCache"
class="com.opensymphony.xwork2.ActionSupport">
            <interceptor-ref name="adminCheck"/>
            <result
name="success">/WEB-INF/pages/admin/flushCache.jsp</result>
        </action>

        <action name="reload"
class="org.appfuse.webapp.action.ReloadAction">
            <interceptor-ref name="adminCheck"/>
            <!-- this should never be used, it's here to prevent warnings
-->
            <result name="success">/WEB-INF/pages/mainMenu.jsp</result>
        </action>

        <action name="users" class="userAction" method="list">
            <interceptor-ref name="adminCheck"/>
            <result
name="success">/WEB-INF/pages/admin/userList.jsp</result>
        </action>
        
        <action name="objectClass" class="objectClassAction">
                <result>/WEB-INF/pages/objectClass.jsp</result>
                <result name="form" type="redirect">objectClass.html</result>
        </action>
        
  ------------------------------------
  ******************* end of snippets of the
code*******************************

Help would be appreciated.  Struts is new to me.
Thanks,
Mike King



-- 
View this message in context: 
http://www.nabble.com/System-can%27t-find-an-Action-class%21-tp20171259s2369p20171259.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to