| Summary: | Attempting to set ConfigurationClasses in jetty-web.xml causes NPE | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Michael Gorovoy <mgorovoy> | ||||
| Component: | server | Assignee: | Michael Gorovoy <mgorovoy> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | andreas.kohn, hmalphettes, jetty-inbox | ||||
| Version: | 7.4.0 | ||||||
| Target Milestone: | 7.2.x | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
NPE is caused by JettyWebXmlConfiguation call to setConfigurationClasses that clears the array that holds configuration objects that causes an NPE during attempt to iterate to the next one. Committed r3056. It seems that this change now leads to another problem: when running a webapp using the jetty-maven-plugin:run-war goal an IllegalStateException is thrown from JettyWebAppContext#setConfigurations() because isRunning() returns true (_state==_STARTING). Created attachment 196420 [details] Stack trace for situation in comment #3 |
Adding the following configuration to jetty-web.xml configuration file causes NPE to occur during WebAppContext start. ... <Array id="plusConfig" type="java.lang.String"> <Item>org.eclipse.jetty.webapp.WebInfConfiguration</Item> <Item>org.eclipse.jetty.webapp.WebXmlConfiguration</Item> <Item>org.eclipse.jetty.webapp.MetaInfConfiguration</Item> <Item>org.eclipse.jetty.webapp.FragmentConfiguration</Item> <Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item> <Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item> <Item>org.eclipse.jetty.webapp.JettyWebXmlConfiguration</Item> <Item>org.eclipse.jetty.webapp.TagLibConfiguration</Item> </Array> <Set name="configurationClasses"> <Ref id="plusConfig"/> </Set> ...