geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet" <gno...@gmail.com>
Subject Car plugin
Date Tue, 22 Aug 2006 12:55:08 GMT
I recently experienced some problems [1] when building Geronimo 1.1
plugins using
the car-maven-plugin.
It seems this is related to the following change:
http://svn.apache.org/viewvc/geronimo/trunk/m2-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/plugin/car/PlanProcessorMojo.java?r1=431112&r2=432510&pathrev=433457&diff_format=h

I hope one of the goal for this plugin is also to be able to handle
Geronimo 1.1 plugins,
else we will need to copy it somewhere else.  I'll take a look at this problem.

[1] Maven error:

Caused by: org.apache.geronimo.common.DeploymentException: Invalid
deployment descriptor:
[c:\java\servicemix\geronimo\servicemix\target\plan\plan.xml:18: error
: cvc-complex-type.2.4a: Expected element
'environment@http://geronimo.apache.org/xml/ns/deployment-1.1' instead
of 'environment@http://geronimo.apache.org/xml/
ns/deployment-1.2' here in element
module@http://geronimo.apache.org/xml/ns/deployment-1.1,
c:\java\servicemix\geronimo\servicemix\target\plan\plan.xml:184: err
or: cvc-complex-type.2.4a: Expected element
'environment@http://geronimo.apache.org/xml/ns/deployment-1.1' instead
of 'gbean@http://geronimo.apache.org/xml/ns/d
eployment-1.1' here in element
module@http://geronimo.apache.org/xml/ns/deployment-1.1,
c:\java\servicemix\geronimo\servicemix\target\plan\plan.xml:189:
error:
cvc-complex-type.2.4a: Expected element
'environment@http://geronimo.apache.org/xml/ns/deployment-1.1' instead
of 'gbean@http://geronimo.apache.org/xml/ns/deplo
yment-1.1' here in element
module@http://geronimo.apache.org/xml/ns/deployment-1.1,
c:\java\servicemix\geronimo\servicemix\target\plan\plan.xml:203:
error: cvc-
complex-type.2.4a: Expected element
'environment@http://geronimo.apache.org/xml/ns/deployment-1.1' instead
of 'gbean@http://geronimo.apache.org/xml/ns/deploymen
t-1.1' here in element
module@http://geronimo.apache.org/xml/ns/deployment-1.1,
c:\java\servicemix\geronimo\servicemix\target\plan\plan.xml:210:
error: cvc-comp
lex-type.2.4c: Expected element
'environment@http://geronimo.apache.org/xml/ns/deployment-1.1' before
the end of the content in element module@http://geronimo.a
pache.org/xml/ns/deployment-1.1]
Descriptor: <!--Licensed to the Apache Software Foundation (ASF) under
one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.-->
<!--Configuration for ServiceMix container.-->
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
  <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
    <moduleId>
      <groupId>org.apache.servicemix.geronimo</groupId>
      <artifactId>servicemix</artifactId>
      <version>3.0-incubating-SNAPSHOT</version>
      <type>car</type>
    </moduleId>
    <dependencies>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-transaction</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>howl</groupId>
        <artifactId>howl-logger</artifactId>
        <version>0.1.11</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-management</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-system</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-jsp_2.0_spec</artifactId>
        <version>1.0.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-client</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>asm</groupId>
        <artifactId>asm</artifactId>
        <version>1.4.3</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-connector-builder</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-naming-builder</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-connector</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-security</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>activeio</groupId>
        <artifactId>activeio</artifactId>
        <version>2.0-r118</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-web-builder</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-util</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-webservices</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-core</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-kernel</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>org.apache.geronimo.specs</groupId>
        <artifactId>geronimo-jaxr_1.0_spec</artifactId>
        <version>1.0.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-security-builder</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-j2ee-builder</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-naming</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
      <dependency>
        <groupId>geronimo</groupId>
        <artifactId>geronimo-j2ee-schema</artifactId>
        <version>1.1</version>
        <type>jar</type>
        <import>classes</import>
      </dependency>
    </dependencies>
    <hidden-classes/>
    <non-overridable-classes/>
  </dep:environment>
  <gbean name="ServiceMixThreadPool"
class="org.apache.geronimo.pool.ThreadPool">
    <attribute name="keepAliveTime">5000</attribute>
    <attribute name="poolSize">30</attribute>
    <attribute name="poolName">ServiceMixThreadPool</attribute>
  </gbean>
  <gbean name="ServiceMixWorkManager"
class="org.apache.geronimo.connector.work.GeronimoWorkManagerGBean">
    <reference name="SyncPool">
      <name>ConnectorThreadPool</name>
    </reference>
    <reference name="StartPool">
      <name>ConnectorThreadPool</name>
    </reference>
    <reference name="ScheduledPool">
      <name>ConnectorThreadPool</name>
    </reference>
    <reference name="TransactionContextManager">
      <name>TransactionContextManager</name>
    </reference>
  </gbean>
  <gbean name="ServiceMixJBIContainer"
class="org.apache.servicemix.geronimo.ServiceMixGBean">
    <attribute name="name">servicemix</attribute>
    <attribute name="directory">var/servicemix</attribute>
    <reference name="transactionContextManager">
      <name>TransactionContextManager</name>
    </reference>
    <reference name="workManager">
      <name>ServiceMixWorkManager</name>
    </reference>
  </gbean>
</module>
        at org.apache.geronimo.deployment.service.ServiceConfigBuilder.getDeploymentPlan(ServiceConfigBuilder.java:170)
        at org.apache.geronimo.deployment.service.ServiceConfigBuilder$$FastClassByCGLIB$$9f173be6.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
        at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$dcdefd53.getDeploymentPlan(<generated>)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:232)
        at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:852)
        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
        at org.apache.geronimo.plugin.car.PackageMojo.invokeDeployer(PackageMojo.java:567)
        at org.apache.geronimo.plugin.car.PackageMojo.buildPackage(PackageMojo.java:406)
        at org.apache.geronimo.plugin.car.PackageMojo.doExecute(PackageMojo.java:242)
        at org.apache.geronimo.plugin.MojoSupport.execute(MojoSupport.java:52)
        ... 18 more

-- 
Cheers,
Guillaume Nodet

Mime
View raw message