Yep.  Here's an example of what I typically use:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/webapp/WEB-INF/web.xml


On Mon, Dec 15, 2008 at 10:51 AM, wicketworker <[email protected]> wrote:
>
> Figured out the issue. basically we need to have two listeners in the web.xml
> ContextLoaderListener , and RequestContextListener.
>
>
>
> wicketworker wrote:
>>
>> 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--tp20984524p21016296.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]

Reply via email to