MB2A opened a new issue, #9243:
URL: https://github.com/apache/netbeans/issues/9243

   ### Apache NetBeans version
   
   Apache NetBeans 29
   
   ### What happened
   
   creating new webapp the web.xml file has a format error in <session-timeout> 
resulting in 
   
   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
   
   this is because of:
   .....
    </servlet-mapping>
       <session-config>
           <session-timeout>
               30
           </session-timeout>
       </session-config>
       <welcome-file-list>
           <welcome-file>index.xhtml</welcome-file>
           "
   
   ...  
   
   ### Language / Project Type / NetBeans Component
   
   java maven webapp
   
   ### How to reproduce
   
   just select java maven web app and run.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   debian 13
   
   ### JDK
   
   na
   
   ### Apache NetBeans packaging
   
   Community provided installer
   
   ### Anything else
   
   making it to read:
   
    </servlet-mapping>
       <session-config>
           <session-timeout>30</session-timeout>
       </session-config>
       <welcome-file-list>
           <welcome-file>index.xhtml</welcome-file>
   
   makes it work.
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to