[jira] [Commented] (GERONIMO-6429) CLONE - Problem with attribute manager
[ https://issues.apache.org/jira/browse/GERONIMO-6429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13549399#comment-13549399 ] John Sisson commented on GERONIMO-6429: --- This was a very long time ago... Did a bit of googling for GERONIMO-2095 and found this: http://mail-archives.apache.org/mod_mbox/geronimo-scm/200606.mbox/%3c20060609052636.267f41a9...@eris.apache.org%3E The changes seem to be related to ensuring the file is properly closed when exceptions occur. Sorry, I don't have the time to investigate further. I haven't looked at the code, but might be worth investigating whether there could be anything else running on the system opening files that may cause it to be in use and prevent it from being renamed (e.g. antivirus, file indexer, backup). > CLONE - Problem with attribute manager > -- > > Key: GERONIMO-6429 > URL: https://issues.apache.org/jira/browse/GERONIMO-6429 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: core > Environment: > http://people.apache.org/~hogstrom/20060607/geronimo-jetty-j2ee-1.1-20060607.tar.gz > Windows XP, cygwin > Command line: java -jar bin/server.jar > Free disk space: 3 Gb >Reporter: Amit S >Assignee: John Sisson >Priority: Critical > > gnodet@guillaumes /cygdrive/c/tmp/geronimo-1.1-20060607 > $ java -jar bin/server.jar > Booting Geronimo Kernel (in Java 1.5.0_06)... > Starting Geronimo Application Server v1.1-20060607 > [**> ] 30% 21s Starting > geronimo/system-database...20:32:49,484 ERROR [LocalAttributeManager] Error > saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) > [**> ] 84% 39s Starting > geronimo/webconsole-jett...20:33:07,890 ERROR [LocalAttributeManager] Error > saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) > [**] 100% 45s Startup complete > Listening on Ports: > 1099 0.0.0.0 RMI Naming > 1527 0.0.0.0 Derby Connector > 4201 0.0.0.0 ActiveIO Connector EJB > 4242 0.0.0.0 Remote Login Listener > 8009 0.0.0.0 Jetty Connector AJP13 > 8080 0.0.0.0 Jetty Connector HTTP > 8443 0.0.0.0 Jetty Connector HTTPS > 0.0.0.0 JMX Remoting Connector >61616 0.0.0.0 ActiveMQ Message Broker Connector > Started Application Modules: > EAR: geronimo/webconsole-jetty/1.1-20060607/car > RAR: geronimo/activemq/1.1-20060607/car > RAR: geronimo/system-database/1.1-20060607/car > WAR: geronimo/remote-deploy-jetty/1.1-20060607/car > WAR: geronimo/welcome-jetty/1.1-20060607/car > Web Applications: > http://guillaumes:8080/ > http://guillaumes:8080/console > http://guillaumes:8080/console-standard > http://guillaumes:8080/remote-deploy > Geronimo Application Server started > 20:33:18,718 ERROR [LocalAttributeManager] Error saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Sour
[jira] [Commented] (GERONIMO-6429) CLONE - Problem with attribute manager
[ https://issues.apache.org/jira/browse/GERONIMO-6429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548704#comment-13548704 ] Sam commented on GERONIMO-6429: I wanted to know what is the root cause and also the fix for this error as commented in GERONIMO-2095 java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable attributes working file to proper file name! Configuration will revert to defaults unless t his is manually corrected! (could not rename C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to C:\tmp\geronimo-1.1-20060607\var\config\config.xml) at org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) Thanks > CLONE - Problem with attribute manager > -- > > Key: GERONIMO-6429 > URL: https://issues.apache.org/jira/browse/GERONIMO-6429 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: core > Environment: > http://people.apache.org/~hogstrom/20060607/geronimo-jetty-j2ee-1.1-20060607.tar.gz > Windows XP, cygwin > Command line: java -jar bin/server.jar > Free disk space: 3 Gb >Reporter: Sam >Assignee: John Sisson >Priority: Critical > > gnodet@guillaumes /cygdrive/c/tmp/geronimo-1.1-20060607 > $ java -jar bin/server.jar > Booting Geronimo Kernel (in Java 1.5.0_06)... > Starting Geronimo Application Server v1.1-20060607 > [**> ] 30% 21s Starting > geronimo/system-database...20:32:49,484 ERROR [LocalAttributeManager] Error > saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) > [**> ] 84% 39s Starting > geronimo/webconsole-jett...20:33:07,890 ERROR [LocalAttributeManager] Error > saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) > [**] 100% 45s Startup complete > Listening on Ports: > 1099 0.0.0.0 RMI Naming > 1527 0.0.0.0 Derby Connector > 4201 0.0.0.0 ActiveIO Connector EJB > 4242 0.0.0.0 Remote Login Listener > 8009 0.0.0.0 Jetty Connector AJP13 > 8080 0.0.0.0 Jetty Connector HTTP > 8443 0.0.0.0 Jetty Connector HTTPS > 0.0.0.0 JMX Remoting Connector >61616 0.0.0.0 ActiveMQ Message Broker Connector > Started Application Modules: > EAR: geronimo/webconsole-jetty/1.1-20060607/car > RAR: geronimo/activemq/1.1-20060607/car > RAR: geronimo/system-database/1.1-20060607/car > WAR: geronimo/remote-deploy-jetty/1.1-20060607/car > WAR: geronimo/welcome-jetty/1.1-20060607/car > Web Applications: > http://guillaumes:8080/ > http://guillaumes:8080/console > http://guillaumes:8080/console-standard > http://guillaumes:8080/remote-deploy > Geronimo Application Server started > 20:33:18,718 ERROR [LocalAttributeManager] Error saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) -- This message i
[jira] [Created] (GERONIMO-6429) CLONE - Problem with attribute manager
Sam created GERONIMO-6429: -- Summary: CLONE - Problem with attribute manager Key: GERONIMO-6429 URL: https://issues.apache.org/jira/browse/GERONIMO-6429 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Components: core Environment: http://people.apache.org/~hogstrom/20060607/geronimo-jetty-j2ee-1.1-20060607.tar.gz Windows XP, cygwin Command line: java -jar bin/server.jar Free disk space: 3 Gb Reporter: Sam Assignee: John Sisson Priority: Critical gnodet@guillaumes /cygdrive/c/tmp/geronimo-1.1-20060607 $ java -jar bin/server.jar Booting Geronimo Kernel (in Java 1.5.0_06)... Starting Geronimo Application Server v1.1-20060607 [**> ] 30% 21s Starting geronimo/system-database...20:32:49,484 ERROR [LocalAttributeManager] Error saving attributes java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable attributes working file to proper file name! Configuration will revert to defaults unless t his is manually corrected! (could not rename C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to C:\tmp\geronimo-1.1-20060607\var\config\config.xml) at org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) at org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) [**> ] 84% 39s Starting geronimo/webconsole-jett...20:33:07,890 ERROR [LocalAttributeManager] Error saving attributes java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable attributes working file to proper file name! Configuration will revert to defaults unless t his is manually corrected! (could not rename C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to C:\tmp\geronimo-1.1-20060607\var\config\config.xml) at org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) at org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) [**] 100% 45s Startup complete Listening on Ports: 1099 0.0.0.0 RMI Naming 1527 0.0.0.0 Derby Connector 4201 0.0.0.0 ActiveIO Connector EJB 4242 0.0.0.0 Remote Login Listener 8009 0.0.0.0 Jetty Connector AJP13 8080 0.0.0.0 Jetty Connector HTTP 8443 0.0.0.0 Jetty Connector HTTPS 0.0.0.0 JMX Remoting Connector 61616 0.0.0.0 ActiveMQ Message Broker Connector Started Application Modules: EAR: geronimo/webconsole-jetty/1.1-20060607/car RAR: geronimo/activemq/1.1-20060607/car RAR: geronimo/system-database/1.1-20060607/car WAR: geronimo/remote-deploy-jetty/1.1-20060607/car WAR: geronimo/welcome-jetty/1.1-20060607/car Web Applications: http://guillaumes:8080/ http://guillaumes:8080/console http://guillaumes:8080/console-standard http://guillaumes:8080/remote-deploy Geronimo Application Server started 20:33:18,718 ERROR [LocalAttributeManager] Error saving attributes java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable attributes working file to proper file name! Configuration will revert to defaults unless t his is manually corrected! (could not rename C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to C:\tmp\geronimo-1.1-20060607\var\config\config.xml) at org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) at org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (GERONIMO-2095) Problem with attribute manager
[ https://issues.apache.org/jira/browse/GERONIMO-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548698#comment-13548698 ] Sam commented on GERONIMO-2095: Can you tell what was the fix for this error? We are seeing exactly the same issue in our app Thanks Amit > Problem with attribute manager > -- > > Key: GERONIMO-2095 > URL: https://issues.apache.org/jira/browse/GERONIMO-2095 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: core > Environment: > http://people.apache.org/~hogstrom/20060607/geronimo-jetty-j2ee-1.1-20060607.tar.gz > Windows XP, cygwin > Command line: java -jar bin/server.jar > Free disk space: 3 Gb >Reporter: Guillaume Nodet >Assignee: John Sisson >Priority: Critical > Fix For: 1.1 > > > gnodet@guillaumes /cygdrive/c/tmp/geronimo-1.1-20060607 > $ java -jar bin/server.jar > Booting Geronimo Kernel (in Java 1.5.0_06)... > Starting Geronimo Application Server v1.1-20060607 > [**> ] 30% 21s Starting > geronimo/system-database...20:32:49,484 ERROR [LocalAttributeManager] Error > saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) > [**> ] 84% 39s Starting > geronimo/webconsole-jett...20:33:07,890 ERROR [LocalAttributeManager] Error > saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) > [**] 100% 45s Startup complete > Listening on Ports: > 1099 0.0.0.0 RMI Naming > 1527 0.0.0.0 Derby Connector > 4201 0.0.0.0 ActiveIO Connector EJB > 4242 0.0.0.0 Remote Login Listener > 8009 0.0.0.0 Jetty Connector AJP13 > 8080 0.0.0.0 Jetty Connector HTTP > 8443 0.0.0.0 Jetty Connector HTTPS > 0.0.0.0 JMX Remoting Connector >61616 0.0.0.0 ActiveMQ Message Broker Connector > Started Application Modules: > EAR: geronimo/webconsole-jetty/1.1-20060607/car > RAR: geronimo/activemq/1.1-20060607/car > RAR: geronimo/system-database/1.1-20060607/car > WAR: geronimo/remote-deploy-jetty/1.1-20060607/car > WAR: geronimo/welcome-jetty/1.1-20060607/car > Web Applications: > http://guillaumes:8080/ > http://guillaumes:8080/console > http://guillaumes:8080/console-standard > http://guillaumes:8080/remote-deploy > Geronimo Application Server started > 20:33:18,718 ERROR [LocalAttributeManager] Error saving attributes > java.io.IOException: EXTREMELY CRITICAL! Unable to move manageable > attributes working file to proper file name! Configuration will revert to > defaults unless t > his is manually corrected! (could not rename > C:\tmp\geronimo-1.1-20060607\var\config\config.xml.working to > C:\tmp\geronimo-1.1-20060607\var\config\config.xml) > at > org.apache.geronimo.system.configuration.LocalAttributeManager.save(LocalAttributeManager.java:449) > at > org.apache.geronimo.system.configuration.LocalAttributeManager$2.run(LocalAttributeManager.java:618) > at java.util.TimerThread.mainLoop(Unknown Source) > at java.util.TimerThread.run(Unknown Source) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Comment Edited] (GERONIMO-6428) @DataSourceDefinition doesn't work correctly
[ https://issues.apache.org/jira/browse/GERONIMO-6428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548664#comment-13548664 ] Henk de Boer edited comment on GERONIMO-6428 at 1/9/13 4:44 PM: p.s. adding a custom property {{URL}} successfully inits the datasource, but this is obviously a bit of a kludge. E.g. {code:xml} java:app/MyApp/myDS org.h2.jdbcx.JdbcDataSource jdbc:h2:mem:test sa sa URLjdbc:h2:mem:test true TRANSACTION_READ_COMMITTED 2 10 5 0 {code} was (Author: henkdeboer): p.s. adding a custom property {{URL}} successfully inits the datasource, but this is obviously a bit of a kludge. E.g. {code:xml} java:global/MyApp/myDS org.h2.jdbcx.JdbcDataSource jdbc:h2:mem:test sa sa URLjdbc:h2:mem:test true TRANSACTION_READ_COMMITTED 2 10 5 0 {code} > @DataSourceDefinition doesn't work correctly > > > Key: GERONIMO-6428 > URL: https://issues.apache.org/jira/browse/GERONIMO-6428 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) >Reporter: Henk de Boer > > I'm trying to deploy the application as discussed in my blog at > http://henk53.wordpress.com/2012/04/15/jsf2-primefaces3-ejb3-jpa2-integration-project > to Geronimo v3.0. > The application works without modification on JBoss AS 7.1.2, GlassFis3 > 3.1.2.2, TomEE 1.5 and WebLogic 12.1.1. (see > http://henk53.wordpress.com/2012/06/30/the-state-of-datasourcedefinition-in-java-ee) > Unfortunately, it does not work on Geronimo v3.0. Upon deployment, I get the > following exception: > {noformat} > Unable to resolve reference "JtaDataSourceWrapper" > in gbean > default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example > to a gbean matching the pattern > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no > matches) > org.apache.geronimo.common.DeploymentException: Unable to resolve reference > "JtaDataSourceWrapper" > in gbean > default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example > to a gbean matching the pattern > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no > matches) > at > org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:550) > at org.apache.geronimo.deployment.Deployer.install(Deployer.java:355) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:272) > 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.intercepto
[jira] [Commented] (GERONIMO-6428) @DataSourceDefinition doesn't work correctly
[ https://issues.apache.org/jira/browse/GERONIMO-6428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548664#comment-13548664 ] Henk de Boer commented on GERONIMO-6428: p.s. adding a custom property {{URL}} successfully inits the datasource, but this is obviously a bit of a kludge. E.g. {code:xml} java:global/MyApp/myDS org.h2.jdbcx.JdbcDataSource jdbc:h2:mem:test sa sa URLjdbc:h2:mem:test true TRANSACTION_READ_COMMITTED 2 10 5 0 {code} > @DataSourceDefinition doesn't work correctly > > > Key: GERONIMO-6428 > URL: https://issues.apache.org/jira/browse/GERONIMO-6428 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) >Reporter: Henk de Boer > > I'm trying to deploy the application as discussed in my blog at > http://henk53.wordpress.com/2012/04/15/jsf2-primefaces3-ejb3-jpa2-integration-project > to Geronimo v3.0. > The application works without modification on JBoss AS 7.1.2, GlassFis3 > 3.1.2.2, TomEE 1.5 and WebLogic 12.1.1. (see > http://henk53.wordpress.com/2012/06/30/the-state-of-datasourcedefinition-in-java-ee) > Unfortunately, it does not work on Geronimo v3.0. Upon deployment, I get the > following exception: > {noformat} > Unable to resolve reference "JtaDataSourceWrapper" > in gbean > default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example > to a gbean matching the pattern > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no > matches) > org.apache.geronimo.common.DeploymentException: Unable to resolve reference > "JtaDataSourceWrapper" > in gbean > default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example > to a gbean matching the pattern > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no > matches) > at > org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:550) > at org.apache.geronimo.deployment.Deployer.install(Deployer.java:355) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:272) > 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 > com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) > at > javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1447) > at > javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:89) >
[jira] [Commented] (GERONIMO-6428) @DataSourceDefinition doesn't work correctly
[ https://issues.apache.org/jira/browse/GERONIMO-6428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13548627#comment-13548627 ] Henk de Boer commented on GERONIMO-6428: I did some investigation to see why the {{url}} property couldn't be set. It appears that Geronimo tries to find a {{setUrl}} method, while the datasource actually has a {{setURL}} one. In {{org.apache.geronimo.datasource.DataSourceService}} at line 175 we have the following code: {code} // set url property if no specific properties are set if (dataSourceDescription.hasStandardProperties()) { setProperty(properties, "url", dataSourceDescription.getUrl()); } {code} Because of the property {{url}} a few lines down {{ObjectRecipe}} creates a {{setUrl}} string as the name for the method to be found. Because this one doesn't exist, {{ReflectionUtil}} then throws an exception with the text: {quote} Unable to find a valid setter method: public void org.h2.jdbcx.JdbcDataSource.setUrl(...) {quote} But this is swallowed in {{ObjectRecipe}} because if the ignore unknown properties setting. This is logged later as a warning, but the warning doesn't contain the full cause. > @DataSourceDefinition doesn't work correctly > > > Key: GERONIMO-6428 > URL: https://issues.apache.org/jira/browse/GERONIMO-6428 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) >Reporter: Henk de Boer > > I'm trying to deploy the application as discussed in my blog at > http://henk53.wordpress.com/2012/04/15/jsf2-primefaces3-ejb3-jpa2-integration-project > to Geronimo v3.0. > The application works without modification on JBoss AS 7.1.2, GlassFis3 > 3.1.2.2, TomEE 1.5 and WebLogic 12.1.1. (see > http://henk53.wordpress.com/2012/06/30/the-state-of-datasourcedefinition-in-java-ee) > Unfortunately, it does not work on Geronimo v3.0. Upon deployment, I get the > following exception: > {noformat} > Unable to resolve reference "JtaDataSourceWrapper" > in gbean > default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example > to a gbean matching the pattern > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no > matches) > org.apache.geronimo.common.DeploymentException: Unable to resolve reference > "JtaDataSourceWrapper" > in gbean > default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example > to a gbean matching the pattern > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] > due to: No matches for referencePatterns: > [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no > matches) > at > org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:550) > at org.apache.geronimo.deployment.Deployer.install(Deployer.java:355) > at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:272) > 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
[jira] [Created] (GERONIMO-6428) @DataSourceDefinition doesn't work correctly
Henk de Boer created GERONIMO-6428: -- Summary: @DataSourceDefinition doesn't work correctly Key: GERONIMO-6428 URL: https://issues.apache.org/jira/browse/GERONIMO-6428 Project: Geronimo Issue Type: Bug Security Level: public (Regular issues) Reporter: Henk de Boer I'm trying to deploy the application as discussed in my blog at http://henk53.wordpress.com/2012/04/15/jsf2-primefaces3-ejb3-jpa2-integration-project to Geronimo v3.0. The application works without modification on JBoss AS 7.1.2, GlassFis3 3.1.2.2, TomEE 1.5 and WebLogic 12.1.1. (see http://henk53.wordpress.com/2012/06/30/the-state-of-datasourcedefinition-in-java-ee) Unfortunately, it does not work on Geronimo v3.0. Upon deployment, I get the following exception: {noformat} Unable to resolve reference "JtaDataSourceWrapper" in gbean default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example to a gbean matching the pattern [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] due to: No matches for referencePatterns: [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no matches) org.apache.geronimo.common.DeploymentException: Unable to resolve reference "JtaDataSourceWrapper" in gbean default/crud/1357734386945/war?J2EEApplication=null,PersistenceUnitModule=WEB-INF/classes/,WebModule=default/crud/1357734386945/war,j2eeType=PersistenceUnit,name=example to a gbean matching the pattern [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] due to: No matches for referencePatterns: [?name=java:app/MyApp/myDS#org.apache.geronimo.naming.ResourceSource] (no matches) at org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:550) at org.apache.geronimo.deployment.Deployer.install(Deployer.java:355) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:272) 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 com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468) 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.GeneratedMethodAccessor70.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.