PDA

View Full Version : @Configurable(dependencyCheck=true) on tag gives NameNotFoundException



sore
Sep 5th, 2011, 06:18 PM
I have a custom taglib in my web-application with some tags that are @Configurable(dependencyCheck=true) and are using som services.

Something like this:




@Configurable(dependencyCheck=true)
public class ImgTag extends TagSupport {

@Resource
private AdministrationService administrationService;

...



Now these tags worked fine on Tomcat 5 but now on Tomcat 6 I get the error:
javax.naming.NameNotFoundException: Name com.dott.web.tags.ImgTag is not bound in this Context

The tags in the same taglib that are not using @Configurable(dependencyCheck=true) all work fine.

Please help me out with this one, it is driving me nuts...

/Johan