Martin created TOMEE-4589:
-----------------------------

             Summary: openejb reports an error in web.xml which is wrong
                 Key: TOMEE-4589
                 URL: https://issues.apache.org/jira/browse/TOMEE-4589
             Project: TomEE
          Issue Type: Bug
          Components: TomEE Core Server
    Affects Versions: 10.1.4
            Reporter: Martin


web.xml has a session-timeout attribute with whitespace which creates an error.

Format is however to namespace specs.

Please see explanation on netbeans issues by  Matthias Bläsing 

[link 
https://github.com/apache/netbeans/issues/9243|https://github.com/apache/netbeans/issues/9243]

the error reported by openejb is :
{code:java}
// code placeholder
Caused by: org.apache.openejb.OpenEJBException: Encountered unknown error 
parsing the web.xml file: 
file:/home/martin/NetBeansProjects/mavenproject2/target/mavenproject2-master/WEB-INF/web.xml:
 For input string: "
            30
        "
        at 
org.apache.openejb.config.ReadDescriptors.readWebApp(ReadDescriptors.java:848)
        at 
org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:956)
        at 
org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:818)
        at 
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:230)
        at 
org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2381)
        ... 51 more
    Caused by: java.lang.NumberFormatException: For input string: "
            30 {code}
 

web.xml  contains 
{code:java}
// code placeholder
</servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>index.xhtml</welcome-file> {code}
kr martin

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to