You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Weaver, Scott" <Sw...@rippe.com> on 2003/12/02 19:08:02 UTC

[J2] Cornerstone Framework Update.

I have just updated the CVS with the latest cornerstone code base.  You will notice there is now cornerstone-demo sub directory.  I have migrated the ant build functionality into maven for both cornerstone and cornerstone-demo.

Running the demo:

First build cornerstone by cd-ing to the cornerstone sub-directory and running "maven", the default goal will do everything you need including installing the cornerstone jar into your maven repository.

Second to run the demo, cd to cornerstone-demo and run "maven", the default goal will automatically build and run the demo app for you.


Regards,
*================================* 
| Scott T Weaver                 |
| <we...@apache.org>            | 
| Apache Jetspeed Portal Project |
| Apache Pluto Portlet Container |
*================================*


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


Re: [J2] Cornerstone Framework Update.

Posted by Jun Yang <ju...@cisco.com>.
Barnhill William wrote:

> Jun,
>
> This is definitely the problem, as I copied the property files and 
> their dir tree to cornerstone-demo/target/classes and added that 
> directory as a pathelement in the demo:persistence goal. Voila, 
> everything worked with no exceptions.  I probably should have poked 
> around some more before posting originally, but I try to stick to a 30 
> minute rule given by an old boss: if it takes more than 30 minutes to 
> solve a problem then ask and make sure someone else hasn't solved it 
> already.  Is this a good rule for open source as well?

I am new to active involvement in open source development too.  So I am 
not able to tell in general.  But not only am I not bothered but thank 
you for your active pursue of the problem.

> Bill
>
Jun

> Jun Yang wrote:
>
>> I digged around a little and found these properties files missing 
>> from jetspeed-cornerstone-1.0.jar.
>>
>> Scott, would you please take at the maven build to see why e.g. 
>> BasePersistentObjectListFactory.properties is missing from 
>> jetspeed-cornerstone-1.0.jar?  Thanks!
>>
>> Jun
>>
>> Barnhill William wrote:
>>
>>> Jun,
>>>
>>> Thanks, that got me past that problem, but now I'm getting a similar 
>>> exception as before.  Remember that PersistencException being thrown 
>>> was triggering the getCause() call that caused the stack overflow? 
>>> Well the reason for the PersistenceException is the stack trace at 
>>> the bottom of this message.
>>>
>>> The message is
>>>    collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>
>>>
>>> I'm guessing this would be set in one of :
>>>    BasePersistentObjectListFactory.properties,
>>>    BasePersistentObjectMapFactory.properties,
>>>    BasePersistentObjectSetFactory.properties, or
>>>    hsqldb-standalone.reg.properties
>>>
>>> Question is which one, and what should it be set to?
>>>
>>>    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
>>> - persistenceException; rootCause:
>>>    [java] 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 'collec
>>> tion.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>    [java] 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 'c
>>> ollection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>>
>>>    [java] Caused by: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.class
>>> Name' or 'collection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>>
>>>    [java] Caused by: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>>
>>>    [java]      ... 4 more
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>>
>>>    [java]      ... 2 more
>>>    [java] Caused by: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>>
>>>    [java]      ... 4 more
>>>    [java] Exception in thread "main"
>>>    [java] [ERROR] Java Result: 1
>>> BUILD SUCCESSFUL
>>> Total time: 8 seconds
>>> Finished at: Tue Dec 02 15:56:01 EST 2003
>>>
>>> Jun Yang wrote:
>>>
>>>> Bill,
>>>>
>>>> Change 
>>>> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
>>>> Change the line "connection.url=..." to 
>>>> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
>>>> should run.
>>>>
>>>> Jun
>>>>
>>>> Barnhill William wrote:
>>>>
>>>>> Scott,
>>>>>
>>>>> I also have created a modified maven.xml, which is attached.
>>>>> It has the benefit of the following goal tree using prereqs 
>>>>> attributes
>>>>> demo
>>>>>    demo:main
>>>>>           demo:prep
>>>>>    demo:persistence
>>>>>           demo:prep
>>>>>
>>>>> I've also added the hsql jar as a pathelement for the persistence 
>>>>> demo, but this should prob be a maven dependency.
>>>>>
>>>>> I'm now getting the following error (probly SHQL config problem):
>>>>>   [java] 
>>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>>>>> [select * from test_group where id = 100]
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>>>>
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>>>>
>>>>>   [java] Caused by: java.sql.SQLException: Table not found: 
>>>>> TEST_GROUP in statement [select * from test_group where id = 100]
>>>>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>>>>   [java]      at 
>>>>> org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown 
>>>>> Source)
>>>>>   [java]      at 
>>>>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>>>>
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>>>>
>>>>>   [java]      ... 1 more
>>>>>   [java] Exception in thread "main"
>>>>>   [java] [ERROR] Java Result: 1
>>>>>
>>>>> Bill
>>>>>
>>>>> Barnhill William wrote: 
>>>>


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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
Jun,

This is definitely the problem, as I copied the property files and their 
dir tree to cornerstone-demo/target/classes and added that directory as 
a pathelement in the demo:persistence goal. Voila, everything worked 
with no exceptions.  I probably should have poked around some more 
before posting originally, but I try to stick to a 30 minute rule given 
by an old boss: if it takes more than 30 minutes to solve a problem then 
ask and make sure someone else hasn't solved it already.  Is this a good 
rule for open source as well?

Bill

Jun Yang wrote:

> I digged around a little and found these properties files missing from 
> jetspeed-cornerstone-1.0.jar.
>
> Scott, would you please take at the maven build to see why e.g. 
> BasePersistentObjectListFactory.properties is missing from 
> jetspeed-cornerstone-1.0.jar?  Thanks!
>
> Jun
>
> Barnhill William wrote:
>
>> Jun,
>>
>> Thanks, that got me past that problem, but now I'm getting a similar 
>> exception as before.  Remember that PersistencException being thrown 
>> was triggering the getCause() call that caused the stack overflow? 
>> Well the reason for the PersistenceException is the stack trace at 
>> the bottom of this message.
>>
>> The message is
>>    collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>
>>
>> I'm guessing this would be set in one of :
>>    BasePersistentObjectListFactory.properties,
>>    BasePersistentObjectMapFactory.properties,
>>    BasePersistentObjectSetFactory.properties, or
>>    hsqldb-standalone.reg.properties
>>
>> Question is which one, and what should it be set to?
>>
>>    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
>> - persistenceException; rootCause:
>>    [java] 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 'collec
>> tion.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>    [java] 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 'c
>> ollection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>
>>    [java] Caused by: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.class
>> Name' or 'collection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>
>>    [java] Caused by: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>
>>    [java]      ... 4 more
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>
>>    [java]      ... 2 more
>>    [java] Caused by: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>
>>    [java]      ... 4 more
>>    [java] Exception in thread "main"
>>    [java] [ERROR] Java Result: 1
>> BUILD SUCCESSFUL
>> Total time: 8 seconds
>> Finished at: Tue Dec 02 15:56:01 EST 2003
>>
>> Jun Yang wrote:
>>
>>> Bill,
>>>
>>> Change 
>>> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
>>> Change the line "connection.url=..." to 
>>> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
>>> should run.
>>>
>>> Jun
>>>
>>> Barnhill William wrote:
>>>
>>>> Scott,
>>>>
>>>> I also have created a modified maven.xml, which is attached.
>>>> It has the benefit of the following goal tree using prereqs attributes
>>>> demo
>>>>    demo:main
>>>>           demo:prep
>>>>    demo:persistence
>>>>           demo:prep
>>>>
>>>> I've also added the hsql jar as a pathelement for the persistence 
>>>> demo, but this should prob be a maven dependency.
>>>>
>>>> I'm now getting the following error (probly SHQL config problem):
>>>>   [java] 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>>>> [select * from test_group where id = 100]
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>>>
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>>>
>>>>   [java] Caused by: java.sql.SQLException: Table not found: 
>>>> TEST_GROUP in statement [select * from test_group where id = 100]
>>>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>>>   [java]      at 
>>>> org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
>>>>   [java]      at 
>>>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>>>
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>>>
>>>>   [java]      ... 1 more
>>>>   [java] Exception in thread "main"
>>>>   [java] [ERROR] Java Result: 1
>>>>
>>>> Bill
>>>>
>>>> Barnhill William wrote:
>>>
>>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Jun Yang <ju...@cisco.com>.
Thanks, Bill.  Now I see the problem: the properties files currently 
residing under src/java belong to src/resources.

Jun

Barnhill William wrote:

> My mistake, correct snippet should be:
>     <resource>
>         <directory>${basedir}/src/java</directory>
>         <includes name="**/*.properties" />
>     </resource>
>
> I have tested this with a clean build and it works.
>
> Barnhill William wrote:
>
>> Adding the following snippet in the resources element of the 
>> cornerstone project.xml includes the property files. I left the other 
>> resource element in for completeness.
>>
>>      <resource>
>>          <directory>${basedir}/src</directory>
>>          <includes name="**/*.properties" />
>>      </resource>
>>
>> Bill
>>
>>
>> Jun Yang wrote:
>>
>>> I digged around a little and found these properties files missing 
>>> from jetspeed-cornerstone-1.0.jar.
>>>
>>> Scott, would you please take at the maven build to see why e.g. 
>>> BasePersistentObjectListFactory.properties is missing from 
>>> jetspeed-cornerstone-1.0.jar?  Thanks!
>>>
>>> Jun
>>>
>>> Barnhill William wrote:
>>>
>>>> Jun,
>>>>
>>>> Thanks, that got me past that problem, but now I'm getting a 
>>>> similar exception as before.  Remember that PersistencException 
>>>> being thrown was triggering the getCause() call that caused the 
>>>> stack overflow? Well the reason for the PersistenceException is the 
>>>> stack trace at the bottom of this message.
>>>>
>>>> The message is
>>>>    collection type definition missing; use 
>>>> 'collection.instance.className' or 'collection.factory.className' 
>>>> or 'collection.parent.name'
>>>>
>>>>
>>>> I'm guessing this would be set in one of :
>>>>    BasePersistentObjectListFactory.properties,
>>>>    BasePersistentObjectMapFactory.properties,
>>>>    BasePersistentObjectSetFactory.properties, or
>>>>    hsqldb-standalone.reg.properties
>>>>
>>>> Question is which one, and what should it be set to?
>>>>
>>>>    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
>>>> - persistenceException; rootCause:
>>>>    [java] 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> collection type definition missing; use 'collec
>>>> tion.instance.className' or 'collection.factory.className' or 
>>>> 'collection.parent.name'
>>>>    [java] 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> collection type definition missing; use 
>>>> 'collection.instance.className' or 'collection.factory.className' 
>>>> or 'c
>>>> ollection.parent.name'
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>>>
>>>>    [java] Caused by: 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> collection type definition missing; use 
>>>> 'collection.instance.className' or 'collection.factory.class
>>>> Name' or 'collection.parent.name'
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>>>
>>>>    [java] Caused by: 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> collection type definition missing; use 
>>>> 'collection.instance.className' or 'collection.factory.className' 
>>>> or 'collection.parent.name'
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>>>
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>>>
>>>>    [java]      ... 4 more
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>>>
>>>>    [java]      ... 2 more
>>>>    [java] Caused by: 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> collection type definition missing; use 
>>>> 'collection.instance.className' or 'collection.factory.className' 
>>>> or 'collection.parent.name'
>>>>    [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>>>
>>>>    [java]      ... 4 more
>>>>    [java] Exception in thread "main"
>>>>    [java] [ERROR] Java Result: 1
>>>> BUILD SUCCESSFUL
>>>> Total time: 8 seconds
>>>> Finished at: Tue Dec 02 15:56:01 EST 2003
>>>>
>>>> Jun Yang wrote:
>>>>
>>>>> Bill,
>>>>>
>>>>> Change 
>>>>> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
>>>>> Change the line "connection.url=..." to 
>>>>> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and 
>>>>> DemoPersistence should run.
>>>>>
>>>>> Jun
>>>>>
>>>>> Barnhill William wrote:
>>>>>
>>>>>> Scott,
>>>>>>
>>>>>> I also have created a modified maven.xml, which is attached.
>>>>>> It has the benefit of the following goal tree using prereqs 
>>>>>> attributes
>>>>>> demo
>>>>>>    demo:main
>>>>>>           demo:prep
>>>>>>    demo:persistence
>>>>>>           demo:prep
>>>>>>
>>>>>> I've also added the hsql jar as a pathelement for the persistence 
>>>>>> demo, but this should prob be a maven dependency.
>>>>>>
>>>>>> I'm now getting the following error (probly SHQL config problem):
>>>>>>   [java] 
>>>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>>>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>>>>>> [select * from test_group where id = 100]
>>>>>>   [java]      at 
>>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>>>>>
>>>>>>   [java]      at 
>>>>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>>>>>
>>>>>>   [java] Caused by: java.sql.SQLException: Table not found: 
>>>>>> TEST_GROUP in statement [select * from test_group where id = 100]
>>>>>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>>>>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>>>>>   [java]      at 
>>>>>> org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
>>>>>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>>>>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown 
>>>>>> Source)
>>>>>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown 
>>>>>> Source)
>>>>>>   [java]      at 
>>>>>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>>>>>   [java]      at 
>>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>>>>>
>>>>>>   [java]      at 
>>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>>>>>
>>>>>>   [java]      ... 1 more
>>>>>>   [java] Exception in thread "main"
>>>>>>   [java] [ERROR] Java Result: 1
>>>>>>
>>>>>> Bill
>>>>>>
>>>>>> Barnhill William wrote:
>>>>>


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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
My mistake, correct snippet should be:
     <resource>
         <directory>${basedir}/src/java</directory>
         <includes name="**/*.properties" />
     </resource>

I have tested this with a clean build and it works.

Barnhill William wrote:

> Adding the following snippet in the resources element of the 
> cornerstone project.xml includes the property files. I left the other 
> resource element in for completeness.
>
>      <resource>
>          <directory>${basedir}/src</directory>
>          <includes name="**/*.properties" />
>      </resource>
>
> Bill
>
>
> Jun Yang wrote:
>
>> I digged around a little and found these properties files missing 
>> from jetspeed-cornerstone-1.0.jar.
>>
>> Scott, would you please take at the maven build to see why e.g. 
>> BasePersistentObjectListFactory.properties is missing from 
>> jetspeed-cornerstone-1.0.jar?  Thanks!
>>
>> Jun
>>
>> Barnhill William wrote:
>>
>>> Jun,
>>>
>>> Thanks, that got me past that problem, but now I'm getting a similar 
>>> exception as before.  Remember that PersistencException being thrown 
>>> was triggering the getCause() call that caused the stack overflow? 
>>> Well the reason for the PersistenceException is the stack trace at 
>>> the bottom of this message.
>>>
>>> The message is
>>>    collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>
>>>
>>> I'm guessing this would be set in one of :
>>>    BasePersistentObjectListFactory.properties,
>>>    BasePersistentObjectMapFactory.properties,
>>>    BasePersistentObjectSetFactory.properties, or
>>>    hsqldb-standalone.reg.properties
>>>
>>> Question is which one, and what should it be set to?
>>>
>>>    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
>>> - persistenceException; rootCause:
>>>    [java] 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 'collec
>>> tion.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>    [java] 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 'c
>>> ollection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>>
>>>    [java] Caused by: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.class
>>> Name' or 'collection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>>
>>>    [java] Caused by: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>>
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>>
>>>    [java]      ... 4 more
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>>
>>>    [java]      ... 2 more
>>>    [java] Caused by: 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> collection type definition missing; use 
>>> 'collection.instance.className' or 'collection.factory.className' or 
>>> 'collection.parent.name'
>>>    [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>>
>>>    [java]      ... 4 more
>>>    [java] Exception in thread "main"
>>>    [java] [ERROR] Java Result: 1
>>> BUILD SUCCESSFUL
>>> Total time: 8 seconds
>>> Finished at: Tue Dec 02 15:56:01 EST 2003
>>>
>>> Jun Yang wrote:
>>>
>>>> Bill,
>>>>
>>>> Change 
>>>> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
>>>> Change the line "connection.url=..." to 
>>>> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
>>>> should run.
>>>>
>>>> Jun
>>>>
>>>> Barnhill William wrote:
>>>>
>>>>> Scott,
>>>>>
>>>>> I also have created a modified maven.xml, which is attached.
>>>>> It has the benefit of the following goal tree using prereqs 
>>>>> attributes
>>>>> demo
>>>>>    demo:main
>>>>>           demo:prep
>>>>>    demo:persistence
>>>>>           demo:prep
>>>>>
>>>>> I've also added the hsql jar as a pathelement for the persistence 
>>>>> demo, but this should prob be a maven dependency.
>>>>>
>>>>> I'm now getting the following error (probly SHQL config problem):
>>>>>   [java] 
>>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>>>>> [select * from test_group where id = 100]
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>>>>
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>>>>
>>>>>   [java] Caused by: java.sql.SQLException: Table not found: 
>>>>> TEST_GROUP in statement [select * from test_group where id = 100]
>>>>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>>>>   [java]      at 
>>>>> org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>>>>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown 
>>>>> Source)
>>>>>   [java]      at 
>>>>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>>>>
>>>>>   [java]      at 
>>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>>>>
>>>>>   [java]      ... 1 more
>>>>>   [java] Exception in thread "main"
>>>>>   [java] [ERROR] Java Result: 1
>>>>>
>>>>> Bill
>>>>>
>>>>> Barnhill William wrote:
>>>>
>>>>
>>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
Adding the following snippet in the resources element of the cornerstone 
project.xml includes the property files. I left the other resource 
element in for completeness.

      <resource>
          <directory>${basedir}/src</directory>
          <includes name="**/*.properties" />
      </resource>
 
Bill


Jun Yang wrote:

> I digged around a little and found these properties files missing from 
> jetspeed-cornerstone-1.0.jar.
>
> Scott, would you please take at the maven build to see why e.g. 
> BasePersistentObjectListFactory.properties is missing from 
> jetspeed-cornerstone-1.0.jar?  Thanks!
>
> Jun
>
> Barnhill William wrote:
>
>> Jun,
>>
>> Thanks, that got me past that problem, but now I'm getting a similar 
>> exception as before.  Remember that PersistencException being thrown 
>> was triggering the getCause() call that caused the stack overflow? 
>> Well the reason for the PersistenceException is the stack trace at 
>> the bottom of this message.
>>
>> The message is
>>    collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>
>>
>> I'm guessing this would be set in one of :
>>    BasePersistentObjectListFactory.properties,
>>    BasePersistentObjectMapFactory.properties,
>>    BasePersistentObjectSetFactory.properties, or
>>    hsqldb-standalone.reg.properties
>>
>> Question is which one, and what should it be set to?
>>
>>    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
>> - persistenceException; rootCause:
>>    [java] 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 'collec
>> tion.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>    [java] 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 'c
>> ollection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>>
>>    [java] Caused by: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.class
>> Name' or 'collection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>>
>>    [java] Caused by: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>>
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>
>>    [java]      ... 4 more
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>>
>>    [java]      ... 2 more
>>    [java] Caused by: 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> collection type definition missing; use 
>> 'collection.instance.className' or 'collection.factory.className' or 
>> 'collection.parent.name'
>>    [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>>
>>    [java]      ... 4 more
>>    [java] Exception in thread "main"
>>    [java] [ERROR] Java Result: 1
>> BUILD SUCCESSFUL
>> Total time: 8 seconds
>> Finished at: Tue Dec 02 15:56:01 EST 2003
>>
>> Jun Yang wrote:
>>
>>> Bill,
>>>
>>> Change 
>>> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
>>> Change the line "connection.url=..." to 
>>> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
>>> should run.
>>>
>>> Jun
>>>
>>> Barnhill William wrote:
>>>
>>>> Scott,
>>>>
>>>> I also have created a modified maven.xml, which is attached.
>>>> It has the benefit of the following goal tree using prereqs attributes
>>>> demo
>>>>    demo:main
>>>>           demo:prep
>>>>    demo:persistence
>>>>           demo:prep
>>>>
>>>> I've also added the hsql jar as a pathelement for the persistence 
>>>> demo, but this should prob be a maven dependency.
>>>>
>>>> I'm now getting the following error (probly SHQL config problem):
>>>>   [java] 
>>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>>>> [select * from test_group where id = 100]
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>>>
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>>>
>>>>   [java] Caused by: java.sql.SQLException: Table not found: 
>>>> TEST_GROUP in statement [select * from test_group where id = 100]
>>>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>>>   [java]      at 
>>>> org.hsqldb.jdbcConnection.executeStandalone(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>>>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
>>>>   [java]      at 
>>>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>>>
>>>>   [java]      at 
>>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>>>
>>>>   [java]      ... 1 more
>>>>   [java] Exception in thread "main"
>>>>   [java] [ERROR] Java Result: 1
>>>>
>>>> Bill
>>>>
>>>> Barnhill William wrote:
>>>
>>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Jun Yang <ju...@cisco.com>.
I digged around a little and found these properties files missing from 
jetspeed-cornerstone-1.0.jar.

Scott, would you please take at the maven build to see why e.g. 
BasePersistentObjectListFactory.properties is missing from 
jetspeed-cornerstone-1.0.jar?  Thanks!

Jun

Barnhill William wrote:

> Jun,
>
> Thanks, that got me past that problem, but now I'm getting a similar 
> exception as before.  Remember that PersistencException being thrown 
> was triggering the getCause() call that caused the stack overflow? 
> Well the reason for the PersistenceException is the stack trace at the 
> bottom of this message.
>
> The message is
>    collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>
>
> I'm guessing this would be set in one of :
>    BasePersistentObjectListFactory.properties,
>    BasePersistentObjectMapFactory.properties,
>    BasePersistentObjectSetFactory.properties, or
>    hsqldb-standalone.reg.properties
>
> Question is which one, and what should it be set to?
>
>    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
> - persistenceException; rootCause:
>    [java] 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 'collec
> tion.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>    [java] 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 'c
> ollection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>
>    [java]      at 
> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>
>    [java] Caused by: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.class
> Name' or 'collection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>
>    [java] Caused by: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>
>    [java]      ... 4 more
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>
>    [java]      ... 2 more
>    [java] Caused by: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>
>    [java]      ... 4 more
>    [java] Exception in thread "main"
>    [java] [ERROR] Java Result: 1
> BUILD SUCCESSFUL
> Total time: 8 seconds
> Finished at: Tue Dec 02 15:56:01 EST 2003
>
> Jun Yang wrote:
>
>> Bill,
>>
>> Change 
>> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
>> Change the line "connection.url=..." to 
>> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
>> should run.
>>
>> Jun
>>
>> Barnhill William wrote:
>>
>>> Scott,
>>>
>>> I also have created a modified maven.xml, which is attached.
>>> It has the benefit of the following goal tree using prereqs attributes
>>> demo
>>>    demo:main
>>>           demo:prep
>>>    demo:persistence
>>>           demo:prep
>>>
>>> I've also added the hsql jar as a pathelement for the persistence 
>>> demo, but this should prob be a maven dependency.
>>>
>>> I'm now getting the following error (probly SHQL config problem):
>>>   [java] 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>>> [select * from test_group where id = 100]
>>>   [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>>
>>>   [java]      at 
>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>>
>>>   [java] Caused by: java.sql.SQLException: Table not found: 
>>> TEST_GROUP in statement [select * from test_group where id = 100]
>>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcConnection.executeStandalone(Unknown 
>>> Source)
>>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
>>>   [java]      at 
>>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>>   [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>>
>>>   [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>>
>>>   [java]      ... 1 more
>>>   [java] Exception in thread "main"
>>>   [java] [ERROR] Java Result: 1
>>>
>>> Bill
>>>
>>> Barnhill William wrote:
>>



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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
I think I've answered my own question.
I can't find the property files listed below anywhere in the jars, and 
they should be included, right?


Barnhill William wrote:

> Jun,
>
> Thanks, that got me past that problem, but now I'm getting a similar 
> exception as before.  Remember that PersistencException being thrown 
> was triggering the getCause() call that caused the stack overflow? 
> Well the reason for the PersistenceException is the stack trace at the 
> bottom of this message.
>
> The message is
>    collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>
>
> I'm guessing this would be set in one of :
>    BasePersistentObjectListFactory.properties,
>    BasePersistentObjectMapFactory.properties,
>    BasePersistentObjectSetFactory.properties, or
>    hsqldb-standalone.reg.properties
>
> Question is which one, and what should it be set to?
>
>    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
> - persistenceException; rootCause:
>    [java] 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 'collec
> tion.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>    [java] 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 'c
> ollection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>
>    [java]      at 
> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107) 
>
>    [java] Caused by: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.class
> Name' or 'collection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307) 
>
>    [java] Caused by: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220) 
>
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>
>    [java]      ... 4 more
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118) 
>
>    [java]      ... 2 more
>    [java] Caused by: 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> collection type definition missing; use 
> 'collection.instance.className' or 'collection.factory.className' or 
> 'collection.parent.name'
>    [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300) 
>
>    [java]      ... 4 more
>    [java] Exception in thread "main"
>    [java] [ERROR] Java Result: 1
> BUILD SUCCESSFUL
> Total time: 8 seconds
> Finished at: Tue Dec 02 15:56:01 EST 2003
>
> Jun Yang wrote:
>
>> Bill,
>>
>> Change 
>> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
>> Change the line "connection.url=..." to 
>> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
>> should run.
>>
>> Jun
>>
>> Barnhill William wrote:
>>
>>> Scott,
>>>
>>> I also have created a modified maven.xml, which is attached.
>>> It has the benefit of the following goal tree using prereqs attributes
>>> demo
>>>    demo:main
>>>           demo:prep
>>>    demo:persistence
>>>           demo:prep
>>>
>>> I've also added the hsql jar as a pathelement for the persistence 
>>> demo, but this should prob be a maven dependency.
>>>
>>> I'm now getting the following error (probly SHQL config problem):
>>>   [java] 
>>> org.apache.cornerstone.framework.api.factory.CreationException: 
>>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>>> [select * from test_group where id = 100]
>>>   [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>>
>>>   [java]      at 
>>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>>
>>>   [java] Caused by: java.sql.SQLException: Table not found: 
>>> TEST_GROUP in statement [select * from test_group where id = 100]
>>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcConnection.executeStandalone(Unknown 
>>> Source)
>>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
>>>   [java]      at 
>>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>>   [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>>
>>>   [java]      at 
>>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>>
>>>   [java]      ... 1 more
>>>   [java] Exception in thread "main"
>>>   [java] [ERROR] Java Result: 1
>>>
>>> Bill
>>>
>>> Barnhill William wrote:
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
Jun,

Thanks, that got me past that problem, but now I'm getting a similar 
exception as before.  Remember that PersistencException being thrown was 
triggering the getCause() call that caused the stack overflow? Well the 
reason for the PersistenceException is the stack trace at the bottom of 
this message.

The message is
    collection type definition missing; use 
'collection.instance.className' or 'collection.factory.className' or 
'collection.parent.name'


I'm guessing this would be set in one of :
    BasePersistentObjectListFactory.properties,
    BasePersistentObjectMapFactory.properties,
    BasePersistentObjectSetFactory.properties, or
    hsqldb-standalone.reg.properties

Question is which one, and what should it be set to?

    [java] 2003-12-02 15:56:00,441 1723 [main] ERROR 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory  
- persistenceException; rootCause:
    [java] 
org.apache.cornerstone.framework.api.factory.CreationException: 
org.apache.cornerstone.framework.api.factory.CreationException: 
org.apache.cornerstone.framework.api.factory.CreationException: 
collection type definition missing; use 'collec
tion.instance.className' or 'collection.factory.className' or 
'collection.parent.name'
    [java] 
org.apache.cornerstone.framework.api.factory.CreationException: 
org.apache.cornerstone.framework.api.factory.CreationException: 
collection type definition missing; use 'collection.instance.className' 
or 'collection.factory.className' or 'c
ollection.parent.name'
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307)
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:123)
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220)
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107)
    [java]      at 
org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45)
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118)
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:107)
    [java] Caused by: 
org.apache.cornerstone.framework.api.factory.CreationException: 
org.apache.cornerstone.framework.api.factory.CreationException: 
collection type definition missing; use 'collection.instance.className' 
or 'collection.factory.class
Name' or 'collection.parent.name'
    [java]      at 
org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:45)
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:307)
    [java] Caused by: 
org.apache.cornerstone.framework.api.factory.CreationException: 
collection type definition missing; use 'collection.instance.className' 
or 'collection.factory.className' or 'collection.parent.name'
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.retrieveAndPopulate(BasePersistentObjectCollectionFactory.java:220)
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300)
    [java]      ... 4 more
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createInstance(BasePersistentObjectCollectionFactory.java:118)
    [java]      ... 2 more
    [java] Caused by: 
org.apache.cornerstone.framework.api.factory.CreationException: 
collection type definition missing; use 'collection.instance.className' 
or 'collection.factory.className' or 'collection.parent.name'
    [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectCollectionFactory.createCollection(BasePersistentObjectCollectionFactory.java:300)
    [java]      ... 4 more
    [java] Exception in thread "main"
    [java] [ERROR] Java Result: 1
BUILD SUCCESSFUL
Total time: 8 seconds
Finished at: Tue Dec 02 15:56:01 EST 2003

Jun Yang wrote:

> Bill,
>
> Change 
> cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
> Change the line "connection.url=..." to 
> "connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
> should run.
>
> Jun
>
> Barnhill William wrote:
>
>> Scott,
>>
>> I also have created a modified maven.xml, which is attached.
>> It has the benefit of the following goal tree using prereqs attributes
>> demo
>>    demo:main
>>           demo:prep
>>    demo:persistence
>>           demo:prep
>>
>> I've also added the hsql jar as a pathelement for the persistence 
>> demo, but this should prob be a maven dependency.
>>
>> I'm now getting the following error (probly SHQL config problem):
>>   [java] 
>> org.apache.cornerstone.framework.api.factory.CreationException: 
>> java.sql.SQLException: Table not found: TEST_GROUP in statement 
>> [select * from test_group where id = 100]
>>   [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>>
>>   [java]      at 
>> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>>
>>   [java] Caused by: java.sql.SQLException: Table not found: 
>> TEST_GROUP in statement [select * from test_group where id = 100]
>>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>>   [java]      at org.hsqldb.jdbcConnection.executeStandalone(Unknown 
>> Source)
>>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
>>   [java]      at 
>> org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown Source)
>>   [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>>
>>   [java]      at 
>> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>>
>>   [java]      ... 1 more
>>   [java] Exception in thread "main"
>>   [java] [ERROR] Java Result: 1
>>
>> Bill
>>
>> Barnhill William wrote:
>>
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Jun Yang <ju...@cisco.com>.
Bill,

Change 
cornerstone-demo/registry/implementation/cornerstone.dataSource/hsqldb-standalone.reg.properties.  
Change the line "connection.url=..." to 
"connection.url=jdbc:hsqldb:./hsqldb/data/test" and DemoPersistence 
should run.

Jun

Barnhill William wrote:

> Scott,
>
> I also have created a modified maven.xml, which is attached.
> It has the benefit of the following goal tree using prereqs attributes
> demo
>    demo:main
>           demo:prep
>    demo:persistence
>           demo:prep
>
> I've also added the hsql jar as a pathelement for the persistence 
> demo, but this should prob be a maven dependency.
>
> I'm now getting the following error (probly SHQL config problem):
>   [java] 
> org.apache.cornerstone.framework.api.factory.CreationException: 
> java.sql.SQLException: Table not found: TEST_GROUP in statement 
> [select * from test_group where id = 100]
>   [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146) 
>
>   [java]      at 
> org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31) 
>
>   [java] Caused by: java.sql.SQLException: Table not found: TEST_GROUP 
> in statement [select * from test_group where id = 100]
>   [java]      at org.hsqldb.Trace.getError(Unknown Source)
>   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
>   [java]      at org.hsqldb.jdbcConnection.executeStandalone(Unknown 
> Source)
>   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
>   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
>   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
>   [java]      at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown 
> Source)
>   [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234) 
>
>   [java]      at 
> org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141) 
>
>   [java]      ... 1 more
>   [java] Exception in thread "main"
>   [java] [ERROR] Java Result: 1
>
> Bill
>
> Barnhill William wrote:
>
>> Scott,
>>
>> To test, I deleted the following files and rebuilt:
>>    
>> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>>
>>    
>> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\controller\SequentialActionController.java 
>>
>>
>> Once I did that everything built fine.
>>
>> Bill
>>
>> Barnhill William wrote:
>>
>>> Scott,
>>>
>>> Is 
>>> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>>> the correct version?
>>>
>>> I followed the directions and got multiple unresolved symbols, all 
>>> from that file.
>>> I noticed that the zip file has a BaseActionManager.java in it's 
>>> place, with    public static final String REVISION = "$Revision: 1.2 
>>> $";
>>> and the ActionManager from CVS has
>>>    public static final String REVISION = "$Revision: 1.1 $";
>>>
>>> Btw, is it acceptable to use HTML emails for formatting or are there 
>>> people who'd object?
>>>
>>> Bill
>>>
>>> Weaver, Scott wrote:
>>>
>>>> I have just updated the CVS with the latest cornerstone code base.  
>>>> You will notice there is now cornerstone-demo sub directory.  I 
>>>> have migrated the ant build functionality into maven for both 
>>>> cornerstone and cornerstone-demo.
>>>>
>>>> Running the demo:
>>>>
>>>> First build cornerstone by cd-ing to the cornerstone sub-directory 
>>>> and running "maven", the default goal will do everything you need 
>>>> including installing the cornerstone jar into your maven repository.
>>>>
>>>> Second to run the demo, cd to cornerstone-demo and run "maven", the 
>>>> default goal will automatically build and run the demo app for you.
>>>>
>>>>
>>>> Regards,
>>>> *================================* | Scott T Weaver                 |
>>>> | <we...@apache.org>            | | Apache Jetspeed Portal Project |
>>>> | Apache Pluto Portlet Container |
>>>> *================================*
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>>>
>>>>
>>>>  
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>
>>
>------------------------------------------------------------------------
>
><project default="demo"
>         xmlns:j="jelly:core" 
>         xmlns:define="jelly:define"
>         xmlns:reactor="reactor">
>         
>         
> <goal name="demo" prereqs="demo:main,demo:persistence" />
>
> <goal name="demo:prep" >
>     <attainGoal name="jar:jar" />
>     <!-- Merge standard runtime and demo into same directory -->
>     <copy todir="${maven.build.dir}/runtime">
>			<fileset dir="${CORNERSTONE_RUNTIME_HOME}"/>
>	  </copy>	  
>	  <copy todir="${maven.build.dir}/runtime/registry">
>			<fileset dir="${basedir}/registry"/>
>	  </copy>
>  </goal>
>
> <goal name="demo:main" prereqs="demo:prep" >
>
>     <java classname="org.apache.cornerstone.framework.demo.main.DemoMain" fork="yes">
>      <sysproperty key="log4j.configuration" value="log4j.properties"/> 
>      <sysproperty key="CORNERSTONE_RUNTIME_HOME" value="${basedir}/target/runtime"/>
>       <classpath>
>         <path refid="maven.dependency.classpath"/>
>         <pathelement path="${maven.build.dir}/${jar.name}"/>
>        </classpath>
>      </java>
>
>  </goal>
>
>  <goal name="demo:persistence" prereqs="demo:prep" >
>    <java classname="org.apache.cornerstone.framework.demo.main.DemoPersistence" fork="yes">
>      <sysproperty key="log4j.configuration" value="log4j.properties"/> 
>      <sysproperty key="CORNERSTONE_RUNTIME_HOME" value="${basedir}/target/runtime"/>
>       <classpath>
>         <path refid="maven.dependency.classpath"/>
>	 <pathelement path="${maven.build.dir}/${jar.name}"/>
>	 <pathelement path="${maven.build.dir}/../hsqldb/lib/hsqldb.jar"/> <!-- @todo: set this up as a Maven style dependency -->
>        </classpath>
>      </java>
>  </goal>
>  
></project>
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
Scott,

I also have created a modified maven.xml, which is attached.
It has the benefit of the following goal tree using prereqs attributes
demo
    demo:main
           demo:prep
    demo:persistence
           demo:prep

I've also added the hsql jar as a pathelement for the persistence demo, 
but this should prob be a maven dependency.

I'm now getting the following error (probly SHQL config problem):
   [java] 
org.apache.cornerstone.framework.api.factory.CreationException: 
java.sql.SQLException: Table not found: TEST_GROUP in statement [select 
* from test_group where id = 100]
   [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:146)
   [java]      at 
org.apache.cornerstone.framework.demo.main.DemoPersistence.main(DemoPersistence.java:31)
   [java] Caused by: java.sql.SQLException: Table not found: TEST_GROUP 
in statement [select * from test_group where id = 100]
   [java]      at org.hsqldb.Trace.getError(Unknown Source)
   [java]      at org.hsqldb.jdbcResultSet.<init>(Unknown Source)
   [java]      at org.hsqldb.jdbcConnection.executeStandalone(Unknown 
Source)
   [java]      at org.hsqldb.jdbcConnection.execute(Unknown Source)
   [java]      at org.hsqldb.jdbcStatement.fetchResult(Unknown Source)
   [java]      at org.hsqldb.jdbcStatement.executeQuery(Unknown Source)
   [java]      at org.hsqldb.jdbcPreparedStatement.executeQuery(Unknown 
Source)
   [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.retrieveAndPopulate(BasePersistentObjectFactory.java:234)
   [java]      at 
org.apache.cornerstone.framework.persistence.factory.BasePersistentObjectFactory.createInstance(BasePersistentObjectFactory.java:141)
   [java]      ... 1 more
   [java] Exception in thread "main"
   [java] [ERROR] Java Result: 1

Bill

Barnhill William wrote:

> Scott,
>
> To test, I deleted the following files and rebuilt:
>    
> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>
>    
> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\controller\SequentialActionController.java 
>
>
> Once I did that everything built fine.
>
> Bill
>
> Barnhill William wrote:
>
>> Scott,
>>
>> Is 
>> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>> the correct version?
>>
>> I followed the directions and got multiple unresolved symbols, all 
>> from that file.
>> I noticed that the zip file has a BaseActionManager.java in it's 
>> place, with    public static final String REVISION = "$Revision: 1.2 $";
>> and the ActionManager from CVS has
>>    public static final String REVISION = "$Revision: 1.1 $";
>>
>> Btw, is it acceptable to use HTML emails for formatting or are there 
>> people who'd object?
>>
>> Bill
>>
>> Weaver, Scott wrote:
>>
>>> I have just updated the CVS with the latest cornerstone code base.  
>>> You will notice there is now cornerstone-demo sub directory.  I have 
>>> migrated the ant build functionality into maven for both cornerstone 
>>> and cornerstone-demo.
>>>
>>> Running the demo:
>>>
>>> First build cornerstone by cd-ing to the cornerstone sub-directory 
>>> and running "maven", the default goal will do everything you need 
>>> including installing the cornerstone jar into your maven repository.
>>>
>>> Second to run the demo, cd to cornerstone-demo and run "maven", the 
>>> default goal will automatically build and run the demo app for you.
>>>
>>>
>>> Regards,
>>> *================================* | Scott T Weaver                 |
>>> | <we...@apache.org>            | | Apache Jetspeed Portal Project |
>>> | Apache Pluto Portlet Container |
>>> *================================*
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>>
>>>
>>>  
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>

Re: [J2] Cornerstone Framework Update.

Posted by Jun Yang <ju...@cisco.com>.
I haven't checked the new version in CVS yet (I will do that very 
soon).  But action source is supposed to be generated from service 
source.  So action source shouldn't appear in CVS.

Jun

Barnhill William wrote:

> Scott,
>
> To test, I deleted the following files and rebuilt:
>    
> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>
>    
> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\controller\SequentialActionController.java 
>
>
> Once I did that everything built fine.
>
> Bill
>
> Barnhill William wrote:
>
>> Scott,
>>
>> Is 
>> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>> the correct version?
>>
>> I followed the directions and got multiple unresolved symbols, all 
>> from that file.
>> I noticed that the zip file has a BaseActionManager.java in it's 
>> place, with    public static final String REVISION = "$Revision: 1.2 $";
>> and the ActionManager from CVS has
>>    public static final String REVISION = "$Revision: 1.1 $";
>>
>> Btw, is it acceptable to use HTML emails for formatting or are there 
>> people who'd object?
>>
>> Bill
>>
>> Weaver, Scott wrote:
>>
>>> I have just updated the CVS with the latest cornerstone code base.  
>>> You will notice there is now cornerstone-demo sub directory.  I have 
>>> migrated the ant build functionality into maven for both cornerstone 
>>> and cornerstone-demo.
>>>
>>> Running the demo:
>>>
>>> First build cornerstone by cd-ing to the cornerstone sub-directory 
>>> and running "maven", the default goal will do everything you need 
>>> including installing the cornerstone jar into your maven repository.
>>>
>>> Second to run the demo, cd to cornerstone-demo and run "maven", the 
>>> default goal will automatically build and run the demo app for you.
>>>
>>>
>>> Regards,
>>> *================================* | Scott T Weaver                 |
>>> | <we...@apache.org>            | | Apache Jetspeed Portal Project |
>>> | Apache Pluto Portlet Container |
>>> *================================* 
>>



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


Re: [J2] Cornerstone Framework Update.

Posted by Jun Yang <ju...@cisco.com>.
cornerstone/src/java/org/apache/cornerstone/framework/action is a 
directory left over from a prevous version.  Just delete that and 
rebuild and you will be fine.

Jun

Barnhill William wrote:

> Scott,
>
> To test, I deleted the following files and rebuilt:
>    
> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>
>    
> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\controller\SequentialActionController.java 
>
>
> Once I did that everything built fine.
>
> Bill
>
> Barnhill William wrote:
>
>> Scott,
>>
>> Is 
>> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
>> the correct version?
>>
>> I followed the directions and got multiple unresolved symbols, all 
>> from that file.
>> I noticed that the zip file has a BaseActionManager.java in it's 
>> place, with    public static final String REVISION = "$Revision: 1.2 $";
>> and the ActionManager from CVS has
>>    public static final String REVISION = "$Revision: 1.1 $";
>>
>> Btw, is it acceptable to use HTML emails for formatting or are there 
>> people who'd object?
>>
>> Bill
>>
>> Weaver, Scott wrote:
>>
>>> I have just updated the CVS with the latest cornerstone code base.  
>>> You will notice there is now cornerstone-demo sub directory.  I have 
>>> migrated the ant build functionality into maven for both cornerstone 
>>> and cornerstone-demo.
>>>
>>> Running the demo:
>>>
>>> First build cornerstone by cd-ing to the cornerstone sub-directory 
>>> and running "maven", the default goal will do everything you need 
>>> including installing the cornerstone jar into your maven repository.
>>>
>>> Second to run the demo, cd to cornerstone-demo and run "maven", the 
>>> default goal will automatically build and run the demo app for you.
>>>
>>>
>>> Regards,
>>> *================================* | Scott T Weaver                 |
>>> | <we...@apache.org>            | | Apache Jetspeed Portal Project |
>>> | Apache Pluto Portlet Container |
>>> *================================*
>>


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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
Scott,

To test, I deleted the following files and rebuilt:
    
jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java
    
jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\controller\SequentialActionController.java

Once I did that everything built fine.

Bill

Barnhill William wrote:

> Scott,
>
> Is 
> jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
> the correct version?
>
> I followed the directions and got multiple unresolved symbols, all 
> from that file.
> I noticed that the zip file has a BaseActionManager.java in it's 
> place, with    public static final String REVISION = "$Revision: 1.2 $";
> and the ActionManager from CVS has
>    public static final String REVISION = "$Revision: 1.1 $";
>
> Btw, is it acceptable to use HTML emails for formatting or are there 
> people who'd object?
>
> Bill
>
> Weaver, Scott wrote:
>
>> I have just updated the CVS with the latest cornerstone code base.  
>> You will notice there is now cornerstone-demo sub directory.  I have 
>> migrated the ant build functionality into maven for both cornerstone 
>> and cornerstone-demo.
>>
>> Running the demo:
>>
>> First build cornerstone by cd-ing to the cornerstone sub-directory 
>> and running "maven", the default goal will do everything you need 
>> including installing the cornerstone jar into your maven repository.
>>
>> Second to run the demo, cd to cornerstone-demo and run "maven", the 
>> default goal will automatically build and run the demo app for you.
>>
>>
>> Regards,
>> *================================* | Scott T Weaver                 |
>> | <we...@apache.org>            | | Apache Jetspeed Portal Project |
>> | Apache Pluto Portlet Container |
>> *================================*
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>>
>>
>>  
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Barnhill William <ba...@bah.com>.
Scott,

Is 
jakarta-jetspeed-2\cornerstone\src\java\org\apache\cornerstone\framework\action\ActionManager.java 
the correct version?

I followed the directions and got multiple unresolved symbols, all from 
that file.
I noticed that the zip file has a BaseActionManager.java in it's place, 
with 
    public static final String REVISION = "$Revision: 1.2 $";
and the ActionManager from CVS has
    public static final String REVISION = "$Revision: 1.1 $";

Btw, is it acceptable to use HTML emails for formatting or are there 
people who'd object?

Bill

Weaver, Scott wrote:

>I have just updated the CVS with the latest cornerstone code base.  You will notice there is now cornerstone-demo sub directory.  I have migrated the ant build functionality into maven for both cornerstone and cornerstone-demo.
>
>Running the demo:
>
>First build cornerstone by cd-ing to the cornerstone sub-directory and running "maven", the default goal will do everything you need including installing the cornerstone jar into your maven repository.
>
>Second to run the demo, cd to cornerstone-demo and run "maven", the default goal will automatically build and run the demo app for you.
>
>
>Regards,
>*================================* 
>| Scott T Weaver                 |
>| <we...@apache.org>            | 
>| Apache Jetspeed Portal Project |
>| Apache Pluto Portlet Container |
>*================================*
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>
>  
>


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


Re: [J2] Cornerstone Framework Update.

Posted by Jun Yang <ju...@cisco.com>.
Thanks Scott for doing it so quickly (as usual)!

Jun

Weaver, Scott wrote:

>I have just updated the CVS with the latest cornerstone code base.  You will notice there is now cornerstone-demo sub directory.  I have migrated the ant build functionality into maven for both cornerstone and cornerstone-demo.
>
>Running the demo:
>
>First build cornerstone by cd-ing to the cornerstone sub-directory and running "maven", the default goal will do everything you need including installing the cornerstone jar into your maven repository.
>
>Second to run the demo, cd to cornerstone-demo and run "maven", the default goal will automatically build and run the demo app for you.
>
>
>Regards,
>*================================* 
>| Scott T Weaver                 |
>| <we...@apache.org>            | 
>| Apache Jetspeed Portal Project |
>| Apache Pluto Portlet Container |
>*================================*
>  
>


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