The only things I can think of to check would be, do you have the
struts2-spring-plugin.jar file in your WEB-INF/lib directory? And have you
set the struts.objectFactory property to "spring"?

<constant name="struts.objectFactory" value="spring"/>

   (*Chris*)

On Sun, Oct 17, 2010 at 7:34 PM, cellterry <cellte...@gmail.com> wrote:

>
> Hello all,
>
> I get a bug in firebug Net console which is strange as I thought I have
> already correct configurations in the struts.xml and
> applicationContext.xml.
>
> The table frame can be seen without data loaded.
>
> Bug:
>
> java.lang.RuntimeException: Invalid action class configuration that
> references an unknown class named [ajaxEmps]
>
> org.apache.struts2.convention.ConventionsServiceImpl.determineResultPath(ConventionsServiceImpl.java:100)
> :
> :
>
> applicationContext.xml:
> :
> :
>        <bean id="ajaxEmps" class="ajax.Emps" scope="prototype">
>                <property name="serviceEmp" ref="serviceEmp" />
>        </bean>
> :
> :
>
> struts.xml:
>
>        <package name="ajax" namespace="/" extends="json-default">
> :
> :
>                <action name="ajaxEmps" class="ajaxEmps">
>                        <result type="json" />
>                </action>
> :
> :
>        </package>
>
> emps.jsp:
>
> :
> :
>
> <script>
> $(document).ready(function() {
>        jQuery("#emps").jqGrid({
>            url : "ajaxEmps.action",
> :
> :
>
> Emps.java
>
> package ajax;
>
> :
> :
>
> @SuppressWarnings("serial")
> public class Emps extends ActionSupport {
>
> :
> :
>
>
> Do anyone know why?
>
> Terry.
>
> --
> View this message in context:
> http://old.nabble.com/jqGrid-with-Struts-and-Spring-tp29986994p29986994.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

Reply via email to