You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Musachy Barroso <mb...@wfscorp.com> on 2007/02/01 00:29:19 UTC

Re: struts.xml error - Element type "constant" must be declared

It was written using 2.0.3 :)

musachy

Don Brown wrote:
> I believe the tutorial requires at least Struts 2.0.3.
>
> Don
>
> On 1/31/07, shahab <sm...@pershing.com> wrote:
>>
>> Hi:
>>
>> I am using Struts 2.0.1. I have added few jar files from spring 2.0 
>> as well.
>>
>> I am trying struts 2 + spring + JPA. Similar to the example located at
>> http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html
>>
>> thanx
>> Shahab
>>
>>
>>
>> Joe Germuska wrote:
>> >
>> > On 1/31/07, shahab <sm...@pershing.com> wrote:
>> >>
>> >>
>> >> Hi:
>> >>
>> >> I think I would need some more help from you. I dont see any dtd 
>> or xsd
>> >> file
>> >> in my application.
>> >> What else I should look for?
>> >
>> >
>> > It's probably in the JAR.  Which version of Struts are you using?  The
>> > change was introduced after Struts 2.0.1
>> >
>> > Joe
>> > --
>> > Joe Germuska
>> > Joe@Germuska.com * http://blog.germuska.com
>> >
>> > "The truth is that we learned from João forever to be out of tune."
>> > -- Caetano Veloso
>> >
>> >
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8739461 
>>
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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


Re: struts.xml error - Element type "constant" must be declared

Posted by Dave Newton <ne...@yahoo.com>.
--- shahab <sm...@pershing.com> wrote:
> However, I am still getting the following error - 
> 
> SEVERE: Exception starting filter struts2
> Cannot locate the chosen ObjectFactory
> implementation: spring - [unknown
> location]
>     at
>
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:224)

  <constant name="struts.objectFactory"
value="spring"/>

d.



 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

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


Re: struts.xml error - Element type "constant" must be declared

Posted by Dave Newton <ne...@yahoo.com>.
I used the Spring plugin jar from the showcase app.

--- shahab <sm...@pershing.com> wrote:

> 
> Hi Dave:
> 
> I have spring.jar. But I couldnt find the
> "struts2-Spring-plugin.jar"
> anywhere.
> 
> Just to let you know, I am trying sometihng that
> Musachy has in
>
http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html.
> 
> thanx
> Shahab
> 
> 
> Dave Newton-4 wrote:
> > 
> > Whoops.
> > 
> > Do you have the Spring plugin jar in lib?
> > 
> > --- shahab <sm...@pershing.com> wrote:
> > 
> >> 
> >> Thanx
> >> 
> >> However, I am still getting the following error -
> 
> >> 
> >> SEVERE: Exception starting filter struts2
> >> Cannot locate the chosen ObjectFactory
> >> implementation: spring - [unknown
> >> location]
> >>     at
> >>
> >
>
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:224)
> >> 
> >> thanx
> >> Shahab
> >> 
> >> 
> >> Dave Newton-4 wrote:
> >> > 
> >> > --- shahab <sm...@pershing.com> wrote:
> >> >> How do I download 2.0.5 or the jar that you
> >> changed?
> >> > 
> >> > The JAR that I changed is
> >> > struts2-pell-multipart-plugin-2.0.4.jar; you
> >> already
> >> > have it. FWIW I'm having a different issue that
> >> may or
> >> > may not be related, so I don't know if making
> the
> >> same
> >> > change will work or if I just broke things
> worse
> >> by
> >> > making the change.
> >> > 
> >> > If you're not using the Pell plugin then you
> can
> >> > probably just remove the JAR from WEB-INF/lib
> and
> >> you
> >> > may not have the problem at all.
> >> > 
> >> > d.
> >> > 
> >> > 
> >> > 
> >> >  
> >> >
> >>
> >
>
____________________________________________________________________________________
> >> > Bored stiff? Loosen up... 
> >> > Download and play hundreds of games for free on
> >> Yahoo! Games.
> >> > http://games.yahoo.com/games/front
> >> > 
> >> >
> >>
> >
>
---------------------------------------------------------------------
> >> > To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> > For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> > 
> >> > 
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >>
> >
>
http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8758041
> >> Sent from the Struts - User mailing list archive
> at
> >> Nabble.com.
> >> 
> >> 
> >>
> >
>
---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> >> user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail:
> >> user-help@struts.apache.org
> >> 
> >> 
> > 
> > 
> > 
> >  
> >
>
____________________________________________________________________________________
> > Don't get soaked.  Take a quick peak at the
> forecast
> > with the Yahoo! Search weather shortcut.
> >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8758402
> Sent from the Struts - User mailing list archive at
> Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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


Re: struts.xml error - Element type "constant" must be declared

Posted by shahab <sm...@pershing.com>.
Hi Dave:

I have spring.jar. But I couldnt find the "struts2-Spring-plugin.jar"
anywhere.

Just to let you know, I am trying sometihng that Musachy has in
http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html.

thanx
Shahab


Dave Newton-4 wrote:
> 
> Whoops.
> 
> Do you have the Spring plugin jar in lib?
> 
> --- shahab <sm...@pershing.com> wrote:
> 
>> 
>> Thanx
>> 
>> However, I am still getting the following error - 
>> 
>> SEVERE: Exception starting filter struts2
>> Cannot locate the chosen ObjectFactory
>> implementation: spring - [unknown
>> location]
>>     at
>>
> org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:224)
>> 
>> thanx
>> Shahab
>> 
>> 
>> Dave Newton-4 wrote:
>> > 
>> > --- shahab <sm...@pershing.com> wrote:
>> >> How do I download 2.0.5 or the jar that you
>> changed?
>> > 
>> > The JAR that I changed is
>> > struts2-pell-multipart-plugin-2.0.4.jar; you
>> already
>> > have it. FWIW I'm having a different issue that
>> may or
>> > may not be related, so I don't know if making the
>> same
>> > change will work or if I just broke things worse
>> by
>> > making the change.
>> > 
>> > If you're not using the Pell plugin then you can
>> > probably just remove the JAR from WEB-INF/lib and
>> you
>> > may not have the problem at all.
>> > 
>> > d.
>> > 
>> > 
>> > 
>> >  
>> >
>>
> ____________________________________________________________________________________
>> > Bored stiff? Loosen up... 
>> > Download and play hundreds of games for free on
>> Yahoo! Games.
>> > http://games.yahoo.com/games/front
>> > 
>> >
>>
> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail:
>> user-help@struts.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8758041
>> Sent from the Struts - User mailing list archive at
>> Nabble.com.
>> 
>> 
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@struts.apache.org
>> For additional commands, e-mail:
>> user-help@struts.apache.org
>> 
>> 
> 
> 
> 
>  
> ____________________________________________________________________________________
> Don't get soaked.  Take a quick peak at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8758402
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: struts.xml error - Element type "constant" must be declared

Posted by Dave Newton <ne...@yahoo.com>.
Whoops.

Do you have the Spring plugin jar in lib?

--- shahab <sm...@pershing.com> wrote:

> 
> Thanx
> 
> However, I am still getting the following error - 
> 
> SEVERE: Exception starting filter struts2
> Cannot locate the chosen ObjectFactory
> implementation: spring - [unknown
> location]
>     at
>
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:224)
> 
> thanx
> Shahab
> 
> 
> Dave Newton-4 wrote:
> > 
> > --- shahab <sm...@pershing.com> wrote:
> >> How do I download 2.0.5 or the jar that you
> changed?
> > 
> > The JAR that I changed is
> > struts2-pell-multipart-plugin-2.0.4.jar; you
> already
> > have it. FWIW I'm having a different issue that
> may or
> > may not be related, so I don't know if making the
> same
> > change will work or if I just broke things worse
> by
> > making the change.
> > 
> > If you're not using the Pell plugin then you can
> > probably just remove the JAR from WEB-INF/lib and
> you
> > may not have the problem at all.
> > 
> > d.
> > 
> > 
> > 
> >  
> >
>
____________________________________________________________________________________
> > Bored stiff? Loosen up... 
> > Download and play hundreds of games for free on
> Yahoo! Games.
> > http://games.yahoo.com/games/front
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> > 
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8758041
> Sent from the Struts - User mailing list archive at
> Nabble.com.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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


Re: struts.xml error - Element type "constant" must be declared

Posted by shahab <sm...@pershing.com>.
Thanx

However, I am still getting the following error - 

SEVERE: Exception starting filter struts2
Cannot locate the chosen ObjectFactory implementation: spring - [unknown
location]
    at
org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:224)

thanx
Shahab


Dave Newton-4 wrote:
> 
> --- shahab <sm...@pershing.com> wrote:
>> How do I download 2.0.5 or the jar that you changed?
> 
> The JAR that I changed is
> struts2-pell-multipart-plugin-2.0.4.jar; you already
> have it. FWIW I'm having a different issue that may or
> may not be related, so I don't know if making the same
> change will work or if I just broke things worse by
> making the change.
> 
> If you're not using the Pell plugin then you can
> probably just remove the JAR from WEB-INF/lib and you
> may not have the problem at all.
> 
> d.
> 
> 
> 
>  
> ____________________________________________________________________________________
> Bored stiff? Loosen up... 
> Download and play hundreds of games for free on Yahoo! Games.
> http://games.yahoo.com/games/front
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8758041
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: struts.xml error - Element type "constant" must be declared

Posted by Dave Newton <ne...@yahoo.com>.
--- shahab <sm...@pershing.com> wrote:
> How do I download 2.0.5 or the jar that you changed?

The JAR that I changed is
struts2-pell-multipart-plugin-2.0.4.jar; you already
have it. FWIW I'm having a different issue that may or
may not be related, so I don't know if making the same
change will work or if I just broke things worse by
making the change.

If you're not using the Pell plugin then you can
probably just remove the JAR from WEB-INF/lib and you
may not have the problem at all.

d.



 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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


Re: struts.xml error - Element type "constant" must be declared

Posted by shahab <sm...@pershing.com>.
Hi:

How do I download 2.0.5 or the jar that you changed?

thanx
Shahab

Dave Newton-4 wrote:
> 
> --- shahab <sm...@pershing.com> wrote:
>> [...] PellMultiPartRequest
> 
> https://issues.apache.org/struts/browse/WW-1692
> 
> I changed the plugin config to the right name and
> re-jarred; YIMV.
> 
> Dave
> 
> 
> 
>  
> ____________________________________________________________________________________
> The fish are biting. 
> Get more visitors on your site using Yahoo! Search Marketing.
> http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8757412
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: struts.xml error - Element type "constant" must be declared

Posted by Dave Newton <ne...@yahoo.com>.
--- shahab <sm...@pershing.com> wrote:
> [...] PellMultiPartRequest

https://issues.apache.org/struts/browse/WW-1692

I changed the plugin config to the right name and
re-jarred; YIMV.

Dave



 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

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


Re: struts.xml error - Element type "constant" must be declared

Posted by shahab <sm...@pershing.com>.
thanx.

However, after I got the new jars tomcat cannot start the app, I get the
following erorr in locahost log - 

SEVERE: Exception starting filter struts2
Unable to load bean: type:org.apache.struts2.dispatcher.MultiPartRequest
class:org.apache.struts2.dispatcher.PellMultiPartRequest - bean -
jar:file:/export/home/mydev1/apache-tomcat-6.0.2/webapps/tms/WEB-INF/lib/struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138


I would greatly appreaciate your help.

thanx
Shahab

Dave Newton-4 wrote:
> 
> --- shahab <sm...@pershing.com> wrote:
>> Where can you get struts 2.0.3?
> 
> One place is http://people.apache.org/builds/struts/
> but I don't know if that's the official location or
> not.
> 
> Dave
> 
> 
> 
>  
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8753468
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: struts.xml error - Element type "constant" must be declared

Posted by Dave Newton <ne...@yahoo.com>.
--- shahab <sm...@pershing.com> wrote:
> Where can you get struts 2.0.3?

One place is http://people.apache.org/builds/struts/
but I don't know if that's the official location or
not.

Dave



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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


Re: struts.xml error - Element type "constant" must be declared

Posted by shahab <sm...@pershing.com>.
Hi:

Please ignore my silliness, as I am new to this. 
Where can you get struts 2.0.3? In the Struts download site, I only see
2.0.1.

Again, I apologize for my ignornance.

thanx
Shahab


Musachy Barroso-2 wrote:
> 
> It was written using 2.0.3 :)
> 
> musachy
> 
> Don Brown wrote:
>> I believe the tutorial requires at least Struts 2.0.3.
>>
>> Don
>>
>> On 1/31/07, shahab <sm...@pershing.com> wrote:
>>>
>>> Hi:
>>>
>>> I am using Struts 2.0.1. I have added few jar files from spring 2.0 
>>> as well.
>>>
>>> I am trying struts 2 + spring + JPA. Similar to the example located at
>>> http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html
>>>
>>> thanx
>>> Shahab
>>>
>>>
>>>
>>> Joe Germuska wrote:
>>> >
>>> > On 1/31/07, shahab <sm...@pershing.com> wrote:
>>> >>
>>> >>
>>> >> Hi:
>>> >>
>>> >> I think I would need some more help from you. I dont see any dtd 
>>> or xsd
>>> >> file
>>> >> in my application.
>>> >> What else I should look for?
>>> >
>>> >
>>> > It's probably in the JAR.  Which version of Struts are you using?  The
>>> > change was introduced after Struts 2.0.1
>>> >
>>> > Joe
>>> > --
>>> > Joe Germuska
>>> > Joe@Germuska.com * http://blog.germuska.com
>>> >
>>> > "The truth is that we learned from João forever to be out of tune."
>>> > -- Caetano Veloso
>>> >
>>> >
>>>
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8739461 
>>>
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/struts.xml-error---Element-type-%22constant%22-must-be-declared-tf3150981.html#a8748963
Sent from the Struts - User mailing list archive at Nabble.com.


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