[jboss-user] [EJB 3.0] - Re: Could not obtain connection to any of these urls: Remote
anonymous wrote : Server remote has: | Host file: | 127.0.0.1 localhost | We are more interested in the host file of the client :) What does the client host file have? It should have a mapping between the hostname obelix and the z.z.z.z public IP. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250789#4250789 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Pop from empty stack after MethodCall.replace
Hi, I need to replace the following call in legacy bytecode: dataInputStream.read(buf, 0, len); by dataInputStream.readFully(buf, 0, len); The original read() has the obvious flaw that it does not check for the return value of dataInputStream.read, which leads to problems if the implementation chooses to fill the buffer only partially. I want to solve this bug using Javassist. I do the following: ExprEditor exprEditor = new ExprEditor() { @Override public void edit(MethodCall methodCall) throws CannotCompileException { String methodName = methodCall.getMethodName(); if (methodName.equals(read)) { methodCall.replace($_ = $0.readFully($$);); didChangesToClassfile = true; } } }; But the created class is broken, it is rejected by the classloader and jode says Pop from empty stack. Obviously I want to replace a method call with a return value which is being ignored by a void method call. I guess this is what causes the problem, but maybe I am wrong. The offending bytecode is below, look around readFully in line 114: public void (String arg1) Code(max_stack = 4, max_locals = 9, code_length = 139) 0:aload_0 1:invokespecial java.lang.Object. ()V (23) 4:new java.io.DataInputStream (2) 7:dup 8:aload_0 9:invokevirtual java.lang.Object.getClass ()Ljava/lang/Class; (24) 12: aload_1 13: invokevirtual java.lang.Class.getResourceAsStream (Ljava/lang/String;)Ljava/io/InputStream; (22) 16: invokespecial java.io.DataInputStream. (Ljava/io/InputStream;)V (16) 19: dup 20: astore_1 21: invokevirtual java.io.DataInputStream.readUnsignedByte ()I (21) 24: i2c 25: bipush70 27: if_icmpeq #31 30: return 31: aload_1 32: invokevirtual java.io.DataInputStream.readUnsignedByte ()I (21) 35: i2c 36: bipush49 38: if_icmpeq #42 41: return 42: aload_0 43: aload_1 44: invokevirtual java.io.DataInputStream.readByte ()B (19) 47: putfield ak.h I (15) 50: aload_0 51: aload_1 52: invokevirtual java.io.DataInputStream.readByte ()B (19) 55: putfield ak.d I (11) 58: aload_0 59: aload_1 60: invokevirtual java.io.DataInputStream.readByte ()B (19) 63: putfield ak.e I (12) 66: aload_0 67: aload_1 68: invokevirtual java.io.DataInputStream.readByte ()B (19) 71: putfield ak.f I (13) 74: aload_0 75: aload_1 76: invokevirtual java.io.DataInputStream.readByte ()B (19) 79: putfield ak.g I (14) 82: aload_1 83: invokevirtual java.io.DataInputStream.readShort ()S (20) 86: dup 87: istore_2 88: newarray 90: astore_3 91: aload_1 92: aload_3 93: iconst_0 94: iload_2 95: istore%7 97: istore%6 99: astore%5 101: astore%4 103: iconst_0 104: istore%8 106: aload %4 108: aload %5 110: iload %6 112: iload %7 114: invokevirtual java.io.DataInputStream.readFully ([BII)V (116) 117: istore%8 119: iload %8 121: pop 122: aload_0 123: aload_3 124: iconst_0 125: iload_2 126: invokestatic javax.microedition.lcdui.Image.createImage ([BII)Ljavax/microedition/lcdui/Image; (34) 129: putfield ak.G Ljavax/microedition/lcdui/Image; (10) 132: aload_1 133: invokevirtual java.io.DataInputStream.close ()V (17) 136: return 137: pop 138: return The original bytecode looks like this: public void (String arg1) Code(max_stack = 4, max_locals = 4, code_length = 116) 0:aload_0 1:invokespecial java.lang.Object. ()V (23) 4:new java.io.DataInputStream (2) 7:dup 8:aload_0 9:invokevirtual java.lang.Object.getClass ()Ljava/lang/Class; (24) 12: aload_1 13: invokevirtual java.lang.Class.getResourceAsStream (Ljava/lang/String;)Ljava/io/InputStream; (22) 16: invokespecial java.io.DataInputStream. (Ljava/io/InputStream;)V (16) 19: dup 20: astore_1 21: invokevirtual java.io.DataInputStream.readUnsignedByte ()I (21) 24: i2c 25: bipush70 27: if_icmpeq #31 30: return 31: aload_1 32: invokevirtual java.io.DataInputStream.readUnsignedByte ()I (21) 35: i2c 36: bipush49 38: if_icmpeq #42 41: return 42: aload_0 43: aload_1 44: invokevirtual java.io.DataInputStream.readByte ()B (19) 47: putfield ak.h I (15) 50: aload_0 51: aload_1 52: invokevirtual java.io.DataInputStream.readByte ()B (19) 55: putfield ak.d I (11) 58: aload_0 59: aload_1 60: invokevirtual java.io.DataInputStream.readByte ()B (19) 63: putfield ak.e I (12) 66: aload_0 67: aload_1 68: invokevirtual
[jboss-user] [JBoss Cache: Core Edition] - Re: How to desing cache in Client/Server mode?
manik, thanks very much. Inval-async mode worked now. I think it is not possible to make only one server response read request, right? if one server failed to response, the other server could response at once. but at most case, both the server loader will response read request. another question, how to make the server readonly? the server will accept changes from client side. it is dangerous for my case. === client: ?xml version=1.0 encoding=UTF-8? | jbosscache xmlns=urn:jboss:jbosscache-core:config:3.0 | | eviction wakeUpInterval=5000 | default algorithmClass=org.jboss.cache.eviction.LRUAlgorithm | eventQueueSize=20 | property name=maxNodes value=5000 / | property name=timeToLive value=100 / | /default | /eviction | | clustering mode=i clusterName=EmsGlobalCluster | async / | jgroupsConfig configFile=udp.xml / | /clustering | | loaders passivation=false shared=false | loader class=org.jboss.cache.loader.ClusteredCacheLoader | properties | timeout = 3000 | /properties | /loader | /loaders | | /jbosscache server: ?xml version=1.0 encoding=UTF-8? | jbosscache xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xmlns=urn:jboss:jbosscache-core:config:3.1 | | transaction | transactionManagerLookupClass=org.jboss.cache.transaction.GenericTransactionManagerLookup / | | eviction wakeUpInterval=5000 | default algorithmClass=org.jboss.cache.eviction.LRUAlgorithm | eventQueueSize=20 | property name=maxNodes value=5000 / | property name=timeToLive value=100 / | /default | /eviction | | clustering mode=i clusterName=EmsGlobalCluster | async / | jgroupsConfig configFile=udp.xml / | /clustering | | loaders passivation=false shared=true | loader class=org.steeven.MyCacheLoader | async=false fetchPersistentState=false ignoreModifications=true | purgeOnStartup=false | properties / | /loader | /loaders | /jbosscache View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250794#4250794 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: ServiceBindingSet
Please provide more details. Which exact version of JBoss AS? And your log shows that its binding to 9100 which is not the default port that JBoss uses. Did you or someone change some configuration file which sets it to 9100. And how do you start the server? Do you pass the jboss.service.binding.set property to the run script? See this wiki for details on how to use the Service Binding Manager in AS-5 http://www.jboss.org/community/wiki/AS5ServiceBindingManager View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250795#4250795 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Exception on ear deployment
You might create a dependancy between your Queue resource and an external MBean Service which is in charge to verify if the remote server is running View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250796#4250796 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss and NetBeans] - Re: Configuring JBoss 5.0.0.GA in NetBeans 6.5
Hi, I reported your message in NetBeans bug tracking system, so it can be addressed for the next release: http://www.netbeans.org/issues/show_bug.cgi?id=170739 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250797#4250797 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: jbm 1.4.3 / jboss 4.2.0
It looks like something is wrong, i would use jboss 5.1 it comes shipped with JBM. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250800#4250800 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Lost message in queue
It sounds like you are receiving the message but not acknowledging it, that means it will still be in the database until you acknowledge. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250801#4250801 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SLSBs and pooling
As Peter mentioned, there have been deployment performance issues in AS-5. However, if you are using JBoss AS 5.1.0.GA then there have been many improvements. But the deployment timings don't yet match with the 4.x series of the AS. See this thread for details about EJB3 deployment performance http://www.jboss.org/index.html?module=bbop=viewtopicp=4231116 As mentioned in that thread : jaikiran wrote : | Feel free to report any improvement or if the timing remains the same. While reporting, please provide details about your application including : | | 1) Number of EJB3 beans | 2) Approximate number of methods in each bean | 3) Time it takes to deploy this single application (its recommended that you let the server start cleanly and once its started drop your application in the deploy folder so that you get an accurate timing for the deployment). If available, the time this application used to take without this new version of EJB3. | 4) Any other information which you might feel is useful. | 5) Operating system and machine configurations While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250802#4250802 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?
Hello klester, I am newbie at jboss forums and am trying to use your guide to configure the timeout in my Jboss server. I've modified jboss-service.xml including the Mbeans UnifiedInvoker and Connector; I've applied changes too in the standardjboss.xml adding the invoker-proxy-binding and replacing in the container Standard Stateless SessionBean to use the new proxy invoker. I've coded a sample HelloWorld Stateless Bean; when I try to deploy the service, Jboss shows me the error: 18:25:02,406 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=HelloWorldTest,service=EJB java.lang.RuntimeException: invoker is null: jboss:service=invoker,type=unified at org.jboss.proxy.ejb.ProxyFactory.setupInvokers(ProxyFactory.java:244) at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:228) at org.jboss.ejb.SessionContainer.startInvokers(SessionContainer.java:421) at org.jboss.ejb.SessionContainer.startService(SessionContainer.java:383) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:428) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy49.start(Unknown Source) at org.jboss.ejb.EjbModule.startService(EjbModule.java:395) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:428) at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) at $Proxy23.start(Unknown Source) at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:627) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at
[jboss-user] [JBoss jBPM] - Re: jBPM 4 - Define Exception Handlers
And I found this: https://jira.jboss.org/jira/browse/JBPM-2028 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250808#4250808 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250808 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - decision node based on data not in task variables
Hello, I'm strugling with the conversion from jbpm3 to jbpm4 in our application: I'm trying to find a workaround for not being able to configure a custom Variable Resolver (we need to make decisions based on data that is not stored in taks variables but in our own datastore) I was thinking implementing something like this: construct transition conditions using a method in a spring bean example: | decision name=evaluate document g=96,102,48,48 | transition name=good to=submit document g=120,60:-37,22 | condition ref=myConditionBean method=isTrue | argstring value=true//arg | /condition | /transition | transition name=bad to=try again g=:-19,-22 | condition class=myConditionBean method=isFalse | argstring value=true//arg | /condition | /transition | /decision | In this case (where the argument for the method is a string true the first transition will be taken. This would allow us to pass as the argument a reference to an object in our own datastore and allow us to inject spring beans in the myConditionBean class for retrieving the data referenced. But, the condition element doesn't allow to reference a class which doesn't implement the Condition interface as far as I can see in the source code. If I would be able to pass an extra argument to the evaluate method in the class implementing Condition (and have this class be referenced as a spring bean), it would also solve my problem. Is any of these things possible? Is there another solution I'm missing? Wkr, Sofie View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250809#4250809 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250809 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - after some tests i discovered the true reason of the problem
Exception in thread JbpmCommandExecutor java.lang.NoClassDefFoundError: org/hibernate/Session at org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:55) at org.jbpm.svc.Services.getService(Services.java:136) at org.jbpm.svc.Services.getPersistenceService(Services.java:175) at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:594) at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:519) at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49) at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32) at org.jbpm.svc.Services.getService(Services.java:136) at org.jbpm.svc.Services.getMessageService(Services.java:172) at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:112) at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250810#4250810 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: BPEL and jBPM4
jBPM4 does not have bpel, nor will it. The choice was made to go a different direction for bpel: https://www.jboss.org/riftsaw View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250811#4250811 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: sub process event propagation
the on event= makes it directional in 4, the event type=... in 3 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250812#4250812 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM4 - Process Dehydration
In jBPM 4, they are by default in the DB View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250814#4250814 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250814 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Database connection
so? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250815#4250815 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: decision node based on data not in task variables
Sofie, Read the userguide about decisions and use the 'handler' solution View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250816#4250816 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: What is the status of PVM in JBPM?
The position of the PVM has not changed, it just does not have a separate project anymore. jBPM is the project. It contains several 'modules' jPDL and BPMN2 (under development) are process 'languages' based on the PVM which is another one of these 'modules'. The PVM can be used completely independent of jPDL, BPMN2 etc Btw, all pvm classes are 'internal'. The reason for this is that they should not be used by people using jPDL or BPMN2, but for people developing their own languages you do not have much choice ;-). Sure some things might change in the future, but not drastically. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250818#4250818 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: BPEL and jBPM4
steeqs4, if you could answer, I would be interested in what you did with Glassfish/BPEL, since Glassfish is my target : _ did you need additional components to Glassfish ? like OpenESB ? _ does your solution have a persistence service ? (or something that remembers when a process was stopped in case of failure or so) _ did you find sufficient documentation ? _ except it is not BPMN, are you globally satisfied with this solution ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250819#4250819 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250819 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM4 Hello World example - null pointer exception
My suggestion would be to at post a stacktrace and read http://www.jboss.org/index.html?module=bbop=viewtopict=158610 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250820#4250820 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: How to desing cache in Client/Server mode?
steeven wrote : | another question, how to make the server readonly? the server will accept changes from client side. it is dangerous for my case. | Hmm. You could make the client not push writes to the server by using the ignoreModifications attrib to the cacheLoader element. You could also write a custom interceptor on the server side (attach this to all server-side caches) to drop all write calls. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250821#4250821 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250821 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Socket Timeout with EJB2 on JBoss v4.0.5GA?
Hello, Just fixed, I have to add the the invoker to start before the scanner starts looking at /deploy. But anyway I am unable to make the EJB Client gets a timeout. I'll reply with more details later. Regards View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250828#4250828 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: extending tasks
We don't want to create custom tasks, we want to extend the task object's data model. So it is not the execution we want to change, but the actual task persisted data model. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250829#4250829 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBM2 Beta5 with JBAS5.1 - Memory leak SessionContinuatio
The loop in ClientProducerImpl seems to be responsible: while (!lastChunk) | { | byte[] bytesRead = new byte[minLargeMessageSize]; | int numberOfBytesRead; | | try | { |numberOfBytesRead = input.read(bytesRead); | } | catch (IOException e) | { |throw new MessagingException(MessagingException.LARGE_MESSAGE_ERROR_BODY, | Error reading the LargeMessageBody, | e); | } | | if (numberOfBytesRead 0) | { |numberOfBytesRead = 0; |lastChunk = true; | } | | final SessionSendContinuationMessage chunk = new SessionSendContinuationMessage(bytesRead, | numberOfBytesRead, | !lastChunk, | lastChunk sendBlocking); | | if (sendBlocking lastChunk) | { |// When sending it blocking, only the last chunk will be blocking. |channel.sendBlocking(chunk); | } | else | { |channel.send(chunk); | } | } | By configuring my connection factory I have minLargeMessageSize=131072 (128K) My input stream is a buffered input stream returning 1024 bytes at a time. The stream source is 512K in length. Therefore, each time around the loop I will create a new 128K byte[] with 1K of data read into it. I then pass a reference to the array to new SessionSendContinuationMessage. With 512 loop interations required to read and send the stream content I consume 64M of heap space in byte arrays. wdyt? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250830#4250830 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: decision node based on data not in task variables
Then next time please mention you did all this and this the additional information you provided now. The handler will work, otherwise I would not have pointed to you, but you have to be creative you can pass arguments to the handler. So make a generic handler and pass it the expressions you want, including e.g. the transitionnames that belong to it. e.g. pass it | conditions | condition | transitionbad/transition | expressionMyCustomExpressionexpression | /condition | condition | transitiongood/transition | expressionMySecondCustomExpressionexpression | /condition | /conditions | And that will be in a Document in the handler where you can do ANYTHING you like with it and return the transitionname without you having to know it in the handler in advance. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250835#4250835 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250835 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: extending tasks
Uhhhmmm... if you want to extend the datamodel you have to have a corresponding class. In jBPM4 that is the TaskActivity class, so by extending that and changing the corresponding config files you achieve what you want I think, so rams.rapo is right View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250838#4250838 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Custom InvokerInterceptor
I'm bumping this as I would be very interested in the response from JBoss themselves. The original questions raised by Ben are highly relevant to the last two JBoss based projects I've worked on, and I'm now hitting it on a 3rd. Would it be possible for JBoss to give a statement on what is the recommended approach to load balancing calls when client and session bean are both inside the container, and that container is clustered? I found a response to this thread on techienuggets http://www.techienuggets.com/Comments?tx=52347 as follows: anonymous wrote : | think you'll want to modify the EJB stack defined in server/all/deploy/ejb3-interceptors-aop.xml. | You can add your custom interceptor or simply remove/comment-out the IsLocal interceptor. | | For example, if you want to make the change for clustered stateless session beans the applicable section could look like this: | | !-- interceptor-ref name=org.jboss.ejb3.remoting.ClusteredIsLocalInterceptor/ -- | interceptor-ref name=org.jboss.aspects.security.SecurityClientInterceptor/ | interceptor-ref name=org.jboss.aspects.tx.ClientTxPropagationInterceptor/ | interceptor-ref name=org.jboss.aspects.remoting.ClusterChooserInterceptor/ | interceptor-ref name=org.jboss.aspects.remoting.InvokeRemoteInterceptor/ | | | Notice the commented out ClusteredIsLocalInterceptor. | | I've been trying to do the exact same thing as you (i.e. cluster ejbs called from within the same JBoss 4.2.3 server). And I just figured this out today. I think it does what I want, but haven't fully exercised it in any way. Let me know if this helps. | | -Randy Could JBoss verify the above as a valid or even recommended approach? Regards, Chris View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250839#4250839 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250839 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JMS Bridge between IBM MQ and JBM
please take a look at the bridge example that comes with JBM download. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250825#4250825 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250825 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM4 - Task Escalation with Timer
djcye, It is very hard for us to understand everything if we just see snippets/partial stacktraces etc... please make a unittest as described in http://www.jboss.org/index.html?module=bbop=viewtopict=158610 so we can have a better look and mayve try ourselves. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250822#4250822 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: decision node based on data not in task variables
Of course I have done this extensively before posting to this mailing list. But this solution isn't working for me because i don't know the names of the transitions in the handler class. We are trying to build a generic system (we create processdefinitions on the fly) and cannot create specific classes for each process. That is why I wanted the handler functionality on the transition conditions and not on the decision node level. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250823#4250823 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: WSRP: failed to configure remote producer
Hi, I am using jboss portal 2.7.2 bundled version on linux platform jdk 1.6 whenever i try accessing http://localhost:8080/portal-wsrp/MarkupService?wsdl I geta a xml error XML Parsing Error: no element found Location: http://localhost:8080/portal-wsrp/MarkupService?wsdl Line Number 1, Column 1: ^ I cant even access endpoint URLs at: http://localhost:8080/portal-wsrp/ServiceDescriptionService http://localhost:8080/portal-wsrp/MarkupService http://localhost:8080/portal-wsrp/RegistrationService http://localhost:8080/portal-wsrp/PortletManagementService the error I get is HTTP GET not supported What might be the problem...plz help me out Thanks Regards !!! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250844#4250844 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services] - Re: Implementing WS-Security Usename Token Profile Authentic
Thanks alessio, setting StubExt.PROPERTY_AUTH_TYPE works fine. I have also a problem with SoapUI Digest which always give me an Invalid User. for exemple : using kermit/thefrog, the generated request for SoapUI is : | soapenv:Envelope xmlns:hel=http://org.qualipso.factory.ws/helloworld; xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; |soapenv:Header | wsse:Security soapenv:mustUnderstand=1 xmlns:wsse=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd; | wsse:UsernameToken wsu:Id=UsernameToken-10666036 xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd; | wsse:Usernamekermit/wsse:Username | wsse:Password Type=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest;a4QMImbwZWY5ofgqZQK7SqkWF9M=/wsse:Password | wsse:NoncebEC2QeCam1oBnj+wpGBPQw==/wsse:Nonce | wsu:Created2009-08-21T10:47:42.580Z/wsu:Created | /wsse:UsernameToken | /wsse:Security |/soapenv:Header |soapenv:Body | hel:sayHelloWorld/ |/soapenv:Body | /soapenv:Envelope | Whereas the generated request for the same credentials using the jboss endorsed JAX-WS 2.1 client is : | env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' | env:Header | wsse:Security env:mustUnderstand='1' xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' | wsu:Timestamp wsu:Id='timestamp' | wsu:Created2009-08-21T10:49:48.298Z/wsu:Created | wsu:Expires2009-08-21T10:54:48.298Z/wsu:Expires | /wsu:Timestamp | wsse:UsernameToken wsu:Id='token-1-1250851788299-24072801' | wsse:Usernamekermit/wsse:Username | wsse:Password Type='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest'oOxvxKABFwsUfCvOpjE+GfyrQJs=/wsse:Password | wsse:Nonce EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary'NXS4XKiKBe9eaJdiAjtCG23A1e3w3wZ9j38POOu4Dvg=/wsse:Nonce | wsse:Created2009-08-21T10:49:48.289Z/wsse:Created | /wsse:UsernameToken | /wsse:Security | /env:Header | env:Body | ns1:sayHelloWorld xmlns:ns1='http://org.qualipso.factory.ws/helloworld'/ns1:sayHelloWorld | /env:Body | /env:Envelope | I don't understand why the SoapUI client is not able to authenticate using the same configuration... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250851#4250851 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250851 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Connecting more than one servers
Hi All, I have one ParentServer, which will generate all the messages [queue/topic] and atleast 20-50 other servers, on which we want to recieve the same message that was sent to the ParentServer by a client program. All these servers are running JBoss AS 5.1.x and JBM 2, BETA 4. Since I am new to messaging, based on whatever I have read so far, a bridge seems to be an appropriate approach for my scenario. 1. Can one of the guru's confirm this or suggest a better alternative. 2. If bridge, can I still connect all these server using the Core bridge instead of using the JMS 1.1 compliant bridge. 3. Do I need to create one bridge for each connection b/w ParentServer and ChildServer ? I do need the JBoss AS application as we are recieving the message via an MDB and would also need some bussiness logic/container help once we receive the message. Thanks in advance, artima. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250858#4250858 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250858 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - multiple domains on single JBoss instance
I have two domains ( abc.xyz.com lmn.pqr.com) mapped to my machine ip. Now, I wish a user, simply by entering abc.xyz.com into her browser should be able to access a war file xyz.war on my JBoss 5 server. Similarly, an entry lmn.pqr.com in browser should lead her to pqr.war on the same JBoss instance. I am fronting my JBoss with Apache httpd web server and using mod_jk as communication means in between web and app servers. Can any one please suggest the ways to achieve this, possibly along with code samples. My Apache-mod_jk-JBoss5 configuration is working fine, probably all I need is only virtual host settings, uriworkermap settings with samples. Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250859#4250859 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250859 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: sub process event propagation
Ronald, Maybe I've missed something but if the event is propagated to the super-process level then I need to write an actionhandler/eventlistener to direct it at the node in question or is it visible to all nodes in the process? Another question - can events be filtered by source node? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250862#4250862 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250862 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Could not obtain connection to any of these urls: Remote
Hi, problem is the same: javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: obelix; nested exception is: java.net.UnknownHostException: obelix] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:724) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589) at javax.naming.InitialContext.lookup(Unknown Source) at demoEJB.Testing.main(Testing.java:27) Caused by: java.rmi.UnknownHostException: Unknown host: obelix; nested exception is: java.net.UnknownHostException: obelix at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) ... 3 more Caused by: java.net.UnknownHostException: obelix at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source) ... 9 more Server remote modify Host file: 127.0.0.1 localhost x.x.x.x obelix I was traying: obelix 77.226.178.32 x.x.x.x localhost I was traying: obelix 77.226.178.32 localhost x.x.x.x is the same . help me. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250864#4250864 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB cannot be resolved to a type when using @EJB from a JS
Using JBOSS 5 and Richfaces. I have an EAR file containing lib.jar ui.war lib.war contains an EJB Service | @Stateless | public class ServiceImpl implements Service { | ... | } | ui.war contains a JSF backing bean Backing | public class Backing{ | | @EJB | Service myService; | | When I try to access a web page using the Backing bean I get the following stack trace. Any idea what is happening here? javax.servlet.ServletException: Servlet execution threw an exception | org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) | org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) | org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368) | org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | | root cause | | java.lang.Error: Unresolved compilation problem: | EJB cannot be resolved to a type | | org.something.Backing.init(Backing.java:8) | sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250870#4250870 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250870 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: BPEL and jBPM4
@npirard: questions about other bpel engines are probably better asked in the respective forums/mailinglist @steeqs4: you have wrong info. - jBPM4 can run on jboss 4.2.x, it is just not tested by the team, probably needs some tweeking here and there - jBPM4 at the moment just uses the graphical notation of BPMN, BPMN2 support as an executable language is under development View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250872#4250872 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250872 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: sub process event propagation
you just need an eventhandler ON the node View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250873#4250873 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250873 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Memory leak / Stale subscriptions after client failover
I'm having difficult with an application deployed in a JBoss 5.0.1 cluster using JBoss messaging. After a period of time, we run out of heap and everything falls over. Using Eclipse Memory Analyzer, I've tracked the leak down to a surfeit of JBossObjectMessage objects, which appear to still be attached to the Topics they were posted to. Looking in the JMX console, these topics have large numbers of messages, seemingly all the messages ever posted. The application uses NON_PERSISTENT messages and non-durable subscriptions, so I would have expected these messages to disappear from the topics on delivery. The second symptom I've noticed is that there is a much larger number of subscriptions on each topic than I would expect. This seems to increase when one of the clients logs a JBoss Messaging server failure detected - waiting for failover to complete message. This failover occurs randomly, even though both nodes in the cluster are up, and never to all subscriptions on a given client. Further, it seems that once this failover has occurred, any further subscriptions to that topic are not cleaned up on client exit. The JBM configuration we are using is that shipped with JBoss, but with MSSQL for persistence. Sorry for the long post. Any thoughts or ideas are much appreciated! Cheers, Leigh View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250869#4250869 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM4 - Process Dehydration
thx! an additional noob question: the userguide explains that changes to variables have to be saved to the DB explicity. in which cases i have to do this ? (1) when i modify variables in an java node - inside the process ? (2) when i modify variables in an eventlistener/handler - inside the process ? (3) when i modify variables from outside ? (change variables over the services) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250881#4250881 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250881 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services] - Re: ...Port does not contain operation meta data for: {http:
Hi, JBoss processes the HandlerTypes in the following order for JAXWS: POST ENDPOINT PRE Since the POST handler needs to parse some information from the soap message to identify the ENDPOINT handler chain to call, you should do your decrypting at the level of the POST handler. To do this, you can annotate your webservice class with @EndpointConfig and define your post handlers in the file standard-jaxws-endpoint-config.xml under META-INF Alternatively, to stay independent from JBoss specific code (ie no dependency to JBoss), you do the below configuration at the level of the deployment descriptors, by modifying the file standard-jaxws-endpoint-config.xml under [JBOSS_HOME]\server\[type]\deployers\jbossws.deployer\META-INF (path differs for JBoss 4.3 ... but same file name) and adding your post-handler chain (example below). endpoint-config | config-nameMurex Security Handlers/config-name | post-handler-chains | javaee:handler-chain | javaee:protocol-bindings##SOAP11_HTTP/javaee:protocol-bindings | javaee:handler | javaee:handler-nameMy Security Handler/javaee:handler-name | javaee:handler-classpackage.security.MySecurityClass/javaee:handler-class | /javaee:handler | /javaee:handler-chain | /post-handler-chains | /endpoint-config The Config-name you create should be referenced in your web.xml file inside your war file such as the following: context-param |param-namejbossws-config-name/param-name |param-valueMy Security Handler/param-value | /context-param Cheers. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250884#4250884 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250884 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: JBoss 4.2.3 and Security Annotations
Hi, activate logging of the security layer, this will probably provide you with more details (e.g. failures in the login module). Take a look at http://www.jboss.org/community/wiki/SecurityFAQ , question 4. Best regards Wolfgang View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250885#4250885 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250885 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re:
Ignore my post above, I figured out that this probably has nothing to do with the JBOSS container. Some kind of issue in my Maven setup prevents the Backed.java class to be compiled correctly... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250886#4250886 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250886 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: What is the status of PVM in JBPM?
kukeltje, thanks for your response it clarified a lot for me. May be you could also comment on persistence a bit: The Alpha version of PVM (http://jboss.org/jbossjbpm/pvm_downloads/) contained some persistence facilities allowing to save process definitions into database tables. In the JBPM 4.0 such facility was removed since process definition is stored as JPDL resource or BLOB now. In our application we still would like to have process structure available through database tables like it was (JBPM_NODE, JBPM_PROCESS, JBPM_TRANSITION etc). What would you recommended to do in such situation? Are there any plans to support database-based process definition persistence in JBPM/PVM? Thanks in advance View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250890#4250890 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250890 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: BPEL and jBPM4
@kukeltje: Thanks, I didn't know about riftsaw and was just coming to that realization wrt BPMN. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250891#4250891 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250891 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Missing messages after the failover of Jboss Node
Configuration: Jboss 4.2.3 GA Jboss Messaging 1.4.2-SP1 ClusteredConnectionFactory is loadbalanced and failover enabled Clustered and FailoverOnNodeLeave is set to true in PostOffice Service Setup: 2 Nodes 1 Sender ( invoking calls to session bean, resulting in JMS events to clustered topic) 1 Receiver (Listing to the clustered topic, with ClusteredConnectionFactory) Scenario: We are running a sender, which is placing the call to the session bean on every 500ms. This call results in three events every time. We are also running the receiver which is continuously listing to those events from the topic. Problem: When i terminate one of my JBoss node in cluster, client pauses for few seconds and then resumes events from other node. But, some events are missed during this process. plz. suggest View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250894#4250894 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250894 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Missing messages after the failover of Jboss Node
Can you post your receiving code here? Thanks. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250895#4250895 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Missing messages after the failover of Jboss Node
plz. find below my receiver code | private void createJMSClient () | { | final Properties props = new Properties(); | props.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); | props.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); | props.put(Context.PROVIDER_URL, NOICLT13274:1100,NOICLT22560:1100,NOICLT13407:1100); | props.put(jnp.timeout, 1000); | props.put(jnp.sotimeout, 1000); | props.put(jnp.disablediscovery, true); | props.put(jnp.partitionName, NOICLT22560_PARTITION); | | try | { | final Context context = new InitialContext(props); | ConnectionFactory mTopicConnectionFactory = (ConnectionFactory) context.lookup(ClusteredConnectionFactory); | System.out.println(mTopicConnectionFactory); | Topic mTopic = (Topic) context.lookup(topic/CMSPublic); | | Connection mTopicConnection = mTopicConnectionFactory.createConnection(); | Session mTopicSession = mTopicConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); | | // Create subscriber | MessageConsumer mSubscriber = mTopicSession.createConsumer(mTopic); | mSubscriber.setMessageListener(this); | mTopicConnection.setExceptionListener(this); | | mTopicConnection.start(); | isConnected = true; | } | catch (final CommunicationException anException) | { | // anException.printStackTrace(); | System.err.println(Server is not avaliable!!! \n Trying to reconnect the server!! + anException.getMessage()); | } | catch (final NamingException anException) | { | // anException.printStackTrace(); | System.err.println(Server is not avaliable!!! \n Trying to reconnect the server!! + anException.getMessage()); | } | | catch (final JMSException anException) | { | // anException.printStackTrace(); | System.err.println(Server is not avaliable!!! \n Trying to reconnect the server!! + anException.getMessage()); | } | catch (Exception finalException) | { | // finalException.printStackTrace(); | System.err.println(Exception while starting JMS event listener. You may not be able to receive event, please restart your application); | } | | } | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250896#4250896 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Missing messages after the failover of Jboss Node
I think you should use durable subscriber to make sure the message won't get lost. Can you try? Thanks Howard View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250899#4250899 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250899 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Missing messages after the failover of Jboss Node
Durable subscription didn't suites our requirement as, durable subscription supports only one active subscriber at a rime. But, in our real scenario, we are targeting more than 1000 clients. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250900#4250900 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBM2 Beta5 with JBAS5.1 - Memory leak SessionContinuatio
What is your windowSize? I will make a few tests. With LargeMessage, you should have a bunch of pending packets waiting to be delivered on the NettyQueue, but you shouldn't have more than what's configured on the windowSize. Otherwise you would get out of memory easily. I would need to look at your test to know what' s happening better. Perhaps you're opening multiple producers? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250902#4250902 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250902 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM 4 - Define Exception Handlers
well in my evaluation criteria i pointed out, that fault handling (of business and technical faults) is important for long runnig workflows. but i am not sure to say yes, in jbpm you can just use a variable, put an err message inside, take another transition and handle the failure - so failure handling is supported somehow its the same behavior as an exception handler in BPEL.. or isn't it ? but then every language with decitionpoints has failure handling XD *confused :(* View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250904#4250904 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250904 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBM2 Beta5 with JBAS5.1 - Memory leak SessionContinuatio
From my jbm-jms.xml connection-factory name=SocketConnectionFactory | connector-ref connector-name=netty/ | entries | entry name=ConnectionFactory/ | entry name=XAConnectionFactory/ | /entries | !-- 128K chunk size for large messages -- | min-large-message-size131072/min-large-message-size | !-- Set the consumer window size to 512K to limit the size of the buffer on the client side -- | consumer-window-size524288/consumer-window-size |/connection-factory | I'm creating a bytes message, adding my buffered stream to it: bytesMessage.setObjectProperty( JMS_JBM_InputStream, pin ); then calling: producer.send( bytesMessage, deliveryMode, priority, timeToLive ); Many Thanks View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250907#4250907 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250907 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM4 - Process Dehydration
where in the userguide is that stated? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250908#4250908 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250908 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBM2 Beta5 with JBAS5.1 - Memory leak SessionContinuatio
A single producer? Or you're opening several Producers? How many threads doing this.. just one? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250909#4250909 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250909 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: What is the status of PVM in JBPM?
Dino, You are thinking in solutions. I'd first like to know what your 'problem' is. If you want an object model of the processdefinition, you can read the xml file from the repository and e.g. use jaxb to make one. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250910#4250910 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250910 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBM2 Beta5 with JBAS5.1 - Memory leak SessionContinuatio
Yes a single producer on one thread from a junit test case. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250912#4250912 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250912 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB injection into an MDB listening to a remote queue. Bug w
Hi, I've setup an MDB to listen to a remote queue using these instructions: http://www.jboss.org/community/wiki/HowDoIConfigureAnEJB3MDBToTalkToARemoteQueue This works great. Next I try and inject an EJB into that MDB using the @EJB annotation. By the way, I'm running JBOSS AS 5.1.0 GA on OSX. This causes the system to barf. Basically, I get a lot of messages of this form: | INFO [JmsActivation] Attempting to reconnect org.jboss.resource.adapter.jms.inflow.jmsactivations...@1bd9e0(ra=org.jboss.resource.adapter.jms.jmsresourceadap...@e858f9 destination=queue/DeliverMPOExternalMessageQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/RemoteJMSProvider user=guest pass=not shown maxMessages=1 minSession=1 maxSession=15 keepAlive=6 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5) | 10:29:25,855 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.jmsactivations...@1bd9e0(ra=org.jboss.resource.adapter.jms.jmsresourceadap...@e858f9 destination=queue/DeliverMPOExternalMessageQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/RemoteJMSProvider user=guest pass=not shown maxMessages=1 minSession=1 maxSession=15 keepAlive=6 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5) | javax.naming.NameNotFoundException: queue not bound | | When I check the remote server I find that everything is working fine. And that missing queue is in the JNDI tree. Any ideas?? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250914#4250914 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250914 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBM2 Beta5 with JBAS5.1 - Memory leak SessionContinuatio
Can you send me a sample test showing this happening? clebert at redhat dot com or clebert dot suconic at jboss dot com View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250915#4250915 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250915 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM 4 - Define Exception Handlers
Confused? The exceptionhandlers in jBPM 3 were *technical* exceptionhandlers, not the ones like in e.g. bpel or compensations in bpmn. Business level 'error handling' can still be done with e.g. transitions that go to certain nodes etc. There just is no specific name or something for it. Compensating things is really difficult, since you could have asynchronous services that are not in a transaction. How to 'compensate' these requires thought anyhow and can be implemented in jpdl. Again, just not with specific identification. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250916#4250916 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250916 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Could not obtain connection to any of these urls: Remote
a0001428 wrote : Hi, | | problem is the same: | | javax.naming.CommunicationException [Root exception is java.rmi.UnknownHostException: Unknown host: obelix; nested exception is: | java.net.UnknownHostException: obelix] | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:724) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589) | at javax.naming.InitialContext.lookup(Unknown Source) | at demoEJB.Testing.main(Testing.java:27) | Caused by: java.rmi.UnknownHostException: Unknown host: obelix; nested exception is: | java.net.UnknownHostException: obelix | at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) | at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) | at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) | at sun.rmi.server.UnicastRef.invoke(Unknown Source) | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) | ... 3 more | Caused by: java.net.UnknownHostException: obelix | at java.net.PlainSocketImpl.connect(Unknown Source) | at java.net.SocksSocketImpl.connect(Unknown Source) | at java.net.Socket.connect(Unknown Source) | at java.net.Socket.connect(Unknown Source) | at java.net.Socket.(Unknown Source) | at java.net.Socket.(Unknown Source) | at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source) | at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source) | ... 9 more | | | Server remote modify Host file: | | 127.0.0.1 localhost | x.x.x.x obelix | | I was traying: | | obelix 77.226.178.32 | x.x.x.x localhost | | I was traying: | | obelix 77.226.178.32 | localhost x.x.x.x | | is the same . | | | help me. | | Hi , In my host file I has mapping Now. 127.0.0.1 local z.z.z.z obelix --- z.z.z.z is IP public but the error is the same. I hope you help me! View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250917#4250917 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250917 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM4 - Process Dehydration
jBPM doesn't have a mechanism for detecting changes automatically to variable values. So if you get e.g. a serializable collection from the process variables and add an element, then you need to set the changed variable value explicitely for the changes to be saved to the DB. http://docs.jboss.org/jbpm/v4.0/userguide/html_single/#variables or did i get it wrong ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250920#4250920 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250920 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Jboss portal - nosuch user found error
Environment: Windows 2003 Server standard Jboss EAP 4.3 Jboss portal 2.6.8 GA removed Hypersoninc DS file added oracle-ds.xml and portal-ds.xml both pointing to Oracle 9i backend. Checked the jbp_users table and it contains the admin and user users. Jboss startsup and no errors on the portal side, but when I go to the home page, a nosuchuser exception is thrown. Her's part of the stack trace: ERROR Cause: java.lang.RuntimeException: org.jboss.portal.identity.NoSuchUserException: No such user No user found with name: admin Message: org.jboss.portal.identity.NoSuchUserException: No such user No user found with name: admin StackTrace: java.lang.RuntimeException: org.jboss.portal.identity.NoSuchUserException: No such user No user found with name: admin at org.jboss.portal.cms.security.AuthorizationProviderImpl.getRoot(AuthorizationProviderImpl.java:236) at org.jboss.portal.cms.impl.jcr.command.ACLEnforcer.computeAccess(ACLEnforcer.java:383) at org.jboss.portal.cms.impl.jcr.command.ACLEnforcer.hasReadAccess(ACLEnforcer.java:238) at org.jboss.portal.cms.impl.jcr.command.ACLEnforcer.hasReadAccess(ACLEnforcer.java:224) at org.jboss.portal.cms.impl.jcr.command.ACLEnforcer.hasAccess(ACLEnforcer.java:132) at org.jboss.portal.cms.security.AuthorizationManagerImpl.checkPermission(AuthorizationManagerImpl.java:114) at org.jboss.portal.cms.impl.interceptors.ACLInterceptor.invoke(ACLInterceptor.java:190) at org.jboss.portal.cms.CMSInterceptor.invoke(CMSInterceptor.java:36) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115) at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157) at org.jboss.portal.cms.impl.jcr.JCRCMS.execute(JCRCMS.java:625) at org.jboss.portal.cms.impl.jcr.ha.HAJCRCMS.execute(HAJCRCMS.java:65) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) Any suggestions? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250921#4250921 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250921 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: jboss 4.2.3 and WrappedConnection.checkTransactionStatus
Created a feature request in jboss jira. Link: https://jira.jboss.org/jira/browse/JBAS-7195 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250922#4250922 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250922 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM4 - Process Dehydration
Yep, you got it wrong you have to SET it, not save it. pseudocode: HashMap String, String var = service.getVariable(myVar); var.put(additionalItem, valueOfItem); Then the processvariable in the engine is not updated. You have to do service.setVariable(myVar, var) and that is with all variables, not just collections View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250923#4250923 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250923 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: What is the status of PVM in JBPM?
kukeltje wrote : | You are thinking in solutions. I'd first like to know what your 'problem' is. If you want an object model of the processdefinition, you can read the xml file from the repository and e.g. use jaxb to make one. - We use a UI framework which can easily work with data residing in DB tables. So, having nodes and transitions available in DB tables would make our development simpler. (Sometimes we need to show list of nodes/transitions to the user and there are UI controls for that). View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250925#4250925 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250925 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - WS-Security without client certificate validation possible?
Hello, I am new to WS-Security and i am very confused now: I want to create a webservice where a lot of authorized clients (user+password protected) can call special methods. The communication between the client server must be encrypted and the server should authenticate to the client (signature). At first i secured my slsb webservice with jaas roles. The webservice's @WebContext is set to authMethod=BASIC so clients can bind a username+password to the request context and authenticate. That works well. The next i wanted to do is to secure the communication between the client and server. The standard for that seams to be the ws-security. But why there is a must to store the clients public key on the server? To authenticate clients it could be needed ... ok. But my authentication is done at the ejb container and i only want to encrypt the communication ( authenticate the server to client). Is there a way to use the ws-security like it is without storing validating client public keys on the server side? I think i didnt got the point and my understanding is a potential security risk... So it would be nice if you can help me, guido View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250926#4250926 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250926 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM4 - Process Dehydration
thx for support, now i see =) i realy would like to invite you to a beer ^^ View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250929#4250929 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250929 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Network interfaces configuration
Hello, everybody! I've a minor JBoss configuration problem. Consider the following netstat -lanp | grep tcp | grep LISTEN output: | tcp0 0 127.0.0.1:3873 0.0.0.0:* LISTEN 3055/java | tcp0 0 0.0.0.0:53570 0.0.0.0:* LISTEN 3055/java | tcp0 0 0.0.0.0:43266 0.0.0.0:* LISTEN 3055/java | tcp0 0 0.0.0.0:14430.0.0.0:* LISTEN 3055/java | tcp0 0 127.0.0.1:1100 0.0.0.0:* LISTEN 3055/java | tcp0 0 127.0.0.1:1101 0.0.0.0:* LISTEN 3055/java | tcp0 0 0.0.0.0:49813 0.0.0.0:* LISTEN 3055/java | tcp0 0 127.0.0.1:8085 0.0.0.0:* LISTEN 3055/java | tcp0 0 127.0.0.1: 0.0.0.0:* LISTEN 3055/java | tcp0 0 127.0.0.1:4445 0.0.0.0:* LISTEN 3055/java | tcp0 0 127.0.0.1:4446 0.0.0.0:* LISTEN 3055/java | All I want is to force JBoss to listen sockets on 127.0.0.1 excepting only single HTTPS interface (0.0.0.0) | tcp0 0 0.0.0.0:14430.0.0.0:* LISTEN 3055/java | But after there are some strange sockets that are open on 0.0.0.0: | tcp0 0 0.0.0.0:53570 0.0.0.0:* LISTEN 3055/java | tcp0 0 0.0.0.0:43266 0.0.0.0:* LISTEN 3055/java | tcp0 0 0.0.0.0:49813 0.0.0.0:* LISTEN 3055/java | The questions are: what is that and how to dean with these sockets? Are there any security issues related to these ports? Any help is appreciated. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250930#4250930 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250930 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Unable to inject EJBs into an MDB listening to a remote queu
I have an MDB listening to a remote queue. Both my MDB and my queue are running in JBOSS AS 5.1.0 servers. The queue is running on a Solaris 10 box and the MDB is running on a OSX box (my laptop.) I setup my MDB acording to these steps: http://www.jboss.org/community/wiki/HowDoIConfigureAnEJB3MDBToTalkToARemoteQueue This works fine. I can get messages with no issues. I then tried to inject an EJB using the @EJB annotation. At this point I get error messages like this: | :PERSISTENT, deliveryId=0 | javax.ejb.EJBTransactionRolledbackException: Unable to inject jndi dependency: env/com.sterling.transmail.gateway.its.mdb.TransmailMessageConsumerBean/transformationEngine into property com.sterling.transmail.gateway.its.mdb.TransmailMessageConsumerBean.transformationEngine: TransmailITSGateway not bound | Also, it's worth noting that if i point my MDB to a local queue everything works fine. I'm not doing anything special. Just a run of the mill MDB that calls a stateless session bean. But I can't seem to get it to work. Any ideas?? Karthik View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250934#4250934 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250934 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: jBPM4 - Process Dehydration
Beer? Definitely not tonight (even if you lived next door) since I still am not fully recuperated from last night. So can I take a rain check? (where do you live?) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250935#4250935 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250935 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM] - Re: What is the status of PVM in JBPM?
a ui framework for? Designing processes? Then I think you are out of luck. It would be very complex to make db tables like in 3. The current (4) situation is much simpler for most cases (but yours). Yet, I'd almost like to ask the same question again what is it that you want to achieve? What kind of list of nodes/transitions do you want to show? While executing processes? While designing them? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250933#4250933 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250933 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: System properties not replaced in ds.xml when properties
I still get the same error even when the doubleslash is corrected: 2009-08-21 14:00:04,317 INFO [org.jboss.varia.property.SystemPropertiesService] Loaded system properties from: file:/C:/jboss-4.2.2.GA/server/default/conf/props/rdm.properties rdm.properties | # General properties | | rdm.java.naming.provider.url=localhost\:1199 | rdm.aspuc.java.naming.provider.url=nycdpdevjboss01\:1699 | rdm.userLookupEnabled=true | rdm.seam.debug=true | rdm.facelets.debug=true | | # Hibernate properties | rdm.hibernate.jdbc.batch_size=50 | | # Deployer properties | | rdm.deployer.mq.name=SYSTEM.JMS.D.RDM.INVENTORY.UPDATE | rdm.deployer.refreshWorkspaceEnabled=true | rdm.deployer.transactionTimeout=1800 | rdm.deployer.transactionTimeoutPerTargetDb=900 | | # Database properties | rdm.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:REFD10 | rdm.ds.owner.username=REFDEV | | rdm.xads.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:REFD10 | rdm.xads.owner.username=REFDEV | | rdm.odsbdev.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10 | rdm.odsbdev.ds.owner.username=REFAPPDEV | | rdm.odsbint.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10 | rdm.odsbint.ds.owner.username=REFAPPDEVINT | | rdm.odsbstg.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10 | rdm.odsbstg.ds.owner.username=REFAPPDEVSTG | | rdm.odsbprod.ds.connection.url=jdbc:oracle:thin:@secdpdevdb01:1521:DEV10 | rdm.odsbprod.ds.owner.username=REFAPPDEVPROD | | rdm.archlinkdev.ds.connection.url=jdbc\:sqlserver\://ARCHLINKDEVSQL | | # MQ properties | | rdm.jnpPort=1199 | | rdm.mq.topicConnectionFactory.brokerControlQueue=SYSTEM.PUBSUB.PROXY.IN | rdm.mq.topicConnectionFactory.brokerPubQueue=ARCH.CLAIM.PROXY.JMS | rdm.mq.topicConnectionFactory.brokerSubQueue=SYSTEM.JMS.ND.PTS.* | rdm.mq.topicConnectionFactory.statusRefreshInterval=1000 | | rdm.mq.brokerQueueManager=DLMQ02 | rdm.mq.hostname=nycdpdevmsgbrk01 | rdm.mq.channel=JBOSS | rdm.mq.port=1414 I think that somehow jboss may be parsing all config files inside the EAR eagerly and set all attributes of mbeans in the same phase. This would not give the opportunity for the system properties to load before that since the properties service is itself included in the ear.. What do you think? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250941#4250941 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250941 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Uploading dtd files in JBoss
Where shoudl I upload dtd files for xml files that my web pplications serve? I can add the url for the dtd in the prologue of the xml file so the dtd can be used seamleassly View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250955#4250955 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250955 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JMS Bridge between IBM MQ and JBM
Hi gaohoward, Thanks for your reply. I followed the examples but there is no sample with IBM MQ. I tried with the below conf without luck. I get the java.lang.IllegalArgumentException: Connection factory must be XAConnectionFactory with the following conf. Please let me know how to make IVTCF XA enabled. wmq.jmsra-ds.xml - connection-factories |!-- connection factory definition -- | tx-connection-factory | jndi-nameIVTCF/jndi-name | xa-transaction / | rar-namewmq.jmsra.rar/rar-name | connection-definitionjavax.jms.ConnectionFactory/connection-definition | config-property name=channel type=java.lang.StringWAS/config-property | config-property name=queueManager type=java.lang.String/config-property | config-property name=transportType type=java.lang.StringBINDINGS/config-property | security-domain-and-applicationJmsXARealm/security-domain-and-application | /tx-connection-factory View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250958#4250958 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250958 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: WSRP: failed to configure remote producer
I found that user is saved in session, but not the roles. Therefore, I changed the viewfile.jsp and pending_items.jsp so that roles are saved in the session. I also changed the CMSPreviewServlet so that it retrieves the roles from the session and put it in JCRCMS object. Now it is working fine. The changed codes are as follows. Following are added to the jsp's. Set roles = new HashSet(); // Get the current authenticated subject through the JACC contract Subject subject = (Subject)PolicyContext.getContext(javax.security.auth.Subject.container); if (subject != null) { Set tmp = subject.getPrincipals(JACCPortalPrincipal.class); JACCPortalPrincipal pp = null; for (Iterator k = tmp.iterator(); k.hasNext();) { pp = (JACCPortalPrincipal) k.next(); if (pp != null) { break; } } if (pp == null) { pp = new JACCPortalPrincipal(subject); tmp.add(pp); // Lazy create all the permission containers for the given role names for (Iterator k = pp.getRoles().iterator(); k.hasNext();) { Principal role = (Principal) k.next(); roles.add(role.getName()); } } } request.getSession().setAttribute(remoteRoles, roles); Following were added to CMSPreviewServlet Set roles = (Set)request.getSession().getAttribute(remoteRoles); JCRCMS.setRoles(roles); View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250973#4250973 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250973 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Jboss portal - nosuch user found error
I would suggest you remove the schema and create a brand new one. Then start the jboss portal server. It will create a brand new user table. Brian Ko View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250974#4250974 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250974 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: CMSException(Access denied) for pdf or doc content
Have you tried with non CMS super user? It works fine with CMS super user. Also it works with anonymous ot user permission. It does not work only with role permission. I already found the solution and I will post it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250975#4250975 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250975 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Re: WSRP: failed to configure remote producer
Sorry for the wrong posting. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250976#4250976 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250976 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: CMSException(Access denied) for pdf or doc content
I found that user is saved in session, but not the roles. Therefore, I changed the viewfile.jsp and pending_items.jsp so that roles are saved in the session. I also changed the CMSPreviewServlet so that it retrieves the roles from the session and put it in JCRCMS object. Now it is working fine. The changed codes are as follows. Following are added to the jsp's. Set roles = new HashSet(); // Get the current authenticated subject through the JACC contract Subject subject = (Subject)PolicyContext.getContext(javax.security.auth.Subject.container); if (subject != null) { Set tmp = subject.getPrincipals(JACCPortalPrincipal.class); JACCPortalPrincipal pp = null; for (Iterator k = tmp.iterator(); k.hasNext();) { pp = (JACCPortalPrincipal) k.next(); if (pp != null) { break; } } if (pp == null) { pp = new JACCPortalPrincipal(subject); tmp.add(pp); // Lazy create all the permission containers for the given role names for (Iterator k = pp.getRoles().iterator(); k.hasNext();) { Principal role = (Principal) k.next(); roles.add(role.getName()); } } } request.getSession().setAttribute(remoteRoles, roles); Following were added to CMSPreviewServlet Set roles = (Set)request.getSession().getAttribute(remoteRoles); JCRCMS.setRoles(roles); View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250977#4250977 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250977 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Trying to send e-mail using JavaMail, JBoss 5, and JNDI
Hello there, Am using JBoss 5.1.0GA and JDK 1.5.0_19 on OS X Leopard. Created a working [SendMailServlet|http://tinyurl.com/SendMailServletCode]. Have now decided to refactor it into two separate classes (extract out JavaMail code to a separate class and create a ServletController). Am also trying to use JNDI to access the connection properties in the mail-service.xml configuration file residing in JBoss. The Mailer class contains the reusable functionality needed to send an e-mail: | public class Mailer { | private Session mailSession; | | protected void sendMsg(String email, String subject, String body) | throws MessagingException, NamingException { | Properties props = new Properties(); | InitialContext ictx = new InitialContext(props); | Session mailSession = (Session) ictx.lookup(java:/Mail); | // Session mailSessoin = Session.getDefaultInstance(props); | String username = (String) props.get(mail.smtps.user); | String password = (String) props.get(mail.smtps.password); | | MimeMessage message = new MimeMessage(mailSession); | message.setSubject(subject); | message.setRecipients(javax.mail.Message.RecipientType.TO, | javax.mail.internet.InternetAddress.parse(email, false)); | message.setText(body); | message.saveChanges(); | | Transport transport = mailSession.getTransport(smtps); | try { | transport.connect(username, password); | transport.sendMessage(message, message.getAllRecipients()); | Logger.getLogger(this.getClass()).warn(Message sent); | } | finally { | transport.close(); | } | } | } | The MailController class serves as a standard Java Servlet which invokes the Mailer.class's sendMsg() method: | public class MailController extends HttpServlet { | /** static final HTML setting for content type */ | private static final String HTML = text/html; | | myapp/** static final HTML setting for content type */ | private static final String PLAIN = text/plain; | | public void doGet(HttpServletRequest request, HttpServletResponse response) | throws ServletException, IOException { | doPost(request, response); | } | | public void doPost(HttpServletRequest request, HttpServletResponse response) | throws ServletException, IOException { | response.setContentType(PLAIN); | PrintWriter out = response.getWriter(); | String mailToken = TokenUtil.getEncryptedKey(); | String body = Hello there, + \n\n | + Wanna play a game of golf? + \n\n | + Please confirm: https://localhost:8443/myapp/confirm?token=; | + mailToken + \n\n + -Golf USA; | Mailer mailer = new Mailer(); | try { | mailer.sendMsg(recipi...@gmail.com, Golf Invitation!, body); | out.println(Message Sent); | } | catch (MessagingException e) { | e.printStackTrace(); | } | catch (NamingException e) { | e.printStackTrace(); | } | } | } | Have the mail configuration set under $JBOSS_HOME/server/default/deploy/mail-service.xml: | server | mbean code=org.jboss.mail.MailService name=jboss:service=Mail | attribute name=JNDINamejava:/Mail/attribute | attribute name=Useruser/attribute | attribute name=Passwordpassword/attribute | attribute name=Configuration | configuration | property name=mail.store.protocol value=pop3/ | property name=mail.transport.protocol value=smtp/ | property name=mail.user value=user/ | property name=mail.pop3.host value=pop3.gmail.com/ | property name=mail.smtp.host value=smtp.gmail.com/ | property name=mail.smtp.port value=25/ | property name=mail.from value=u...@gmail.com/ | property name=mail.debug value=true/ | /configuration | /attribute | dependsjboss:service=Naming/depends | /mbean | /server | web.xml (Deployment Descriptor): | servlet | servlet-nameMailController/servlet-name | servlet-classcom.myapp.MailController/servlet-class | /servlet | | servlet-mapping | servlet-nameMailController/servlet-name | url-pattern/sendmail/url-pattern | /servlet-mapping | This is what is outputted when I start JBOSS and click point my browser to: https://localhost:8443/myapp/sendmail | [MailService] Mail Service bound to java:/Mail | | [STDOUT] DEBUG: JavaMail