[seam-issues] [JBoss JIRA] (JBSEAM-4862) Seam Remoting GWT support not being skipped in AS 7.0.2

Vaclav Dedik (JIRA) jira-events at lists.jboss.org
Thu Aug 30 06:58:32 EDT 2012


    [ https://issues.jboss.org/browse/JBSEAM-4862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714817#comment-12714817 ] 

Vaclav Dedik edited comment on JBSEAM-4862 at 8/30/12 6:58 AM:
---------------------------------------------------------------

The problem is the GWT interface (SerializationPolicyProvider) of the abstract superclass of the org.jboss.seam.remoting.gwt.GWT14Service which is not on the classpath when the application is being deployed. If you remove the interface (and modify the class so that it compiles), the exception no longer occurs.

I guess that the JBoss AS classloader (or some underlying classloader) is incapable of loading a class that has an invalid interface (which make sense, I think), so I don't think there is an easy and pretty fix for this (except for catching the exception of course).
                
      was (Author: vdedik):
    The problem is the GWT interface (SerializationPolicyProvider) of the abstract superclass of the org.jboss.seam.remoting.gwt.GWT14Service which is not on the classpath when the application is being deployed. If you remove the interface (and modify the class so that it compiles), the exception no longer occurs.

I guess that the JBoss AS classloader (or some underlying classloader) is incapable of loading a class that has an invalid interface (which make sense, I think), so I don't think there is an easy and pretty fix for this.
                  
> Seam Remoting GWT support not being skipped in AS 7.0.2
> -------------------------------------------------------
>
>                 Key: JBSEAM-4862
>                 URL: https://issues.jboss.org/browse/JBSEAM-4862
>             Project: Seam 2
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 2.3.0.ALPHA
>         Environment: JBoss AS 7.0.2.Final
> EAR deployment of Seam 2.2.0
>            Reporter: Joshua Davis
>            Assignee: Marek Novotny
>             Fix For: 2.3.0.Final
>
>         Attachments: gwt-exception.txt
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> When deploying a Seam 2.2.0 EAR in JBoss AS 7.0.2.Final, the Seam Remoting GWT support components are not disabled in a nice way.   Seam's scanner is trying to instantiate these components, even though the GWT classes are not available, resulting in a  {{java.lang.LinkageError}} when Seam's scanner tries to load the class.
> * The application is deployed as an EAR.
> * {{jboss-seam.jar}} is in the root directory of the EAR, and is declared as an EJB module in {{META-INF/application.xml}}.
> * {{jboss-seam-remoting.jar}} is in the {{lib}} directory of the EAR, along with all the other Seam 2 jars.
> When JBoss AS 7 is deploying the application, the Seam 2 scanner is looking for components in {{lib/jboss-seam-remoting.jar}}.  It finds {{GWT14Service}} and {{GWTToSeamAdapter}}, _even though_ these two components are declared with {{@Install(..., classDependencies= ...)}}.
> Expected behavior: The {{classDependencies}} in the {{@Install}} annotation prevents Seam's scanner from loading the class in the first place.
> Removing the the {{org.jboss.seam.remoting.gwt}} package from {{jboss-seam-remoting.jar}} made the problem go away.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list