[
https://issues.jboss.org/browse/JBMETA-346?page=com.atlassian.jira.plugin...
]
Remy Maucherat commented on JBMETA-346:
---------------------------------------
The patch to ServletMetaData is bad (calling setLoadOnStartup multiple times will only use
the first one, which is of course not what it should do). Please provide a test case.
LoadOnStartup annotation of a servlet is ignored if servlet is
mentioned in the web.xml even without a load-on-startup element
------------------------------------------------------------------------------------------------------------------------------
Key: JBMETA-346
URL:
https://issues.jboss.org/browse/JBMETA-346
Project: JBoss Metadata
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: web
Environment: JBoss 7.1.0.CR1-SNAPSHOT, Win7 64Bit, JDK 1.6.0-29 64Bit
Reporter: Robert Panzer
Assignee: Robert Panzer
I have a servlet that defines a loadOnStartup value using an annotation.
Additionally I have a web.xml that mentions this servlet but does not contain a
load-on-startup element and is not metadata-complete.
Then the annotated value is ignored and the loadOnStartup value falls back to a
"default" of 0 (instead of -1 being the predefined default).
I already found the bug and will attach a pull request
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira