geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Foster <jfos...@tmtsaz.com>
Subject Re: Geronimo v2.1 Plan Creator => Deploy Liferay 4.1.1
Date Fri, 29 Feb 2008 21:52:14 GMT

Hi David,

You bet...though it's just a copy-n-paste of what you have in your
documentation.

Contents of liferay-parent/liferay-derby/src/main/plan/plan.xml:
------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
    <resourceadapter>
        <outbound-resourceadapter>
            <connection-definition>
               
<connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
                <connectiondefinition-instance>
                    <name>jdbc/LiferayPool</name>
                    <config-property-setting
name="Password">liferay</config-property-setting>
                    <config-property-setting
name="UserName">liferay</config-property-setting>
                    <config-property-setting
name="DatabaseName">liferay</config-property-setting>
                    <connectionmanager>
                        <local-transaction/>
                        <single-pool>
                            <max-size>10</max-size>
                            <min-size>0</min-size>
                            <match-one/>
                        </single-pool>
                    </connectionmanager>
                </connectiondefinition-instance>
<!-- Leave until we figure out if non-jta datasource is needed -->
<!--
                <connectiondefinition-instance>
                    <name>jdbc/NoTxrollerdb</name>
                    <config-property-setting
name="Password">roller</config-property-setting>
                    <config-property-setting
name="UserName">roller</config-property-setting>
                    <config-property-setting
name="DatabaseName">roller</config-property-setting>
                    <connectionmanager>
                        <no-transaction/>
                        <single-pool>
                            <max-size>10</max-size>
                            <min-size>0</min-size>
                            <match-one/>
                        </single-pool>
                    </connectionmanager>
                </connectiondefinition-instance>
-->
            </connection-definition>
        </outbound-resourceadapter>
    </resourceadapter>

</connector>
------------------------------------------------------------------------------------------------------------------

Jim


djencks wrote:
> 
> Can you post liferay-parent/liferay-derby/src/main/plan/plan.xml?  I  
> think that is what xmlbeans is complaining about.
> 
> thanks
> david jencks
> 
> On Feb 29, 2008, at 1:15 PM, Jim Foster wrote:
> 
>>
>>
>> djencks wrote:
>>>
>>>
>>> So I found the schema and I think you need
>>>
>>>      <pluginRepositories>
>>>
>>>          <pluginRepository>
>>>              <id>apache-snapshots</id>
>>>              <name>Apache Snapshots Repository</name>
>>>              <url>http://people.apache.org/repo/m2-snapshot-
>>> repository</url>
>>>              <layout>default</layout>
>>>              <snapshots>
>>>                  <enabled>true</enabled>
>>>                  <updatePolicy>daily</updatePolicy>
>>>                  <checksumPolicy>ignore</checksumPolicy>
>>>              </snapshots>
>>>              <releases>
>>>                  <enabled>false</enabled>
>>>              </releases>
>>>          </pluginRepository>
>>>
>>>      </pluginRepositories >
>>>
>>>
>>> thanks
>>>
>>> david jencks
>>>
>>>
>>
>>
>> Hi David,
>>
>> The following reports my test results so far.
>>
>> In a word, we seem to be good until actually running the project.  
>> Output to
>> console for this step with -e switch is included, below.
>>
>> For the benefit of other readers of this discussion, the primary  
>> reference
>> doc is:
>>
>>   Constructing a special-purpose server using maven
>>
>> http://cwiki.apache.org/confluence/display/GMOxDOC21/Constructing+a 
>> +special-purpose+server+using+maven
>>
>>
>> What I outline below follows the steps of the primary doc, step-for- 
>> step.
>>
>>   Steps:
>>   ------
>>   [1] Preparation – find the artifacts
>>   [2] Set up a parent maven project
>>   [3] Repackage the liferay war
>>   [4] Build a database plugin
>>   [5] Build the liferay war plugin
>>   [6] Build an assembly
>>   [7] Run the project
>>
>>
>>   Details:
>>   --------
>>   [1] Preparation – find the artifacts
>>   [2] Set up a parent maven project
>>   [3] Repackage the liferay war
>>
>>     Following your instructions in the primary doc were successful, no
>> problems or modifications needed for the steps above.
>>
>>
>>   [4] Build a database plugin
>>
>>     As you suggested in your post yesterday, I modified my  
>> settings.xml to
>> the following so as to access the archetype:
>>
>>       ...
>>       <activeProfiles>
>>         <activeProfile>profile-1</activeProfile>
>>       </activeProfiles>
>>       <profiles>
>>         <profile>
>>           <id>profile-1</id>
>>           <pluginRepositories>
>>             <pluginRepository>
>>               <id>apache-snapshots</id>
>>               <name>Apache Snapshots Repository</name>
>>
>> <url>http://people.apache.org/repo/m2-snapshot-repository</url>
>>               <layout>default</layout>
>>               <snapshots>
>>                 <enabled>true</enabled>
>>                 <updatePolicy>daily</updatePolicy>
>>                 <checksumPolicy>ignore</checksumPolicy>
>>               </snapshots>
>>               <releases>
>>                 <enabled>false</enabled>
>>               </releases>
>>             </pluginRepository>
>>           </pluginRepositories>
>>         </profile>
>>       </profiles>
>>       ...
>>
>>     This proved to be successful.
>>
>>     Once past the schema issue (as you suspected) the rest of your
>> instructions in the primary doc were also successful, meaning
>>
>>       liferay-derby/pom.xml
>>
>>         and
>>
>>       liferay-derby/src/main/plan/plan.xml
>>
>>     were modified just as you have outlined in the primary doc.
>>
>>
>>   [5] Build the liferay war plugin
>>
>>     These:
>>
>>       liferay-jetty/pom.xml
>>
>>         and
>>
>>       liferay-jetty/src/main/plan/plan.xml
>>
>>     were modified just as you have outlined in the primary doc.
>>
>>
>>   [6] Build an assembly
>>
>>     Following your instructions in the primary doc were successful.
>>
>>
>>   [7] Run the project
>>
>> Full output to the console:
>> ---------------------------------------------------------------------- 
>> ---------------------------------------------------------------------- 
>> -----
>> D:\Geronimo\plugins\liferay\liferay-parent>mvn -e clean install
>> + Error stacktraces are turned on.
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [INFO]   liferay-parent
>> [INFO]   Unnamed -
>> org.apache.geronimo.plugins:liferay-derby:car:1.0-SNAPSHOT
>> [INFO]   Unnamed -
>> org.apache.geronimo.plugins:liferay-jetty:car:1.0-SNAPSHOT
>> [INFO]   Unnamed -
>> org.apache.geronimo.plugins:geronimo-jetty-liferay:application- 
>> assembly:1.0-SNAPSHOT
>> [INFO]
>> ---------------------------------------------------------------------- 
>> ------
>> [INFO] Building liferay-parent
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ---------------------------------------------------------------------- 
>> ------
>> [INFO] [clean:clean]
>> [INFO] [site:attach-descriptor]
>> [INFO] [install:install]
>> [INFO] Installing D:\Geronimo\plugins\liferay\liferay-parent 
>> \pom.xml to
>> R:\.m2\org\apache\geronimo\plugins\liferay-parent\1.0-SNAPSHOT 
>> \liferay-parent-1.0-SNAPSHOT.pom
>> [INFO]
>> ---------------------------------------------------------------------- 
>> ------
>> [INFO] Building Unnamed -
>> org.apache.geronimo.plugins:liferay-derby:car:1.0-SNAPSHOT
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ---------------------------------------------------------------------- 
>> ------
>> [INFO] [clean:clean]
>> [INFO] Deleting directory
>> D:\Geronimo\plugins\liferay\liferay-parent\liferay-derby\target
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> Downloading:
>> http://download.java.net/maven/1//woodstox/poms/wstx-asl-3.2.1.pom
>> Downloading:
>> http://people.apache.org/repo/m2-incubating-repository//woodstox/ 
>> wstx-asl/3.2.1/wstx-asl-3.2.1.pom
>> Downloading:
>> http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.1/wstx- 
>> asl-3.2.1.pom
>> Downloading:
>> http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.1/wstx- 
>> asl-3.2.1.pom
>> [INFO] [car:validate-configuration]
>> log4j:WARN No appenders could be found for logger
>> (org.codehaus.mojo.pluginsupport.logging.Logging).
>> log4j:WARN Please initialize the log4j system properly.
>> [INFO] [car:prepare-plan]
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [ERROR] BUILD ERROR
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [INFO] error: Unexpected element: CDATA
>>
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: error:  
>> Unexpected
>> element: CDATA
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
>> (DefaultLifecycleExecutor.java:564)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif 
>> ecycle(DefaultLifecycleExecutor.java:480)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
>> (DefaultLifecycleExecutor.java:459)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand 
>> leFailures(DefaultLifecycleExecutor.java:311)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment 
>> s(DefaultLifecycleExecutor.java:278)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
>> (DefaultLifecycleExecutor.java:143)
>>         at org.apache.maven.DefaultMaven.doExecute 
>> (DefaultMaven.java:334)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 
>> 125)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>>         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:585)
>>         at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>         at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: error:  
>> Unexpected
>> element: CDATA
>>         at
>> org.codehaus.mojo.pluginsupport.MojoSupport.execute 
>> (MojoSupport.java:137)
>>         at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo 
>> (DefaultPluginManager.java:443)
>>         at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
>> (DefaultLifecycleExecutor.java:539)
>>         ... 16 more
>> Caused by: org.apache.xmlbeans.XmlException: error: Unexpected  
>> element:
>> CDATA
>>         at
>> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
>>         at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java: 
>> 706)
>>         at
>> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java: 
>> 690)
>>         at
>> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java: 
>> 677)
>>         at
>> org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse 
>> (SchemaTypeLoaderBase.java:208)
>>         at org.apache.xmlbeans.XmlObject$Factory.parse 
>> (XmlObject.java:580)
>>         at
>> org.apache.geronimo.mavenplugins.car.PlanProcessorMojo.doExecute 
>> (PlanProcessorMojo.java:154)
>>         at
>> org.codehaus.mojo.pluginsupport.MojoSupport.execute 
>> (MojoSupport.java:122)
>>         ... 18 more
>> Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA
>>         at
>> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError 
>> (Piccolo.java:1038)
>>         at
>> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
>>         at
>> org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
>>         ... 25 more
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>> [INFO] Total time: 10 seconds
>> [INFO] Finished at: Fri Feb 29 13:55:14 MST 2008
>> [INFO] Final Memory: 16M/30M
>> [INFO]
>> ---------------------------------------------------------------------- 
>> --
>>
>>
>> Thoughts?
>>
>> Jim
>> -- 
>> View this message in context: http://www.nabble.com/Geronimo-v2.1- 
>> Plan-Creator-%3D%3E-Deploy-Liferay-4.1.1-tp15437773s134p15767482.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Geronimo-v2.1-Plan-Creator-%3D%3E-Deploy-Liferay-4.1.1-tp15437773s134p15768555.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message