Hi David,
Yes, I changed the src\schema files and they are copied correctly in the
target\xml directory.
And I start maven in debug mode, but until now it didn't gives any direct
clues for me.
But there is an exception which I cannot interpret.
I show some snippets of the trace:
torque:om-generate:
[echo] contextProperties="build.properties"
[echo] controlTemplate=""
[echo] outputDirectory="./WEB-INF/src"
[echo] outputFile="report.gRelease.om.generation"
[echo] targetDatabase="mysql"
[echo] targetPackage="turbine.app.om.package"
[echo] templatePath=""
These are some echoes which I inserted in the plugin.jelly
BUILD FAILED
File...... C:\Dokumente und
Einstellungen\jod\.maven\cache\maven-torque-plugin-3
.1.1\plugin.jelly
Element... torque-data-model
Line...... 270
Column.... 49
org.apache.torque.engine.EngineException: org.xml.sax.SAXParseException: The
mar
kup in the document preceding the root element must be well-formed.
com.werken.werkz.UnattainableGoalException: Unable to obtain goal
[torque:om] --
C:\Dokumente und
Einstellungen\jod\.maven\cache\maven-torque-plugin-3.1.1\plugi
n.jelly:270:49: <torque-data-model>
org.apache.torque.engine.EngineException: or
g.xml.sax.SAXParseException: The markup in the document preceding the root
eleme
nt must be well-formed.
at com.werken.werkz.Goal.fire(Goal.java:646)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
Is there any meaning with this execption?
By the way. I am using Java 1.4.2_05 on Windows XP SP 2
Best regards
Dieter
> -----Urspr�ngliche Nachricht-----
> Von: David Demner [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 3. M�rz 2005 17:07
> An: 'Turbine Users List'
> Betreff: RE: Maven torque:om
>
> Hi Dieter,
>
> Are you editing the correct XML files? They are in
> src\schema and there are
> several: %webapp%-schema.xml, id-table-schema.xml, and
> turbine-security-schema.xml. Are they all OK? Also, try
> running Maven in debug mode (ie: maven --debug torque:om) to
> see if this gives you any more clues.
>
> Good luck,
>
> David
>
> -----Original Message-----
> From: Johannsmeier, Dieter [mailto:[EMAIL PROTECTED]
> Sent: Thursday March 3, 2005 7:48 AM
> To: Turbine Users List
> Subject: AW: Maven torque:om
>
>
> Hi All,
>
> Thank you for your help Michael. But everything I do gives
> the same error.
> For example:
> - Download the database_3_1.dtd and reference it by
> "file://database_3_1.dtd"
> - Reduce the amount of tables down to one table
> - Delete the "<!DOCTYPE" line
> - Exchange the varables @DATABASE_NAME@ etc. to hardcoded values.
> - All changes I have done for the three schema.xml files
> (gRelease-schema.xml,id_table-schema.xml and
> turbine-security-schema.xml)
> - Extend the ..\webapps\gRelease\build.properties with the additional
> properties from ~\build.properties
>
> A maven torque:om -X (Debug) didn't give something helpful for me.
>
> Did I forget something ?
>
> Thanks
>
> Dieter
>
> > -----Urspr�ngliche Nachricht-----
> > Von: Michael Kunze [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 2. M�rz 2005 15:45
> > An: Turbine Users List
> > Betreff: Re: Maven torque:om
> >
> > Johannsmeier, Dieter wrote:
> >
> > > Yes it looks exactly like this ...
> > >
> > > But what is needed to set for @[EMAIL PROTECTED] Is it: mysql?
> > > And what is needed to set for @[EMAIL PROTECTED]
> >
> > Can't really help you there but try this:
> >
> > This is a little HowTo that gets you started. Initially
> > posted by Jeffery a few weeks ago. It helped me alot btw ;)
> > And after that everything was working.
> >
> > --------------------------------------------------------------
> > --------------
> > #
> > # build.properties - for META
> > #
> >
> > #
> > # Application Server configuration
> > #
> > maven.appserver.home = <directory_for_appserver_home>
> > maven.appserver.name = tomcat
> >
> > #
> > # app config
> > #
> > turbine.app.name = <appname>
> > turbine.app.flavor=turbine-2.3.1
> >
> > #
> > # create the om layer interfaces for torque
> > #
> > turbine.app.om.layer=torque
> >
> > #
> > # don't create demo pages
> > #
> > turbine.app.setup.demo=false
> >
> > #
> > # Inplace dev mode
> > #
> > turbine.plugin.mode=inplace
> >
> > #
> > # Initial ID values for the ID_TABLE
> > #
> > initialID = 1100
> > initialIDValue = 100
> > initialIDStep = 10
> >
> > #
> > # database settings
> > #
> > torque.database=mysql
> > torque.database.driver = com.mysql.jdbc.Driver
> > torque.database.user = myuser
> > torque.database.password = mypassword
> > torque.database.buildUrl = jdbc:mysql://localhost/<appname>
> > torque.database.createUrl = jdbc:mysql://localhost/<appname>
> >
> > --------------------------------------------------------------
> > --------------
> >
> > 2. change to the webapps directory of your servlet container.
> > 3. Create the skeleton for the app
> >
> > % maven -Dturbine.setup.properties=~/build.properties
> > turbine:setup
> >
> > 4. change into your webapps/<newapp> directory
> >
> > 5. modify the <appname>-schema.xml accordingly (found in
> > src/schema/<appname>-schema.xml)
> >
> > 6. Create SQL (all commands run from webapps/<appname> directory
> >
> > 1. create the database
> > % maven torque:create-db
> >
> > 2. generate SQL code
> > % maven turbine:sql
> >
> > 3. put SQL in database
> > % maven torque:insert-sql
> >
> > 7. Compile your application
> >
> > % maven java:compile
> >
> > no need to deploy since we are inplace development mode
> >
> > --------------------------------------------------------------
> > ---------
> >
> > What he was missing tho is to get tomcat working with it. So
> > the 8th step would be:
> >
> > 8. Start tomcat. Point your browser to
> > http://localhost:8080/manager/html
> > Login with the password you set during installation of tomcat
> > and use the 'Installation' form on that site (It's the one
> > with the 3 input fields)
> >
> > I got it in german so i'm not sure what the actual translation is.
> > The first field (context path) would be: /<newapp> The second
> > field leave empty. And in the third field you need to put the
> > path to your webapp root folder. It needs to look like this:
> > file:C:/path/to/your/webapplication
> >
> > Note: You need to prepend 'file:' and you have to use forward
> > slashes.
> > If you did everything fine tomcat should find the 'WEB-INF'
> > folder below the specified folder automatically and you
> > should be ready to go.
> >
> > Just in case you didn't got it, the URL to your webapp is:
> > http://localhost:8080/<webapp>
> >
> > 9. Here is an optional 9th step you'd like to take.
> > Find the following file:
> > <tomcat root>\conf\Catalina\localhost\<appname>.xml
> > open it in editor and add reloadable="true" to the <context>
> > tag as an attribute like this:
> > <Context path="/..." docBase="..." reloadable="true">
> >
> > That way you can just compile the classes in your favourite
> > IDE and don't need to worry about restarting tomcat.
> >
> > Please follow that to see if you made any mistakes during
> deployment.
> >
> > Michael
> >
> >
> ---------------------------------------------------------------------
> > 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]
>
>
>
> ---------------------------------------------------------------------
> 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]