[Security & JAAS/JBoss] - Jboss SSO Questions
by jibuthomas
Hi
I am evaluating Jboss sso and I am able to do a sample application , using a custom LoginProvider implementation.
I have some issues and it would be of great help if you could answer following questions.
1. Once I successfully logged in to the application, if I open a new Brower and access the same application, it asks for login again.
Is there a way to make the sso cookie persistent for a certain time and reused by all browser sessions from same machine?
2. Can we have a centralise login page for Jboss sso, which will be shown to user for login data, irrespective of the application ?
3. Once authenticated, if the application needs to get user data ( like user id ) is there any way ?
Please help
Jik
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219007#4219007
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219007
17 years, 2 months
[JBoss Messaging] - Slow server shutdown in cluster
by alexander.meyer
Hello,
I have a problem with jboss server shutdown using a two-node jboss cluster (4.2.2.GA) with JBM 1.4.2.GA. In the cluster are several queues and topics deployed, all are configured as clustered and all messages are send with the ClusteredConnectionFactory (Failover and Loadbalancing true).
If I shutdown the first node the server stops after a few seconds without any problem. At this time the JBM failover on node2 starts. If I try to stop the second node the shutdown stucks after undeploying a few EJB3.
In the logfile appears a few warnings:
| 2009-03-18 11:43:04,458 WARN [org.jboss.remoting.Client] unable to remove remote callback handler : Can not get connection to server. Problem establishing socket conn
| ection for InvokerLocator [bisocket://169.254.0.101:4457/?JBM_clientMaxPoolSize=2000&clientLeasePeriod=10000&clientSocketClass=org.jboss.jms.client.remoting.ClientSocketWrappe
| r&dataType=jms&marshaller=org.jboss.jms.wireformat.JMSWireFormat&numberOfCallRetries=1&numberOfRetries=10&pingFrequency=214748364&pingWindowFactor=10&socket.check_connection=f
| alse&stopLeaseOnFailure=false&timeout=200000&unmarshaller=org.jboss.jms.wireformat.JMSWireFormat&validatorPingPeriod=10000&validatorPingTimeout=5000]
|
Thread dump:
| "JBoss Shutdown Hook" daemon prio=6 tid=0x2b0ba400 nid=0x4da4 runnable [0x2f9fd000..0x2f9ffa14]
| java.lang.Thread.State: RUNNABLE
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| - locked <0x25779ec8> (a java.net.SocksSocketImpl)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:519)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:192)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSocket(BisocketClientInvoker.java:429)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:827)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:569)
| at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:422)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:133)
| at org.jboss.remoting.Client.invoke(Client.java:1640)
| at org.jboss.remoting.Client.invoke(Client.java:554)
| at org.jboss.remoting.Client.invoke(Client.java:542)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)
| at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate.org$jboss$jms$client$delegate$ClientConnectionDelegate$stop$aop(ClientConnectionDelegate.java:258)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate$stop_N2856118408655404442.invokeNext(ClientConnectionDelegate$stop_N2856118408655404442.java)
| at org.jboss.jms.client.container.ConnectionAspect.handleStop(ConnectionAspect.java:157)
| at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate$stop_N2856118408655404442.invokeNext(ClientConnectionDelegate$stop_N2856118408655404442.java)
| at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:111)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate$stop_N2856118408655404442.invokeNext(ClientConnectionDelegate$stop_N2856118408655404442.java)
| at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
| at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate$stop_N2856118408655404442.invokeNext(ClientConnectionDelegate$stop_N2856118408655404442.java)
| at org.jboss.jms.client.delegate.ClientConnectionDelegate.stop(ClientConnectionDelegate.java)
| at org.jboss.jms.client.JBossConnection.stop(JBossConnection.java:134)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.teardownSessionPool(JmsActivation.java:603)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.teardown(JmsActivation.java:335)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.stop(JmsActivation.java:226)
| at org.jboss.resource.adapter.jms.JmsResourceAdapter.endpointDeactivation(JmsResourceAdapter.java:80)
| at org.jboss.resource.deployment.RARDeployment.endpointDeactivation(RARDeployment.java:287)
| at org.jboss.resource.deployment.RARDeployment.internalInvoke(RARDeployment.java:235)
| at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
| at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.deactivate(JBossMessageEndpointFactory.java:323)
| at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.stop(JBossMessageEndpointFactory.java:200)
| at org.jboss.ejb3.mdb.MessagingContainer.stopProxies(MessagingContainer.java:319)
| at org.jboss.ejb3.mdb.MessagingContainer.stop(MessagingContainer.java:312)
| at sun.reflect.GeneratedMethodAccessor215.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.ServiceDelegateWrapper.stopService(ServiceDelegateWrapper.java:119)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.stop(Unknown Source)
| at org.jboss.system.ServiceController.stop(ServiceController.java:508)
| at org.jboss.system.ServiceController.stop(ServiceController.java:499)
| at org.jboss.system.ServiceController.stop(ServiceController.java:499)
| at org.jboss.system.ServiceController.stop(ServiceController.java:499)
| at org.jboss.system.ServiceController.stop(ServiceController.java:499)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.stop(Unknown Source)
| at org.jboss.deployment.SARDeployer.stop(SARDeployer.java:336)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy51.stop(Unknown Source)
| at org.jboss.deployment.XSLSubDeployer.stop(XSLSubDeployer.java:202)
| at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)
| at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)
| at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:516)
| 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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:1058)
| at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:1033)
| at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:996)
|
After a few minutes (> 5) the shutdown of node2 is finished too. Is there a way to make this shutdown faster? Is it possible to disable failover before/while stopping the server?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219006#4219006
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219006
17 years, 2 months
[JBoss jBPM] - Mail Server Configuration in JBPM
by Toriton
Hi all i'm trying to send a mail with a MailNode in JBPM but there is a problem seem on the SMTP server that i'm using.
this is how i configured JBPM file:
<string name="jbpm.mail.smtp.host" value="smtp.gmail.com" />
| <string name="jbpm.mail.from.address" value="pluto(a)pippo.com" />
| <string name="jbpm.mail.smtp.starttls.enable" value="true" />
| <string name="jbpm.mail.user" value="username" />
| <string name="jbpm.mail.pass" value="password" />
| <string name="jbpm.mail.port" value="465" />
| <string name="jbpm.mail.smtp.socketFactory.port" value="465" />
| <string name="jbpm.mail.smtp.socketFactory.class" value="javax.net.ssl.SSLSocketFactory"/>
As you can see the SMTP server that i'm using is the GMail Server.
And this is the exception:
| 2009-03-18 11:41:24,796 INFO [STDOUT] Cannot send mail, now retrying: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. l19sm707358fgb.7
| 2009-03-18 11:41:24,796 ERROR [org.jbpm.mail.Mail] Cannot send mail, now retrying: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. l19sm707358fgb.7
|
Anyone can suggest me if i'm missing some configure properties?
Thanks in advance.
T.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219004#4219004
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219004
17 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Problems with Mysql Proxy r/w spliiting and Jboss Pool
by amardeep21
Hi,
We are trying to implement r/w splitting with Jboss as Application Server for our
java application built on swt.
We have successfully implemented Mysql Master Master Replication under following Setup-
ServerA - Master
ServerB - Master
ServerC - Slave of ServerA
ServerD - Slave of ServerB
Everything works file using r/w splitting including load balancing.
The issues we are facing is when we leave our application running for some time
idle, jboss throws the following errors..
WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Unable to fill pool
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException
MESSAGE: Unknown command
STACKTRACE:
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Unknown command
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:921)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:812)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3284)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1182)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2670)
at com.mysql.jdbc.Connection.(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:524)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Thread.java:595)
** END NESTED EXCEPTION **
Last packet sent to the server was 2 ms ago.)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:524)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
The current Setup of pool under r/w splitting is
-- connection pool
if not proxy.global.config.rwsplit then
proxy.global.config.rwsplit = {
min_idle_connections = 10,
max_idle_connections = 20,
is_debug = true
}
end
Whereas Jboss pool is set to
<min-pool-size>10</min-pool-size>
<max-pool-size>2000</max-pool-size>
I am not able to figure out what is causing problem jboss/proxy pool or something else due to which above error comes.
Any help is really appreciated.
Thanks,
Veneet
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218995#4218995
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218995
17 years, 2 months