You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Sachin Patel (JIRA)" <ji...@apache.org> on 2007/05/18 16:22:16 UTC

[jira] Created: (OPENEJB-581) EjbModule URL not valid should be squashed

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.


[jira] Commented: (OPENEJB-581) EjbModule URL not valid should be squashed

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500309 ] 

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

In the AnnotationDeployer.deploy method there is a check for ejbModule.getJarURI() != null 
but in the ejbModule constructor its always taken care of that ejbModule.getJarURI() is not null.
Even the ejbModule constructor sets values that are not valid URI's in the jarURI field.

As a solution if i call finder = new ClassFinder(ejbModule.getClassLoader()) if the ejbModule.getJarURI()
is not a valid URI then the jvm crashes as it goes through searching all classes in the classpath. This seems to be happening in the xbean code. 



> 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.


[jira] Commented: (OPENEJB-581) EjbModule URL not valid should be squashed

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
    [ 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.