dev@glassfish.java.net

Out-of-box building (was RE: Compiling Glassfish in Eclipse)

From: Manfred Riem <mriem_at_manorrock.org>
Date: Tue, 26 Sep 2006 14:01:53 -0600

Hi Marina,

I can completely relate to Markus' experience. This is what is holding
me back to contribute to Glassfish. I did send in a request to patch
Glassfish to be able to support FreeBSD, but since it is a hassle to
Get it tested as demonstrated by Markus' email threads I think some
research should be done into making it a lot easier to contribute.

In the past I have worked on a internal project that was made up of
quite a number of modules (35+) and that was completely ANT based. I
never had any problems contributing to it because it was highly structured.

Whenever one needed to test a single module one would just run 'ant test'
and the ant script would figure out what was needed and configure it
accordingly.

Is that something similar possible here?

Kind regards,
Manfred Riem
mriem_at_manorrock.org
http://www.manorrock.org/


-----Original Message-----
From: Marina.Vatkina_at_Sun.COM [mailto:Marina.Vatkina_at_Sun.COM]
Sent: Tuesday, September 26, 2006 1:25 PM
To: dev_at_glassfish.dev.java.net
Subject: Re: Compiling Glassfish in Eclipse

Markus,

We all feel your pain! But you are *so close* to being successful - please
do not give up :).

When you checkout GF, your modules are created under <somedir>/glassfish.
When you bootstrap and build GF, it's "installed" (or created - however you
want to call it) in <somedir>/publish/glassfish. This is your AS_HOME. You
do not need to start GF to start derby, but to follow all rules, you'll
need to run QuickLook test that will start GF from the above location (you'd
need to stop Java EE 5 SDK if it's running if it's using the default ports).

HTH,
-marina

Markus KARG wrote:
> First of all, thank you for your kind help. Actually I want to ask
> whether you know that I just need one single run of ant test with Derby
> to see that the tests are correct? I will not use Derby any longer,
> since my job is the sole task of implementing MaxDB support into
> GlassFish. So I think that setting up a network instance of Derby is a
> lot work for just one run... But I will give it a try, since I have done
> two overhours already, so the evening is lost anyway... ;-)
>
> Actually I am not aware what of what you mean with ASHOME: Do you mean
> the Java EE 5 SDK installtion (/opt/SUNWappserver) or do you mean the
> location of the source code of GlassFish? Or what other location do you
> mean? Again, I do not have a running GlassFish, I just have pulled the
> sources and compiled it. I also will never run GlassFish on this
> machine, I just want to add MaxDB support, see the tests run, and
> scratch it from the disc then (the productive machine will be a server
> getting set up once my job is done, so I don't see a benefit from a
> GlassFish on my developer laptop). Do I really have to set up a running
> GlassFish on my laptop just to run the tests once against Derby?
>
> Thanks a lot!
> Markus
>
> Mitesh Meswani wrote:
>
>>Hi Markus,
>>
>>I personally prefer to run derby in network mode as it allows me to
>>connect to the database if something goes wrong. Following are the
>>settings from my build.properties to run against derby in network
>>mode. Change the path to derbyclient.jar as per your workspace.
>>
>>jdbc.driver.jar=/work/assrc/publish/glassfish/javadb/lib/derbyclient.jar
>>db.driver=org.apache.derby.jdbc.ClientDriver
>>db.url=jdbc:derby://localhost:1527/testdb;retrieveMessagesFromServerOnGetM
essage=true;create=true;
>>
>>db.user=mitesh
>>db.pwd=mitesh
>>tl.platform=oracle.toplink.essentials.platform.database.DerbyPlatform
>>
>>You can start derby in network mode using following command
>>${AS_HOME}/bin/asadmin start-database
>>
>>and stop using following command
>>${AS_HOME}/bin/asadmin stop-database
>>
>>Let me know if you need more information.
>>
>>-Mitesh
>>
>>Tom Ware wrote:
>>
>>>Derby is included with your GlassFish installation.
>>>
>>>I'll provide a suggestion and perhaps one of the Sun folks that run
>>>the tests on Derby on a more regular basis than I can comment on
>>>easier ways.
>>>
>>>When I run on Derby, I include the derby jar on the Classpath that
>>>actually runs ant. I believe it is because I am running the embedded
>>>Derby version.
>>>
>>>Try adding: <cvs home>/publish/glassfish/javadb/lib/derby.jar to the
>>>classpath of the VM that is actually running ant.
>>>
>>>If that works for you, I will add a comment to the readme file.
>>>
>>>-Tom
>>>
>>>Markus KARG wrote:
>>>
>>>
>>>>Tom,
>>>>
>>>>thank you once more. In fact there is the following error:
>>>>
>>>>Exception Description: Configuration error. Class
>>>>[org.apache.derby.jdbc.EmbeddedDriver] not found.
>>>>
>>>>It seems that Derby is not found. Isn't it included in GlassFish? Do I
>>>>have to install it manually?
>>>>
>>>>Thanks a lot! :-)
>>>>Markus
>>>>
>>>>Tom Ware wrote:
>>>>
>>>>
>>>>
>>>>>Hi Markus,
>>>>>
>>>>>Based on your results, I suspect there is an issue with connecting to
>>>>>the database.
>>>>>
>>>>>Take a look in the testresults.txt file that should exist in your
>>>>>entity-persistence-tests directory. That is the file that the junit
>>>>>results are written to by default. Hopefully there will be an
>>>>>exception trace near the beginning of that file.
>>>>>
>>>>>-Tom
>>>>>
>>>>>Markus KARG wrote:
>>>>>
>>>>>
>>>>>
>>>>>>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$TempE
ntityLoader_at_112f614.
>>>>>>
>>>>>>
>>>>>> [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.NonFuele
dVehicle]
>>>>>>
>>>>>>
>>>>>>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.NonFuele
dVehicle]
>>>>>>
>>>>>>
>>>>>>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.SportsCa
r]
>>>>>>
>>>>>>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.SportsCa
r]
>>>>>>
>>>>>>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.Imaginar
yCar]
>>>>>>
>>>>>>
>>>>>>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.Imaginar
yCar]
>>>>>>
>>>>>>
>>>>>>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.g
etCar()]
>>>>>>
>>>>>>
>>>>>>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.g
etBestFriend()]
>>>>>>
>>>>>>
>>>>>>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.getB
usDriver()]
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.TireInf
o].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:09.284--ServerSession(9936523)--Thread(Thread[main,5,main])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.SportsC
ar].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:09.287--ServerSession(9936523)--Thread(Thread[main,5,main])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Enginee
r].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:09.296--ServerSession(9936523)--Thread(Thread[main,5,main])--Wea
ver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Perform
anceTireInfo].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:09.298--ServerSession(9936523)--Thread(Thread[main,5,main])--Wea
ver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.NonFuel
edVehicle].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:09.299--ServerSession(9936523)--Thread(Thread[main,5,main])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>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])--Wea
ver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.inheritance.Imagina
ryCar].
>>>>>>
>>>>>>
>>>>>> [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$TempE
ntityLoader_at_1b62aab.
>>>>>>
>>>>>>
>>>>>> [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])--Ig
noring
>>>>>>
>>>>>>
>>>>>>the named/named-native query
>>>>>>[oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataDescript
or_at_8a548b]
>>>>>>
>>>>>>
>>>>>>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])--Ig
noring
>>>>>>
>>>>>>
>>>>>>the named/named-native query
>>>>>>[oracle.toplink.essentials.internal.ejb.cmp3.metadata.MetadataDescript
or_at_8a548b]
>>>>>>
>>>>>>
>>>>>>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])--Th
e
>>>>>>
>>>>>>table name for entity [class
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alpi
ne]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: MERGEALPINE.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:11.488--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>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])--Th
e
>>>>>>
>>>>>>column name for element [public java.lang.String
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Embe
ddedSerialNumber.getBreweryCode()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: BREWERYCODE.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:11.495--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>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])--Th
e
>>>>>>
>>>>>>column name for element [private
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alpi
ne$Classification
>>>>>>
>>>>>>
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alpi
ne.classification]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: CLASSIFICATION.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:11.504--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>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])--Th
e
>>>>>>
>>>>>>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])--Th
e
>>>>>>
>>>>>>column name for element [private
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Cana
dian$Flavor
>>>>>>
>>>>>>
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Cana
dian.flavor]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: FLAVOR.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:11.783--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>column name for element [public java.lang.Integer
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer
Consumer.getId()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: ID.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:11.801--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>column name for element [public java.lang.String
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer
Consumer.getName()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: NAME.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:12.057--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>column name for element [public java.lang.String
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Cert
ification.getDescription()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: DESCRIPTION.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:12.061--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>column name for element [public java.lang.Integer
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Cert
ification.getId()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: ID.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:12.063--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>primary key column name for the mapping element [public
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer
Consumer
>>>>>>
>>>>>>
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Tele
phoneNumber.getBeerConsumer()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: ID.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:12.064--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>primary key column name for the mapping element [private
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer
Consumer
>>>>>>
>>>>>>
>>>>>>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])--Th
e
>>>>>>
>>>>>>primary key column name for the mapping element [private
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer
Consumer
>>>>>>
>>>>>>
>>>>>>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])--Th
e
>>>>>>
>>>>>>map key attribute name for the mapping element [public java.util.Map
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer
Consumer.getCanadianBeersToConsume()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: id.
>>>>>> [junit] [TopLink Config]: 2006.09.25
>>>>>>09:23:12.068--ServerSession(11228395)--Thread(Thread[main,5,main])--Th
e
>>>>>>
>>>>>>primary key column name for the mapping element [public
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Beer
Consumer
>>>>>>
>>>>>>
>>>>>>oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Cert
ification.getBeerConsumer()]
>>>>>>
>>>>>>
>>>>>>is being defaulted to: ID.
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:12.069--ServerSession(11228395)--Thread(Thread[main,5,main])--We
aver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Can
adian].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:12.069--ServerSession(11228395)--Thread(Thread[main,5,main])--We
aver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Bee
rConsumer].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:12.070--ServerSession(11228395)--Thread(Thread[main,5,main])--We
aver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Alp
ine].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:12.070--ServerSession(11228395)--Thread(Thread[main,5,main])--We
aver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Tel
ephoneNumber].
>>>>>>
>>>>>>
>>>>>> [junit] [TopLink Finer]: 2006.09.25
>>>>>>09:23:12.071--ServerSession(11228395)--Thread(Thread[main,5,main])--We
aver
>>>>>>
>>>>>>
>>>>>>processing class
>>>>>>[oracle.toplink.essentials.testing.models.cmp3.xml.merge.inherited.Cer
tification].
>>>>>>
>>>>>>
>>>>>> [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$TempE
ntityLoader_at_b6548.
>>>>>>
>>>>>>
>>>>>> [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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: dev-help_at_glassfish.dev.java.net