Monday, September 14, 2015

JBoss Portal 6.2 - deploy sample portlet

JBoss Portal 6.2 release notes

https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Portal/6.2/pdf/6.2.0_Release_Notes/Red_Hat_JBoss_Portal-6.2-6.2.0_Release_Notes-en-US.pdf

JBoss Portal 6.2 supported configurations
ttps://access.redhat.com/articles/119833#Comp_6_2

JBoss Portal samples on GitHub
https://github.com/jboss-developer/jboss-portal-quickstarts

Install JBoss Portal - download installation and samples using  JBoss Developer account

Download zip installation and unzip
[dave@localhost ~]$ ls -1  ~/Downloads/jboss-portal-6.2.0*
/home/dave/Downloads/jboss-portal-6.2.0-quickstarts.zip
/home/dave/Downloads/jboss-portal-6.2.0.zip


Start JBoss Portal
[dave@localhost bin]$ ./standalone.sh 
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /app/jboss-portal-6.2

  JAVA: /usr/java/jdk1.8.0_45/bin/java

  JAVA_OPTS:  -server -XX:+UseCompressedOops -verbose:gc -Xloggc:"/app/jboss-portal-6.2/standalone/log/gc.log" -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Xms1303m -Xmx1303m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.modules.policy-permissions=true

=========================================================================

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
20:57:34,870 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.6.Final-redhat-1
20:57:36,835 INFO  [org.jboss.msc] (main) JBoss MSC version 1.1.5.Final-redhat-1
20:57:37,151 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015899: JBoss Portal 6.2.0.GA (AS 7.5.0.Final-redhat-21) starting
20:57:42,059 INFO  [org.gatein] (ServerService Thread Pool -- 24) Setting 'exo.conf.dir'
20:57:42,061 INFO  [org.gatein] (ServerService Thread Pool -- 24) Setting 'exo.conf.dir.name'
20:57:42,061 INFO  [org.gatein] (ServerService Thread Pool -- 24) Setting 'gatein.conf.dir'
20:57:44,362 INFO  [org.xnio] (MSC service thread 1-7) XNIO Version 3.0.13.GA-redhat-1
20:57:44,381 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)




Install portlet sample via Maven

[dave@localhost jboss-portal-6.2.0-quickstarts]$ cd simplest-hello-world-portlet
[dave@localhost simplest-hello-world-portlet]$ ls
pom.xml  README.html  README.md  src
[dave@localhost simplest-hello-world-portlet]$ pwd
[dave@localhost simplest-hello-world-portlet]$ mvn clean package jboss-as:deploy
[INFO] Scanning for projects...
Downloading: http://maven.repository.redhat.com/earlyaccess/all/org/jboss/bom/portal/jboss-portal-bom/6.2.0.GA/jboss-portal-bom-6.2.0.GA.pom
Downloading: http://maven.repository.redhat.com/techpreview/all/org/jboss/bom/portal/jboss-portal-bom/6.2.0.GA/jboss-portal-bom-6.2.0.GA.pom
Downloaded: http://maven.repository.redhat.com/techpreview/all/org/jboss/bom/portal/jboss-portal-bom/6.2.0.GA/jboss-portal-bom-6.2.0.GA.pom (6 KB at 5.0 KB/sec)
Downloading: http://maven.repository.redhat.com/earlyaccess/all/org/jboss/bom/eap/jboss-eap-bom-parent/6.4.0.GA/jboss-eap-bom-parent-6.4.0.GA.pom
Downloading: http://maven.repository.redhat.com/techpreview/all/org/jboss/bom/eap/jboss-eap-bom-parent/6.4.0.GA/jboss-eap-bom-parent-6.4.0.GA.pom
Downloaded: http://maven.repository.redhat.com/techpreview/all/org/jboss/bom/eap/jboss-eap-bom-parent/6.4.0.GA/jboss-eap-bom-parent-6.4.0.GA.pom (7 KB at 27.3 KB/sec)
Downloading: http://maven.repository.redhat.com/earlyaccess/all/org/jboss/spec/jboss-javaee-6.0/3.0.2.Final-redhat-15/jboss-javaee-6.0-3.0.2.Final-redhat-15.pom
Downloaded: http://maven.repository.redhat.com/earlyaccess/all/org/jboss/spec/jboss-javaee-6.0/3.0.2.Final-redhat-15/jboss-javaee-6.0-3.0.2.Final-redhat-15.pom (18 KB at 22.1 KB/sec)
Downloading: http://maven.repository.redhat.com/earlyaccess/all/org/jboss/jboss-parent/14.0.0.redhat-1/jboss-parent-14.0.0.redhat-1.pom
Downloaded: http://maven.repository.redhat.com/earlyaccess/all/org/jboss/jboss-parent/14.0.0.redhat-1/jboss-parent-14.0.0.redhat-1.pom (33 KB at 42.5 KB/sec)
Downloading: http://maven.repository.redhat.com/earlyaccess/all/org/richfaces/richfaces-bom/4.3.7.Final-redhat-1/richfaces-bom-4.3.7.Final-redhat-1.pom
Downloading: http://maven.repository.redhat.com/techpreview/all/org/richfaces/richfaces-bom/4.3.7.Final-redhat-1/richfaces-bom-4.3.7.Final-redhat-1.pom
Downloaded: http://maven.repository.redhat.com/techpreview/all/org/richfaces/richfaces-bom/4.3.7.Final-redhat-1/richfaces-bom-4.3.7.Final-redhat-1.pom (12 KB at 12.6 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Simplest Hello World Portlet 6.2.0.GA
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.repository.redhat.com/earlyaccess/all/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom
Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom (7 KB at 43.0 KB/sec)
Downloading: http://maven.repository.redhat.com/earlyaccess/all/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar
Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar (77 KB at 609.6 KB/sec)
Downloading: http://maven.repository.redhat.com/earlyaccess/all/javax/portlet/portlet-api/2.0/portlet-api-2.0.pom
Downloading: http://maven.repository.redhat.com/techpreview/all/javax/portlet/portlet-api/2.0/portlet-api-2.0.pom
Downloading: http://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.pom
Downloaded: http://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.pom (5 KB at 58.4 KB/sec)
Downloading: http://maven.repository.redhat.com/earlyaccess/all/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar
Downloading: http://maven.repository.redhat.com/techpreview/all/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar
Downloading: http://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar
Downloaded: http://repo.maven.apache.org/maven2/javax/portlet/portlet-api/2.0/portlet-api-2.0.jar (47 KB at 700.3 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ simplest-hello-world-portlet ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ simplest-hello-world-portlet ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ simplest-hello-world-portlet ---
[INFO] Compiling 1 source file to /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ simplest-hello-world-portlet ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ simplest-hello-world-portlet ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ simplest-hello-world-portlet ---
[INFO] No tests to run.
[INFO] Surefire report directory: /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ simplest-hello-world-portlet ---
[INFO] Packaging webapp
[INFO] Assembling webapp [simplest-hello-world-portlet] in [/home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/target/simplest-hello-world-portlet]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/src/main/webapp]
[INFO] Webapp assembled in [40 msecs]
[INFO] Building war: /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/target/simplest-hello-world-portlet.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] 
[INFO] >>> jboss-as-maven-plugin:7.4.Final:deploy (default-cli) > package @ simplest-hello-world-portlet >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ simplest-hello-world-portlet ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ simplest-hello-world-portlet ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ simplest-hello-world-portlet ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ simplest-hello-world-portlet ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ simplest-hello-world-portlet ---
[INFO] No tests to run.
[INFO] Skipping execution of surefire because it has already been run for this configuration
[INFO] 
[INFO] --- maven-war-plugin:2.2:war (default-war) @ simplest-hello-world-portlet ---
[INFO] Packaging webapp
[INFO] Assembling webapp [simplest-hello-world-portlet] in [/home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/target/simplest-hello-world-portlet]
[INFO] Processing war project
[INFO] Copying webapp resources [/home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/src/main/webapp]
[INFO] Webapp assembled in [2 msecs]
[INFO] Building war: /home/app/jboss-portal-6.2.0-quickstarts/simplest-hello-world-portlet/target/simplest-hello-world-portlet.war
[INFO] WEB-INF/web.xml already added, skipping
[INFO] 
[INFO] <<< jboss-as-maven-plugin:7.4.Final:deploy (default-cli) < package @ simplest-hello-world-portlet <<<
[INFO] 
[INFO] --- jboss-as-maven-plugin:7.4.Final:deploy (default-cli) @ simplest-hello-world-portlet ---
Sep 14, 2015 9:10:12 PM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.7.GA
Sep 14, 2015 9:10:12 PM org.xnio.nio.NioXnio <clinit>
INFO: XNIO NIO Implementation Version 3.0.7.GA
Sep 14, 2015 9:10:12 PM org.jboss.remoting3.EndpointImpl <clinit>
INFO: JBoss Remoting version 3.2.12.GA
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.949 s
[INFO] Finished at: 2015-09-14T21:10:13+02:00
[INFO] Final Memory: 21M/86M
[INFO] ------------------------------------------------------------------------
[dave@localhost simplest-hello-world-portlet]$ 

1 comment: