geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " (JIRA)" <>
Subject [jira] Updated: (GERONIMO-5511) context-priority-classloader is not allowed in geronimo-web.xml for backwards compatibility
Date Wed, 25 Aug 2010 14:46:16 GMT

] updated GERONIMO-5511:

    Attachment: G5511.patch

In geronimo 1.1, context-priority-classloader, configId, parentId are supported in geronimo-web
schema, can be found in doc
After that , context-priority-classloader, configId, parentId are not supported, refer to
: In previous 2.*
daytrader sample, web-app is defined in its deployment-plan as below:
        <web-app xmlns="">

So server just parses this web-app fragment in top-level deployment, not deeply into web-app
of geronimo-web.xml in web.war . That's why daytrader has no error above in geronimo 2.*,

But daytrader web-profile sample newly created has already removed web module from deployment
plan, so tomcatwebmodule goes into web.war , parsing geronimo-web.xml . And this error is
exposed. If deploy daytrader web-profile sample to geronimo 2.*, this error also exists, coz
the three attributes/elements don't exist in 2.* too.

So as david jencks suggested, catch the error as warning. pls review the patch. 
Or update dayrader webprofile sample, this is another fix way.

> context-priority-classloader is not allowed in geronimo-web.xml for backwards compatibility
> -------------------------------------------------------------------------------------------
>                 Key: GERONIMO-5511
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: web
>    Affects Versions: 3.0
>         Environment: Ubuntu 8.04 x86-32
> Sun java 1.6.0_20
>            Reporter: Forrest Xia
>            Assignee:
>            Priority: Minor
>         Attachments: G5511.patch
> If the geronimo-web.xml includes element "<context-priority-classloader>", the
deployment will fail at validating xml schema like this:
> 2010-08-09 13:02:06,051 ERROR [DeploymentPortlet] Deployment failed
> xml problem for web app web.war
> org.apache.geronimo.common.DeploymentException: xml problem for web app web.war
> 	at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(
> 	at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(
> 	at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(
> 	at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(
> 	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(
> 	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(
> 	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(
> 	at org.apache.geronimo.deployment.Deployer.deploy(
> 	at org.apache.geronimo.deployment.Deployer.deploy(
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> 	at java.lang.reflect.Method.invoke(
> 	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
> 	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(
> 	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(
> 	at
> 	at
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.3.2.1: Attribute not allowed (no wildcards allowed): configId
> error: cvc-complex-type.3.2.1: Attribute not allowed (no wildcards allowed): parentId
> error: cvc-complex-type.2.4a: Expected elements 'environment@
context-root@ work-dir@
clustering@ web-container@
host@ cross-context@
disable-cookies@ valve-chain@
listener-chain@ tomcat-realm@
manager@ cluster@
abstract-naming-entry@ env-entry@
ejb-ref@ ejb-local-ref@
service-ref@ resource-ref@
resource-env-ref@ message-destination@
security-realm-name@ service@'
instead of 'context-priority-classloader@'
> Descriptor:
> <xml-fragment configId="TradeWeb" parentId="Trade" xmlns:naming=""
>   <tom:context-priority-classloader>false</tom:context-priority-classloader>
>   <naming:resource-ref>
>     <naming:ref-name>jdbc/TradeDataSource</naming:ref-name>
>     <naming:resource-link>TradeDataSource</naming:resource-link>
>   </naming:resource-ref>
> </xml-fragment>
> 	at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(
> 	at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(
> 	... 19 more
> But Geronimo 2.x could deploy the app with the element.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message