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 Stefan Weinert <su...@yahoo.de> on 2006/02/23 12:19:39 UTC

How to start building the portal?

I hate to spam this group as a beginner but I'm very confused with which way is best suited for developing the portal.
  
  First I installed the installer version, looked at the demo portal. I  have to say I really like it and the psml docs are very good, too.
  
  When trying to get the simples portlet to run the docs say that I have  to build the portal. Fine I've installed maven and build the maven  hello world project to see if maven works on my windows machine.
  
  What is the installer version good for if I can't even get the simplest  portlet to run with it? Is it just for use as a demo? If that's the  case it should be indicated.
  
  If I can't use the installer version which is better the maven plugin or building from source?
  
  The building from source instructions are very tough for beginners  especially when working on a windows machine (unfortunately mostly  beginners will probably do that).
  The page instructing how to build the maven plugin from eclipse is 404'ed.
  
  Don't get me wrong. I know that as a beginner everything looks more  complicated than it really is. On almost every page it's mentioned that  the build process is very easy with maven - that makes me think how  complicated it would be withouth. I still didn't get any version of J2  -besides the installer-  to run.
  
  If you read this far you might take that extra minute to point me to the right direction?
  
  ste
  
		
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!

Re: How to start building the portal?

Posted by Mikko Wuokko <Mi...@evtek.fi>.
Forgot one thing. You must create the user for portlet deployment, so 
modify $CATALINA_HOME/conf/tomcat-users.xml to look like this

<tomcat-users>
   <role rolename="tomcat"/>
   <role rolename="role1"/>
   <role rolename="manager"/>
   <role rolename="admin"/>
   <user username="tomcat" password="tomcat" roles="tomcat"/>
   <user username="both" password="tomcat" roles="tomcat,role1"/>
   <user username="role1" password="tomcat" roles="role1"/>
   <user username="j2deployer" password="j2deployer" roles="manager"/>
   <user username="admin" password="admin" roles="admin,manager,tomcat"/>
</tomcat-users>

Those role tags are not necessary, but won't harm anyway..

-Mikko

Mikko Wuokko wrote:
> This is instructions to build the source from SVN. There could be some 
> errors though. Hope it will help.
> 
> First note: Do NOT install anything to locations that have spaces in its 
> path. So Tomcat does NOT go to c:\Program Files\Tomcat, instead it goes 
> to c:\Tomcat or similar. This goes for JDK, Maven, Tomcat, Ant and the 
> Jetspeed project.
> 
> Download and install JDK (1.5), remove any existing JDKs before if have 
> any (should work anyway, but Java can be tricky)
> 
> Download maven 1.0.2
> unpack maven and copy somewhere
> add MAVEN_HOME environment variable pointing to unpacked dir
> 
> Download Ant
> unpack Ant and copy somewhere
> add ANT_HOME environment variable pointing to unpacked dir
> 
> Download tomcat 5.5.12
> unpack tomcat to somewhere
> add CATALINA_HOME environment variable pointing to unpacked dir
> 
> At this point you probably have to reboot if youre using windows to make 
> the environment variables working
> 
> create file named build.properties to ${user_home} dir e.g. on *nix to 
> /home/myusername/ or on windows to c:\Documents and Settings\myusername\
> 
> add this content to it and modify as necessary
> 
> /*********** build.properties START *************/
> 
> # ---------------------------------------------------
> # Values to be customised
> # ---------------------------------------------------
> 
> # User / and NOT \ even on Windows and paths cannot have
> # spaces so C:/Program Files/Tomcat won't work and neither
> # will "C:/Program Files/Tomcat" so NO quotes either
> 
> # Full path to you jetspeed project
> basedir=c:/jetspeed-2
> 
> # Change this to match your tomcat installation folder
> tomcat.home=c:/tomcat
> 
> # MySQL host
> 
> mysql.host=localhost
> 
> # MySQL must have root account with password root
> # (change from pre-configured section if other)
> # and tables j2 and j2test or a user which has access to these
> 
> # ---------------------------------------------------
> # Pre configured values
> # ---------------------------------------------------
> 
> # If this wraps it wont work, should be a single line starting here
> 
> maven.repo.remote = http://www.bluesunrise.com/maven, 
> http://www.ibiblio.org/maven,http://ibiblio.lsu.edu/main/maven, 
> http://dist.codehaus.org, http://cvs.apache.org/repository, 
> http://mirrors.sunsite.dk/maven, 
> http://smokeping.planetmirror.com/pub/maven
> 
> # And ending here, excluding these comments of course ;)
> 
> 
> # If you're behind a proxy
> 
> maven.proxy.host=proxyhostaddress
> maven.proxy.port=proxyport
> 
> # Change these to match you mysql user
> mysql.user=root
> mysql.password=root
> 
> # ---------------------------------------------------------------------
> # JETSPEED 2
> # ----------------------------------------------------------------------
> 
> org.apache.jetspeed.project.home=${basedir}
> 
> org.apache.jetspeed.server.home=${tomcat.home}
> org.apache.jetspeed.server.shared=${org.apache.jetspeed.server.home}/shared/lib/ 
> 
> org.apache.jetspeed.deploy.war.dir=${org.apache.jetspeed.server.home}/webapps/ 
> 
> org.apache.jetspeed.services.autodeployment.user=j2deployer
> org.apache.jetspeed.services.autodeployment.password=j2deployer
> org.apache.jetspeed.catalina.version.major=5.5
> 
> # configure MySQL TEST DB
> 
> # Create appropriate databases and users #
> 
> org.apache.jetspeed.test.database.default.name=mysql
> org.apache.jetspeed.test.database.url=jdbc:mysql://${mysql.host}/j2test?useServerPrepStmts=false 
> 
> org.apache.jetspeed.test.database.driver=com.mysql.jdbc.Driver
> org.apache.jetspeed.test.database.user=${mysql.user}
> org.apache.jetspeed.test.database.password=${mysql.password}
> 
> # Change this path to match the location where you
> # unzipped the connector
> org.apache.jetspeed.test.jdbc.drivers.path=c:/path/to/mysql-connector-java-3.1.12-bin.jar 
> 
> 
> # configure MySQL Production DB
> 
> # Create appropriate databases and users #
> 
> org.apache.jetspeed.production.database.default.name=mysql
> org.apache.jetspeed.production.database.url=jdbc:mysql://${mysql.host}/j2?useServerPrepStmts=false 
> 
> org.apache.jetspeed.production.database.driver=com.mysql.jdbc.Driver
> org.apache.jetspeed.production.database.user=${mysql.user}
> org.apache.jetspeed.production.database.password=${mysql.password}
> 
> # Change this path to match the location where you
> # unzipped the connector
> org.apache.jetspeed.production.jdbc.drivers.path=c:/path/to/mysql-connector-java-3.1.12-bin.jar 
> 
> 
> /*********** build.properties END *************/
> 
> 
> cd to the folder one level under the folder you set as basedir
> 
> svn co http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk jetspeed-2
> 
> cd jetspeed-2
> 
> maven initMavenPlugin
> 
> maven allClean allBuild
> 
> maven j2:quickStart
> 
> If everything gave you "Build successful" go on, if not do some debugging
> 
> copy c:/path/to/mysql-connector-java-3.1.12-bin.jar to 
> $CATALINA_HOME/shared/lib/
> 
> execute $CATALINA_HOME/bin/startup.sh
> 
> browse to http://localhost:8080/jetspeed
> 
> Should see your portal
> 
> ---------------------------------------------------------------------
> 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: How to start building the portal?

Posted by Philip Mark Donaghy <ph...@gmail.com>.
On 2/23/06, Ralph Goers <Ra...@dslextreme.com> wrote:
> Thanks for the instructions - I can use them. But I think you missed the
> big question in the middle.  What good is the binary installed version
> if you can't really use it? When you look at the download section on the
> website there is no indication that the binary install is only useful as
> a sample site.  Frankly, I'm not sure that that is true but there are no
> instructions that I can see in how to convert it to a production site.

As for production, I wouldn't suggest putting any opensource
application server into production using it's default configuration.
We usually optimize it based on the applications needs. The binary
distribution is better suited as a development environment. I will
deploy a jetspeed portal in the coming months. I will be looking at
some tomcat optimization guides and for ways to optimize jetspeed. I
think I will need the source for jetspeed and perhaps tomcat. I don't
know yet. Has anyone out there optimized jetspeed for production? But
for now I've learned the basics of compiling and debugging jetspeed
because I think I will need it.

If you were referring to being productive as a developer that is
different. Using the binary you can just start deleting the psml files
you don't want and start structuring new ones the way you want. You
can develop new portlets and deploy them or deploy some existing
jsr-168. No need for jetspeed source in this case.

The point of the plugin binary is to fullfill the needs of most
integrators. I use it essentially for the database tasks.

>
> Ralph
>
> Mikko Wuokko wrote:
> > This is instructions to build the source from SVN. There could be some
> > errors though. Hope it will help.
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>


--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

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


Re: How to start building the portal?

Posted by Mikko Wuokko <Mi...@evtek.fi>.
A binary installation you could use like an CMS (well, not exatcly), but 
what I mean is that you can modify and create new layouts without 
rebuilding Jetspeed and even without shutting down Tomcat. New content 
can be added as deploying new portlets. In some cases this might just be 
enough to do what is needed. For setting up a small site (if you find 
the appropriate portlets) this might work, but for grander scale portals 
probably not.

This was mentioned earlier (atleast) on the "J2 Build System"-thread. 
Hopefully I'm not too wrong, as I'm quite noobie myself too.

-Mikko

Ralph Goers wrote:
> Thanks for the instructions - I can use them. But I think you missed the 
> big question in the middle.  What good is the binary installed version 
> if you can't really use it? When you look at the download section on the 
> website there is no indication that the binary install is only useful as 
> a sample site.  Frankly, I'm not sure that that is true but there are no 
> instructions that I can see in how to convert it to a production site.
> 
> Ralph
> 
> Mikko Wuokko wrote:
>> This is instructions to build the source from SVN. There could be some 
>> errors though. Hope it will help.
>>
>>
> 
> 
> ---------------------------------------------------------------------
> 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: How to start building the portal?

Posted by Aaron Evans <aa...@gmail.com>.
Perhaps the instructions could be better, but with the binary installed
version from the installer you can customize most things you will need to
customize.  You can:

-Create and Customize themes/skins.
-Customize navigations and layouts.
-Add/Remove/Change pages.
-Deploy new portlet applications and add them to whatever pages.

What is less trivial is configuring J2 to use a different database, change
the URI of the portal or integrate with an existing authentication
authority.   Although these can be done after the fact, most J2 users that
will be doing these kinds of things have a deeper understanding of J2 and
find it easier to create a custom build of a portal from the get-go (either
from source or using the maven plugin).



On 2/23/06, Ralph Goers <Ra...@dslextreme.com> wrote:
>
> Thanks for the instructions - I can use them. But I think you missed the
> big question in the middle.  What good is the binary installed version
> if you can't really use it? When you look at the download section on the
> website there is no indication that the binary install is only useful as
> a sample site.  Frankly, I'm not sure that that is true but there are no
> instructions that I can see in how to convert it to a production site.
>
> Ralph
>
> Mikko Wuokko wrote:
> > This is instructions to build the source from SVN. There could be some
> > errors though. Hope it will help.
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

Re: How to start building the portal?

Posted by Ralph Goers <Ra...@dslextreme.com>.
Thanks for the instructions - I can use them. But I think you missed the 
big question in the middle.  What good is the binary installed version 
if you can't really use it? When you look at the download section on the 
website there is no indication that the binary install is only useful as 
a sample site.  Frankly, I'm not sure that that is true but there are no 
instructions that I can see in how to convert it to a production site.

Ralph

Mikko Wuokko wrote:
> This is instructions to build the source from SVN. There could be some 
> errors though. Hope it will help.
>
>


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


Re: How to start building the portal?

Posted by Mikko Wuokko <Mi...@evtek.fi>.
This is instructions to build the source from SVN. There could be some 
errors though. Hope it will help.

First note: Do NOT install anything to locations that have spaces in its 
path. So Tomcat does NOT go to c:\Program Files\Tomcat, instead it goes 
to c:\Tomcat or similar. This goes for JDK, Maven, Tomcat, Ant and the 
Jetspeed project.

Download and install JDK (1.5), remove any existing JDKs before if have 
any (should work anyway, but Java can be tricky)

Download maven 1.0.2
unpack maven and copy somewhere
add MAVEN_HOME environment variable pointing to unpacked dir

Download Ant
unpack Ant and copy somewhere
add ANT_HOME environment variable pointing to unpacked dir

Download tomcat 5.5.12
unpack tomcat to somewhere
add CATALINA_HOME environment variable pointing to unpacked dir

At this point you probably have to reboot if youre using windows to make 
the environment variables working

create file named build.properties to ${user_home} dir e.g. on *nix to 
/home/myusername/ or on windows to c:\Documents and Settings\myusername\

add this content to it and modify as necessary

/*********** build.properties START *************/

# ---------------------------------------------------
# Values to be customised
# ---------------------------------------------------

# User / and NOT \ even on Windows and paths cannot have
# spaces so C:/Program Files/Tomcat won't work and neither
# will "C:/Program Files/Tomcat" so NO quotes either

# Full path to you jetspeed project
basedir=c:/jetspeed-2

# Change this to match your tomcat installation folder
tomcat.home=c:/tomcat

# MySQL host

mysql.host=localhost

# MySQL must have root account with password root
# (change from pre-configured section if other)
# and tables j2 and j2test or a user which has access to these

# ---------------------------------------------------
# Pre configured values
# ---------------------------------------------------

# If this wraps it wont work, should be a single line starting here

maven.repo.remote = http://www.bluesunrise.com/maven, 
http://www.ibiblio.org/maven,http://ibiblio.lsu.edu/main/maven, 
http://dist.codehaus.org, http://cvs.apache.org/repository, 
http://mirrors.sunsite.dk/maven, http://smokeping.planetmirror.com/pub/maven

# And ending here, excluding these comments of course ;)


# If you're behind a proxy

maven.proxy.host=proxyhostaddress
maven.proxy.port=proxyport

# Change these to match you mysql user
mysql.user=root
mysql.password=root

# ---------------------------------------------------------------------
# JETSPEED 2
# ----------------------------------------------------------------------

org.apache.jetspeed.project.home=${basedir}

org.apache.jetspeed.server.home=${tomcat.home}
org.apache.jetspeed.server.shared=${org.apache.jetspeed.server.home}/shared/lib/
org.apache.jetspeed.deploy.war.dir=${org.apache.jetspeed.server.home}/webapps/
org.apache.jetspeed.services.autodeployment.user=j2deployer
org.apache.jetspeed.services.autodeployment.password=j2deployer
org.apache.jetspeed.catalina.version.major=5.5

# configure MySQL TEST DB

# Create appropriate databases and users #

org.apache.jetspeed.test.database.default.name=mysql
org.apache.jetspeed.test.database.url=jdbc:mysql://${mysql.host}/j2test?useServerPrepStmts=false
org.apache.jetspeed.test.database.driver=com.mysql.jdbc.Driver
org.apache.jetspeed.test.database.user=${mysql.user}
org.apache.jetspeed.test.database.password=${mysql.password}

# Change this path to match the location where you
# unzipped the connector
org.apache.jetspeed.test.jdbc.drivers.path=c:/path/to/mysql-connector-java-3.1.12-bin.jar

# configure MySQL Production DB

# Create appropriate databases and users #

org.apache.jetspeed.production.database.default.name=mysql
org.apache.jetspeed.production.database.url=jdbc:mysql://${mysql.host}/j2?useServerPrepStmts=false
org.apache.jetspeed.production.database.driver=com.mysql.jdbc.Driver
org.apache.jetspeed.production.database.user=${mysql.user}
org.apache.jetspeed.production.database.password=${mysql.password}

# Change this path to match the location where you
# unzipped the connector
org.apache.jetspeed.production.jdbc.drivers.path=c:/path/to/mysql-connector-java-3.1.12-bin.jar

/*********** build.properties END *************/


cd to the folder one level under the folder you set as basedir

svn co http://svn.apache.org/repos/asf/portals/jetspeed-2/trunk jetspeed-2

cd jetspeed-2

maven initMavenPlugin

maven allClean allBuild

maven j2:quickStart

If everything gave you "Build successful" go on, if not do some debugging

copy c:/path/to/mysql-connector-java-3.1.12-bin.jar to 
$CATALINA_HOME/shared/lib/

execute $CATALINA_HOME/bin/startup.sh

browse to http://localhost:8080/jetspeed

Should see your portal

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


Re: How to start building the portal?

Posted by Ralph Goers <Ra...@dslextreme.com>.
I'm deploying to JBoss 4.0.3 instead of Tomcat. I was actually able to
pretty much copy the necessary parts from a binary build into JBoss and
get it working. However, I'm wondering if it is possible to do the build
as you described below and target JBoss instead of Tomcat.

Ralph


Philip Mark Donaghy said:
> Hi Stefan,
>
> On 2/23/06, Stefan Weinert <su...@yahoo.de> wrote:
>> I hate to spam this group as a beginner but I'm very confused with which
>> way is best suited for developing the portal.
>>
>>   First I installed the installer version, looked at the demo portal. I
>> have to say I really like it and the psml docs are very good, too.
>>
>>   When trying to get the simples portlet to run the docs say that I have
>>  to build the portal.
>
> I'm going to pull that out because it is not actually necessary. The
> only reason that is there is to deploy the psml from your workspace.
> The guide should say optional or rather or create a new page in the
> jetspeed/WEB-INF/pages or use the admin portlet to create a new page
> and add the portlet.
>
>> Fine I've installed maven and build the maven  hello world project to
>> see if maven works on my windows machine.
>>
>>   What is the installer version good for if I can't even get the
>> simplest  portlet to run with it? Is it just for use as a demo? If
>> that's the  case it should be indicated.
>>
>>   If I can't use the installer version which is better the maven plugin
>> or building from source?
>
> I prefer building from source. The plugin is useful for database tasks.
>
>>
>>   The building from source instructions are very tough for beginners
>> especially when working on a windows machine (unfortunately mostly
>> beginners will probably do that).
>>   The page instructing how to build the maven plugin from eclipse is
>> 404'ed.
>>
>>   Don't get me wrong. I know that as a beginner everything looks more
>> complicated than it really is. On almost every page it's mentioned
>> that  the build process is very easy with maven - that makes me think
>> how  complicated it would be withouth. I still didn't get any version
>> of J2  -besides the installer-  to run.
>>
>>   If you read this far you might take that extra minute to point me to
>> the right direction?
>
> Check out the source and create a file called build.properties at the
> root with the following properties,
>
> org.apache.jetspeed.server.home=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12
> org.apache.jetspeed.server.shared=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/shared/lib
> org.apache.jetspeed.deploy.war.dir=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/webapps
> org.apache.jetspeed.services.autodeployment.user=j2deployer
> org.apache.jetspeed.services.autodeployment.password=j2deployer
> org.apache.jetspeed.catalina.version.major=5.5
> org.apache.jetspeed.project.home=/home/phil/20051223/opensource/svnProjects/jetspeed-2
>
> I'm assuming that you got the jdk, tomcat, and maven parts installed.
> Mikko mentions some good tips to avoid problems.
>
> Run the following commands (the -o will run maven in offline mode
> remove it if it complains about dependencies)
>
> maven initMavenPlugin
> maven -o allBuild
> maven -o j2:quickStart
>
> Start Tomcat with the command 'catalina run'. kill with Ctrl-C
>
> There is also a new Maven 2 build that is under development.
>
>>
>>   ste
>>
>>
>> ---------------------------------
>> Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
>> Jetzt Yahoo! Messenger installieren!
>>
>
>
> --
> Philip Donaghy
> donaghy.blogspot.com del.icio.us/donaghy/philip
> Skype: philipmarkdonaghy
> Office: +33 5 56 60 88 02
> Mobile: +33 6 20 83 22 62
>
> ---------------------------------------------------------------------
> 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: How to start building the portal?

Posted by Mikko Wuokko <Mi...@evtek.fi>.
I did the same thing when I started ;)

You can also use Maven2 if you like, but is still under development as 
mentioned in various places. Maven1 and Maven2 can be both installed in 
parallel. To build Jetspeed2 with M2 check out the settings.xml.sample 
and fill in the proper details and execute "mvn -P tomcat" command. You 
can try that one too if you like.

There were some more instructions on another thread.

-mikko

Stefan Weinert wrote:
> --- Mikko Wuokko <Mi...@evtek.fi> schrieb:
>> I assume the "mvn initMavenPlugin" is a typo and
>> should be "maven 
>> initMavenPlugin". mvn is the Maven2 command.
> 
> looks like i didn't pay attention and installed maven
> 2.
> thx
> 
> 
> 	
> 
> 	
> 		
> ___________________________________________________________ 
> Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
> 
> ---------------------------------------------------------------------
> 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: How to start building the portal?

Posted by Stefan Weinert <su...@yahoo.de>.
--- Mikko Wuokko <Mi...@evtek.fi> schrieb:
> I assume the "mvn initMavenPlugin" is a typo and
> should be "maven 
> initMavenPlugin". mvn is the Maven2 command.

looks like i didn't pay attention and installed maven
2.
thx


	

	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

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


Re: How to start building the portal?

Posted by Mikko Wuokko <Mi...@evtek.fi>.
Not Philip, but did you put £MAVEN_HOME/bin folder to your path?

I assume the "mvn initMavenPlugin" is a typo and should be "maven 
initMavenPlugin". mvn is the Maven2 command.

Stefan Weinert wrote:
> Hi Philip,
> 
>   I did the checkout and have the sources now in c:\jetspeed-2
>   the build.proerties file is located at c:\Documents and Settings\me\
>   all path were altered and maven,tomcat,jdk and ant are working.
>   ---
>   Run the following commands (the -o will run maven in offline mode
> remove it if it complains about dependencies)
> 
> maven initMavenPlugin
> maven -o allBuild
> maven -o j2:quickStart
>   ---
>   
>   I cd'ed to c:\jetspeed-2 and tried mvn initMavenPlugin
>   but it tells me that this is an invalid task. Same for allBuild.
>   I guess this is a maven problem and thus offtopic- sorry about that.
>   
>   stefan
> 
> 		
> ---------------------------------
> Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
> Jetzt Yahoo! Messenger installieren!


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


Re: How to start building the portal?

Posted by Stefan Weinert <su...@yahoo.de>.
Hi Philip,

  I did the checkout and have the sources now in c:\jetspeed-2
  the build.proerties file is located at c:\Documents and Settings\me\
  all path were altered and maven,tomcat,jdk and ant are working.
  ---
  Run the following commands (the -o will run maven in offline mode
remove it if it complains about dependencies)

maven initMavenPlugin
maven -o allBuild
maven -o j2:quickStart
  ---
  
  I cd'ed to c:\jetspeed-2 and tried mvn initMavenPlugin
  but it tells me that this is an invalid task. Same for allBuild.
  I guess this is a maven problem and thus offtopic- sorry about that.
  
  stefan

		
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!

Re: How to start building the portal?

Posted by Stefan Weinert <su...@yahoo.de>.
sorry for double-posting.
 I hit the refreshbutton a couple of times and the portal loaded into the brower. however the portlets are arranged in one column so I guess the error is still there.

Stefan Weinert <su...@yahoo.de> schrieb: For some reason I have not managed to build and run the portal on a windows machine.
 On Linux I got a little further, but the portal will still not show up in my browser.
 Here's the error message:
 ---
 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.
 ---
 I just followed the steps to build the portal posted before. I didn't touch a single line of code or markup from the sources.
 
 Regards
 Stefan
 

  
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!

		
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!

Re: How to start building the portal?

Posted by Stefan Weinert <su...@yahoo.de>.
For some reason I have not managed to build and run the portal on a windows machine.
 On Linux I got a little further, but the portal will still not show up in my browser.
 Here's the error message:
 ---
 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.
 ---
 I just followed the steps to build the portal posted before. I didn't touch a single line of code or markup from the sources.
 
 Regards
 Stefan
 

		
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!

Re: How to start building the portal?

Posted by Mikko Wuokko <Mi...@evtek.fi>.
Hi.

The j2:quickStart goal drops the tables and initializes them, so you 
should run that at least once to populate the tables. When you're 
building the Jetspeed again you can use j2:nodbfullDeploy goal instead. 
That won't drop the tables, but will deploy the wars to Tomcat. Also you 
may use the j2:minStart and j2:nodbMinDeploy goals same way, but these 
won't deploy the demo, rss or gems portlets if you don't need them.

For the error. Did you copy the mysql jdbc jar to 
$CATALINA_HOME/shared/lib folder? If not, do that and your problem may 
solve. I've had that kind of errors when I have forgotten to copy the 
jar to tomcat (now I use modified build script which will copy it for me 
:) ). If it cannot connect to database it cannot initialize the Jetspeed.

This is one not too documented thing you have to do.

-Mikko

Stefan Weinert wrote:
> I installed maven 1 and tried the approach below again.
>   Everything seems to work but when going to localhost:8080/jetspeed it shows the following exception:
>   
> org.apache.jasper.JasperException: Failed to initalize jetspeed.  org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
>  org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:453)
>  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>   
>   I'd also like to know what happens after executing this command:
>   maven -o j2:quickStart
>   
>   Thanks for your patience.
>   Stefan
> 
>   org.apache.jetspeed.server.home=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12
> org.apache.jetspeed.server.shared=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/shared/lib
> org.apache.jetspeed.deploy.war.dir=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/webapps
> org.apache.jetspeed.services.autodeployment.user=j2deployer
> org.apache.jetspeed.services.autodeployment.password=j2deployer
> org.apache.jetspeed.catalina.version.major=5.5
> org.apache.jetspeed.project.home=/home/phil/20051223/opensource/svnProjects/jetspeed-2
> 
> I'm assuming that you got the jdk, tomcat, and maven parts installed.
> Mikko mentions some good tips to avoid problems.
> 
> Run the following commands (the -o will run maven in offline mode
> remove it if it complains about dependencies)
> 
> maven initMavenPlugin
> maven -o allBuild
> maven -o j2:quickStart
> 
> Start Tomcat with the command 'catalina run'. kill with Ctrl-C
> 
> 		
> ---------------------------------
> Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
> Jetzt Yahoo! Messenger installieren!


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


Re: How to start building the portal?

Posted by Stefan Weinert <su...@yahoo.de>.
I installed maven 1 and tried the approach below again.
  Everything seems to work but when going to localhost:8080/jetspeed it shows the following exception:
  
org.apache.jasper.JasperException: Failed to initalize jetspeed.  org.apache.jetspeed.exception.JetspeedException: Jetspeed Initialization exception!
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:453)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
  I'd also like to know what happens after executing this command:
  maven -o j2:quickStart
  
  Thanks for your patience.
  Stefan

  org.apache.jetspeed.server.home=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12
org.apache.jetspeed.server.shared=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/shared/lib
org.apache.jetspeed.deploy.war.dir=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/webapps
org.apache.jetspeed.services.autodeployment.user=j2deployer
org.apache.jetspeed.services.autodeployment.password=j2deployer
org.apache.jetspeed.catalina.version.major=5.5
org.apache.jetspeed.project.home=/home/phil/20051223/opensource/svnProjects/jetspeed-2

I'm assuming that you got the jdk, tomcat, and maven parts installed.
Mikko mentions some good tips to avoid problems.

Run the following commands (the -o will run maven in offline mode
remove it if it complains about dependencies)

maven initMavenPlugin
maven -o allBuild
maven -o j2:quickStart

Start Tomcat with the command 'catalina run'. kill with Ctrl-C

		
---------------------------------
Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
Jetzt Yahoo! Messenger installieren!

Re: How to start building the portal?

Posted by Philip Mark Donaghy <ph...@gmail.com>.
Hi Stefan,

On 2/23/06, Stefan Weinert <su...@yahoo.de> wrote:
> I hate to spam this group as a beginner but I'm very confused with which way is best suited for developing the portal.
>
>   First I installed the installer version, looked at the demo portal. I  have to say I really like it and the psml docs are very good, too.
>
>   When trying to get the simples portlet to run the docs say that I have  to build the portal.

I'm going to pull that out because it is not actually necessary. The
only reason that is there is to deploy the psml from your workspace.
The guide should say optional or rather or create a new page in the
jetspeed/WEB-INF/pages or use the admin portlet to create a new page
and add the portlet.

> Fine I've installed maven and build the maven  hello world project to see if maven works on my windows machine.
>
>   What is the installer version good for if I can't even get the simplest  portlet to run with it? Is it just for use as a demo? If that's the  case it should be indicated.
>
>   If I can't use the installer version which is better the maven plugin or building from source?

I prefer building from source. The plugin is useful for database tasks.

>
>   The building from source instructions are very tough for beginners  especially when working on a windows machine (unfortunately mostly  beginners will probably do that).
>   The page instructing how to build the maven plugin from eclipse is 404'ed.
>
>   Don't get me wrong. I know that as a beginner everything looks more  complicated than it really is. On almost every page it's mentioned that  the build process is very easy with maven - that makes me think how  complicated it would be withouth. I still didn't get any version of J2  -besides the installer-  to run.
>
>   If you read this far you might take that extra minute to point me to the right direction?

Check out the source and create a file called build.properties at the
root with the following properties,

org.apache.jetspeed.server.home=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12
org.apache.jetspeed.server.shared=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/shared/lib
org.apache.jetspeed.deploy.war.dir=/home/phil/20051223/opensource/bin/apache-tomcat-5.5.12/webapps
org.apache.jetspeed.services.autodeployment.user=j2deployer
org.apache.jetspeed.services.autodeployment.password=j2deployer
org.apache.jetspeed.catalina.version.major=5.5
org.apache.jetspeed.project.home=/home/phil/20051223/opensource/svnProjects/jetspeed-2

I'm assuming that you got the jdk, tomcat, and maven parts installed.
Mikko mentions some good tips to avoid problems.

Run the following commands (the -o will run maven in offline mode
remove it if it complains about dependencies)

maven initMavenPlugin
maven -o allBuild
maven -o j2:quickStart

Start Tomcat with the command 'catalina run'. kill with Ctrl-C

There is also a new Maven 2 build that is under development.

>
>   ste
>
>
> ---------------------------------
> Telefonieren Sie ohne weitere Kosten mit Ihren Freunden von PC zu PC!
> Jetzt Yahoo! Messenger installieren!
>


--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

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