[jboss-user] [EJB 3.0 Users] - Re: Custom StrictMaxPool settings in ...-aop.xml ignored
I am trying to use StrictMaxPool in JBoss 5.1.0.GA and the properties in the -aop.xml file seem to be ignored. This is for a stateless session bean. The EJB3 container seems to honor only the properties in ejb3-interceptors-aop.xml. Any -aop.xml bundled with the EJB application seem to be ignored. Any ideas what I could be missing? Thanks, Shreyas jboss.xml: | | http://www.jboss.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="5.0" xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_0.xsd";> | | | ClusterOne.USA_MAP.MapServer | esri/services/ClusterOne/MapServer/USA_MAP | true | | ClusterOne | org.jboss.ha.framework.interfaces.RoundRobin | | Strictly Pooled Stateless Bean | | | | mydomain-aop.xml: | | | | | @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=10, timeout=1) | | | | | | @org.jboss.ejb3.annotation.Pool (value="StrictMaxPool", maxSize=10, timeout=1) | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266854#4266854 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Exception when trying to get ConnectionFactory
I have this simple program to use JMS. When it runs: TopicConnectionFactory tcf = (TopicConnectionFactory) context.lookup("ConnectionFactory"); I get an exception: Exception in thread "main" java.lang.NoClassDefFoundError: javassist/NotFoundException at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.(ClientConnectionFactoryDelegate.java) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at java.lang.reflect.Field.getFieldAccessor(Field.java:899) at java.lang.reflect.Field.getLong(Field.java:528) at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1614) at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52) at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:425) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(ObjectStreamClass.java:413) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:310) at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:547) at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at java.rmi.MarshalledObject.get(MarshalledObject.java:142) at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627) at javax.naming.InitialContext.lookup(InitialContext.java:392) at com.gdit.listener.JMSExample.testMessage(JMSExample.java:35) at com.gdit.listener.JMSExample.main(JMSExample.java:20) Caused by: java.lang.ClassNotFoundException: javassist.NotFoundException at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 30 more | package com.gdit.listener; | | import java.util.Properties; | | import javax.jms.Message; | import javax.jms.MessageListener; | import javax.jms.TextMessage; | import javax.jms.Topic; | import javax.jms.TopicConnection; | import javax.jms.TopicConnectionFactory; | import javax.jms.TopicPublisher; | import javax.jms.TopicSession; | import javax.jms.TopicSubscriber; | import javax.naming.Context; | import javax.naming.InitialContext; | | public class JMSExample implements MessageListener { | | public static void main(String argc[]) { | new JMSExample().testMessage(); | } | | public void testMessage() { | TopicConnection conn = null; | TopicSession session = null; | Topic topic = null; | try { | Properties props = new Properties(); | props.setProperty("java.naming.factory.initial", | "org.jboss.naming.NamingContextFactory"); | props.setProperty("java.naming.factory.url.pkgs", | "org.jboss.naming"); | props.setProperty("java.naming.provider.url", "jnp://localhost:1199"); | Context context = new InitialContext(props); |TopicConnectionFactory tcf = (TopicConnectionFactory) context.lookup("ConnectionFactory"); | conn = tcf.createTopicConnection(); | topic = (Topic) context.lookup("topic/testTopic"); | session = conn.createTopicSession(false, | TopicSession.AUTO_ACKNOWLEDGE); | conn.start(); | TopicPublisher send = session.createPublisher(topic); | TextMessage tm = session.createTextMessage("JavaBeat Test Message"); | send.publish(tm); | se
[jboss-user] [EJB] - Re: Memory Leak in JBoss EJB
venukb, did you manage resolve this issue? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266848#4266848 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - How to create a new profile outside theJboss-as/server direc
I am using JBoss EAP/AS 5.0. For the purposes of management, I would like to create multiple profiles that are outside the Jboss-as/server directory. I would appreciate any help in doing this. Is this even possible? Thanks in advance View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266846#4266846 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266846 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0 Users] - Set JNDI location for EJB 3.0 Bean in jboss-4.2.1.GA
I'm using jboss-4.2.1.GA with EJB 3.0 session beans. I have 2 local, stateless session beans annotated with @Local. I can successfully deploy an EAR with the session beans as long as I do not have any configuration files. However, I want to use jboss.xml to specify where in JNDI the beans should be put/bound. When I add /META-INF/ejb-jar.xml and /META-INF/jboss.xml I get a NullPointerException when I try to deploy. My ejb-jar.xml is: | | | AlumniLocal | org.ferris.oths.domain.alumni.AlumniLocal | org.ferris.oths.domain.alumni.AlumniEjb | Stateless | Container | | | AlumniPropertiesLocal | org.ferris.oths.domain.properties.AlumniPropertiesLocal | org.ferris.oths.domain.properties.AlumniPropertiesEjb | Stateless | Container | | | My jboss.xml is: -- | | | AlumniLocal | oths-domain/AlumniLocal | | | AlumniPropertiesLocal | oths-domain/AlumniPropertiesLocal | | | Since the beans deploy fine without the configuration files (using only ejb3 annotations) there has to be somethign wrong with these configuration files. What am I doing wrong here?? How can I get this configuration correct?? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266842#4266842 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache Users] - Re: Can't acquire lock in 0 ms
In my case i see that two jvms are each trying to update the same set of nodes, however i have lockAcquisitionTimeout="20" so I expected that they would have at least waited that long before freaking out. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266840#4266840 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266840 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Spring Integration] - Re: Unabled to return specified bean factory in web applicat
Hi Marius, Finally it works! I just replaced the deployer with jboss-spring-jdk5-2.5.jar. It works now. Thank you so so much! I have few other questions for you: 1. With this spring deployer, can the jboss-spring.xml in the spring archive file take the tokens from a properties file in default/conf? It sounds abviously. But just want to make sure. 2. If I have two spring archive files, say FATHER.spring and MOTHER.spring, from a CHILD.war, is it possible for the CHILD to inherit spring beans from both FATHER and MOTHER? Can web context factory have two parents? If the spring deployer can merge two factories into one, say PARENT, then CHILD can easily take beans from PARENT (i.e. both of FATHER and MOTHER), not sure if this is the behavior of the current spring deployer. If not, it would be a very useful feature. This morning, I installed JBoss 5.1.0-CR1 and Spring deployer (3.2) from SNOWDROP distribution. I tried my spring archive and web service war. I got the following exception. It seems that, for deployer 2.5 (with JBOSS 4.x) and 3.2 (with JBOSS 5.x), spring archives have different structure. The way to retrieve spring bean in web service seems to be different too. Thank you so much for helping me on this. Have a nice weekend! Ivan Below is the stacktrace of JBOSS 5.1.0-CR1 | 2009-11-20 15:44:22,797 ERROR [org.apache.catalina.core.StandardContext] (main) Context [/test-spring-web-service] startup failed due to previous errors | | java.lang.RuntimeException: mapped-name is required for org.apache.cxf.buslifecycle.CXFBusLifeCycleManager/bus of deployment test-spring-web-service.war | | at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs(WebResourceHandler.java:287) | | at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXml(WebResourceHandler.java:325) | | at org.jboss.web.tomcat.service.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:550) | | at org.jboss.web.tomcat.service.WebCtxLoader.start(WebCtxLoader.java:158) | | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4272) | | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310) | | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142) | | at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) | | at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) | | at org.jboss.web.deployers.WebModule.start(WebModule.java:97) | | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | | at java.lang.reflect.Method.invoke(Method.java:585) | | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) | | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) | | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) | | at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) | | at $Proxy38.start(Unknown Source) | | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) | | at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) | | at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) | | at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) | | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | | at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286) | | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631) | | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082) | | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | | at org.jboss.dependency.plugins.AbstractController.change(AbstractControlle
[jboss-user] [Spring Integration] - Re: Unabled to return specified bean factory in web applicat
OK, thanks for posting the stacktrace. It seems indeed like you have an old version of the deployer. In the newer versions, DefaultBeanDefinitionDocumentReader is used instead of DefaultXmlBeanDefinitionParser. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266838#4266838 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Spring Integration] - Re: Unabled to return specified bean factory in web applicat
Marius, Here is the stacktrace. Please take a look while I am trying to sync up versions as you advised. Thanks, | 2009-11-20 15:52:44,238 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/C:/jboss-4.2.2.GA/server/default/deploy/MySpringBean.spring | | java.lang.NoClassDefFoundError: org/springframework/beans/factory/xml/DefaultXmlBeanDefinitionParser | | at java.lang.ClassLoader.defineClass1(Native Method) | | at java.lang.ClassLoader.defineClass(ClassLoader.java:620) | | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) | | at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) | | at java.net.URLClassLoader.access$100(URLClassLoader.java:56) | | at java.net.URLClassLoader$1.run(URLClassLoader.java:195) | | at java.security.AccessController.doPrivileged(Native Method) | | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) | | at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682) | | at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662) | | at java.lang.ClassLoader.loadClass(ClassLoader.java:306) | | at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200) | | at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131) | | at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399) | | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527) | | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415) | | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) | | at org.jboss.spring.factory.NamedXmlBeanDefinitionReader.(NamedXmlBeanDefinitionReader.java:45) | | at org.jboss.spring.factory.NamedXmlApplicationContext.loadBeanDefinitions(NamedXmlApplicationContext.java:64) | | at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) | | at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:423) | | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:353) | | at org.jboss.spring.factory.NamedXmlApplicationContext.(NamedXmlApplicationContext.java:58) | | at org.jboss.spring.factory.NamedXmlApplicationContext.(NamedXmlApplicationContext.java:48) | | at org.jboss.spring.factory.ApplicationContextLoaderImpl.createBeanFactory(ApplicationContextLoaderImpl.java:36) | | at org.jboss.spring.factory.AbstractBeanFactoryLoader.create(AbstractBeanFactoryLoader.java:85) | | at org.jboss.spring.deployment.SpringDeployer.create(SpringDeployer.java:116) | | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | | at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) | | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | | at java.lang.reflect.Method.invoke(Method.java:585) | | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | | at $Proxy9.deploy(Unknown Source) | | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) | | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) | | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) | | at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) | | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport
[jboss-user] [Spring Integration] - Re: Unabled to return specified bean factory in web applicat
Ivan, For 4.2 you need to use the 2.x version of the deployer (version 3.x works with AS5). Also, it seems like you are using a relatively old version of the deployer (that's what causes the NoClassDefFoundError). Please make sure that you're using latest deployer (2.1) , which is to be found here: http://sourceforge.net/projects/jboss/files/JBoss-Spring%20Integration/Spring%20Deployer%202.1/ Depending on what version of Spring you're currently using, you can get the 2.5 or 2.0.8 version of the deployer, but I would recommend the 2.5 version (just for the sake of having a newer version of Spring). I don't know exactly what version of Spring is bundled in the 2.5 distribution (I think it is 2.5.5), but it should be safe to replace the bundled jars with later versions - like 2.5.6. In any case, make sure that you're using the same version of spring-web.jar in the webapp as the rest of the jars (otherwise you'll end up with NoSuchMethodError and cohorts). BTW, out of curiosity, could you post the stacktrace with java.lang.NoClassDefFoundError? Marius View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266831#4266831 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266831 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - [jBPM 4.2] JndiDescriptor and JndiBinding
Hi Can anyone please explain me what are these clasees and the use of these classes. Thanks for your reply View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266830#4266830 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266830 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: jbpm 4.2 - Subprocess issue
I have the same bug after migrating from 4.1 to 4.2. I've created the JIRA https://jira.jboss.org/jira/browse/JBPM-2651. If someone else has this bug, please vote for it so it gets fixed. This is a blocker bug for me. Thanks, Sergio View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266826#4266826 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Spring Integration] - Re: Unabled to return specified bean factory in web applicat
Hi Marius, I did more testing. The problem is becoming more specific. I tried both spring deployer release 2 and release 3. It contains | jboss-spring-jdk5.jar | spring-aop.jar | spring-beans.jar | spring-context.jar | spring-core.jar | I am not clear which version of the spring framework come along with depoyer (say version 3). After I replaced spring jars in default/lib with them, it is okay to deploy my spring archive. However it doesn't work with spring-web.jar, which come from spring framework package. It seems the the spring-web.jar (from spring framework) and other spring jar files (from deployer) are incompatible. Can you please tell me which spring-web.jar work well with spring jar files (along with spring deployer release 3)? I also replaced spring jar files with spring framework 2.5.5 or 2.0.8 or 1.0.8, it turns out the spring deployer couldn't find DefaultXmlBeanDefinitionParser. | java.lang.NoClassDefFoundError: org/springframework/beans/factory/xml/DefaultXmlBeanDefinitionParser | Yes, DefaultXmlBeanDefinitionParser doesn't exist in any of above spring frameworks. It seems that the spring jar files in the deployer are customized somehow. Can you verify that as well? How can I solve this incompatible problem? Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266817#4266817 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266817 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Problems with examples.
I'm running jboss 4.2.3GA on windows XP I'm running java jdk1.6.0_11 and I've installed jboss-messaging-1.4.5.GA and followed install instructions here:http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.5.GA/html/installation.html#install.extra-steps. I've had to change my org.jboss.services.binding.ServiceBindingManager in jboss-services.xml to the set ports-01 because of a port conflict on my machine. I'm running the queue validation section of the above document Section 4.3 to validate my installation. When I run it I get the following stack trace: F:\jboss-messaging-1.4.5.GA\examples\queue>ant Buildfile: build.xml identify: [echo] ### [echo] # Running the QUEUE example # [echo] ### [echo] The queue: testQueue [echo] The client jar: ../..//jboss-messaging-client.jar sanity-check: init: compile: run: [java] javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming. CommunicationException: Receive timed out [Root exception is java.net.SocketTime outException: Receive timed out] [Root exception is javax.naming.CommunicationEx ception: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]] [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java: 1562) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:63 4) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62 7) [java] at javax.naming.InitialContext.lookup(InitialContext.java:392) [java] at org.jboss.example.jms.common.Util.doesDestinationExist(Util.j ava:55) [java] at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupp ort.java:236) [java] at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupp ort.java:197) [java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSuppor t.java:147) [java] at org.jboss.example.jms.queue.QueueExample.main(QueueExample.ja va:134) [java] Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableExcepti on: Failed to connect to server localhost:1099 [Root exception is java.net.Conne ctException: Connection refused: connect]] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :274) [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java: 1533) [java] ... 8 more [java] Caused by: javax.naming.ServiceUnavailableException: Failed to conne ct to server localhost:1099 [Root exception is java.net.ConnectException: Connec tion refused: connect] [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :248) [java] ... 9 more [java] Caused by: java.net.ConnectException: Connection refused: connect [java] at java.net.PlainSocketImpl.socketConnect(Native Method) [java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) [java] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.jav a:195) [java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) [java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) [java] at java.net.Socket.connect(Socket.java:519) [java] at java.net.Socket.connect(Socket.java:469) [java] at java.net.Socket.(Socket.java:366) [java] at java.net.Socket.(Socket.java:267) [java] [java] Please verify if you have access to the server. If you are using JBo ssEAP maybe you don't have security access [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke tFactory.java:84) [java] at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocke tFactory.java:77) [java] at org.jnp.interfaces.NamingContext.getServer(NamingContext.java :244) [java] ... 9 more [java] [java] # [java] ###FAILURE! ### [java] # BUILD FAILED F:\jboss-messaging-1.4.5.GA\examples\queue\build.xml:79: Java returned: 1 How do I change the port it is looking from 1099 to the one that ports1 uses 1199? Thanks for the help. Mike View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266816#4266816 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jbo
[jboss-user] [JBoss Messaging Users] - Re: message publishing to stopped topic
Thanks for the reply, Here's the code for two MBeans - producer and consumer: Producer: | package topictest; | | import java.util.concurrent.atomic.AtomicLong; | | import javax.annotation.Resource; | import javax.jms.JMSException; | import javax.jms.Session; | import javax.jms.TextMessage; | import javax.jms.Topic; | import javax.jms.TopicConnection; | import javax.jms.TopicConnectionFactory; | import javax.jms.TopicPublisher; | import javax.jms.TopicSession; | | import org.apache.log4j.Logger; | import org.jboss.annotation.ejb.Service; | | @Service(objectName = "test:service=Producer") | public class TestProducer implements TestProducerMBean { | | @Resource(mappedName = "java:/JmsXA") | private TopicConnectionFactory tConnFactory; | | private TopicSession tSession; | | private TopicConnection connection; | | @Resource(mappedName = "/topic/test-Topic") | private Topic topic; | | private TopicPublisher publisher; | | private AtomicLong counter = new AtomicLong(); | | private static final Logger logger = Logger.getLogger(TestProducer.class); | | @Override | public void send(Integer msgNum) throws JMSException { | | for (int i = 0; (i < msgNum || -1 == msgNum); i++) { | String messageText = String.valueOf(counter.getAndIncrement()); | TextMessage msg = tSession.createTextMessage(messageText); | publisher.publish(msg); | logger.info("Published " + messageText); | | try { | Thread.sleep(500); | } catch (InterruptedException ignored) { | } | } | } | | @Override | public void start() throws JMSException { | connection = tConnFactory.createTopicConnection(); | tSession = connection.createTopicSession(false, | Session.AUTO_ACKNOWLEDGE); | publisher = tSession.createPublisher(topic); | } | | @Override | public void stop() throws JMSException { | if (publisher != null) { | publisher.close(); | tSession.close(); | connection.close(); | } | } | | } | Management interface for Producer: | package topictest; | | import javax.jms.JMSException; | | import org.jboss.annotation.ejb.Management; | | @Management | public interface TestProducerMBean { | void start() throws JMSException; | void stop() throws JMSException; | void send(Integer msgNum) throws JMSException; | } | Consumer: | package topictest; | | import javax.annotation.Resource; | import javax.jms.JMSException; | import javax.jms.Message; | import javax.jms.MessageListener; | import javax.jms.Session; | import javax.jms.TextMessage; | import javax.jms.Topic; | import javax.jms.TopicConnection; | import javax.jms.TopicConnectionFactory; | import javax.jms.TopicSession; | import javax.jms.TopicSubscriber; | | import org.apache.log4j.Logger; | import org.jboss.annotation.ejb.Service; | | @Service(objectName = "test:service=Consumer") | public class TestConsumer implements TestConsumerMBean, MessageListener{ | | @Resource(mappedName = "java:/JmsXA") | private TopicConnectionFactory tConnFactory; | | @Resource(mappedName = "/topic/test-Topic") | private Topic topic; | | private TopicSession session; | private TopicConnection connection; | private TopicSubscriber subscriber; | | private static final Logger logger = Logger.getLogger(TestConsumer.class); | | @Override | public void create() throws JMSException { | connection = tConnFactory.createTopicConnection(); | connection.setClientID("test-client"); | session = connection.createTopicSession(false, Session.CLIENT_ACKNOWLEDGE); | subscriber = session.createDurableSubscriber(topic, "test-subscriber"); | connection.start(); | } | | @Override | public void destroy() throws JMSException { | session.close(); | } | | @Override | public void start() throws JMSException { | startReceiving(); | } | | @Override | public void startReceiving() throws JMSException { | subscriber.setMessageListener(this); | } | | @Override | public void stopReceiving() throws JMSException { | subscriber.setMessageListener(null); | } | | @Override | public void onMessage(Message arg0) { | TextMessage message = (TextMessage) arg0; | try { |
Re: [jboss-user] javax.persistence.EntityNotFoundException: deleted entity passed to persist
working around this exception(avax.persistence.EntityNotFoundException: deleted entity passed to persist) I have the idea of remove the entity through a query...this is my code: String query="delete from Block block where block.blockPK.blockId='"+blockPk.getBlockId()+" ' and block.blockPK.enterpriseId=' "+ blockPk.getEnterpriseId()+" ' "; application.getDataService().executeQuery(query, 1); BlockPk represents my primary key...the problem now is this exception: Caused by: javax.ejb.EJBException: java.lang.IllegalStateException: org.hibernate.hql.QueryExecutionRequestException: Not supported for DML operations [delete from org.desoft.dcp.ag.entity.Block block where block.blockPK.blockId='h' and block.blockPK.enterpriseId='cea'] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:77) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:10 2) could anyone help me ,please ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - The most simple jBPM jbpm.cfg.xml configuration file
Hello, I'm new in jBPM, and think it is a very powerful tool! My first goal is to use a ProcessEngine object, init a simple process definition, and run an instance of this, by code. The documentation says (jBPM 4) that I must use a jbpm.cfg.xml. What would be, in my case, the simplest definition in that configuration file, knowing that I would to have jBPM embedded in my java application? I suppose I must use a in memory database? Thank a lot! Bertrand. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266810#4266810 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Spring Integration] - Re: Unabled to return specified bean factory in web applicat
Marius, Yes, it is the class-loader version problem. I put all spring jars into default/lib, but still run into exceptions. Here are what I did. The spring deployer contained the following jars: | jboss-spring-jdk5.jar | spring-aop.jar | spring-beans.jar | spring-context.jar | spring-core.jar | And I moved spring-*.jar files (except jboss-spring-jdk5.jar) to default/lib, and also removed all spring jar files away from my web application archive test-spring-web-service.war. I got the following exception during deploying my test web application: | [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test-spring-web-service]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener | | java.lang.NoSuchMethodError: org.springframework.core.CollectionFactory.createConcurrentMapIfPossible(I)Ljava/util/Map; | | at org.springframework.web.context.ContextLoader.(ContextLoader.java:153) | | at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53) | | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44) | | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856) | | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361) | I am using CXF in my web service, and thought it might be spring version was too lower, then I replaced the spring jars in default/lib with spring 2.5.5 version. Then I got the following exception during deploying my spring archive: | META-INF/jboss-spring.xml]; nested exception is java.lang.NoSuchMethodError: org.jboss.spring.factory.NamedXmlBeanDefinitionReader.createReaderContext(Lorg/springframework/core/io/Resource;)Lorg/springframework/beans/factory/support/ReaderContext;; - nested throwable: (org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/C:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5661233983148309170MySpringBean.spring!/META-INF/jboss-spring.xml]; nested exception is java.lang.NoSuchMethodError: org.jboss.spring.factory.NamedXmlBeanDefinitionReader.createReaderContext(Lorg/springframework/core/io/Resource;)Lorg/springframework/beans/factory/support/ReaderContext;) | | at org.jboss.spring.deployment.SpringDeployer.create(SpringDeployer.java:120) | | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) | | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | | at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) | | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | | at java.lang.reflect.Method.invoke(Method.java:585) | | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | Based on my tests, it seems that the spring deployer (2.x) only work with certain versions (older versions) of spring. I need to use spring 2.5.5. How can I solve the exceptions? Which version of spring deployer should I use? Thanks a lot! Ivan Yuan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266802#4266802 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: [jBPM-3.2] - org.jbpm.graph.def.Node Classs
Thanks for all your help. The code worked for me. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266801#4266801 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Examples Using Topic
I find it hard to believe that all of the tutorials are incorrect, especially if they are specific to JMS on JBoss AS. Perhaps if you shared the code you have and the exception you are getting, we could help you. Also mention the version of JBoss AS, and the version of Messaging if you installed another version than what comes with JBoss AS. Mentioning your OS and JDK might help also. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266798#4266798 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Process is not restored after restart?
Yes... but is it IN your database View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266794#4266794 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0 Users] - Re: TimerService Restart Issue
"jaikiran" wrote : Try our latest EJB3 plugin http://www.jboss.org/ejb3/ejb3plugin.html against AS-5.1.0. | | Thanks for suggestion, i've tried JBoss EJB3 Plugin 1.0.18 (JBoss 5.1). I didn't reproduce all the code I had before but the problem ("Could not dereference object") doesn't appear anymore, at least if i do NOT cancel timers at application shutown. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266788#4266788 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266788 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Orderer redelivery of messages
If you're talking about HornetQ, you're in the wrong forum. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266784#4266784 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266784 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Feture Request: Task subjects
Sorry, I don't understand you here... Would my "subject" patch be integrated, or is there another JIRA issue you wanted to draw my attention on? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266783#4266783 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Orderer redelivery of messages
Hi Tim, I'm a collegue of Egomet (my name is Mirco) and I'm working on the same task of Egomet. In the next weeks I will study how to patch JBoss/HornetQ to obtain the ordered redelivery using a special configuration to avoid multithreading problems. If you are interested to our solution I will send the patch (using the right procedure) for the commit. We found a solution using JBoss 4.0.2 but now we want to upgrade the AS so I would like to insert it in the head line of the sources. Thanks for your time. Regards Mirco View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266781#4266781 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Feture Request: Task subjects
Parsing attributes runtime (So EL is possible) is also another issue in the jira. Combined they will provide what you need. But patches for these issues are always welcome ;-) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266780#4266780 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] javax.persistence.EntityNotFoundException: deleted entity passed to persist
Hi, I have a OneToMay relationship in my project, and when I try to remove the side that holds the collection this exception arise: javax.persistence.EntityNotFoundException: deleted entity passed to persist: [org.desoft.dcp.ag.entity.Block#] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(Abstra ctEntityManagerImpl.java:598) at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntit yManagerImpl.java:513) at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.before Completion(SynchronizationImple.java:101) at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPh aseCoordinator.java:269) This is my code: The first class has this code for the relation: @OneToMany(mappedBy="block",fetch=FetchType.EAGER,cascade=CascadeType.ALL) public Set getFields() { return fields; } And the second: @ManyToOne(optional = false) @JoinColumns({ @JoinColumn(name = "enterprise_id", referencedColumnName = "enterprise_id", insertable = false, updatable = false), @JoinColumn(name = "block_id", referencedColumnName = "block_id", insertable = false, updatable = false) }) public Block getBlock() { return block; } ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Feture Request: Task subjects
Hello Sebastian, The differences are: 1. The subject is evaluated during Task instantiation. 2. It is stored in the database in the jbpm_task and jbpm_taskhist tables, and can be queried to provide a nice list. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266779#4266779 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266779 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: Dependency injection fails after hot-redeploy
Sweet, it works! Thanks a lot! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266777#4266777 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266777 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Process variables and Process Instances
https://jira.jboss.org/jira/browse/JBPM-2505 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266776#4266776 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Feture Request: Task subjects
Where is the difference between your subject-attribute and the task's name and description? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266775#4266775 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Feture Request: Task subjects
Yes, I found descriptions when I compared the 4.0 and 4.2 XSDs. But the description is not automatically evaluated by the expression engine, which is what I need here. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266774#4266774 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Feture Request: Task subjects
(almost) every node should get a description in the jPDL. This is kind of the same as a subject. Please look in the jira for this. I think there already is an issue for it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266771#4266771 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266771 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Task assignment and process history
About your point on reassigning tasks - http://blogs.dfwikilabs.org/pigui/2008/03/14/jbpm-task-nodes-development/ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266770#4266770 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266770 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0 Users] - @Depends question
I'm currently developing an application which has a SFSB which has a reference to an MBean. Using the @Depends annotation i retrieve the reference correctly. As the MBean is a singleton to me it sounds unwanted to serialize the reference when the SFSB is passivated. So it is marked transient. After activation of the passivated SFSB the MBean reference is not automatically injected through the @Depends annotation, so i'm trying to retrieve the reference by hand.. But my question is how can I achieve this? Thanks in advance! Richard View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266769#4266769 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266769 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: Dependency injection fails after hot-redeploy
Try our latest EJB3 plugin http://www.jboss.org/ejb3/ejb3plugin.html against AS-5.1.0. The latest download is available here http://www.jboss.org/ejb3/downloads.html If the latest plugin too doesn't solve your issue then please post the entire details. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266763#4266763 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Dependency injection fails after hot-redeploy
I have tried looking for answers to my problem and found http://www.jboss.org/index.html?module=bb&op=viewtopic&t=155732 and the like. I find similar problems, but no answers. I am invoking a MessageBean by quartz (using the quartz-ra.rar shipping with JBoss AS 5.1.0) which then gets a SessionsBean via dependency injection. To compile and deploy I am using Eclipse, building for the target environment JBoss 5.1.0 (using the local deployer option). Everything is deployed in a .jar folder in /server/deploy. This works very well, when I deploy one time only. As soon as I "touch" the ejb-jar.xml to get JBoss to redeploy, I get errors and my application stops working. Note that when I am touching the ejb-jar.xml, I haven't changed anything in the jar at all. As far as I understand it (I am trying to figure out JBoss for 2 weeks now), the classloader still holds the classes of the first deployment somewhere and insists that these do not match the ones of the second deployment. Output says "failed to set value Proxy to ... Reason: ClassLoaders of value and target are not equal" when trying the dependency injection. Does anyone know how I could fix this? (FAQ and documentation didn't help me, but if a simple RTFM helps in my case I would be glad as well) @ResourceAdapter("quartz-ra.rar") | @MessageDriven(activationConfig = | {...@activationconfigproperty(propertyName = "cronTrigger", propertyValue = "0/2 * * * * ?")}) | public class StarterBean implements Job | { | private static final Logger log = Logger.getLogger(StarterBean.class); | | @EJB | private DispatcherBeanLocal dispatcher; | | /** | * Default constructor. | */ | public StarterBean() { | } | | /** | * @see Job#execute(JobExecutionContext) | */ | public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException | { | StarterBean.log.info("** JOB: " + jobExecutionContext.getJobDetail().getName()); | dispatcher.execute(); | StarterBean.log.info("*** END OF JOB: " + jobExecutionContext.getJobDetail().getName()); | } | | } | @Stateless | public class DispatcherBean implements DispatcherBeanLocal | { | | public DispatcherBean() { | } | | public void execute() { | | System.out.println("Dispatch."); | } | | } org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: javax.ejb.EJBTransactionRolledbackException: failed to inject Proxy | | to jboss.j2ee:jar=GDBUpdate.jar,name=DispatcherBean,service=EJB3 implementing [interface com.sag.gdbu.dispatcher.DispatcherBeanLocal] (implements [interface | | com.sag.gdbu.dispatcher.DispatcherBeanLocal]) from env/com.sag.gdbu.starter.StarterBean/dispatcher (link -> gdbu/dispatcher/local) into | | com.sag.gdbu.starter.StarterBean.dispatcher of com.sag.gdbu.starter.starterb...@371bda] | at org.quartz.core.JobRunShell.run(JobRunShell.java:214) | at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) | * Nested Exception (Underlying Cause) --- | javax.ejb.EJBTransactionRolledbackException: failed to inject Proxy to jboss.j2ee:jar=GDBUpdate.jar,name=DispatcherBean,service=EJB3 implementing [interface | | com.sag.gdbu.dispatcher.DispatcherBeanLocal] (implements [interface com.sag.gdbu.dispatcher.DispatcherBeanLocal]) from | | env/com.sag.gdbu.starter.StarterBean/dispatcher (link -> gdbu/dispatcher/local) into com.sag.gdbu.starter.StarterBean.dispatcher of | | com.sag.gdbu.starter.starterb...@371bda | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:115) | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:194) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:80) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) | at org.jboss.ejb3.mdb.MessagingContai
[jboss-user] [JBoss Messaging Users] - Re: Slow consumer is blocking producer
My subscriber is non-durable. Performance of non-durable should be better than a durable one. So, I don't think this will make a difference. My client code i.e. MessageListener looks like this: | public class FMEventSubscriber implements MessageListener { | | public void onMessage(Message message) { | if ( message instanceof ObjectMessage){ |ObjectMessage objMessage = (ObjectMessage)message; | Integer responseMsgType; | try { | handleFMEvent(responseMsgType, objMessage.getObject() ); | }catch (Exception e ){ | log.error("Un-Expected error in message processing. .."); | } | }else{ |log.error("Unknow type of FM message receiv..."); | } |} | Here, handleFMEvent calls other sessionbeans. I have noticed that if I comment out the call to handleFMEvent() then the message processing is fast. But, the main question here is that it(consumer) should not block a producer. Do I have the queue up the messages myself and then have a QueueEventprocessor publish the messages in a background thread? -Poonam. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266756#4266756 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: How to set socket timeouts?
I've enabled the setting but it had no effect. The client polling application is still loosing its link. I can build in a reconnect but this is fairly unfancy... Any ideas on how I could proceed? Thank you View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266750#4266750 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering] - jboss clustering-fault tolerance errors
Dear All, We have configured Jboss Clustering + Session Replication. But we are facing certain issues as below. Expected Scenario, User1 connects to node1 -> Login Successful -> User1 is working for Functionality X -> node1 down As node1 is down, node2 should take care for connected User1 from Functionality X. Actual Scenario/Query, When we shut down node1, Application logs out from Functionality X, then connects to node2 with Login Page of Application. Please find below configuration we used for your reference, Mod_JK JBOSS_HOME/server/all/deploy/jboss-web.deployer/server.xml server/all/deploy/jboss-web.deployer/META-INF/jboss-service.xml : UseJK = true Exception coming in logger . 2009-11-17 13:05:50,369 INFO [org.jboss.web.tomcat.service.session.CacheListener] Possible concurrency problem: Replicated version id 1 matches in-memory version for session zs0jyaG4z-4sgTaEOIEvuA** 2009-11-17 13:05:50,641 DEBUG [org.jboss.cache.interceptors.TxInterceptor] local transaction exists - registering global tx if not present for Thread[ajp-172.26.137.20-8009-1,5,jboss] 2009-11-17 13:05:50,674 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Running commit phase. One phase? false 2009-11-17 13:05:50,674 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished local commit/rollback method for GlobalTransaction:<172.26.137.20:56688>:1 2009-11-17 13:05:50,674 DEBUG [org.jboss.cache.interceptors.TxInterceptor] Finished commit phase 2009-11-17 13:05:50,674 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] loadSession(): id= zs0jyaG4z-4sgTaEOIEvuA**, session=SessionBasedClusteredSession[id: zs0jyaG4z-4sgTaEOIEvuA**.node2 lastAccessedTime: 1258463150496 version: 2 lastOutdated: 0] 2009-11-17 13:05:50,674 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: zs0jyaG4z-4sgTaEOIEvuA**.node2 jvmRoute: node1 2009-11-17 13:05:50,675 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] handleJvmRoute(): We have detected a failover with different jvmRoute. old one: node2 new one: node1. Will reset the session id. 2009-11-17 13:05:50,675 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] resetSessionId(): changed catalina session to= [zs0jyaG4z-4sgTaEOIEvuA**.node1] old one= [zs0jyaG4z-4sgTaEOIEvuA**.node2] 2009-11-17 13:05:50,675 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Setting cookie with session id:zs0jyaG4z-4sgTaEOIEvuA**.node1 & name:JSESSIONID 2009-11-17 13:44:29,185 DEBUG [org.jboss.web.tomcat.service.session.JvmRouteValve] checkJvmRoute(): check if need to re-route based on JvmRoute. Session id: Jp0uZF+NeeE4NdgdGeemcw**.node1 jvmRoute: node1 2009-11-17 13:44:29,206 ERROR [org.jboss.web.tomcat.service.session.JBossCacheService] externalizeSession(): exception occurred externalizing session SessionBasedClusteredSession[id: Jp0uZF+NeeE4NdgdGeemcw**.node1 lastAccessedTime: 1258465468376 version: 49 lastOutdated: 0] java.io.NotSerializableException: com.icesoft.faces.component.datapaginator.DataPaginator at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1380) at sun.reflect.GeneratedMethodAccessor316.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) at org.jboss.web.tomcat.service.session.SessionBasedClusteredSession.writeExternal(SessionBasedClusteredSession.java:175) at org.jboss.web.tomcat.service.session.JBossCacheService.externalizeSession(JBossCacheService.java:1033) at org.jboss.web.tomcat.service.session.JBossCacheService.putSession(JBossCacheService.java:322) at org.jboss.web.tomcat.service.session.JBossCacheClusteredSession.processSessionRepl(JBossCacheClusteredSession.java:123) at org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:1127) at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:682) at org.jboss.web.tomcat.service.sessi
[jboss-user] [jBPM Users] - Re: Feture Request: Task subjects
I implemented it now for myself, was much easier than i thought. You wrote great code, I have to say, easy to read and understand (if you already managed to understand the wire stuff before). If there is interest, I create a patch. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266747#4266747 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - Accessing Secured WebService is failing
Hi All I am able to access my webservice if i access it without applying any security stuff, but it's failing when I enable security for my service I've exactly followed the following link to apply security for my webservice http://www.developer.com/java/other/article.php/10936_3802631_1/Securing-Web-Services-in-JBoss-Application-Server-with-WS-Security.htm My WAR file structure is as follows JBossWS | |-src | |_org.jbia.ws | |_Hello.java | |-lib | | | all the jarfile | |-WebContent | | | WEB-INF | | |-jboss-wsse-server.xml | | |-server.keystore | | |-server.truststore | | |-web.xml | | | META-INF | | | | | |-MANIFEST.MF My JAR file's structure is as follows WebService | |-src | |_org.jbia.ws | |_Client.java | |_All the generated stuff based on wsdl(hello.java, HelloBindingStrub.java,HelloProxy.java,HellowService.java, HelloServiceLocatior.java) | |-lib | | | all the jarfile | |-META-INF | | | |-jboss-wsse-client.xml | |-client.keystore | |-client.truststore | |-standard-jaxws-client-config.xml | | I tried to print the SOAP Request mesage at stub class as follows, but it's going as NULL | SOAPMessage message = _call.getMessageContext().getMessage(); | System.out.println(""); | System.out.println(message); | System.out.println(""); | My Client java files is as follows | package org.jbia.ws; | | import java.rmi.RemoteException; | | public class Client { | String st = null; | public String hello(String args) { | HelloProxy svc = new HelloProxy(); | Hello hello = svc.getHello(); | try { | st = hello.sayHello(args); | } catch (RemoteException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | } | return st; | } | public static void main(String[] args) { | Client cl = new Client(); | cl.hello("Venkat"); | } | } | The exception I am getting is as follows 17:09:26,531 ERROR [HandlerChainExecutor] Exception during handler processing | java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.
[jboss-user] [JBoss Cache Users] - Re: Problem with marshalling object.
1) Version number please. :-) 2) It appears that you're using a JBC Node object as an element in your FQN? SEVERE: Error while marshalling object: ReplicateCommand{cmds=RemoveNodeCommand{fqn=/NodeReference{delegate=UnversionedNode[ /child1 data=[Key2, Key1, ]]}, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266741#4266741 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re:
How hard was implementing it project-specific? Is that code reusable? :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266738#4266738 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266738 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: OneToOne could be null
Hi, probably "@Transient" on a relation field does not work. Try to remove it. To prevent unnecessary persisting of the entity, you might set the "cascade" attribute to e.g. "don't cascade persist calls". Hope this helps Wolfgang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266734#4266734 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266734 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0 Users] - Re: JBoss 6.0.M1 and ejb 3.1 (JSR 318)
JBoss AS 6.0 M1 does *not* have EJB3.1. EJB3.1 is currently work in progress and we'll post in this forum once it's available for use against AS-6. Our release process allows us to release EJB3.x components outside a AS release. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266733#4266733 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Feture Request: Task subjects
Hi, all, While trying to find an acceptable solution for presenting occuring tasks to my fellow users, I completely found one feature missing: Task subjects. Currently the only way to tell my users what the task actually does is to render the form object for them. This is not really useful for presenting tasks in a list. And VacationRequest-1, VacationRequest-2 are no useful names either. I currently need nothing more than a new attribute "subject" in the task tag, which simply contains an expression, where I can generate text like "Vacation Request of Guillaume Retard for April 2010", "Order confirmation for order A090023 of ACME Manufacturing (London)". Those who work with their task lists could easily identify tasks they delayed because they had to gather other information first, and come back then. My other workaround would be to implement form evaluation each time a task node is reached, and the persisting the form in a parallel table. PLEASE COMMENT IF YOU LIKE THIS FEATURE! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266730#4266730 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Cannot insert duplicate key JBM_MSG_REF
I restarted JBoss and ran the same process again, reproducing the same exception: These links refer to similar and maybe related issues and suggested using non-consecutive NodeIDs https://jira.jboss.org/jira/browse/JBMESSAGING-1682 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266727#4266727 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266727 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginner's Corner] - Re: OneToOne could be null
Hi Wolfgang Sorry long time ago i've posted! I have a person which i can edit and this person could be assigend to a compnay. But this assignment is optional! Here's the code for the selection | Firma | | | | | | | | | | | | | | | #{_c} | | | | Yes i got @Transient annotation used within person.java Thanks for you advice View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266722#4266722 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266722 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Cannot insert duplicate key JBM_MSG_REF
I have a process as part of my application which generates large number of messages. During testing we encountered the exception below. From a clean start of JBoss we started the process which generated several thousand messages. Two minutes into the process we got this error. Previously we only encountered this problem when using 8 clustered JBoss instances clustered and then we addressed it by using non-consecutive Peer Ids. However in this instance there was only a single JBoss instance involved. A quick look online only brought us to a similar, yet different issue https://jira.jboss.org/jira/browse/JBMESSAGING-1062 which has already been fixed. Does anybody know if this is a know problem and fixed in the latest GA release. We are using JBoss 4.2.3 GA with JBoss Messaging 1.4.2.GA-SP1 Exception | 10:26:01,467 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 | 10:26:01,514 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009 | 10:26:01,514 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 3m:31s:994ms | 10:40:52,036 WARN [SpoolProcessorBean] spool cannot be deleted when status=CLOSED | 10:40:52,036 WARN [SpoolProcessorBean] spool cannot be deleted when status=CLOSED | 10:40:52,036 WARN [SpoolProcessorBean] spool cannot be deleted when status=CLOSED | 10:40:52,036 WARN [SpoolProcessorBean] spool cannot be deleted when status=CLOSED | 10:40:52,051 WARN [SpoolProcessorBean] spool cannot be deleted when status=CLOSED | 10:40:52,051 WARN [SpoolProcessorBean] spool cannot be deleted when status=CLOSED | 10:40:52,051 WARN [SpoolProcessorBean] spool cannot be deleted when status=CLOSED | 10:42:29,138 WARN [JDBCSupport] SQLException caught, SQLState 23000 code:2627- assuming deadlock detected, try:1 | java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__JBM_MSG_REF__2057CCD0'. Cannot insert duplicate key in object 'dbo.JBM_MSG_REF'. | at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365) | at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781) | at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224) | at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:628) | at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:525) | at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:487) | at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeUpdate(JtdsPreparedStatement.java:421) | at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95) | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:365) | at org.jboss.messaging.core.impl.JDBCPersistenceManager$1HandleBeforePrepareRunner.doTransaction(JDBCPersistenceManager.java:1972) | at org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.execute(JDBCSupport.java:474) | at org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.executeWithRetry(JDBCSupport.java:512) | at org.jboss.messaging.core.impl.JDBCPersistenceManager.handleBeforePrepare(JDBCPersistenceManager.java:2063) | at org.jboss.messaging.core.impl.JDBCPersistenceManager$TransactionCallback.beforePrepare(JDBCPersistenceManager.java:2984) | at org.jboss.messaging.core.impl.tx.Transaction.prepare(Transaction.java:265) | at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendTransaction(ServerConnectionEndpoint.java:498) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised.org$jboss$jms$server$endpoint$advised$ConnectionAdvised$sendTransaction$aop(ConnectionAdvised.java:101) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java) | at org.jboss.jms.server.container.SecurityAspect.handleSendTransaction(SecurityAspect.java:195) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927536.invokeNext(ConnectionAdvised$sendTransaction_N326865078927536.java) | at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105) | at org.jboss.jms.server.endpoint.advised.ConnectionAdvised$sendTransaction_N326865078927
[jboss-user] [JBoss Web Services Users] - Re: jbossws does not emit xml declaration on soap response
I found after extensive testing that it wasn't the SOAP part that caused the problems but that the client was very sensitive to how the payload was formatted... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266715#4266715 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Web Services Users] - Handlers number depends on number of concurrent threads
Hello, I've found possible bug related to WS Handlers creation during concurrent WS access. Problem is in number of created Handlers for WS and as result their execution order. Their number differs in two cases 1) Single thread calls WS. Then 20 threads concurrently call the same WS. (example below shows 3 created Handlers with order C-B-A-WS-A-B-C ) 2) 20 threads call WS concurrently. (example below shows creation 20*3 = 60 handlers, with invalid execution order f.e. C-B-A-B-A-C-...-A-A-WS-A-C-B-A-B-A-C-...-A-A) As I understand WS Handlers initilization isn't synchronized. Is it known issue? Example: There is following handler chain: http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd"> com.softcomputer.softlab.lab.service.HandlerA com.softcomputer.softlab.lab.service.HandlerB com.softcomputer.softlab.lab.service.HandlerC Service: @WebService(name = "TimeService") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @Stateless @HandlerChain(file = "META-INF/custom_handlers.xml") public class TimeService implements ITimeService { @WebMethod public long getServerTime(Void dummy) { try { Thread.sleep(200); } catch (Exception e) { throw new IllegalStateException(e); } return System.currentTimeMillis(); } } Handlers are following: public class HandlerA implements SOAPHandler { public HandlerA() { logMsg(this, "Constructor"); } public void close(MessageContext arg0) { shortLog(this.getClass(), "close"); } public Set getHeaders() { shortLog(this.getClass(), "get Headers"); return null; } public boolean handleFault(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handleFault", arg0); return true; } public boolean handleMessage(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handle Message ", arg0); return true; } } public class HandlerB implements SOAPHandler { public HandlerB() { logMsg(this, "Constructor"); } public void close(MessageContext arg0) { shortLog(this.getClass(), "close"); } public Set getHeaders() { shortLog(this.getClass(), "get Headers"); return null; } public boolean handleFault(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handleFault", arg0); return true; } public boolean handleMessage(SOAPMessageContext arg0) { fullHandlerLog(this.getClass(), "handle Message ", arg0); return true; } } C is the same like A and B. Part of 1st case Log: 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA Constructor 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA get Headers 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB Constructor 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB get Headers 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC Constructor 2009-11-20 11:28:28,882 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC get Headers 2009-11-20 11:30:30,035 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC handle Message opName_:urn:getServerTime; way_: IN; user_:scc; ts_:1258709429988 2009-11-20 11:30:30,035 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB handle Message opName_:urn:getServerTime; way_: IN; user_:scc; ts_:1258709430035 2009-11-20 11:30:30,035 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA handle Message opName_:urn:getServerTime; way_: IN; user_:scc; ts_:1258709430035 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerA handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709430722 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerB handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709430722 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.lab.service.WebServiceExecutionTimeLogger|http-0.0.0.0-8080-1] HandlerC handle Message opName_:ns1:getServerTimeResponse; way_: OUT; user_:FROM_LAB; ts_:1258709430722 2009-11-20 11:30:30,722 DEBUG [com.softcomputer.softlab.la
[jboss-user] [jBPM Users] - Task assignment and process history
Hi dear jBPM developers, I currently try to implement jBPM tasks into our ERP. In jBPM, the jbpm_histtask table contains an column assignee, which states who is responsible for this task. Furthermore, jBPM can provide me with two lists of tasks: - Tasks i can aquire - Tasks that are assigned to me. In the real world there is even another group, namely those that are responsible to assign tasks to other persons. Currently i didn't find out how the realize this. In addition, in the task history, there is no information on WHEN was the task assigned to the given person. This makes it hard to look for the person who is responsible for late delivery of a task outcome. What are your ideas on this topic? How did you realize this before? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266709#4266709 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266709 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: Advice regarding complex proccess modeling
Thank you for your help. It has helped us a lot to think a bit more and know jbpm. We are trying to follow a similar solution to yours, but, when we try to create a new subtask on a task, an exception occurs: | | 09:41:12,935 SEV | [BaseJbpmTestCase] TEST THROWS EXCEPTION: no environment to get org.jbpm.pvm.internal.session.DbSession | org.jbpm.api.JbpmException: no environment to get org.jbpm.pvm.internal.session.DbSession | at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:197) | at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:190) | at org.jbpm.pvm.internal.task.TaskImpl.createSubTask(TaskImpl.java:231) | at org.jbpm.pvm.internal.task.TaskImpl.createSubTask(TaskImpl.java:243) | at org.teste.TratarDoc.testTratarDoc(TratarDoc.java:63) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at junit.framework.TestCase.runTest(TestCase.java:164) | at org.jbpm.test.BaseJbpmTestCase.runTest(BaseJbpmTestCase.java:80) | at junit.framework.TestCase.runBare(TestCase.java:130) | at junit.framework.TestResult$1.protect(TestResult.java:106) | at junit.framework.TestResult.runProtected(TestResult.java:124) | at junit.framework.TestResult.run(TestResult.java:109) | at junit.framework.TestCase.run(TestCase.java:120) | at junit.framework.TestSuite.runTest(TestSuite.java:230) | at junit.framework.TestSuite.run(TestSuite.java:225) | at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) | at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) | ### EXCEPTION ### | | The piece of code is the following | | for (String responsavel : responsaveis) { | TaskImpl subTask = tratarTask.createSubTask("Tratar para" + responsavel); | subTask.setAssignee(responsavel); | | taskService.saveTask(subTask); | | tratarTask.addSubTask(subTask); | } | | | | It goes mad when we call createSubTask(). What are we doing wrong? :-( View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266708#4266708 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266708 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Re: [JBPM4] Is there a way to create subprocess programatica
Does this solution solve the JIRA posted on the beggining? Anyone could give an example? Thank you. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266705#4266705 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266705 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Subprocess information in history
I currently don't see any possibility to extract information about started subprocesses from the history. Am i missing something? After process completion a can see entires in histactinst of type subprocess, but sadly no reference anywere from this process. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266704#4266704 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266704 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Form Validation
Hello dear jBPM users, how do you realize Form validation? Currently the only option i see is to let a decision node follow the task node, and if there was a problem with the entered data, to go back to the task. This however has the disadvantage that timers are resetted. To stop them from being resetted, i would have to add a parallel flow with a wait state which a trigger by event, when the form is successfully completed. Do i do it right? Thanks in advance, Daniel Migowski View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266701#4266701 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266701 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence] - Re: how to create PersistenceUnit and map to dataSource prog
I have the same problem as you. I need to use different databases with the same tables in the same application (the difference is that for me is that redeploying or even restarting JBoss is permitted, but in this case, it doesn't matter). The idea is to use the same persistence unit changing only the datasource that they use, so the name of the persistence unit can be the same (I think, somebody correct me if I'm wrong). The name has to be defined in persistence.xml because it's mandatory in JPA as well as a default datasource. Then, you can use the Persistence.createEntityManagerFactory method passing it: - The name of the unit that you gave in persistence.xml - javax.persistence.jtaDataSource or javax.persistence.nonJtaDataSource properties pointing to the JNDI address of the datasource that you want to use, previously configured with access to your database. The case here (and the problem for me) is that I cannot use a JTA datasource, so I don't know why the property is there. Anyway. I havent's tested it deeply but in theory, this should work. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266699#4266699 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266699 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security] - Custom CallbackHandler with jboss 4.2 AS
Hi all I have 2 related questions: 1) Is it possible to configure a custom CallbackHandler with JBoss4.2 AS? I found a posting stating how to do it for JBoss5: http://anil-identity.blogspot.com/2009/05/as51-specifying-custom-call-back.html Are any these methods applicable with JBoss4.2? 2) I would like to configure my application for web authentication, using an auth-method that does not prompt the user. Is this possible? Which auth-method can I use for this? I guess I'm failing to understand what exactly causes the container to prompt the user when using e.g. BASIC auth? Can it be controlled with the CallbackHandler? For those interested, my scenario is: Users are authenticating in a foreign system (of which I basically know nothing), and requests (including a simple username parameter) are then sent to an application in my jboss. The application in JBoss is configured for web authentication, but I do not want the users to be prompted for credentials when they are coming from the foreign system. I just want my custom login modules to create the necessary prinipals based on the username (from request parameter). That's why I'm planning on putting a custom callbackhandler in place to provide the username without prompting. And, I also need to figure out with which auth-method to configure my applications so that users are NOT prompted. Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266697#4266697 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: Examples Using Topic
you can download the examples from http://www.jboss.org/jbossmessaging/downloads/ If you are having problems then i guess you need to check your installation. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266696#4266696 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266696 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Proxy Configuration
I've written a helperclass for authentification, now it works. Still don't know how the set authentification params for the JVM. Thanks to all for help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266695#4266695 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [jBPM Users] - Process is not restored after restart?
The problem is that the process in wait state ("state" element) can not be found after application server restart, where application with jbpm is deployed: Searching of process looks like this: -- String processInstanceRefId = getProcessInstanceRefId(context, messageKind); // (GUID) String executionId = MessageFormat.format("{0}.{1}", messageKind.getProcessDefinitionKey(), processInstanceRefId); log.debug(MessageFormat.format("Searching processInstance with executionId={0} in {1} state", executionId, messageKind.getState())); ProcessInstance processInstance = processEngine.getExecutionService().findProcessInstanceById(executionId); if (processInstance == null) { log.error(MessageFormat.format("processInstance with executionId={0} in {1} not found", executionId, messageKind.getState())); return; } -- Are process instances waiting in "state" restored after application server restart? jbpm db data is stored in hsqldb file (not in memory): jdbc:hsqldb:file:WorkflowDB View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266693#4266693 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266693 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user