[JBoss Messaging] - Re: JBM and JAAS Client authentication
by btsibr
I think the only issue is that it isn't possible to propagate the client credentials from the JAAS client login to the standard ConnectionFactory. This would be a feature request.
However, it's still a puzzle why I was allowed to send to the destination without providing credentials, but was unable to read from it. This is the only potential 'bug'.
My mention of the CallerIdentityLoginModule is a separate configuration issue related to the use of the JmxXA connection factory from EJBs/MDBs. Although, for MDBs it would be nice if it was possible to use the @RunAs role without having to provide a username and password (without a username and password I get an exception). In our certificate based system, we don't use passwords anywhere. Of course this is more of a feature request than a bug.
Incidentally, is there a schedule for 1.4.0CR2 or GA? I'm experiencing the issue where improperly disconnected sessions eventually cause the server to hang up because the bundled version of remoting doesn't have the callback timeout.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074412#4074412
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074412
18Â years, 11Â months
[JBoss Seam] - Re: Seam Captcha configuration
by msznapka
I configured captcha by myself inside CaptchaImage.java:
| @Create
| public void create()
| {
| DefaultManageableImageCaptchaService serviceTmp = new DefaultManageableImageCaptchaService();
| DefaultGimpyEngine engine = (DefaultGimpyEngine) serviceTmp.getEngine();
|
| CaptchaFactory[] factories = new CaptchaFactory[1];
| factories[0] = new GimpyFactory(
| new RandomWordGenerator("ABCDEFHIJKLMNOPRSTUVYZ"),
| new ComposedWordToImage(
| new RandomFontGenerator(new Integer(20), new Integer(20)),
| new FunkyBackgroundGenerator(new Integer(160), new Integer(60)),
| new RandomTextPaster(new Integer(4), new Integer(4), Color.BLACK)
| )
| );
| engine.setFactories(factories);
|
| service = serviceTmp;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074406#4074406
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074406
18Â years, 11Â months
[JBoss Seam] - Seam Test and java.util.EmptyStackException
by urswag
Using Seam 2.0.0 Beta and JBoss 4.2.0.
Making an own test with my user definend Entity Bean User for Oracle DB, I get a strange exception
| [testng] java.util.EmptyStackException
| [testng] at java.util.Stack.peek(Stack.java:79)
| [testng] at org.jboss.seam.transaction.Transaction.beforeCommit(Transaction.java:64)
|
The exception is generated in the call of getValue in the Component test method.
| assert getValue("#{user.username}").equals(testuserUsername);
|
Must I create the user table in the hypersonic database? Or is this table automatically? I don't think the oracle db connection is called within the test? Is this correct?
The whole exception stack?
anonymous wrote :
| [testng] java.util.EmptyStackException
| [testng] at java.util.Stack.peek(Stack.java:79)
| [testng] at org.jboss.seam.transaction.Transaction.beforeCommit(Transaction.java:64)
| [testng] at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:44)
| [testng] at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
| [testng] at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
| [testng] at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
| [testng] at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.invokeApplicationPhase(BaseSeamTest.java:616)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle(BaseSeamTest.java:556)
| [testng] at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:487)
| [testng] at com.frox.atirasafnetz.test.integration.PasswordChangeTest.testPasswordChange(PasswordChangeTest.java:36)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [testng] at java.lang.reflect.Method.invoke(Method.java:585)
| [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| [testng] at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
| [testng] at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
| [testng] at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
| [testng] at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
| [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
| [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
| [testng] at org.testng.TestRunner.run(TestRunner.java:495)
| [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| [testng] at org.testng.TestNG.run(TestNG.java:699)
| [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
| [testng] at org.testng.TestNG.main(TestNG.java:802)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074402#4074402
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074402
18Â years, 11Â months