Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.14
-
Fix Version/s: 6.1.15.pre0
-
Component/s: None
-
Labels:None
-
Environment:OS X, Java 5
-
Number of attachments :
Description
As of 6.1.12 the two argument constructor 'public EnvEntry (String jndiName, Object objToBind)' has been removed. This means that WAR files with jetty-env.xml that worked in the past, with entries like:
<New id="injected_properties_path" class="org.mortbay.jetty.plus.naming.EnvEntry">
<Arg>injected_properties_path</Arg>
<Arg type="java.lang.String">file:///export/content/injected.properties</Arg>
</New>
no longer work as of 6.1.12.
A simple fix would be to reintroduce the missing constructor:
public EnvEntry (String jndiName, Object objToBind)
throws NamingException
Ack, my formatting was completely horked in the original description and there doesn't appear to be a way to edit it.
It should read:
public EnvEntry (String jndiName, Object objToBind)
throws NamingException
{
this(jndiName, objToBind, false);
}