geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1147803 - /geronimo/server/trunk/plugins/plancreator/plancreator-portlets/src/main/java/org/apache/geronimo/console/configcreator/configData/JndiRefsConfigData.java
Date Mon, 18 Jul 2011 09:57:43 GMT
Author: genspring
Date: Mon Jul 18 09:57:42 2011
New Revision: 1147803

URL: http://svn.apache.org/viewvc?rev=1147803&view=rev
Log:
GERONIMO-5981 Some objects to be injected were not found in jndi: could not look up something.
 Workaround provided by Sheng Hao Fang.

Modified:
    geronimo/server/trunk/plugins/plancreator/plancreator-portlets/src/main/java/org/apache/geronimo/console/configcreator/configData/JndiRefsConfigData.java

Modified: geronimo/server/trunk/plugins/plancreator/plancreator-portlets/src/main/java/org/apache/geronimo/console/configcreator/configData/JndiRefsConfigData.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/plancreator/plancreator-portlets/src/main/java/org/apache/geronimo/console/configcreator/configData/JndiRefsConfigData.java?rev=1147803&r1=1147802&r2=1147803&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/plancreator/plancreator-portlets/src/main/java/org/apache/geronimo/console/configcreator/configData/JndiRefsConfigData.java
(original)
+++ geronimo/server/trunk/plugins/plancreator/plancreator-portlets/src/main/java/org/apache/geronimo/console/configcreator/configData/JndiRefsConfigData.java
Mon Jul 18 09:57:42 2011
@@ -114,7 +114,11 @@ public class JndiRefsConfigData {
                 referenceNotResolved = true;
             }
             dependenciesSet.add(getDependencyString(referenceLink));
-            webApp.getEjbRefArray(index).setPattern(createPattern(referenceLink));
+            GerPatternType pattern = createPattern(referenceLink);
+            // GERONIMO-5981
+            // OpenEJB requires the type of the ejb for jndi binding
+            pattern.setArtifactId(pattern.getArtifactId() + ".jar");
+            webApp.getEjbRefArray(index).setPattern(pattern);
             index++;
         }
         index = 0;



Mime
View raw message