[JBoss Messaging] - Re: Messaging installation validation is failed !
by bijianrui
I have updated my all environment.
Now my environment is below :
JAVA: /opt/jrockit-R26.4.0-jdk1.5.0_06/bin/java
JBOSS: Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
JBoss Messaging 1.0.1.GA server
OS: SUSE LINUX Enterprise Server 9 (i586) - Kernel 2.6.5-7.201-smp (5).
But error is the same .
client log :
java.lang.UnsatisfiedLinkError: registerNatives
at sun.misc.Unsafe.registerNatives()V(Unsafe.java:???)
at sun.misc.Unsafe.()V(Unsafe.java:28)
at jrockit.vm.RNI.getRunnableCode(I)I(Unknown Source)
at jrockit.vm.RNI.trampoline()V(Unknown Source)
at sun.misc.Unsafe.getUnsafe()Lsun.misc.Unsafe;(Unsafe.java:???)
at sun.reflect.AccessorGenerator.()V(AccessorGenerator.java:16)
at jrockit.vm.RNI.initializeClassFromJava(II)V(Unknown Source)
at jrockit.vm.RNI.clinitTrampoline()V(Unknown Source)
JBOSS trace log :
10:48:44,182 ERROR [SocketServerInvoker] Failed to accept socket connection
java.lang.reflect.InvocationTargetException
at jrockit.reflect.NativeConstructorInvoker.newInstance([Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Constructor.newInstance([Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:202)
at org.jboss.remoting.transport.socket.ServerThread.(ServerThread.java:99)
at org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:497)
at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:450)
at java.lang.Thread.run()V(Unknown Source)
Caused by: java.io.IOException: Mismatch version of JBossSerialization signature
at org.jboss.serial.io.JBossObjectInputStream.checkSignature(JBossObjectInputStream.java:113)
at org.jboss.serial.io.JBossObjectInputStream.(JBossObjectInputStream.java:94)
at org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager.createInput(JBossSerializationManager.java:59)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.createInputStream(ServerSocketWrapper.java:56)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.(ClientSocketWrapper.java:54)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.(ServerSocketWrapper.java:50)
I dont know what's wrong with my environment.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987455#3987455
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987455
19Â years, 7Â months
[JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI
by gluonvision
While in principle the JSF-1.2 seam-booking-demo from the new beta
runs very nicely on JBoss 5.0.0. beta1 (congratulations !),
there seems to still be the old encoding issue on Linux.
E.g., the Meliá White House Hotel shows up as
Meli? White House
What to do ? Is it a Tomcat configuration issue?
My (openSUSE 10.2beta2)-Linux-box does have en_US.UTF-8, etc. :
rolfm@gluon:~/mjsf3/jboss-5.0.0.Beta1/server/default/log$ uname -a
Linux gluon 2.6.18.2-4-default #1 SMP Tue Nov 7 16:02:06 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
rolfm@gluon:~/mjsf3/jboss-5.0.0.Beta1/server/default/log$ echo $LANG
en_US.UTF-8
rolfm@gluon:~/mjsf3/jboss-5.0.0.Beta1/server/default/log$ grep UTF boot.log
02:51:11,672 DEBUG [ServerInfo] sun.jnu.encoding: UTF-8
02:51:11,673 DEBUG [ServerInfo] file.encoding: UTF-8
rolfm@gluon:~/mjsf3/jboss-5.0.0.Beta1/server/default/log$ java -version
java version "1.5.0_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b03, mixed mode)
------------------------------------------------------------------------------------------------------
BTW: shouldn't deployment of jboss-seam-booking.ear on GlassFish work?
It does not look like it does (I tried to test with a non-Tomcat server).
Rolf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987452#3987452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987452
19Â years, 7Â months
[JBossCache] - username and session caching
by anwar83
Hi, for your information, I've done a very simple/basic caching using jbosscache about 5 months ago and left it since then. In what have been done, I'm accessing a jbosscache(Mbean) and put a user session id in it. The article that I'm following is here
http://javaboutique.internet.com/tutorials/docaching/index-3.html
What happen is the data is not shared and each user have their own unique session id, which is exactly what I want it to be. I use JbossAS 4.0.4RC2 or 4.0.2 that time and maybe JbossCache 1.3(can't remember well, including the setting).
However when i tried it now with JbossAS 4.0.5 and Jboss 1.4, It doesn't work anymore. Instead the data that being put into cache will be overrided by a data from a second user. So now a first user will get a second user's session id, not his own.
The code use to put and get the data from jboss cache is as follow
|
| private Option option = new Option();
| private Fqn fqn =new Fqn("/user/session");
| private Map<String, String> map = new HashMap<String, String>();
| private TreeCacheMBean cache;
|
| private TreeCacheMBean getTreeCacheMBean() {
|
| if (cache == null) {
| try {
| log.info("TreeCacheMBean is null");
|
| cache = (TreeCacheMBean) MBeanProxyExt.create(
| TreeCacheMBean.class,
| "jboss.cache:service=TomcatClusteringCache", server);
|
| } catch (MalformedObjectNameException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
| return cache;
| }
|
| public void insertSession(String sessionID, String userId) throws Exception {
| option.setCacheModeLocal(true);
| map.put("userId", userId);
| cache = getTreeCacheMBean();
| cache.put(fqn,"sessionId", sessionId, option);
|
| log.info("End input into cache");
| }
|
|
| public String getSession() throws Exception {
| String session = "";
| cache = getTreeCacheMBean();
| option.setCacheModeLocal(true);
| session = (String) cache.get(fqn,"sessionId",option);
| return session;
| }
|
I try to search in forum and found this
http://jboss.org/index.html?module=bb&op=viewtopic&t=86054
which is very-very similar with what I want to do. The question that puzzling me is can jboss cache automatically know who is whom in concurrent access? I means if it is able make a differentiate each user access without the data being overrided by newest insertion. I want to confirm whether my first try is really working or just my mistake in doing testing. If it is able to differentiate a user, then can you point me to configuration that need to be done? I read about locking and concurrency access but not found what i need. Sorry, a newbie here.
Thanks so much,
Anwar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987450#3987450
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987450
19Â years, 7Â months
[Security & JAAS/JBoss] - Form and custom LoginModule : ClassCastException
by matthieugd
I want to use a custom LoginModule within a webapp with the FORM auth-method.
I write a LoginModule that extends AbstractServerLoginModule and configure the login module :
web.xml :
| <login-config>
| <auth-method>FORM</auth-method>
| <realm-name>TestJaasLdapRealm</realm-name>
| <form-login-config>
| <form-login-page>/loginModule.jsp</form-login-page>
| <form-error-page>/loginError.jsp</form-error-page>
| </form-login-config>
| </login-config>
|
jboss-web.xml :
<jboss-web>
| <security-domain>java:/jaas/TestJaasLdapRealm</security-domain>
| </jboss-web>
ga-login-config-service.xml :
| <server>
| <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
| name="jboss:service=DynamicLoginConfig">
| <attribute name="AuthConfig">ga-login-config.xml</attribute>
| <depends optional-attribute-name="LoginConfigService">
| jboss.security:service=XMLLoginConfig
| </depends>
| <depends optional-attribute-name="SecurityManagerService">
| jboss.security:service=JaasSecurityManager
| </depends>
| </mbean>
| </server>
|
ga-login-config.xml :
| <policy>
|
| <application-policy name = "TestJaasLdapRealm">
| <authentication>
| <login-module code = "com.sample.security.TestLoginModule" flag = "required">
| <module-option name="additionalRole">Authenticated</module-option>
| </login-module>
| <login-module code="org.jboss.security.ClientLoginModule" flag="required" />
| </authentication>
| </application-policy>
|
| </policy>
|
But when I submit the form after being redirected I've this exception :
java.lang.ClassCastException: org.jboss.security.plugins.JaasSecurityManager
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:488)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
And in the server.log :
2006-11-21 01:29:39,601 TRACE [org.jboss.security.plugins.JaasSecurityManager] Constructing
| 2006-11-21 01:29:39,601 DEBUG [org.jboss.security.plugins.JaasSecurityManager.TestJaasLdapRealm] CallbackHandler: org.jboss.security.auth.callback.SecurityAssociationHandler@16e1111
| 2006-11-21 01:29:39,601 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@12277ed
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] loadClass(org.jboss.security.plugins.JaasSecurityManagerService$DefaultCacheObjectFactory, false)
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] Searching local repositories
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] findClass(org.jboss.security.plugins.JaasSecurityManagerService$DefaultCacheObjectFactory)
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] Loading class from local repository
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] loadClass(org.jboss.util.TimedCachePolicy, false)
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] Searching local repositories
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] findClass(org.jboss.util.TimedCachePolicy)
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] Delegating to parent classloader at end: java.net.FactoryURLClassLoader@1e4605c
| 2006-11-21 01:29:39,601 DEBUG [org.apache.catalina.loader.WebappClassLoader] Loading class from parent
| 2006-11-21 01:29:39,616 DEBUG [org.apache.catalina.loader.WebappClassLoader] loadClass(org.jboss.util.CachePolicy, false)
| 2006-11-21 01:29:39,616 DEBUG [org.apache.catalina.loader.WebappClassLoader] Searching local repositories
| 2006-11-21 01:29:39,616 DEBUG [org.apache.catalina.loader.WebappClassLoader] findClass(org.jboss.util.CachePolicy)
| 2006-11-21 01:29:39,616 DEBUG [org.apache.catalina.loader.WebappClassLoader] Delegating to parent classloader at end: java.net.FactoryURLClassLoader@1e4605c
| 2006-11-21 01:29:39,616 DEBUG [org.apache.catalina.loader.WebappClassLoader] Loading class from parent
| 2006-11-21 01:29:39,616 DEBUG [org.apache.catalina.loader.WebappClassLoader] loadClass(javax.naming.InvalidNameException, false)
| 2006-11-21 01:29:39,616 DEBUG [org.apache.catalina.loader.WebappClassLoader] loadClass(javax.security.auth.Subject, false)
| 2006-11-21 01:29:39,616 DEBUG [org.jboss.security.plugins.JaasSecurityManager.TestJaasLdapRealm] CachePolicy set to: org.jboss.util.TimedCachePolicy@33cf0f
| 2006-11-21 01:29:39,616 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@33cf0f
| 2006-11-21 01:29:39,616 DEBUG [org.jboss.security.plugins.JaasSecurityManagerService] Added TestJaasLdapRealm, org.jboss.security.plugins.SecurityDomainContext@15ef45a to map
| 2006-11-21 01:29:39,616 TRACE [org.jboss.security.SecurityAssociation] clear, server=true
| 2006-11-21 01:29:39,616 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing
| java.lang.ClassCastException: org.jboss.security.plugins.JaasSecurityManager
| at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:488)
| at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
I try and succed to use my custom LoginModule in a action struts trough the LoginContext("TestJaasLdapRealm", ...) object. But I would like to use a automatic feature within the webcontainer.
Matthieu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987448#3987448
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987448
19Â years, 7Â months
[Messaging, JMS & JBossMQ] - Re: MDB does not get messages
by artemgolubev
I added my service xml to deployment dir:
<?xml version="1.0" encoding="UTF-8"?>
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
but server.log contains the next errors:
2006-11-20 18:13:31,984 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CloseMsg18625160[msgType: m_connectionClosing, msgID: -2147483634, error: null]
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:264)
at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:238)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:131)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:395)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:619)
2006-11-20 18:13:31,984 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
2006-11-20 18:13:31,984 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
java.net.SocketException: socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2247)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2427)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2497)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2569)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2718)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:895)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
at java.lang.Thread.run(Thread.java:619)
2006-11-20 18:13:31,984 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
2006-11-20 18:13:31,984 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to send error reply
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:264)
at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:53)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:408)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:619)
2006-11-20 18:13:31,984 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987445#3987445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987445
19Â years, 7Â months