Stable revision or tag for the Quick Start

5 views
Skip to first unread message

Steven Githens

unread,
Dec 18, 2008, 5:26:37 PM12/18/08
to sakai-...@googlegroups.com
Hi all,

I didn't see any tags, but is there a stable revision that can be used
with the K2 Quick Start document?

I'm seeing the following with mvn -Prun clean install

megacheers, s

17:21:39 k2_trunk: mvn -Prun clean install
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Sakai Kernel Project Experiments
[INFO] bootstrap
[INFO] webapps-assembly
[INFO]
------------------------------------------------------------------------
[INFO] Building Sakai Kernel Project Experiments
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [site:attach-descriptor]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive
invocation.
[INFO] No goals needed for project - skipping
[INFO] [source:jar {execution: attach-sources}]
[INFO] [install:install]
[INFO] Installing /home/sgithens/code/k2_trunk/pom.xml to
/home/sgithens/.m2/repository/org/sakaiproject/kernel2/base/1-SNAPSHOT/base-1-SNAPSHOT.pom
[INFO]
------------------------------------------------------------------------
[INFO] Building bootstrap
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] snapshot org.sakaiproject.kernel2.agnostic:assembly:0.1-SNAPSHOT:
checking for updates from sakai-maven
[INFO] snapshot org.sakaiproject.kernel2.agnostic:assembly:0.1-SNAPSHOT:
checking for updates from EclipseLink Repo
[INFO] snapshot org.sakaiproject.kernel2.agnostic:common:0.1-SNAPSHOT:
checking for updates from sakai-maven
[INFO] snapshot org.sakaiproject.kernel2.agnostic:common:0.1-SNAPSHOT:
checking for updates from EclipseLink Repo
[INFO] snapshot org.sakaiproject.kernel2.agnostic:shared:0.1-SNAPSHOT:
checking for updates from sakai-maven
[INFO] snapshot org.sakaiproject.kernel2.agnostic:shared:0.1-SNAPSHOT:
checking for updates from EclipseLink Repo
[INFO] snapshot org.sakaiproject.kernel2.agnostic:server:0.1-SNAPSHOT:
checking for updates from sakai-maven
[INFO] snapshot org.sakaiproject.kernel2.agnostic:server:0.1-SNAPSHOT:
checking for updates from EclipseLink Repo
Downloading:
http://source.sakaiproject.org/maven2/tomcat/tomcat/tomcat/5.5.26/tomcat-5.5.26.pom
Downloading:
http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo/tomcat/tomcat/tomcat/5.5.26/tomcat-5.5.26.pom
Downloading:
http://repo1.maven.org/maven2/tomcat/tomcat/tomcat/5.5.26/tomcat-5.5.26.pom
[INFO] snapshot org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:
checking for updates from sakai-maven
[INFO] snapshot org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:
checking for updates from EclipseLink Repo
Downloading:
http://source.sakaiproject.org/maven2/tomcat/tomcat/tomcat/5.5.26/tomcat-5.5.26.zip
7066K downloaded
[INFO] [antrun:run {execution: compile}]
[INFO] Executing tasks
[unzip] Expanding:
/home/sgithens/.m2/repository/tomcat/tomcat/tomcat/5.5.26/tomcat-5.5.26.zip
into /home/sgithens/code/k2_trunk/bootstrap/target/unpack
[delete] Deleting directory
/home/sgithens/code/k2_trunk/bootstrap/target/runtime/webapps/webdav
[unzip] Expanding:
/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/assembly/0.1-SNAPSHOT/assembly-0.1-SNAPSHOT-kernel-core.zip
into /home/sgithens/code/k2_trunk/bootstrap/target/runtime
[unzip] Expanding:
/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/webapps-assembly/0.1-SNAPSHOT/webapps-assembly-0.1-SNAPSHOT-kernel-core.zip
into /home/sgithens/code/k2_trunk/bootstrap/target/runtime
[exec] INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path:
/opt/jdk1.5.0_16/jre/lib/i386/server:/opt/jdk1.5.0_16/jre/lib/i386:/opt/jdk1.5.0_16/jre/../lib/i386
(2008-12-18 17:22:22,866 main_org.apache.catalina.core.AprLifecycleListener)
[exec] ERROR: Error initializing endpoint (2008-12-18 17:22:23,121
main_org.apache.coyote.http11.Http11BaseProtocol)
[exec] java.net.BindException: Address already in use:8080
[exec] at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:298)
[exec] at
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:139)
[exec] at
org.apache.catalina.connector.Connector.initialize(Connector.java:1017)
[exec] at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
[exec] at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
[exec] at
org.apache.catalina.startup.Catalina.load(Catalina.java:504)
[exec] at
org.apache.catalina.startup.Catalina.load(Catalina.java:524)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:585)
[exec] at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
[exec] at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
[exec] ERROR: Catalina.start (2008-12-18 17:22:23,123
main_org.apache.catalina.startup.Catalina)
[exec] LifecycleException: Protocol handler initialization failed:
java.net.BindException: Address already in use:8080
[exec] at
org.apache.catalina.connector.Connector.initialize(Connector.java:1019)
[exec] at
org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
[exec] at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:782)
[exec] at
org.apache.catalina.startup.Catalina.load(Catalina.java:504)
[exec] at
org.apache.catalina.startup.Catalina.load(Catalina.java:524)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:585)
[exec] at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
[exec] at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
[exec] INFO: Initialization processed in 982 ms (2008-12-18
17:22:23,124 main_org.apache.catalina.startup.Catalina)
[exec] WARN: No Lifecycle Loader Properties (/loader.properties in
the server classpath) loaded: null (2008-12-18 17:22:23,178
main_org.sakaiproject.kernel.loader.server.LoaderEnvironment)
[exec] INFO: Starting Component Manager (2008-12-18 17:22:23,233
main_org.sakaiproject.kernel.component.ComponentManagerImpl)
[exec] INFO: Starting
class:org.sakaiproject.kernel.component.core.KernelBootstrapSpec
(2008-12-18 17:22:23,234
main_org.sakaiproject.kernel.component.ComponentManagerImpl)
[exec] INFO: Activating
org.sakaiproject.kernel.component.core.KernelBootstrapSpec@e70e30 with
Class org.sakaiproject.kernel.component.core.KernelBootstrapActivator
(2008-12-18 17:22:23,240
main_org.sakaiproject.kernel.component.ComponentManagerImpl)
[exec] INFO: Starting Shared Container (2008-12-18 17:22:23,243
main_org.sakaiproject.kernel.component.core.KernelBootstrapActivator)
[exec] INFO: Loaded 3 properties from res://kernel.properties
(2008-12-18 17:22:23,251
main_org.sakaiproject.kernel.component.core.KernelBootstrapModule)
[exec] INFO: Loaded 1 properties from
/home/sgithens/code/k2_trunk/bootstrap/localkernel.properties
(2008-12-18 17:22:23,252
main_org.sakaiproject.kernel.component.core.KernelBootstrapModule)
[exec] INFO: Registerd service class
org.sakaiproject.kernel.component.core.SharedClassLoaderContainer
(2008-12-18 17:22:23,509
main_org.sakaiproject.kernel.component.core.KernelBootstrapActivator)
[exec] INFO: Registerd service interface
org.sakaiproject.kernel.api.ShutdownService (2008-12-18 17:22:23,510
main_org.sakaiproject.kernel.component.core.KernelBootstrapActivator)
[exec] INFO: Registerd service interface
org.sakaiproject.kernel.api.PackageRegistryService (2008-12-18
17:22:23,510
main_org.sakaiproject.kernel.component.core.KernelBootstrapActivator)
[exec] INFO: Registerd service interface
org.sakaiproject.kernel.api.ArtifactResolverService (2008-12-18
17:22:23,510
main_org.sakaiproject.kernel.component.core.KernelBootstrapActivator)
[exec] INFO: Registerd service interface
org.sakaiproject.kernel.api.ClassLoaderService (2008-12-18 17:22:23,510
main_org.sakaiproject.kernel.component.core.KernelBootstrapActivator)
[exec] INFO: Registerd service interface
org.sakaiproject.kernel.api.ComponentLoaderService (2008-12-18
17:22:23,511
main_org.sakaiproject.kernel.component.core.KernelBootstrapActivator)
[exec] INFO: added
component:file:/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/kernel/0.1-SNAPSHOT/kernel-0.1-SNAPSHOT.jar
(2008-12-18 17:22:23,513
main_org.sakaiproject.kernel.component.core.ComponentLoaderServiceImpl)
[exec] INFO: added
component:file:/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/component-sample/0.1-SNAPSHOT/component-sample-0.1-SNAPSHOT.jar
(2008-12-18 17:22:23,513
main_org.sakaiproject.kernel.component.core.ComponentLoaderServiceImpl)
[exec] INFO: bundle contains 2 components (2008-12-18
17:22:23,513
main_org.sakaiproject.kernel.component.core.ComponentLoaderServiceImpl)
[exec] INFO: Adding Component
jar:file:/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/kernel/0.1-SNAPSHOT/kernel-0.1-SNAPSHOT.jar!/SAKAI-INF/component.xml
from
file:/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/kernel/0.1-SNAPSHOT/kernel-0.1-SNAPSHOT.jar
(2008-12-18 17:22:23,514
main_org.sakaiproject.kernel.component.core.ComponentLoaderServiceImpl)
[exec] INFO: Adding Component
jar:file:/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/component-sample/0.1-SNAPSHOT/component-sample-0.1-SNAPSHOT.jar!/SAKAI-INF/component.xml
from
file:/home/sgithens/.m2/repository/org/sakaiproject/kernel2/agnostic/component-sample/0.1-SNAPSHOT/component-sample-0.1-SNAPSHOT.jar
(2008-12-18 17:22:23,727
main_org.sakaiproject.kernel.component.core.ComponentLoaderServiceImpl)
[exec] INFO: String
[org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:] (2008-12-18
17:22:23,745 main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO: String
[org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:] (2008-12-18
17:22:23,745 main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO: String [javax.jcr:jcr:1.0:] (2008-12-18 17:22:23,746
main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO:
org.sakaiproject.kernel2.agnostic:component-sample:0.1-SNAPSHOT:::Adding
Shared Artifact javax.jcr:jcr:1.0: (2008-12-18 17:22:23,746
main_org.sakaiproject.kernel.component.core.ClassLoaderServiceImpl)
[exec] INFO:
org.sakaiproject.kernel2.agnostic:component-sample:0.1-SNAPSHOT:::Exported
[org.sakaiproject.componentsample.api] (2008-12-18 17:22:23,746
main_org.sakaiproject.kernel.component.core.ClassLoaderServiceImpl)
[exec] INFO: String
[org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:] (2008-12-18
17:22:23,746 main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO: String [org.apache.jackrabbit:jackrabbit-spi:1.4:]
(2008-12-18 17:22:23,748
main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] WARN:
org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:::Did not add
dependency org.apache.jackrabbit:jackrabbit-spi:1.4: to local component
classloader (2008-12-18 17:22:23,748
main_org.sakaiproject.kernel.component.core.ClassLoaderServiceImpl)
[exec] INFO: String [javax.jcr:jcr:1.0:] (2008-12-18 17:22:23,749
main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO:
org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:::Adding Shared
Artifact javax.jcr:jcr:1.0: (2008-12-18 17:22:23,749
main_org.sakaiproject.kernel.component.core.ClassLoaderServiceImpl)
[exec] INFO:
org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:::Exported
[org.sakaiproject.kernel.api] (2008-12-18 17:22:23,749
main_org.sakaiproject.kernel.component.core.ClassLoaderServiceImpl)
[exec] INFO:
org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:::Exported
[org.sakaiproject.kernel.util] (2008-12-18 17:22:23,750
main_org.sakaiproject.kernel.component.core.ClassLoaderServiceImpl)
[exec] INFO:
org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:::Exported
[org.sakaiproject.kernel.webapp] (2008-12-18 17:22:23,750
main_org.sakaiproject.kernel.component.core.ClassLoaderServiceImpl)
[exec] INFO: String
[org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:] (2008-12-18
17:22:23,750 main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO: String
[org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:] (2008-12-18
17:22:23,750 main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO: String
[org.sakaiproject.kernel2.agnostic:kernel:0.1-SNAPSHOT:] (2008-12-18
17:22:23,750 main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] INFO: Activating
org.sakaiproject.kernel.component.URLComponentSpecificationImpl@29c204
with Class org.sakaiproject.kernel.Activator (2008-12-18 17:22:23,750
main_org.sakaiproject.kernel.component.ComponentManagerImpl)
[exec] INFO: Loaded 32 properties from
res://kernel-component.properties (2008-12-18 17:22:23,789
main_org.sakaiproject.kernel.KernelModule)
[exec] INFO: No Local Properties Override, set system property
SAKAI_KERNEL_COMPONENT_PROPERTIES to a resource location to override
kernel properties (2008-12-18 17:22:23,790
main_org.sakaiproject.kernel.KernelModule)
[exec] ERROR: Failed to start Component Lifecycle (2008-12-18
17:22:23,825 main_org.sakaiproject.kernel.component.KernelLifecycle)
[exec] java.lang.NoClassDefFoundError: javax/persistence/EntityManager
[exec] at
org.sakaiproject.kernel.persistence.PersistenceModule.configure(PersistenceModule.java:67)
[exec] at
com.google.inject.AbstractModule.configure(AbstractModule.java:66)
[exec] at com.google.inject.BinderImpl.install(BinderImpl.java:199)
[exec] at com.google.inject.Guice.createInjector(Guice.java:77)
[exec] at com.google.inject.Guice.createInjector(Guice.java:53)
[exec] at com.google.inject.Guice.createInjector(Guice.java:43)
[exec] at
org.sakaiproject.kernel.Activator.activate(Activator.java:75)
[exec] at
org.sakaiproject.kernel.component.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:202)
[exec] at
org.sakaiproject.kernel.component.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:175)
[exec] at
org.sakaiproject.kernel.component.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:461)
[exec] at
org.sakaiproject.kernel.component.core.ComponentLoaderServiceImpl.load(ComponentLoaderServiceImpl.java:139)
[exec] at
org.sakaiproject.kernel.component.core.KernelBootstrapActivator.activate(KernelBootstrapActivator.java:111)
[exec] at
org.sakaiproject.kernel.component.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:202)
[exec] at
org.sakaiproject.kernel.component.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:461)
[exec] at
org.sakaiproject.kernel.component.ComponentManagerImpl.startDefaultComponents(ComponentManagerImpl.java:267)
[exec] at
org.sakaiproject.kernel.component.ComponentManagerImpl.start(ComponentManagerImpl.java:105)
[exec] at
org.sakaiproject.kernel.component.KernelLifecycle.start(KernelLifecycle.java:134)
[exec] at
org.sakaiproject.kernel.loader.server.tomcat5.KernelLoader.start(KernelLoader.java:127)
[exec] at
org.sakaiproject.kernel.loader.server.tomcat5.KernelLoader.lifecycleEvent(KernelLoader.java:83)
[exec] at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
[exec] at
org.apache.catalina.core.StandardServer.start(StandardServer.java:691)
[exec] at
org.apache.catalina.startup.Catalina.start(Catalina.java:552)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[exec] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:585)
[exec] at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
[exec] at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: exec returned: 10
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu Dec 18 17:22:23 EST 2008
[INFO] Final Memory: 18M/144M
[INFO]
------------------------------------------------------------------------
17:22:24 k2_trunk:

Jon Gorrono

unread,
Dec 18, 2008, 5:47:31 PM12/18/08
to sakai-...@googlegroups.com
looks like you already have an instance of tomcat running.... or
something else... on port 8080 .... is that right?
--
Jon Gorrono
email{>+++++++++[>+++++++++++>++++++++++++>+++++++>+++++<<<<-]>+++++++.>++++.<---.>-.+++..---.-.+.>+.<++++++.<----.+.---.>+.<++++++++.>---.>>+.<<<----.-.>++.}
http{ats.ucdavis.edu}

Steven Githens

unread,
Dec 18, 2008, 6:24:26 PM12/18/08
to sakai-...@googlegroups.com
Actually no. I tried it on my Linux Laptop (checked to make sure tomcat
wasn't running), on my OS X desktop (check to make sure tomcat wasn't
running), and on a brand new 8.10 Ubuntu installation (literally the
first thing I ran after installing a JDK and Maven2 ( btw, cudos on the
easy setup requiring only a JDK and Maven2 ) )

-s

Jon Gorrono

unread,
Dec 18, 2008, 6:50:05 PM12/18/08
to sakai-...@googlegroups.com
I see now...I this is something that was pointed a few days ago and
there's been a short delay to get it commited.. see the thread
Discussion on k2-quick-start... Paul has a patch waiting

... until it gets committed, you can add try to copy past the patch
from the email... it failed for me so I added them by hand ...( I
guess that is a warning to Paul to svn update eagerly b4 comiting)....
but I am also getting issues beyond that now wrt the new jcr event
service


I merged up to 55102 into the KERN-26 branch recently and it seems
fine.... so you might try that rev.

pa...@pbristow.id.au

unread,
Dec 18, 2008, 6:58:12 PM12/18/08
to Sakai Kernel
> ... until it gets committed, you can add try to copy past the patch
> from the email... it failed for me so I added them by hand ...( I
> guess that is a warning to Paul to svn update eagerly b4 comiting)....
> but I am also getting issues beyond that now wrt the new jcr event
> service

Yes, I was expecting that, especially now getting those same new
issues. Also good reason to commit as soon as you know the patch is
good (after updating of course), before the world changes on you ;)

I'm now waiting on our CCLA, thanks for the votes of confidence!

Steve your 8080 messages mean something must have been running on it,
could it be a previous test not fully cleaned up? Is inetd doing
anything with 8080?

Paul

Jon Gorrono

unread,
Dec 18, 2008, 7:05:55 PM12/18/08
to sakai-...@googlegroups.com
It is also possible that a previous run of the run profile left the
port occupied

jps | grep Bootstrap | awk '{print $1}'|xargs kill -9

(run it without the '|xargs kill -9' first though :)

Michael Wenk

unread,
Dec 19, 2008, 3:18:27 PM12/19/08
to sakai-...@googlegroups.com
One way to find out what program is using a port is to use netstat. 

netstat -tulnp  | grep 8080 as the root user should show you what's eating it.

Mike
--
--
Michael Wenk
mike...@gmail.com

Steven Githens

unread,
Dec 19, 2008, 3:41:06 PM12/19/08
to sakai-...@googlegroups.com
I haven't had a chance to look at it since yesterday afternoon, but I'm
pretty sure it's that class that can't be found... since I tried both
rebooting my laptop, and one of the Ubuntu/VMWares I tried it on was
literally the first time I had started tomcat or server on it.

I just svn updated and got the huge set of updates from today, and ran
netstat (nothing on 8080), but I'm still seeing this class missing error:

[exec] ERROR: Failed to start Component Lifecycle (2008-12-19
15:38:34,091 main_org.sakaiproject.kernel.component.KernelLifecycle)
-s
> http{ats.ucdavis.edu <http://ats.ucdavis.edu>}
>
>
>
>
>
> --
> --
> Michael Wenk
> mike...@gmail.com <mailto:mike...@gmail.com>
>
>
> >

Carl Hall

unread,
Dec 19, 2008, 3:45:18 PM12/19/08
to sakai-...@googlegroups.com
I'm working on this problem now.  Paul's patch from the other day gets us past this one but I hit other problems when loading up.  The problems now look like:

     [exec] ERROR: Failed to start Component Lifecycle  (2008-12-19 15:38:42,872 main_org.sakaiproject.kernel.component.KernelLifecycle)
     [exec] org.sakaiproject.kernel.api.KernelConfigurationException: Unable To start components Error while locating instance
     [exec]   bound to java.util.List<org.sakaiproject.kernel.api.jcr.EventRegistration>
     [exec]   for member at org.sakaiproject.kernel.jcr.jackrabbit.JCRServiceImpl.<init>(JCRServiceImpl.java:78)
     [exec]     at org.sakaiproject.kernel.component.ComponentManagerImpl.startDefaultComponents(ComponentManagerImpl.java:270)

    [exec] Caused by: com.google.inject.ProvisionException: Error while locating instance
     [exec]   bound to java.util.List<org.sakaiproject.kernel.api.jcr.EventRegistration>
     [exec]   for member at org.sakaiproject.kernel.jcr.jackrabbit.JCRServiceImpl.<init>(JCRServiceImpl.java:78)
     [exec]     at com.google.inject.InjectorImpl$SingleParameterInjector.inject(InjectorImpl.java:646)

&c...

Carl Hall

unread,
Dec 19, 2008, 4:59:48 PM12/19/08
to sakai-...@googlegroups.com
I've committed Paul's patch and as much code as I can get working without failing tests.  The problem of the EntityManager failing to load still stands but is deeper than I currently grasp.  Here's the error (last of the stack from Guice):

     [exec] Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named default
     [exec]     at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:89)
     [exec]     at org.sakaiproject.kernel.persistence.eclipselink.EntityManagerProvider.<init>(EntityManagerProvider.java:122)
     [exec]     ... 65 more

The only thing I can think of is that the entity manager is trying to load before it can find a persistence.xml file.  My brain is tired from spinning on this but maybe I can get it figured out on Monday of no one else is able to fix it before then.  :-)

Jon Gorrono

unread,
Dec 19, 2008, 11:09:49 PM12/19/08
to sakai-...@googlegroups.com
This looks like a deployment issue... there appears to be no orm.xml
nor persistence.xml making it into the bootstrap runtime:

in bootstrap/target :
sh -c 'for file in `find . |grep SNAPSHOT`; do jar tf $file|less; done'

Carl Hall

unread,
Dec 22, 2008, 12:19:02 PM12/22/08
to sakai-...@googlegroups.com
run.sh in agnostic has the following line though:

export SAKAI_KERNEL_PROPERTIES="inline://+component.locations=;$HOME/.m2/repository/org/sakaiproject/kernel2/agnostic/kernel/0.1-SNAPSHOT/kernel-0.1-SNAPSHOT.jar"

Which, if I understand this correctly, is how the kernel jar artifact is included in tomcat.  orm & persistence files are found in that jar.

pa...@pbristow.id.au

unread,
Dec 22, 2008, 7:25:29 PM12/22/08
to Sakai Kernel


On Dec 23, 4:19 am, "Carl Hall" <carl.h...@gmail.com> wrote:
> run.sh in agnostic has the following line though:
>
> export
> SAKAI_KERNEL_PROPERTIES="inline://+component.locations=;$HOME/.m2/repository/org/sakaiproject/kernel2/agnostic/kernel/0.1-SNAPSHOT/kernel-0.1-SNAPSHOT.jar"
>
> Which, if I understand this correctly, is how the kernel jar artifact is
> included in tomcat.  orm & persistence files are found in that jar.

I can't see that this run.sh is actually run from anywhere (and
haven't had to create a run.bat equivalent for windows).

As far as I can see the bootstrap area used in the -Prun profile has
bootstrap/start.sh point this env variable at bootstrap/
localkernel.properties which does not load kernel-0.1-SNAPSHOT.jar.
Also nothing seems to ever copy this jar into the bootstrap space. I
spent some of yesterday puzzling over this (hopefully I'm missing
something obvious) - what is in kernel/kernel if bootstrap doesn't
need it? Or how does bootstrap work without it? Might adding this
bring in the sdata/f functionality?

Paul

pa...@pbristow.id.au

unread,
Dec 22, 2008, 7:33:28 PM12/22/08
to Sakai Kernel
Quick correction - sdata.war brings in the kernel .jar but too late
for this problem - should it be in shared or should the persistence
config be in something else that goes into shared (or server)?

Paul

Thomas Amsler

unread,
Dec 22, 2008, 8:05:01 PM12/22/08
to sakai-...@googlegroups.com
Are you guys seeing a jackrabbit-spi warning before the error occurs?

... and there are two:

   <dependency>
      <groupId>org.apache.jackrabbit</groupId>
      <artifactId>jackrabbit-spi</artifactId>
      <version>1.4</version>
    </dependency>
 

definitions in the components.xml file.

Best,
-- Thomas

pa...@pbristow.id.au

unread,
Dec 22, 2008, 9:08:13 PM12/22/08
to Sakai Kernel
ok, ignore my last messages - I'm going blind. localkernel.properties
brings in kernel snapshot from m2 repo

and yes I get a jackrabbit spi warning:

[exec] INFO: String [org.apache.jackrabbit:jackrabbit-spi:1.4:]
(2008-12-2
3 12:58:56,278
main_org.sakaiproject.kernel.component.model.DependencyImpl)
[exec] WARN: org.sakaiproject.kernel2.agnostic:kernel:0.1-
SNAPSHOT:::Did n
ot add dependency org.apache.jackrabbit:jackrabbit-spi:1.4: to local
component c
lassloader (2008-12-23 12:58:56,278
main_org.sakaiproject.kernel.component.core
.ClassLoaderServiceImpl)

Paul

Thomas Amsler

unread,
Dec 22, 2008, 11:31:03 PM12/22/08
to sakai-...@googlegroups.com
After adjusting the jackrabbit-spi components.xml, I am getting the following root cause:


Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named default


Searching on google with this error message returns a bunch of results hinting at some persistence.xml issues w.r.t. :

1. <persistence-unit name="default" ...
2. absolute path issues for persistence.xml : this is mostly windows because of folder names containing white spaces.
3. persistence.xml class path issues, and that it has to be located in META-INF
...

I also tried to mock around a bit with EntityManagerProvider but no luck so far.

Continuing digging ...
Best,
-- Thomas

pa...@pbristow.id.au

unread,
Dec 23, 2008, 1:39:25 AM12/23/08
to Sakai Kernel
Thomas,

Removing the additional jackrabbit spi from SAKAI-INF/components.xml
also gets rid of this warning for me on both windows XP and OSX.

I also agree on the default from EntityManager although I'd also have
mild suspicions over UserEnvironmentListener as I seem to remember
seeing errors around here from the sdata/f url.

I get the same errors on both OSX and Windows so I think it's more
than just spaces in the classpath

I'm off to my second barbecue of the day but might have a bit of a dig
later - probably at risk of more false positives ;)

Paul

Carl Hall

unread,
Dec 23, 2008, 10:49:48 AM12/23/08
to sakai-...@googlegroups.com
On Tue, Dec 23, 2008 at 01:39, <pa...@pbristow.id.au> wrote:
I also agree on the default from EntityManager although I'd also have
mild suspicions over UserEnvironmentListener as I seem to remember
seeing errors around here from the sdata/f url.

I get the same errors on both OSX and Windows so I think it's more
than just spaces in the classpath

I think the issue has something to do with persistence.xml not being found on the classpath, thusly no persistence unit named "default".  I get this feeling because I never see any of the usual EclipseLink loading stuff in the log though that could be a matter of log level.  I'll keep poking at this to get it resolved.
 
Reply all
Reply to author
Forward
0 new messages