[ 
https://issues.apache.org/jira/browse/OPENEJB-581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500440
 ] 

Manu T George commented on OPENEJB-581:
---------------------------------------

Adding a dummy URI in the MEJBGBean in geronimo solves this.

eg:
EjbJarInfo ejbJarInfo = openEjbSystem.configureApplication(new EjbModule(cl, 
getClass().getSimpleName(), new 
File(getClass().getSimpleName()).toURI().toString(), ejbJar, null));



> EjbModule URL not valid should be squashed
> ------------------------------------------
>
>                 Key: OPENEJB-581
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-581
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Sachin Patel
>            Priority: Minor
>             Fix For: 3.0
>
>
> The following is being displayed during Geronimo 2.0 startup.  This is an 
> expected exception and should be squashed if possible.
> Starting org.apache.gero...10:17:14,661 WARN  [startup] Unable to scrape for 
> @Stateful, @Stateless or @MessageDriven annotations. EjbModule URL not valid: 
> MEJBGBean
> java.net.MalformedURLException: no protocol: MEJBGBean
>         at java.net.URL.<init>(URL.java:567)
>         at java.net.URL.<init>(URL.java:464)
>         at java.net.URL.<init>(URL.java:413)
>         at 
> org.apache.openejb.config.AnnotationDeployer$DiscoverBeansInClassLoader.deploy(AnnotationDeployer.java:192)
>         at 
> org.apache.openejb.config.AnnotationDeployer$DiscoverBeansInClassLoader.deploy(AnnotationDeployer.java:169)
>         at 
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:160)
>         at 
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:110)
>         at 
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:311)
>         at 
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:298)
>         at 
> org.apache.geronimo.openejb.OpenEjbSystemGBean.configureApplication(OpenEjbSystemGBean.java:316)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to