I was able to successfully build and run Jetspeed 2.2 with demos on a fresh
install of Tomcat 5.5.27. This is the first time I have been through this
so I thought I was pass along how I did it just in case I missed something
or maybe could help others. If there's something wrong or missing or could
be easier, please let me know.
This is pretty much the order I did things:
I updated my ${user.home}/.m2/settings.xml with the pluginGroup for j2 and
pluto.
<pluginGroups>
<pluginGroup>org.apache.portals.jetspeed-2</pluginGroup>
<pluginGroup>org.apache.pluto</pluginGroup>
</pluginGroups>
I checked out the source for each of the following from the Apache Portals
projects. I checked out the trunk unless otherwise specified. I did these
individually using TortoiseSVN. If there's an easier way to check out just
the trunk, let me know.
http://svn.apache.org/repos/asf/portals/applications (all of this)
http://svn.apache.org/repos/asf/portals/pluto/trunk
http://svn.apache.org/repos/asf/portals/jetspeed-2/applications/j2-admin/trunk
http://svn.apache.org/repos/asf/portals/jetspeed-2/applications/jsaudit/trunk
http://svn.apache.org/repos/asf/portals/jetspeed-2/applications/mfa/trunk
http://svn.apache.org/repos/asf/portals/jetspeed-2/portal/trunk
I copied the jetspeed-mvn-settings-sample.xml found in
portals/jetspeed-2/portal/trunk to jetspeed-mvn-settings.xml and updated the
settings to match my environment for my Tomcat and database locations.
For each of the following builds I am using the trunk revision and your
basic "mvn install" build command. Here is the order I did the builds in:
Pluto 2.0.
I basically just followed the instructions at
http://portals.apache.org/pluto/v11/getting-started.html.
Jetspeed 2.2
This was pretty straight forward as well. After building Pluto, I built
Jetspeed using "mvn install". I did not build the demo at this point based
on Ate's response.
Jetspeed-2 Applications
I built the Jetspeed-2/applications in the following order using the "mvn
install" command.
j2-admin
jsaudit
I tried to build jsaudit but I recieved missing dependency errors that I am
looking into:
Missing:
----------
1) myfaces:tomahawk:jar:1.1.6
mfa
Portals Applications
I built the portals/applications in the following order:
webapp-logging
webcontent
rss
gems
demo
applications-pom
dbbrowser
Tried but got errors I will be looking into. I did build applications-pom
above so I am not sure what's going on.
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache.portals:applications-pom for project: o
rg.apache.portals.applications:apa-dbbrowser:pom:1.0-SNAPSHOT for project
org.apache.portals.applications:apa-dbbrowser:
pom:1.0-SNAPSHOT
At this point I deployed Jetspeed 2.2 with the demos using
mvn jetspeed:mvn -Dtarget=demo
I was then able to start Tomcat and log into Jetspeed using the default
admin/admin user. I have received a few errors with regard to some of the
demo and admin portlets that I am looking into. I am sure it's probably
something I missed along the way or possibly incomplete/in progress.
Here are some of the errors I am seeing:
JPETSTORE portlet
(this actually causes my Tomcat to hang when shutting down. I am thinking I
have a build issue here but I did see the webapp was deployed)
Error
Error File "/index.shtml" not found
Error Type javax.servlet.ServletException
Stacktrace
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
[message truncated]
RPAD
The requested resource (/j2-admin/rpad/) is not available
Wicket Profiler Admin
Unexpected RuntimeException
WicketMessage: Can't instantiate page using constructor public
org.apache.jetspeed.portlets.profiler.WicketProfilerAdmin()
Root cause:
java.lang.NullPointerException
at
org.apache.jetspeed.portlets.profiler.WicketProfilerAdmin.<init>(WicketProfilerAdmin.java:67)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:153)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:299)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:321)
at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1192)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
[message truncated]
SSO Demo
None of the portlets loaded.
I understand this is a work in progress. I think the developers have done a
great job so far! Thanks to those that provided help.
On Mon, Apr 20, 2009 at 4:43 PM, Ate Douma <[email protected]> wrote:
> Vivek Kumar wrote:
>
>> Hi
>>
>> Jetspeed 2.2 trunk is in process of integration with pluto 2.0.
>> I would recommend you to check out pluto trunk and build jetspeed after
>> that
>>
> Hi Jeff,
>
> In addition to Vivek's recommendation (Pluto 2.0 trunk SNAPSHOT artifacts
> are not remotely available yet),
> you should use the following (rudimentary) new documentation for building
> the current Jetspeed 2.2-SNAPSHOT trunk:
>
> http://portals.apache.org/jetspeed-2/maven/index.html
>
> To build a full (demo) portal will also require you to checkout and
> build/install all the (separate) Portals Applications projects too, as well
> as the Jetspeed-2 j2-admin 2.2-SNAPSHOT application (after
> building/installing bjetspeed-2.2-SNAPSHOT).
>
> Once you've build all of the above, you can deploy a demo Jetspeed Portal
> using:
>
> mvn jetspeed:mvn -Dtarget=demo (see and read above documentation link
> first though)
>
> We're planning to update and complete the new build documentation shortly.
>
> Regards,
>
> Ate
>
>
>
>> Vivek
>>
>> Jeff Pierce wrote:
>>
>>> Prior to last week I was able to successfully build the trunk version of
>>> Jetspeed 2.2. Last week I updated to the latest version and started
>>> getting
>>> the build errors below. I am new to Jetspeed and also to maven so I
>>> suspect
>>> it has to do with my environment or something. The only file in my maven
>>> repo home is the settings.xml with the pluginGroup for Jetspeed-2. Do I
>>> need to refresh my maven repository for the latest Pluto container? I
>>> thought Maven did this for me. I have tried a few different things but
>>> no
>>> luck. Any help would be greatly appreciated. I am following the
>>> documentation at http://portals.apache.org/jetspeed-2/maven-2-build.html
>>> .
>>> If there is additional doc, let me know.
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building Jetspeed-2 Enterprise Portal
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [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 C:\dev\jetspeed-src\portal\pom.xml to C:\Documents and
>>> Settings\piercej.VISION\.m2\repository\org\apac
>>> he\portals\jetspeed-2\jetspeed-2\2.2-SNAPSHOT\jetspeed-2-2.2-SNAPSHOT.pom
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Building Jetspeed-2 Core API
>>> [INFO] task-segment: [install]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] [resources:resources]
>>> [INFO] Using default encoding to copy filtered resources.
>>> [INFO] [compiler:compile]
>>> [INFO] Compiling 344 source files to
>>> C:\dev\jetspeed-src\portal\jetspeed-api\target\classes
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Compilation failure
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\om\portlet\ContainerRuntimeOption.java:[25,85]
>>>
>>> package org.apache.pluto.container.om.portlet does not exist
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\container\PortletWindow.java:[31,34]
>>>
>>> package o
>>> rg.apache.pluto.container does not exist
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\container\PortletWindow.java:[32,34]
>>>
>>> package o
>>> rg.apache.pluto.container does not exist
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\container\PortletWindow.java:[39,65]
>>>
>>> package o
>>> rg.apache.pluto.container does not exist
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\om\portlet\PortletDefinition.java:[34,80]
>>>
>>> pack
>>> age org.apache.pluto.container.om.portlet does not exist
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\om\portlet\PortletInfo.java:[25,74]
>>>
>>> package or
>>> g.apache.pluto.container.om.portlet does not exist
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\container\PortletWindowID.java:[26,68]
>>>
>>> package
>>> org.apache.pluto.container does not exist
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\container\PortletWindow.java:[62,4]
>>>
>>> cannot fin
>>> d symbol
>>> symbol : class PortletRequestContext
>>> location: interface org.apache.jetspeed.container.PortletWindow
>>>
>>> C:\dev\jetspeed-src\portal\jetspeed-api\src\main\java\org\apache\jetspeed\container\PortletWindow.java:[63,4]
>>>
>>> cannot fin
>>> d symbol
>>> symbol : class PortletResponseContext
>>> location: interface org.apache.jetspeed.container.PortletWindow
>>>
>>> Several other errors I cut off...
>>>
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 19 seconds
>>> [INFO] Finished at: Mon Apr 20 15:38:05 CDT 2009
>>> [INFO] Final Memory: 21M/38M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> 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]
>
>
--
Regards,
Jeff Pierce