[seam-dev] Compiling Seam faces module

Uroš Majerič uros at majeric.si
Sat Apr 17 09:32:02 EDT 2010


After contributing some code (PrettyFaces) and having a discussion with
Lincoln I've joined a seam-dev mailing list. My plan is to help Lincoln with
Seam faces module (maybe with other modules to) - I hope to find time for
helping.
well I was using Seam from version 1.2 to 2.2.x - so I'm familiar with
seam.

I checked out seam-faces module about two weeks ago and compiled it with no
problem. but last week, after an update (svn up) it didn't compile anymore.
After having a discussion with Lincoln yesterday, I started from beginning.
So I removed a org/jboss/seam folder from m2 repo, followed the instruction
on http://seamframework.org/Seam3/CheckOutAndBuildSeam:

mkdir seam-trunk
cd seam-trunk
svn co http://anonsvn.jboss.org/repos/seam/build/trunk build
svn co http://anonsvn.jboss.org/repos/seam/dist/trunk dist
svn co http://anonsvn.jboss.org/repos/seam/modules/faces/trunk faces

cd build/parent
mvn install
cd ../..

cd dist
mvn install
cd ..

cd faces
mvn install

as first I got an error:
*[INFO]
------------------------------------------------------------------------*
*[ERROR] BUILD ERROR*
*[INFO]
------------------------------------------------------------------------*
*[INFO] Failed to resolve artifact.*
*
*
*Missing:*
*----------*
*1) org.glassfish:javax.servlet:jar:3.0*
*
*
*  Try downloading the file manually from the project website.*
*
*
*  Then, install it using the command: *
*      mvn install:install-file -DgroupId=org.glassfish
-DartifactId=javax.servlet -Dversion=3.0 -Dpackaging=jar
-Dfile=/path/to/file*
*
*
*  Alternatively, if you host your own repository you can deploy the file
there: *
*      mvn deploy:deploy-file -DgroupId=org.glassfish
-DartifactId=javax.servlet -Dversion=3.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]*
*
*
*  Path to dependency: *
*  ** **1) org.jboss.seam.faces:seam-faces:jar:3.0.0-SNAPSHOT*
*  ** **2) org.glassfish:javax.servlet:jar:3.0*
*
*
*----------*
*1 required artifact is missing.*
*
*
*for artifact: *
*  org.jboss.seam.faces:seam-faces:jar:3.0.0-SNAPSHOT*

so I added following code to the .m2/settings.xml:
                *<repository>
                    <id>glassfish</id>

<url>**http://download.java.net/maven/glassfish*<http://download.java.net/maven/glassfish>
*</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                </repository>*
*
*
now every time i do "*mvn install*" i get an error:

*-------------------------------------------------------*
* T E S T S*
*-------------------------------------------------------*
*Running org.jboss.seam.faces.environment.FacesContextProducerTest*
*SLF4J: The requested version 1.5.9 by your slf4j binding is not compatible
with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9.RC1, 1.5.10]*
*SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further
details.*
*Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.444 sec
<<< FAILURE!*
*Running org.jboss.seam.faces.context.FacesAnnotationsAdapterExtensionTest*
*Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.087 sec
<<< FAILURE!*
*Running org.jboss.seam.faces.util.AnnotationsTest*
*Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec*
*Running org.jboss.seam.faces.event.SystemEventBridgeTest*
*Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.117 sec
<<< FAILURE!*
*Running
org.jboss.seam.faces.context.conversation.ConversationBoundaryInterceptorTest
*
*Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.065 sec
<<< FAILURE!*
*Running org.jboss.seam.faces.event.PhaseEventBridgeTest*
*Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.063 sec
<<< FAILURE!*
*Running org.jboss.seam.faces.environment.ExternalContextProducerTest*
*Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.059 sec
<<< FAILURE!*
*
*
*Results :*
*
*
*Tests in error: *
*  org.jboss.seam.faces.environment.FacesContextProducerTest*
*  org.jboss.seam.faces.context.FacesAnnotationsAdapterExtensionTest*
*  org.jboss.seam.faces.event.SystemEventBridgeTest*
*
  org.jboss.seam.faces.context.conversation.ConversationBoundaryInterceptorTest
*
*  org.jboss.seam.faces.event.PhaseEventBridgeTest*
*  org.jboss.seam.faces.environment.ExternalContextProducerTest*
*
*
*Tests run: 9, Failures: 0, Errors: 6, Skipped: 0*
*
*
I've attached a file *
{faces-module}/impl/target/surefire-reports/org.jboss.seam.faces.context.conversation.ConversationBoundaryInterceptorTest.txt
* with a report.

Did anyone else had similar problems?

Uros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20100417/840f7446/attachment-0001.html 
-------------- next part --------------
-------------------------------------------------------------------------------
Test set: org.jboss.seam.faces.context.conversation.ConversationBoundaryInterceptorTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.057 sec <<< FAILURE!
org.jboss.seam.faces.context.conversation.ConversationBoundaryInterceptorTest  Time elapsed: 0.403 sec  <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jboss.weld.bootstrap.WeldBootstrap
	at org.jboss.arquillian.weld.WeldSEContainer.deploy(WeldSEContainer.java:98)
	at org.jboss.arquillian.impl.container.ContainerDeployer.deploy(ContainerDeployer.java:46)
	at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:100)
	at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:115)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)


More information about the seam-dev mailing list