On my setup it looks like this (for a project named "pagflex"):
In file conf/torque.properties
torque.database.default = pagflex
And in file project.properties there's this line:
turbine.app.om.package = com.wiaxis.pagflex.om
It used to be org.apache.turbine.pagflex.om, but we changed the packages to reflect our company name. I think that's what Torque inserts in place of @DATABASE_DEFAULT@ and @[EMAIL PROTECTED] Database default is the name of the database, which is the same as the project name, not the database server (mysql).
Did you check the DTD version if it was database_3_1.dtd? You can also browse to http://db.apache.org/torque/dtd/database_3_1.dtd and see for yourself (manually) if the XML is right or not.
Cheers, Paulo
Johannsmeier, Dieter wrote:
Hi Paulo,
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]
Dieter
-----Urspr�ngliche Nachricht-----
Von: Paulo Schlup Santos [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. M�rz 2005 15:10
An: Turbine Users List
Betreff: Re: AW: AW: Maven torque:om
Hi,
SAX is telling you that the markup (tags) before the root element
(<database>) is incorrect. Please check if it looks something like this:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database_3_1.dtd">
<database name="@DATABASE_DEFAULT@" defaultIdMethod="native" defaultJavaType="primitive" defaultJavaNamingMethod="underscore" package="@DATABASE_PACKAGE@">
The DTD version is important, it should match torque's version, and there should be NO SPACES OR BLANK LINES before the <?xml version...
If you setup your app through the META plugin, the database name and package should be correct. We only had problems when we tried to change it to something else - in this case it's easier if you change your setup.properties and do a maven setup again (but do a backup first as it overwrites the conf and schema directories)
Paulo Santos Wiaxis.com
Johannsmeier, Dieter wrote:
I checked the dtd version against my xml file with XMLBuddy (eclipse plugin). It's ok I also set some echoes into the plugin.jelly (where the error occurs) and get this:well-formed.
torque:om-generate:
[echo] ----contextProperties: build.properties -----
[echo] ----template.om: -----
[echo] ----java.dir: tomcat/WEB-INF/src -----
[echo] ----project: gRelease -----
[echo] ----database: mysql -----
[echo] ----targetPackage: de.gedas.om -----
[echo] ----schema.dir: ./schema -----
Using contextProperties file:
D:\Entwicklung\SVNtest\meta.2.3.1\gRelease\build.p
roperties
[torque-data-model] Generating to file D:\Entwicklung\SVNtest\meta.2.3.1\gRe
lease\tomcat\WEB-INF\src\report.gRelease.om.generation
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
it? (buildTotal time: 3 seconds Finished at: Wed Mar 02 13:57:39 CET 2005
You see the property: template.om is empty. Where can I set
used to be aproperties) Which value? Is it needed?
Dieter
-----Urspr�ngliche Nachricht----- Von: Jeffery Painter [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. M�rz 2005 12:22 An: Turbine Users List Betreff: Re: AW: Maven torque:om
Are you using a different database? Check for reserved words. Also, check for references to other tables. I think there
schema.xml file"feature" that if you referenced any one table in one
more thanit also had to be in that same schema.xml file. Do you have
---------one schema file or just the one?
Also check the dtd version it is validating against to your xml file
On Wed, 2 Mar 2005, Michael Kunze wrote:
same error.Johannsmeier, Dieter wrote:
I try with my own schema.xml (this one was from a turbine 2.2
installation) And I try the default one. Both gives the
The default schema-appname.xml is almost empty. It justcontains some
Placeholders like @SOMETHING Check that these values arecorrectly set
using the filein your properties file.
You said something about trying Turbine 2.3.1. Now you
from 2.2. Maybe they are not compatible.
Michael
PS: http://learn.to/quote ;)
-- Thank you,
Jeffery Painter 2431 Reunion Meadows Lane Apex, NC 27539 voice: 919.321.0378
- -- [EMAIL PROTECTED] http://jeff.kiasoft.com PGP FP: 9CE8 83A2 33FA 32B1 0AB1 4E62 E4CB E4DA 5913 EFBC
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/qEQE5Mvk2lkT77wRAnMJAJ9vJ6qOkg/mvqqIpz7troCEQJ8bFACglu/U YNXabx7DZOV2Hd9LwSTmGpY= =dWiu -----END PGP SIGNATURE-----
------------------------------------------------------------
[EMAIL PROTECTED]To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
--------------------------------------------------------------------- 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]
