You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Patrick Carl <pa...@web.de> on 2010/10/02 19:56:23 UTC

[Torque 4] mvn install of templates failes

Hello,

I would like to try to set up a test environment for running Torque4 
with HSQLDB. I follow the steps for running the test project. I work 
with current sources from Torque4 branch.
mvn install for runtime and generator works fine. Running mvn install 
for the templates failes with the following exception:

> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.torque.templates.TestProcessing
> INFO  org.apache.torque.generator.control.Controller - run() : Starting to read configuration files
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.075 sec <<< FAILURE!
> Running org.apache.torque.templates.jdbc2schema.Jdbc2SchemaTest
> INFO  org.apache.torque.generator.control.Controller - run() : Starting to read configuration files
> INFO  org.apache.torque.generator.control.Controller - run() : Configuration read.
> INFO  org.apache.torque.generator.control.Controller - Processing source JdbcMetadataSource using url jdbc:derby:memory:myDb;create=true
> INFO  org.apache.torque.generator.control.Controller - Start generation of File target/generated-schema/schema.xml
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.663 sec
>
> Results :
>
> Tests in error:
>   testProcessSchemaXml(org.apache.torque.templates.TestProcessing)
>
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
>
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports for the individual test results.
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: There are test failures.
>
> Please refer to /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports for the individual test results.
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>         at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
>
> Please refer to /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports for the individual test results.
>         at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:629)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>         ... 17 more


I am glad to hear any ideas to get around this.

Thank you in advance,

Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Thomas Fischer <fi...@seitenbau.net>.
> > Hello,
> >
> > I would like to try to set up a test environment for running
> > Torque4 with HSQLDB. I follow the steps for running the test
> > project. I work with current sources from Torque4 branch.

....

> maybe it is caused due to Thomas latest changes. He made Torque
> generified internally and there were some smaller problems on half
> the way (as far as I understood).

I'm afraid this cannot be the (sole) reason. On my local installation, the
test project runs without trouble for the current state.

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Thomas Fischer <fi...@seitenbau.net>.
> Hi Thomas,
> ...
> The startElement method is called and reads the following values:
> systemId: http://db.apache.org/torque/4.0/templates/database.xsd
> ressource: ../../xsd/database-4-0.xsd
>
> I found out that adding the references to the configuration fails and
> creates an ConfigurationException:
>
> "resource file
> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/
>
resources/org/apache/torque/templates/om/resources/../../xsd/database-4-0.xsd

> not found"
>
> The xsd is stored actually under
> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/
> resources/org/apache/torque/templates/xsd/database-4-0.xsd
>
> Furthermore I noticed that there is no directory resources under om. But
> creating it did not change anything.

The resource path is correct except that the resources directory does not
exist. I thought I fixed that by cancelling the .. elements against the
previous directories, but apparently not... This will probably need to be
fixed in the generator. If I do not give me feedback soon, keep prodding
me.

Thanks for tracing the error,

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Patrick Carl <pa...@web.de>.
Hello Thomas,

thanks a lot. I works fine now and the test run without problems.

Patrick

Am 07.10.2010 16:14, schrieb Thomas Fischer:
> I tried to fix the problem in the generator but did not check whether the
> fix solves the problem on linux. Could you svn update the generator, mvn
> install it and then try to build the templates again ?
>
>      Thanks,
>
>          Thomas
>
>
>>>>> ...
>>>>> - Can you run the tests inside an IDE (e.g. eclipse) and set a
>>> breakpoint
>>>>> in org.apache.torque.generator.configuration.source.EntityReferences.
>>>>> resolveEntity() (in the generator jar) and see whether it gets called
>>> and
>>>>> if yes why it fails ?
>>>>
>>>> I got the project to work with NetBeans and managed to debug. The
>>>> resolveEntity method of EntityReferences is not called as far as I can
>>> see.
>>>>
>>>> Could it have something to do with the fact that I use Linux as
>>>> operating system?
>>>
>>> I'd be astonished if yes. Rather it is the XML parser used.
>>>
>>> Ok we need to trace from start here. Whats should happen is the
> following:
>>> - On reading the configuration, the EntityReferenceSaxHandler in the
>>> package org.apache.torque.generator.configuration.source should be
> invoked.
>>> Please check that the startElement() method is hit and that on one of
> the
>>> calls the system ids ishttp://db.apache.org/torque/4.0/templates/data
>>> base.xsd. If yes, the references will be added to the configuration by
>>>
>>
> org.apache.torque.generator.configuration.controller.ControlConfigurationSaxHandler
>
>>>    on line 275.
>>
>> The startElement method is called and reads the following values:
>> systemId: http://db.apache.org/torque/4.0/templates/database.xsd
>> ressource: ../../xsd/database-4-0.xsd
>>
>> I found out that adding the references to the configuration fails and
>> creates an ConfigurationException:
>>
>> "resource file
>> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/
>>
> resources/org/apache/torque/templates/om/resources/../../xsd/database-4-0.xsd
>
>> not found"
>>
>> The xsd is stored actually under
>> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/
>> resources/org/apache/torque/templates/xsd/database-4-0.xsd
>>
>> Furthermore I noticed that there is no directory resources under om. But
>> creating it did not change anything.
>>
>>>
>>> Further action depends on the outcome of these steps.
>>>
>>>       Thomas
>>
>> I hope the new information is helpful
>>
>> Patrick
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
>> For additional commands, e-mail: torque-dev-help@db.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Thomas Fischer <fi...@seitenbau.net>.
I tried to fix the problem in the generator but did not check whether the
fix solves the problem on linux. Could you svn update the generator, mvn
install it and then try to build the templates again ?

    Thanks,

        Thomas


> >>> ...
> >>> - Can you run the tests inside an IDE (e.g. eclipse) and set a
> > breakpoint
> >>> in org.apache.torque.generator.configuration.source.EntityReferences.
> >>> resolveEntity() (in the generator jar) and see whether it gets called
> > and
> >>> if yes why it fails ?
> >>
> >> I got the project to work with NetBeans and managed to debug. The
> >> resolveEntity method of EntityReferences is not called as far as I can
> > see.
> >>
> >> Could it have something to do with the fact that I use Linux as
> >> operating system?
> >
> > I'd be astonished if yes. Rather it is the XML parser used.
> >
> > Ok we need to trace from start here. Whats should happen is the
following:
> > - On reading the configuration, the EntityReferenceSaxHandler in the
> > package org.apache.torque.generator.configuration.source should be
invoked.
> > Please check that the startElement() method is hit and that on one of
the
> > calls the system ids ishttp://db.apache.org/torque/4.0/templates/data
> > base.xsd. If yes, the references will be added to the configuration by
> >
>
org.apache.torque.generator.configuration.controller.ControlConfigurationSaxHandler

> >   on line 275.
>
> The startElement method is called and reads the following values:
> systemId: http://db.apache.org/torque/4.0/templates/database.xsd
> ressource: ../../xsd/database-4-0.xsd
>
> I found out that adding the references to the configuration fails and
> creates an ConfigurationException:
>
> "resource file
> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/
>
resources/org/apache/torque/templates/om/resources/../../xsd/database-4-0.xsd

> not found"
>
> The xsd is stored actually under
> /home/pcs/projects/software/torque/trunk/torque-templates/src/main/
> resources/org/apache/torque/templates/xsd/database-4-0.xsd
>
> Furthermore I noticed that there is no directory resources under om. But
> creating it did not change anything.
>
> >
> > Further action depends on the outcome of these steps.
> >
> >      Thomas
>
> I hope the new information is helpful
>
> Patrick
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


RE: [Torque 4] mvn install of templates failes

Posted by Greg Monroe <Gr...@dukece.com>.
A vaguely related item that this thread reminded me of....

AFAIK, unlike XML DTDs, the URLs used in XSD files do NOT have to be
real Internet locations.  Instead they are used simply to define XSD
namespaces, similar to Java's package name conventions.

The parser is supposed to have its own mechanism for locating the 
required XSD files listed in the XML.  E.g., in Eclipse, this is
the XMLCatalog system.

Now back to the regularly scheduled mvn install problem discussion...

> -----Original Message-----
> From: patrick.carl@web.de [mailto:patrick.carl@web.de]
> Sent: Tuesday, October 05, 2010 3:41 PM
> To: Apache Torque Developers List
> Subject: Re: [Torque 4] mvn install of templates failes
> 
> Hi Thomas,
> 
> Am 05.10.2010 09:35, schrieb Thomas Fischer:
> > Hi Patrick,
> >
> >>> ...
> >>> - Can you run the tests inside an IDE (e.g. eclipse) and set a
> > breakpoint
> >>> in org.apache.torque.generator.configuration.source.EntityReferences.
> >>> resolveEntity() (in the generator jar) and see whether it gets called
> > and
> >>> if yes why it fails ?
> >>
> >> I got the project to work with NetBeans and managed to debug. The
> >> resolveEntity method of EntityReferences is not called as far as I can
> > see.
> >>
> >> Could it have something to do with the fact that I use Linux as
> >> operating system?
> >
> > I'd be astonished if yes. Rather it is the XML parser used.
> >
> > Ok we need to trace from start here. Whats should happen is the
> following:
> > - On reading the configuration, the EntityReferenceSaxHandler in the
> > package org.apache.torque.generator.configuration.source should be
> invoked.
> > Please check that the startElement() method is hit and that on one of
> the
> > calls the system ids ishttp://db.apache.org/torque/4.0/templates/data
> > base.xsd. If yes, the references will be added to the configuration by
> >
> org.apache.torque.generator.configuration.controller.ControlConfiguration
> SaxHandler
> >   on line 275.
> 
> The startElement method is called and reads the following values:
> systemId: http://db.apache.org/torque/4.0/templates/database.xsd
> ressource: ../../xsd/database-4-0.xsd
> 
> I found out that adding the references to the configuration fails and
> creates an ConfigurationException:
> 
> "resource file
> /home/pcs/projects/software/torque/trunk/torque-
> templates/src/main/resources/org/apache/torque/templates/om/resources/../
> ../xsd/database-4-0.xsd
> not found"
> 
> The xsd is stored actually under
> /home/pcs/projects/software/torque/trunk/torque-
> templates/src/main/resources/org/apache/torque/templates/xsd/database-4-
> 0.xsd
> 
> Furthermore I noticed that there is no directory resources under om. But
> creating it did not change anything.
> 
> >
> > Further action depends on the outcome of these steps.
> >
> >      Thomas
> 
> I hope the new information is helpful
> 
> Patrick
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org

DukeCE Privacy Statement:
Please be advised that this e-mail and any files transmitted with
it are confidential communication or may otherwise be privileged or
confidential and are intended solely for the individual or entity
to whom they are addressed. If you are not the intended recipient
you may not rely on the contents of this email or any attachments,
and we ask that you please not read, copy or retransmit this
communication, but reply to the sender and destroy the email, its
contents, and all copies thereof immediately. Any unauthorized
dissemination, distribution or copying of this communication is
strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Patrick Carl <pa...@web.de>.
Hi Thomas,

Am 05.10.2010 09:35, schrieb Thomas Fischer:
> Hi Patrick,
>
>>> ...
>>> - Can you run the tests inside an IDE (e.g. eclipse) and set a
> breakpoint
>>> in org.apache.torque.generator.configuration.source.EntityReferences.
>>> resolveEntity() (in the generator jar) and see whether it gets called
> and
>>> if yes why it fails ?
>>
>> I got the project to work with NetBeans and managed to debug. The
>> resolveEntity method of EntityReferences is not called as far as I can
> see.
>>
>> Could it have something to do with the fact that I use Linux as
>> operating system?
>
> I'd be astonished if yes. Rather it is the XML parser used.
>
> Ok we need to trace from start here. Whats should happen is the following:
> - On reading the configuration, the EntityReferenceSaxHandler in the
> package org.apache.torque.generator.configuration.source should be invoked.
> Please check that the startElement() method is hit and that on one of the
> calls the system ids ishttp://db.apache.org/torque/4.0/templates/data
> base.xsd. If yes, the references will be added to the configuration by
> org.apache.torque.generator.configuration.controller.ControlConfigurationSaxHandler
>   on line 275.

The startElement method is called and reads the following values:
systemId: http://db.apache.org/torque/4.0/templates/database.xsd
ressource: ../../xsd/database-4-0.xsd

I found out that adding the references to the configuration fails and 
creates an ConfigurationException:

"resource file
/home/pcs/projects/software/torque/trunk/torque-templates/src/main/resources/org/apache/torque/templates/om/resources/../../xsd/database-4-0.xsd 
not found"

The xsd is stored actually under
/home/pcs/projects/software/torque/trunk/torque-templates/src/main/resources/org/apache/torque/templates/xsd/database-4-0.xsd

Furthermore I noticed that there is no directory resources under om. But 
creating it did not change anything.

>
> Further action depends on the outcome of these steps.
>
>      Thomas

I hope the new information is helpful

Patrick



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Thomas Fischer <fi...@seitenbau.net>.
Hi Patrick,

> > ...
> > - Can you run the tests inside an IDE (e.g. eclipse) and set a
breakpoint
> > in org.apache.torque.generator.configuration.source.EntityReferences.
> > resolveEntity() (in the generator jar) and see whether it gets called
and
> > if yes why it fails ?
>
> I got the project to work with NetBeans and managed to debug. The
> resolveEntity method of EntityReferences is not called as far as I can
see.
>
> Could it have something to do with the fact that I use Linux as
> operating system?

I'd be astonished if yes. Rather it is the XML parser used.

Ok we need to trace from start here. Whats should happen is the following:
- On reading the configuration, the EntityReferenceSaxHandler in the
package org.apache.torque.generator.configuration.source should be invoked.
Please check that the startElement() method is hit and that on one of the
calls the system ids ishttp://db.apache.org/torque/4.0/templates/data
base.xsd. If yes, the references will be added to the configuration by
org.apache.torque.generator.configuration.controller.ControlConfigurationSaxHandler
 on line 275.
- Afterwards, the generator will try to read the sources. For this, a
org.apache.torque.generator.source.stream.XmlSourceSaxHandler will be
instantiated and it will get a
org.apache.torque.generator.configuration.source.EntityReferences object
passed. Check that the above system id is present in the entity references.
This SAX handler will then be used to read the sources.
- If we get so far then the reason for failure is that the entity resolver
method is not called by the SAX handler. We now need to find out which XML
parser is used. Create a breakpoint in the startElement method of
org.apache.torque.generator.source.stream.XmlSourceSaxHandler and ask your
IDE in which library the SAX Parser is located. If it is not xerces 2.9.1
then check if  xerces 2.9.1 is present in your class path at all. What you
can do additionally in this case is to run "mvn --debug install" which
prints a lot of information, but also which libraries are used for the
tests. This would also be good information to have.

Further action depends on the outcome of these steps.

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Patrick Carl <pa...@web.de>.
Hi Thomas,

thank you for your reply.

> What you can do:
> - check that you have the current version of the Torque 4 generator
> installed.

I have the latest revision, currently 1004377.

> - you can bypass the problem by installing the templates without running
> the tests using the maven switch -Dmaven.test.skip=true

I did and the build was successful.

> - I had some difficulties before when using XML Parsers from the JDK; but
> since there is a direct dependency to xerces 2.9.1 now this should not be a
> problem.
> - Can you run the tests inside an IDE (e.g. eclipse) and set a breakpoint
> in org.apache.torque.generator.configuration.source.EntityReferences.
> resolveEntity() (in the generator jar) and see whether it gets called and
> if yes why it fails ?

I got the project to work with NetBeans and managed to debug. The 
resolveEntity method of EntityReferences is not called as far as I can see.

Could it have something to do with the fact that I use Linux as 
operating system?

Patrick
>
>      Thomas
>

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Thomas Fischer <fi...@seitenbau.net>.
Hi Patrick,

> after looking into the test reports

which is always a good idea to do :-)

> I found the following reason:
>
> testProcessSchemaXml + [ Detail ]   0.864
>    Error parsing controller Configuration : Could not read entity
> reference http://db.apache.org/torque/4.0/templates/database.xsd
>
> The URL http://db.apache.org/torque/4.0/templates/database.xsd is
> referenced in the schema files like
> torque-templates/test/schema/schema.xml and I receive a 404 when trying
> to access it with a browser.

In principle, the URL need not exist, because internally a SAX entity
resolver is used which resolves the URLs internally instead of resolving
them via a HTTP call. I'd rather avoid publishing the schema files before
they become final.
On my local computer, mvn install on the current version of the templates
works fine.

What you can do:
- check that you have the current version of the Torque 4 generator
installed.
- you can bypass the problem by installing the templates without running
the tests using the maven switch -Dmaven.test.skip=true
- I had some difficulties before when using XML Parsers from the JDK; but
since there is a direct dependency to xerces 2.9.1 now this should not be a
problem.
- Can you run the tests inside an IDE (e.g. eclipse) and set a breakpoint
in org.apache.torque.generator.configuration.source.EntityReferences.
resolveEntity() (in the generator jar) and see whether it gets called and
if yes why it fails ?

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Patrick Carl <pa...@web.de>.
Hi,

after looking into the test reports I found the following reason:

testProcessSchemaXml + [ Detail ]	0.864
	Error parsing controller Configuration : Could not read entity 
reference http://db.apache.org/torque/4.0/templates/database.xsd

The URL http://db.apache.org/torque/4.0/templates/database.xsd is 
referenced in the schema files like 
torque-templates/test/schema/schema.xml and I receive a 404 when trying 
to access it with a browser.

Any ideas how to solve this?

Thanks.

Patrick


Am 02.10.2010 19:59, schrieb Christoph Engelbert:
>   Hi Paul,
>
> maybe it is caused due to Thomas latest changes. He made Torque
> generified internally and there were some smaller problems on half
> the way (as far as I understood).
>
> Maybe just try to update the sources and run the tests again.
>
> Am 02.10.2010 19:56, schrieb Patrick Carl:
>> Hello,
>>
>> I would like to try to set up a test environment for running
>> Torque4 with HSQLDB. I follow the steps for running the test
>> project. I work with current sources from Torque4 branch.
>> mvn install for runtime and generator works fine. Running mvn
>> install for the templates failes with the following exception:
>>
>>> -------------------------------------------------------
>>>   T E S T S
>>> -------------------------------------------------------
>>> Running org.apache.torque.templates.TestProcessing
>>> INFO  org.apache.torque.generator.control.Controller - run() :
>>> Starting to read configuration files
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 1.075 sec<<<  FAILURE!
>>> Running org.apache.torque.templates.jdbc2schema.Jdbc2SchemaTest
>>> INFO  org.apache.torque.generator.control.Controller - run() :
>>> Starting to read configuration files
>>> INFO  org.apache.torque.generator.control.Controller - run() :
>>> Configuration read.
>>> INFO  org.apache.torque.generator.control.Controller - Processing
>>> source JdbcMetadataSource using url
>>> jdbc:derby:memory:myDb;create=true
>>> INFO  org.apache.torque.generator.control.Controller - Start
>>> generation of File target/generated-schema/schema.xml
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 3.663 sec
>>>
>>> Results :
>>>
>>> Tests in error:
>>>    testProcessSchemaXml(org.apache.torque.templates.TestProcessing)
>>>
>>> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] There are test failures.
>>>
>>> Please refer to
>>> /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports
>>> for the individual test results.
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] Trace
>>> org.apache.maven.BuildFailureException: There are test failures.
>>>
>>> Please refer to
>>> /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports
>>> for the individual test results.
>>>          at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
>>>          at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>>          at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>>          at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>>          at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>>          at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>>          at
>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>>          at
>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>>          at
>>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>>
>>>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>> Method)
>>>          at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>          at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>          at java.lang.reflect.Method.invoke(Method.java:597)
>>>          at
>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>          at
>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>          at
>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>
>>>          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>> Caused by: org.apache.maven.plugin.MojoFailureException: There
>>> are test failures.
>>>
>>> Please refer to
>>> /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports
>>> for the individual test results.
>>>          at
>>> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:629)
>>>          at
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>>          at
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>>          ... 17 more
>>
>>
>> I am glad to hear any ideas to get around this.
>>
>> Thank you in advance,
>>
>> Patrick
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
>> For additional commands, e-mail: torque-dev-help@db.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Re: [Torque 4] mvn install of templates failes

Posted by Christoph Engelbert <c....@u-form.de>.
 Hi Paul,

maybe it is caused due to Thomas latest changes. He made Torque
generified internally and there were some smaller problems on half
the way (as far as I understood).

Maybe just try to update the sources and run the tests again.

Am 02.10.2010 19:56, schrieb Patrick Carl:
> Hello,
>
> I would like to try to set up a test environment for running
> Torque4 with HSQLDB. I follow the steps for running the test
> project. I work with current sources from Torque4 branch.
> mvn install for runtime and generator works fine. Running mvn
> install for the templates failes with the following exception:
>
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running org.apache.torque.templates.TestProcessing
>> INFO  org.apache.torque.generator.control.Controller - run() :
>> Starting to read configuration files
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>> 1.075 sec <<< FAILURE!
>> Running org.apache.torque.templates.jdbc2schema.Jdbc2SchemaTest
>> INFO  org.apache.torque.generator.control.Controller - run() :
>> Starting to read configuration files
>> INFO  org.apache.torque.generator.control.Controller - run() :
>> Configuration read.
>> INFO  org.apache.torque.generator.control.Controller - Processing
>> source JdbcMetadataSource using url
>> jdbc:derby:memory:myDb;create=true
>> INFO  org.apache.torque.generator.control.Controller - Start
>> generation of File target/generated-schema/schema.xml
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>> 3.663 sec
>>
>> Results :
>>
>> Tests in error:
>>   testProcessSchemaXml(org.apache.torque.templates.TestProcessing)
>>
>> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] There are test failures.
>>
>> Please refer to
>> /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports
>> for the individual test results.
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Trace
>> org.apache.maven.BuildFailureException: There are test failures.
>>
>> Please refer to
>> /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports
>> for the individual test results.
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>>         at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>         at
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>         at
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at
>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.MojoFailureException: There
>> are test failures.
>>
>> Please refer to
>> /home/pcs/projects/software/torque/trunk/torque-templates/target/surefire-reports
>> for the individual test results.
>>         at
>> org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:629)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>>         ... 17 more
>
>
> I am glad to hear any ideas to get around this.
>
> Thank you in advance,
>
> Patrick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


RE: [Torque 4] mvn install of templates failes

Posted by Thomas Fischer <fi...@seitenbau.net>.
> I would like to try to set up a test environment for running Torque4
> with HSQLDB.

Just to make sure you know this: Currently no HSQLDB SQL templates exist in
Torque 4. SQL generation will fail for HSQLDB in the current state of
Torque 4.

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org