You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by slickdev <sl...@comcast.net> on 2002/08/28 06:52:06 UTC

No Action Instance

I developed a simple Struts app named "ecapp" on win2k, then dropped it's war file into Tomcat 3.3.1 running on a Sun box.

When requesting this action:
http://thesunbox.com:8080/ecapp/dbopsAction.do;jsessionid=9fimfkovb1?action=listusers
I get this reply:
"Status code: 500 request:R( /ecapp + /dbopsAction.do + null) msg:No action instance for path /dbopsAction could be created"

I figure this is a path problem. However, the dbopsAction class is in ecapp/WEB-INF/classes, as it should be.

The struts-config has this for the action mapping, which works fine in w2K:
<action
  path="/dbopsAction"
  type="dbopsAction"
  scope="request">
</action>

On the Sun box, I also set up an apps-ecapp.xml file to explicitly inform tomcat about the context for the ecapp app:
<webapps>
  <Context path="/ecapp"
     codeBase="webapps/ecapp"
     --- // realm stuff here 
     --- // log stuff here (works fine)
  </Context>
</webapps>

In sum: the ecapp jsp's are callable, but just the app can't find the dbopsAction class.

Suggestions?

Thanks!

Re: No Action Instance

Posted by Max Cooper <ma...@maxcooper.com>.
I don't know if this is your problem, but I would consider putting your
class in package and specifying the type with the fully-qualified class
name.

Put something like this at the top of dbopsAction.java:

package com.mycompany.myapp;

and make sure the class file ends up as
WEB-INF/classes/com/mycompany/myapp/dbopsAction.class

Then specify the fully-qualified class name in struts-config.xml like this:

<action
   path="/dbopsAction"
   type="com.mycompany.myapp.dbopsAction"
   scope="request">
</action>

I am not sure that will help, but I suspect it might and it is a good idea
anyway.

-Max

----- Original Message -----
From: "slickdev" <sl...@comcast.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Tuesday, August 27, 2002 9:52 PM
Subject: No Action Instance


> I developed a simple Struts app named "ecapp" on win2k, then dropped it's
war file into Tomcat 3.3.1 running on a Sun box.
>
> When requesting this action:
>
http://thesunbox.com:8080/ecapp/dbopsAction.do;jsessionid=9fimfkovb1?action=
listusers
> I get this reply:
> "Status code: 500 request:R( /ecapp + /dbopsAction.do + null) msg:No
action instance for path /dbopsAction could be created"
>
> I figure this is a path problem. However, the dbopsAction class is in
ecapp/WEB-INF/classes, as it should be.
>
> The struts-config has this for the action mapping, which works fine in
w2K:
> <action
>   path="/dbopsAction"
>   type="dbopsAction"
>   scope="request">
> </action>
>
> On the Sun box, I also set up an apps-ecapp.xml file to explicitly inform
tomcat about the context for the ecapp app:
> <webapps>
>   <Context path="/ecapp"
>      codeBase="webapps/ecapp"
>      --- // realm stuff here
>      --- // log stuff here (works fine)
>   </Context>
> </webapps>
>
> In sum: the ecapp jsp's are callable, but just the app can't find the
dbopsAction class.
>
> Suggestions?
>
> Thanks!
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>