Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: got the server to start.... but not run usefully.

...

  1. The archetypes are not included in geronimo 2.1 but the snapshots should be readily available
  2. Some of this would not be necessary given a project built with maven in the first place
  3. As of writing, the server starts (given enough memory) but the liferay portal doesn't startshow up. Hopefully we'll figure out why soon.

...

Code Block
    <dependencies>
        <!-- if you are deploying a jee application, use scope provided -->
        <!-- other dependencies will normally end up as dependencies in the plan and geronimo-plugin.xml -->
        <!-- include dependencies on all deployer modules needed, with scope provided -->

        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>liferay-portal-lesslibs</artifactId>
            <version>${liferayVersion}-SNAPSHOT</version>
            <type>war</type>
            <scope>provided</scope>
	</dependency>
        <dependency>
            <groupId>org.apache.geronimo.configs</groupId>
            <artifactId>javamail</artifactId>
            <type>car</type>
            <version>${geronimoVersion}</version>
        </dependency>
<!-- replaces activemq jar in lib dir -->
        <dependency>
            <groupId>org.apache.geronimo.configs<activemq</groupId>
            <artifactId>activemq-ra<core</artifactId>
            <type>car<<type>jar</type>
            <version>${geronimoVersion}<<version>4.1.1</version>
        </dependency>
<!-- activemq car does not work because liferay wants to use spring to configure activemq.  If we can eliminate the spring files in portal-impl.jar perhaps this would work.
        <dependency>
            <groupId>org.apache.geronimo.plugins<configs</groupId>
            <artifactId>liferay<artifactId>activemq-derby<ra</artifactId>
            <type>car</type>
            <version>${geronimoVersion}</version>
        </dependency>
-->
        <dependency>
            <groupId>org.apache.geronimo.plugins</groupId>
            <artifactId>liferay-derby</artifactId>
            <type>car</type>
            <version>1.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>portlet-api</groupId>
            <artifactId>portlet-api</artifactId>
            <version>1.0</version>
	</dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>portal-kernel</artifactId>
            <version>${liferayVersion}</version>
	</dependency>
        <dependency>
            <groupId>com.liferay</groupId>
            <artifactId>portal-service</artifactId>
            <version>${liferayVersion}</version>
	</dependency>

        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xercesImpl</artifactId>
            <version>2.8.1</version>
	</dependency>

       <dependency>
            <groupId>saxpath</groupId>
            <artifactId>saxpath</artifactId>
            <version>1.0-FCS</version>
        </dependency>

        <dependency>
            <groupId>commons-digester</groupId>
            <artifactId>commons-digester</artifactId>
            <version>1.8</version>
        </dependency>

        <dependency>
            <groupId>org.apache.geronimo.framework</groupId>
            <artifactId>geronimo-gbean-deployer</artifactId>
            <type>car</type>
            <version>${geronimoVersion}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.configs</groupId>
            <artifactId>jetty6-deployer</artifactId>
            <type>car</type>
            <version>${geronimoVersion}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.configs</groupId>
            <artifactId>jasper-deployer</artifactId>
            <type>car</type>
            <version>${geronimoVersion}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.geronimo.configs</groupId>
            <artifactId>persistence-jpa10-deployer</artifactId>
            <type>car</type>
            <version>${geronimoVersion}</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>

...

Code Block
cd geronimo-jetty-liferay/target
tar xzf geronimo-jetty-liferay-1.0-SNAPSHOT-bin.tar.gz
cd geronimo-jetty-liferay-1.0-SNAPSHOT
#edit etc/rc.d/start-server,default.groovy
#insert line 
#command.javaFlags << '-XX:MaxPermSize=1024m'
#and update -Xmx1024m
./bin/gsh geronimo/start-server

As of writing this results in an OOM permGen the server will start but accessing http://localhost:8080/liferayImage Added redirects to http://localhost:8080/cImage Added and gives a 404 error.