Hmmm, the binary download isn't working out of the box for me either.  I'm
getting database and engine error messages.

Caused by: org.apache.jetspeed.prefs.PreferencesException: Failed to
initialize prefs api.  org.springframework.jdbc.BadSqlGrammarException: Bad
SQL grammar [] in task 'OJB operation'; nested exception is
java.sql.SQLException: Table not found: PREFS_NODE in statement [SELECT
A0.NODE_NAME,A0.MODIFIED_DATE,A0.NODE_TYPE,A0.PARENT_NODE_ID,A0.FULL_PATH,A0
.NODE_ID,A0.CREATION_DATE FROM PREFS_NODE A0 WHERE (A0.FULL_PATH = '/') AND
A0.NODE_TYPE = 1]
        at
org.apache.jetspeed.prefs.impl.PreferencesFactoryImpl.init(PreferencesFactor
yImpl.java:70)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1106)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1076)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:343)
        ... 38 more

That was when launched using the HSQL database from the M4 attempt, launched
via "maven j2:start.production.server".

At this point it's late/early and I'm going to grab some sleep.  But if
anyone has any suggestions or a link to working instructions they used to
get a "quick start" using JetSpeed 2, I'd be most grateful.  I really don't
need much.  I just need a working JetSpeed2 impl so I can run a few JSR 168
portlets for a presentation tomorrow.  There's go to be a working set of
"getting started" instructions somewhere... I must be looking in all the
wrong places.

Doug

-----Original Message-----
From: Doug Bateman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 04, 2005 12:06 AM
To: '[email protected]'
Subject: Re: Errors during getting started

Joining the thread...
 
I just installed JetSpeed tonight, following the instructions at
http://portals.apache.org/jetspeed-2/getting-started.html (track 4, using
the Maven-Plugin).  And I get the same error.  Tracking the spew of log
error messages, it boils down to this error in jetspeed.log:
 
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name
'org.apache.jetspeed.aggregator.PortletRenderer' defined in ServletContext
resource [/WEB-INF/assembly/jetspeed-spring.xml]: Unsatisfied dependency
expressed through constructor argument with index 2 of type
[org.apache.jetspeed.aggregator.WorkerMonitor]: Did you specify the correct
bean references as generic constructor arguments?
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createArgumentArray(AbstractAutowireCapableBeanFactory.java:629)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.autowireConstructor(AbstractAutowireCapableBeanFactory.java:502)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:306)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:260)
 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:221)
 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:145)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.resolveReference(AbstractAutowireCapableBeanFactory.java:980)
 ... 47 more


I track this error down to the jetspeed-spring.xml line:
    <!-- Portlet Renderer -->
    <bean id="org.apache.jetspeed.aggregator.PortletRenderer"
class="org.apache.jetspeed.aggregator.impl.PortletRendererImpl"
init-method="start"
        destroy-method="stop">
        <constructor-arg>
            <ref bean="org.apache.pluto.PortletContainer" />
        </constructor-arg>
        <constructor-arg>
            <ref
bean="org.apache.jetspeed.container.window.PortletWindowAccessor" />
        </constructor-arg>
    </bean>


I then run javap on org.apache.jetspeed.aggregator.impl.PortletRendererImpl
to see what the constructor requires...
    package org.apache.jetspeed.aggregator.impl;
    public class org.apache.jetspeed.aggregator.impl.PortletRendererImpl
      implements org.apache.jetspeed.aggregator.PortletRenderer
    {
      public PortletRendererImpl(org.apache.pluto.PortletContainer,
        org.apache.jetspeed.container.window.PortletWindowAccessor,
        org.apache.jetspeed.aggregator.WorkerMonitor);
      //...
    }

It appears there has been a new constructor argument added to
PortletRendererImpl that isn't being set in jetspeed-spring.xml.  I dug
further, looking for something in the jetspeed-spring.xml that might work,
and there isn't a WorkerMonitor object being initialized in the
jetspeed-spring.xml at all.

Bottom line... The latest version of the Maven-Plugin is broken.  To clarify
what I mean by latest version, I mean the version installed by "maven
-DartifactId=maven-jetspeed2-plugin -DgroupId=jetspeed2
-Dversion=2.0-M4-SNAPSHOT plugin:download" as given in the instructions.
Should be using a different version perhaps?

Looking at the rest of this thread, it appears people were able to download
a working binary install of JetSpeed.  So that's where I'm going to go next.

Doug



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to