dev@glassfish.java.net

Re: Compiling Glassfish in Eclipse

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 26 Sep 2006 12:24:54 -0700

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;retrieveMessagesFromServerOnGetMessage=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$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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>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
>>
>>
>
>