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 | | <[EMAIL PROTECTED]> | | Apache Jetspeed Portal Project | | Apache Pluto Portlet Container | *================================*
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]