[jboss-jira] [JBoss JIRA] Resolved: (JBAS-7451) Empty `loadOnStartup' cause exception and breaks whole ear load
Remy Maucherat (JIRA)
jira-events at lists.jboss.org
Fri Nov 20 22:43:29 EST 2009
[ https://jira.jboss.org/jira/browse/JBAS-7451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remy Maucherat resolved JBAS-7451.
----------------------------------
Resolution: Rejected
Although this might have been possible in old versions of the specifications (<= Servlet 2.3), this is impossible stating from J2EE 1.4, as the schema sets load-on-startup as a xsdIntegerType, which must be a valid integer (an empty string won't do).
> Empty `loadOnStartup' cause exception and breaks whole ear load
> ----------------------------------------------------------------
>
> Key: JBAS-7451
> URL: https://jira.jboss.org/jira/browse/JBAS-7451
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (Tomcat) service
> Affects Versions: JBossAS-5.1.0.GA
> Environment: windows xp 32bit
> sun-jdk 1.6.18
> Reporter: Sergey Chernov
> Assignee: Remy Maucherat
>
> Problem occurred while loading `war`.
> If web.xml contains on of servlet section with `<load-on-startup></load-on-startup>` exception `IllegalArgumentException` is thrown.
> Seems it is caused because of `load-on-startup` expects integer value, but got empty string.
> Proposed solution: treat this empty tag as default value (zero). In case of invalid parameter - does the same, but warn user.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list