there is only one hibernate.cfg.xml which looks like this
<hibernate-configuration>
<session-factory>
<mapping class="org.appfuse.model.User"/>
<mapping class="org.appfuse.model.Role"/>
<mapping class="com.dtr.model.Stage"/>
</session-factory>
</hibernate-configuration>
Stage.java is in src/main/java/com/dtr/model and compile fine. This file is
annotated (that shouldnt be a problem)
-sxm
mraible wrote:
>
> I've seen this happen when the mapping in hibernate.cfg.xml is wrong
> or doesn't exist. Maybe you edited the wrong file?
>
> Matt
>
> On 6/4/07, sxm <[EMAIL PROTECTED]> wrote:
>>
>> I tried it with Spring Modular project and created a pojo and included it
>> in
>> the hibernate.cfg.xml
>> Now, appfuse:gen finishes silently but doesn't generate any files in
>> target/appfuse
>> Here is the output of "mvn appfuse:gen -Dentity=Stage"
>> [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)
>> [INFO] [appfuse:gen]
>> [INFO] Configuration XML file loaded:
>> C:\Flex\appfuse\tmp\dtr_codegen\dtr\core\s
>> rc\main\resources\hibernate.cfg.xml
>> [INFO] Configuration XML file loaded:
>> C:\Flex\appfuse\tmp\dtr_codegen\dtr\core\s
>> rc\main\resources\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]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 9 seconds
>> [INFO] Finished at: Mon Jun 04 00:33:29 PDT 2007
>> [INFO] Final Memory: 13M/23M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>> mraible wrote:
>> >
>> > I haven't tested "appfuse:gen" on the appfuse-core archetype. It
>> > probably doesn't work because it's looking for a <web.framework>
>> > property or something like that.
>> >
>> > Matt
>> >
>> > On 6/4/07, Eric Fitzsimmons <[EMAIL PROTECTED]> wrote:
>> >> Yes, you must create a persistable pojo and include it in the
>> hibernate
>> >> config file in src/main/resources.
>> >> sxm wrote:
>> >>
>> >> >just created a core project and compiled it successfully. But when I
>> >> tried to
>> >> >use mvn appfuse:gen, and got following error. Is there any
>> prerequisite
>> >> to
>> >> >running this command?
>> >> >
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > http://raibledesigns.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/amp-fails---java.lang.NullPointerException-tf3863209s2369.html#a10951958
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/amp-fails---java.lang.NullPointerException-tf3863209s2369.html#a10953397
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]