Quickstart webservice_jbossws_adapter_01 question
tobysaville Jul 11, 2007 11:36 AMHello,
i am running into an issue with the above quickstart.
before i start on the main issue, can you explain why the readme tells you to remove jbossesb.esb/jbm-queue-service.xml file? When i started the AS (after following the steps in the readme) it complained and didnt start the esb archive. thanks! :)
With that last paragraph in mind, i am running the quickstart with the jbm-queue-service.xml file in place (maybe this is the cause of my problem, but i doubt it)
I am following the quickstart's readme, which contains a different svn repo url to previous versions (http://anonsvn.jboss.org/repos/jbossws/branches/jbossws-2.0) can you confirm this is the correct one? The reason I ask is due to some confusion in my mind raised by reading this post:http://www.jboss.org/index.html?module=bb&op=viewtopic&t=111480
I should also say that i have recently updated from both ESB & WS repositories before posting this.
When i start up the AS after following the quickstart, i get the following error:
ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.2.0.GA/server/messaging/tmp/deploy/tmp25903Quickstart_webservice_jbossws_adapter_01.esb-contents/Quickstart_webservice_jbossws_adapter_01.war java.lang.NullPointerException at org.jboss.wsf.container.jboss42.WebMetaDataAdapter.buildUnifiedWebMetaData(WebMetaDataAdapter.java:64) at org.jboss.wsf.container.jboss42.DeploymentInfoAdapter.buildMetaData(DeploymentInfoAdapter.java:117) at org.jboss.wsf.container.jboss42.DeploymentInfoAdapter.buildDeploymentInfo(DeploymentInfoAdapter.java:86) at org.jboss.wsf.container.jboss42.UnifiedDeploymentInfoDeployer.create(UnifiedDeploymentInfoDeployer.java:64) at org.jboss.wsf.spi.deployment.BasicDeployerManager.deploy(BasicDeployerManager.java:69) at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97) at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79) at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180) at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91) 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 $Proxy46.create(Unknown Source) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor22.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.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 $Proxy9.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: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 sun.reflect.GeneratedMethodAccessor9.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 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: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.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:508) at java.lang.Thread.run(Thread.java:595)
most of this code is in the JBossWS project, so let me know if you i should redirect this question to their forum.
i had a dig around, and its trying to load the field called modules of type org.jboss.deployment.J2eeModuleMetaData from a property of type org.jboss.deployment.J2eeApplicationMetaData from an object of type org.jboss.deployment.DeploymentInfo. From what i gathered from the source, this modules field is:
The application.xml modules in definition order
Does this mean its trying to load info from a file with this name?
the code snippet from org.jboss.wsf.container.jboss42.WebMetaDataAdapter is:
... import org.jboss.deployment.DeploymentInfo; import org.jboss.deployment.J2eeApplicationMetaData; import org.jboss.deployment.J2eeModuleMetaData; import org.jboss.metadata.WebMetaData; ... public class WebMetaDataAdapter { public UnifiedWebMetaData buildUnifiedWebMetaData(Deployment dep, UnifiedDeploymentInfo udi, DeploymentInfo di) { String contextRoot = null; WebMetaData wmd = (WebMetaData)di.metaData; dep.getContext().addAttachment(WebMetaData.class, wmd); if (di.parent != null) { J2eeApplicationMetaData appmd = (J2eeApplicationMetaData)di.parent.metaData; Iterator it = appmd.getModules(); // FAILS ON THIS LINE while (it.hasNext()) { J2eeModuleMetaData module = (J2eeModuleMetaData)it.next(); if (module.getFileName().equals(udi.simpleName)) contextRoot = module.getWebContext(); } } ...
thanks for any help you can provide.
toby