[jbossws-issues] [JBoss JIRA] Commented: (JBWS-1800) Trying to monitor the JVM using -Dcom.sun.management.jmxremote prevents the jbossws 2.0.1 from coming up

mark.lowe (JIRA) jira-events at lists.jboss.org
Thu Nov 5 04:14:05 EST 2009


    [ https://jira.jboss.org/jira/browse/JBWS-1800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493253#action_12493253 ] 

mark.lowe commented on JBWS-1800:
---------------------------------

We have the same problem. Webservice doesn't find the web service delegate at runtime when jmxremote stuff is switched on. 

We've several jboss 4.2.3.GA installations using sun jvm 1.5. Seeing this bug I applied the jbossws-native-3.1.1.GA patch. The strange thing is that the ant.properties doesn't allow the user (I guess that's me) to define a java.home thats different to jboss's runtime. So when I applied the patch it found my java home to be 1.6. 

Interestingly applying the patch (ant deploy-jboss423) using java 6, fixes runtime issues for jboss installations with a java 5 runtime. 

I can only assume this is down to the fact that the jars installed into $JBOSS_HOME/lib/endorsed . In jbossws-deploy-macros.xml 

 <target name="deploy-jbossws-endorsed" if="HAVE_JDK16_OR_ABOVE">
..

So a workaround is sort of there, apply the patch using java 6, even for jboss with a java 5 runtime. This is okay for development environments, but at the end of the day its a hack. 


> Trying to monitor the JVM using -Dcom.sun.management.jmxremote prevents the jbossws 2.0.1 from coming up
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JBWS-1800
>                 URL: https://jira.jboss.org/jira/browse/JBWS-1800
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: jbossws-2.0.1
>         Environment: JBossWS 2.0.1 on JBoss 4.0.5 with JDK 1.6
>            Reporter: Raju Koganty
>            Assignee: Richard Opalka
>             Fix For:  jbossws-2.0.2
>
>
> Having -Dcom.sun.management.jmxremote  in the startup args to monitor the JVM causes this exception during startup and jbossws 2.0.1 doesn't come up :
> And here is the exception : 
> java.lang.NullPointerException 
> at org.jboss.wsf.stack.jbws.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:303) 
> at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:103) 
> at org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect.create(PublishContractDeploymentAspect.java:52) 
> at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115) 
> at org.jboss.wsf.container.jboss40.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97) 
> at org.jboss.wsf.container.jboss40.DeployerInterceptor.start(DeployerInterceptor.java:90) 
> at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188) 
> at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) 
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 
> at $Proxy29.start(Unknown Source) 
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) 
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) 
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) 
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) 
> at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) 
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
> at java.lang.reflect.Method.invoke(Method.java: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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) 
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 
> at $Proxy8.deploy(Unknown Source) 
> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) 
> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) 
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) 
> at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) 
> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) 
> at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) 
> at sun.reflect.GeneratedMethodAccessor3.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) 
> at org.jboss.system.ServiceController.start(ServiceController.java:417) 
> at sun.reflect.GeneratedMethodAccessor10.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.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 org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
> at java.lang.reflect.Method.invoke(Method.java:597) 
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 
> at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) 
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 
> at $Proxy5.deploy(Unknown Source) 
> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) 
> 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:490) 
> at java.lang.Thread.run(Thread.java:619) 
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list