You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jonathan Gallimore (JIRA)" <ji...@apache.org> on 2010/08/21 12:18:16 UTC

[jira] Created: (OPENEJB-1336) Deployment in Tomcat fails with NoSuchMethodException

Deployment in Tomcat fails with NoSuchMethodException
-----------------------------------------------------

                 Key: OPENEJB-1336
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1336
             Project: OpenEJB
          Issue Type: Bug
            Reporter: Jonathan Gallimore
            Assignee: Jonathan Gallimore


When deploying an application to Tomcat, a NoSuchMethodException is thrown, causing deployment to fail. This appears to be relates to a new attribute 'lookup' on the javax.ejb.EJB annotation. Although this annotation is available in the Geronimo spec jars, it isn't in the annotation jar that Tomcat is using.

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


[jira] Commented: (OPENEJB-1336) Deployment in Tomcat fails with NoSuchMethodException

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901496#action_12901496 ] 

Jarek Gawor commented on OPENEJB-1336:
--------------------------------------

Tomcat ships with EJB 3.0 spec jar? If so, it also means a bunch of other annotations introduced in EJB 3.1 won't be detected in Tomcat.

David, this is about EJB.lookup not Resource.lookup. Resource.lookup requires endorsed override while EJB.lookup does not. Just need to have right version in the classpath.


> Deployment in Tomcat fails with NoSuchMethodException
> -----------------------------------------------------
>
>                 Key: OPENEJB-1336
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1336
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: Jonathan Gallimore
>            Assignee: Jonathan Gallimore
>
> When deploying an application to Tomcat, a NoSuchMethodException is thrown, causing deployment to fail. This appears to be relates to a new attribute 'lookup' on the javax.ejb.EJB annotation. Although this annotation is available in the Geronimo spec jars, it isn't in the annotation jar that Tomcat is using.

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


[jira] Commented: (OPENEJB-1336) Deployment in Tomcat fails with NoSuchMethodException

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901060#action_12901060 ] 

David Jencks commented on OPENEJB-1336:
---------------------------------------

Since java 6 includes the wrong (1.0) annotation spec for ee 6 you need to put the annotation 1.1 jar in the endorsed classpath.

It might also be possible to access this method only by reflection.

> Deployment in Tomcat fails with NoSuchMethodException
> -----------------------------------------------------
>
>                 Key: OPENEJB-1336
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1336
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: Jonathan Gallimore
>            Assignee: Jonathan Gallimore
>
> When deploying an application to Tomcat, a NoSuchMethodException is thrown, causing deployment to fail. This appears to be relates to a new attribute 'lookup' on the javax.ejb.EJB annotation. Although this annotation is available in the Geronimo spec jars, it isn't in the annotation jar that Tomcat is using.

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