Hi, all of you. Back to the workbench.
I have switched to the Ant 1.6.5 version. Always the same.
So I destroy the previous building; I execute the following commands :
cd "\Program Files\AppFuse"
ant new answering planningRAO, RAO_DB, org.IDS, struts
cd "\Program Files\PlanningRAO\extras\appgen"
ant install-detailed -Dappgen.type=table -Dobject.name=RAO_Info (with a
carriageReturn for the module name)
It fails on looking for a directory that does not existe. I give you my
execution trace.
The table is accessible because the .java file that describes the table is
correctly generated.
C:\Program Files\planningRAO\extras\appgen>ant install-detailed
-Dappgen.type=table -Dobject.name=RAO_Info
Buildfile: build.xml
Overriding previous definition of reference to xdoclet.classpath
clean:
init:
[mkdir] Created dir: C:\Program Files\planningRAO\extras\appgen\build
[echo]
[echo] +-------------------------------------------------------+
[echo] | -- Welcome to the AppGen! -- |
[echo] | |
[echo] | Use the "install" target to use the generic DAO and |
[echo] | Manager, or use "install-detailed" to general a DAO |
[echo] | and Manager specifically for your model object. |
[echo] +-------------------------------------------------------+
[input] skipping input as property appgen.type has already been set.
[input] skipping input as property object.name has already been set.
[input] What is the name, if any, of the module for your table (i.e.
organization)?
[echo] Running Middlegen to generate POJO...
init:
fail-if-no-xdoclet-1.2:
fail-if-no-table-name:
middlegen:
[mkdir] Created dir: C:\Program Files\planningRAO\extras\middlegen\src
[middlegen] (middlegen.Middlegen 350 ) Registering plugin
simple->middlegen.Plugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin
java->middlegen.javax.JavaPlugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin
plugin->middlegen.Plugin
[middlegen] (middlegen.Middlegen 350 ) Registering plugin
hibernate->middlegen.plugins.hibernate.HibernatePlugin
[middlegen] Database
URL:jdbc:mysql://localhost/RAO_DB?useUnicode=true&characterEncoding=utf-8
[middlegen] (middlegen.MiddlegenPopulator 225 ) WARNING: Middlegen
couldn't find any relations between any tables. This may be intentional from
the desig
n of the database, but it may also be because you have incorrectly defined
the relationships. It could also be because the JDBC driver you're using
doesn't correctly implement DatabaseMetaData. See the samples (for an
example on how to defi
ne relationships) and verify that your driver correctly implements
DatabaseMetaData.
[middlegen] (middlegen.Middlegen 393 ) Validating hibernate
[middlegen] (middlegen.Middlegen 410 ) Invoking plugin
hibernate
[middlegen] (middlegen.FileProducer 398 ) Generating C:\Program
Files\planningRAO\extras\middlegen\src\com\IDS\model\RaoInfo.hbm.xml using
template from
jar:file:/C:/Program%20Files/planningRAO/extras/middlegen/lib/middlegen-2.1/middlegen-hibernate-plugin-2.1.jar!/middlegen/plugins/hibernate/hibernate.vm
[middlegen] Updated preferences in C:\Program
Files\planningRAO\extras\middlegen\com.IDS.model-prefs.properties
hbm2java:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] (cfg.Environment 500 ) Hibernate 3.2.0
[hibernatetool] (cfg.Environment 533 )
hibernate.properties.not found
[hibernatetool] (cfg.Environment 667 ) Bytecode provider
name : cglib
[hibernatetool] (cfg.Environment 584 ) using JDK 1.4
java.sql.Timestamp handling
[hibernatetool] (cfg.Configuration 301 ) Reading mappings
from file: C:\Program
Files\planningRAO\extras\middlegen\src\com\IDS\model\RaoInfo.hbm.xml
[hibernatetool] (cfg.HbmBinder 300 ) Mapping class:
com.IDS.model.RaoInfo -> rao_info
[hibernatetool] (hbm2x.template 88 )
**************************************************************
[hibernatetool] (hbm2x.template 88 ) Starting Jakarta
Velocity v1.4
[hibernatetool] (hbm2x.template 88 ) RuntimeInstance
initializing.
[hibernatetool] (hbm2x.template 88 ) Default
Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[hibernatetool] (hbm2x.template 88 ) Trying to use
logger class org.apache.velocity.tools.generic.log.CommonsLogLogSystem
[hibernatetool] (hbm2x.template 88 ) Using logger
class org.apache.velocity.tools.generic.log.CommonsLogLogSystem
[hibernatetool] (hbm2x.template 88 ) Default
ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[hibernatetool] (hbm2x.template 88 ) Resource Loader
Instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
[hibernatetool] (hbm2x.template 88 )
FileResourceLoader :initialization starting.
[hibernatetool] (hbm2x.template 88 )
FileResourceLoader :adding path '.'
[hibernatetool] (hbm2x.template 88 )
FileResourceLoader :initialization complete.
[hibernatetool] (hbm2x.template 88 ) Resource Loader
Instantiated:
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 )
ClasspathResourceLoader : initialization starting.
[hibernatetool] (hbm2x.template 88 )
ClasspathResourceLoader : initialization complete.
[hibernatetool] (hbm2x.template 88 ) ResourceCache :
initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[hibernatetool] (hbm2x.template 88 ) Default
ResourceManager initialization complete.
[hibernatetool] (hbm2x.template 88 ) Loaded System
Directive: org.apache.velocity.runtime.directive.Literal
[hibernatetool] (hbm2x.template 88 ) Loaded System
Directive: org.apache.velocity.runtime.directive.Macro
[hibernatetool] (hbm2x.template 88 ) Loaded System
Directive: org.apache.velocity.runtime.directive.Parse
[hibernatetool] (hbm2x.template 88 ) Loaded System
Directive: org.apache.velocity.runtime.directive.Include
[hibernatetool] (hbm2x.template 88 ) Loaded System
Directive: org.apache.velocity.runtime.directive.Foreach
[hibernatetool] (hbm2x.template 88 ) Created: 20
parsers.
[hibernatetool] (hbm2x.template 88 ) Velocimacro :
initialization starting.
[hibernatetool] (hbm2x.template 88 ) Velocimacro :
allowInline = true : VMs can be defined inline in templates
[hibernatetool] (hbm2x.template 88 ) Velocimacro :
allowInlineToOverride = false : VMs defined inline may NOT replace previous
VM definitions
[hibernatetool] (hbm2x.template 88 ) Velocimacro :
allowInlineLocal = false : VMs defined inline will be global in scope if
allowed.
[hibernatetool] (hbm2x.template 88 ) Velocimacro :
messages on : VM system will output logging messages
[hibernatetool] (hbm2x.template 88 ) Velocimacro :
autoload off : VM system will not automatically reload global library
macros
[hibernatetool] (hbm2x.template 88 ) Velocimacro :
initialization complete.
[hibernatetool] (hbm2x.template 88 ) Velocity
successfully started.
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Pojo.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/PojoTypeDeclaration.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3TypeDeclaration.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/PojoFields.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/PojoConstructors.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/PojoPropertyAccessors.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/Ejb3PropertyGetAnnotation.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/PojoToString.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/PojoEqualsHashcode.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.template 88 ) ResourceManager :
found pojo/PojoExtraClassCode.vm with loader
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] (hbm2x.VelocityProducer 46 ) Writing Pojo to
C:\Program Files\planningRAO\extras\middlegen\src\com\IDS\model\RaoInfo.java
install:
[copy] Copying 1 file to C:\Program Files\planningRAO\src\dao
all:
Trying to override old definition of task bool
compile:
[javac] Compiling 2 source files to C:\Program
Files\planningRAO\extras\appgen\build
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
gen:
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
[xdoclet] (XDocletMain.start 48 ) Running <template/>
BUILD FAILED
C:\Program Files\planningRAO\extras\appgen\build.xml:323: Warning: Could not
fin
d file C:\Program
Files\planningRAO\extras\appgen\build\gen\web\pages\RAOInfoLis
tTemp.jsp to copy.
Total time: 13 seconds
C:\Program Files\planningRAO\extras\appgen>
Thanks to have a look at this issue.
Thanks.
Martin
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 using?
>> >
>
>> > 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#a9669629
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]