You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Umesh Awasthi <um...@gmail.com> on 2013/10/05 16:41:12 UTC

Parent package is not defined

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/

Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
2013/10/7 Umesh Awasthi <um...@gmail.com>:
> Hi Chris,
>
> Not sure what you mean by root directory?

When you extract the jar file, struts-plugin.xml must be on the top of
directory structure, not in some package.

-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
that is really strange..
i used maven to create my sample Struts2 application.

used mvn-install to place plugin jar to local repo and than used maven to
update my struts2 app dependencies.

Seems like issue in Struts2 sample application build.


On Mon, Oct 7, 2013 at 9:05 PM, Lukasz Lenart <lu...@apache.org>wrote:

> It works for me ;-) Right now preparing small demo.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > any hint ? :)
> >
> >
> > On Mon, Oct 7, 2013 at 2:19 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >wrote:
> >
> >> Hi Lukasz,
> >>
> >> here is the repo link
> >>
> >> https://github.com/umeshawasthi/jsr303-validator-plugin
> >>
> >> Thanks
> >> Umesh
> >>
> >>
> >> On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart <lukaszlenart@apache.org
> >wrote:
> >>
> >>> Yes, please do :-)
> >>>
> >>> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> >>> > No, its not in sub-directory
> >>> > I can share gitHub link if want to have look at structure or files?
> >>> >
> >>> >
> >>> > On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <
> thechrispratt@gmail.com
> >>> >wrote:
> >>> >
> >>> >> In the top directory (not a sub directory) of the jar file.  It
> should
> >>> NOT
> >>> >> be in a subdirectory like META-INF or WEB-INF.
> >>> >>   (*Chris*)
> >>> >>
> >>> >>
> >>> >> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <
> umeshawasthi@gmail.com
> >>> >> >wrote:
> >>> >>
> >>> >> > Hi Chris,
> >>> >> >
> >>> >> > Not sure what you mean by root directory?
> >>> >> >
> >>> >> > Hi Lukasz,
> >>> >> >
> >>> >> > I cross checked and struts-plugin.xml is there.
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <
> >>> thechrispratt@gmail.com
> >>> >> > >wrote:
> >>> >> >
> >>> >> > > And in the root directory of the jar file, correct?
> >>> >> > >   (*Chris*)
> >>> >> > >
> >>> >> > >
> >>> >> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <
> >>> umeshawasthi@gmail.com
> >>> >> > > >wrote:
> >>> >> > >
> >>> >> > > > Yes, its there
> >>> >> > > > Still i will cross check it.
> >>> >> > > >
> >>> >> > > > Thanks
> >>> >> > > > Umesh
> >>> >> > > >
> >>> >> > > >
> >>> >> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
> >>> >> > lukaszlenart@apache.org
> >>> >> > > > >wrote:
> >>> >> > > >
> >>> >> > > > > Are you sure that the struts-plugin.xml exists in the jar?
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > > Regards
> >>> >> > > > > --
> >>> >> > > > > Łukasz
> >>> >> > > > > + 48 606 323 122 http://www.lenart.org.pl/
> >>> >> > > > >
> >>> >> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> >>> >> > > > > > Hi Lukaz,
> >>> >> > > > > >
> >>> >> > > > > > Its name is struts-plugin.xml, moreover i have used maven
> to
> >>> >> > generate
> >>> >> > > > > > plugin structure for me.
> >>> >> > > > > > Not sure why it is happening like this.
> >>> >> > > > > >
> >>> >> > > > > > I even cross checked it with other plugin provided with
> >>> Struts
> >>> >> > > > > distribution
> >>> >> > > > > > and everything is same not sure why this is happening.
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> >>> >> > > > lukaszlenart@apache.org
> >>> >> > > > > >wrote:
> >>> >> > > > > >
> >>> >> > > > > >> How did you name your xml file? It must be
> >>> struts-plugin.xml and
> >>> >> > > then
> >>> >> > > > > >> framework will automatically load it.
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >> Regards
> >>> >> > > > > >> --
> >>> >> > > > > >> Łukasz
> >>> >> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
> >>> >> > > > > >>
> >>> >> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> >>> >> > > > > >> > 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/
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > >
> >>> ---------------------------------------------------------------------
> >>> >> > > > > >> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> >>> >> > > > > >> For additional commands, e-mail:
> >>> user-help@struts.apache.org
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > > > --
> >>> >> > > > > > With Regards
> >>> >> > > > > > Umesh Awasthi
> >>> >> > > > > > http://www.travellingrants.com/
> >>> >> > > > >
> >>> >> > > > >
> >>> >>
> ---------------------------------------------------------------------
> >>> >> > > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> >> > > > > For additional commands, e-mail:
> user-help@struts.apache.org
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > >
> >>> >> > > >
> >>> >> > > > --
> >>> >> > > > With Regards
> >>> >> > > > Umesh Awasthi
> >>> >> > > > http://www.travellingrants.com/
> >>> >> > > >
> >>> >> > >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> > With Regards
> >>> >> > Umesh Awasthi
> >>> >> > http://www.travellingrants.com/
> >>> >> >
> >>> >>
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > With Regards
> >>> > Umesh Awasthi
> >>> > http://www.travellingrants.com/
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> With Regards
> >> Umesh Awasthi
> >> http://www.travellingrants.com/
> >>
> >>
> >>
> >
> >
> >
> > --
> > With Regards
> > Umesh Awasthi
> > http://www.travellingrants.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Thanks for suggestion
They were same as suggested by you.
I messed up with them lately  :)

Will correct them.


On Tue, Oct 8, 2013 at 12:25 PM, Lukasz Lenart <lu...@apache.org>wrote:

> 2013/10/8 Umesh Awasthi <um...@gmail.com>:
> > Hi Lukasz,
> >
> > thanks for demo application.
> > I am working on it and hope to complete it soon.
> >
> > Thanks for the correction as i have not tested it yet (My plugin code ;))
>
> You're welcome :-)
>
> And I suggest changing groupId and artifcatId, e.g.
>
> <groupId>org.apache.struts</groupId>
> <artifactId>struts2-jsr303-validation-plugin</artifactId>
>
> or you can use any other groupId, but basically it must be valid URI
> as guys from Sonatype OSS don't want to accept such "invalid"
> groupId's
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
2013/10/8 Umesh Awasthi <um...@gmail.com>:
> Hi Lukasz,
>
> thanks for demo application.
> I am working on it and hope to complete it soon.
>
> Thanks for the correction as i have not tested it yet (My plugin code ;))

You're welcome :-)

And I suggest changing groupId and artifcatId, e.g.

<groupId>org.apache.struts</groupId>
<artifactId>struts2-jsr303-validation-plugin</artifactId>

or you can use any other groupId, but basically it must be valid URI
as guys from Sonatype OSS don't want to accept such "invalid"
groupId's


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Hi Lukasz,

thanks for demo application.
I am working on it and hope to complete it soon.

Thanks for the correction as i have not tested it yet (My plugin code ;))

Thanks
Umesh





On Tue, Oct 8, 2013 at 11:42 AM, Lukasz Lenart <lu...@apache.org>wrote:

> My demo app
>
> https://github.com/lukaszlenart/struts2-jsr303-example
>
> Anyway, first the plugin must be fully operational, right now it
> performs validation but it lacks of validation messages ;-)
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/10/8 Lukasz Lenart <lu...@apache.org>:
> > After installing the plugin locally (mvn clean source:jar install) I
> > have added it as follow:
> >
> >         <dependency>
> >             <groupId>struts2-jsr303-validator-plugin</groupId>
> >             <artifactId>jsr303-validator</artifactId>
> >             <version>1.0-SNAPSHOT</version>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>org.hibernate</groupId>
> >             <artifactId>hibernate-validator</artifactId>
> >             <version>4.3.1.Final</version>
> >         </dependency>
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > 2013/10/8 Umesh Awasthi <um...@gmail.com>:
> >> Thanks Everyone, issue was with my Eclipse as it was not updating
> project
> >> dependencies.
> >>
> >>
> >> On Mon, Oct 7, 2013 at 10:50 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >wrote:
> >>
> >>> I have got root cause of my issue. I was not checking it thoroughly and
> >>> thinking that my plugin is not being loaded properly.
> >>>
> >>> Not sure about root cause yet. I have declared plugin dependency in my
> >>> Struts2 sample application's pom.xml as
> >>>
> >>> <dependency>
> >>>        <groupId>bean-validator-plugin</groupId>
> >>>         <artifactId>bean-validator</artifactId>
> >>>         <version>1.0-SNAPSHOT</version>
> >>>   </dependency>
> >>>
> >>> but some how this is not being included in my Application, i used
> Eclipse
> >>> export to export war file in standalone tomcat server and on cross
> checking
> >>> lib folder,my plugin jar file was not there.
> >>>
> >>> Thanks
> >>> Umesh
> >>>
> >>>
> >>> On Mon, Oct 7, 2013 at 10:28 PM, Dave Newton <davelnewton@gmail.com
> >wrote:
> >>>
> >>>> On Mon, Oct 7, 2013 at 12:53 PM, Umesh Awasthi <
> umeshawasthi@gmail.com
> >>>> >wrote:
> >>>>
> >>>> > Not sure why its showing this structure, i tried git for first time
> so
> >>>> > might be i have done some wrong steps.
> >>>> >
> >>>>
> >>>> No, it's fine; that's part of the github directory structure.
> >>>>
> >>>>
> >>>> > On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty <mgainty@hotmail.com
> >
> >>>> > wrote:
> >>>> >
> >>>> > > struts-plugin.xml should be always be located in
> >>>> > >
> >>>> > >
> >>>> > >
> >>>> >
> >>>>
> https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml
> >>>>
> >>>>
> >>>> It is.
> >>>>
> >>>> Dave
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> With Regards
> >>> Umesh Awasthi
> >>> http://www.travellingrants.com/
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> With Regards
> >> Umesh Awasthi
> >> http://www.travellingrants.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
My demo app

https://github.com/lukaszlenart/struts2-jsr303-example

Anyway, first the plugin must be fully operational, right now it
performs validation but it lacks of validation messages ;-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/10/8 Lukasz Lenart <lu...@apache.org>:
> After installing the plugin locally (mvn clean source:jar install) I
> have added it as follow:
>
>         <dependency>
>             <groupId>struts2-jsr303-validator-plugin</groupId>
>             <artifactId>jsr303-validator</artifactId>
>             <version>1.0-SNAPSHOT</version>
>         </dependency>
>
>         <dependency>
>             <groupId>org.hibernate</groupId>
>             <artifactId>hibernate-validator</artifactId>
>             <version>4.3.1.Final</version>
>         </dependency>
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/10/8 Umesh Awasthi <um...@gmail.com>:
>> Thanks Everyone, issue was with my Eclipse as it was not updating project
>> dependencies.
>>
>>
>> On Mon, Oct 7, 2013 at 10:50 PM, Umesh Awasthi <um...@gmail.com>wrote:
>>
>>> I have got root cause of my issue. I was not checking it thoroughly and
>>> thinking that my plugin is not being loaded properly.
>>>
>>> Not sure about root cause yet. I have declared plugin dependency in my
>>> Struts2 sample application's pom.xml as
>>>
>>> <dependency>
>>>        <groupId>bean-validator-plugin</groupId>
>>>         <artifactId>bean-validator</artifactId>
>>>         <version>1.0-SNAPSHOT</version>
>>>   </dependency>
>>>
>>> but some how this is not being included in my Application, i used Eclipse
>>> export to export war file in standalone tomcat server and on cross checking
>>> lib folder,my plugin jar file was not there.
>>>
>>> Thanks
>>> Umesh
>>>
>>>
>>> On Mon, Oct 7, 2013 at 10:28 PM, Dave Newton <da...@gmail.com>wrote:
>>>
>>>> On Mon, Oct 7, 2013 at 12:53 PM, Umesh Awasthi <umeshawasthi@gmail.com
>>>> >wrote:
>>>>
>>>> > Not sure why its showing this structure, i tried git for first time so
>>>> > might be i have done some wrong steps.
>>>> >
>>>>
>>>> No, it's fine; that's part of the github directory structure.
>>>>
>>>>
>>>> > On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty <mg...@hotmail.com>
>>>> > wrote:
>>>> >
>>>> > > struts-plugin.xml should be always be located in
>>>> > >
>>>> > >
>>>> > >
>>>> >
>>>> https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml
>>>>
>>>>
>>>> It is.
>>>>
>>>> Dave
>>>>
>>>
>>>
>>>
>>> --
>>> With Regards
>>> Umesh Awasthi
>>> http://www.travellingrants.com/
>>>
>>>
>>>
>>
>>
>>
>> --
>> With Regards
>> Umesh Awasthi
>> http://www.travellingrants.com/

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


Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
After installing the plugin locally (mvn clean source:jar install) I
have added it as follow:

        <dependency>
            <groupId>struts2-jsr303-validator-plugin</groupId>
            <artifactId>jsr303-validator</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>

        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
            <version>4.3.1.Final</version>
        </dependency>


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/10/8 Umesh Awasthi <um...@gmail.com>:
> Thanks Everyone, issue was with my Eclipse as it was not updating project
> dependencies.
>
>
> On Mon, Oct 7, 2013 at 10:50 PM, Umesh Awasthi <um...@gmail.com>wrote:
>
>> I have got root cause of my issue. I was not checking it thoroughly and
>> thinking that my plugin is not being loaded properly.
>>
>> Not sure about root cause yet. I have declared plugin dependency in my
>> Struts2 sample application's pom.xml as
>>
>> <dependency>
>>        <groupId>bean-validator-plugin</groupId>
>>         <artifactId>bean-validator</artifactId>
>>         <version>1.0-SNAPSHOT</version>
>>   </dependency>
>>
>> but some how this is not being included in my Application, i used Eclipse
>> export to export war file in standalone tomcat server and on cross checking
>> lib folder,my plugin jar file was not there.
>>
>> Thanks
>> Umesh
>>
>>
>> On Mon, Oct 7, 2013 at 10:28 PM, Dave Newton <da...@gmail.com>wrote:
>>
>>> On Mon, Oct 7, 2013 at 12:53 PM, Umesh Awasthi <umeshawasthi@gmail.com
>>> >wrote:
>>>
>>> > Not sure why its showing this structure, i tried git for first time so
>>> > might be i have done some wrong steps.
>>> >
>>>
>>> No, it's fine; that's part of the github directory structure.
>>>
>>>
>>> > On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty <mg...@hotmail.com>
>>> > wrote:
>>> >
>>> > > struts-plugin.xml should be always be located in
>>> > >
>>> > >
>>> > >
>>> >
>>> https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml
>>>
>>>
>>> It is.
>>>
>>> Dave
>>>
>>
>>
>>
>> --
>> With Regards
>> Umesh Awasthi
>> http://www.travellingrants.com/
>>
>>
>>
>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/

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


Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Thanks Everyone, issue was with my Eclipse as it was not updating project
dependencies.


On Mon, Oct 7, 2013 at 10:50 PM, Umesh Awasthi <um...@gmail.com>wrote:

> I have got root cause of my issue. I was not checking it thoroughly and
> thinking that my plugin is not being loaded properly.
>
> Not sure about root cause yet. I have declared plugin dependency in my
> Struts2 sample application's pom.xml as
>
> <dependency>
>        <groupId>bean-validator-plugin</groupId>
>         <artifactId>bean-validator</artifactId>
>         <version>1.0-SNAPSHOT</version>
>   </dependency>
>
> but some how this is not being included in my Application, i used Eclipse
> export to export war file in standalone tomcat server and on cross checking
> lib folder,my plugin jar file was not there.
>
> Thanks
> Umesh
>
>
> On Mon, Oct 7, 2013 at 10:28 PM, Dave Newton <da...@gmail.com>wrote:
>
>> On Mon, Oct 7, 2013 at 12:53 PM, Umesh Awasthi <umeshawasthi@gmail.com
>> >wrote:
>>
>> > Not sure why its showing this structure, i tried git for first time so
>> > might be i have done some wrong steps.
>> >
>>
>> No, it's fine; that's part of the github directory structure.
>>
>>
>> > On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty <mg...@hotmail.com>
>> > wrote:
>> >
>> > > struts-plugin.xml should be always be located in
>> > >
>> > >
>> > >
>> >
>> https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml
>>
>>
>> It is.
>>
>> Dave
>>
>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/
>
>
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
I have got root cause of my issue. I was not checking it thoroughly and
thinking that my plugin is not being loaded properly.

Not sure about root cause yet. I have declared plugin dependency in my
Struts2 sample application's pom.xml as

<dependency>
       <groupId>bean-validator-plugin</groupId>
        <artifactId>bean-validator</artifactId>
        <version>1.0-SNAPSHOT</version>
  </dependency>

but some how this is not being included in my Application, i used Eclipse
export to export war file in standalone tomcat server and on cross checking
lib folder,my plugin jar file was not there.

Thanks
Umesh


On Mon, Oct 7, 2013 at 10:28 PM, Dave Newton <da...@gmail.com> wrote:

> On Mon, Oct 7, 2013 at 12:53 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >wrote:
>
> > Not sure why its showing this structure, i tried git for first time so
> > might be i have done some wrong steps.
> >
>
> No, it's fine; that's part of the github directory structure.
>
>
> > On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty <mg...@hotmail.com>
> > wrote:
> >
> > > struts-plugin.xml should be always be located in
> > >
> > >
> > >
> >
> https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml
>
>
> It is.
>
> Dave
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Dave Newton <da...@gmail.com>.
On Mon, Oct 7, 2013 at 12:53 PM, Umesh Awasthi <um...@gmail.com>wrote:

> Not sure why its showing this structure, i tried git for first time so
> might be i have done some wrong steps.
>

No, it's fine; that's part of the github directory structure.


> On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty <mg...@hotmail.com>
> wrote:
>
> > struts-plugin.xml should be always be located in
> >
> >
> >
> https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml


It is.

Dave

Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Hi Martin,

Not sure why its showing this structure, i tried git for first time so
might be i have done some wrong steps.

But in my local repo struts-plugin.xml in inside resource folder and even
in the jar file it is in root folder.




On Mon, Oct 7, 2013 at 10:06 PM, Martin Gainty <mg...@hotmail.com> wrote:

> you have created a link to 'src' which redirects struts-plugin.xml located
> in 'src' link
>
> Here is the result of the redirect
>
>
> https://github.com/umeshawasthi/jsr303-validator-plugin/tree/master/src/main/resources/struts-plugin.xml
>
>
>
> struts-plugin.xml should be always be located in
>
>
> https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml
>
>
> unlink src
>
>
>
> ..should do it..
> Martin
> ______________________________________________
>
>
>
>
>
>
> > From: lukaszlenart@apache.org
> > Date: Mon, 7 Oct 2013 17:35:07 +0200
> > Subject: Re: Parent package is not defined
> > To: user@struts.apache.org
> >
> > It works for me ;-) Right now preparing small demo.
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > > any hint ? :)
> > >
> > >
> > > On Mon, Oct 7, 2013 at 2:19 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >wrote:
> > >
> > >> Hi Lukasz,
> > >>
> > >> here is the repo link
> > >>
> > >> https://github.com/umeshawasthi/jsr303-validator-plugin
> > >>
> > >> Thanks
> > >> Umesh
> > >>
> > >>
> > >> On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart <
> lukaszlenart@apache.org>wrote:
> > >>
> > >>> Yes, please do :-)
> > >>>
> > >>> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > >>> > No, its not in sub-directory
> > >>> > I can share gitHub link if want to have look at structure or files?
> > >>> >
> > >>> >
> > >>> > On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <
> thechrispratt@gmail.com
> > >>> >wrote:
> > >>> >
> > >>> >> In the top directory (not a sub directory) of the jar file. It
> should
> > >>> NOT
> > >>> >> be in a subdirectory like META-INF or WEB-INF.
> > >>> >> (*Chris*)
> > >>> >>
> > >>> >>
> > >>> >> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <
> umeshawasthi@gmail.com
> > >>> >> >wrote:
> > >>> >>
> > >>> >> > Hi Chris,
> > >>> >> >
> > >>> >> > Not sure what you mean by root directory?
> > >>> >> >
> > >>> >> > Hi Lukasz,
> > >>> >> >
> > >>> >> > I cross checked and struts-plugin.xml is there.
> > >>> >> >
> > >>> >> >
> > >>> >> >
> > >>> >> >
> > >>> >> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <
> > >>> thechrispratt@gmail.com
> > >>> >> > >wrote:
> > >>> >> >
> > >>> >> > > And in the root directory of the jar file, correct?
> > >>> >> > > (*Chris*)
> > >>> >> > >
> > >>> >> > >
> > >>> >> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <
> > >>> umeshawasthi@gmail.com
> > >>> >> > > >wrote:
> > >>> >> > >
> > >>> >> > > > Yes, its there
> > >>> >> > > > Still i will cross check it.
> > >>> >> > > >
> > >>> >> > > > Thanks
> > >>> >> > > > Umesh
> > >>> >> > > >
> > >>> >> > > >
> > >>> >> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
> > >>> >> > lukaszlenart@apache.org
> > >>> >> > > > >wrote:
> > >>> >> > > >
> > >>> >> > > > > Are you sure that the struts-plugin.xml exists in the jar?
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > > > Regards
> > >>> >> > > > > --
> > >>> >> > > > > Łukasz
> > >>> >> > > > > + 48 606 323 122 http://www.lenart.org.pl/
> > >>> >> > > > >
> > >>> >> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > >>> >> > > > > > Hi Lukaz,
> > >>> >> > > > > >
> > >>> >> > > > > > Its name is struts-plugin.xml, moreover i have used
> maven to
> > >>> >> > generate
> > >>> >> > > > > > plugin structure for me.
> > >>> >> > > > > > Not sure why it is happening like this.
> > >>> >> > > > > >
> > >>> >> > > > > > I even cross checked it with other plugin provided with
> > >>> Struts
> > >>> >> > > > > distribution
> > >>> >> > > > > > and everything is same not sure why this is happening.
> > >>> >> > > > > >
> > >>> >> > > > > >
> > >>> >> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> > >>> >> > > > lukaszlenart@apache.org
> > >>> >> > > > > >wrote:
> > >>> >> > > > > >
> > >>> >> > > > > >> How did you name your xml file? It must be
> > >>> struts-plugin.xml and
> > >>> >> > > then
> > >>> >> > > > > >> framework will automatically load it.
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >> Regards
> > >>> >> > > > > >> --
> > >>> >> > > > > >> Łukasz
> > >>> >> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
> > >>> >> > > > > >>
> > >>> >> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> > >>> >> > > > > >> > 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/
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > >
> > >>> ---------------------------------------------------------------------
> > >>> >> > > > > >> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > >>> >> > > > > >> For additional commands, e-mail:
> > >>> user-help@struts.apache.org
> > >>> >> > > > > >>
> > >>> >> > > > > >>
> > >>> >> > > > > >
> > >>> >> > > > > >
> > >>> >> > > > > > --
> > >>> >> > > > > > With Regards
> > >>> >> > > > > > Umesh Awasthi
> > >>> >> > > > > > http://www.travellingrants.com/
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >>
> ---------------------------------------------------------------------
> > >>> >> > > > > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > >>> >> > > > > For additional commands, e-mail:
> user-help@struts.apache.org
> > >>> >> > > > >
> > >>> >> > > > >
> > >>> >> > > >
> > >>> >> > > >
> > >>> >> > > > --
> > >>> >> > > > With Regards
> > >>> >> > > > Umesh Awasthi
> > >>> >> > > > http://www.travellingrants.com/
> > >>> >> > > >
> > >>> >> > >
> > >>> >> >
> > >>> >> >
> > >>> >> >
> > >>> >> > --
> > >>> >> > With Regards
> > >>> >> > Umesh Awasthi
> > >>> >> > http://www.travellingrants.com/
> > >>> >> >
> > >>> >>
> > >>> >
> > >>> >
> > >>> >
> > >>> > --
> > >>> > With Regards
> > >>> > Umesh Awasthi
> > >>> > http://www.travellingrants.com/
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >>> For additional commands, e-mail: user-help@struts.apache.org
> > >>>
> > >>>
> > >>
> > >>
> > >> --
> > >> With Regards
> > >> Umesh Awasthi
> > >> http://www.travellingrants.com/
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > > --
> > > With Regards
> > > Umesh Awasthi
> > > http://www.travellingrants.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

RE: Parent package is not defined

Posted by Martin Gainty <mg...@hotmail.com>.
you have created a link to 'src' which redirects struts-plugin.xml located in 'src' link 

Here is the result of the redirect

https://github.com/umeshawasthi/jsr303-validator-plugin/tree/master/src/main/resources/struts-plugin.xml

 

struts-plugin.xml should be always be located in

https://github.com/umeshawasthi/jsr303-validator-plugin/src/main/resources/struts-plugin.xml


unlink src

 

..should do it..
Martin 
______________________________________________ 


  



> From: lukaszlenart@apache.org
> Date: Mon, 7 Oct 2013 17:35:07 +0200
> Subject: Re: Parent package is not defined
> To: user@struts.apache.org
> 
> It works for me ;-) Right now preparing small demo.
> 
> 
> Regards
> -- 
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> 
> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > any hint ? :)
> >
> >
> > On Mon, Oct 7, 2013 at 2:19 PM, Umesh Awasthi <um...@gmail.com>wrote:
> >
> >> Hi Lukasz,
> >>
> >> here is the repo link
> >>
> >> https://github.com/umeshawasthi/jsr303-validator-plugin
> >>
> >> Thanks
> >> Umesh
> >>
> >>
> >> On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart <lu...@apache.org>wrote:
> >>
> >>> Yes, please do :-)
> >>>
> >>> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> >>> > No, its not in sub-directory
> >>> > I can share gitHub link if want to have look at structure or files?
> >>> >
> >>> >
> >>> > On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <thechrispratt@gmail.com
> >>> >wrote:
> >>> >
> >>> >> In the top directory (not a sub directory) of the jar file. It should
> >>> NOT
> >>> >> be in a subdirectory like META-INF or WEB-INF.
> >>> >> (*Chris*)
> >>> >>
> >>> >>
> >>> >> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >>> >> >wrote:
> >>> >>
> >>> >> > Hi Chris,
> >>> >> >
> >>> >> > Not sure what you mean by root directory?
> >>> >> >
> >>> >> > Hi Lukasz,
> >>> >> >
> >>> >> > I cross checked and struts-plugin.xml is there.
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <
> >>> thechrispratt@gmail.com
> >>> >> > >wrote:
> >>> >> >
> >>> >> > > And in the root directory of the jar file, correct?
> >>> >> > > (*Chris*)
> >>> >> > >
> >>> >> > >
> >>> >> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <
> >>> umeshawasthi@gmail.com
> >>> >> > > >wrote:
> >>> >> > >
> >>> >> > > > Yes, its there
> >>> >> > > > Still i will cross check it.
> >>> >> > > >
> >>> >> > > > Thanks
> >>> >> > > > Umesh
> >>> >> > > >
> >>> >> > > >
> >>> >> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
> >>> >> > lukaszlenart@apache.org
> >>> >> > > > >wrote:
> >>> >> > > >
> >>> >> > > > > Are you sure that the struts-plugin.xml exists in the jar?
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > > > Regards
> >>> >> > > > > --
> >>> >> > > > > Łukasz
> >>> >> > > > > + 48 606 323 122 http://www.lenart.org.pl/
> >>> >> > > > >
> >>> >> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> >>> >> > > > > > Hi Lukaz,
> >>> >> > > > > >
> >>> >> > > > > > Its name is struts-plugin.xml, moreover i have used maven to
> >>> >> > generate
> >>> >> > > > > > plugin structure for me.
> >>> >> > > > > > Not sure why it is happening like this.
> >>> >> > > > > >
> >>> >> > > > > > I even cross checked it with other plugin provided with
> >>> Struts
> >>> >> > > > > distribution
> >>> >> > > > > > and everything is same not sure why this is happening.
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> >>> >> > > > lukaszlenart@apache.org
> >>> >> > > > > >wrote:
> >>> >> > > > > >
> >>> >> > > > > >> How did you name your xml file? It must be
> >>> struts-plugin.xml and
> >>> >> > > then
> >>> >> > > > > >> framework will automatically load it.
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >> Regards
> >>> >> > > > > >> --
> >>> >> > > > > >> Łukasz
> >>> >> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
> >>> >> > > > > >>
> >>> >> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> >>> >> > > > > >> > 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/
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > >
> >>> ---------------------------------------------------------------------
> >>> >> > > > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> >> > > > > >> For additional commands, e-mail:
> >>> user-help@struts.apache.org
> >>> >> > > > > >>
> >>> >> > > > > >>
> >>> >> > > > > >
> >>> >> > > > > >
> >>> >> > > > > > --
> >>> >> > > > > > With Regards
> >>> >> > > > > > Umesh Awasthi
> >>> >> > > > > > http://www.travellingrants.com/
> >>> >> > > > >
> >>> >> > > > >
> >>> >> ---------------------------------------------------------------------
> >>> >> > > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> >> > > > > For additional commands, e-mail: user-help@struts.apache.org
> >>> >> > > > >
> >>> >> > > > >
> >>> >> > > >
> >>> >> > > >
> >>> >> > > > --
> >>> >> > > > With Regards
> >>> >> > > > Umesh Awasthi
> >>> >> > > > http://www.travellingrants.com/
> >>> >> > > >
> >>> >> > >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> > --
> >>> >> > With Regards
> >>> >> > Umesh Awasthi
> >>> >> > http://www.travellingrants.com/
> >>> >> >
> >>> >>
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > With Regards
> >>> > Umesh Awasthi
> >>> > http://www.travellingrants.com/
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> With Regards
> >> Umesh Awasthi
> >> http://www.travellingrants.com/
> >>
> >>
> >>
> >
> >
> >
> > --
> > With Regards
> > Umesh Awasthi
> > http://www.travellingrants.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
 		 	   		  

Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
It works for me ;-) Right now preparing small demo.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/10/7 Umesh Awasthi <um...@gmail.com>:
> any hint ? :)
>
>
> On Mon, Oct 7, 2013 at 2:19 PM, Umesh Awasthi <um...@gmail.com>wrote:
>
>> Hi Lukasz,
>>
>> here is the repo link
>>
>> https://github.com/umeshawasthi/jsr303-validator-plugin
>>
>> Thanks
>> Umesh
>>
>>
>> On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart <lu...@apache.org>wrote:
>>
>>> Yes, please do :-)
>>>
>>> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
>>> > No, its not in sub-directory
>>> > I can share gitHub link if want to have look at structure or files?
>>> >
>>> >
>>> > On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <thechrispratt@gmail.com
>>> >wrote:
>>> >
>>> >> In the top directory (not a sub directory) of the jar file.  It should
>>> NOT
>>> >> be in a subdirectory like META-INF or WEB-INF.
>>> >>   (*Chris*)
>>> >>
>>> >>
>>> >> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <umeshawasthi@gmail.com
>>> >> >wrote:
>>> >>
>>> >> > Hi Chris,
>>> >> >
>>> >> > Not sure what you mean by root directory?
>>> >> >
>>> >> > Hi Lukasz,
>>> >> >
>>> >> > I cross checked and struts-plugin.xml is there.
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <
>>> thechrispratt@gmail.com
>>> >> > >wrote:
>>> >> >
>>> >> > > And in the root directory of the jar file, correct?
>>> >> > >   (*Chris*)
>>> >> > >
>>> >> > >
>>> >> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <
>>> umeshawasthi@gmail.com
>>> >> > > >wrote:
>>> >> > >
>>> >> > > > Yes, its there
>>> >> > > > Still i will cross check it.
>>> >> > > >
>>> >> > > > Thanks
>>> >> > > > Umesh
>>> >> > > >
>>> >> > > >
>>> >> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
>>> >> > lukaszlenart@apache.org
>>> >> > > > >wrote:
>>> >> > > >
>>> >> > > > > Are you sure that the struts-plugin.xml exists in the jar?
>>> >> > > > >
>>> >> > > > >
>>> >> > > > > Regards
>>> >> > > > > --
>>> >> > > > > Łukasz
>>> >> > > > > + 48 606 323 122 http://www.lenart.org.pl/
>>> >> > > > >
>>> >> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
>>> >> > > > > > Hi Lukaz,
>>> >> > > > > >
>>> >> > > > > > Its name is struts-plugin.xml, moreover i have used maven to
>>> >> > generate
>>> >> > > > > > plugin structure for me.
>>> >> > > > > > Not sure why it is happening like this.
>>> >> > > > > >
>>> >> > > > > > I even cross checked it with other plugin provided with
>>> Struts
>>> >> > > > > distribution
>>> >> > > > > > and everything is same not sure why this is happening.
>>> >> > > > > >
>>> >> > > > > >
>>> >> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
>>> >> > > > lukaszlenart@apache.org
>>> >> > > > > >wrote:
>>> >> > > > > >
>>> >> > > > > >> How did you name your xml file? It must be
>>> struts-plugin.xml and
>>> >> > > then
>>> >> > > > > >> framework will automatically load it.
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >> Regards
>>> >> > > > > >> --
>>> >> > > > > >> Łukasz
>>> >> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
>>> >> > > > > >>
>>> >> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
>>> >> > > > > >> > 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/
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > >
>>> ---------------------------------------------------------------------
>>> >> > > > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> >> > > > > >> For additional commands, e-mail:
>>> user-help@struts.apache.org
>>> >> > > > > >>
>>> >> > > > > >>
>>> >> > > > > >
>>> >> > > > > >
>>> >> > > > > > --
>>> >> > > > > > With Regards
>>> >> > > > > > Umesh Awasthi
>>> >> > > > > > http://www.travellingrants.com/
>>> >> > > > >
>>> >> > > > >
>>> >> ---------------------------------------------------------------------
>>> >> > > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> >> > > > > For additional commands, e-mail: user-help@struts.apache.org
>>> >> > > > >
>>> >> > > > >
>>> >> > > >
>>> >> > > >
>>> >> > > > --
>>> >> > > > With Regards
>>> >> > > > Umesh Awasthi
>>> >> > > > http://www.travellingrants.com/
>>> >> > > >
>>> >> > >
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > With Regards
>>> >> > Umesh Awasthi
>>> >> > http://www.travellingrants.com/
>>> >> >
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > With Regards
>>> > Umesh Awasthi
>>> > http://www.travellingrants.com/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>>
>> --
>> With Regards
>> Umesh Awasthi
>> http://www.travellingrants.com/
>>
>>
>>
>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/

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


Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
any hint ? :)


On Mon, Oct 7, 2013 at 2:19 PM, Umesh Awasthi <um...@gmail.com>wrote:

> Hi Lukasz,
>
> here is the repo link
>
> https://github.com/umeshawasthi/jsr303-validator-plugin
>
> Thanks
> Umesh
>
>
> On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart <lu...@apache.org>wrote:
>
>> Yes, please do :-)
>>
>> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
>> > No, its not in sub-directory
>> > I can share gitHub link if want to have look at structure or files?
>> >
>> >
>> > On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <thechrispratt@gmail.com
>> >wrote:
>> >
>> >> In the top directory (not a sub directory) of the jar file.  It should
>> NOT
>> >> be in a subdirectory like META-INF or WEB-INF.
>> >>   (*Chris*)
>> >>
>> >>
>> >> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <umeshawasthi@gmail.com
>> >> >wrote:
>> >>
>> >> > Hi Chris,
>> >> >
>> >> > Not sure what you mean by root directory?
>> >> >
>> >> > Hi Lukasz,
>> >> >
>> >> > I cross checked and struts-plugin.xml is there.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <
>> thechrispratt@gmail.com
>> >> > >wrote:
>> >> >
>> >> > > And in the root directory of the jar file, correct?
>> >> > >   (*Chris*)
>> >> > >
>> >> > >
>> >> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <
>> umeshawasthi@gmail.com
>> >> > > >wrote:
>> >> > >
>> >> > > > Yes, its there
>> >> > > > Still i will cross check it.
>> >> > > >
>> >> > > > Thanks
>> >> > > > Umesh
>> >> > > >
>> >> > > >
>> >> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
>> >> > lukaszlenart@apache.org
>> >> > > > >wrote:
>> >> > > >
>> >> > > > > Are you sure that the struts-plugin.xml exists in the jar?
>> >> > > > >
>> >> > > > >
>> >> > > > > Regards
>> >> > > > > --
>> >> > > > > Łukasz
>> >> > > > > + 48 606 323 122 http://www.lenart.org.pl/
>> >> > > > >
>> >> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
>> >> > > > > > Hi Lukaz,
>> >> > > > > >
>> >> > > > > > Its name is struts-plugin.xml, moreover i have used maven to
>> >> > generate
>> >> > > > > > plugin structure for me.
>> >> > > > > > Not sure why it is happening like this.
>> >> > > > > >
>> >> > > > > > I even cross checked it with other plugin provided with
>> Struts
>> >> > > > > distribution
>> >> > > > > > and everything is same not sure why this is happening.
>> >> > > > > >
>> >> > > > > >
>> >> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
>> >> > > > lukaszlenart@apache.org
>> >> > > > > >wrote:
>> >> > > > > >
>> >> > > > > >> How did you name your xml file? It must be
>> struts-plugin.xml and
>> >> > > then
>> >> > > > > >> framework will automatically load it.
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >> Regards
>> >> > > > > >> --
>> >> > > > > >> Łukasz
>> >> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
>> >> > > > > >>
>> >> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
>> >> > > > > >> > 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/
>> >> > > > > >>
>> >> > > > > >>
>> >> > >
>> ---------------------------------------------------------------------
>> >> > > > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> > > > > >> For additional commands, e-mail:
>> user-help@struts.apache.org
>> >> > > > > >>
>> >> > > > > >>
>> >> > > > > >
>> >> > > > > >
>> >> > > > > > --
>> >> > > > > > With Regards
>> >> > > > > > Umesh Awasthi
>> >> > > > > > http://www.travellingrants.com/
>> >> > > > >
>> >> > > > >
>> >> ---------------------------------------------------------------------
>> >> > > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> > > > > For additional commands, e-mail: user-help@struts.apache.org
>> >> > > > >
>> >> > > > >
>> >> > > >
>> >> > > >
>> >> > > > --
>> >> > > > With Regards
>> >> > > > Umesh Awasthi
>> >> > > > http://www.travellingrants.com/
>> >> > > >
>> >> > >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > With Regards
>> >> > Umesh Awasthi
>> >> > http://www.travellingrants.com/
>> >> >
>> >>
>> >
>> >
>> >
>> > --
>> > With Regards
>> > Umesh Awasthi
>> > http://www.travellingrants.com/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/
>
>
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Hi Lukasz,

here is the repo link

https://github.com/umeshawasthi/jsr303-validator-plugin

Thanks
Umesh


On Mon, Oct 7, 2013 at 12:13 PM, Lukasz Lenart <lu...@apache.org>wrote:

> Yes, please do :-)
>
> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > No, its not in sub-directory
> > I can share gitHub link if want to have look at structure or files?
> >
> >
> > On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <thechrispratt@gmail.com
> >wrote:
> >
> >> In the top directory (not a sub directory) of the jar file.  It should
> NOT
> >> be in a subdirectory like META-INF or WEB-INF.
> >>   (*Chris*)
> >>
> >>
> >> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >> >wrote:
> >>
> >> > Hi Chris,
> >> >
> >> > Not sure what you mean by root directory?
> >> >
> >> > Hi Lukasz,
> >> >
> >> > I cross checked and struts-plugin.xml is there.
> >> >
> >> >
> >> >
> >> >
> >> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <thechrispratt@gmail.com
> >> > >wrote:
> >> >
> >> > > And in the root directory of the jar file, correct?
> >> > >   (*Chris*)
> >> > >
> >> > >
> >> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <
> umeshawasthi@gmail.com
> >> > > >wrote:
> >> > >
> >> > > > Yes, its there
> >> > > > Still i will cross check it.
> >> > > >
> >> > > > Thanks
> >> > > > Umesh
> >> > > >
> >> > > >
> >> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
> >> > lukaszlenart@apache.org
> >> > > > >wrote:
> >> > > >
> >> > > > > Are you sure that the struts-plugin.xml exists in the jar?
> >> > > > >
> >> > > > >
> >> > > > > Regards
> >> > > > > --
> >> > > > > Łukasz
> >> > > > > + 48 606 323 122 http://www.lenart.org.pl/
> >> > > > >
> >> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> >> > > > > > Hi Lukaz,
> >> > > > > >
> >> > > > > > Its name is struts-plugin.xml, moreover i have used maven to
> >> > generate
> >> > > > > > plugin structure for me.
> >> > > > > > Not sure why it is happening like this.
> >> > > > > >
> >> > > > > > I even cross checked it with other plugin provided with Struts
> >> > > > > distribution
> >> > > > > > and everything is same not sure why this is happening.
> >> > > > > >
> >> > > > > >
> >> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> >> > > > lukaszlenart@apache.org
> >> > > > > >wrote:
> >> > > > > >
> >> > > > > >> How did you name your xml file? It must be struts-plugin.xml
> and
> >> > > then
> >> > > > > >> framework will automatically load it.
> >> > > > > >>
> >> > > > > >>
> >> > > > > >> Regards
> >> > > > > >> --
> >> > > > > >> Łukasz
> >> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
> >> > > > > >>
> >> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> >> > > > > >> > 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/
> >> > > > > >>
> >> > > > > >>
> >> > >
> ---------------------------------------------------------------------
> >> > > > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > > > > >> For additional commands, e-mail: user-help@struts.apache.org
> >> > > > > >>
> >> > > > > >>
> >> > > > > >
> >> > > > > >
> >> > > > > > --
> >> > > > > > With Regards
> >> > > > > > Umesh Awasthi
> >> > > > > > http://www.travellingrants.com/
> >> > > > >
> >> > > > >
> >> ---------------------------------------------------------------------
> >> > > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> > > > > For additional commands, e-mail: user-help@struts.apache.org
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > With Regards
> >> > > > Umesh Awasthi
> >> > > > http://www.travellingrants.com/
> >> > > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > With Regards
> >> > Umesh Awasthi
> >> > http://www.travellingrants.com/
> >> >
> >>
> >
> >
> >
> > --
> > With Regards
> > Umesh Awasthi
> > http://www.travellingrants.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
Yes, please do :-)

2013/10/7 Umesh Awasthi <um...@gmail.com>:
> No, its not in sub-directory
> I can share gitHub link if want to have look at structure or files?
>
>
> On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <th...@gmail.com>wrote:
>
>> In the top directory (not a sub directory) of the jar file.  It should NOT
>> be in a subdirectory like META-INF or WEB-INF.
>>   (*Chris*)
>>
>>
>> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <umeshawasthi@gmail.com
>> >wrote:
>>
>> > Hi Chris,
>> >
>> > Not sure what you mean by root directory?
>> >
>> > Hi Lukasz,
>> >
>> > I cross checked and struts-plugin.xml is there.
>> >
>> >
>> >
>> >
>> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <thechrispratt@gmail.com
>> > >wrote:
>> >
>> > > And in the root directory of the jar file, correct?
>> > >   (*Chris*)
>> > >
>> > >
>> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <umeshawasthi@gmail.com
>> > > >wrote:
>> > >
>> > > > Yes, its there
>> > > > Still i will cross check it.
>> > > >
>> > > > Thanks
>> > > > Umesh
>> > > >
>> > > >
>> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
>> > lukaszlenart@apache.org
>> > > > >wrote:
>> > > >
>> > > > > Are you sure that the struts-plugin.xml exists in the jar?
>> > > > >
>> > > > >
>> > > > > Regards
>> > > > > --
>> > > > > Łukasz
>> > > > > + 48 606 323 122 http://www.lenart.org.pl/
>> > > > >
>> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
>> > > > > > Hi Lukaz,
>> > > > > >
>> > > > > > Its name is struts-plugin.xml, moreover i have used maven to
>> > generate
>> > > > > > plugin structure for me.
>> > > > > > Not sure why it is happening like this.
>> > > > > >
>> > > > > > I even cross checked it with other plugin provided with Struts
>> > > > > distribution
>> > > > > > and everything is same not sure why this is happening.
>> > > > > >
>> > > > > >
>> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
>> > > > lukaszlenart@apache.org
>> > > > > >wrote:
>> > > > > >
>> > > > > >> How did you name your xml file? It must be struts-plugin.xml and
>> > > then
>> > > > > >> framework will automatically load it.
>> > > > > >>
>> > > > > >>
>> > > > > >> Regards
>> > > > > >> --
>> > > > > >> Łukasz
>> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
>> > > > > >>
>> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
>> > > > > >> > 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/
>> > > > > >>
>> > > > > >>
>> > > ---------------------------------------------------------------------
>> > > > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > > > > >> For additional commands, e-mail: user-help@struts.apache.org
>> > > > > >>
>> > > > > >>
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > With Regards
>> > > > > > Umesh Awasthi
>> > > > > > http://www.travellingrants.com/
>> > > > >
>> > > > >
>> ---------------------------------------------------------------------
>> > > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > > > > For additional commands, e-mail: user-help@struts.apache.org
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > > --
>> > > > With Regards
>> > > > Umesh Awasthi
>> > > > http://www.travellingrants.com/
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > With Regards
>> > Umesh Awasthi
>> > http://www.travellingrants.com/
>> >
>>
>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/

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


Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
No, its not in sub-directory
I can share gitHub link if want to have look at structure or files?


On Mon, Oct 7, 2013 at 12:08 PM, Chris Pratt <th...@gmail.com>wrote:

> In the top directory (not a sub directory) of the jar file.  It should NOT
> be in a subdirectory like META-INF or WEB-INF.
>   (*Chris*)
>
>
> On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >wrote:
>
> > Hi Chris,
> >
> > Not sure what you mean by root directory?
> >
> > Hi Lukasz,
> >
> > I cross checked and struts-plugin.xml is there.
> >
> >
> >
> >
> > On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <thechrispratt@gmail.com
> > >wrote:
> >
> > > And in the root directory of the jar file, correct?
> > >   (*Chris*)
> > >
> > >
> > > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <umeshawasthi@gmail.com
> > > >wrote:
> > >
> > > > Yes, its there
> > > > Still i will cross check it.
> > > >
> > > > Thanks
> > > > Umesh
> > > >
> > > >
> > > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
> > lukaszlenart@apache.org
> > > > >wrote:
> > > >
> > > > > Are you sure that the struts-plugin.xml exists in the jar?
> > > > >
> > > > >
> > > > > Regards
> > > > > --
> > > > > Łukasz
> > > > > + 48 606 323 122 http://www.lenart.org.pl/
> > > > >
> > > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > > > > > Hi Lukaz,
> > > > > >
> > > > > > Its name is struts-plugin.xml, moreover i have used maven to
> > generate
> > > > > > plugin structure for me.
> > > > > > Not sure why it is happening like this.
> > > > > >
> > > > > > I even cross checked it with other plugin provided with Struts
> > > > > distribution
> > > > > > and everything is same not sure why this is happening.
> > > > > >
> > > > > >
> > > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> > > > lukaszlenart@apache.org
> > > > > >wrote:
> > > > > >
> > > > > >> How did you name your xml file? It must be struts-plugin.xml and
> > > then
> > > > > >> framework will automatically load it.
> > > > > >>
> > > > > >>
> > > > > >> Regards
> > > > > >> --
> > > > > >> Łukasz
> > > > > >> + 48 606 323 122 http://www.lenart.org.pl/
> > > > > >>
> > > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> > > > > >> > 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/
> > > > > >>
> > > > > >>
> > > ---------------------------------------------------------------------
> > > > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > > >> For additional commands, e-mail: user-help@struts.apache.org
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > > > > > --
> > > > > > With Regards
> > > > > > Umesh Awasthi
> > > > > > http://www.travellingrants.com/
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > > For additional commands, e-mail: user-help@struts.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > With Regards
> > > > Umesh Awasthi
> > > > http://www.travellingrants.com/
> > > >
> > >
> >
> >
> >
> > --
> > With Regards
> > Umesh Awasthi
> > http://www.travellingrants.com/
> >
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Chris Pratt <th...@gmail.com>.
In the top directory (not a sub directory) of the jar file.  It should NOT
be in a subdirectory like META-INF or WEB-INF.
  (*Chris*)


On Sun, Oct 6, 2013 at 11:37 PM, Umesh Awasthi <um...@gmail.com>wrote:

> Hi Chris,
>
> Not sure what you mean by root directory?
>
> Hi Lukasz,
>
> I cross checked and struts-plugin.xml is there.
>
>
>
>
> On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <thechrispratt@gmail.com
> >wrote:
>
> > And in the root directory of the jar file, correct?
> >   (*Chris*)
> >
> >
> > On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <umeshawasthi@gmail.com
> > >wrote:
> >
> > > Yes, its there
> > > Still i will cross check it.
> > >
> > > Thanks
> > > Umesh
> > >
> > >
> > > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <
> lukaszlenart@apache.org
> > > >wrote:
> > >
> > > > Are you sure that the struts-plugin.xml exists in the jar?
> > > >
> > > >
> > > > Regards
> > > > --
> > > > Łukasz
> > > > + 48 606 323 122 http://www.lenart.org.pl/
> > > >
> > > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > > > > Hi Lukaz,
> > > > >
> > > > > Its name is struts-plugin.xml, moreover i have used maven to
> generate
> > > > > plugin structure for me.
> > > > > Not sure why it is happening like this.
> > > > >
> > > > > I even cross checked it with other plugin provided with Struts
> > > > distribution
> > > > > and everything is same not sure why this is happening.
> > > > >
> > > > >
> > > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> > > lukaszlenart@apache.org
> > > > >wrote:
> > > > >
> > > > >> How did you name your xml file? It must be struts-plugin.xml and
> > then
> > > > >> framework will automatically load it.
> > > > >>
> > > > >>
> > > > >> Regards
> > > > >> --
> > > > >> Łukasz
> > > > >> + 48 606 323 122 http://www.lenart.org.pl/
> > > > >>
> > > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> > > > >> > 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/
> > > > >>
> > > > >>
> > ---------------------------------------------------------------------
> > > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > >> For additional commands, e-mail: user-help@struts.apache.org
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > With Regards
> > > > > Umesh Awasthi
> > > > > http://www.travellingrants.com/
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > With Regards
> > > Umesh Awasthi
> > > http://www.travellingrants.com/
> > >
> >
>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/
>

Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Hi Chris,

Not sure what you mean by root directory?

Hi Lukasz,

I cross checked and struts-plugin.xml is there.




On Mon, Oct 7, 2013 at 12:05 PM, Chris Pratt <th...@gmail.com>wrote:

> And in the root directory of the jar file, correct?
>   (*Chris*)
>
>
> On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <umeshawasthi@gmail.com
> >wrote:
>
> > Yes, its there
> > Still i will cross check it.
> >
> > Thanks
> > Umesh
> >
> >
> > On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <lukaszlenart@apache.org
> > >wrote:
> >
> > > Are you sure that the struts-plugin.xml exists in the jar?
> > >
> > >
> > > Regards
> > > --
> > > Łukasz
> > > + 48 606 323 122 http://www.lenart.org.pl/
> > >
> > > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > > > Hi Lukaz,
> > > >
> > > > Its name is struts-plugin.xml, moreover i have used maven to generate
> > > > plugin structure for me.
> > > > Not sure why it is happening like this.
> > > >
> > > > I even cross checked it with other plugin provided with Struts
> > > distribution
> > > > and everything is same not sure why this is happening.
> > > >
> > > >
> > > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> > lukaszlenart@apache.org
> > > >wrote:
> > > >
> > > >> How did you name your xml file? It must be struts-plugin.xml and
> then
> > > >> framework will automatically load it.
> > > >>
> > > >>
> > > >> Regards
> > > >> --
> > > >> Łukasz
> > > >> + 48 606 323 122 http://www.lenart.org.pl/
> > > >>
> > > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> > > >> > 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/
> > > >>
> > > >>
> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > >> For additional commands, e-mail: user-help@struts.apache.org
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > With Regards
> > > > Umesh Awasthi
> > > > http://www.travellingrants.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> >
> > --
> > With Regards
> > Umesh Awasthi
> > http://www.travellingrants.com/
> >
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Chris Pratt <th...@gmail.com>.
And in the root directory of the jar file, correct?
  (*Chris*)


On Sun, Oct 6, 2013 at 11:33 PM, Umesh Awasthi <um...@gmail.com>wrote:

> Yes, its there
> Still i will cross check it.
>
> Thanks
> Umesh
>
>
> On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <lukaszlenart@apache.org
> >wrote:
>
> > Are you sure that the struts-plugin.xml exists in the jar?
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
> >
> > 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > > Hi Lukaz,
> > >
> > > Its name is struts-plugin.xml, moreover i have used maven to generate
> > > plugin structure for me.
> > > Not sure why it is happening like this.
> > >
> > > I even cross checked it with other plugin provided with Struts
> > distribution
> > > and everything is same not sure why this is happening.
> > >
> > >
> > > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <
> lukaszlenart@apache.org
> > >wrote:
> > >
> > >> How did you name your xml file? It must be struts-plugin.xml and then
> > >> framework will automatically load it.
> > >>
> > >>
> > >> Regards
> > >> --
> > >> Łukasz
> > >> + 48 606 323 122 http://www.lenart.org.pl/
> > >>
> > >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> > >> > 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/
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > >> For additional commands, e-mail: user-help@struts.apache.org
> > >>
> > >>
> > >
> > >
> > > --
> > > With Regards
> > > Umesh Awasthi
> > > http://www.travellingrants.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/
>

Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Yes, its there
Still i will cross check it.

Thanks
Umesh


On Mon, Oct 7, 2013 at 11:47 AM, Lukasz Lenart <lu...@apache.org>wrote:

> Are you sure that the struts-plugin.xml exists in the jar?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/10/7 Umesh Awasthi <um...@gmail.com>:
> > Hi Lukaz,
> >
> > Its name is struts-plugin.xml, moreover i have used maven to generate
> > plugin structure for me.
> > Not sure why it is happening like this.
> >
> > I even cross checked it with other plugin provided with Struts
> distribution
> > and everything is same not sure why this is happening.
> >
> >
> > On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <lukaszlenart@apache.org
> >wrote:
> >
> >> How did you name your xml file? It must be struts-plugin.xml and then
> >> framework will automatically load it.
> >>
> >>
> >> Regards
> >> --
> >> Łukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> >> > 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/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >
> >
> > --
> > With Regards
> > Umesh Awasthi
> > http://www.travellingrants.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
Are you sure that the struts-plugin.xml exists in the jar?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/10/7 Umesh Awasthi <um...@gmail.com>:
> Hi Lukaz,
>
> Its name is struts-plugin.xml, moreover i have used maven to generate
> plugin structure for me.
> Not sure why it is happening like this.
>
> I even cross checked it with other plugin provided with Struts distribution
> and everything is same not sure why this is happening.
>
>
> On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <lu...@apache.org>wrote:
>
>> How did you name your xml file? It must be struts-plugin.xml and then
>> framework will automatically load it.
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
>> > 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/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> --
> With Regards
> Umesh Awasthi
> http://www.travellingrants.com/

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


Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Hi Lukaz,

Its name is struts-plugin.xml, moreover i have used maven to generate
plugin structure for me.
Not sure why it is happening like this.

I even cross checked it with other plugin provided with Struts distribution
and everything is same not sure why this is happening.


On Mon, Oct 7, 2013 at 10:20 AM, Lukasz Lenart <lu...@apache.org>wrote:

> How did you name your xml file? It must be struts-plugin.xml and then
> framework will automatically load it.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2013/10/5 Umesh Awasthi <um...@gmail.com>:
> > 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/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Lukasz Lenart <lu...@apache.org>.
How did you name your xml file? It must be struts-plugin.xml and then
framework will automatically load it.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2013/10/5 Umesh Awasthi <um...@gmail.com>:
> 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/

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


Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
Any one have any other inputs?
There was some differences in the DTD defined under plugin xml file and
struts.xml file but even after changing them, i am getting same exception
on server startup


On Sat, Oct 5, 2013 at 8:41 PM, Yaragalla Muralidhar <
yaragallamurali@gmail.com> wrote:

> 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 <umeshawasthi@gmail.com
> >wrote:
>
> > what you mean by registered plugin with struts.xml?
> >
> >
> > On Sat, Oct 5, 2013 at 8:31 PM, Yaragalla Muralidhar <
> > yaragallamurali@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 <umeshawasthi@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/
> >
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Re: Parent package is not defined

Posted by Yaragalla Muralidhar <ya...@gmail.com>.
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 <um...@gmail.com>wrote:

> what you mean by registered plugin with struts.xml?
>
>
> On Sat, Oct 5, 2013 at 8:31 PM, Yaragalla Muralidhar <
> yaragallamurali@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 <umeshawasthi@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/
>

Re: Parent package is not defined

Posted by Umesh Awasthi <um...@gmail.com>.
what you mean by registered plugin with struts.xml?


On Sat, Oct 5, 2013 at 8:31 PM, Yaragalla Muralidhar <
yaragallamurali@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 <umeshawasthi@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/

Re: Parent package is not defined

Posted by Yaragalla Muralidhar <ya...@gmail.com>.
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 <um...@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/
>