[JBoss Messaging] - How Do I Run JBoss Messaging TestSuite in Q1 2008
by cmagidcmagid
My goal is to get some version of JBM unit / integration tests working.
I am trying to run the JBoss Messaging Functional tests by following the instructions on:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingBuildInstructions.
tangent: If these are out of date and there are newer instructions please advise.
I have seen 6 sets of instructions for JBM tests.
I am able to get through step 3.
When I check the results in
...messaging-head/tests/output/reports/html/index.html
I find that ALL of the tests in the following packages fail:
org.jboss.test.messaging.jms 296 296 0 117.035
org.jboss.test.messaging.jms.message 83 83 0 30.517
org.jboss.test.messaging.jms.message.foreign 18 18 0 6.062
org.jboss.test.messaging.jms.selector 9 9 0 2.984
org.jboss.test.messaging.jms.server.connectionmanager 2 2 0 0.609
org.jboss.test.messaging.util 30 3 0 1.157
When I drill down I find the following stack trace and error information:
testTopic Error Incompletely deployed: *** DEPLOYMENTS IN ERROR:
Name -> Error MinaService -> java.lang.IllegalArgumentException:
No enum const class
org.jboss.messaging.core.remoting.TransportType.tcp ***
DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required
State:Actual State} MessagingServer ->
JMSUserManager{Configured:Installed},
PersistenceManager{Configured:Installed},
Configuration{Configured:Installed},
MinaService{Configured:**ERROR**} MessagingServerManagement ->
MessagingServer{Configured:Instantiated}
java.lang.IllegalStateException: Incompletely deployed:
*** DEPLOYMENTS IN ERROR: Name -> Error MinaService ->
java.lang.IllegalArgumentException: No enum const class
org.jboss.messaging.core.remoting.TransportType.tcp
*** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required
State:Actual State} MessagingServer ->
JMSUserManager{Configured:Installed},
PersistenceManager{Configured:Installed},
Configuration{Configured:Installed},
MinaService{Configured:**ERROR**} MessagingServerManagement ->
MessagingServer{Configured:Instantiated}
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:260)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
at org.jboss.messaging.microcontainer.JBMBootstrapServer.bootstrap(JBMBootstrapServer.java:170)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
at org.jboss.messaging.microcontainer.JBMBootstrapServer.run(JBMBootstrapServer.java:77)
at org.jboss.test.messaging.tools.container.LocalTestServer.start(LocalTestServer.java:148)
at org.jboss.test.messaging.JBMServerTestCase.setUp(JBMServerTestCase.java:150)
at org.jboss.test.messaging.jms.JMSTestCase.setUp(JMSTestCase.java:32)
Looks like a problem with the installation of the MinaService. But the directions do not reference anything about this service. Also as a first pass I have no problem using a mock.jar/fake.jar collection. But neither do I have a problem using real integration tests.
Can you also let me know how to run tests individually?
Eventually I'd like to be able to run against other vendor's implementations.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121963#4121963
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121963
18 years, 6 months
[Clustering/JBoss] - Re: Load-balancing is not happening in cluster
by azheludkov
Brian thanks for a lead.
But I still am wondering if it possible to turn off default rerouting from remote to local ejb call without writing custom interceptor. I found in JBoss documentation that it possible by modifying standardjboss.xml file:
<invoker-proxy-binding>
clustered-stateless-unified-invoker
. . . .
<client-interceptors>
. . . . .
<interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor
<interceptor call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor
. . . . .
<interceptor call-by-value="false">org.jboss.invocation.InvokerInterceptor
<interceptor call-by-value="true">org.jboss.invocation.MarshallingInvokerInterceptor
</client-interceptors>
</proxy-factory-config>
</invoker-proxy-binding>.
I thought that if I change property call-by-value='false' to 'true' it would work, but I got 'Connection refused' exception. Probably I miss something else or this is completly wrong idea.
Correct me please if I'm wrong
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121958#4121958
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121958
18 years, 6 months
[Security & JAAS/JBoss] - NullPointerException @ DatabaseServerLoginModule.java:141, J
by jahebe
Hello, all.
I'm having some problems with the DatabaseServerLoginModule and would appreciate any help, as the logged error messages do not tell me much:
DataSource
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE datasources
| PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
| <datasources>
| <local-tx-datasource>
| <jndi-name>FluxMonClockerDS</jndi-name>
| <!-- <use-java-context>false</use-java-context>-->
| <connection-url>
| jdbc:postgresql://localhost:5432/fluxmon
| </connection-url>
| <driver-class>org.postgresql.Driver</driver-class>
| <user-name>fluxmon</user-name>
| <password>fluxmon</password>
| <metadata>
| <type-mapping>PostgreSQL 8.0</type-mapping>
| </metadata>
|
| </local-tx-datasource>
| </datasources>
|
Database content/result of queries
| fluxmon=> SELECT PASSWORD FROM CLOCKER_USERS WHERE PHONENUMBER='+4797516690';
| password
| ------------------------------
| 7EDGLd8tLX01PmrX0eNSm7aGfg8=
| (1 rad)
|
| fluxmon=> SELECT Role, 'Roles' FROM CLOCKER_USERS WHERE PHONENUMBER='+4797516690';
| role | ?column?
| ------+----------
| user | Roles
| (1 rad)
|
| fluxmon=>
|
Exception:
| 2008-01-21 21:22:51,663 TRACE [org.jboss.security.plugins.JaasSecurityManager] Constructing
| 2008-01-21 21:22:51,664 DEBUG [org.jboss.security.plugins.JaasSecurityManager.fluxmonClocker] CallbackHandler: org.jboss.security.auth.callback.SecurityAssociationHandler@10bfedd
| 2008-01-21 21:22:51,664 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@896e10
| 2008-01-21 21:22:51,665 DEBUG [org.jboss.security.plugins.JaasSecurityManager.fluxmonClocker] CachePolicy set to: org.jboss.util.TimedCachePolicy@991d56
| 2008-01-21 21:22:51,665 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@991d56
| 2008-01-21 21:22:51,665 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Added fluxmonClocker, org.jboss.security.plugins.SecurityDomainContext@5532da to map
| 2008-01-21 21:22:51,665 TRACE [org.jboss.security.plugins.JaasSecurityManager.fluxmonClocker] Begin isValid, principal:+4797516690, cache info: null
| 2008-01-21 21:22:51,665 TRACE [org.jboss.security.plugins.JaasSecurityManager.fluxmonClocker] defaultLogin, principal=+4797516690
| 2008-01-21 21:22:51,666 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] Begin getAppConfigurationEntry(fluxmonClocker), size=8
| 2008-01-21 21:22:51,666 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] End getAppConfigurationEntry(fluxmonClocker), authInfo=AppConfigurationEntry[]:
| [0]
| LoginModule Class: org.jboss.security.auth.spi.DatabaseServerLoginModule
| ControlFlag: LoginModuleControlFlag: required
| Options:name=principalsQuery, value=SELECT PASSWORD FROM CLOCKER_USERS WHERE PHONENUMBER=?
| name=unauthenticatedIdentity, value=guest
| name=dsJndiName, value=java:/FluxMonClockerDS
| name=rolesQuery, value=SELECT ROLE, 'Roles' FROM CLOCKER_USERS WHERE PHONENUMBER=?
|
| 2008-01-21 21:22:51,672 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] initialize, instance=@19690316
| 2008-01-21 21:22:51,672 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] Security domain: fluxmonClocker
| 2008-01-21 21:22:51,678 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] Saw unauthenticatedIdentity=guest
| 2008-01-21 21:22:51,679 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] DatabaseServerLoginModule, dsJndiName=java:/FluxMonClockerDS
| 2008-01-21 21:22:51,679 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] principalsQuery=SELECT PASSWORD FROM CLOCKER_USERS WHERE PHONENUMBER=?
| 2008-01-21 21:22:51,679 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] rolesQuery=SELECT ROLE, 'Roles' FROM CLOCKER_USERS WHERE PHONENUMBER=?
| 2008-01-21 21:22:51,679 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] suspendResume=true
| 2008-01-21 21:22:51,679 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] login
| 2008-01-21 21:22:51,681 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] suspendAnyTransaction
| 2008-01-21 21:22:51,683 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] resumeAnyTransaction
| 2008-01-21 21:22:51,685 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] abort
| 2008-01-21 21:22:51,685 TRACE [org.jboss.security.plugins.JaasSecurityManager.fluxmonClocker] Login failure
| javax.security.auth.login.LoginException: java.lang.NullPointerException
| at org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(DatabaseServerLoginModule.java:141)
| at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:206)
| 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
| at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
| at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
| at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
| at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
| at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
| at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:180)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:619)
|
| at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
| at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
| at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
| at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
| at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
| at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
| at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:180)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:619)
| 2008-01-21 21:22:51,685 TRACE [org.jboss.security.plugins.JaasSecurityManager.fluxmonClocker] End isValid, false
| 2008-01-21 21:22:51,685 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121956#4121956
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121956
18 years, 6 months
[JBoss Seam] - task/process id may not be null
by QPool.Char
Hello, i m using Seam 2.0 in production-development.
We have a small problem here, and it would be nice if anyone could help me out.
There is a method which is called by a JSF-Menu
| public String startDemoWorkflow() {
| resumeDemo.startDemo();
| resumeDemo.advance();
| return "home";
| }
|
StartDemo() invokes a jBPM Workflow in a class like this:
| @In(value="processInstance", required=false, scope=ScopeType.BUSINESS_PROCESS)
| @Out(value="processInstance", required=false)
| ProcessInstance processInstance;
|
| @In(value="taskInstance", required=false, scope=ScopeType.BUSINESS_PROCESS)
| @Out(value="taskInstance", required=false)
| TaskInstance taskInstance;
|
| @CreateProcess(definition="demo")
| public ExeWorkflow startDemo() {
| return new ExeWorkflow();
| }
|
| public void advance() {
| try {
| System.out.println("************************* Actual ProcessID: " + processInstance.toString());
| }
| catch (Exception e) {
| e.printStackTrace();
| }
| }
|
After startDemo() the method advanced() is called. But processInstance is always null. It should be injected at this moment, since the Workflow is started. I tried several Annotations above the advance() method, but none of them worked.
The Seam-Tutorial says that after the method that creates the Workflow-Instance, the processInstance could be retrieved by the context, which can be injected.
Does anyone have an idea to solve this problem?
Thx in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121952#4121952
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121952
18 years, 6 months