Issue Details (XML | Word | Printable)

Key: APF-656
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Matt Raible
Reporter: Tuncay Altun
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

BasePageTestCase and web.xml - no references to classpath*:/applicationContext.xml

Created: 21/Feb/07 06:13 AM   Updated: 27/Feb/07 12:13 AM   Resolved: 27/Feb/07 12:13 AM
Component/s: Web - JSF
Affects Version/s: 2.0-M3
Fix Version/s: 2.0-M4


 Description  « Hide
This could definitely be a bug. Looking in BasePageTestCase and
web.xml, there's no references to classpath*:/applicationContext.xml.

http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/action/BasePageTestCase.html

---------------build error

On 2/20/07, Tuncay A. <tuncay.jc@...> wrote:
>
> I tried without result.
>
> Seems like web module doesn't know about applicationContext.xml from core
>
> PersonListTest:
>
> testSearch(net.company.webapp.bean.PersonListTest) Time elapsed: 0.359 sec
> <<< ERROR!
> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
> named 'personManager' is defined
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:340)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:906)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
> at
> org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642)
> at net.jsync.webapp.bean.PersonListTest.setUp(PersonListTest.java:18)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
>
>
> PersonFormTest:
>
> -------------------------------------------------------------------------------
> Test set: net.company.webapp.bean.PersonFormTest
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.046 sec
> <<< FAILURE!
> testAdd(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.015 sec
> <<< ERROR!
> java.lang.NullPointerException
> at net.company.webapp.bean.PersonForm.save(PersonForm.java:54)
> at net.company.webapp.bean.PersonFormTest.testAdd(PersonFormTest.java:31)
>
> testEdit(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.016 sec
> <<< ERROR!
> java.lang.NullPointerException
> at net.company.webapp.bean.PersonForm.edit(PersonForm.java:44)
> at net.company.webapp.bean.PersonFormTest.testEdit(PersonFormTest.java:39)
>
> testSave(net.company.webapp.bean.PersonFormTest) Time elapsed: 0 sec <<<
> ERROR!
> java.lang.NullPointerException
> at net.company.webapp.bean.PersonForm.edit(PersonForm.java:44)
> at net.company.webapp.bean.PersonFormTest.testSave(PersonFormTest.java:47)
>
> testRemove(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.015 sec
> <<< ERROR!
> java.lang.NullPointerException
> at net.company.webapp.bean.PersonForm.delete(PersonForm.java:36)
> at
> net.company.webapp.bean.PersonFormTest.testRemove(PersonFormTest.java:65)






Matt Raible made changes - 26/Feb/07 07:01 PM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Matt Raible made changes - 26/Feb/07 07:01 PM
Fix Version/s 2.0-M4 [ 10130 ]
2518 by  Matt Raible (12 files)
27/Feb/07 12:12 AM (41 months, 12 days ago)
Matt Raible made changes - 27/Feb/07 12:13 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]