<div dir="ltr"><div>You probably need to import services: <br><br>
<module name="org.glassfish.javax.el" services="import" /><br><br></div>Stuart<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 28, 2016 at 8:40 PM, Carl Harris <span dir="ltr"><<a href="mailto:ceharris414@me.com" target="_blank">ceharris414@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This may not be the right place to ask this question -- feel free to redirect me as appropriate.<br>
<br>
I have a CDI extension packaged as a Wildfly module. The extension evaluates some EL expressions. In order to evaluate the expressions it calls javax.el.ExpressionFactory.<wbr>newInstance() to get an ExpressionFactory. However, when calling this method an exception is thrown:<br>
<br>
Caused by: javax.el.ELException: Provider com.sun.el.<wbr>ExpressionFactoryImpl not found<br>
at javax.el.FactoryFinder.<wbr>newInstance(FactoryFinder.<wbr>java:102)<br>
at javax.el.FactoryFinder.find(<wbr>FactoryFinder.java:186)<br>
at javax.el.ExpressionFactory.<wbr>newInstance(ExpressionFactory.<wbr>java:197)<br>
at javax.el.ExpressionFactory.<wbr>newInstance(ExpressionFactory.<wbr>java:168)<br>
at javax.el.ELUtil.<clinit>(<wbr>ELUtil.java:99)<br>
... 50 more<br>
Caused by: java.lang.<wbr>ClassNotFoundException: com.sun.el.<wbr>ExpressionFactoryImpl from [Module \"javax.el.api:main\" from local module loader @18ef96 (finder: local module finder @6956de9 (roots: /tmp/wildfly-10.0.0.Final/<wbr>modules,/tmp/wildfly-10.0.0.<wbr>Final/modules/system/layers/<wbr>base))]<br>
<br>
<br>
I *think* the module descriptor has the right dependencies, but evidently I’m missing something.<br>
<br>
<module xmlns="urn:jboss:module:1.0" name="org.soulwing.pinject" slot="main"><br>
<resources><br>
<resource-root path="pinject-extension-1.2.0-<wbr>SNAPSHOT.jar" /><br>
</resources><br>
<br>
<dependencies><br>
<module name="org.soulwing.pinject.<wbr>api" /><br>
<module name="org.glassfish.javax.el" /><br>
<module name="javax.inject.api" /><br>
<module name="javax.enterprise.api"/><br>
<module name="javax.mail.api" /><br>
<module name="javax.el.api" /><br>
<module name="javax.api" /><br>
</dependencies><br>
<br>
</module><br>
<br>
I’ve looked at some other Wildfly modules that use EL (e.g. Hibernate Validator), but I haven’t been able to discern what they’re doing differently.<br>
<br>
carl<br>
<br>
<br>
______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a></blockquote></div><br></div>