You have written your plugin (your own module) and for that you might have written an xml file which contains definitions of actions and all other things for your module. for example plugin.xml. I believe this statement "<package name="myPlugin" extends="struts-default">" you posted is from that xml file. If you have written your own modules. The config xml file of your module (Ex:-plugin.xml) should be declared in struts.xml file as shown below
<include file="full path to your modules xml file"/> for example:- <include file="xxx/plugin.xml"/> *Thanks and Regards,* Muralidhar Yaragalla. * * On Sat, Oct 5, 2013 at 8:33 PM, Umesh Awasthi <umeshawas...@gmail.com>wrote: > what you mean by registered plugin with struts.xml? > > > On Sat, Oct 5, 2013 at 8:31 PM, Yaragalla Muralidhar < > yaragallamur...@gmail.com> wrote: > > > have you registered your "myPlugin" in struts,xml file. > > > > *Thanks and Regards,* > > Muralidhar Yaragalla. > > * > > * > > > > > > On Sat, Oct 5, 2013 at 8:11 PM, Umesh Awasthi <umeshawas...@gmail.com > > >wrote: > > > > > Hi All, > > > > > > Facing "Parent package is not defined" exception and not sure where > > things > > > are worng. > > > > > > I have created a new plugin and want to use this plugin in my web-app, > > this > > > is how i have defined my plugin package > > > > > > <package name="myPlugin" extends="struts-default"> > > > > > > For testing purpose i created a blank application by using > > > "struts2-archetype-blank" and this is how i am using plugin package > > > > > > <package name="example" namespace="/example" extends="myPlugin"> > > > > > > but i am getting following exception on server startup > > > > > > Caused by: Unable to load configuration. > > > Caused by: Parent package is not defined: myPlugin - [unknown location] > > > > > > It seems that plugin is not getting included. > > > Initially i was serving plugin by Maven but in order to check i placed > > jar > > > inside lib folder and included it in class-path. > > > > > > Any idea where or what i am doing wrong ? > > > > > > -- > > > With Regards > > > Umesh Awasthi > > > http://www.travellingrants.com/ > > > > > > > > > -- > With Regards > Umesh Awasthi > http://www.travellingrants.com/ >