[wicki.domain.PageRepository] not found
<bean .. class="com.helmbold.wicki.domain.PageRepository"/>

missing com.helmbold ?!

El vie, 20-02-2009 a las 17:25 +0000, Christian Helmbold escribió:
> I try to use Wicket's Spring integration, but I get the following error:
> 
> WicketMessage: Can't instantiate page using constructor public 
> wicki.WikiPage()
> 
> Root cause:
> java.lang.IllegalStateException: bean of type [wicki.domain.PageRepository] 
> not found
>  at 
> org.apache.wicket.spring.SpringBeanLocator.getBeanNameOfClass(SpringBeanLocator.java:109)
>      at 
> org.apache.wicket.spring.SpringBeanLocator.getBeanName(SpringBeanLocator.java:195)
>      at 
> org.apache.wicket.spring.SpringBeanLocator.isSingletonBean(SpringBeanLocator.java:135)
>      at 
> org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:92)
> ...
> 
> --------------------------------------------------------------------------------
> WikiPage.java:
> 
> public class WikiPage extends WebPage
> {
>   @SpringBean
>   PageRepository repository;
>   private Page page = new Page();
>  
> 
> --------------------------------------------------------------------------------
> accplicationContext.xml (Spring config):
> 
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>        xsi:schemaLocation="http://www.springframework.org/schema/beans
>        http://www.springframework.org/schema/beans/spring-beans-2.5.xsd";>
> 
>        <bean id="wicketApplication" 
> class="com.helmbold.wicki.WickiApplication"
>        />
> 
>        <bean id="pageRepository" 
> class="com.helmbold.wicki.domain.PageRepository"/>
>        
>        ...
>        
> </beans>
> 
> --------------------------------------------------------------------------------
> web.xml
> 
> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>     <filter>
>         <filter-name>WickiApplication</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>
>     </filter>
>     <filter-mapping>
>         <filter-name>WickiApplication</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>     
>     <!-- Spring integration -->
>     <listener>
>       
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>     </listener>
>     <context-param>
>       <param-name>contextConfigLocation</param-name>
>       <param-value>classpath:applicationContext.xml</param-value>
>     </context-param>
> 
> </web-app>
> 
> 
> Any ideas what's wrong?
> 
> Thanks
> Christian
> 
>  -- 
> http://www.groovy-forum.de
> 
> 
> 
>       
> 
> 
> ---------------------------------------------------------------------
> 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