Hi, I have ran ant test-dao I will send you the traces.
May be I wrongly understand the "configuration of the mapping file". Do I
need to do it if
I need to create POJO from a table ?
If Yes, I used to work on :
C:\Program Files\PlanningRAO\src\dao\org\thalesInfo\dao\hibernate
I add :
<value>org/thalesInfo/model/RAOInfo.hbm.xml</value>
and
<bean id="roleDao"
class="org.thalesInfo.dao.hibernate.RAOInfoHibernate">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
It does not solve the problem.
I go trough the Quickstart, the createDAO and the appgen tutorial and I look
at build.xml.
The symptom of my problem is that a file does not exist :
"BUILD FAILED
C:\Program Files\PlanningRAO\extras\appgen\build.xml:323: Warning: Could not
find file
C:\Program
Files\PlanningRAO\extras\appgen\build\gen\web\pages\RAOInfoListTemp.jsp
to copy."
When I study the CreateDAO tutorial, it is told that the .java file
representing the data
model could be changed; setup-db, executed from <application> directory,
will generated
the database and the table.
In the process that I follow, from the appgen directory, I execute ant
install-detailed;
the result must be the java file. I am surprise that in the first method we
interact from
<application> directory to adjuste application to our specific model and in
the second one
this task is performed from <application\appgen> directory.
The install-detailed target of the build.xml does not encompass copies of
file; it is not
possible to generate C:\Program
Files\PlanningRAO\extras\appgen\build\gen\web\pages\
RAOInfoListTemp.jsp
Martin
http://www.nabble.com/file/7462/appFuseTestDAOTrace070327.txt
appFuseTestDAOTrace070327.txt
mraible wrote:
>
> Can you run "ant test-dao" to verify that the tests can connect to
> your database?
>
> Matt
>
> On 3/26/07, Nitram <[EMAIL PROTECTED]> wrote:
>>
>> A mySQL driver is installed in C:\Program
>> Files\planningRAO\lib\mysql-connector-java-5.0.3\mysql-connector-java-5.0.3-bin.jar.
>> I have not find any warning about the compatibility between the MySQL
>> core
>> product "MySQL 5.0.37" and this driver.
>> The file C:\Program Files\planningRAO\.classpath points effectively on
>> the
>> correct mySQL driver path.
>>
>> I have ran ant setup-DB to generate database.properties.
>>
>> The java class, representing my SQL table, is genrated, showing that the
>> my
>> table is accessible.
>> I have not ran setup-tomcat at this stage.
>>
>>
>>
>> Nitram wrote:
>> >
>> > I may have problem with mi JDBC driver. I am looking further more to
>> check
>> > if I have properly installed a JDBC driver.
>> >
>> >
>> >
>> > mraible wrote:
>> >>
>> >> Can you try using Ant 1.6.5, we haven't tested 1.9.x with Ant 1.7.
>> >>
>> >> Matt
>> >>
>> >> On 3/23/07, Nitram <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> First of all, I work on 1.9.4 because I want to work on a stable
>> version
>> >>> and
>> >>> without maven.
>> >>> MySQL 5.0.37
>> >>> Ant 1.7.0
>> >>> Windows XP SP4
>> >>> struts
>> >>>
>> >>> In fact, when I was prompted I answer struts; I don't know if I had
>> to
>> >>> select some other product
>> >>>
>> >>> Martin
>> >>>
>> >>>
>> >>>
>> >>> mraible wrote:
>> >>> >
>> >>> > Are there any log files in extras/middlegen - maybe it's not making
>> >>> > the connection to your database?
>> >>> >
>> >>> > What web framework, DB, version of AppFuse, JDK, OS and Ant version
>> >>> > are you usiI may have probI may have probng?
>> >>> >
>> >>> > Matt
>> >>> >
>> >>> > On 3/23/07, Nitram <[EMAIL PROTECTED]> wrote:
>> >>> >>
>> >>> >> When I interactively answer questions it does the same (it does
>> not
>> >>> >> work).
>> >>> >> For the moment, I do not set module name, I had try, yesterday, to
>> >>> give a
>> >>> >> name but, for conceptual reason I stopped.
>> >>> >>
>> >>> >> Martin
>> >>> >>
>> >>> >>
>> >>> >> mraible wrote:
>> >>> >> >
>> >>> >> > If you use "ant install-detailed" and enter the values when
>> >>> prompted,
>> >>> >> > does it work?
>> >>> >> >
>> >>> >> > Matt
>> >>> >> >
>> >>> >> > On 3/23/07, Nitram <[EMAIL PROTECTED]> wrote:
>> >>> >> >>
>> >>> >> >> HI
>> >>> >> >> I get a problem while I need to create an application from an
>> >>> existing
>> >>> >> >> table.
>> >>> >> >> I have created my application with :
>> >>> >> >> appFuse > ant new
>> >>> >> >>
>> >>> >> >> I have navigated to my new app :
>> >>> >> >>
>> >>> >> >> \planningRAO\extras\appgen>ant install-detailed
>> >>> -Dappgen.type=table
>> >>> >> >> -Dobject.name=RAO_Info
>> >>> >> >>
>> >>> >> >> I get the following error
>> >>> >> >>
>> >>> >> >> BUILD FAILED
>> >>> >> >> C:\Program Files\planningRAO\extras\appgen\build.xml:323:
>> Warning:
>> >>> >> Could
>> >>> >> >> not
>> >>> >> >> find file C:\Program
>> >>> >> >>
>> >>> >>
>> >>>
>> Files\planningRAO\extras\appgen\build\gen\web\pages\RAOInfoListTemp.jsp
>> >>> >> >> to
>> >>> >> >> copy.
>> >>> >> >>
>> >>> >> >> Actually, the catalogue gen doesn't exist at all; the only
>> >>> existing
>> >>> >> >> catalogue is appgen\build\org.
>> >>> >> >>
>> >>> >> >> What step I have forgotten ?
>> >>> >> >>
>> >>> >> >> Thanks
>> >>> >> >>
>> >>> >> >> Martin
>> >>> >> >> --
>> >>> >> >> View this message in context:
>> >>> >> >>
>> >>> >>
>> >>>
>> http://www.nabble.com/Appfuse-PB-creating-an-app-from-an-existing-table-tf3455022s2369.html#a9638795
>> >>> >> >> 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/Appfuse-PB-creating-an-app-from-an-existing-table-tf3455022s2369.html#a9639091
>> >>> >> 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/Appfuse-PB-creating-an-app-from-an-existing-table-tf3455022s2369.html#a9639700
>> >>> 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/Appfuse-PB-creating-an-app-from-an-existing-table-tf3455022s2369.html#a9672801
>> 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/Appfuse-PB-creating-an-app-from-an-existing-table-tf3455022s2369.html#a9694535
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]