[Management, JMX/JBoss] - Monitor alerts depending on jboss.web not deploying
by teknokrat
I have created a monitor on the number of busy threads tomcat is using. When I restart jboss I get
| ObjectName: jboss.monitor:service=Busy_Thread_Count
| State: FAILED
| Reason: javax.management.InstanceNotFoundException: jboss.web:type=ThreadPool,name=http-0.0.0.0-80 is not registered.
| I Depend On:
| jboss.alerts:service=ConsoleAlertListener
|
The problem appears that jboss tries to deploy the mbean before tomcat is ready
| 2007-02-15 13:54:35,349 WARN [org.jboss.system.ServiceController] Problem starting service jboss.monitor:service=Busy_Thread_Count
| javax.management.InstanceNotFoundException: jboss.web:type=ThreadPool,name=http-0.0.0.0-80 is not registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
| at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:550)
| at org.jboss.monitor.ThresholdMonitor.startService(ThresholdMonitor.java:110)
| 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:597)
| 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)
|
|
|
The mbean is defined as
| ?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.monitor.ThresholdMonitor"
| name="jboss.monitor:service=Busy_Thread_Count">
| <attribute name="MonitorName">Busy Thread Count</attribute>
| <attribute name="ObservedObject">jboss.web:type=ThreadPool,name=http-0.0.0.0-80</attribute>
| <attribute name="ObservedAttribute">currentThreadsBusy</attribute>
| <depends-list optional-attribute-name="AlertListeners">
| <depends-list-element>jboss.alerts:service=ConsoleAlertListener </depends-list-element>
| </depends-list>
| <attribute name="Threshold">100</attribute>
| <attribute name="Period">10000</attribute>
| <attribute name="CompareTo">-1</attribute>
| <attribute name="Enabled">true</attribute>
| </mbean>
| </server>
|
Clearly, there is no dependency on jboss.web defined. Will this bug be addressed?
thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017036#4017036
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017036
19Â years, 2Â months
[Installation, Configuration & Deployment] - Re: MDB failing to deploy with ClassCastException
by creature
"jaikiran" wrote : Can you give us more details about how your MDBs are packaged and where have you created the queue?
Certainly.
What we have is (fairly) straighforward - a jobcontrol.ear file that contains the following:
foo.jar - The core classes of our app.
jobcontrol-ws.war - A web service interface for our app.
jobcontrol-mdb.jar - The MDB that acts as an interface between the web service and the core classes. It responds to messages posted by the web service.
At present jobcontrol-ws.war and jobcontrol-mdb.jar have some classes in common, which are themselves in common with the classes of foo.jar. This is not optimal but shouldn't be affecting our deployment right now, as far as I know.
The EAR file also contains a bunch of libraries in jars, and the container on the server has a bunch more in its lib/ directory. None of these overlap, as far as I know. foo.jar, jobcontrol-ws.war, and jobcontrol-mdb do not have any libraries in them.
The queue is created by the app server - the configuration in the EJB creates it, as can be seen at http://pastie.caboo.se/40508.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017033#4017033
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017033
19Â years, 2Â months
[JBossWS] - ws4ee-Stack: Handler for mustUnderstand header
by stone_42
Hello,
I am using JBoss 4.0.3sp1 with the ws4ee stack delivered with JBoss 4.0.4. I have implemented a simple servlet based endpoint. To secure access to the endpoint, I use WS-Security and a jaxrpc handler of my own to handle the ws-security header in soap messages. Because clients set mustUnderstand="1" on the header, my handler must either set this attribute to 0 or remove the header from the SOAP message to prevent JBoss from throwing an exception with the message "unprocessed mustUnderstand header". But if I do so, the stack behaves very strange when serializing a response: It serializes the contents of the body twice.
Debugging JBoss, I found out that methodorg.jboss.webservice.handler.ServerHandlerChain.handleRequest(MessageContext) checks if the handlers changed the soap request message and if so, replaces the value of the property axis.provider.java.rpc-invocation in the MessageContext.
I also found out, that methods org.jboss.webservice.server.InvokerProviderJSE.invokeTarget(RPCInvocation) and org.jboss.axis.providers.java.RPCProvider.processMessage(MessageContext, SOAPEnvelopeAxisImpl, SOAPEnvelopeAxisImpl, Object) invoke method org.jboss.axis.providers.java.RPCInvocation.prepareFromRequestEnvelope() on different objects. This again is the reason that the contents of the body of the response message is doubled.
Is there any solution to this problem, so I will be able to use soap headers with attribute mustUnderstand="1"?
Regards,
Martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017032#4017032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017032
19Â years, 2Â months
[JBoss Eclipse IDE (users)] - Question on JBoss server using the JBoss Eclipse IDE
by msavoy
I have been working on Eclipse 3.2.1 and using JBoss 4.0.5.GA as my server in Eclipse. I installed the JBossIDE-2.0.0.Beta2-All.zip via the Update Manager in Eclipse and when I PUBLISH to the server I get the following and lose all logging to the console because Log4j never restarts:
07:59:35,238 DEBUG [MainDeployer] Undeploying file:/C:/server/jboss-4.0.5.GA/server/default/deploy/SCMWebEAR.ear, isShutdown=false
07:59:35,238 DEBUG [MainDeployer] Stopping sub deployment: file:/C:/server/jboss-4.0.5.GA/server/default/tmp/deploy/tmp62137SCMWebEAR.ear-contents/SCM.war
07:59:35,238 DEBUG [DeployerInterceptorJSE] stop: file:/C:/server/jboss-4.0.5.GA/server/default/tmp/deploy/tmp62137SCMWebEAR.ear-contents/SCM.war
07:59:35,238 DEBUG [ServiceController] stopping service: jboss.web.deployment:war=SCM.war,id=1447455206
07:59:35,238 DEBUG [ServiceController] stopping dependent services for: jboss.web.deployment:war=SCM.war,id=1447455206 dependent services are: []
07:59:35,238 DEBUG [WebModule] Stopping jboss.web.deployment:war=SCM.war,id=1447455206
07:59:35,238 INFO [TomcatDeployer] undeploy, ctxPath=/SCM, warUrl=.../tmp/deploy/tmp62137SCMWebEAR.ear-contents/SCM-exp.war/
07:59:35,238 INFO [[/SCM]] Shutting down Log4J
I don't know if I am posting to the correct forum or not. If not, will someone please point me to the correct JBoss forum?
Thanks for any help or direction.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017031#4017031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017031
19Â years, 2Â months