SpringComponentInjector

2012-03-02 Thread Douglas Ferguson
I just pulled in SpringComponentInjector and it seems to be subclassing a class 
that is not longer in wicket-ioc.

What's the correct way to using Spring injection with 1.5?

Douglas

Re: SpringComponentInjector

2012-03-02 Thread Martin Grigorov
On Fri, Mar 2, 2012 at 11:16 AM, Douglas Ferguson the...@gmail.com wrote:
 I'm getting classloader issues. I get this from eclipse:

 The type org.apache.wicket.injection.ComponentInjector cannot be resolved. It 
 is indirectly referenced from required .class files       
 VHConnectApplication.java

 It seems like ComponentInjector is not in the 1.5 ioc jar, and 
 SpringComponentInjector extends ComponentInjector

 These are my dependencies

                !--  wicket --

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket/artifactId
                        version${wicket.version}/version
                        typepom/type
                /dependency
                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-datetime/artifactId
                        version${wicket.version}/version
                /dependency

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-spring-annot/artifactId
                        version1.3.7/version

Why you have 1.3.x dependency for project based on 1.5.x ?

                /dependency

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-ioc/artifactId
                        version${wicket.version}/version
                /dependency

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-spring/artifactId
                        version${wicket.version}/version
                /dependency

                !--  wicket --







 On Mar 2, 2012, at 2:54 AM, Martin Grigorov wrote:

 The same

 On Fri, Mar 2, 2012 at 10:49 AM, Douglas Ferguson the...@gmail.com wrote:
 I just pulled in SpringComponentInjector and it seems to be subclassing a 
 class that is not longer in wicket-ioc.

 What's the correct way to using Spring injection with 1.5?

 Douglas



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com


Re: SpringComponentInjector

2012-03-02 Thread Douglas Ferguson
That's the latest version of the annotation module. I guess it got merged into 
another module?

On Mar 2, 2012, at 3:18 AM, Martin Grigorov wrote:

 On Fri, Mar 2, 2012 at 11:16 AM, Douglas Ferguson the...@gmail.com wrote:
 I'm getting classloader issues. I get this from eclipse:
 
 The type org.apache.wicket.injection.ComponentInjector cannot be resolved. 
 It is indirectly referenced from required .class files   
 VHConnectApplication.java
 
 It seems like ComponentInjector is not in the 1.5 ioc jar, and 
 SpringComponentInjector extends ComponentInjector
 
 These are my dependencies
 
!--  wicket --
 
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version${wicket.version}/version
typepom/type
/dependency
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-datetime/artifactId
version${wicket.version}/version
/dependency
 
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-spring-annot/artifactId
version1.3.7/version
 
 Why you have 1.3.x dependency for project based on 1.5.x ?
 
/dependency
 
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-ioc/artifactId
version${wicket.version}/version
/dependency
 
dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket-spring/artifactId
version${wicket.version}/version
/dependency
 
!--  wicket --
 
 
 
 
 
 
 
 On Mar 2, 2012, at 2:54 AM, Martin Grigorov wrote:
 
 The same
 
 On Fri, Mar 2, 2012 at 10:49 AM, Douglas Ferguson the...@gmail.com wrote:
 I just pulled in SpringComponentInjector and it seems to be subclassing a 
 class that is not longer in wicket-ioc.
 
 What's the correct way to using Spring injection with 1.5?
 
 Douglas
 
 
 
 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector

2012-03-02 Thread Martin Grigorov
Yes, Few years ago for 1.4.0
Remove it.
Check wicket-examples - Spring project if something more is still not OK.

On Fri, Mar 2, 2012 at 11:30 AM, Douglas Ferguson the...@gmail.com wrote:
 That's the latest version of the annotation module. I guess it got merged 
 into another module?

 On Mar 2, 2012, at 3:18 AM, Martin Grigorov wrote:

 On Fri, Mar 2, 2012 at 11:16 AM, Douglas Ferguson the...@gmail.com wrote:
 I'm getting classloader issues. I get this from eclipse:

 The type org.apache.wicket.injection.ComponentInjector cannot be resolved. 
 It is indirectly referenced from required .class files       
 VHConnectApplication.java

 It seems like ComponentInjector is not in the 1.5 ioc jar, and 
 SpringComponentInjector extends ComponentInjector

 These are my dependencies

                !--  wicket --

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket/artifactId
                        version${wicket.version}/version
                        typepom/type
                /dependency
                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-datetime/artifactId
                        version${wicket.version}/version
                /dependency

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-spring-annot/artifactId
                        version1.3.7/version

 Why you have 1.3.x dependency for project based on 1.5.x ?

                /dependency

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-ioc/artifactId
                        version${wicket.version}/version
                /dependency

                dependency
                        groupIdorg.apache.wicket/groupId
                        artifactIdwicket-spring/artifactId
                        version${wicket.version}/version
                /dependency

                !--  wicket --







 On Mar 2, 2012, at 2:54 AM, Martin Grigorov wrote:

 The same

 On Fri, Mar 2, 2012 at 10:49 AM, Douglas Ferguson the...@gmail.com wrote:
 I just pulled in SpringComponentInjector and it seems to be subclassing a 
 class that is not longer in wicket-ioc.

 What's the correct way to using Spring injection with 1.5?

 Douglas



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



SpringComponentInjector and non null fields

2012-02-14 Thread martin.dilger
Hi,

I just realized painfully, that SpringComponentInjector only injects Beans,
when the Fields are non-null.
Is there a reason for this Behavior?
The Reason I ask is, we use the SpringComponentInjector in all our Tests
to inject Mocks with Injector.get().inject(this).
This only works, if we set all Mocks to null in tearDown.
No problem so far, but this is surely not a typical use case, but
nonetheless, I would like to know if this is desired, and if we could
propably allow to configure this behavior (as a flag or whatever?). 
Just for me to understand this  better.
Thanks

Martin

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-null-fields-tp4386918p4386918.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non null fields

2012-02-14 Thread Robert Kühne
There is a remark on this here:
https://cwiki.apache.org/WICKET/spring.html


When doing this it is important to remember not to initialize
dependencies, to null or any other value, e.g.private ContactDao
dao=null;. Don't do this because the injector will run before the
subclass initializes its fields, and so the dao=null will override the
created proxy with null.

Robert

Am 14.02.2012 13:58, schrieb martin.dilger:
 Hi,

 I just realized painfully, that SpringComponentInjector only injects Beans,
 when the Fields are non-null.
 Is there a reason for this Behavior?
 The Reason I ask is, we use the SpringComponentInjector in all our Tests
 to inject Mocks with Injector.get().inject(this).
 This only works, if we set all Mocks to null in tearDown.
 No problem so far, but this is surely not a typical use case, but
 nonetheless, I would like to know if this is desired, and if we could
 propably allow to configure this behavior (as a flag or whatever?). 
 Just for me to understand this  better.
 Thanks

 Martin

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-null-fields-tp4386918p4386918.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Re: SpringComponentInjector and non null fields

2012-02-14 Thread martin.dilger
Hi,

thanks, this is true, but I dont think this is the Point I refer to, since I
call Injector.get().inject(this) in our Test, so I explicitely request
SpringBean-injection.
The Problem is this Line in Class Injector:

if (field.get(object) == null)
{

Object value = 
factory.getFieldValue(field, object);

if (value != null)
{
field.set(object, value);
}
}

Injection only happens, if the Field is non-null.
I can not think of any use-case why this is?

Any comments?

Thanks in advance!

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-null-fields-tp4386918p4387511.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non null fields

2012-02-14 Thread Igor Vaynberg
that is there to give users a chance at test time to override
injection partially, as in

component c=new mycomponent();
c.service1=mock(service.class);
injector.inject(c);

injector will inject everything but service1. key here is to make sure
service doesnt have to be defined in the test's spring context.

-igor

On Tue, Feb 14, 2012 at 8:08 AM, martin.dilger
martin.dil...@googlemail.com wrote:
 Hi,

 thanks, this is true, but I dont think this is the Point I refer to, since I
 call Injector.get().inject(this) in our Test, so I explicitely request
 SpringBean-injection.
 The Problem is this Line in Class Injector:

 if (field.get(object) == null)
                                {

                                        Object value = 
 factory.getFieldValue(field, object);

                                        if (value != null)
                                        {
                                                field.set(object, value);
                                        }
                                }

 Injection only happens, if the Field is non-null.
 I can not think of any use-case why this is?

 Any comments?

 Thanks in advance!

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-null-fields-tp4386918p4387511.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non null fields

2012-02-14 Thread martin.dilger
ok,

understood, thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-null-fields-tp4386918p4387545.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



SpringComponentInjector and non-Wicket servlets

2011-04-07 Thread jsinai
We are seeing an intermittent problem with our webapp, where we are seeing
the exception below. We have servlets other than Wicket's in our webapp,
which provide remote services. The problem seems to be that somehow the
Wicket proxy for a given Spring bean is being requested, perhaps from a
different thread than Wicket's. Is there a solution for this?

Any advice is appreciated.

Julian

org.apache.wicket.WicketRuntimeException: There is no application attached
to
current thread http-8443-1
at org.apache.wicket.Application.get(Application.java:179)
at
org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159)
at
org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219)
at
org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205)
at
org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317)
at
WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy()
at
com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868)


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non-Wicket servlets

2011-04-07 Thread Igor Vaynberg
the proxies wicket generates are only to be used by wicket, so do not
pass those to other services.

-igor


On Thu, Apr 7, 2011 at 11:28 AM, jsinai jsi...@yahoo.com wrote:
 We are seeing an intermittent problem with our webapp, where we are seeing
 the exception below. We have servlets other than Wicket's in our webapp,
 which provide remote services. The problem seems to be that somehow the
 Wicket proxy for a given Spring bean is being requested, perhaps from a
 different thread than Wicket's. Is there a solution for this?

 Any advice is appreciated.

 Julian

 org.apache.wicket.WicketRuntimeException: There is no application attached
 to
 current thread http-8443-1
        at org.apache.wicket.Application.get(Application.java:179)
        at
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159)
        at
 org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219)
        at
 org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205)
        at
 org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317)
        at
 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy()
        at
 com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868)


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non-Wicket servlets

2011-04-07 Thread Martin Grigorov
Or use WicketSessionFilter to export the Application and Session to other
servlets
Hacky but ...

On Thu, Apr 7, 2011 at 9:41 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 the proxies wicket generates are only to be used by wicket, so do not
 pass those to other services.

 -igor


 On Thu, Apr 7, 2011 at 11:28 AM, jsinai jsi...@yahoo.com wrote:
  We are seeing an intermittent problem with our webapp, where we are
 seeing
  the exception below. We have servlets other than Wicket's in our webapp,
  which provide remote services. The problem seems to be that somehow the
  Wicket proxy for a given Spring bean is being requested, perhaps from a
  different thread than Wicket's. Is there a solution for this?
 
  Any advice is appreciated.
 
  Julian
 
  org.apache.wicket.WicketRuntimeException: There is no application
 attached
  to
  current thread http-8443-1
 at org.apache.wicket.Application.get(Application.java:179)
 at
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159)
 at
 
 org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219)
 at
 
 org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205)
 at
 
 org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317)
 at
 
 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy()
 at
 
 com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868)
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: SpringComponentInjector and non-Wicket servlets

2011-04-07 Thread jsinai
Igor, thanks for your reply. But that's the weird thing: we are not passing
those proxies to other services. We use the @SpringBean annotation only in
the UI code.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434532.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non-Wicket servlets

2011-04-07 Thread Igor Vaynberg
well, looks like com.hytrust.policy.update.DynamicUpdater is using a
proxy, is that a wicket class?

-igor

On Thu, Apr 7, 2011 at 1:48 PM, jsinai jsi...@yahoo.com wrote:
 Igor, thanks for your reply. But that's the weird thing: we are not passing
 those proxies to other services. We use the @SpringBean annotation only in
 the UI code.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434532.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non-Wicket servlets

2011-04-07 Thread vineet semwal
say you are using @springbean in a  non component in a wicket thread
and you are using it in a non wicket thread too,
you can do something like below

  if(Application.exists())
{
  InjectorHolder.getInjector().inject(this);
}else{
//set service my way
service=ServicesFactory.getService();
}

On Thu, Apr 7, 2011 at 11:58 PM, jsinai jsi...@yahoo.com wrote:
 We are seeing an intermittent problem with our webapp, where we are seeing
 the exception below. We have servlets other than Wicket's in our webapp,
 which provide remote services. The problem seems to be that somehow the
 Wicket proxy for a given Spring bean is being requested, perhaps from a
 different thread than Wicket's. Is there a solution for this?

 Any advice is appreciated.

 Julian

 org.apache.wicket.WicketRuntimeException: There is no application attached
 to
 current thread http-8443-1
        at org.apache.wicket.Application.get(Application.java:179)
        at
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$ContextLocator.getSpringContext(SpringComponentInjector.java:159)
        at
 org.apache.wicket.spring.SpringBeanLocator.getSpringContext(SpringBeanLocator.java:219)
        at
 org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget(SpringBeanLocator.java:205)
        at
 org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:317)
        at
 WICKET_com.hytrust.arc.TrustedHostMgr$$EnhancerByCGLIB$$60187c65.refreshAllPolicy()
        at
 com.hytrust.policy.update.DynamicUpdater.dynamicRefreshHost(DynamicUpdater.java:868)


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434182.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
thank you,

regards,
Vineet Semwal

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: SpringComponentInjector and non-Wicket servlets

2011-04-07 Thread jsinai
Thanks to Vineet and Igor for your help. I think I have an idea about what
we've been doing wrong.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/SpringComponentInjector-and-non-Wicket-servlets-tp3434182p3434738.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: where to find SpringComponentInjector class

2009-01-07 Thread francisco treacy
download wicket from
http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1 , open the archive
and include the wicket-spring-* jar(s) in your classpath

francisco

On Tue, Jan 6, 2009 at 8:37 PM, rjilani jil...@lifebiosystems.com wrote:

 Hi: can some one tell me which jars holds the class SpringComponentInjector.
 It doesn't look like the part of the core (I am using netbeans id that has
 pre-installed wicket jars). I also appreciate if some one tell me the url
 from where I can download the jar containing SpringComponentInjector.

 Thanks,
 RJ.
 --
 View this message in context: 
 http://www.nabble.com/where-to-find-SpringComponentInjector-class-tp21317448p21317448.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



where to find SpringComponentInjector class

2009-01-06 Thread rjilani

Hi: can some one tell me which jars holds the class SpringComponentInjector.
It doesn't look like the part of the core (I am using netbeans id that has
pre-installed wicket jars). I also appreciate if some one tell me the url
from where I can download the jar containing SpringComponentInjector.

Thanks,
RJ.
-- 
View this message in context: 
http://www.nabble.com/where-to-find-SpringComponentInjector-class-tp21317448p21317448.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



upgraded to 1.4m3 SpringComponentInjector exception

2008-09-17 Thread bryan0101

Hi,
  I have a small webapp in dev. Been working good in 1.3.4. I just tried it
out with 1.4m3 today, and is throwing a spring error. 
   I notice now the annotat package are incorporated into the spring
package, but that shouldn't affect the webapp. 

Here is the Exception:
ebApplicationContext(204) | Published root WebApplicationContext as
ServletContext attribute with name
[org.springframework.web.context.WebApplicationContext.ROOT]
INFO - ContextLoader.initWebApplicationContext(209) | Root
WebApplicationContext: initialization completed in 7890 ms
Sep 17, 2008 4:57:59 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter SecWebApplication
java.lang.NoSuchMethodError: org.apache.wicket.MetaDataKey: method init()V
not found
at
org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.init(SpringComponentInjector.java:56)
at
org.apache.wicket.spring.injection.annot.SpringComponentInjector.clinit(SpringComponentInjector.java:53)
at 
com.cookwok.http.web.SecWebApplication.init(SecWebApplication.java:60)
at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)

-
Here is the application class extends webapplication:

public final class SecWebApplication extends WebApplication
{

public SecWebApplication()
{
}

public Class getHomePage()
{
return SecSignIn.class;
}

protected void init()
{

addComponentInstantiationListener(new 
SpringComponentInjector(this));
configure(); 
..


Here is my web.xml:
?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4

display-namecookwok/display-name

!-- [INSERT FRAGMENT HERE] --
!-- Define the basename for a resource bundle for I18N --
context-param
   
param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valuemessages/param-value
/context-param
context-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/context-param

 
filter
   filter-nameSecWebApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
   
param-valuecom.cookwok.http.web.SecWebApplication/param-value
/init-param
init-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/init-param
load-on-startup1/load-on-startup
/filter


filter-mapping
filter-nameSecWebApplication/filter-name
url-pattern/app/*/url-pattern
/filter-mapping

filter
filter-nameencodingFilter/filter

Re: upgraded to 1.4m3 SpringComponentInjector exception

2008-09-17 Thread James Carman
What's in your WEB-INF/lib folder?  Do you have conflicting versions
of the SpringComponentInjector?  Are you using maven?  If so, try mvn
dependency:tree or mvn dependency:list to see what your classpath
looks like.

On Wed, Sep 17, 2008 at 8:05 PM, bryan0101 [EMAIL PROTECTED] wrote:

 Hi,
  I have a small webapp in dev. Been working good in 1.3.4. I just tried it
 out with 1.4m3 today, and is throwing a spring error.
   I notice now the annotat package are incorporated into the spring
 package, but that shouldn't affect the webapp.

 Here is the Exception:
 ebApplicationContext(204) | Published root WebApplicationContext as
 ServletContext attribute with name
 [org.springframework.web.context.WebApplicationContext.ROOT]
 INFO - ContextLoader.initWebApplicationContext(209) | Root
 WebApplicationContext: initialization completed in 7890 ms
 Sep 17, 2008 4:57:59 PM org.apache.catalina.core.StandardContext filterStart
 SEVERE: Exception starting filter SecWebApplication
 java.lang.NoSuchMethodError: org.apache.wicket.MetaDataKey: method init()V
 not found
at
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.init(SpringComponentInjector.java:56)
at
 org.apache.wicket.spring.injection.annot.SpringComponentInjector.clinit(SpringComponentInjector.java:53)
at 
 com.cookwok.http.web.SecWebApplication.init(SecWebApplication.java:60)
at 
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)

 -
 Here is the application class extends webapplication:

 public final class SecWebApplication extends WebApplication
 {

public SecWebApplication()
{
}

public Class getHomePage()
{
return SecSignIn.class;
}

protected void init()
{

addComponentInstantiationListener(new 
 SpringComponentInjector(this));
configure();
..

 
 Here is my web.xml:
 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4

display-namecookwok/display-name

!-- [INSERT FRAGMENT HERE] --
!-- Define the basename for a resource bundle for I18N --
context-param

 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valuemessages/param-value
/context-param
context-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/context-param


filter
   filter-nameSecWebApplication/filter-name

 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

 param-valuecom.cookwok.http.web.SecWebApplication/param-value
/init-param
init-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/init

Re: upgraded to 1.4m3 SpringComponentInjector exception

2008-09-17 Thread King Of All Germans
I got this error when I upgraded from 1.3 to 1.4.In my case, the reason was
that I had placed the new wicket jars into the WEB-INF/lib directory, but
had accidentally not removed all of the old ones.

On Wed, Sep 17, 2008 at 6:27 PM, James Carman [EMAIL PROTECTED]wrote:

 What's in your WEB-INF/lib folder?  Do you have conflicting versions
 of the SpringComponentInjector?  Are you using maven?  If so, try mvn
 dependency:tree or mvn dependency:list to see what your classpath
 looks like.

 On Wed, Sep 17, 2008 at 8:05 PM, bryan0101 [EMAIL PROTECTED] wrote:
 
  Hi,
   I have a small webapp in dev. Been working good in 1.3.4. I just tried
 it
  out with 1.4m3 today, and is throwing a spring error.
I notice now the annotat package are incorporated into the spring
  package, but that shouldn't affect the webapp.
 
  Here is the Exception:
  ebApplicationContext(204) | Published root WebApplicationContext as
  ServletContext attribute with name
  [org.springframework.web.context.WebApplicationContext.ROOT]
  INFO - ContextLoader.initWebApplicationContext(209) | Root
  WebApplicationContext: initialization completed in 7890 ms
  Sep 17, 2008 4:57:59 PM org.apache.catalina.core.StandardContext
 filterStart
  SEVERE: Exception starting filter SecWebApplication
  java.lang.NoSuchMethodError: org.apache.wicket.MetaDataKey: method
 init()V
  not found
 at
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.init(SpringComponentInjector.java:56)
 at
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector.clinit(SpringComponentInjector.java:53)
 at
 com.cookwok.http.web.SecWebApplication.init(SecWebApplication.java:60)
 at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
 at
 
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
 at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
 at
 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 at
 
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
 at
 
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
 at
 org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
 at
 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
 at
 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
 at
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
 at
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
 at
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
 at java.lang.Thread.run(Thread.java:619)
 
 
 -
  Here is the application class extends webapplication:
 
  public final class SecWebApplication extends WebApplication
  {
 
 public SecWebApplication()
 {
 }
 
 public Class getHomePage()
 {
 return SecSignIn.class;
 }
 
 protected void init()
 {
 
 addComponentInstantiationListener(new
 SpringComponentInjector(this));
 configure();
 ..
 
 
 
  Here is my web.xml:
  ?xml version=1.0 encoding=UTF-8?
  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
 
 display-namecookwok/display-name
 
 !-- [INSERT FRAGMENT HERE] --
 !-- Define the basename for a resource bundle for I18N --
 context-param
 
  param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
 param-valuemessages/param-value
 /context-param
 context-param
 param-nameconfiguration/param-name
 param-valuedevelopment/param-value
 /context-param
 
 
 filter
filter

Re: upgraded to 1.4m3 SpringComponentInjector exception

2008-09-17 Thread James Carman
That's kinda what I was gettin' at. :)


On Wed, Sep 17, 2008 at 9:37 PM, King Of All Germans
[EMAIL PROTECTED] wrote:
 I got this error when I upgraded from 1.3 to 1.4.In my case, the reason was
 that I had placed the new wicket jars into the WEB-INF/lib directory, but
 had accidentally not removed all of the old ones.

 On Wed, Sep 17, 2008 at 6:27 PM, James Carman [EMAIL PROTECTED]wrote:

 What's in your WEB-INF/lib folder?  Do you have conflicting versions
 of the SpringComponentInjector?  Are you using maven?  If so, try mvn
 dependency:tree or mvn dependency:list to see what your classpath
 looks like.

 On Wed, Sep 17, 2008 at 8:05 PM, bryan0101 [EMAIL PROTECTED] wrote:
 
  Hi,
   I have a small webapp in dev. Been working good in 1.3.4. I just tried
 it
  out with 1.4m3 today, and is throwing a spring error.
I notice now the annotat package are incorporated into the spring
  package, but that shouldn't affect the webapp.
 
  Here is the Exception:
  ebApplicationContext(204) | Published root WebApplicationContext as
  ServletContext attribute with name
  [org.springframework.web.context.WebApplicationContext.ROOT]
  INFO - ContextLoader.initWebApplicationContext(209) | Root
  WebApplicationContext: initialization completed in 7890 ms
  Sep 17, 2008 4:57:59 PM org.apache.catalina.core.StandardContext
 filterStart
  SEVERE: Exception starting filter SecWebApplication
  java.lang.NoSuchMethodError: org.apache.wicket.MetaDataKey: method
 init()V
  not found
 at
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.init(SpringComponentInjector.java:56)
 at
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector.clinit(SpringComponentInjector.java:53)
 at
 com.cookwok.http.web.SecWebApplication.init(SecWebApplication.java:60)
 at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
 at
 
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
 at
 
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
 at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
 at
 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 at
 
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
 at
 
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
 at
 org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
 at
 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
 at
 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
 at
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
 at
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
 at
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
 at java.lang.Thread.run(Thread.java:619)
 
 
 -
  Here is the application class extends webapplication:
 
  public final class SecWebApplication extends WebApplication
  {
 
 public SecWebApplication()
 {
 }
 
 public Class getHomePage()
 {
 return SecSignIn.class;
 }
 
 protected void init()
 {
 
 addComponentInstantiationListener(new
 SpringComponentInjector(this));
 configure();
 ..
 
 
 
  Here is my web.xml:
  ?xml version=1.0 encoding=UTF-8?
  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
 
 display-namecookwok/display-name
 
 !-- [INSERT FRAGMENT HERE] --
 !-- Define the basename for a resource bundle for I18N --
 context-param
 
  param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
 param-valuemessages/param-value
 /context-param
 context-param
 param-nameconfiguration/param-name

Re: upgraded to 1.4m3 SpringComponentInjector exception

2008-09-17 Thread King Of All Germans
I know.Our mails crossed in the ether.
(-;


On Wed, Sep 17, 2008 at 6:42 PM, James Carman [EMAIL PROTECTED]wrote:

 That's kinda what I was gettin' at. :)


 On Wed, Sep 17, 2008 at 9:37 PM, King Of All Germans
 [EMAIL PROTECTED] wrote:
  I got this error when I upgraded from 1.3 to 1.4.In my case, the reason
 was
  that I had placed the new wicket jars into the WEB-INF/lib directory, but
  had accidentally not removed all of the old ones.
 
  On Wed, Sep 17, 2008 at 6:27 PM, James Carman 
 [EMAIL PROTECTED]wrote:
 
  What's in your WEB-INF/lib folder?  Do you have conflicting versions
  of the SpringComponentInjector?  Are you using maven?  If so, try mvn
  dependency:tree or mvn dependency:list to see what your classpath
  looks like.
 
  On Wed, Sep 17, 2008 at 8:05 PM, bryan0101 [EMAIL PROTECTED] wrote:
  
   Hi,
I have a small webapp in dev. Been working good in 1.3.4. I just
 tried
  it
   out with 1.4m3 today, and is throwing a spring error.
 I notice now the annotat package are incorporated into the spring
   package, but that shouldn't affect the webapp.
  
   Here is the Exception:
   ebApplicationContext(204) | Published root WebApplicationContext as
   ServletContext attribute with name
   [org.springframework.web.context.WebApplicationContext.ROOT]
   INFO - ContextLoader.initWebApplicationContext(209) | Root
   WebApplicationContext: initialization completed in 7890 ms
   Sep 17, 2008 4:57:59 PM org.apache.catalina.core.StandardContext
  filterStart
   SEVERE: Exception starting filter SecWebApplication
   java.lang.NoSuchMethodError: org.apache.wicket.MetaDataKey: method
  init()V
   not found
  at
  
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.init(SpringComponentInjector.java:56)
  at
  
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector.clinit(SpringComponentInjector.java:53)
  at
  com.cookwok.http.web.SecWebApplication.init(SecWebApplication.java:60)
  at
  org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
  at
  
 
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
  at
  
 
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
  at
  
 
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
  at
  
 
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
  at
  
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
  at
  
 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  at
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  at
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  at
  
 
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
  at
  
 
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
  at
  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
  at
  org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
  at
  
 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
  at
  
 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  at
  
 
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
  at
  
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
  at
  
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
  at
  
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
  at java.lang.Thread.run(Thread.java:619)
  
  
 
 -
   Here is the application class extends webapplication:
  
   public final class SecWebApplication extends WebApplication
   {
  
  public SecWebApplication()
  {
  }
  
  public Class getHomePage()
  {
  return SecSignIn.class;
  }
  
  protected void init()
  {
  
  addComponentInstantiationListener(new
  SpringComponentInjector(this));
  configure();
  ..
  
  
 
 
   Here is my web.xml:
   ?xml version=1.0 encoding=UTF-8?
   web-app xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4
  
  display-namecookwok/display-name
  
  !-- [INSERT FRAGMENT HERE] --
  !-- Define

Re: upgraded to 1.4m3 SpringComponentInjector exception

2008-09-17 Thread Igor Vaynberg
1.3 and 1.4 are not binary compatible, you will have to recompile your
code against 1.4

-igor

On Wed, Sep 17, 2008 at 5:05 PM, bryan0101 [EMAIL PROTECTED] wrote:

 Hi,
  I have a small webapp in dev. Been working good in 1.3.4. I just tried it
 out with 1.4m3 today, and is throwing a spring error.
   I notice now the annotat package are incorporated into the spring
 package, but that shouldn't affect the webapp.

 Here is the Exception:
 ebApplicationContext(204) | Published root WebApplicationContext as
 ServletContext attribute with name
 [org.springframework.web.context.WebApplicationContext.ROOT]
 INFO - ContextLoader.initWebApplicationContext(209) | Root
 WebApplicationContext: initialization completed in 7890 ms
 Sep 17, 2008 4:57:59 PM org.apache.catalina.core.StandardContext filterStart
 SEVERE: Exception starting filter SecWebApplication
 java.lang.NoSuchMethodError: org.apache.wicket.MetaDataKey: method init()V
 not found
at
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.init(SpringComponentInjector.java:56)
at
 org.apache.wicket.spring.injection.annot.SpringComponentInjector.clinit(SpringComponentInjector.java:53)
at 
 com.cookwok.http.web.SecWebApplication.init(SecWebApplication.java:60)
at 
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)

 -
 Here is the application class extends webapplication:

 public final class SecWebApplication extends WebApplication
 {

public SecWebApplication()
{
}

public Class getHomePage()
{
return SecSignIn.class;
}

protected void init()
{

addComponentInstantiationListener(new 
 SpringComponentInjector(this));
configure();
..

 
 Here is my web.xml:
 ?xml version=1.0 encoding=UTF-8?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4

display-namecookwok/display-name

!-- [INSERT FRAGMENT HERE] --
!-- Define the basename for a resource bundle for I18N --
context-param

 param-namejavax.servlet.jsp.jstl.fmt.localizationContext/param-name
param-valuemessages/param-value
/context-param
context-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/context-param


filter
   filter-nameSecWebApplication/filter-name

 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

 param-valuecom.cookwok.http.web.SecWebApplication/param-value
/init-param
init-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/init-param
load-on-startup1/load-on-startup
/filter


filter-mapping
filter

Re: upgraded to 1.4m3 SpringComponentInjector exception

2008-09-17 Thread bryan0101

Ops, thanks. 
I used MyEclipse's builtin tomcat for test deployment, and even I took out
all the jars and changed build-path and does redeploy, it doesn't change the
jar automagically within the .metadata/eclipse.Tomcat/webapp . You'd
think that eclipse does check if the deploy dest has the jar files that
specified in project build path. 
A big cleanup works now.




King Of All Germans wrote:
 
 I know.Our mails crossed in the ether.
 (-;
 
 
 On Wed, Sep 17, 2008 at 6:42 PM, James Carman
 [EMAIL PROTECTED]wrote:
 
 That's kinda what I was gettin' at. :)


 On Wed, Sep 17, 2008 at 9:37 PM, King Of All Germans
 [EMAIL PROTECTED] wrote:
  I got this error when I upgraded from 1.3 to 1.4.In my case, the reason
 was
  that I had placed the new wicket jars into the WEB-INF/lib directory,
 but
  had accidentally not removed all of the old ones.
 
  On Wed, Sep 17, 2008 at 6:27 PM, James Carman 
 [EMAIL PROTECTED]wrote:
 
  What's in your WEB-INF/lib folder?  Do you have conflicting versions
  of the SpringComponentInjector?  Are you using maven?  If so, try mvn
  dependency:tree or mvn dependency:list to see what your classpath
  looks like.
 
  On Wed, Sep 17, 2008 at 8:05 PM, bryan0101 [EMAIL PROTECTED]
 wrote:
  
   Hi,
I have a small webapp in dev. Been working good in 1.3.4. I just
 tried
  it
   out with 1.4m3 today, and is throwing a spring error.
 I notice now the annotat package are incorporated into the spring
   package, but that shouldn't affect the webapp.
  
   Here is the Exception:
   ebApplicationContext(204) | Published root WebApplicationContext as
   ServletContext attribute with name
   [org.springframework.web.context.WebApplicationContext.ROOT]
   INFO - ContextLoader.initWebApplicationContext(209) | Root
   WebApplicationContext: initialization completed in 7890 ms
   Sep 17, 2008 4:57:59 PM org.apache.catalina.core.StandardContext
  filterStart
   SEVERE: Exception starting filter SecWebApplication
   java.lang.NoSuchMethodError: org.apache.wicket.MetaDataKey: method
  init()V
   not found
  at
  
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.init(SpringComponentInjector.java:56)
  at
  
 
 org.apache.wicket.spring.injection.annot.SpringComponentInjector.clinit(SpringComponentInjector.java:53)
  at
  com.cookwok.http.web.SecWebApplication.init(SecWebApplication.java:60)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
  at
  
 
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
  at
  
 
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
  at
  
 
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:108)
  at
  
 
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)
  at
  
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)
  at
  
 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
  at
 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
  at
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
  at
  
 
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
  at
  
 
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
  at
  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
  at
  org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
  at
  
 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
  at
  
 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
  at
  
 
 org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
  at
  
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
  at
  
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
  at
  
 
 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
  at java.lang.Thread.run(Thread.java:619)
  
  
 
 -
   Here is the application class extends webapplication:
  
   public final class SecWebApplication extends WebApplication
   {
  
  public SecWebApplication()
  {
  }
  
  public Class getHomePage()
  {
  return SecSignIn.class;
  }
  
  protected void init()
  {
  
  addComponentInstantiationListener(new
  SpringComponentInjector(this));
  configure