[Building Sakai] Java 1.6 for Sakai 2.7

Seth Theriault slt at columbia.edu
Thu Oct 8 14:26:36 PDT 2009


Seth Theriault wrote:

> I just tried to build again with an updated trunk, but it failed
> due to a repeated method in the Rwiki code. I'll be sending a
> separate e-mail about that.

Just finished up some local testing using trunk, r67389, on a Mac
OS X Leopard system:

$ uname -a
Darwin mirth.cc.columbia.edu 9.8.0 Darwin Kernel Version 9.8.0:
Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
$ echo $JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
$ $JAVA_HOME/bin/java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode)

Using the default pack-demo target, the build was without
incident. Of course, the default uses "-Dmaven.test.skip=true" so
I turned that off (and "-Dmaven.test.failure.ignore=true" too)
and rebuilt.

With the tests on, none of them fails but one of them returns
JDBCerrors:

[exec] [INFO]
------------------------------------------------------------------------
[exec] [INFO] Building coursemanagement-hibernate-impl
[exec] [INFO]    task-segment: [clean, install, sakai:deploy]
[exec] [INFO]
------------------------------------------------------------------------
...
[exec] Running
org.sakaiproject.coursemanagement.test.CourseManagementAdministrationTest
[exec] 16:48:58,732  WARN JDBCExceptionReporter:77 - SQL Error:
-104, SQLState: 23000

I'll note here that this test is imperfect because search is
being downloaded as an "assembly" like kernel.

With the sakai-demo package built, I was able to start it up.
Initially, there are errors in blogger, chat, and samigo:

$ grep ERROR logs/catalina.out
2009-10-08 16:31:02,974 ERROR main
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sakai-blogger-tool]
- Exception sending context initialized event to listener
instance of class com.sun.faces.config.ConfigureListener
2009-10-08 16:31:02,977 ERROR main
org.apache.catalina.core.StandardContext - Error listenerStart
2009-10-08 16:31:02,977 ERROR main
org.apache.catalina.core.StandardContext - Context
[/sakai-blogger-tool] startup failed due to previous errors
2009-10-08 16:31:04,518 ERROR main
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sakai-chat-tool]
- Exception sending context initialized event to listener
instance of class com.sun.faces.config.ConfigureListener
2009-10-08 16:31:04,522 ERROR main
org.apache.catalina.core.StandardContext - Error listenerStart
2009-10-08 16:31:04,522 ERROR main
org.apache.catalina.core.StandardContext - Context
[/sakai-chat-tool] startup failed due to previous errors
2009-10-08 16:31:37,888 ERROR main
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/samigo]
- Exception sending context initialized event to listener
instance of class com.sun.faces.config.ConfigureListener
2009-10-08 16:31:39,136 ERROR main
org.apache.catalina.core.StandardContext - Error listenerStart
2009-10-08 16:31:39,136 ERROR main
org.apache.catalina.core.StandardContext - Context [/samigo]
startup failed due to previous errors

but these clear up nicely if you add the
"-Dsun.lang.ClassLoader.allowArraySyntax=true" to the JAVA_OPTS
as Matt suggested.

Seth



More information about the sakai-dev mailing list