[weld-issues] [JBoss JIRA] Commented: (WELDRAD-31) Test failed when ran jsf-weld-servlet

Dan Allen (JIRA) jira-events at lists.jboss.org
Thu Jul 21 16:06:23 EDT 2011


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

Dan Allen commented on WELDRAD-31:
----------------------------------

Atm, please use the archetypes that were prepared for the AS 7 release as they are the most up to date.

http://bit.ly/as7tutorial

> Test failed when ran jsf-weld-servlet 
> --------------------------------------
>
>                 Key: WELDRAD-31
>                 URL: https://issues.jboss.org/browse/WELDRAD-31
>             Project: Weld Archetypes
>          Issue Type: Bug
>          Components: jsf-weld-servlet-webapp
>    Affects Versions: jsf-weld-servlet-webapp-1.0.1.Beta1
>            Reporter: hantsy bai
>
> I created a web project from jsf-weld-servlet-webapp, and add seam3 persistence in project, when ran test, it failed.
> I do not know why it need hibernate search?
> ------------------------------------------------------------------
> 2011-7-21 8:31:20 org.jboss.weld.bootstrap.WeldBootstrap <clinit>
> 信息: WELD-000900 1.1.0 (Final)
> 2011-07-21 08:31:20,581 DEBUG org.jboss.seam.persistence.HibernatePersistencePro
> vider - no Hibernate Search
> java.lang.ClassNotFoundException: Could not load class org.hibernate.search.Vers
> ion with the context class loader org.jboss.shrinkwrap.classloader.ShrinkWrapCla
> ssLoader at 1ff7a1e or any of the additional ClassLoaders: []
>         at org.jboss.seam.solder.reflection.Reflections.classForName(Reflections
> .java:386)
>         at org.jboss.seam.persistence.HibernatePersistenceProvider.<clinit>(Hibe
> rnatePersistenceProvider.java:60)
>         at org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtension
> Impl.<clinit>(HibernateManagedSessionExtensionImpl.java:65)
>         at org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtension
> .<init>(HibernateManagedSessionExtension.java:51)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
> orAccessorImpl.java:39)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
> onstructorAccessorImpl.java:27)
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>         at org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.ServiceLoade
> r.prepareInstance(ServiceLoader.java:297)
>         at org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.ServiceLoade
> r.loadService(ServiceLoader.java:262)
>         at org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.ServiceLoade
> r.loadServiceFile(ServiceLoader.java:218)
>         at org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.ServiceLoade
> r.reload(ServiceLoader.java:181)
>         at org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.ServiceLoade
> r.iterator(ServiceLoader.java:370)
>         at org.jboss.weld.bootstrap.ExtensionBeanDeployer.addExtensions(Extensio
> nBeanDeployer.java:93)
>         at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootst
> rap.java:334)
>         at org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContaine
> r.startContainer(TestContainer.java:258)
>         at org.jboss.arquillian.container.weld.ee.embedded_1_1.WeldEEMockContain
> er.deploy(WeldEEMockContainer.java:71)
>         at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(Containe
> rDeployer.java:62)
>         at org.jboss.arquillian.impl.handler.ContainerDeployer.callback(Containe
> rDeployer.java:50)
>         at org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.
> java:63)
>         at org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractE
> ventContext.java:115)
>         at org.jboss.arquillian.impl.EventTestRunnerAdaptor.beforeClass(EventTes
> tRunnerAdaptor.java:96)
>         at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:162)
>         at org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:18
> 6)
>         at org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(
> Arquillian.java:297)
>         at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:182)
>         at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>         at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:127)
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
> java:35)
>         at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4
> Provider.java:115)
>         at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider
> .java:97)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.inv
> oke(ProviderFactory.java:103)
>         at $Proxy0.invoke(Unknown Source)
>         at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(Suref
> ireStarter.java:150)
>         at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(S
> urefireStarter.java:91)
>         at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:
> 69)
> 2011-07-21 08:31:20,805 INFO  org.jboss.seam.solder.Version - Seam Solder 3.0.0.
> Final (build id: 3.0.0.Final)
> 2011-07-21 08:31:20,827 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Seam Config XML provider starting...
> 2011-07-21 08:31:20,829 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Loading XmlDocumentProvider: org.jboss.seam.config.xml.bootstrap.Resource
> LoaderXmlDocumentProvider
> 2011-07-21 08:31:20,842 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Reading XML file: file:/E:/MyWorks/bifincan/bifincan-web/target/classes/M
> ETA-INF/beans.xml
> 2011-07-21 08:31:20,886 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Reading XML file: jar:file:/E:/Users/hantsy/.m2/repository/org/jboss/seam
> /solder/seam-solder-impl/3.0.0.Final/seam-solder-impl-3.0.0.Final.jar!/META-INF/
> beans.xml
> 2011-07-21 08:31:20,888 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Reading XML file: jar:file:/E:/Users/hantsy/.m2/repository/org/jboss/seam
> /solder/seam-solder/3.0.0.Final/seam-solder-3.0.0.Final.jar!/META-INF/beans.xml
> 2011-07-21 08:31:20,891 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Reading XML file: jar:file:/E:/Users/hantsy/.m2/repository/org/jboss/seam
> /persistence/seam-persistence-impl/3.0.0.Final/seam-persistence-impl-3.0.0.Final
> .jar!/META-INF/beans.xml
> 2011-07-21 08:31:20,904 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Adding XML Defined Bean: org.jboss.seam.transaction.SeSynchronizations
> 2011-07-21 08:31:20,927 INFO  org.jboss.seam.config.xml.bootstrap.XmlConfigExten
> sion - Adding XML Defined Bean: org.jboss.seam.transaction.EntityTransaction
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.882 sec <<< FA
> ILURE!
> Running com.dna.bifincan.HelloWorldTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> Results :
> Tests in error:
>   com.dna.bifincan.BeanManagerTest: org.jboss.weld.exceptions.DeploymentExceptio
> n: WELD-001408 Unsatisfied dependencies for type [EntityManager] with qualifiers
>  [@Default] at injection point [[field] @Inject private org.jboss.seam.transacti
> on.EntityTransaction.entityManager]
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 6.549s
> [INFO] Finished at: Thu Jul 21 08:31:21 GMT+08:00 2011
> [INFO] Final Memory: 9M/23M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
> 7.2:test (default-test) on project bifincan-web: There are test failures.
> [ERROR]
> [ERROR] Please refer to E:\MyWorks\bifincan\bifincan-web\target\surefire-reports
>  for the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please rea
> d the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the weld-issues mailing list