You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Brian Atkinson (JIRA)" <ji...@apache.org> on 2010/11/03 17:37:27 UTC
[jira] Created: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
----------------------------------------------------------------------------
Key: GERONIMO-5672
URL: https://issues.apache.org/jira/browse/GERONIMO-5672
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: deployment
Affects Versions: 2.2, 2.1.6
Reporter: Brian Atkinson
If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
{noformat}
Deployer operation failed: xml problem for web app .
org.apache.geronimo.common.DeploymentException: xml problem for web app .
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
web-container@http://geronimo.apache.org/xml/ns/naming-1.2
host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
service@http://geronimo.apache.org/xml/ns/deployment-1.2
persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
Descriptor:
<xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
<environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
<moduleId>
<groupId>test</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<type>war</type>
</moduleId>
</environment>
<tom:context-root>/test</tom:context-root>
<tom:env-entry>
<tom:env-entry-name>set-me</tom:env-entry-name>
<tom:env-entry-value>a value</tom:env-entry-value>
</tom:env-entry>
</xml-fragment>
{noformat}
Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
{noformat}
GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
{noformat}
Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "viola.lu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928124#action_12928124 ]
viola.lu commented on GERONIMO-5672:
------------------------------------
Appreciate if you can provide your test files, thanks in advance!
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928547#action_12928547 ]
Rex Wang commented on GERONIMO-5672:
------------------------------------
commit to br21 @rev1031487
commit to br22 @rev1031489
commit to trunk30 @rev1031490
thanks Brian and Viola!
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
> Fix For: 2.1.7, 2.2.1, 3.0
>
> Attachments: G5672.patch, geronimo-5672.tar.bz2
>
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "viola.lu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
viola.lu updated GERONIMO-5672:
-------------------------------
Attachment: G5672.patch
Hi Biran: i got the problem you described. If env-entry is defined in deployment plan as below:
<naming:env-entry>
<naming:env-entry-name>setenv</naming:env-entry-name>
<naming:env-entry-value>hello-test-world</naming:env-entry-value>
</naming:env-entry>
Then deploy it, SchemaConversionUtils class will convert namespace from naming to tomcat as below coz of env-entry doesn't exist in GERONIMO_SCHEMA_CONVERSIONS hashmap.
<tom:env-entry>
<tom:env-entry-name>set-me</tom:env-entry-name>
<tom:env-entry-value>a value</tom:env-entry-value>
</tom:env-entry>
After add env-entry to GERONIMO_SCHEMA_CONVERSIONS, will make this problem disappear.
Thanks Brian.
Pls review the patch. thanks in advance!
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
> Attachments: G5672.patch
>
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "viola.lu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928097#action_12928097 ]
viola.lu commented on GERONIMO-5672:
------------------------------------
Currently there is already a open jira for env-entry overriding
https://issues.apache.org/jira/browse/GERONIMO-3954
still on-going.
>From code change, tomcat namespace doesn't support env-entry attribute, should use it under naming namespace.
Can you close this one, thanks in advance!
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "Brian Atkinson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Atkinson updated GERONIMO-5672:
-------------------------------------
Attachment: geronimo-5672.tar.bz2
Included is a small maven war project that demonstrates the problem. Once fixed, deploys and starts fine.
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
> Fix For: 2.1.7, 2.2.1
>
> Attachments: G5672.patch, geronimo-5672.tar.bz2
>
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rex Wang resolved GERONIMO-5672.
--------------------------------
Resolution: Fixed
Fix Version/s: 3.0
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
> Fix For: 2.1.7, 2.2.1, 3.0
>
> Attachments: G5672.patch, geronimo-5672.tar.bz2
>
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "Brian Atkinson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928104#action_12928104 ]
Brian Atkinson commented on GERONIMO-5672:
------------------------------------------
I saw that issue. I took the first comment to say that the problem had been fixed, but that it is being left open because a better solution needs to be found. The The env-entry overriding works if you add the line I described above. It works for tomcat and jetty with no further changes. The line prevents the generic to specific xml transformer (/plugins/j2ee/geronimo-web-2.5-builder/src/main/java/org/apache/geronimo/web/deployment/GenericToSpecificPlanConverter.java) from moving the env-entry element and the sub elements over to the tomcat or jetty namespace.
I guess, with the last update to 3954 being over 18 months ago it felt a little dead in the water. I was hoping to get something that was almost working to actually work. If changes need to be made from there, to tackle them as they come rather then wait on something that seemed to be in a forever holding pattern.
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "viola.lu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
viola.lu reassigned GERONIMO-5672:
----------------------------------
Assignee: viola.lu
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rex Wang closed GERONIMO-5672.
------------------------------
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
> Fix For: 2.1.7, 2.2.1, 3.0
>
> Attachments: G5672.patch, geronimo-5672.tar.bz2
>
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "Brian Atkinson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928235#action_12928235 ]
Brian Atkinson commented on GERONIMO-5672:
------------------------------------------
Patch looks like what I have done. Let me know when the patch shows up in a nightly and I'll test it out.
Thanks viola.lu
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
> Fix For: 2.1.7, 2.2.1
>
> Attachments: G5672.patch, geronimo-5672.tar.bz2
>
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (GERONIMO-5672) Overriding an env-entry in
geronimo-web.xml fails with a DeploymentException
Posted by "Rex Wang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rex Wang updated GERONIMO-5672:
-------------------------------
Fix Version/s: 2.2.1
2.1.7
> Overriding an env-entry in geronimo-web.xml fails with a DeploymentException
> ----------------------------------------------------------------------------
>
> Key: GERONIMO-5672
> URL: https://issues.apache.org/jira/browse/GERONIMO-5672
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: deployment
> Affects Versions: 2.1.6, 2.2
> Reporter: Brian Atkinson
> Assignee: viola.lu
> Fix For: 2.1.7, 2.2.1
>
> Attachments: G5672.patch
>
>
> If a war declares a env-entry in its web.xml without declaring a value, it is expected that the value is provided at deployment time. When the env-entry is added to the geronimo-web.xml, the deployment fails with the following (slightly reformatted for ease of reading):
> {noformat}
> Deployer operation failed: xml problem for web app .
> org.apache.geronimo.common.DeploymentException: xml problem for web app .
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.getTomcatWebApp(TomcatModuleBuilder.java:318)
> at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:207)
> at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.createModule(AbstractWebModuleBuilder.java:179)
> at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.createModule(SwitchingModuleBuilder.java:94)
> at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:307)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:228)
> at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:135)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ...
> Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:
> error: cvc-complex-type.2.4a: Expected elements 'work-dir@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> clustering@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> web-container@http://geronimo.apache.org/xml/ns/naming-1.2
> host@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cross-context@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> disable-cookies@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> valve-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> listener-chain@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> tomcat-realm@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> manager@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> cluster@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> env-entry@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> ejb-local-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> service-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> resource-env-ref@http://geronimo.apache.org/xml/ns/naming-1.2
> message-destination@http://geronimo.apache.org/xml/ns/naming-1.2
> security-realm-name@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1
> service@http://geronimo.apache.org/xml/ns/deployment-1.2
> persistence@http://java.sun.com/xml/ns/persistence' instead of 'env-entry@http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1' here
> Descriptor:
> <xml-fragment xmlns:n="http://geronimo.apache.org/xml/ns/naming-1.2"
> xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
> <moduleId>
> <groupId>test</groupId>
> <artifactId>test</artifactId>
> <version>1.0</version>
> <type>war</type>
> </moduleId>
> </environment>
> <tom:context-root>/test</tom:context-root>
> <tom:env-entry>
> <tom:env-entry-name>set-me</tom:env-entry-name>
> <tom:env-entry-value>a value</tom:env-entry-value>
> </tom:env-entry>
> </xml-fragment>
> {noformat}
> Notice that the env-entry has been changed to the "http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1" namespace rather then remaining in the "http://geronimo.apache.org/xml/ns/naming-1.2" where it is acceptable. This happens for both the tomcat and jetty versions of Geronimo.
> The problem can be tracked down to a line missing from the static block in /plugins/j2ee/geronimo-j2ee-schema/src/main/java/org/apache/geronimo/schema/SchemaConversionUtils.java:
> {noformat}
> GERONIMO_SCHEMA_CONVERSIONS.put("env-entry", new NamespaceElementConverter(GERONIMO_NAMING_NAMESPACE));
> {noformat}
> Adding this line allows the deployment of the war with the env-entry correctly supplied.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.