[ 
http://issues.apache.org/jira/browse/GERONIMO-654?page=comments#action_12323207 
] 

anita kulshreshtha commented on GERONIMO-654:
---------------------------------------------

servlet 2.4 spec states : 
"Web containers must remove all leading and trailing whitespace, which is 
defined
as "S(white space)" in XML 1.0 (http://www.w3.org/TR/2000/WD-xml-
2e-20000814), for the element content of the text nodes of a deployment 
descriptor."
     Tomcat removes white spaces (blanks, tabs, and blank lines i.e. CR, LF), 
hence their interpretation is correct. 
      this problem has been fixed in later versions of Geronimo. The web.xml 
does not need to be changed.

> Support for env-entry in web.xml for Tomcat
> -------------------------------------------
>
>          Key: GERONIMO-654
>          URL: http://issues.apache.org/jira/browse/GERONIMO-654
>      Project: Geronimo
>         Type: Bug
>   Components: Tomcat
>     Versions: 1.0-M4
>  Environment: All environments
>     Reporter: anita kulshreshtha
>     Assignee: Jeff Genender
>     Priority: Minor
>  Attachments: web.zip
>
> If web.xml has an env-entry, the deployer gives the following error : 
> ...........
> ...........
> ...........
> 19:34:21,765 DEBUG [Deployer] Deployment failed: plan=null, 
> module=D:\anita\geronimo\incubator-geronimo\modules\assembly\target\geronimo-1.0-SNAPSHOT\..\..\geronimo-tomcatdemo3-1.0-SNAPSHOT.war
> org.apache.geronimo.common.DeploymentException: <url-pattern>
>             /CompressionTest
>         must not contain LF(#xA)
>       at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.checkString(TomcatModuleBuilder.java:778)
>       at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.checkURLPattern(TomcatModuleBuilder.java:760)
>       at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.check(TomcatModuleBuilder.java:744)
>       at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:155)
>       at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.createModule(TomcatModuleBuilder.java:119)
>       at 
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.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:118)
>       at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:710)
>       at 
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>       at 
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
>       at 
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94)
>       at 
> org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$a2f97cf7.createModule(<generated>)
>       at 
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:122)
>       at 
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.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:118)
>       at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:710)
>       at 
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>       at 
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
>       at 
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:94)
>       at 
> org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$b1c33169.getDeploymentPlan(<generated>)
>       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:123)
>       at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:80)
>       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:118)
>       at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:745)
>       at 
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:177)
>       at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:124)
>       at 
> org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.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:118)
>       at 
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:745)
>       at 
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:177)
>       at 
> org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117)
>       at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown 
> Source)
>       at javax.management.remote.rmi.RMIConnectionImpl.access$100(Unknown 
> Source)
>       at 
> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown 
> Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown 
> Source)
>       at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>       at java.lang.reflect.Method.invoke(Unknown Source)
>       at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
>       at sun.rmi.transport.Transport$1.run(Unknown Source)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at sun.rmi.transport.Transport.serviceCall(Unknown Source)
>       at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
>       at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown 
> Source)
>       at java.lang.Thread.run(Unknown Source)
> 19:34:59,843 DEBUG [ManagerBase] Start expire sessions StandardManager at 
> 1117150499843 sessioncount 0
> 19:34:59,843 DEBUG [ManagerBase] End expire sessions StandardManager 
> processingTime 0 expired sessions: 0
>         This web.xml is from jsp-examples of Tomcat.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to