[jboss-user] [EJB 3.0] - Re: Unable to deploy simple MDB
yes, what a fool ! I have packaged the .jar file without the folders. Sorry, the No ClassLoaders found message took me on the wrong way, I thought it was a problem with the MDB 3.0 Thanks for your help! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4175793#4175793 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4175793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Unable to deploy simple MDB
Dear all, I'm trying to deploy a simple MDB on JBoss 4.2.0 GA. However once I package the mdb in a jar file and deploy it I get this error: 14:44:33,828 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=DummyMDBean.jar | java.lang.ClassNotFoundException: No ClassLoaders found for: com.sample.DummyMDBean | at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408) | at java.lang.ClassLoader.loadClass(ClassLoader.java:251) | at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:293) | at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:138) | at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:468) | at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:424) | at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:405) | at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:366) | at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:321) | at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77) | at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243) | at sun.reflect.GeneratedMethodAccessor3.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.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl | ler.java:978) | at $Proxy0.create(Unknown Source) This is the source code: | package com.sample; | | import javax.ejb.ActivationConfigProperty; | import javax.ejb.MessageDriven; | import javax.jms.Message; | import javax.jms.MessageListener; | |@MessageDriven( |name=MessageMDBSample, |activationConfig = { |@ActivationConfigProperty( |propertyName = destinationType, |propertyValue = javax.jms.Queue), |@ActivationConfigProperty(propertyName = destination, |propertyValue = testQueue), |@ActivationConfigProperty( |propertyName = acknowledgeMode, |propertyValue = Auto-acknowledge)}) | |public class DummyMDBean implements MessageListener { | |public void onMessage(Message message) { | | System.out.println(Message received +message.toString()); | |} | | | | } The queue was deployed separately under the deploy directory server | mbean code=org.jboss.mq.server.jmx.Queue | name=jboss.mq.destination:service=Queue,name=testQueue | depends optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends | /mbean | /server Any help ? thanks a lot frank View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4175570#4175570 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4175570 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Cluster on the same machine
Hi all ! sorry for the beginner question: I'd like to know if it's possible to set up a cluster using all the nodes on the same machine. I've tried starting 2 instances of JBoss with run -c all but there's a port conflict. Thanks a lot in advance Frank View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4173866#4173866 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4173866 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Cluster on the same machine
thank you for your kind reply. Ps your blogs are quite useful, I've just bookmarked! Frank View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4173884#4173884 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4173884 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Stateful Session replication not working......
Hello, I'm trying a basic Cluster SFSB which autoincrements a fields @Stateful | @Clustered | public class HelloBean implements HelloBeanItf,Serializable { | int counter = 0; | public void doSomething() { | counter++; | System.out.println(Value of counter is + counter); | | } The code is recalled by a JSP %! | HelloBeanItf ejb = null; | | public void jspInit () { | try { | | | InitialContext ctx = new InitialContext(); | | ejb = (HelloBeanItf) ctx.lookup(cluster/HelloBean/local); | } | catch (Exception exc) { exc.printStackTrace(); | } | } | | | % | | % | ejb.doSomething(); | % | Unfortunately when I invoke the JSP the session seems not to replicate...in other words I can see the server is load balancing the calls between nodes but the value stays the same when moves from one node to the other Node 1: 11:03:42,859 INFO [STDOUT] Value of counter is 11 | Node 2: 11:03:42,859 INFO [STDOUT] Value of counter is 11 | Node 1: 11:03:42,859 INFO [STDOUT] Value of counter is 12 | Node 2: 11:03:42,859 INFO [STDOUT] Value of counter is 12 The cluster works fine on the HTTP side (I have seen the HTTP session gets replicated) so the problem is only on SFSB. Do I need any additional configuration besides the @Clustered notation ? I'm using JBoss 4.2.0 version. Thanks a lot Francis View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171446#4171446 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Stateful Session replication not working......
well storing the EJB handle in the Http session solves the problem.so each instance of Tomcat was keeping an handle of the EJB that's way it didn't work. Anyway is it possible to configure the cluster so that when a request reaches the HTTP Server it stays ON THE SAME SERVER and keeps a backup of the Session on the other Node ? I have tried playing with the sticky session attribute but nothing happened worker.loadbalancer.sticky_session=1 Any additional configuration file may help ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171453#4171453 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171453 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Using Seam to reference JBPM variables from JSF. Possible ?
Hi all ! I have developed a web application which uses JSF to display a Tasklist created with jBPM. I use in the main window a Datatable to display on every row the Task Name and all variables which I have added to the Task (via executionContext.addVariable). I'd like to know: is there a way to reference in JSF the Task variable directly using Seam ? Otherwise I have to create java Bean to host this variables and feed them to JSFbad tight coupling !!! Has anybody got an example abotu it ? thanks a lot Francesco View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4164147#4164147 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164147 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Using Seam to reference JBPM variables from JSF. Possibl
Hi Ronald, thanks for your quick reply. If I understand correctly your suggestion: an idea could be to remove variables from the Process and persist them in a table. Then back the table with an Entity Bean which could be easily referenced by Seam resolvers. So I would use the Process Id to reference data in a table and keep the process light. Your suggestions are always valuable, thanks ! Francesco View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4164161#4164161 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164161 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - My experience to promote jBPM on a large scale project
Dear all, sorry for pestering so much the forum today :-) Not talking about bugs but I'd like to share commercial thoughts about jBPM. I have completed an analysis for re-engineering a BPM application which is using the old Oracle Workflow tool. Though I have been able to explain to the management that jBPM is a layer to your processes written in Java which makes it quite flexible, scalable, easy to integrate with a mix of systems via the Service Bus etc. etc. critics came about the graphical interface of jBPM-plugin which is poor. The Java 2D graphics isn't much exciting and it's not easy to draw very large processes with the Eclipse plugin, worse then all, all the Nodes are drawn with the same square icon while on huge workflows every kind of node has a different icon and that's important because the User can understand much better the workflow when the icons are comprensive and clear. Ok, you can use every kind of editor to draw your process and let the developer translate into into jPDL's XML. Ok but at runtime ? ok do you show your workflow using the same graphics ? and most important you should be able to interact with the workflow for example clicking on Nodes you might get info / unlock a Node etc. I have suggested to invest a little of the budget on creating a plugin (written in Flash since they like silly nice-looking gadgets :-) ) that draws an interactive client for the Workflow, based on the jPDL and the Process runtime data. Yet the management is not quite convinced about jBPM and honestly speaking some critics about the graphical interface I think are true, or at least appear true for the basic user. What do you think about it ? Thanks for your time Francesco View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4164165#4164165 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164165 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Setting Classpath dynamically
Hi all ! I have a web application which reads some configuration files (hibernate.cfg.xml ...etc). Until now I have simply placed this files into WEB-INF/classes so that they're visible by the Classpath of the Web Application. Now I have to move them on the root directory of the Web application. Is there a way to set the classpath to search for files in another location, dynamically ? That is I cannot change the env variable CLASSPATH or the startup script, I need to set up classpath by code or using a property in web.xml file. Thanks a lot Francesco View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4163221#4163221 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4163221 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - [Beginner] How to call a stored procedure in a Task ?
Hi all, can anybody tell me how to execute a custom Java Code from a Task ? I need to recall an Oracle stored procedure and evaluate its return value from the Task. Thanks Francesco View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005688#4005688 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Porting a large project from Oracle WorkFlow to JBoss BPM
Hi all, we have to convert a large telecom BPM application that uses Oracle Workflow. I'm thinking to use jBoss jBPM tool since I already have good skill with some jBoss products. I have 2 questions: 1) jBoss jBPM does it follow a standard (JSR) of Sun ? I need to propose to the buyer a tool that follows some standards so if one day they want to migrate to another tool -but staying in the same tachnology- this is not a daunting task. 2) Is it possible with jBPM to watch -graphically- in real time the state of a process (in the same way as Oracle workflow or Bea WLI) ? and * also * to modify the state of a process if for example there's a lock in the activity of the process ? Thanks Francesco View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005211#4005211 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user