[jboss-user] [Management, JMX/JBoss] - Re: service URL
The connection works, but you will only see MBeans that are registered with the JVM MBeanServer, not the MBeans deployed in JBoss MBean Server. I tried using -Djboss.platform.mbeanserver in JBoss 4.2 in order to have only one MBean server, but I got an exception at startup: 11:11:55,241 INFO [Server] Root Deployment Filename: jboss-service.xml Failed to boot JBoss: javax.management.InstanceNotFoundException: JMImplementation:service=LoaderRepository,name=Default at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.jboss.system.server.ServerImpl.initBootLibraries(ServerImpl.java:628) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:429) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) at org.jboss.Main.boot(Main.java:200) at org.jboss.Main$1.run(Main.java:508) at java.lang.Thread.run(Thread.java:595) Any idea how to fix this? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4188433#4188433 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4188433 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: service URL
Sorry guys for the previous post, I found the solution at:: http://www.jboss.org/community/docs/DOC-10521 Regards, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4188435#4188435 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4188435 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JBoss 4.2.2 with myfaces - java.lang.RuntimeException: C
Although this post is quite old, I see there is no final solution, so I'll post something I discovered: - when I deploy the war as part of an ear file, I could not get it to work; - when I deploy the way file separately, it works as long as I don't specify a context-root in jboss-web.xml. It seems as if when you specify a context-root, JBoss behaves as if you specified your own classloader (don't quote me on this...) Same for when the war is deployed inside a ear. Hope this helps Regards. Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4170287#4170287 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4170287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: MBean for inbound-resourceadapter
Vicky, to do that the MBean would need to have a reference to the Resource Adapter, but how? It seems that it cannot be looked up directly, so the only other way is for the resource adapter to register itself with the new MBean at startup. Doing so the resource adapter will be dependent on the new MBean, which I wanted to avoid, for I prefer to keep business code indipendent of management code. Is that what you had in mind? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4147139#4147139 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4147139 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: MBean for inbound-resourceadapter
Thanks Vicky, that's what I was looking for. The resource adapter I defined has other public methods, which are not visible from from this MBean. How can I invoke them? Ie. can I reference my Resource Adapter through the above MBean? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4145723#4145723 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145723 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: MBean for inbound-resourceadapter
I have a TCP inbound resource adapter, which listens on various ports. I want to be able to query which ports are active, be able to stop listening on some port, and start again, etc. Basically I need to manage the resource adapter functionality, without affecting its lifecycle. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4145805#4145805 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145805 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - MBean for inbound-resourceadapter
Hi there, is a JCA 1.5 inbound-resourceadapter manageable using JMX out of the box? I cannot find any existing MBean in jboss that I could use to control the resource adapter. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4145446#4145446 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Montoring JBoss Application Server and SNMP
Hi Anil, can you confirm that what you wrote is correct? I thought that the snmp adapter converted jmx notifications into snmp trap messages, and not viceversa as you wrote. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128348#4128348 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128348 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: custom log4j configuration inside ear
Hi Meissa, did you try with 4.2.1 ? thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4080826#4080826 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4080826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: custom log4j configuration inside ear
Hi there, is this forum still active? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066935#4066935 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066935 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - custom log4j configuration inside ear
I'm using JBoss 4.0.2 and 4.2.0 I wrote a Log4J Filter that I need to add to a Log4J appender. The Filter class is packaged inside a ear file. If I update the default jboss-log4j.xml in server/default/conf the Filter class is not visible. If I add a new log4j.xml and log4j.jar inside the ear file I could not find any way to tell JBoss to use that instead of the default one. Log4j.jar is still only loaded from server/default/lib and not from the ear. I tried to follow all the instructions in the wiki and forums, but classloading isolation does not seem to work. My ear file is made of ejbs and utilities jar. No webapps. Is this a known problem in those versions of JBoss? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065820#4065820 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - classpath problems loading plugins deployed outside ear
Hi there, I have an application that loads a class at runtime. This class implements an interface. I packaged an deployed my app in a ear file, which contains the interface. The implementation of this interface is contained in an external jar file. I want to make the jar file containing the implementation available to my application, but I don't want to package it within the ear file, because I want to swap implementations without having to rebuild the whole application. Is it something possible? I tried to read every documentation available, but I couldn't find a solution. If I deploy the implementation jar in server/default/lib, then I get java.lang.NoClassDefFoundError because the interface is not visible. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4047319#4047319 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047319 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: How to get a WorkManager from a Bean
Hi there, has any progress been made in JBoss on this front? Other vendors allow to use Workmanager from every component. It would be good to have the same feature in JBoss. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4041342#4041342 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4041342 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: JBossMessageEndpointFactory ClassNotFoundException when
Hi there, I tried your project, and it works fine for me too on both version of jboss (4.0.2 and 4.2.0) I cannot see any difference in the structure of the ear nor in the descriptors. Is there anything else we can try? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040484#4040484 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - access ActiveAlarmTable outside JBoss console
Hi there, where is the ActiveAlarmTable stored? Is there a way to access it from a different source? Is there a way to auto refresh jboss console to display the latest alarms? It would be good to have a way to map custom notifications to a severity, so that code doesn't have to use jboss specific utilities to generate notifications with severity. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040490#4040490 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040490 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: access ActiveAlarmTable outside JBoss console
Thanks Dimitris, 1) the table would then lose all its data after a jboss restart. Have you thought about persising the data somehow? 4) This seems quite a convoluted way. Would it be possible to have something like: This would apply only if the notification does not carry a severity. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4040498#4040498 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4040498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: JBossMessageEndpointFactory ClassNotFoundException when
Hi there, I'd rather avoid deploying the rar separately, because it needs quite a few things that are part of the ear. I don't want to have to deploy many different files. I give you more details about the content of the ear: - InputDriver.jar contains the message-listener interface, as well as other classes needed by the rar - InputDriver.rar is the resource adapter - RawProtocolService.jar contains the MDB that implements the message-listener interface, and its manifest points to InputDriver.jar in this way: Class-Path: InputDriver.jar jboss.xml for the MDB is this: ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 4.0//EN http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd; enterprise-beans ejb-nameMyApp/RawProtocolService/ejb-name jndi-nameMyApp/RawProtocolService/jndi-name local-jndi-nameMyApp/RawProtocolServiceLocal/local-jndi-name method-attributes /method-attributes message-driven ejb-nameMyApp/RawProtocolRoutingMDBean/ejb-name resource-adapter-nameMyApp.ear#InputDriver.rar/resource-adapter-name /message-driven /enterprise-beans assembly-descriptor/ resource-managers/ Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038791#4038791 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: JBossMessageEndpointFactory ClassNotFoundException when
I'm using 4.0.2. Did you try to deploy, stop the MDB with JMX console, and restart it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038914#4038914 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038914 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - JBossMessageEndpointFactory ClassNotFoundException when I re
Hi there, I have implemented a JCA 1.5 inbound-resourceadapter within my ear file. The resource adapter code is contained in a .rar file; the messagelistener-type interface is contained in a .jar file that is referenced from the manifest file of the rar. I have a MDB that implements the messagelistener-type, which is contained in another jar file. All of them are part of the ear. When I deploy and start the application everything works fine. If I then stop the MDB via the JMX console, when I try to start it again, I get a ClassNotFoundException for the messagelistener-type. Here is the stacktrace: [JBossMessageEndpointFactory] Starting failed jboss.j2ee:service=EJB,plugin=invoker,binding=message-inflow-driven-bean,jndiName=local/Solve3/[EMAIL PROTECTED] org.jboss.deployment.DeploymentException: Could not load messaging-type class biz.thelogicgroup.solve3.inputdriver.MessageRouting; - nested throwable: (java.lang.ClassNotFoundException: biz.thelogicgroup.solve3.inputdriver.MessageRouting) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39) at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.resolveMessageListener(JBossMessageEndpointFactory.java:312) I tried to reference the jar file that contains the messagelistener-type from the jar file that contains the MDB, but no difference. Any idea? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038520#4038520 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038520 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Example of TCP JCA Connector
Hi there, does JBoss ship with a TCP connector? I'm trying to implement a resource adapter (using JCA 1.5) to connect to a legacy application via TCP/IP channel, but I'm finding it quite hard. Especially how to manage physical connection pools without spawning separate threads. If you have an example it would be good as well. Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4008427#4008427 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008427 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Bug in ServiceDeployerEjb's portURI
Can someone tell me why this bug has been rejected? http://jira.jboss.com/jira/browse/JBWS-91 In the bug database it says that it's been fixed in jboss-ws4ee-4.0.2, but it also says that the resolution is Won't Fix. I can confirm that it's still a problem in 4.0.2. I implemented the suggested JBoss solution, but I think it should not be necessary to add more information to jboss.xml, when all it's need is already in webservices.xml Regards, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4006273#4006273 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4006273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: find mbean server - example of code not JBoss specific.
MBeanServerFactory.findMBeanServer(String); requires the MBeanServerId attribute of its delegate MBean, which I don't think is jboss. It's more likely something built at runtime and specific to the process running JBoss. Your suggestion applies to the MBeanServer.getDefaultDomain() though, which can be jboss. So I would have to loop through all the MBeanServer returned by the factory, and check the domain. Does that sound reasonable? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002695#4002695 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4002695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - find mbean server - example of code not JBoss specific.
Hi all, I discovered that in the JVM that runs Jboss there can be more than one instances of MBeanServer. This creates a problem when the code doesn't use JBoss specific classes to look up on of these instances. If I use the following code I can get more than one instance back: List list = MBeanServerFactory.findMBeanServer(null); if (!list.isEmpty()) { MBeanServer server = (MBeanServer) list.iterator().next(); } Say that I run this code inside JBoss, I want my code to use JBoss own MBeanServer. How to do that, and keep the code vendor agnostic? Thanks, Michele View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4002357#4002357 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4002357 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user