Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 75881 invoked from network); 23 Feb 2008 15:56:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2008 15:56:22 -0000 Received: (qmail 25229 invoked by uid 500); 23 Feb 2008 15:56:09 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 25162 invoked by uid 500); 23 Feb 2008 15:56:09 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 25131 invoked by uid 99); 23 Feb 2008 15:56:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2008 07:56:09 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Feb 2008 15:55:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 742B7234C00F for ; Sat, 23 Feb 2008 07:55:19 -0800 (PST) Message-ID: <573407172.1203782119463.JavaMail.jira@brutus> Date: Sat, 23 Feb 2008 07:55:19 -0800 (PST) From: "Michael Lee (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Created: (GERONIMO-3874) Deployment of Spring SpringContextResourceAdapter fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Deployment of Spring SpringContextResourceAdapter fails ------------------------------------------------------- Key: GERONIMO-3874 URL: https://issues.apache.org/jira/browse/GERONIMO-3874 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: deployment Affects Versions: 2.1 Environment: Running the full geronimo tomcat 6 - 2.1 distribution on Fedora Core 5 Linux Reporter: Michael Lee I have been trying to prototype the deployment of Spring JMS application components in a Resource Adaptor format using the org.springframework.jca.context.SpringContextResourceAdapter introduced in Spring 2.5. After playing with various configurations I've attempted to take this right back to "vanilla" configurations of Spring RA config and Geronimo Deployment and I still get the same problem with deployment failure with the error message (in the server geronimo.out log): Unknown attribute "ContextConfigLocation". ------------------------------------------------------------------------------ ra.xml Descriptor ------------------------------------------------------------------------------ My ra.xml is currently a straight copy from http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/jca/context/SpringContextResourceAdapter.html Spring Framework Spring Connector 1.0 org.springframework.jca.context.SpringContextResourceAdapter ContextConfigLocation java.lang.String META-INF/applicationContext.xml ------------------------------------------------------------------------------ geronimo-ra.xml (built using maven - so pom values replaced) ------------------------------------------------------------------------------ ${pom.groupId} ${pom.artifactId} ${pom.version} rar console.dbpool domain SpringCommonContextResourceAdapter DefaultWorkManager ------------------------------------------------------------------------------ Stack trace during deployment failure ------------------------------------------------------------------------------ 14:50:02,735 WARN [ConfigurationUtil] Could not load gbean default/job-creation-files/1.0.0-SNAPSHOT/rar?J2EEApplication=null,JCAResource=default/job-creation-files/1.0.0-SNAPSHOT/rar,ResourceAdapter=default/job-creation-files/1.0.0-SNAPSHOT/rar,ResourceAdapterModule=default/job-creation-files/1.0.0-SNAPSHOT/rar,j2eeType=JCAResourceAdapter,name=SpringCommonContextResourceAdapter org.apache.geronimo.gbean.InvalidConfigurationException: Could not inject configuration data into the GBean default/job-creation-files/1.0.0-SNAPSHOT/rar?J2EEApplication=null,JCAResource=default/job-creation-files/1.0.0-SNAPSHOT/rar,ResourceAdapter=default/job-creation-files/1.0.0-SNAPSHOT/rar,ResourceAdapterModule=default/job-creation-files/1.0.0-SNAPSHOT/rar,j2eeType=JCAResourceAdapter,name=SpringCommonContextResourceAdapter at org.apache.geronimo.gbean.runtime.GBeanInstance.(GBeanInstance.java:377) at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:354) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:441) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:534) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:515) 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.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342) at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239) at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408) at javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782) 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294) at sun.rmi.transport.Transport$1.run(Transport.java:153) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:149) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.geronimo.kernel.NoSuchAttributeException: Unknown attribute "ContextConfigLocation" in gbean default/job-creation-files/1.0.0-SNAPSHOT/rar?J2EEApplication=null,JCAResource=default/job-creation-files/1.0.0-SNAPSHOT/rar,ResourceAdapter=default/job-creation-files/1.0.0-SNAPSHOT/rar,ResourceAdapterModule=default/job-creation-files/1.0.0-SNAPSHOT/rar,j2eeType=JCAResourceAdapter,name=SpringCommonContextResourceAdapter at org.apache.geronimo.gbean.runtime.GBeanInstance.getAttributeByName(GBeanInstance.java:802) at org.apache.geronimo.gbean.runtime.GBeanInstance.setAttribute(GBeanInstance.java:751) at org.apache.geronimo.gbean.runtime.GBeanInstance.(GBeanInstance.java:372) ... 43 more Worth noting that that this deployment descriptor appeared to deploy correctly in 2.0.2 (indicating the deployer reflection on available properties has changed?) but the deployment failed in 2.0.2 because the attempted resolution of JNDI datasources by a Spring component (org.springframework.jndi.JndiObjectFactoryBean) produced a NullPointerException -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.