struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: Test run into Failure after upgrading to Spring 3.0.5
Date Thu, 09 Jun 2011 05:30:21 GMT
My fault, I've missed that, sorry! Solved and committed!


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/


2011/6/8 John Lindal <lindalj@yahoo-inc.com>:
> I'm seeing this, too, after I just updated from svn, so I think the build in
> trunk is broken.
>
> John
>
>
> On 6/8/11 1:05 PM, "Johannes Geppert" <jogep@apache.org> wrote:
>
>> Hi all,
>>
>> I just try out to set the Spring Dependencies of Struts2 to 3.0.5.
>>
>> Index: pom.xml
>> ===================================================================
>> --- pom.xml (revision 1130878)
>> +++ pom.xml (revision )
>> @@ -85,7 +85,7 @@
>>
>>      <properties>
>>          <currentVersion>${project.version}</currentVersion>
>> -
>> <struts2.springPlatformVersion>2.5.6</struts2.springPlatformVersion>
>> +
>> <struts2.springPlatformVersion>3.0.5.RELEASE</struts2.springPlatformVersion>
>>          <ognl.version>3.0.1</ognl.version>
>>          <asm.version>3.1</asm.version>
>>          <tiles.version>2.0.6</tiles.version>
>> Index:
>> plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFacto
>> ry.java
>> ===================================================================
>> ---
>> plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFacto
>> ry.java
>> (revision 793388)
>> +++
>> plugins/spring/src/main/java/org/apache/struts2/spring/ClassReloadingBeanFacto
>> ry.java
>> (revision )
>> @@ -37,7 +37,7 @@
>>  public class ClassReloadingBeanFactory extends DefaultListableBeanFactory {
>>      @Override
>>      protected BeanWrapper createBeanInstance(String beanName,
>> RootBeanDefinition mbd, Object[] args) {
>> -        Class beanClass = resolveBeanClass(mbd, beanName);
>> +        Class beanClass = resolveBeanClass(mbd, beanName, null);
>>
>>          if (mbd.getFactoryMethodName() != null) {
>>              return instantiateUsingFactoryMethod(beanName, mbd, args);
>> Index: core/pom.xml
>> ===================================================================
>> --- core/pom.xml (revision 1090136)
>> +++ core/pom.xml (revision )
>> @@ -315,7 +315,7 @@
>>
>>          <dependency>
>>              <groupId>org.springframework</groupId>
>> -            <artifactId>spring</artifactId>
>> +            <artifactId>spring-core</artifactId>
>>              <scope>compile</scope>
>>              <optional>true</optional>
>>          </dependency>
>>
>>
>> If I skip the test I can successfully build Struts2 and also the Showcase
>> App runs fine.
>>
>> But I get a strange Test Failure in the Core Module:
>>
>> Running org.apache.struts2.views.jsp.ui.AnchorTest
>> 2011-06-08 22:08:07,441 ERROR [Log4JLoggerFactory.java:96] : Expression
>> parameters.dynamicAttributes[aKey] is undefined on line 26, column 13 in
>> template/simple/dynamic-attributes.ftl.
>> Expression parameters.dynamicAttributes[aKey] is undefined on line 26,
>> column 13 in template/simple/dynamic-attributes.ftl.
>> The problematic instruction:
>> ----------
>> ==> ${parameters.dynamicAttributes[aKey]?html} [on line 26, column 11 in
>> template/simple/dynamic-attributes.ftl]
>>  in include "/${parameters.templateDir}/simple/dynamic-attributes.ftl" [on
>> line 44, column 1 in template/simple/a-close.ftl]
>> ----------
>>
>> Java backtrace for programmers:
>> ----------
>> freemarker.core.InvalidReferenceException: Expression
>> parameters.dynamicAttributes[aKey] is undefined on line 26, column 13 in
>> template/simple/dynamic-attributes.ftl.
>>         at
>> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>>         at freemarker.core.Expression.getStringValue(Expression.java:118)
>>         at freemarker.core.Expression.getStringValue(Expression.java:93)
>>         at
>> freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltin
>> s.java:71)
>>         at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
>>         at freemarker.core.Expression.getStringValue(Expression.java:93)
>>         at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at
>> freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
>>         at freemarker.core.Environment.visit(Environment.java:417)
>>         at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at freemarker.core.Environment.include(Environment.java:1483)
>>         at freemarker.core.Include.accept(Include.java:169)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>         at freemarker.core.Environment.visit(Environment.java:210)
>>         at freemarker.core.Environment.process(Environment.java:190)
>>         at freemarker.template.Template.process(Template.java:237)
>>         at
>> org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate
>> (FreemarkerTemplateEngine.java:157)
>>         at
>> org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:559)
>>         at org.apache.struts2.components.Anchor.end(Anchor.java:145)
>>         at
>> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.
>> java:42)
>>         at
>> org.apache.struts2.views.jsp.ui.AnchorTest.testDynamicAttribute(AnchorTest.jav
>> a:75)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
>> ava:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
>>         at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
>>         at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
>>         at
>> org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
>>         at org.testng.TestRunner.privateRun(TestRunner.java:693)
>>         at org.testng.TestRunner.run(TestRunner.java:574)
>>         at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
>>         at org.testng.SuiteRunner.run(SuiteRunner.java:145)
>>         at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
>>         at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
>>         at
>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNG
>> DirectoryTestSuite.java:195)
>>         at
>> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirect
>> oryTestSuite.java:133)
>>         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j
>> ava:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBoo
>> ter.java:290)
>>         at
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>> SEVERE:   [08:07.462] error when rendering
>>
>>
>> I don't understand the relation between dynamic attributes and spring.
>>
>> Does any one can give me suggestion?
>>
>> Thanks
>>
>> Johannes
>>
>> -----
>>
>> --------------
>> web: http://www.jgeppert.com
>> twitter: http://twitter.com/jogep
>> --
>> View this message in context:
>> http://struts.1045723.n5.nabble.com/Test-run-into-Failure-after-upgrading-to-S
>> pring-3-0-5-tp4470786p4470786.html
>> Sent from the Struts - Dev mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message