You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by steve <st...@browsermedia.com> on 2004/02/25 00:53:01 UTC

Build/Install Jetspeed-2 difficulty: Unable to intialize Catalina Portlet Application Manager

I have searched the mail archives and have not found a solution to my error.
If my question has already been answered, please forgive my re-asking and
direct me to the proper resource.

I am following the [jetspeed-2-home]/GETTING_STARTED.html instructions. I
have done the following:

1. Installed Maven and Ant (making sure each package's /bin directory is in
my path)
2. I am using Sun J2SDK 1.4.2_03 with JAVA_HOME set accordingly (I am on
Linux Redhat 9)
3. I have installed Tomcat 4.1.30 as /usr/local/tomcat (no configuration has
been performed on this which perhaps is my problem)
4. I am logged in as root
5. my ~/build.properties is as follows:

catalina.home=/usr/local/tomcat
catalina.shared.lib=${catalina.home}/shared/lib/
deploy.war.dir=${catalina.home}/webapps/

6. I cd [jetspeed-2-home] (/development/jetspeed in my case)
7. I do maven allBuild. It completes saying "BUILD SUCCESSFUL".
    note that looking through output, I see repeatedly items such as:
    [junit]  INFO: Starting auto deployment service:
org.apache.jetspeed.deployment.impl.CatalinaAutoDeploymentServiceImpl
    [junit]  INFO: Deployment scanning delay: 10000
    [junit]  INFO: Deployment server: localhost
    [junit]  INFO: Deployment server port: 8080
    [junit]  INFO: Deployment server user name: scott
    [junit]  INFO: Deployment staging directory: WEB-INF/deploy
    [junit]  INFO: Deployment target directory: ../
    [junit]  WARN: Unable to intialize Catalina Portlet Application Manager.
Auto deployment will be disabled: java.lang.NullPointerException
    [junit] java.lang.NullPointerException
    [junit]     at
org.apache.jetspeed.tools.pamanager.FileSystemPAM.<init>(FileSystemPAM.java:
90)
    [junit]     at
org.apache.jetspeed.tools.pamanager.CatalinaPAM.<init>(CatalinaPAM.java:79)
    [junit]     at
org.apache.jetspeed.deployment.impl.CatalinaAutoDeploymentServiceImpl.init(C
atalinaAutoDeploymentServiceImpl.java:119)
    [junit]     at org.apache.fulcrum.BaseServiceBroker.initService(Unknown
Source)
    ...
8. I cd  [jetspeed-2-home]/portal and type maven fullDeploy. Again I get
BUILD SUCCESSFUL though warnings are reported. (the note says that this does
steps 4 and 5 for me. I have tried performing steps 4 and 5 seperately, but
I get the same error though split across 2 steps). I get errors such as:

    [java]  INFO: Deployment scanning delay: 10000
    [java]  INFO: Deployment server: localhost
    [java]  INFO: Deployment server port: 8080
    [java]  INFO: Deployment server user name: scott
    [java]  INFO: Deployment staging directory: WEB-INF/deploy
    [java]  INFO: Deployment target directory: ../
    [java]  WARN: Unable to intialize Catalina Portlet Application Manager.
Auto deployment will be disabled: java.lang.NullPointerException
    [java] java.lang.NullPointerException
    [java]      at
org.apache.jetspeed.tools.pamanager.FileSystemPAM.<init>(FileSystemPAM.java:
90)
    [java]      at
org.apache.jetspeed.tools.pamanager.CatalinaPAM.<init>(CatalinaPAM.java:79)
    [java]      at
org.apache.jetspeed.deployment.impl.CatalinaAutoDeploymentServiceImpl.init(C
atalinaAutoDeploymentServiceImpl.java:119)

9. because I keep getting BUILD SUCCESSFUL, I press on. I attempt to call
http://localhost:8080/jetspeed. My web screen remains blank, and
catalina.out says:

java.lang.NoClassDefFoundError:
org/apache/jetspeed/components/jndi/JNDIComponent
        at org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:97)
        at
org.apache.jetspeed.engine.JetspeedServlet.init(JetspeedServlet.java:168)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3427)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
        at
org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(HostConfig.ja
va:614)
        at org.apache.catalina.startup.HostConfig.run(HostConfig.java:854)
        at java.lang.Thread.run(Thread.java:534)

10. In the archives, I read some post where it is assumed that pluto is
installed. So, to ensure my slate is clean, I delete and reinstall tomcat,
delete and re-checkout jetspeed, and also checkout pluto. This time, I
install pluto first (test app works without a hitch). I then repeat the
steps above with the exact same results.

What did I miss? Any help would be appreciated as I have been working this
for 2-days now and have run out of ideas.

TIA,

Steve B.



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


Re: Build/Install Jetspeed-2 difficulty: Unable to intialize Catalina Portlet Application Manager

Posted by steve <st...@browsermedia.com>.
First, is this the correct list for Jetspeed-2 questions? I am having
difficulty finding a project page or mail-list dedicated to Jetspeed2. Based
on the Pluto site, I assume Jetspeed2's aim is to be a JSR-168-compliant
portal. I am not sure how much to read into the "alpha" status - does this
mean it is beyond "dev" status but not yet "beta"? Once installed, what has
been implemented so far? Are its goals to support all the current jetspeed
features? If so, which have been completed, which are being developed, and
which are looking for contributions?

Anyway, I have moved further along on my own question below. I still have
not resolved the "Unable to initialize the Catalina Portlet Administration
Portlet", but have noted the java code it is gagging on is:

registry = (PortletRegistryComponent) Jetspeed.getComponentManager().
        getComponent(PortletRegistryComponent.class);

I am guessting the getComponenctManager() is returning null. Looking at the
Jetspeed.getComponentManager code, I am getting the feeling that it is
failing for some reason to obtain an Engine. (But that could be a
red-herring).

I was able to get Tomcat to load Jetspeed, and even give me a screen with
the Jetspeed2 logo by manually copying over:

[jetspeed2-home]/rdbms/target/jetspeed-rdbms-2.0-a1-dev.jar
[jetspeed2-home]/registry/target/jetspeed-registry-2.0-a1-dev.jar
[jetspeed2-home]/persistence/target/jetspeed-persistence-2.0-a1-dev.jar

to the /usr/local/tomcat/webapps/jetspeed/WEB-INF/lib/

Nothing other than the logo is displayed, however. Also I see as tomcat
loads jetspeed the following:

Feb 24, 2004 9:22:38 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Feb 24, 2004 9:22:38 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Feb 24, 2004 9:22:39 PM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
log4j:WARN No appenders could be found for logger (console).
log4j:WARN Please initialize the log4j system properly.
 INFO: Starting auto deployment service:
org.apache.jetspeed.deployment.impl.CatalinaAutoDeploymentServiceImpl
 INFO: Deployment scanning delay: 10000
 INFO: Deployment server: localhost
 INFO: Deployment server port: 8080
 INFO: Deployment server user name: scott
 INFO: Deployment staging directory: WEB-INF/deploy
 INFO: Deployment target directory: ../
 WARN: Unable to intialize Catalina Portlet Application Manager.  Auto
deployment will be disabled: java.lang.NullPointerException
java.lang.NullPointerException
        at
org.apache.jetspeed.tools.pamanager.FileSystemPAM.<init>(FileSystemPAM.java:
90)
        at
org.apache.jetspeed.tools.pamanager.CatalinaPAM.<init>(CatalinaPAM.java:79)
        at
org.apache.jetspeed.deployment.impl.CatalinaAutoDeploymentServiceImpl.init(C
atalinaAutoDeploymentServiceImpl.java:119)
        at org.apache.fulcrum.BaseServiceBroker.initService(Unknown Source)
<snip>

TIA for any guidance,

Steve B.

----- Original Message ----- 
From: "steve" <st...@browsermedia.com>
To: <je...@jakarta.apache.org>
Sent: Tuesday, February 24, 2004 6:53 PM
Subject: Build/Install Jetspeed-2 difficulty: Unable to intialize Catalina
Portlet Application Manager


<snip>



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