Hi,
we have some problem to deploy an EAR which includes an RAR and a sun-resources.xml descriptor to automatically create the connectors connection pool and the connectors connection at deploy time.
Only when we specify "server" as the target, it works. But if we try to deploy it to a cluster or to the target "domain" (when the domain has a cluster instance and the server instance) we get an exception. This is the case for the WebAdmin client and the asadmin CLI tool.
Our sun-resources.xml should be ok, because if we deploy to the single "server" instance, it works.
The exception is:
=============
java.lang.NullPointerException
at com.sun.enterprise.admin.mbeans.ResourcesMBean.isValidConnectionDefinition(ResourcesMBean.java:1002)
at com.sun.enterprise.admin.mbeans.ResourcesMBean.validateCnctorConnPoolAttrList(ResourcesMBean.java:989)
at com.sun.enterprise.admin.mbeans.ResourcesMBean.createResource(ResourcesMBean.java:700)
at com.sun.enterprise.admin.mbeans.ResourcesMBean.createAResource(ResourcesMBean.java:2185)
at com.sun.enterprise.admin.mbeans.ResourcesMBean.createResource(ResourcesMBean.java:2073)
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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
at com.sun.enterprise.deployment.phasing.ResourcePhase.handleDeployment(ResourcePhase.java:158)
at com.sun.enterprise.deployment.phasing.ResourcePhase.handleResources(ResourcePhase.java:129)
at com.sun.enterprise.deployment.phasing.ResourcePhase.doResourceOperation(ResourcePhase.java:114)
at com.sun.enterprise.deployment.phasing.PostResCreationPhase.runPhase(PostResCreationPhase.java:95)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
|#]
Has anybody an idea how we can achive this type of deployment?
Thanks in advance,
Frank
[Message sent by forum member 'fmeili' (fmeili)]
http://forums.java.net/jive/thread.jspa?messageID=263774