[CONF] Confluence Changes in the last 24 hours

2009-07-12 Thread confluence
This is a daily summary of all recent changes in Confluence.

-
Updated Spaces:
-


Apache ESME (http://cwiki.apache.org/confluence/display/ESME)

Pages
-
Index edited by  richardhirsch  (08:45 AM)
http://cwiki.apache.org/confluence/display/ESME/Index



OpenJPA (http://cwiki.apache.org/confluence/display/openjpa)

Pages
-
Logo Contest edited by  michael.d.d...@gmail.com  (04:59 AM)
http://cwiki.apache.org/confluence/display/openjpa/Logo+Contest



Apache Struts 2 Wiki (http://cwiki.apache.org/confluence/display/S2WIKI)

Pages
-
Companies that provide Struts 2 support edited by  
jshel...@stuntmansoftware.com  (09:48 AM)
http://cwiki.apache.org/confluence/display/S2WIKI/Companies+that+provide+Struts+2+support



Apache ServiceMix (http://cwiki.apache.org/confluence/display/SM)

Pages
-
Components list edited by  nanthrax  (11:21 PM)
http://cwiki.apache.org/confluence/display/SM/Components+list




Change your notification preferences: 
http://cwiki.apache.org/confluence/users/viewnotifications.action


svn commit: r793388 - in /struts/struts2/trunk/plugins/spring: ./ src/main/java/org/apache/struts2/spring/ src/test/java/org/apache/struts2/spring/

2009-07-12 Thread musachy
Author: musachy
Date: Sun Jul 12 18:17:55 2009
New Revision: 793388

URL: http://svn.apache.org/viewvc?rev=793388&view=rev
Log:
WW-3183 Add class reloading to the Spring plugin

Added:

struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFactory.java
   (with props)

struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingInstantiationStrategy.java
   (with props)

struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingXMLWebApplicationContext.java
   (with props)
Modified:
struts/struts2/trunk/plugins/spring/pom.xml

struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/StrutsSpringObjectFactory.java

struts/struts2/trunk/plugins/spring/src/test/java/org/apache/struts2/spring/StrutsSpringObjectFactoryTest.java

Modified: struts/struts2/trunk/plugins/spring/pom.xml
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/spring/pom.xml?rev=793388&r1=793387&r2=793388&view=diff
==
--- struts/struts2/trunk/plugins/spring/pom.xml (original)
+++ struts/struts2/trunk/plugins/spring/pom.xml Sun Jul 12 18:17:55 2009
@@ -72,6 +72,13 @@
 
 
 
+org.apache.commons
+commons-jci-fam
+1.0
+true
+
+
+
 junit
 junit
 test

Added: 
struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFactory.java
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFactory.java?rev=793388&view=auto
==
--- 
struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFactory.java
 (added)
+++ 
struts/struts2/trunk/plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFactory.java
 Sun Jul 12 18:17:55 2009
@@ -0,0 +1,96 @@
+/*
+ * $Id$
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.struts2.spring;
+
+import org.springframework.beans.BeanWrapper;
+import org.springframework.beans.factory.support.RootBeanDefinition;
+import org.springframework.beans.factory.support.DefaultListableBeanFactory;
+import org.springframework.beans.factory.CannotLoadBeanClassException;
+import org.springframework.util.ObjectUtils;
+import org.springframework.util.ClassUtils;
+import org.springframework.core.DecoratingClassLoader;
+
+import java.lang.reflect.Constructor;
+
+
+/**
+ *  Same as DefaultListableBeanFactory, but it doesn't use the constructor and 
class cached in RootBeanDefinition
+ */
+public class ClassReloadingBeanFactory extends DefaultListableBeanFactory {
+@Override
+protected BeanWrapper createBeanInstance(String beanName, 
RootBeanDefinition mbd, Object[] args) {
+Class beanClass = resolveBeanClass(mbd, beanName);
+
+if (mbd.getFactoryMethodName() != null) {
+return instantiateUsingFactoryMethod(beanName, mbd, args);
+}
+
+//commented to cached constructor is not used
+/* // Shortcut when re-creating the same bean...
+if (mbd.resolvedConstructorOrFactoryMethod != null) {
+if (mbd.constructorArgumentsResolved) {
+return autowireConstructor(beanName, mbd, null, args);
+} else {
+return instantiateBean(beanName, mbd);
+}
+}*/
+
+// Need to determine the constructor...
+Constructor[] ctors = 
determineConstructorsFromBeanPostProcessors(beanClass, beanName);
+if (ctors != null ||
+mbd.getResolvedAutowireMode() == 
RootBeanDefinition.AUTOWIRE_CONSTRUCTOR ||
+mbd.hasConstructorArgumentValues() || 
!ObjectUtils.isEmpty(args)) {
+return autowireConstructor(beanName, mbd, ctors, args);
+}
+
+// No special handling: simply use no-arg constructor.
+return instantiateBean(beanName, mbd);
+}
+
+protected Class resolveBeanClass(RootBeanDefinition mbd,

[OSS Bamboo] Struts 2 SVN - Main Build (Java 6) build 888 has FAILED (6 tests failed). Change made by Musachy Barroso

2009-07-12 Thread Atlassian Open Source Bamboo
---
STRUTS-MAINJ6-888 failed.
---
Code has been updated by Musachy Barroso.
6/1015 tests failed.

http://opensource.bamboo.atlassian.com/browse/STRUTS-MAINJ6-888/


--
Code Changes
--
Musachy Barroso (793388):

>WW-3183 Add class reloading to the Spring plugin


--
Tests
--
Failed Tests (6)
   - Struts2PortletTest: Form example (New)
   - Struts2PortletTest: Index page (New)
   - Struts2PortletTest: Switch from view to edit should go to default edit 
page (New)
   - Struts2PortletTest: Token example (New)
   - Struts2PortletTest: Validation error messages stick between window state 
changes (New)
   - Struts2PortletTest: Validation example (New)


--
Error Summary
--
   [INFO] 

   [ERROR] BUILD FAILURE
   [INFO] 

   [INFO] There are test failures.
   [INFO] 

   [INFO] For more information, run Maven with the -e switch


--
This message is automatically generated by Atlassian Bamboo



[OSS Bamboo] Struts 2 SVN - Main Build build 1159 has FAILED (6 tests failed). Change made by Musachy Barroso

2009-07-12 Thread Atlassian Open Source Bamboo
---
STRUTS-MAIN-1159 failed.
---
Code has been updated by Musachy Barroso.
6/1015 tests failed.

http://opensource.bamboo.atlassian.com/browse/STRUTS-MAIN-1159/


--
Code Changes
--
Musachy Barroso (793388):

>WW-3183 Add class reloading to the Spring plugin


--
Tests
--
Failed Tests (6)
   - Struts2PortletTest: Form example (New)
   - Struts2PortletTest: Index page (New)
   - Struts2PortletTest: Switch from view to edit should go to default edit 
page (New)
   - Struts2PortletTest: Token example (New)
   - Struts2PortletTest: Validation error messages stick between window state 
changes (New)
   - Struts2PortletTest: Validation example (New)


--
Error Summary
--
   [INFO] 

   [ERROR] BUILD FAILURE
   [INFO] 

   [INFO] There are test failures.
   [INFO] 

   [INFO] For more information, run Maven with the -e switch


--
This message is automatically generated by Atlassian Bamboo