[JBoss Seam] - Re: Error while testing using external database
by hubaghdadi
| test:
| [testng]
| [Parser] Running:
|
| [testng] /media/sda4/Projects/ArmadaSeamProject/test-build/NGTest.xml
| [testng]
| [testng] WARN 04-02 17:12:10,995 (UnifiedLoaderRepository3.java:addClassLoader:713) -Tried to add non-URLClassLoader. Ignored
| [testng] WARN 04-02 17:12:12,935 (TxControl.java:<clinit>:302) -[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using 7f000101:ed97:47a79bcc:0
| [testng] WARN 04-02 17:12:15,051 (AspectManagerService.java:baseAop:228) -Could not find base-aspects.xml file in the resources of sun.misc.Launcher$AppClassLoader@17182c1
| [testng] WARN 04-02 17:12:17,722 (SecurityMetadataStore.java:checkDefaultSuckerPassword:311) -WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
| [testng] WARN 04-02 17:12:17,977 (ConnectionFactoryJNDIMapper.java:registerConnectionFactory:155) -supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
| [testng] WARN 04-02 17:12:17,978 (ConnectionFactoryJNDIMapper.java:registerConnectionFactory:161) -supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
| [testng] FAILED CONFIGURATION: @BeforeClass init
| [testng] org.hibernate.HibernateException: Could not find datasource
| [testng] at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
| [testng] at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
| [testng] at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
| [testng] at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414)
| [testng] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
| [testng] at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
| [testng] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
| [testng] at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:918)
| [testng] at org.jboss.seam.persistence.HibernateSessionFactory.createSessionFactory(HibernateSessionFactory.java:165)
| [testng] at org.jboss.seam.persistence.HibernateSessionFactory.startup(HibernateSessionFactory.java:79)
| [testng] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| [testng] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
| [testng] at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
| [testng] at org.jboss.seam.Component.callCreateMethod(Component.java:1997)
| [testng] at org.jboss.seam.Component.newInstance(Component.java:1968)
| [testng] at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
| [testng] at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
| [testng] at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
| [testng] at org.jboss.seam.init.Initialization.init(Initialization.java:555)
| [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:939)
| [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| [testng] Caused by: javax.naming.NameNotFoundException: ArmadaSeamProjectDatasource not bound
| [testng] at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
| [testng] at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
| [testng] at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
| [testng] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
| [testng] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
| [testng] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
| [testng] at javax.naming.InitialContext.lookup(InitialContext.java:392)
| [testng] at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
| [testng] ... 46 more
| [testng] ... Removed 26 stack frames
| [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
|
| [testng] SKIPPED CONFIGURATION: @AfterMethod end
|
| [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
|
| [testng] SKIPPED: listNewTitlesTest
|
| [testng]
|
| [testng] ===============================================
|
| [testng] ArmadaBookStore
| [testng] Tests run: 1, Failures: 0, Skips: 1
|
| [testng] Configuration Failures: 1, Skips: 3
|
| [testng] ===============================================
|
| [testng]
|
| [testng]
|
| [testng] ===============================================
|
| [testng] ArmadaBookStore
| [testng] Total tests run: 1, Failures: 0, Skips: 1
|
| [testng] Configuration Failures: 1, Skips: 3
|
| [testng] ===============================================
|
| [testng]
|
My environment is:
JBoss AS 4.2
JDK 6
Seam GA 2.0.0
It is worth noting that I configured unit tests to run on JDK as your weblog indicates (regarding JAXB 2.1)
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126447#4126447
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126447
18 years, 2 months
[JBossWS] - NoClassDefFoundError using Eclipse/JUnit
by nlaney
hello, I'm accessing a WS running on JBoss 4.2.2 using JBossWS 2.0.3
I've generated the service artifacts using wsconsume and I'm getting a NoClassDefFoundError running the client code as a JUnit or Java app.
The same test runs OK from the command line using wsrunclient, or at least when copying the generated cmd line string into a cmd prompt, and it works when running the test during the Maven build lifecycle.
I would like to be able to run the tests in the Eclipse WTP 2.0 workbench. Any help would be appreciated. The test is just a basic HelloWorld, and the stacktrace is:
java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/AttachmentPartImpl
at com.sun.xml.ws.message.AttachmentUnmarshallerImpl.(AttachmentUnmarshallerImpl.java:55)
at com.sun.xml.ws.client.sei.ResponseBuilder$DocLit.readResponse(ResponseBuilder.java:500)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.findAll(Unknown Source)
at org.MyTest.test(MyTest.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:164)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.messaging.saaj.soap.AttachmentPartImpl
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 25 more
Paste stack traces into this console and follow hyperlinks to source code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126438#4126438
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126438
18 years, 2 months