You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by jamestan <ja...@hotmail.com> on 2009/11/04 19:45:07 UTC

Re: How to setup package based on Struts2-REST-Showcase app?

Since I have not seen your struts.xml, I can just reply based on some
assumption. Please make sure your package name is website, e.g.

<package name="website" extends="struts-default">

HTH

J


Haulyn R. Jason wrote:
> 
> Hi, all
> 
> I test my application based on Struts2-REST-Showcase.2.1.2Beta app.
> Without any changes, it works well and looks pretty good. But I need to
> do something more, so I create struts.xml and set up some new
> Interceptors and packages.
> I want to reset the package of OrdersController. I mean I create a
> package inherent to json-default which is named "website", but I can not
> use @ParentPackage(value="website") to define it.
> 
> The error message as:Caused by: ClasspathPackageProvider: Unable to
> locate parent package website - [Unknown location]
> 
> I can not find what's wrong with this. Thanks for anyone's suggestions.
> 
> 
> 
> -- 
> 
> Thanks!
> 
> Mobile: +086-15864011231
> Website:http://www.openmotel.cn
>         http://www.vvthumb.com
> GTalk:saharabear@gmail.com
> Skype:saharabear
> 
> 
> Haulyn Runner Jason
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-setup-package-based-on-Struts2-REST-Showcase-app--tp19971453p26202304.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org