I am trying to build the sample-portal found in the GateIn source distribution (GateIn-3.0.0-FINAL-src.tar) and run it in my installed GateIn Tomcat distribution (GateIn-3.0.0-FINAL-tomcat.tar). I work on a private network so cannot use maven. Therefore, I tried to follow all the steps in the "Portal containers" article Thomas Heute published on March 3rd and in the README.txt located in the examples/portal directory but with the code built in NetBeans projects. I build and copy sample-portal.war, rest-sample-portal.war and startup.war to the webapps directory of my GateIn Tomcat install and I build and copy exo.portal.sample.portal.jar and exo.portal.sample.portal.config.jar to the lib directory. I also defined the realm in tomcat/conf/jaas.conf and made the sample-portal.xml and rest-sample-portal.xml files in tomcat/conf/Catalina/localhost as per the README.txt. When I start GateIn, the servlet doesn't start because it gets the error
Cannot find a satisfying constructor for class org.exoplatform.portal.application.PortalStatisticService with parameter class org.exoplatform.portal.config.UserPortalConfigService
at org.exoplatform.container.ExoContainer.createComponent (ExoContainer.java:209)
In the sample-portal, the sample code (SampleFilter, SampleHttpSessionCreatedListener, SampleHttpSessionDestroyedListener, SampleContextInitializedListener and SampleContextDestroyedListener) each has a system.out.println and I see in the output from SampleFilter.doFilter() then the SampleSessionCreatedListener.onEvent() then the error then the output from the 'finally' clause of SampleFilter.doFilter() and then the SampleHttpSessionDestroyedListener.onEvent().
I can see and use the regular GateIn portal in the browser even with these errors but obviously when I try to go to sample-portal in the browser there is an error in the logs and the page is blank.