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

View: New views
3 Messages — Rating Filter:   Alert me  

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

by Haulyn R. Jason :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
Skype:saharabear


Haulyn Runner Jason



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


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

by Haulyn Jason :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oh, really? I am very very sorry, but I am not sure why I always got this:

I thought something wrong with my smtp server or others. I am very very sorry, but every times I always got the follow response. I am not sure what's wrong.

I am sorry to send too much duplicated mails.

-------------------------------------------------------------------------------
This is an automatically generated Delivery Status Notification.

Delivery to the following recipients failed.

      namdx@...



Reporting-MTA: dns;lvsrv_dns.luvina.net
Received-From-MTA: dns;exchange-pop3-connector.com
Arrival-Date: Tue, 14 Oct 2008 21:19:15 +0700

Final-Recipient: rfc822;namdx@...
Action: failed
Status: 5.1.1
-----------------------------------------------------------------

 Thanks!


Mobile: +086-15864011231
Website:http://www.openmotel.cn
http://www.vvthumb.com
GTalk:saharabear@...
Skype:saharabear




Haulyn Runner Jason



----- Original Message ----
From: Musachy Barroso <musachy@...>
To: Struts Users Mailing List <user@...>
Sent: Tuesday, October 14, 2008 10:24:29 PM
Subject: Re: How to setup package based on Struts2-REST-Showcase app?

You don't need to send the same email every 10 mins, this is the 5th I get.

musachy

On Tue, Oct 14, 2008 at 10:20 AM, Haulyn Jason <jia_haolin@...> 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@... <GTalk%3Asaharabear@...>
> Skype:saharabear
>
>
>
>
> Haulyn Runner Jason
>
>
>
>




--
"Hey you! Would you help me to carry the stone?" Pink Floyd



     

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

by jamestan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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