Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2583ADF31 for ; Thu, 5 Jul 2012 09:55:37 +0000 (UTC) Received: (qmail 31638 invoked by uid 500); 5 Jul 2012 09:55:36 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 31415 invoked by uid 500); 5 Jul 2012 09:55:36 -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 31385 invoked by uid 99); 5 Jul 2012 09:55:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2012 09:55:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 9542E142822 for ; Thu, 5 Jul 2012 09:55:34 +0000 (UTC) Date: Thu, 5 Jul 2012 09:55:33 +0000 (UTC) From: "Michael Seele (JIRA)" To: dev@geronimo.apache.org Message-ID: <827281483.7719.1341482134615.JavaMail.jiratomcat@issues-vm> In-Reply-To: <323735517.7696.1341481054603.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (GERONIMO-6369) Cannot deploy EAR when using SystemProperties gbean and java 7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-6369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406943#comment-13406943 ] Michael Seele commented on GERONIMO-6369: ----------------------------------------- Possible Fix could be to execute the static block in org.apache.geronimo.common.propertyeditor.PropertyEditors for every ThreadGroupContext > Cannot deploy EAR when using SystemProperties gbean and java 7 > -------------------------------------------------------------- > > Key: GERONIMO-6369 > URL: https://issues.apache.org/jira/browse/GERONIMO-6369 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: deployment > Affects Versions: 2.2.1, 3.0-beta-1 > Environment: Eclipse 3.7.2 (Build id: M20120208-0800) > Apache Geronimo v3.0 Server Adapter (Version: 3.0.0-20111130113455) > Eclipse Web Developer Tools 3.3.2.v201111030500-7O7IFj6EMjB7yO1Xs_G1kMtQeOye6HTXFWve95_R (Build id: 20120210195245) > geronimo-tomcat7-javaee6-3.0-beta-1 > Reporter: Michael Seele > Attachments: eclipseProjects.tgz > > > When you use the "org.apache.geronimo.system.properties.SystemProperties" gbean and want to run the Geronimo with Java 7, you get an Exception when you want to deploy the EAR from inside Eclipse: Unable to find PropertyEditor for java.util.Properties > (StackTrace see below) > With Java 6 it works fine. > The Problem is that java.beans.PropertyEditorManager has been re-written in Java 7. > When you call java.beans.PropertyEditorManager.findEditor(Class) in Java 7, the java.beans.ThreadGroupContext.getPropertyEditorFinder() from the current ThreadContext is called. This is a RMI ThreadContext which do nothing know about the org.apache.geronimo.common.propertyeditor.PropertyEditors hack > appendEditorSearchPath("org.apache.geronimo.common.propertyeditor"); > For this reason java.beans.PropertyEditorManager.findEditor(Class) returns null when you run the Geronimo with Java 7. > We have build a sample eclipse snippet project with which you can reproduce the Bug. > This is the Exception you get: > Unable to find PropertyEditor for java.util.Properties > org.apache.geronimo.common.DeploymentException: Unable to find PropertyEditor for java.util.Properties > at org.apache.geronimo.deployment.service.SingleGBeanBuilder.setAttribute(SingleGBeanBuilder.java:81) > at org.apache.geronimo.deployment.service.GBeanBuilder.addGBeanData(GBeanBuilder.java:123) > at org.apache.geronimo.deployment.service.GBeanBuilder.build(GBeanBuilder.java:108) > at org.apache.geronimo.deployment.NamespaceDrivenBuilderCollection.build(NamespaceDrivenBuilderCollection.java:43) > at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:701) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245) > at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:344) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883) > at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245) > at org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172) > at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791) > at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1447) > at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:89) > at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1292) > at java.security.AccessController.doPrivileged(Native Method) > at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1387) > at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:812) > at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) > at sun.rmi.transport.Transport$1.run(Transport.java:177) > at sun.rmi.transport.Transport$1.run(Transport.java:174) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:173) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:722) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira