geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r544580 - /geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/MEJBGBean.java
Date Tue, 05 Jun 2007 18:15:10 GMT
Author: dwoods
Date: Tue Jun  5 11:15:09 2007
New Revision: 544580

URL: http://svn.apache.org/viewvc?view=rev&rev=544580
Log:
G3178 - Server startup console warning w/ Tomcat JEE5 - EjbModule URL not valid: MEJBGBean

Modified:
    geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/MEJBGBean.java

Modified: geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/MEJBGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/MEJBGBean.java?view=diff&rev=544580&r1=544579&r2=544580
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/MEJBGBean.java
(original)
+++ geronimo/server/trunk/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/MEJBGBean.java
Tue Jun  5 11:15:09 2007
@@ -45,7 +45,8 @@
       
         ClassLoader cl = MEJBBean.class.getClassLoader();
         OpenEjbSystem openEjbSystem = ejbContainer.getOpenEjbSystem();
-        EjbJarInfo ejbJarInfo = openEjbSystem.configureApplication(new EjbModule(cl, getClass().getSimpleName(),
null, ejbJar, null));
+        //A dummy URL MEJBGBean.class.getResource( "" ).toString() to avoid the "java.net.MalformedURLException:
no protocol: MEJBGBean" when startup
+        EjbJarInfo ejbJarInfo = openEjbSystem.configureApplication(new EjbModule(cl, getClass().getSimpleName(),
MEJBGBean.class.getResource( "" ).toString(), ejbJar, null));
         openEjbSystem.createEjbJar(ejbJarInfo, cl);
 	}
 



Mime
View raw message