[jboss-user] [JBoss AOP] - Class Cast Exception when AOP enabled
Hi All, I am trying AOP in an application running on JBOSS 5.01 GA. The application has some JBPM code. The process handler calls an EJB internally. When this call happens I get the below class cast exception. Any ideas? I have an AOP interceptor for all public methods (MethodInterceptor.java) I also have an ejb3 EJBInterceptor. I avoid AOP on the EJBInterceptor itself (using Joinpoint exclusion on its package). However the target EJB itself (all of them) is compiled for AOP and bound to the AOP based MethodInterceptor. Is this the problem and if so should I avoid the MethodInterceptor on ejbs - and just let the ejb3 EJBInterceptor handle them (Just need the simple AOP method-interceptor to kick in when they are invoked as POJOs though). Any advise? 009-05-14 16:38:06,994 ERROR [STDERR] (WorkManager(2)-12) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) 2009-05-14 16:38:06,994 ERROR [STDERR] (WorkManager(2)-12) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) 2009-05-14 16:38:06,994 ERROR [STDERR] (WorkManager(2)-12) at java.lang.Thread.run(Thread.java:613) 2009-05-14 16:38:06,994 ERROR [STDERR] (WorkManager(2)-12) Caused by: java.lang.ClassCastException: org.jboss.aop.joinpoint.MethodInvocation 2009-05-14 16:38:06,995 ERROR [STDERR] (WorkManager(2)-12) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:55) 2009-05-14 16:38:06,995 ERROR [STDERR] (WorkManager(2)-12) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102) 2009-05-14 16:38:06,995 ERROR [STDERR] (WorkManager(2)-12) at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126) 2009-05-14 16:38:06,995 ERROR [STDERR] (WorkManager(2)-12) ... 189 more Guna View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231430#4231430 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: how to set up CAS server against LDAP
Hi Shi Yusen thanks a lot for the reply but can u plz give detailed steps of inegrating openldap with CAS & openldap with jboss portal I have integrated CAS with jboss portal by fllowing the instructions given in the refrence guide as I mentioned earlier i am using jbossportal 2.7.0 regards thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231429#4231429 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Could not find new XAResource to use for recovering non-
A quick and dirty way of getting rid of the messages is: Shutdown JBoss (4.2.3), go to the directory: \server\\data\tx-object-store\HashedActionStore\defaultStore\Recovery\TransactionStatusManager Delete everything Goto \server\\data\tx-object-store\HashedActionStore\defaultStore\Recovery\TransactionStatusManager Delete everything. Restart JBoss. Messages are gone. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231425#4231425 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: TomcatClusteringCache & Session replication
Hi, I'm facing the same issue. Please let me know if you find a work-around/solution to fix this issue. My observation is, when i enable session stickiness I see replication is not working... but, when I disable sticky session the session is getting replicated fine on 2nd node. Thanks, Suresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231424#4231424 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231424 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 4.0.5.GA fails to startup on Windows 2008
Hi, We have an application that uses JBoss 4.0.5.GA (Tomcat 5.5.20). We've been using the same setup for over 2 years now on a number of different servers and have never run into a problem until now. For the first time, we're trying to set it up on a server running Windows 2008 (most other installations are Windows 2003). We're getting the below error in the out.log and similar complaints stemming from this in the server.log. 17:27:16,154 INFO [interceptors] InterceptorManager started with 2 Server Interceptors, 2 Client Interceptors and 4 IOR Interceptors | 17:27:16,360 INFO [orb] ORB run | 17:27:16,397 INFO [poa] oid: | 72 6F 6F 74 root | object is activated | 17:27:16,605 INFO [CorbaNamingService] Naming: [IOR:(removed)] | 17:27:16,737 INFO [giop] ClientConnectionManager: created new ClientGIOPConnection to 1.2.3.4:3528 (318293) | 17:27:37,798 INFO [iiop] Retrying to connect to 1.2.3.4:3528 | 17:27:59,309 INFO [iiop] Retrying to connect to 1.2.3.4:3528 | 17:28:20,822 INFO [iiop] Retrying to connect to 1.2.3.4:3528 | 17:28:42,331 INFO [iiop] Retrying to connect to 1.2.3.4:3528 | 17:29:03,850 INFO [iiop] Retrying to connect to 1.2.3.4:3528 | 17:29:25,399 ERROR [CorbaTransactionService] Cannot bind transaction factory in CORBA naming service: | org.omg.CORBA.TRANSIENT: Retries exceeded, couldn't reconnect to 1.2.3.4:3528 vmcid: 0x0 minor code: 0 completed: No | at org.jacorb.orb.iiop.ClientIIOPConnection.connect(ClientIIOPConnection.java:219) | at org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:839) | at org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:809) | at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:309) | at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:289) | at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:919) | at org.jacorb.orb.Delegate.invoke(Delegate.java:868) | at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457) | at org.omg.CosNaming._NamingContextExtStub.to_name(_NamingContextExtStub.java:79) | at org.jboss.tm.iiop.CorbaTransactionService.startService(CorbaTransactionService.java:143) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor2.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(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at org.jboss.system.ServiceController.start(ServiceController.java:435) | at org.jboss.system.ServiceController.start(ServiceController.java:435) | at sun.reflect.GeneratedMethodAccessor5.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy4.start(Unknown Source) | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) | 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:155) | at org
[jboss-user] [JBoss/Spring Integration] - Re: Spring LoadTimeWeaver not working in JBoss AS 5.0.1
Thanks Marius. I did the latest build and it works now. I no longer get the "Policy already has a classloader..." problem. I will keep you posted if I get any related errors. Thank you very much for your time to make the necessary chage. -Alen View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231420#4231420 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: distributed application
Thx for the suggestion. But unfortunately it did not work. So here is what I did, as suggested: 1. jar'ed up client jars from Jboss 5.0.1 into a file called 'client.jar' 2. Put the client.jar from above into reservation.war under WEB-INF/lib 3.put the following jboss-web.xml in reservation.war under WEB-INF | | com.vsp:loader=reservation.war | | 4. deployed the WAR on jboss-4.2.3 I still get the error: java.lang.ClassCastException: javax.naming.Reference cannot be cast to com.vsp.reservation.ejb.accessor.FlightReservationAccessorRemote Any thing I'm missing? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231419#4231419 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231419 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Can't expose 'start' for a service XMBean
I can't figure out how to expose a start service using an XMBean. I started with the code in the JBoss EJB3 tutorial (XMBeanService.java) and modified it to include: | public void start() { |System.out.println("Start was called"); | } | Deploying the JAR produced the expected output. I then added the following to the service-xmbean.xml file: | | start | void | | This produced the following exception: | java.lang.RuntimeException: Problem registering @Management interface for @Service class org.jboss.tutorial.service.bean.XMBeanService | at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.java:804) | at org.jboss.ejb3.service.ServiceContainer.create(ServiceContainer.java:251) | 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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59) | at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150) | at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) | at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241) | at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) | at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109) | at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70) | at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221) | at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) | at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) | 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.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) | at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121) | at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51) | at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) | at org.jboss.dependency.plugins.AbstractController.res
[jboss-user] [EJB 3.0] - JndiUtil - assumes HA-JNDI service is installed
Hi, in JBoss AS 4.2.3 the code for org.jboss.ejb3.JndiUtil includes: | Object object = null; | | try | { | object = jndiContext.lookup(binding); | } | catch (NameNotFoundException e) | { | Context haCtx = InitialContextFactory.getHAContext(jndiContext); | object = haCtx.lookup(binding); | } | | return object; |} | So, if the local lookup fails, a call is made to the HA context - without checking to see if the haCtx object is not null... If the HA JNDI service is not installed (i.e. such as in my development environment) then this call fails with a null pointer exception. I stumbled upon this when I tried to configure an XML based entity manager injection into a stateless session bean and got the persistence-context-ref-name value wrong. I then had to install the ha jndi service (along with the default partition service) to find out what the actual name being looked up was. I thing it would be helpful if there was a not-null check on haCtx, if haCtx is null then the original naming exception should be re-thrown so the logs show what jndi name failed. Cheers, Andy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231415#4231415 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal 2.7.0 compatibility with Internet Explorer
I am getting the same error with verson 2.7.2. It works fine in IE 7, but not with IE 6. Is there a .css change needed that can be applied? Or should I try to backtrack to 2.71 or even a beta version of 2.7.0? Any suggestions would be greatly appreciated! Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231414#4231414 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231414 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Spring LoadTimeWeaver not working in JBoss AS 5.0.1
Alen, I made a small change to JBoss5LoadTimeWeaver, which should elliminate the policy error. Could you get the latest version and try again? Thanks, Marius View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231413#4231413 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JBoss Portal : Creation of New Portals
Yes you can, the documentation tells you how. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231407#4231407 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: CallbackHandlerClassName not being used !
http://anil-identity.blogspot.com/2009/05/as51-specifying-custom-call-back.html View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231410#4231410 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to define a process definition that has multiples su
Thanks! This helped me also. The need for the binding="late" came after upgrading from JBoss ESB 4.4.GA to 4.5.GA. Before that there's no need for the it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231409#4231409 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Spring LoadTimeWeaver not working in JBoss AS 5.0.1
Alen, I made a small change to JBoss5LoadTimeWeaver, which should elliminate the policy error. Could you get the latest version and try again? Thanks, Marius View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231408#4231408 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231408 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
I found the error text in the JBoss AS source. I think it might have something to do with your use of the telnet appender, possibly when a second person connects to the appender. The code giving this error is looking for recursive calls to the write method. You could test this by having one person and then another connect to the telnet connector and see if that stops the logging. If so, you might want to use another connector. Looking at the source code, I do not see anything that would hint at logging being disabled at the time this error is displayed. The code pretty much displays the error and then continues on. Also, when you say that logging stops, do you mean it stops for the telnet appender only, or for the file appender also? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231406#4231406 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231406 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: RA deployment with native libraries
anonymous wrote : Were you able to deploy the RAR in the Jboss4.* Or you are deploying this for the first time directly on the JBoss5? First attempt at using JBoss. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231405#4231405 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231405 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
Oh, and what version of JBoss AS? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231402#4231402 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
Could you post the entry log entry for the error "ERROR: invalid console appender config detected, console stream is looping" - I cannot find this text in Log4J and knowing which class is printing this log entry will help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231400#4231400 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231400 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JBoss Portal : Creation of New Portals
Hi, I would like to know if there is a possibility of creating new portals in JBoss Portal. For ex: there is default portal in jboss. I would like to create some thing: shubhzPortal as the parent portal. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231397#4231397 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231397 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
Thanks my friend, sorry for my ignorance | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231395#4231395 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231395 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
When posting XML text or source code, please enclose the text in UBBCode "code" tags - you can do this by selecting the text and clicking the Code button above the editor window. Also, click the Preview button to ensure that the formatting is correct and the XML text shows up before posting. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231393#4231393 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231393 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
Sorry, I tried to put the jboss-log4j.xml in the text before, but I couldn´t. " " " " View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231392#4231392 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231392 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Session replication with sticky session
Hi, I could setup JBoss cluster with 2 nodes with apache/mod_jk as front-end. I did enabled the sticky session in mod_jk configuration. PS: I'm using Jboss-4.2.3.GA Now, the problem is with session replication. I couldn;t get the session replicated on one node failure. I added tag to web.xml and I added the following in jboss-web.xml SET_AND_NON_PRIMITIVE_GET SESSION Also, I enabled... "jvmRoute" and "UseJK" for both the nodes. When I remove the sticky session then, teh session is replicated properly on both the nodes. Any pointers would be highly appreciated. Thanks, Suresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231391#4231391 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
Thanks for your quik answer. In our search for the cause of the problem we changed the original daily rolling file for a single rolling file, increasing the max file size parameter to 100 Mb.: We're using another one: Yes, I'm using tail -f server.log for a kind of monitoring process, becouse or the problem. I've noticed that there is a message just before it stop logging: "ERROR: invalid console appender config detected, console stream is looping". I'm sorry for know nothing about Mbeans. And finally, yes, we use jboss-log4j.xml file. Thanks again View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231389#4231389 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231389 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: HTTP Status 500 - No authenticated user while accessing
Hi mabimal, 1) your conf/login-config.xml looks okay, and I assume works because your login servlet works? 2) dont change portal-server.war/WEB-INF/jboss-web.xml, instead change the ...ds-xml file in deploy 3) remove your login servlet - that's not the way to do it... if you want to customise your login module then do this: 4) create a new class extending the org.jboss.portal.identity.auth.DBIdentityLoginModule, and in the overridden commit method you will be given a Subject which has .getPrincipals() method that returns not just the current user but also their roles ("Authenticated" should be in there because it's specified in the following line in the login-config.xml file Authenticated That role is specified in the portal-server.war/WEB-INF/web.xml here: | | | Authenticated | | /auth/* | | | Authenticated | | | which basically says anything down the address http://server/portal/auth/... (which includes the dashboard) will require this "Authenticated" UserPrincipal in the Subject.getPrincipals() list. If you login this way then you can investigate the Subject to find out what roles you have. I suspect you dont have the "Authenticated" UserPrincipal in the Subject and therefore cannot view anything down the .../auth/...address path. btw, youll have to put your jar with the new YourDBIdentityLoginModule into the portal sar (or any other deployed sar) so it's on the class path for portal to see it, and change your line in login-config.xml from to: | Hope this helps, mat View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231386#4231386 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231386 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Stateful bean keep-alive
Don't set removalTimeoutSeconds, use idleTimeoutSeconds instead. See http://www.jboss.org/community/wiki/HowdothetimeoutsworkwithEJB3StatefulBeans This way unused beans are passivated and thus don't remain in memory. You can also set removalTimeoutSeconds to a large value, such as 8 hours. That way if the client really went away, the bean will be removed from the passivation storage are after a while. Creating a new client thread might work, but you have to be careful. First, the thread must not lookup the EJB itself - you will end up with a new EJB, not with the one that you want to keep alive. Therefore, you must pass the bean's proxy to the thread. Second, I recommend creating a separate method on the EJB that does nothing - the primary purpose of this method is for the extra thread to occasionally call it. This should guarantee that the state of the bean does not change inadvertently. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231381#4231381 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231381 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss support in Eclipse
Have you changed the ports that JBoss AS uses? If you have, then unless you also change the config within Eclipse, the tools will not recognize that the app server has started. When you start the app server in Eclipse, the Console View should shows the console log output, the last line of which will be the "started in" line. Are you seeing that line? If not, what is in the Console View? Please post it. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231380#4231380 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231380 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Problem with logs
JBoss AS uses Log4J to do its logging. What appenders are you using? The default FILE appender uses a daily rolling file appender - thus at midnight you get a new log file. In one way this might appear as if logginf stopped (if you are doing something like 'tail -f server.log'). Also, there is a MBean that can be used to control logging. Anyone can use that MBean to change the log settings. You can secure the JMX invoker to limit this capability. Finally, how did you go about getting logging for your apps? By modifying the jboss-log4j.xml file, or by some other mechanism? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231379#4231379 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231379 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Problem with logs
Hi there, I'm having a lot of troubles logging my applications with jboss. We are changing Oracle Application Server with Jboss Application Server. We tested a lot our applications and after we eradicated all the mistakes, application ones, we are now facing a big trouble: all the applications deployed in a server (as a matter of fact is a cluster of two servers) logs all the activity normaly but suddenly stops logging, I mean, they continue doing things but not write to the log file anymore. I tried two other appenders, ina different file, and in a ftp console, but when it stops they stop too. I'm not a developer, just a system programmer learning about this word. Thanks in advance whomever can help me, and please excuse my poor english. I'm from Venezuela. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231376#4231376 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231376 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [The Lizzard's corner] - Seam versus Grails
Hi, I was wondering if there was any stats available to back up the argument for Seam versus Grails. I am currently pushing for seam to be used in our next company project. Personally I have not used grails before so cannot comment but have to say I really do like seam. One of my key arguments would most likely be that seam way out performs grails but i need some hard data to back this up. Can anyone assist please? Many thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231369#4231369 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231369 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Tips for keeping the JBoss AS running for a long time withou
Hello, everybody! Are there any known tips and advices for keeping the JBoss Application Server running the most time possible without problems or crash? Things of the kind 'you should do this...' and 'you shouldn't do this' ... Marcos View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231367#4231367 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231367 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Mail node with file attached
most simple thing is to adapt the existing mail node code and use that as an action on a basic node. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231365#4231365 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Global Actions
My most detailed answer without looking in the source myself would be 'because' maybe added by 'it is not implemented that way'. Look at the source to have an exact why... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231363#4231363 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Tracing wsconsume
Interesting. I don't get any log output either. This leads to two possibilities: 1) There is no logging code being performed in the classes used by wsconsume 2) One of the classes used by wsconsume is changing the logging settings, thus overriding the log4j.configuration setting. My bet would be with option 1. Back in the book, the tip on page 244 that you referred to specifically calls out issues with logging when running your client app, using wsrunclient. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231361#4231361 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231361 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Global Actions
why not? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231360#4231360 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231360 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Spring LoadTimeWeaver not working in JBoss AS 5.0.1
Alen, thanks for letting us know. I'll try to look into this. Ales, also, can you provide an insight into the issue? I think that the problem is caused by getThrowawayClassLoader() being called multiple times, with the same policy (which causes the same classloader to be set repeatedly on the policy), but I didn't see this with AspectJ. Could be a possible solution to register a throwaway clone of the original policy (we don't need transformation at this point, just inspection)? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231359#4231359 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231359 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Spring LoadTimeWeaver not working in JBoss AS 5.0.1
I tried deploying my web application with the Load-time weaving support and Spring 2.5 on JBoss AS 5.0.1. That attempt wasn't very sucessful even if giving the spring-agent a try. ("... -javaagent:spring-agent.jar") I came across the following recent bug report though: https://jira.jboss.org/jira/browse/JBSPRING-1?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel I tried the fix, provided by Ales Justin, in the bug report (See comment section) and now got the following error though: java.lang.IllegalStateException: Policy already has a classloader previous=baseclassloa...@19519a1{vfsfile:... See below for more detailed exception stack trace: | 16:31:02,502 ERROR [ContextLoader] Context initialization failed | org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userServiceLookup': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner be | an)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transact | ionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/spring-context.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframe | work.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/spring-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Policy already has a classloader previous=baseclassloa...@19519a1{vfsfile:/C:/development/jboss-5.0.1. | GA-jdk6/jboss-5.0.1.GA/server/default/deploy/InspecApplication.ear/InspecWeb.war/} | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485) | at java.security.AccessController.doPrivileged(Native Method) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455) | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170) | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:407) | at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735) | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369) | at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251) | at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) | at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) | at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910) | at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312) | at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144) | 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:2
[jboss-user] [JBoss jBPM] - Re: anyone working with jbpm-3.2.6.SP1?
Hi, I do not have Jboss AS5 already..I downloaded Jboss with the jbpm installer from the optional components...and got the dirs as mentioned above. Can you tell me which files do I have to change apart from the ones that I already changed as mentioned in my prev posts ? Thanks in advance, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231350#4231350 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231350 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: how to create jndi connection factory & jms destination
4.0.2? Wow, that is old. Have you read the docs - all of your questions should be answered in there - start wit the Getting Started Guide. Also, get a copy of JBos At Work - it is based on 4.0.2 from what I recall. docs: https://www.jboss.org/community/wiki/JBossApplicationServerOfficialDocumentationPage JBoss At Work: http://oreilly.com/catalog/9780596007348/ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231348#4231348 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231348 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Support of J2EEDeployer and AutoDeployer in jboss-5.0.1
What kind of DB changes? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231347#4231347 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231347 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Ear as a loader repository
Thanks jaikiran. I can't do anything about the version of jboss I am using I am afraid, believe me I would if I could. On top of that I am using a build system that packages the EARs up in a specific way, including putting all the jars files in the APP-INF/lib directory. It would be possible for me to configure the build to do it differently, but instead of that I used your suggestion and registered all the jars using: | APP-INF/lib/saaj.jar | Now if I have a jboss-app.xml containing this: | | hello:service=LoaderRepository | | All my jars are loaded from the EAR successfully. Thanks again for your help jaikiran, greatly appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231343#4231343 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231343 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - JMS receiving connection dropped (ConnectionValidator), clie
Hello, we have an JBoss ESB 4.5.ga (jboss.org) (also tried upgrading the remoting.jar to 2.5.1, to no effect) and a standalone Application to act as a JMS client, using jboss messaging client 1.1 jbos remoting 2.5.1 jboss aop jdk5 1.5.5ga (other libraries copied over from ESB as needed) to connect to the central ESB (same instance in all 5 cases I explain below) Now, starting up the client, everything looks fine, but after some time (sometimes after a few minutes, usually about 10min), the client seems to loose it's (receiving) connection. Worse, the client doesn't notice this, and continues to "listen" for messages, that queue up at the ESB, but are no longer received at the client. Loss of connection: | 2009-05-15 10:46:08,956 DEBUG Thread-54 org.jboss.remoting.ConnectionValidator - Thread[Thread-54,5,main] calling ConnectionState[zx3-zko0nquf-1-jmauqmuf-1f7h3-w3l3hs4].ConsolidatedListener.handleConnectionException() | 2009-05-15 10:46:08,966 DEBUG Timer-4 org.jboss.remoting.ConnectionValidator - ConnectionValidator[d166b5:SocketClientInvoker[8a224d, bisocket://gerappxx...xxx.com:20098], pingPeriod=2000 ms] stopped, returning true | 2009-05-15 10:46:08,966 DEBUG Timer-4 org.jboss.remoting.ConnectionValidator - org.jboss.remoting.connectionvalidator$waitonconnectionchecktimert...@ba5cbf detected connection failure: stopping LeasePinger | 2009-05-15 10:46:08,970 DEBUG Timer-4 org.jboss.remoting.LeasePinger - LeasePinger[SocketClientInvoker[70241a, bisocket://gerappxx...xxx.com:20098](3j001-dhemnd-fuqn2dqu-1-fuqn2fi9-6)] setting disconnect timeout to: -1 | 2009-05-15 10:46:08,979 DEBUG Timer-4 org.jboss.remoting.LeasePinger - LeasePinger[SocketClientInvoker[70241a, bisocket://gerappxx...xxr.com:20098](3j001-dhemnd-fuqn2dqu-1-fuqn2fi9-6)]: disconnectTimeout: -1 | 2009-05-15 10:46:08,982 DEBUG Timer-4 org.jboss.remoting.ConnectionValidator - ConnectionValidator[d166b5:SocketClientInvoker[8a224d, bisocket://gerappxx...xxr.com:20098], pingPeriod=2000 ms] shut down lease pinger | 2009-05-15 10:46:08,982 DEBUG WorkerThread#0[172.17.129.140:20457] org.jboss.jms.server.remoting.ServerSocketWrapper - wrote CLOSING byte | 2009-05-15 10:46:08,982 DEBUG WorkerThread#0[172.17.129.140:20457] org.jboss.remoting.transport.socket.ServerThread - WorkerThread#0[172.17.129.140:20457] closed socketWrapper: ServerSocketWrapper[Socket[addr=gerappxx...xxx.xxx/172.17.129.140,port=20457,localport=49313].3949e7] | 2009-05-15 10:46:09,770 DEBUG Timer-3 org.jboss.remoting.ConnectionValidator - ConnectionValidator failed to ping via SocketClientInvoker[8a224d, bisocket://gerappxx...xxx.com:20098] | java.lang.Exception | at org.jboss.remoting.ConnectionValidator.doCheckConnectionWithLease(ConnectionValidator.java:654) | at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:334) | at java.util.TimerThread.mainLoop(Timer.java:512) | at java.util.TimerThread.run(Timer.java:462) | 2009-05-15 10:46:30,829 DEBUG JmsCommunicationServiceImpl-Receiver com.xxx.xx.xxx.xxx.JmsCommunicationServiceImpl - no message during timeout period. another turn... | And the listening client works like this: | InitialContext ctx = new InitialContext(connectionProperties); | queueOut = (Queue) ctx.lookup(queueNameOut); | queueIn = (Queue) ctx.lookup(queueNameIn); | | QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup(connectionFactory); | QueueConnection qc = qcf.createQueueConnection(); | qc.setClientID(Prefs.get("serverId")); | ctx.close(); | qc.start(); | ... | while (!terminate && queueConnection!=null) | { | try { | QueueSession qsession = queueConnection.createQueueSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE); | QueueReceiver qreceiver = qsession.createReceiver(queueIn); | Message msg = null; | try { | msg = qreceiver.receive(60*1000); | } catch (JMSException e) { | log.error("waiting for message", e); | } | | if (msg==null) | { | log.debug("no message during timeout period. another turn..."); | } | else | { | log.info("received message #"+msg.getJMSMessageID()); | ... | } | | qreceiver.close(); | qsession.close(); | } | catch (Exception e) | { | log.error("trying to receive message(s)", e); |
[jboss-user] [Javassist user questions] - Change Code
I wanted to override a method, and this method is inherited from another class and when the edit method with javassist he just putting code "method father", how can I get this code method father? How can I overwrite a part in a specific code of a .class? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231337#4231337 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231337 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: How change final class to abastract class?
Solutions: | CtClass clazz = classPool.get("SOMECLASS"); | clazz.setModifiers(Modifier.ABSTRACT); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231336#4231336 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231336 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: 3.2.6 maven dependency question
"kukeltje" wrote : lucene/jackrabbit were/are for JCR (JSR-168) compliant storage options. Not used by a lot of people. | | The other 2 I do not no by heart (and no time to find out for you now) Thanks very much Ronald for your kind answer. I don't see why optional dependencies that aren't used by a lot of people should be defaulted in pom file. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231333#4231333 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231333 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Cache 1.4.1 Performance Problem
Hi All We have a scenario which distributed cache is used as a in memory storage. We might be using cache in a wrong way but it takes up to 20 sec to be able replicate removing one object. If we start using single node it just up to 600 or 700 ms. Scenario : Deployment : 3 JBoss Server 4.3 EAP CP1 (Community Patch) are clustered. Load Balancer is in place. Messaging Queue is used for getting tokens from external system. Execution: Clustered nodes communicates with message queue to get tokens. When a nodes gets a token, it puts the token into the distributed cache. Whenever a request is directed to a node, that node remove a token from cache, uses it to return response. Token is stored under same node on tree cache. Token id is used as key on the map and itself is the value. Whenever application deployed on jboss As instance needs a token, it just gets first available token from that node. And it removes token according its own key. 1) Is it an example of how not to use jboss cache? 2) What is possibly missing on jboss cache configuration? Cache Configuration: | | jboss:service=Naming | jboss:service=TransactionManager | org.jboss.cache.JBossTransactionManagerLookup | NONE | | REPL_ASYNC | | xyz | | | | | | | | | | | | | | | | | | 5 | 2 | 15000 | | And Token | public class TokenCarrier implements java.io.Serializable{ | | private java.lang.String v1; | private java.lang.String v2; | private java.lang.String v3; | private java.lang.String v4; | private long creationTime; | | ... some getter ... setter | } | | Thanks for help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231327#4231327 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm persistance fails after running for a while
And do you know where I could maybe have a look to fix this? I have no idea. Or maybe should I ask MySQL experts? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231315#4231315 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Problems with reading from a blob - length of byte's array a
My configuration: 1. Linux Red Hat 2. JBoss 4.2.0 3. Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 4. Oracle's driver - ojdbc14-10.2.0.4.jar, orai18n-10.2.0.4.jar When I invoke ejb3-methods that should return me a byte's array (I have fields of objects mapped to a blobs) I always get a truncated byte's array with length equals 86 bytes %-0. It is very strange because all invocations very different - different ejb3-methods, tables, fields' mappings (orm.xml). And it is only true for configuration mentioned above in some server. I couldn't reproduce the same problem in other servers (they have similar configuration) but the first server very important - it is a PRODUCTION server. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231312#4231312 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231312 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Ear as a loader repository
anonymous wrote : and not from the EAR's APP-INF/lib. The APP-INF folder is not identified by JBoss. I guess it's specific to WebSphere. anonymous wrote : jboss-4.0.3SP1 Any specific reason why you are using a old version of JBoss? In this version of JBoss, i guess you can create a "lib" folder at the root of the EAR and then add all the necessary jars to this lib folder. You will additionally have to mark all these jars as a java module in the application.xml: | | lib/saaj.jar | You might sometimes need to scope the classloaders (through jboss-app.xml) if you are packaging any jars which are already provided by JBoss. In JBoss-4.2.x, this is much easier. You can just drop all the necessary jars in the EAR/lib folder without having to add them as java modules in application.xml. And the classloader scoping needs to be done here too, if you are overriding some jar files. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231311#4231311 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231311 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem executing two timers simultaneously from fork
| | | | | | | | | | | | | | | | | | | | | | | | | | | The code within action handler is MOOFFFICER_APPROVAL_LOOP_COUNTER variable value is set as 0 initially when request is submitted. | try{ | String loopCount = (String)context.getVariable("MOOFFFICER_APPROVAL_LOOP_COUNTER"); | | if("3".equals(loopCount)) | { | | context.leaveNode("MoNoResponse"); | |} else | { | | context.setVariable("MOOFFFICER_APPROVAL_LOOP_COUNTER", (new Integer((new Integer(loopCount)).intValue() + 1)).toString()); | | | context.leaveNode("MoTimeout"); | | } | | } | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231308#4231308 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem executing two timers simultaneously from fork
anonymous wrote : The issue is timers are not executed simultaneously by the scheduler i have jobexecutor servlet entry in web.xml i am using tomcat server. That's because they are two non-related timers. And before you ask the next question, you cannot have them be executed at the same time since that is not supported in any way. That only one is executed is strange. Do you have a unittest with everything embedded (processdefinition and actionhandlers) that demonstrates the problem? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231307#4231307 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231307 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JPQL - Query Parameter
Thank you! Now that worked. Now i can continue my studies... until my next problem. :) Thank you again, Israel View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231305#4231305 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231305 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Global Actions
global actions yes, just put them on the top level, but you cannot have them be executed for every event that is thrown View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231304#4231304 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231304 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Problem executing two timers simultaneously from fork
Hi, I am using jbpm 3.2.3 ,i am facing an issue in implementing a particular requirement,I have a fork node which leads to two tasknodes ,tasknode1 and tasknode2 within each task node i have a timer with action associated to each of them. The issue is timers are not executed simultaneously by the scheduler i have jobexecutor servlet entry in web.xml i am using tomcat server. Only one of them gets executed properly and the count value is also incremented if same time is given for both timers. On giving different duedate for both timers the actionhandlers are executed properly.else a delegation exception is arised in jbpm job table for one of them. Can anyone please help me out and tell is ther any way to achieve simultaneous execution of these timers. Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231302#4231302 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Global Actions
Is there any way to define global action which will be executed for every event thrown? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231285#4231285 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231285 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB deploy before queue is ready
anonymous wrote : From what I can tell, it seems to be an issue of timing, it's deploying the EJBs and creating the queues at the same time. Is there any way to tell the EJBs to wait for the queues - other than putting some dependency on the EJBDeployer itself? For instance, any way in the ejb-jar.xml to tell the ejbs to wait for the queue to be created before trying to be deployed? You can do that through jboss.xml. Here's an example: | | | MyEJB | jboss.mq.destination:name=DLQ,service=Queue | ... | | ... | The EJB then will deploy after the DLQ queue is deployed. You will have to check the jmx-console to find the correct MBean service name for the queue. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231277#4231277 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Migration issue
sorry for the above clumsy post. The problem being after the migration frm 4.2.2 to 5.0.1 i have the following issue | 2009-05-14 14:14:02,546 INFO [main] org.jboss.web.WebService | Using RMI server codebase: http://SIVA-LT:8083/ | | 2009-05-14 14:14:02,609 DEBUG [main] org.jnp.server.NamingBeanImpl | Using NamingServer: org.jnp.server.namingser...@5f634c | | 2009-05-14 14:14:02,609 DEBUG [main] org.jnp.server.NamingBeanImpl | Installed global NamingServer: org.jnp.server.namingser...@5f634c | | 2009-05-14 14:14:02,625 DEBUG [main] org.jnp.server.NamingBeanImpl | InitialContext Environment: | | 2009-05-14 14:14:02,625 DEBUG [main] org.jnp.server.NamingBeanImpl | key=java.naming.factory.initial, value(java.lang.String)=org.jnp.interfaces.NamingContextFactory | | 2009-05-14 14:14:02,625 DEBUG [main] org.jnp.server.NamingBeanImpl | key=java.naming.factory.url.pkgs, value(java.lang.String)=org.jboss.naming:org.jnp.interfaces | | 2009-05-14 14:14:09,796 INFO [main] org.jboss.wsf.stack.jbws.NativeServerConfig | JBoss Web Services - Stack Native Core | | 2009-05-14 14:14:09,796 INFO [main] org.jboss.wsf.stack.jbws.NativeServerConfig | 3.0.4.SP1 | | 2009-05-14 14:14:28,625 WARN [main] org.jboss.deployment.MappedReferenceMetaDataResolverDeployer | Unresolved references exist in JBossMetaData:[client.jar#ServiceAlarmExpressionEditorBean:AnnotatedEJBReferenceMetaData{name=SecuritySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SecuritySessionLocal}, client.jar#ServiceAlarmExpressionEditorBean:AnnotatedEJBReferenceMetaData{name=ServiceSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.ServiceSessionLocal}, client.jar#EditUserBean:AnnotatedEJBReferenceMetaData{name=SecuritySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SecuritySessionLocal}, client.jar#EditUserBean:AnnotatedEJBReferenceMetaData{name=ServiceSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,re! solved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.ServiceSessionLocal}, client.jar#AlarmSuppressionPolicyTableBean:AnnotatedEJBReferenceMetaData{name=FaultSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.FaultSessionLocal}, client.jar#NtpMonitorEditBean:AnnotatedEJBReferenceMetaData{name=SystemSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SystemSessionLocal}, client.jar#NtpMonitorEditBean:AnnotatedEJBReferenceMetaData{name=MonitorSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.MonitorSessionLocal}, client.jar#SecurityLogBean:AnnotatedEJBReferenceMetaData{name=SecuritySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=f! alse,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=inter face centina.sa.interfaces.nb.SecuritySessionLocal}, client.jar#HttpsMonitorEditBean:AnnotatedEJBReferenceMetaData{name=SystemSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SystemSessionLocal}, client.jar#HttpsMonitorEditBean:AnnotatedEJBReferenceMetaData{name=MonitorSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.MonitorSessionLocal}, client.jar#DbBackupAction:AnnotatedEJBReferenceMetaData{name=SystemSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.SystemSessionLocal}, client.jar#TopologyLocusBean:AnnotatedEJBReferenceMetaData{name=TopologySessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null! ,beanInterface=interface centina.sa.interfaces.nb.TopologySessionLocal}, client.jar#WorkFlowsBean:AnnotatedEJBReferenceMetaData{name=WorkflowSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.WorkflowSessionLocal}, client.jar#WorkFlowTicketActionBean:AnnotatedEJBReferenceMetaData{name=WorkflowSessionLocal,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface centina.sa.interfaces.nb.WorkflowSessionLocal}, client.jar#WorkFlow
[jboss-user] [Clustering/JBoss] - Re: Clustering JBOSS 5.0
^you might want to change following parameter View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231273#4231273 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Clustering JBOSS 5.0
Hi I think farmin is not available on jboss 5.0.0GA but will be available with 5.1.0GA via profile settings. In order make cluster between to nodes, you can download 5.0.0GA start with on Node 1 ./run.sh -c all -Djboss.partition.name=xyz -Djboss.messaging.ServerPeerID=1 start with on Node 2 ./run.sh -c all -Djboss.partition.name=xyz -Djboss.messaging.ServerPeerID=2 I dont think you need to edit anything else. If there is already running clustered environment in your local network, you might want to following parameter as well -Djboss.partition.UdpGroup= UDP_ADDRESS View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231271#4231271 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - problem while installing jboss-BPEL for jbossAS4.2.2.GA
null pointer exception while installing jboss WS-BPEL and I find jbpmService controller failed plzz help View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231264#4231264 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231264 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm 3 or 4
jira still says it is july 1st and jira is always right :-D View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231255#4231255 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231255 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: EJB deploy before queue is ready
The same problem was on Weblogic 8. I'm courius of proper solution. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231254#4231254 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231254 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Ear as a loader repository
I have been searching around and not been able to find much that is particularly in depth about how to configure the classloading for jboss. I have read through this: http://www.jboss.org/community/wiki/ClassLoadingConfiguration and tried configuring my jboss-app.xml accordingly, by pointing the class that is giving me NoSuchMethodError explicitly at the jar I want it loaded from ( e.g. javax.xml.soap.SOAPElement:loader=myearapp.ear and javax.xml.soap.SOAPElement:archive=saaj-api-1.3.jar ). This doesn't appear to work in the jboss-app.xml at EAR level but only in the jboss-web.xml at WAR level ( e.g. javax.xml.soap.SOAPElement:loader=mywarapp.war ) with the libraries in the WEB-INF/lib, and I have a feeling that is because that is the first place searched for classes. I have also read this: http://www.weiqigao.com/articles/jboss/foil18.html and tried using that suggestion in the jboss-app.xml, it did appear to have some affect but not the desired one of looking at the EAR for classes prior to the app server. I have also read the jboss-app DTD from here: http://www.jboss.org/j2ee/dtd/ ( then the jboss-app_4_0.dtd for my version ) which gives me info about the elements allowed with in the jboss-app.xml but gives no extra information on the values that are valid within those elements. If anyone could provide me with more information about jboss classloading or specifically about the values that are appropriate for the jboss-app.xml loader-repository tag it would be very helpful indeed. this is a bit of a classloading nightmare. Cheers. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231253#4231253 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231253 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm persistance fails after running for a while
it's partially closed if one end thinks it is still open and the other end doesn't. The dbms can be still up, opening a fully new connection works and even other connectionpools, e.g. configured differently might still work. All basic JEE stuff. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231250#4231250 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Replication, CacheMarshaller, Region
| | true | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231246#4231246 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231246 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Replication, CacheMarshaller, Region
Hi Rich Thanks for suggestion. I'm trying to use forums for development problems before disturbing red hat customer support. I think(not sure as I have other problems such as http://www.jboss.org/index.html?module=bb&op=viewtopic&t=155517 ) adding following line int the config fixed my problem regarding cache. true Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231245#4231245 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231245 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - ClassNotFoundException for Custom JMX Notification(2)
Hi All I thought I might need to clarify myself better to find out what I'm doing wrong. Please check the simple code below and its configuration. Scenario: 2 Nodes --> 1 on linux, 1 on windows xp Version of As= jboss EAP 5.0.0 Java 1,6 JBoss As 1 starts on linux and get deployed. startSingleton will get executed without a problem as there is no other service in the cluster. JBoss As 2 starts on windows and get deloyed. This deployment forces service instance on As 1 to give up being master. (Still couldnt figured out why) When service deployed on As 2 become master it sends notification to remote with provisionMessage. When notification hit As 1, As 1 start throwing ClassNotFoundException. I know it is class loader issue at ear level but I couldnt figured out how to resolve. Note: ProvisionMessage and TestService in the same package. Code is executed on : jboss eap 5.0.0 Alpha Thanks, please let me know anymore information. Below is simple service code | public class TestService extends HAServiceMBeanSupport | implements TestServiceMBean, NotificationListener { | | private static Logger logger = Logger.getLogger( | TestService.class); | | | @Override | public void startSingleton(){ |logger.info("Start Singleton Service"); |Notification not = new Notification("Test", this, System.currentTimeMillis()); | |not.setUserData(new ProvisionMessage(1, 1)); | |try{ |this.sendNotificationRemote(not); |}catch(Exception e){ |logger.error(e); |} | } | | @Override | public void stopSingleton(){ | logger.info("Stop Singleton Service"); | } | | @Override | protected void createService() throws Exception { | super.createService(); | logger.info("Create Service"); | } | | @Override | protected void startService() throws Exception { | super.startService(); | logger.info("Start Service"); | this.addNotificationListener(this, null, null); | } | | @Override | protected void stopService() throws Exception { | super.stopService(); | logger.info("Stop Service"); | } | | @Override | protected void destroyService() throws Exception { | super.destroyService(); | | logger.info("Destroy Service"); | } | | @Override | public void handleNotification(Notification notification, Object handback) { | ProvisionMessage msg = (ProvisionMessage)notification.getUserData(); | logger.info(msg); | } | } | | public class ProvisionMessage implements Externalizable { | | private int accId; | private int conId; | | public ProvisionMessage(int accountId, int connectionId) { | this.accountId = accountId; | this.connectionId = connectionId; | } | | public ProvisionMessage(){ | //For Serialization | } | | @Override | public void writeExternal(ObjectOutput out) throws IOException { | out.write(accId); | out.write(conId); | } | | @Override | public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { | this.accId = in.readInt(); | this.conId = in.readInt(); | } | | public int getAccId() { | return accId; | } | | public int getConId() { | return conId; | } | | @Override | public boolean equals(Object obj) { | if (obj == null) { | return false; | } | if (getClass() != obj.getClass()) { | return false; | } | final ProvisionMessage other = (ProvisionMessage) obj; | if (this.accId != other.accId) { | return false; | } | if (this.conId != other.conId) { | return false; | } | return true; | } | | @Override | public int hashCode() { | int hash = 7; | hash = 59 * hash + this.accId; | hash = 59 * hash + this.conId; | return hash; | } | | Exception : | 09:40:29,709 INFO [STDOUT] 09:40:29,709 INFO [TestService] Stop Singleton Service | 09:40:29,720 WARN [ClusterPartition$RpcHandler] Partition xyz failed extracting message body from request bytes | java.lang.ClassNotFoundException: xyz.ProvisionMessage | at java.net.URLClassLoader$1.run(URLClassLoader.java:200) | at java.security.AccessController.$$YJP$$doPrivileged(Native Method) | at java.security.AccessController.doPrivileged(AccessController.java) | at java.net.URLClassLoader.findClass(URLClassLoader.java:188) |
[jboss-user] [Beginners Corner] - how to create jndi connection factory & jms destination rsou
hey i am new to jboss application server. i want to know how to create jndi connection factory & jms destination rsources in jboss 4.0.2 for my jms application. also i would like to know how to deploy my ear in the server. is there any gui interface available in jboss app server 4.0.2. unfortunately i have to use this version only. so pls help with a way out. thanx View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231235#4231235 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: anyone working with jbpm-3.2.6.SP1?
Ok, if you already have a JBoss AS5 installation, you do not need to select that in the installer. Just point to the correct AS dir and everything will be installed there automagically. You only need to change files then in the AS subdirs, nothing more in the install dir View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231231#4231231 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231231 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm persistance fails after running for a while
What do you mean by 'partially' ??? When the bug appeared, I checked the connection and everything was alright. I don't know how a connection could be partially closed. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231229#4231229 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm 3 or 4
ok, sry. ;) So you could reach it? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231228#4231228 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: 3.2.6 maven dependency question
lucene/jackrabbit were/are for JCR (JSR-168) compliant storage options. Not used by a lot of people. The other 2 I do not no by heart (and no time to find out for you now) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231227#4231227 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm 3 or 4
jBPM 4 GA is planned for July 1st, so that is an additional month ;-) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231226#4231226 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Caused by: org.jbpm.pvm.internal.wire.WireException: couldn'
Hi, I've installed the new jbpm4 beta 2 with jboss 5.0.1GA and eclipse jee 3.4 as described in the jBPM User Guide. The setup is running after smaller changes in the JBossStarterAntTask for my mac with ant demo.setup. Now I could login to the gwt-console. Great. If I start a process e.g. Java-1 I got a error page (http-500) in the console and the exception in the jboss log: 10:17:18,202 ERROR [STDERR] Caused by: org.jbpm.api.JbpmException: couldn't load class org.jbpm.examples.java.JohnDoe | 10:17:18,203 ERROR [STDERR] at org.jbpm.pvm.internal.util.ReflectUtil.loadClass(ReflectUtil.java:62) | 10:17:18,203 ERROR [STDERR] at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.construct(ObjectDescriptor.java:138) So I started the eclipse and redeployes the examples with the ant task jbpm.examples -> deploy.examples. As I can see in the build.xml, the java classes are not packaged in the examples.bar, so I've fixed the ant task: | | | | | | | In the gwt-console I've found now java-2, java-3 and so on. But If I start an instance of such a process definition I got the exception above. The examples.bar contains JohnDoe.class. What could I do? Regards View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231225#4231225 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Mail node with file attached
how do i do that?..is there any example you would be able to provide me? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231223#4231223 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231223 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm persistance fails after running for a while
looks like a problem with your datasource/connectionpool and not jBPM related. Connections seem to be 'partially' closed, so try to finda solution in that direction View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231222#4231222 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231222 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Mail node with file attached
not out of the box, develop your own mailnode code for that which can support mime attachments View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231221#4231221 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231221 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Support of J2EEDeployer and AutoDeployer in jboss-5.0.1
Thanks for the reply. It really helps me. Ya in my case that is sort of autodeploy. Now my last question is, How can I perform DB changes using jboss deployers? Thanks in advabce. Regards, Mahesh. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231217#4231217 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm persistance fails after running for a while
Hi, I've got a problem difficult to trace. My application works well, but after a while (I leave in the evening and come back the day after), the persistance is over. I'm running jBPM 3.3.1GA and MySQL 5.1.11, with the JDBC connector mysql-connector-java-5.1.7 here is the log I get: http://pastebin.com/m1c2c39e9 Lika I said, it's hard to debug because it's happening only after a while. Moreover, the MySQL server is still active and running (I also have a login process in my application, and it still works), so I think that the problem comes form jBPM. Here is an example of my code that uses jBPM API, in case of the use of persistance is wrong : http://pastebin.com/m4e20e430 Do you see something wrong? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231214#4231214 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: How to know what jars are needed for various of JMS bus
for JBoss Messaging, have a look at the documentation for a list of the required jars: http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.3.GA/html/installation.html#inst.remoteclient. For other providers, you'd better ask them directly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231213#4231213 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231213 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Weird behavior on AS 5 regarding multiple mail sessions
Hi, as i'm facing the same problem, here some more informations: Deploying of multiple MailService-mbeans seems working fine: twiddle.sh or the jmx-console shows the right values in the respective MailServices. The problem occurs during runtime, when one obtains a javax.mail.Session from the JNDI-Context. Now, this Session always is initialized with the values of the last mailservice deployed, regardless of which jndi-name is used to retrieve this mailsession. This error could be related to https://jira.jboss.org/jira/browse/JBAS-5896, as there is a "sharedSession" mentioned. In my opinion, it should not matter if this sharedSession is enabled or disabled by default, as we should have one sharedSession _per registered mbean_ (i do not know if the sharedSession mentioned in the bug report is one per server, or one per mail-mbean. One per server would be only useful if you never will use more than one different mailservice. I filed a jboss bug report, https://jira.jboss.org/jira/browse/JBAS-6923. Example to reproduce: See post from leonardomadrigal. Deploy two or more mailservices. For the sake of this example, deploy them each as individual files. Run his example application. Touch one of the deployed mailservices. Run the example application again. You always will see the properties of the last (just touched) mail-service. Workaround: none known yet. regards Stefan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231212#4231212 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231212 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - How to know what jars are needed for various of JMS bus
Could someone tell me how could I know what jars need to be included in the client's classpath when subscribing messagings to different JMS buses? For example when I try subscribing messagings to the OpenJMS on Glassfish, i know below jars are needed, appserv-rt.jar javaee.jar imqjmsra.jar imqbroker.jar imq.jar appserv-admin.jar jms.jar appserv-deployment-client.jar appserv-ext.jar I know this by receiving ClassNotFound exception and find the missing classes one by one, which is a time wasting job. Is there any short path for doing so? Or just a summary of those needd jars for various of JMS bus is ok. Thanks! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231208#4231208 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231208 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: JPQL - Query Parameter
Try this one: em.createQuery("from ObjectA o where o in(select b.ObjectA from ObjectB b where b in(:param))").setParameter("param", param).getResultList(); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231207#4231207 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Re-deployment questions?
Hi everyone, For my original question, I want to inform end user with a message (webpage) about the upgrading of web application whenever the end user access the web application. Does anyone have good idea to accomplish this objective? If we set the error webpage for 404 only in that web application, it won't work when stop/undeploy that web application. If we set the error webpage 404 globally in the whole JBoss, it may lead to wrong message to other application users. My main question is how to nice upgrade the web application, not just undeploy or delete that web application. Thanks anyone's help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231206#4231206 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: jboss and spring libraries
First, thanks for ask me. Jboss version is 5.0.0 Libreries of spring are: spring.jar 2.5.5, spring-core.jar, spring-test-2.5.1.jar, spring-web.jar and spring-webmvc.jar. And the complete stacktrace is: === JBoss Bootstrap Environment JBOSS_HOME: C:\Archivos de programa\jboss\jboss-5.0.0.GA JAVA: c:\Archivos de programa\Java\jdk1.6.0_13\bin\java JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resol ver.warning=true -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 CLASSPATH: C:\Archivos de programa\jboss\jboss-5.0.0.GA\bin\run.jar === 09:00:52,086 INFO [ServerImpl] Starting JBoss (Microcontainer)... 09:00:52,102 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120) 09:00:52,102 INFO [ServerImpl] Bootstrap URL: null 09:00:52,102 INFO [ServerImpl] Home Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA 09:00:52,102 INFO [ServerImpl] Home URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5.0.0.GA/ 09:00:52,102 INFO [ServerImpl] Library URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5.0.0.GA/ lib/ 09:00:52,102 INFO [ServerImpl] Patch URL: null 09:00:52,102 INFO [ServerImpl] Common Base URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5.0.0 .GA/common/ 09:00:52,102 INFO [ServerImpl] Common Library URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5. 0.0.GA/common/lib/ 09:00:52,102 INFO [ServerImpl] Server Name: default 09:00:52,102 INFO [ServerImpl] Server Base Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA\server 09:00:52,102 INFO [ServerImpl] Server Base URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5.0.0 .GA/server/ 09:00:52,102 INFO [ServerImpl] Server Config URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5.0 .0.GA/server/default/conf/ 09:00:52,102 INFO [ServerImpl] Server Home Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA\server \default 09:00:52,102 INFO [ServerImpl] Server Home URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5.0.0 .GA/server/default/ 09:00:52,102 INFO [ServerImpl] Server Data Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA\server \default\data 09:00:52,102 INFO [ServerImpl] Server Library URL: file:/C:/Archivos%20de%20programa/jboss/jboss-5. 0.0.GA/server/default/lib/ 09:00:52,102 INFO [ServerImpl] Server Log Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA\server\ default\log 09:00:52,102 INFO [ServerImpl] Server Native Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA\serv er\default\tmp\native 09:00:52,102 INFO [ServerImpl] Server Temp Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA\server \default\tmp 09:00:52,102 INFO [ServerImpl] Server Temp Deploy Dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA \server\default\tmp\deploy 09:00:54,368 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/Archivos%20de%20progr ama/jboss/jboss-5.0.0.GA/server/default/conf/bootstrap.xml 09:00:55,900 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.Iterable TimedVFSCache] 09:00:55,946 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution =60}] 09:00:56,650 INFO [CopyMechanism] VFS temp dir: C:\Archivos de programa\jboss\jboss-5.0.0.GA\server \default\tmp 09:00:56,712 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled. 09:00:59,885 INFO [ServerInfo] Java version: 1.6.0_13,Sun Microsystems Inc. 09:00:59,885 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 11.3-b02,Sun Microsystems Inc. 09:00:59,885 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 09:01:00,025 INFO [JMXKernel] Legacy JMX core initialized 09:01:04,385 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profi leservice.repository.serializabledeploymentreposit...@198d9cf(root=C:\Archivos de programa\jboss\jbo ss-5.0.0.GA\server, key=org.jboss.profileservice.spi.profile...@143b82c3[domain=default,server=defau lt,name=default]) 09:01:04,401 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository. serializabledeploymentreposit...@198d9cf(root=C:\Archivos de programa\jboss\jboss-5.0.0.GA\server, k ey=org.jboss.profileservice.spi.profile...@143b82c3[domain=default,server=default,name=default]) 09:01:04,401 INFO [ProfileServiceImpl] Loaded profile: profilei...@3f58bb{key=org.jboss.profileserv ice.spi.profile...@143b82c3[domain=default,server=default,name=default]} 09:01:08,292 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 09:01:09,417 ERROR [Naming] Could not start on port 1099 java.net.BindException: Address already in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359) at java.net.ServerS