I think I did. The below listner is what you are referring to right. I still
get the same exception
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
Also,in my Application class's init method i have the following code:
protected void init() {
super.init();
this.addComponentInstantiationListener(new
SpringComponentInjector(this));
this.getMarkupSettings().setStripWicketTags(true);
this.getDebugSettings().setAjaxDebugModeEnabled(false);
}
Really appreciated if some one could help me out here..
java.lang.IllegalStateException: No WebApplicationContext found: no
ContextLoaderListener registered?
at
org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70)
at
org.apache.wicket.spring.injection.annot.SpringComponentInjector.<init>(SpringComponentInjector.java:74)
at
com.uprr.app.uti.webapp.UtiWebApplication.init(UtiWebApplication.java:42)
at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:561)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
Marat Radchenko-2 wrote:
>
> You didn't init spring in your web.xml
> See
> http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes-other-web-configuration
>
> 2008/12/13 wicketworker <[email protected]>:
>>
>> I am getting the following exception while starting my jetty server :
>>
>> java.lang.IllegalStateException: No WebApplicationContext found: no
>> ContextLoaderListener registered?
>> at
>> org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:70)
>> at
>> org.apache.wicket.spring.SpringWebApplicationFactory.createApplication(SpringWebApplicationFactory.java:83)
>> at
>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:543)
>> at
>> org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>> at
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:620)
>> at
>> org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>>
>> Basically i was able to get @SpringBean annotation working, now i am
>> trying
>> to append scope="session" to one of my bean in the spring config..
>> Following
>> is what i have done:
>>
>> In Web.xml
>> ---------------------------------
>> <filter>
>> <filter-name>wicket.uti-webapp</filter-name>
>>
>> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
>> <init-param>
>> <param-name>applicationFactoryClassName</param-name>
>>
>> <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value>
>> </init-param>
>> <init-param>
>> <param-name>applicationBean</param-name>
>> <param-value>wicketApplication</param-value>
>> </init-param>
>> </filter>
>>
>> <listener>
>>
>> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
>> </listener>
>>
>> In Spring-Config
>> ------------------------
>> <bean id="wicketApplication"
>> class="com.uprr.app.uti.webapp.UtiWebApplication">
>> </bean>
>>
>>
>> Can someone please tell me whats wrong?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p20984524.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/No-WebApplicationContext-found%3A-no-ContextLoaderListener-registered--tp20984524p21015514.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]