camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r887107 - /camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
Date Fri, 04 Dec 2009 08:28:59 GMT
Author: ningjiang
Date: Fri Dec  4 08:28:45 2009
New Revision: 887107

URL: http://svn.apache.org/viewvc?rev=887107&view=rev
Log:
CAMEL-2255 fix the JuelExpression NoFactoryAvailableException

Modified:
    camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java

Modified: camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java?rev=887107&r1=887106&r2=887107&view=diff
==============================================================================
--- camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
(original)
+++ camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
Fri Dec  4 08:28:45 2009
@@ -77,15 +77,15 @@
     public ExpressionFactory getExpressionFactory(CamelContext context) {
         if (expressionFactory == null && context != null) {
             try {
-                FactoryFinder finder = context.getFactoryFinder("META-INF/services/org/apache/camel/component/");
-                Class<?> clazz = finder.findClass("juel", "impl.");
+                FactoryFinder finder = context.getFactoryFinder("META-INF/services/org/apache/camel/language/");
+                Class<?> clazz = finder.findClass("el", "impl.");
                 if (clazz != null) {
                     expressionFactory = (ExpressionFactory)clazz.newInstance();
                 }
             } catch (ClassNotFoundException e) {
                 LOG.debug("'impl.class' not found", e);
             } catch (IOException e) {
-                LOG.debug("No impl class for juel ExpressionFactory defined in 'META-INF/services/org/apache/camel/component/el'",
e);
+                LOG.debug("No impl class for juel ExpressionFactory defined in 'META-INF/services/org/apache/camel/language/el'",
e);
             } catch (InstantiationException e) {
                 LOG.debug("Failed to instantiate juel ExpressionFactory implementation class.",
e);
             } catch (IllegalAccessException e) {



Mime
View raw message