On Fri, Apr 12, 2002 at 11:25:56AM -0700, Chris Campbell wrote:
> Yes, thats correct, sorry for the confusion. Sounds wierd - you sure
> your class is a sub-class of VelocityAction?
My class is a descendant of VelocitySecureAction.
> What is the error you are getting? Is there a stacktrace or log entry?
java.lang.ClassNotFoundException:
Requested Action not found: admin.AddUser
Turbine looked in the following modules.packages path:
[com.stevenson.mystery, org.apache.turbine.modules]
at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
at org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:143)
etc...
Wait a minute, stop the press!!!! I should have know that the problem
all along is that I am an idiot! I created a base class called
AdminAction which extends VelocitySecureAction and defines
isAuthorized(). When I started my AddUser class, I copied the code
from AdminAction. Apparently the little "abstract" between "public"
and "class" was the culprit ;-) Sorry for wasting your time.
Boy, the exception sure was misleading. Isn't this what
InstantiationException is for? Surely it was able to *find* my class,
but couldn't create and instance because it was declared abstract.
> -----Original Message-----
> From: Craig McDaniel [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 12, 2002 11:20 AM
> To: Turbine Users List
> Subject: Re: Sub-packages for Actions?
>
>
> Actually, shouldn't the package name be
> <module-prefix>.actions.admin.AddUser? That is what I have
> currently.
>
> I can also see my compiled class file in
> WEB-INF/classes/<module-prefix>/actions/admin/AddUser.class
>
> I have a class
> WEB-INF/classes/<module-prefix>/actions/Authenticate.class that is
> working properly. So my only thoughts are that the package name is
> wrong (I triple-checked), the ActionLoader doesn't work this way, or
> I've hit a bug. Do you have any other troubleshooting suggestions?
>
>
> On Fri, Apr 12, 2002 at 11:01:24AM -0700, Chris Campbell wrote:
> > make sure you package declaration is correct in your AddUser class -
> it
> > should be <module-prefix>.admin.AddUser
> >
> > and <module-prefix> must be included in modules.packages in
> > TurbineResources.properties ( but it sounds like it is already )
> >
> >
> > -----Original Message-----
> > From: Craig McDaniel [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 12, 2002 10:54 AM
> > To: Turbine Users List
> > Subject: Re: Sub-packages for Actions?
> >
> >
> > On Fri, Apr 12, 2002 at 10:44:05AM -0700, Chris Campbell wrote:
> > > . not ,
> >
> > admin.AddUser makes sense to me, but it still isn't working. Are you
> > sure about this? I am using $link.setAction("admin.AddUser").
> >
> > > -----Original Message-----
> > > From: Craig McDaniel [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, April 12, 2002 10:36 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Sub-packages for Actions?
> > >
> > >
> > > Should sub-packages for actions behave the same as for screens? IOW,
> I
> > > have set the action to be "admin,AddUser". However, Turbine is not
> > > finding my action class. Do actions not work this way, or is the
> > > problem somewhere else (or am I the problem)? My classes that are in
> > > the main actions package are working just fine.
> > >
> > > Later,
> > > --
> > > \ Craig Patrick McDaniel
> > > /_\ Software Engineer
> > > /_/_\ n + 1, Inc.
> > > /_/_/_\ [EMAIL PROTECTED]
> > > /_/_/_/_\ (502) 479-5557
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> > --
> > \ Craig Patrick McDaniel
> > /_\ Software Engineer
> > /_/_\ n + 1, Inc.
> > /_/_/_\ [EMAIL PROTECTED]
> > /_/_/_/_\ (502) 479-5557
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> \ Craig Patrick McDaniel
> /_\ Software Engineer
> /_/_\ n + 1, Inc.
> /_/_/_\ [EMAIL PROTECTED]
> /_/_/_/_\ (502) 479-5557
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
\ Craig Patrick McDaniel
/_\ Software Engineer
/_/_\ n + 1, Inc.
/_/_/_\ [EMAIL PROTECTED]
/_/_/_/_\ (502) 479-5557
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>