dev@glassfish.java.net

Re: Compiling Glassfish in Eclipse

From: Markus KARG <markus.karg_at_gmx.net>
Date: Mon, 25 Sep 2006 21:28:39 +0200

Tom,

thank you for your tip, actually I was in the wrong directory...

So now I have run "ant test" and here is the result. Actually I think
that despite its saying "BUILD SUCCESSFUL", it did not do anything -- it
just needed 24 Seconds to run, while you told me that it needs 20
Minutes on your PC. Also it says there are 61 errors. I have used Derby,
as you told me. Below is the log.

What is my fault?

Thanks a lot!
Markus

markus_at_localhost:~/workspace/glassfish/entity-persistence-tests> ant test
Buildfile: build.xml

init:
     [echo] Building component TopLink Essentials Testing

test:
    [junit] Running
oracle.toplink.essentials.testing.tests.FullRegressionTestSuite
    [junit] [TopLink Finer]: 2006.09.25
09:22:53.772--Thread(Thread[main,5,main])--javaSECMPInitializer -
initializaing
jar:file:/home/markus/workspace/glassfish/entity-persistence-tests/lib/toplink-essentials-tests.jar!/META-INF/persistence.xml.
    [junit] [TopLink Finer]: 2006.09.25
09:22:54.300--Thread(Thread[main,5,main])--javaSECMPInitializer -
created temporary ClassLoader:
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer$TempEntityLoad.
    [junit] [TopLink Finer]: 2006.09.25
09:22:54.302--Thread(Thread[main,5,main])--javaSECMPInitializer -
override load class for collection members: true.
    [junit] [TopLink Finer]: 2006.09.25
09:22:54.387--Thread(Thread[main,5,main])--javaSECMPInitializer -
predeploying default.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.827--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.NonFueledVehicle]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.845--ServerSession(9936523)--Thread(Thread[main,5,main])--The
foreign key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.NonFueledVehicle]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.858--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Car] is
being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.889--ServerSession(9936523)--Thread(Thread[main,5,main])--The
foreign key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Car] is
being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.896--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.SportsCar]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.898--ServerSession(9936523)--Thread(Thread[main,5,main])--The
foreign key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.SportsCar]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.903--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Bicycle]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.905--ServerSession(9936523)--Thread(Thread[main,5,main])--The
foreign key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Bicycle]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.973--ServerSession(9936523)--Thread(Thread[main,5,main])--The
discriminator column name for the root inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Person] is
being defaulted to: DTYPE.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.976--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Engineer]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.978--ServerSession(9936523)--Thread(Thread[main,5,main])--The
foreign key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Engineer]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.984--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.ImaginaryCar]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.986--ServerSession(9936523)--Thread(Thread[main,5,main])--The
foreign key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.ImaginaryCar]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.990--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Lawyer] is
being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:08.992--ServerSession(9936523)--Thread(Thread[main,5,main])--The
foreign key column name for the inheritance class [class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Lawyer] is
being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:09.267--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the mapping element [public
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Car
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Person.getCar()]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:09.274--ServerSession(9936523)--Thread(Thread[main,5,main])--The
primary key column name for the mapping element [public
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Engineer
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Person.getBestFriend()]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:09.276--ServerSession(9936523)--Thread(Thread[main,5,main])--The
target entity (reference) class for the one to one mapping element
[public
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Person
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Bus.getBusDriver()]
is being defaulted to: class
oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Person.
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.279--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.TireInfo].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.284--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Car].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.286--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.SportsCar].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.287--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Boat].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.289--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Bus].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.291--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Bicycle].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.292--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Person].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.294--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Engineer].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.296--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.PerformanceTireInfo].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.298--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.NonFueledVehicle].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.299--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Company].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.301--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Vehicle].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.303--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Lawyer].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.304--ServerSession(9936523)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.ImaginaryCar].
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.306--Thread(Thread[main,5,main])--javaSECMPInitializer -
registering transformer for ignore.
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.308--Thread(Thread[main,5,main])--javaSECMPInitializer -
initializaing
jar:file:/home/markus/workspace/glassfish/entity-persistence-tests/lib/toplink-essentials-ddl-generation-tests.jar!/META-INF/persistence.xml.
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.413--Thread(Thread[main,5,main])--javaSECMPInitializer -
created temporary ClassLoader:
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer$TempEntityLoad.
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.414--Thread(Thread[main,5,main])--javaSECMPInitializer -
override load class for collection members: true.
    [junit] [TopLink Finer]: 2006.09.25
09:23:09.415--Thread(Thread[main,5,main])--javaSECMPInitializer -
predeploying ddlGeneration.
    [junit] [TopLink Warning]: 2006.09.25
09:23:11.470--ServerSession(11228395)--Thread(Thread[main,5,main])--Ignoring
the named/named-native query
[oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataDescriptor_at_8a54]
on entity class [findAnyMergeSQLBeerConsumer] as a query with that name
already exists.
    [junit] [TopLink Warning]: 2006.09.25
09:23:11.471--ServerSession(11228395)--Thread(Thread[main,5,main])--Ignoring
the named/named-native query
[oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataDescriptor_at_8a54]
on entity class [findAllMergeSQLCertifications] as a query with that
name already exists.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.474--ServerSession(11228395)--Thread(Thread[main,5,main])--The
table name for entity [class
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alpine]
is being defaulted to: MERGEALPINE.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.488--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [private java.sql.Timestamp
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer.version]
is being defaulted to: VERSION.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.493--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [public java.lang.String
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.EmbeddedSerialNumber.getBreweryCode()]
is being defaulted to: BREWERYCODE.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.495--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [private double
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer.alcoholContent]
is being defaulted to: ALCOHOLCONTENT.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.497--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [private
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alpine$Classification
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alpine.classification]
is being defaulted to: CLASSIFICATION.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.504--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [private java.sql.Timestamp
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer.version]
is being defaulted to: VERSION.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.506--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [private double
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer.alcoholContent]
is being defaulted to: ALCOHOLCONTENT.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.508--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [private
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Canadian$Flavor
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Canadian.flavor]
is being defaulted to: FLAVOR.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.783--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [public java.lang.Integer
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer.getId()]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:11.801--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [public java.lang.String
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer.getName()]
is being defaulted to: NAME.
    [junit] [TopLink Config]: 2006.09.25
09:23:12.057--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [public java.lang.String
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Certification.getDescription()]
is being defaulted to: DESCRIPTION.
    [junit] [TopLink Config]: 2006.09.25
09:23:12.061--ServerSession(11228395)--Thread(Thread[main,5,main])--The
column name for element [public java.lang.Integer
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Certification.getId()]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:12.063--ServerSession(11228395)--Thread(Thread[main,5,main])--The
primary key column name for the mapping element [public
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.TelephoneNumber.getBeerConsumer()]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:12.064--ServerSession(11228395)--Thread(Thread[main,5,main])--The
primary key column name for the mapping element [private
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer.beerConsumer]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:12.065--ServerSession(11228395)--Thread(Thread[main,5,main])--The
primary key column name for the mapping element [private
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer.beerConsumer]
is being defaulted to: ID.
    [junit] [TopLink Config]: 2006.09.25
09:23:12.067--ServerSession(11228395)--Thread(Thread[main,5,main])--The
map key attribute name for the mapping element [public java.util.Map
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer.getCanadianBeersToConsume()]
is being defaulted to: id.
    [junit] [TopLink Config]: 2006.09.25
09:23:12.068--ServerSession(11228395)--Thread(Thread[main,5,main])--The
primary key column name for the mapping element [public
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer
oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Certification.getBeerConsumer()]
is being defaulted to: ID.
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.069--ServerSession(11228395)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Canadian].
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.069--ServerSession(11228395)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.BeerConsumer].
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.070--ServerSession(11228395)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alpine].
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.070--ServerSession(11228395)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.TelephoneNumber].
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.071--ServerSession(11228395)--Thread(Thread[main,5,main])--Weaver
processing class
[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Certification].
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.071--Thread(Thread[main,5,main])--javaSECMPInitializer -
registering transformer for ddlGeneration.
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.071--Thread(Thread[main,5,main])--javaSECMPInitializer -
initializaing
jar:file:/home/markus/workspace/glassfish/entity-persistence-tests/lib/toplink-essentials-validation-tests.jar!/META-INF/persistence.xml.
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.179--Thread(Thread[main,5,main])--javaSECMPInitializer -
created temporary ClassLoader:
oracle.toplink.essentials.internal.ejb.cmp3.JavaSECMPInitializer$TempEntityLoad.
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.180--Thread(Thread[main,5,main])--javaSECMPInitializer -
override load class for collection members: true.
    [junit] [TopLink Finer]: 2006.09.25
09:23:12.186--Thread(Thread[main,5,main])--javaSECMPInitializer -
predeploying broken-PU.
    [junit] Tests run: 22, Failures: 0, Errors: 61, Time elapsed: 3,809 sec
    [junit] Test
oracle.toplink.essentials.testing.tests.FullRegressionTestSuite FAILED

BUILD SUCCESSFUL


Tom Ware wrote:
> Hi Markus,
>
> I guess I should have been more clear. Testing is run out of the
> entity-persistence-tests module. The build file with the "test"
> target exists in that module.
>
> -Tom
>
> Markus KARG wrote:
>
>> Tom,
>>
>> thank you for being so patient with me and sorry for me answering so
>> late. Actually I had not found any time to work on my MaxDB support in
>> the past weeks, since I was booked out with my "real" job of
>> coordinating a globally distributed development team.
>>
>> So today I am back at my keyboard and wanted to continue with your
>> step-by-step instructions on how to add MaxDB support into GlassFish.
>> Unfortunately there is one step not working and you might be so kind to
>> tell me where I am going wrong.
>>
>>
>>
>>> The first step to running the tests (as Marina has also replied) is
>>> to take a look at the readme.txt file in the entity-persistence-tests
>>> directory and follow those instructions. If you do not have a DB
>>> (other than MaxDB) conveniently available you can use an embedded
>>> Derby database. Everything you need to do that is available from a
>>> bootstrapped GlassFish. As you can probably tell from my email
>>> address, I usually run these tests on Oracle, so I am not a Derby
>>> expert, but, here are the properties I use when I am running tests on
>>> Derby:
>>>
>>> --
>>> jdbc.driver.jar=<cvs home>/publish/glassfish/javadb/lib/derby.jar
>>> db.driver=org.apache.derby.jdbc.EmbeddedDriver
>>> db.url=jdbc:derby:testDb;create=true;
>>> db.user=tware
>>> db.pwd=password
>>> --
>>>
>>> The tests actually take on the order of 20 minutes to run on embedded
>>> Derby. If you have a commercial-quality database, the tests will run
>>> much quicker. (my tests on Oracle run in less then 5 minutes)
>>>
>>> -Tom
>>>
>> I did as you told me, also added tl.platform=...derby... (as to be found
>> in the readme), but then the readme says that I shall to "ant test", but
>> actually the build.xml of entity-persistence doesn't contain a target
>> named test, so ant is not doing anything but complaining about exactly
>> that problem. So it seems either the readme is wrong, or the build.xml
>> is buggy.
>>
>> What shall I do now?
>>
>> Thanks
>> Markus
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>