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 Church Michael R <MR...@qinetiq.com> on 2006/01/18 15:15:08 UTC

Jetspeed 2 Setup and Development Problems, Private Network

I am currently trying to set up a Jetspeed-2 portal on a private network.
Internet access from this private network is strictly forbidden.

My ultimate intention is to create a portal with my own newly-developed
portlets to provide web services to those of my work colleagues that have
access to the private network.

However, I am having problems simply setting Jetspeed-2 up at all. Leaving
aside the fact that the various setup guides all seem to be inconsistent
(and more than a little ambiguous), there seems to be a fundamental problem
that I don't think can be circumvented. Unless somebody out there knows
better, of course ...

One of the very first things that I am required to do is "build the maven
plugin" (see
http://wiki.apache.org/portals/Jetspeed2/QuickstartForTheImpatient for
details), by issuing the command "maven initMavenPlugin". This does not work
at all.

It seems that the act of building the maven plugin requires that maven go to
one of a number of web sites to identify and download the latest versions of
a series of jar files to my PC. Which is impossible for me, because my PC is
not connected to the internet, and isn't allowed to be.

Can somebody out there confirm for me that this is the case? And if it is
the case, has anybody out there come across the problem themselves and found
a way to get around it?

The Maven web site and the Jetspeed web site are both less than helpful on
this matter. In fact, neither of them indicates that a connection to the
internet is mandatory in order to use maven to build a Jetspeed2 portal.

Many thanks,
Mike Church


The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution,
or any action taken or omitted to be taken in reliance on such information
is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be monitored.
Calls to QinetiQ may be recorded for quality control,
regulatory and monitoring purposes.

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


Re: Jetspeed 2 Setup and Development Problems, Private Network

Posted by Randy Watler <wa...@wispertel.net>.
Mike,

It is possible to start offline, but you need a populated maven 
repository. I know this does not help much!

Is there any way you can build on another machine that IS connected to 
the internet? If so, you can grab the maven repository from it and a 
copy of the J2 build and you should be ready to go.

Short of that, I'd have to admit that you are indeed stuck. The whole 
point of maven is to use a remote repository to manage plugins, jars, 
wars, etc. What I do for J2 is build it locally and then build a self 
contained RPM/installer from the local build I can install w/o  internet 
access on servers that are configured offline.

Randy

Church Michael R wrote:
> I am currently trying to set up a Jetspeed-2 portal on a private network.
> Internet access from this private network is strictly forbidden.
>
> My ultimate intention is to create a portal with my own newly-developed
> portlets to provide web services to those of my work colleagues that have
> access to the private network.
>
> However, I am having problems simply setting Jetspeed-2 up at all. Leaving
> aside the fact that the various setup guides all seem to be inconsistent
> (and more than a little ambiguous), there seems to be a fundamental problem
> that I don't think can be circumvented. Unless somebody out there knows
> better, of course ...
>
> One of the very first things that I am required to do is "build the maven
> plugin" (see
> http://wiki.apache.org/portals/Jetspeed2/QuickstartForTheImpatient for
> details), by issuing the command "maven initMavenPlugin". This does not work
> at all.
>
> It seems that the act of building the maven plugin requires that maven go to
> one of a number of web sites to identify and download the latest versions of
> a series of jar files to my PC. Which is impossible for me, because my PC is
> not connected to the internet, and isn't allowed to be.
>
> Can somebody out there confirm for me that this is the case? And if it is
> the case, has anybody out there come across the problem themselves and found
> a way to get around it?
>
> The Maven web site and the Jetspeed web site are both less than helpful on
> this matter. In fact, neither of them indicates that a connection to the
> internet is mandatory in order to use maven to build a Jetspeed2 portal.
>
> Many thanks,
> Mike Church
>
>
> The Information contained in this E-Mail and any subsequent correspondence
> is private and is intended solely for the intended recipient(s).
> For those other than the recipient any disclosure, copying, distribution,
> or any action taken or omitted to be taken in reliance on such information
> is prohibited and may be unlawful.
>
> Emails and other electronic communication with QinetiQ may be monitored.
> Calls to QinetiQ may be recorded for quality control,
> regulatory and monitoring purposes.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>
>   


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


Re: Jetspeed 2 Setup and Development Problems, Private Network

Posted by Raj Saini <ra...@gmail.com>.
Frank Villarreal wrote:

>I miss plain 'ole Ant builds bundled with dependencies ... :-(
>
>I wish I could help you, but alas Maven IMHO is a disaster.  I've tried
>learning it, but it's just too painful.
>  
>
I agree with you. Maven is not really for normal users and it is too 
painful for smaller tasks.  I am using binary distribution of Jetspeed-2 
to create my custom portal. I use Eclipse with WTP for most of the stuff 
and I am very happy with it. If you really just want to have a custom 
portal and don't want to change any thing in Jetspeed source code, I 
would suggest you to use the installer version of Jetspeed-2.

This process is manual and error prone, however, it is one time process 
and after if you pay a little care you should able to do it in couple of 
hours.

Here goes my mini Howto for creating custom portal with Jetspeed and 
Eclipse. This howto is for Tomcat 5.5. and Eclipse 3.1.1 with Web Tool 
Project. If you use different server, you may need to make changes 
accordingly.

1. Download multi db installer version of Jetspeed.

2. Create database and database user for your favorite db. I use 
PostgreSQL. If you use PostgreSQL, installer will not work out of box. 
You will need to unjar it, apply a postgres specific patch and create a 
new Jar before you run it.

2. Install Jetspeed. This step is required only to create and populate 
the database for Jetspeed. I could not yet figure out, what are the 
scripts to run manually to create database schema. I think (I am not 
sure though) Jetspeed database Schema is in XML file and some maven 
scripts convert them to SQL. Installer converts those scripts into SQL 
scripts  and creates and populates the database.

3. Create a Dynamic Web Project in Eclipse. You must have WTP plugins 
installed in Eclipse.

4. Copy $JETSPEED_HOME/webapps/jetspeed/* files into your 
$PORTAL_HOME/WebContents directory.

5. Move $JETSPEED_HOME/webapps/jetspeed/WEB-INF/classes files in your 
$PORTAL_HOME/src directory.

5. Copy $JETSPEED_HOME/conf/Catalina/localhost/jetspeed.xml file into 
$PORTAL_HOME/WebContents/META-INF/context.xml.

7. Copy $JETSPEED_HOME/shared/lib/* in your $TOMCAT_HOME/share/ directory.

8. Copy $JETSPEED_HOME/common/endorsed in your 
$TOMCAT_HOME/common/endorsed directory.

9. Deploy your portal. If you have added your web module into Server 
Runtime, eclipse will automatically deploy your portal.

10. If you want to deploy admin and demo applications into your portal, 
copy them from $JETSPEED_HOME/webapps/jetspeed/WEB-INF/deploy directory 
to $PORTAL_HOME/WebContents/WEB-INF/deploy directory and restart Tomcat.

($JETSPEED_HOME above is the directory where you have installed 
Jetspeed-2,. $PORTAL_HOME is your  portal project directory in your 
workspace and $TOMCAT_HOME is your Tomcat install directory).

I have observed, Eclipse does not does not copy the contents of shared 
directory from $TOMCAT_HOME into server runtime instance location (i.e 
$YOUR_WORKSPACE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0 
directory. Check if you have the shared directory in place, if not copy 
it manually.

Now you can start customizing your portal. Most of the customizations 
you will do in the $PORTAL_HOME/WebContents/WEB-INF/pages directory. 
Layout and portlet decorations are in 
$PORTAL_HOME/WebContents/decorations directory.

I hope this will be helpful.

Regards,

Raj

>>-----Original Message-----
>>From: Church Michael R [mailto:MRCHURCH@qinetiq.com]
>>Sent: Wednesday, January 18, 2006 08:15 AM
>>To: 'jetspeed-user@portals.apache.org'
>>Subject: Jetspeed 2 Setup and Development Problems, Private Network
>>
>>
>>I am currently trying to set up a Jetspeed-2 portal on a private network.
>>Internet access from this private network is strictly forbidden.
>>
>>My ultimate intention is to create a portal with my own newly-developed
>>portlets to provide web services to those of my work colleagues that have
>>access to the private network.
>>
>>However, I am having problems simply setting Jetspeed-2 up at all. Leaving
>>aside the fact that the various setup guides all seem to be inconsistent
>>(and more than a little ambiguous), there seems to be a
>>fundamental problem
>>that I don't think can be circumvented. Unless somebody out there knows
>>better, of course ...
>>
>>One of the very first things that I am required to do is "build the maven
>>plugin" (see
>>http://wiki.apache.org/portals/Jetspeed2/QuickstartForTheImpatient for
>>details), by issuing the command "maven initMavenPlugin". This
>>does not work
>>at all.
>>
>>It seems that the act of building the maven plugin requires that
>>maven go to
>>one of a number of web sites to identify and download the latest
>>versions of
>>a series of jar files to my PC. Which is impossible for me,
>>because my PC is
>>not connected to the internet, and isn't allowed to be.
>>
>>Can somebody out there confirm for me that this is the case? And if it is
>>the case, has anybody out there come across the problem
>>themselves and found
>>a way to get around it?
>>
>>The Maven web site and the Jetspeed web site are both less than helpful on
>>this matter. In fact, neither of them indicates that a connection to the
>>internet is mandatory in order to use maven to build a Jetspeed2 portal.
>>
>>Many thanks,
>>Mike Church
>>
>>
>>The Information contained in this E-Mail and any subsequent correspondence
>>is private and is intended solely for the intended recipient(s).
>>For those other than the recipient any disclosure, copying, distribution,
>>or any action taken or omitted to be taken in reliance on such information
>>is prohibited and may be unlawful.
>>
>>Emails and other electronic communication with QinetiQ may be monitored.
>>Calls to QinetiQ may be recorded for quality control,
>>regulatory and monitoring purposes.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>  
>


RE: Jetspeed 2 Setup and Development Problems, Private Network

Posted by Frank Villarreal <f_...@tetco.com>.
I miss plain 'ole Ant builds bundled with dependencies ... :-(

I wish I could help you, but alas Maven IMHO is a disaster.  I've tried
learning it, but it's just too painful.

> -----Original Message-----
> From: Church Michael R [mailto:MRCHURCH@qinetiq.com]
> Sent: Wednesday, January 18, 2006 08:15 AM
> To: 'jetspeed-user@portals.apache.org'
> Subject: Jetspeed 2 Setup and Development Problems, Private Network
>
>
> I am currently trying to set up a Jetspeed-2 portal on a private network.
> Internet access from this private network is strictly forbidden.
>
> My ultimate intention is to create a portal with my own newly-developed
> portlets to provide web services to those of my work colleagues that have
> access to the private network.
>
> However, I am having problems simply setting Jetspeed-2 up at all. Leaving
> aside the fact that the various setup guides all seem to be inconsistent
> (and more than a little ambiguous), there seems to be a
> fundamental problem
> that I don't think can be circumvented. Unless somebody out there knows
> better, of course ...
>
> One of the very first things that I am required to do is "build the maven
> plugin" (see
> http://wiki.apache.org/portals/Jetspeed2/QuickstartForTheImpatient for
> details), by issuing the command "maven initMavenPlugin". This
> does not work
> at all.
>
> It seems that the act of building the maven plugin requires that
> maven go to
> one of a number of web sites to identify and download the latest
> versions of
> a series of jar files to my PC. Which is impossible for me,
> because my PC is
> not connected to the internet, and isn't allowed to be.
>
> Can somebody out there confirm for me that this is the case? And if it is
> the case, has anybody out there come across the problem
> themselves and found
> a way to get around it?
>
> The Maven web site and the Jetspeed web site are both less than helpful on
> this matter. In fact, neither of them indicates that a connection to the
> internet is mandatory in order to use maven to build a Jetspeed2 portal.
>
> Many thanks,
> Mike Church
>
>
> The Information contained in this E-Mail and any subsequent correspondence
> is private and is intended solely for the intended recipient(s).
> For those other than the recipient any disclosure, copying, distribution,
> or any action taken or omitted to be taken in reliance on such information
> is prohibited and may be unlawful.
>
> Emails and other electronic communication with QinetiQ may be monitored.
> Calls to QinetiQ may be recorded for quality control,
> regulatory and monitoring purposes.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


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


RE: Jetspeed 2 Setup and Development Problems, Private Network

Posted by Davy De Waele <se...@pandora.be>.
Michael,

If you have no desire to modify the Jetspeed codebase, why not simply
download the installer and take it from there.
It provides a nice little frontend that will guide you through the
installation process and will

1) install a tomcat instance
2) prepare the Jetspeed  database
2) deploy Jetspeed on the tomcat instance
3) make the necessary config changes on the tomcat instance
4) deploy sample portlets

Once the installer has finished, you can start tomcat (executing the
startup.bat command in the bin directory where Jetspeed was installed)

Once you see the following in your console

18-jan-2006 16:50:56 org.apache.catalina.startup.Catalina start
INFO: Server startup in 26619 ms

you can access the jetpeed application at http://localhost:8080/jetspeed

The first time you access this URL you will probably see something like

Failed to retrieve Portlet Definition for
jetspeed-layouts::VelocityTwoColumnsFailed to retrieve Portlet
Definition for
jetspeed-layouts::VelocityTwoColumnsjava.lang.IllegalArgumentException:
Cannot pass a null PortletDefinition to a PortletEntity.

This is because in the background , Jetspeed is performing some
initialization (just look at the tomcat console). 
Once this has finished, your portal should be fully accessible.

I just installed Jetspeed (using the installer and without being
connected to the internet), and had my Jetspeed2 portal up & running in
less then 10 minutes.

Custom Portlets can be dropped in the 
<TOMCAT_HOME>/webapps/Jetspeed/WEB-INF/deploy folder.

Greetings,

Davy

-----Oorspronkelijk bericht-----
Van: Church Michael R [mailto:MRCHURCH@qinetiq.com] 
Verzonden: woensdag 18 januari 2006 15:15
Aan: 'jetspeed-user@portals.apache.org'
Onderwerp: Jetspeed 2 Setup and Development Problems, Private Network

I am currently trying to set up a Jetspeed-2 portal on a private
network.
Internet access from this private network is strictly forbidden.

My ultimate intention is to create a portal with my own newly-developed
portlets to provide web services to those of my work colleagues that
have
access to the private network.

However, I am having problems simply setting Jetspeed-2 up at all.
Leaving
aside the fact that the various setup guides all seem to be inconsistent
(and more than a little ambiguous), there seems to be a fundamental
problem
that I don't think can be circumvented. Unless somebody out there knows
better, of course ...

One of the very first things that I am required to do is "build the
maven
plugin" (see
http://wiki.apache.org/portals/Jetspeed2/QuickstartForTheImpatient for
details), by issuing the command "maven initMavenPlugin". This does not
work
at all.

It seems that the act of building the maven plugin requires that maven
go to
one of a number of web sites to identify and download the latest
versions of
a series of jar files to my PC. Which is impossible for me, because my
PC is
not connected to the internet, and isn't allowed to be.

Can somebody out there confirm for me that this is the case? And if it
is
the case, has anybody out there come across the problem themselves and
found
a way to get around it?

The Maven web site and the Jetspeed web site are both less than helpful
on
this matter. In fact, neither of them indicates that a connection to the
internet is mandatory in order to use maven to build a Jetspeed2 portal.

Many thanks,
Mike Church


The Information contained in this E-Mail and any subsequent
correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying,
distribution,
or any action taken or omitted to be taken in reliance on such
information
is prohibited and may be unlawful.

Emails and other electronic communication with QinetiQ may be monitored.
Calls to QinetiQ may be recorded for quality control,
regulatory and monitoring purposes.

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



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