Yep, after running:
mvn install

in trunk,
ant deploy-ear

ran without issues.

and
ant initportal
calls ant deploy-ear, so in total, to setup/build/use trunk you only need to:

* setup new tomcat6 as mentioned below and in 
http://www.ja-sig.org/wiki/display/UPM31/01+Tomcat
* also beef up the memory settings from default tomcat (outside of an if in 
(tomcat)/bin/catalina.sh
JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=256m 
-XX:+CMSClassUnloadingEnabled -XX:+CMSClassUnloadingEnabled"
* make sure JAVA_HOME set to Java 6 for all terminal sessions
* checkout uportal trunk
* cp build.properties.sample to build.properties and set everything as 
mentioned below, even the maven home (uncomment it)
* in one terminal window, run the following in the checked-out trunk:
ant hsql
* in another terminal window run:
mvn install
(that is required for ant builds to work)
ant initportal
* start tomcat via
cd (tomcat/bin)
./startup.sh

Except for OS X. I ran into the error (seen in uPortal.log):

ERROR [main] May/06 12:46:04,843 context.ContextLoader.[] - Context 
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'initializingCheckRunning' defined in file 
[/usr/java/apache-tomcat-6.0.26/webapps/uPortal/WEB-INF/classes/properties/contexts/checksContext.xml]:
 Invocation of init method failed; nested exception is 
org.springframework.beans.factory.BeanInitializationException: Check [Check 
that the version of Xalan present is [Xalan Java 2.7.1]] failed with message 
[Xalan version [Xalan Java 2.4.1] loaded from 
'file:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar'
 is present, rather than the desired version [Xalan Java 2.7.1]] and 
remediation advice [Running uPortal on Mac OS X requires you to disable a 
library that is included in its Java distribution; rename or delete 
file:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar]

        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
        at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
        at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:519)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.factory.BeanInitializationException: Check 
[Check that the version of Xalan present is [Xalan Java 2.7.1]] failed with 
message [Xalan version [Xalan Java 2.4.1] loaded from 
'file:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar'
 is present, rather than the desired version [Xalan Java 2.7.1]] and 
remediation advice [Running uPortal on Mac OS X requires you to disable a 
library that is included in its Java distribution; rename or delete 
file:/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar]

        at 
org.jasig.portal.tools.checks.InitializingCheckRunner.logResults(InitializingCheckRunner.java:140)
        at 
org.jasig.portal.tools.checks.InitializingCheckRunner.afterPropertiesSet(InitializingCheckRunner.java:77)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
        ... 39 more

To fix this, did:

sudo mkdir 
/System/Library/Frameworks/JavaVM.framework/Versions/backup_of_A_Resources_.compatibility/
sudo mv 
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/.compatibility/14compatibility.jar
 
/System/Library/Frameworks/JavaVM.framework/Versions/backup_of_A_Resources_.compatibility/

restarted tomcat, and now it works fine! :)

I did notice that there was an error in catalina.out when trying to view first 
page, but was able to login and play around with portlets.

INFO: Server startup in 28299 ms
SystemId Unknown; Line #111; Column #114; Prefix must resolve to a namespace: s
May 6, 2010 12:53:07 PM org.apache.jasper.runtime.JspFactoryImpl 
internalGetPageContext
SEVERE: Exception initializing page context
java.lang.IllegalStateException: Page needs a session and none is available
        at 
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:148)
        at 
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:124)
        at 
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:107)
        at 
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:63)
        at 
org.apache.jsp.WEB_002dINF.flows.locale_002dselector.selectLocale_jsp._jspService(selectLocale_jsp.java:72)

...

Thanks!
Gary

On May 6, 2010, at 12:00 PM, Gary Weaver wrote:

> Oops! In my original post, I meant:
> ant deploy-ear
> 
> instead of:
> ant deployPortletApp
> 
> and I used a deprecated param in catalina.sh. I think it should be:
> JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=256m 
> -XX:+CMSClassUnloadingEnabled -XX:+CMSClassUnloadingEnabled"
> 
> and the trunk build is failing for me when I do ant deploy-ear. Looks like a 
> dependency on mvn having been called to build something that wasn't built?
> 
> $ ant deploy-ear
> Buildfile: build.xml
> 
> checkForTomcat:
> 
> deploy-ear:
> 
> install-parent-pom:
> [artifact:install] [INFO] Installing /local/path/to/tmp/trunk/pom.xml to 
> /Users/garyweaver/.m2/repository/org/jasig/portal/uportal-parent/3.3.0-SNAPSHOT/uportal-parent-3.3.0-SNAPSHOT.pom
>    [touch] Creating 
> /var/folders/8G/8G4E2FwYHTC7spiP4CaXwE+DIqw/-Tmp-/jasig/uportal-parent.pom-1125637872-marker
> [artifact:dependencies] Downloading: 
> commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.pom from 
> sonatype-nexus-releases
> [artifact:dependencies] Downloading: 
> commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.pom from 
> maven2-repository.dev.java.net
> [artifact:dependencies] Downloading: 
> commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.pom from jasig-3rd-party
> [artifact:dependencies] Downloading: 
> commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.pom from jasig-m2
> [artifact:dependencies] Downloading: 
> commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.pom from central
> [artifact:dependencies] Downloading: junit/junit/4.8.1/junit-4.8.1.pom from 
> sonatype-nexus-releases
> [artifact:dependencies] Downloading: 
> commons-lang/commons-lang/2.5/commons-lang-2.5.pom from 
> sonatype-nexus-releases
> [artifact:dependencies] Downloading: 
> commons-lang/commons-lang/2.5/commons-lang-2.5.pom from 
> maven2-repository.dev.java.net
> [artifact:dependencies] Downloading: 
> commons-lang/commons-lang/2.5/commons-lang-2.5.pom from jasig-3rd-party
> [artifact:dependencies] Downloading: 
> commons-lang/commons-lang/2.5/commons-lang-2.5.pom from jasig-m2
> [artifact:dependencies] Downloading: 
> commons-lang/commons-lang/2.5/commons-lang-2.5.pom from central
> [artifact:dependencies] Downloading: 
> net/sf/ehcache/ehcache-core/1.7.2/ehcache-core-1.7.2.pom from central
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.pom from sonatype-nexus-releases
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.pom from 
> maven2-repository.dev.java.net
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.pom from jasig-3rd-party
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.pom from jasig-m2
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.pom from central
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-parent/1.5.11/slf4j-parent-1.5.11.pom from 
> sonatype-nexus-releases
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-parent/1.5.11/slf4j-parent-1.5.11.pom from 
> maven2-repository.dev.java.net
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-parent/1.5.11/slf4j-parent-1.5.11.pom from jasig-3rd-party
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-parent/1.5.11/slf4j-parent-1.5.11.pom from jasig-m2
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-parent/1.5.11/slf4j-parent-1.5.11.pom from central
> [artifact:dependencies] Downloading: 
> org/jasig/resourceserver/resource-server-utils/1.0.9/resource-server-utils-1.0.9.pom
>  from central
> [artifact:dependencies] Downloading: 
> org/jasig/resourceserver/resource-server-parent/1.0.9/resource-server-parent-1.0.9.pom
>  from central
> [artifact:dependencies] Downloading: 
> org/jasig/parent/jasig-parent/17/jasig-parent-17.pom from 
> sonatype-nexus-releases
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-jcl/1.5.11/slf4j-jcl-1.5.11.pom from central
> [artifact:dependencies] Downloading: 
> commons-dbcp/commons-dbcp/1.4/commons-dbcp-1.4.jar from central
> [artifact:dependencies] Downloading: junit/junit/4.8.1/junit-4.8.1.jar from 
> central
> [artifact:dependencies] Downloading: 
> commons-lang/commons-lang/2.5/commons-lang-2.5.jar from central
> [artifact:dependencies] Downloading: 
> net/sf/ehcache/ehcache-core/1.7.2/ehcache-core-1.7.2.jar from central
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar from sonatype-nexus-releases
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar from 
> maven2-repository.dev.java.net
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar from jasig-3rd-party
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar from jasig-m2
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-api/1.5.11/slf4j-api-1.5.11.jar from central
> [artifact:dependencies] Downloading: 
> org/jasig/resourceserver/resource-server-utils/1.0.9/resource-server-utils-1.0.9.jar
>  from central
> [artifact:dependencies] Downloading: 
> org/slf4j/slf4j-jcl/1.5.11/slf4j-jcl-1.5.11.jar from central
>     [echo] Artifact 
> '/local/path/to/tmp/trunk/uportal-impl/target/uportal-impl-3.3.0-SNAPSHOT.jar'
>  is not available or out-of-date, calling 'mvn install'
> 
> mvn:
> 
> BUILD FAILED
> /local/path/to/tmp/trunk/build.xml:369: The following error occurred while 
> executing this line:
> /local/path/to/tmp/trunk/build.xml:1016: The following error occurred while 
> executing this line:
> /local/path/to/tmp/trunk/build.xml:937: The following error occurred while 
> executing this line:
> /local/path/to/tmp/trunk/build.xml:902: The following error occurred while 
> executing this line:
> /local/path/to/tmp/trunk/build.xml:905: The following error occurred while 
> executing this line:
> /local/path/to/tmp/trunk/build.xml:869: The following error occurred while 
> executing this line:
> /local/path/to/tmp/trunk/build.xml:1057: /usr/java/maven/boot not found.
> 
> Total time: 24 seconds
> 
> 
> On May 6, 2010, at 11:16 AM, Gary Weaver wrote:
> 
>> Eric,
>> 
>> Thanks! A few questions:
>> 
>> * Is there any advantage of working with trunk currently vs. the 3.2.1 
>> release for those who would really like to be prepared for/use uP 3.3 (well, 
>> specifically JSR-286/Pluto 2)?
>> 
>> * Should trunk be working via same method as used below for setup and/or is 
>> there an easier/preferred way to set it up?
>> 
>> * Could you provide a SWAG (like <= few days, <= few weeks, <= month, <= few 
>> months, <= several months, etc. - no one would hold you to the guess, but 
>> just to help with our planning) for when the working-pluto-2.0 branch might 
>> be stable enough to be merged back into trunk?
>> 
>> Also, please let me know if I can help work on anything here or there while 
>> I have a chance (as non-committer, just providing patches) that would help 
>> get uP 3.3 out more quickly. No job is too small or tedious if it needs to 
>> be done, although I can't guarantee how much time I would have to work on 
>> tasks.
>> 
>> Thanks!
>> Gary
>> 
>> On May 5, 2010, at 6:31 PM, Eric Dalquist wrote:
>> 
>>> Nope it is not working. Wait for pluto 2 to be merged back into trunk.
>>> 
>>> On 5/5/10 4:09 PM, Gary Weaver wrote:
>>>> Know you guys are busy, but was hoping to try to start building against 
>>>> the pluto 2 dev version of uPortal.
>>>> 
>>>> At first I looked at trunk, and after a while I noticed it was still using 
>>>> Pluto 1.1.7.
>>>> 
>>>> So then I found 
>>>> https://www.ja-sig.org/svn/uPortal/branches/working-pluto-2.0 and figured 
>>>> out that I could do the following to setup a build environment:
>>>> 
>>>> * Be sure JAVA_HOME set to Java 1.6 for each terminal window opened. (I 
>>>> set TOMCAT_HOME also)
>>>> * Setup a clean Tomcat 6.
>>>> * (Read http://www.ja-sig.org/wiki/display/UPM31/01+Tomcat )
>>>> ** Set following to conf/catalina.properties
>>>> shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
>>>> 
>>>> ** Add emptySessionPath="true" to relevant connectors in conf/server.xml 
>>>> (like connector on port 8080)
>>>> 
>>>> * Create (tomcat6)/shared/lib and (tomcat6)/shared/classes directories
>>>> * Alter (tomcat6)/bin/catalina.sh (or .bat but this is for .sh) to up 
>>>> memory:
>>>> JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=256m 
>>>> -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"
>>>> Do that outside of any conditionals/if's for example:
>>>> 
>>>> ...
>>>> if [ -z "$LOGGING_MANAGER" ]; then
>>>> JAVA_OPTS="$JAVA_OPTS 
>>>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
>>>> else
>>>> JAVA_OPTS="$JAVA_OPTS $LOGGING_MANAGER"
>>>> fi
>>>> 
>>>> JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=256m 
>>>> -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"
>>>> ...
>>>> 
>>>> * Get uPortal:
>>>> 
>>>> svn co https://www.ja-sig.org/svn/uPortal/branches/working-pluto-2.0/
>>>> cd working-pluto-2.0
>>>> 
>>>> * Copy build.properties.sample to build.properties and fill in everything. 
>>>> Even though maven.home commented out, I found it had to be set even if 
>>>> maven2/bin (mvn) was on path.
>>>> * Build/copy wars and jars:
>>>> ant deployPortletApp
>>>> 
>>>> * Start HSQL:
>>>> ant hsql
>>>> 
>>>> * In new terminal window...
>>>> * Set JAVA_HOME (and TOMCAT_HOME).
>>>> * Populate the DB (I couldn't run the init-db target it said to. instead 
>>>> of bothering to look into I ran the other one):
>>>> ant initportal
>>>> 
>>>> * Start tomcat.
>>>> 
>>>> In catalina.log there are tons of errors like:
>>>> 
>>>> Exception in thread "Timer-(some number)" java.lang.NoClassDefFoundError: 
>>>> org/apache/pluto/driver/container/ApplicationIdResolver
>>>> 
>>>> Basically it just looks as if it isn't integrated yet, so I assume it is 
>>>> in process of integration.
>>>> 
>>>> Not asking for an early release, but is there a good release version of 
>>>> that branch that you'd recommend I try that might be stable enough to 
>>>> build against that would provide enough value to merit not just using 
>>>> 3.2.1 instead?
>>>> 
>>>> Thanks!
>>>> Gary
>>>> 
>>> 
>> 
>> 
>> -- 
>> You are currently subscribed to [email protected] as: 
>> [email protected]
>> To unsubscribe, change settings or access archives, see 
>> http://www.ja-sig.org/wiki/display/JSG/uportal-dev
>> 
> 


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/uportal-dev

Reply via email to