[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-2905) "jboss-seam.jar will not be exported" error on new Seam project

Vitor Souza (JIRA) jira-events at lists.jboss.org
Thu Oct 16 04:10:21 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBIDE-2905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12434033#action_12434033 ] 

Vitor Souza commented on JBIDE-2905:
------------------------------------

Unpacked eclipse-jee-ganymede-SR1-linux-gtk.tar.gz and then unzipped JBossTools-3.0.0.Beta1-N200810151558-ALL-linux-gtk.zip on top of it. Ran with eclipse -clean using the same workspace as before.

The issue is no longer present, although these two are:

https://jira.jboss.org/jira/browse/JBIDE-2791
https://jira.jboss.org/jira/browse/JBSEAM-3513

To work around JBIDE-2791, I remove jboss-seam.jar from the manifest files of the Web and EJB projects (that can be done manually or under Properties -> Java EE Module Dependencies). To be able to compile the code again, jboss-seam.jar has to be added as a library under Properties -> Java Build Path -> Libraries. That causes the warning to re-appear (on both Web and EJB projects):

Classpath entry /Test-ear/EarContent/jboss-seam.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.

I can get rid of it with one of these two quick fixes, but I don't really know what they mean:

- Mark the associated raw classpath entry as a publish/export dependency.
- Exclude the associated raw classpath entry from the set of potential publish/export dependencies.

Working around the two issues above and ignoring the warnings makes the home.seam page open without any errors.

> "jboss-seam.jar will not be exported" error on new Seam project
> ---------------------------------------------------------------
>
>                 Key: JBIDE-2905
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-2905
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 3.0.0.alpha
>         Environment: * Kubuntu 8.10 beta, kernel 2.6.27-6-generic
> * Eclipse Ganymede installed from eclipse-jee-ganymede-SR1-linux-gtk.tar.gz
> * JBoss Tools development version installed using the update site http://download.jboss.org/jbosstools/updates/development
> * JBoss AS installed from jboss-4.2.3.GA-jdk6.zip
> * Seam unpacked from jboss-seam-2.1.0.CR1.tar.gz
>            Reporter: Vitor Souza
>
> I created a File > New > Seam Web Project using Seam 2.0 and JBoss 4.2. Once the project is created, Eclipse reports "cannot be resolved to a type" errors in the Authenticator.java as if jboss-seam.jar weren't in the classpath.
> In the status bar, it says:
> Classpath entry /MyProject/EarContent/jboss-seam.jar will not be exported or published. Runtime ClassNotFoundException may result.	
> If I add jboss-seam.jar to the classpath, that warning moves to the Problems tab and the errors go away. If I then remove it, the warning also goes away and everything is as it's supposed to be in the beginning. 

-- 
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 jbosstools-issues mailing list