[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-07-03 Thread Daniel Kulp (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509873
 ] 

Daniel Kulp commented on GERONIMO-3265:
---

CXF does use spring.   However, we pull in 2.0.4 (and work fine with 2.0.5).
I'm not sure where the 2.0 version would be coming from. 



 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
   at 
 org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292)
   at 
 

[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-07-02 Thread Paul McMahan (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509686
 ] 

Paul McMahan commented on GERONIMO-3265:


Well I could have sworn that webapps I deployed into Geronimo were at one time 
picking up a Spring dependency from some place but that no longer seems to be 
the case. Maybe instead of Spring it was a Castor dependency that I'm thinking 
of?   Webapps automatically inherit org.exolab.castor.* from axis-openejb, and 
that tends to interfere with webapps that use castor for processing XML like 
pluto's portal driver.

 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
   at 
 

[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-07-02 Thread Jarek Gawor (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509696
 ] 

Jarek Gawor commented on GERONIMO-3265:
---

CXF uses Spring to configure itself.  I'm pretty sure it is possible to remove 
that dependency from CXF but it would require some extra work. 


 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
   at 
 org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292)
   at 
 

[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-07-02 Thread Paul McMahan (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509708
 ] 

Paul McMahan commented on GERONIMO-3265:


thanks Jarek, The classloader viewer in the admin console doesn't show any 
spring classes pulled in by CXF but maybe that view is not accurate (?)If 
so then is there any way for webapps to avoid getting a cxf/axis dependency 
when they don't contain any web services?  that might be a helpful first step 
we could take, if removing the Spring dependency from CXF proves difficult.

 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
   at 
 

[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-07-02 Thread Gianny Damour (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509711
 ] 

Gianny Damour commented on GERONIMO-3265:
-

I confirm that the cxf config pulls 2.0 Spring dependencies; also, Spring is 
not included for WADI as per Donald's comment.

I have been able to run a Web-app depending on Spring dependencies having a 
version greater than 2.0 by:
* reversing classloading; and
* hidding NamespaceHandler implementation classes defined by cxf: Spring simply 
logs a debug message when a declared NamespaceHandler implementation class 
cannot be loaded.

So, by adding this to your web-app geronimo DD, you can run your web-app:

hidden-classes
  filterorg.apache.cxf/filter !-- -This can also be the exhaustive 
list of NamespaceHandler implementations declared by CXF -
/hidden-classes

inverse-classloading/

 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 

[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-06-30 Thread Matt Hogstrom (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509329
 ] 

Matt Hogstrom commented on GERONIMO-3265:
-

I agree with the approach Paul.  Suggestions on solving this ?

 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
   at 
 org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
   at 
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:292)
   at 
 

[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-06-27 Thread Donald Woods (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508550
 ] 

Donald Woods commented on GERONIMO-3265:


BTW - Spring is only being included for WADI, which is only in the Jetty 
assembly.
My thoughts are that we shouldn't include Spring in any of the Geronimo 
assemblies, as we will never have the most current version available that our 
users will want.


 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
   at 
 org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
   at 
 

[jira] Commented: (GERONIMO-3265) Spring stale version in 2.0-M6-rc1

2007-06-27 Thread Paul McMahan (JIRA)

[ 
https://issues.apache.org/jira/browse/GERONIMO-3265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508555
 ] 

Paul McMahan commented on GERONIMO-3265:


I agree with Donald that including spring in the geronimo assemblies can cause 
problems when users want to use a different version of spring.  I think its OK 
to include the spring jars in the repository but not OK for apps deployed into 
geronimo to automatically inherit spring as a dependency.   i.e. users should 
be able to deploy their own spring based app without having to worry about 
setting up hidden-class filters.

 Spring stale version in 2.0-M6-rc1
 --

 Key: GERONIMO-3265
 URL: https://issues.apache.org/jira/browse/GERONIMO-3265
 Project: Geronimo
  Issue Type: Bug
  Security Level: public(Regular issues) 
Affects Versions: 2.0-M6
 Environment: Windows XP SP2, Sun JSDK 1.5.07, Geronimo (2.0-M6-rc1) 
 obtained from:
 http://people.apache.org/~hogstrom/2.0-M6-rc1/geronimo-tomcat6-jee5-2.0-M6-rc1-bin.zip
  (2.0-M6-rc1)
Reporter: Alexei Kozich

 1. This Geronimo build includes spring-beans.jar, spring-context.jar and 
 spring-core.jar of version 2.0.
 So as far as we know, version 2.0 does not fully support integration with JPA 
 implementations.
 2. We developed an enterprise application (ear) which utilizes Spring 2.0.2 
 and OpenJPA.
 OpenJPA comes with Geronimo.
 Deployment and start of this application fails, because of different versions 
 of Spring (our application expects spring-beans.jar, spring-context.jar and 
 spring-core.jar to be at least of version 2.0.2 but Geronimo contains libs of 
 version 2.0 (the lack of some methods in version 2.0 is the problem here).
 3. If we try to use inverse-classloading or hidden classes 
 (org.springframework) in geronimo-web.xml and include all necesary libs in 
 WEB-INF/lib following Exception is thrown during deployment and start of the 
 application (see below).
 4. We found temporary workaround: to replace  spring-beans.jar, 
 spring-context.jar and spring-core.jar of version 2.0 with jars of version 
 2.0.2 in Geronimo repository without using of inverse-classloading and hidden 
 classes and everything looks fine.
 5. So as far as I understand this out-of-the-box Geronimo build could not be 
 used as Server for Spring-OpenJPA appications. At least  Spring libs upgrade 
 could solve this problem.
 6. Another problem is following Exception when using hidden classes or 
 inverse-classloading to load application jars first.
 ERROR [ContextLoader] Context initialization failed
 org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected 
 exception parsing XML document from ServletContext resource 
 [/WEB-INF/springAppContext.xml]; nested exception is 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
 Caused by: 
 java.lang.IllegalArgumentException: Class 
 [org.apache.cxf.clustering.spring.NamespaceHandler] does not implement the 
 NamespaceHandler interface
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:96)
   at 
 org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.init(DefaultNamespaceHandlerResolver.java:82)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:526)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:515)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340)
   at 
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
   at 
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
   at 
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
   at