So, that's prob it. I copied it from my project from a fe months ago. I'll re
generate and be more careful.

thanks,

Marc


mraible wrote:
> 
> What version of AppFuse are you using? Why does your  
> applicationContext.xml look so different from the one that ships with  
> the regular "core" module?
> 
> Matt
> 
> On Jan 11, 2008, at 4:19 AM, mschipperheyn wrote:
> 
>>
>> Hi, I'm trying to run appfuse:gen on a spring modular project but  
>> it doesn't
>> seem to be creating the Spring bean definitions. I run
>>
>> mvn appfuse:gen -Dentity=Country
>>
>> from the core directory. It sais everything is ok. Sample-data gets  
>> created.
>> But the applicationContext.xml isn't changed. From the timestamp on  
>> the file
>> I can see it's not opened and saved. The hibernate.cfg.xml does get  
>> opened
>> and saved.
>>
>> any ideas? The output and relevant files are displayed below.
>>
>> Thanks,
>>
>> Marc
>>
>> [INFO] Scanning for projects...
>> [INFO] Searching repository for plugin with prefix: 'appfuse'.
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [INFO] Building AppFuse Modular Application - Core
>> [INFO]    task-segment: [appfuse:gen]
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [INFO] Preparing appfuse:gen
>> [INFO] [aspectj:compile {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is  
>> invalid.
>> It w
>> ill be ignored for artifact resolution. Reason: Parse error reading  
>> POM.
>> Reason:
>>  TEXT must be immediately followed by END_TAG and not START_TAG  
>> (position:
>> START
>> _TAG seen ...<licenses>\n\t\t\t<license>... @12:13)  for project
>> org.hibernate:j
>> tidy at
>> E:\java\M2_Home\repository\org\hibernate\jtidy\r8-20060801\jtidy- 
>> r8-2006
>> 0801.pom
>> [INFO] [appfuse:gen]
>> [INFO] Configuration XML file loaded:
>> D:\Projects\Java\Mercado\core\src\main\res
>> ources\hibernate.cfg.xml
>> [INFO] Configuration XML file loaded:
>> D:\Projects\Java\Mercado\core\src\main\res
>> ources\hibernate.cfg.xml
>> [INFO] src/main/resources/database.properties not found within the  
>> project.
>> Tryi
>> ng absolute path.
>> [INFO] No hibernate properties file loaded.
>> [info] [AppFuse] Installing generated files (pattern: **/*.java)...
>> [info] [AppFuse] Installing sample data for DbUnit...
>> [info] [AppFuse] Installing Spring bean definitions...
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [INFO] Total time: 14 seconds
>> [INFO] Finished at: Fri Jan 11 12:12:50 CET 2008
>> [INFO] Final Memory: 13M/23M
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>>
>> My applicationContext.xml looks as follows:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <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.0.xsd";
>>      default-lazy-init="true">
>>      
>>      <bean id="sessionFactory"
>>              
>> class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
>>              <property name="configLocation">
>>                      <value>classpath:hibernate.cfg.xml</value>
>>              </property>
>>              <property name="hibernateProperties">
>>                      <ref bean="hibernateProperties" />
>>              </property>
>>              <property name="dataSource">
>>                      <ref bean="MyDataSource" />
>>              </property>
>>              <property name="configurationClass">
>>                      <value>org.hibernate.cfg.AnnotationConfiguration</value>
>>              </property>
>>      </bean>
>>
>>      <bean id="hibernateProperties"
>>               
>> class="org.springframework.beans.factory.config.PropertiesFactoryBean" 
>> >
>>              <property name="properties">
>>                      <props>
>>                              <prop key="hibernate.hbm2ddl.auto">update</prop>
>>                              <prop key="hibernate.dialect">
>>                                      org.hibernate.dialect.MySQLDialect
>>                              </prop>
>>                              <prop key="hibernate.show_sql">true</prop>
>>                              <prop key="hibernate.c3p0.minPoolSize">5</prop>
>>                              <prop key="hibernate.c3p0.maxPoolSize">20</prop>
>>                              <prop key="hibernate.c3p0.timeout">600</prop>
>>                              <prop 
>> key="hibernate.c3p0.max_statement">50</prop>
>>                              <prop 
>> key="hibernate.c3p0.testConnectionOnCheckout">
>>                                      false
>>                              </prop>
>>                      </props>
>>              </property>
>>      </bean>
>>
>>      <bean id="propertyConfigurer"
>>      
>> class="org.springframework.beans.factory.config.PropertyPlaceholderCon 
>> figurer">
>>              <property name="locations">
>>                      <list>
>>                              <value>classpath:jdbc.properties</value>
>>                              <value>classpath:mail.properties</value>
>>                      </list>
>>              </property>
>>      </bean>
>>
>>      <bean id="MyDataSource"
>>              
>> class="org.springframework.jdbc.datasource.DriverManagerDataSource">
>>              <property name="driverClassName"
>>                      value="${jdbc.driverClassName}" />
>>              <property name="url" value="${jdbc.url}" />
>>              <property name="username" value="${jdbc.username}" />
>>              <property name="password" value="${jdbc.password}" />
>>      </bean>
>>
>>      <bean id="hibernateTemplate"
>>              class="org.springframework.orm.hibernate3.HibernateTemplate">
>>              <property name="sessionFactory">
>>                      <ref bean="sessionFactory" />
>>              </property>
>>      </bean>
>>
>>      <bean id="hibernateInterceptor"
>>              class="org.springframework.orm.hibernate3.HibernateInterceptor">
>>              <property name="sessionFactory">
>>                      <ref bean="sessionFactory" />
>>              </property>
>>      </bean>
>>
>> </beans>
>> -- 
>> View this message in context: http://www.nabble.com/Spring-bean- 
>> definitions-not-created-with-appfuse%3Agen- 
>> tp14753652s2369p14753652.html
>> Sent from the AppFuse - 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/Spring-bean-definitions-not-created-with-appfuse%3Agen-tp14753652s2369p14760719.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to