Hi,

Replying to my own mail. I just found out where the problem lies. I don't
get it though. In the applicationContext.xml I stated the following to allow
for some additional resource paths:

   <bean id="wicketApplication" class="
org.webical.web.app.WebicalWebApplication">
       <!-- additional resourcePaths -->
       <property name="resourcePaths">
           <map>
                Default entry
               <entry>
                   <key><value>additionalResources</value></key>
                   <value type="java.lang.Boolean">TRUE</value>
               </entry>
               </map>
          </property>
     </bean>

When replaced with the following everything (except for the resource paths)
works fine again:

<bean id="wicketApplication" class="
org.webical.web.app.WebicalWebApplication"/>

Shouldn't it be possible to set properties from Spring in the
WebApplication?

Thanks,
Ivo

On 12/16/06, Ivo van Dongen <[EMAIL PROTECTED]> wrote:

Hi,

We are working on an web calendar application, 
webical<http://webical.org/twiki>.
We ran into a problem today while deploying a new demo. When I try to access
the application I get the following exception:

2006-12-16 18:23:29,805 ERROR StandardWrapperValve - Allocate exception
for servlet wicket
java.lang.IllegalStateException: WicketServlet cannot be changed once it
is set
        at wicket.protocol.http.WebApplication.setWicketServlet (
WebApplication.java:400)
        at wicket.protocol.http.WicketServlet.init(WicketServlet.java:283)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at org.apache.catalina.core.StandardWrapper.loadServlet (
StandardWrapper.java:1091)
        at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:750)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:130)
        at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:514)
        at org.apache.catalina.core.StandardHostValve.invoke (
StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:868)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
Http11BaseProtocol.java:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java :80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)

The app runs just fine in eclipse with wtp, but when I create a war with
maven it doesn't work. We are using wicket 1.2.3 with spring 2.0. I've
attached our pom.xml, web.xml and applicationContext.xml. The code is also
accessible in svn<http://webical.svn.sourceforge.net/viewvc/webical/trunk/>
.

Does anybody know what the problem could be? I can't find this problem
anywhere on google..

Thanks in advance,
Ivo van Dongen


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to