Hello,
Thank you guys for the reply...I finally got to work...i have same
configuration but there is one jar file not imported by the maven
tool...that might be the problem bcoz when i removed it, it run
smoothly..Thanks a lot..anyway, i have a copy of Wicket in Action MEAP to
guide me :)

Cheers...


Nino.Martinez wrote:
> 
> Do you use maven to build with?
> 
> <value>com.test.server.model.Test</value>
> <value>com.test.server.model.Test2</value>
> 
> 
> 
> freak182 wrote:
>> Hello,
>> Im developing an app using hibernate annotations.My problem is when i
>> configure my appContext.xml the annotated class cannot be found. here is
>> the
>> code snippet of appContext.xml found in WEB-INF/config.
>>
>> <!--  Session factory bean for Hibernate -->
>>      <bean
>>      
>> class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"
>>              id="sessionFactory">
>>              <property name="dataSource" ref="dataSource"></property>
>>              <property name="hibernateProperties">
>>                      <props>
>>                              <prop key="hibernate.dialect">
>>                                      org.hibernate.dialect.MySQL5Dialect
>>                              </prop>
>>                              <prop key="hibernate.cache.provider_class">
>>                                      org.hibernate.cache.OSCacheProvider
>>                              </prop>
>>                              <!--<prop 
>> key="hibernate.show_sql">true</prop>-->
>>                              <prop 
>> key="hibernate.c3p0.acquire_increment">2</prop>
>>                              <prop 
>> key="hibernate.c3p0.idle_test_period">300</prop>
>>                              <prop key="hibernate.c3p0.max_size">100</prop>
>>                              <prop key="hibernate.connection.release_mode">
>>                                      after_statement
>>                              </prop>
>>                              <prop key="hibernate.c3p0.min_size">5</prop>
>>                              <prop key="hibernate.c3p0.preferredTestQuery">
>>                                      select 1
>>                              </prop>
>>                              <prop 
>> key="hibernate.c3p0.testConnectionOnCheckout">
>>                                      true
>>                              </prop>
>>                              <prop key="hibernate.hbm2ddl.auto">update</prop>
>>                              <prop
>>                                      
>> key="hibernate.bytecode.use_reflection_optimizer">
>>                                      true
>>                              </prop>
>>                              <!--<prop 
>> key="hibernate.format_sql">true</prop>-->
>>                      </props>
>>              </property>
>>              <property name="annotatedClasses">      
>>                      <list>
>>                              <value>com.test.server.model.Test</value>
>>                              <value>com.test.server.model.Test2</value>
>>                      </list>
>>              </property>
>>              <property name="annotatedPackages">
>>                      <list>
>>                              <value>com.test.server</value>
>>                      </list>
>>              </property>
>>      </bean>
>>
>> My question is, the appContext.xml should be put in the classpath or
>> /WEB-INF/config ?is there is difference between the two? Any idea.
>> Thanks a lot.
>> Cheers
>>   
> 
> -- 
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/annotated-class-tp15476390p15542017.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]

Reply via email to