[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2347) ComponentScanner fails with classes in WEB-INF/classes on websphere

John Eckhart (JIRA) jira-events at lists.jboss.org
Wed Mar 18 12:43:22 EDT 2009

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

John Eckhart commented on JBSEAM-2347:

Where would the components.xml go if a project is broken into WAR, JAR (for JPA), JAR (for EJB), and finally EAR (containing the mentioned components)?

Based on the examples I've read for WebSphere , the recommended place for components.xml is in the WAR file. Moreover, it would stand to reason that including seam components in the WAR would be beneficial (ie POJO components as quick backing beans for jsf pages).

I ran into this issue recently in Websphere 7.0 where I had a Seam managed POJO as a backing bean to a JSF page. The bean wouldn't load because of the NoClassDefFoundError. I patched seam to work-around this issue as I didn't see any other solution (JSF backing beans don't belong in my JPA or EJB layers).

> ComponentScanner fails with classes in WEB-INF/classes on websphere
> -------------------------------------------------------------------
>                 Key: JBSEAM-2347
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-2347
>             Project: Seam
>          Issue Type: Bug
>            Reporter: Norman Richards
>            Assignee: Norman Richards
>            Priority: Minor
>             Fix For: 2.0.1.CR1
> If looks like websphere adds the WAR contents directly to the classpath, which causes scanner errors when loading:
> java.lang.NoClassDefFoundError: WEB-INF.classes.com.somecompany.SomeComponent
> I'll fix the scanner as soon as I've verified the issue on websphere.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list