I followed the tutorial for wiring up jasper but their appears to be some
problem that is showing up as a formatting problem with the bean definitions
in action-servlet.xml

I created the controllers and the managers for the reports, and when I run
the tests, I get the following:


test-web:
     [echo] Testing web...
    [junit] Testsuite: com.quantum.webapp.action.MessageReportControllerTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Null Test:  Caused an ERROR
    [junit] null
    [junit] java.lang.ExceptionInInitializerError
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:164)
    [junit] Caused by:
org.springframework.beans.factory.BeanDefinitionStoreExce
ption: Line 177 in XML document from ServletContext resource
[/WEB-INF/action-se
rvlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException:
cvc-co
mplex-type.2.4.a: Invalid content was found starting with element 'value'.
One o
f '{"http://www.springframework.org/schema/beans":import,
"http://www.springfram
ework.org/schema/beans":alias,
"http://www.springframework.org/schema/beans":bea
n, WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.
    [junit]     at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:417)
    [junit]     at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)
    [junit]     at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    [junit]     at
org.springframework.beans.factory.support.AbstractBeanDefinit
ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
    [junit]     at
org.springframework.beans.factory.support.AbstractBeanDefinit
ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
    [junit]     at
org.springframework.web.context.support.XmlWebApplicationCont
ext.loadBeanDefinitions(XmlWebApplicationContext.java:123)
    [junit]     at
org.springframework.web.context.support.XmlWebApplicationCont
ext.loadBeanDefinitions(XmlWebApplicationContext.java:91)
    [junit]     at
org.springframework.context.support.AbstractRefreshableApplic
ationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)
    [junit]     at
org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:294)
    [junit]     at
org.springframework.web.context.support.AbstractRefreshableWe
bApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
    [junit]     at
com.quantum.webapp.action.BaseControllerTestCase.<clinit>(Bas
eControllerTestCase.java:41)
    [junit]     ... 5 more
    [junit] Caused by: org.xml.sax.SAXParseException:
cvc-complex-type.2.4.a: In
valid content was found starting with element 'value'. One of
'{"http://www.spri
ngframework.org/schema/beans":import,
"http://www.springframework.org/schema/bea
ns":alias, "http://www.springframework.org/schema/beans":bean,
WC[##other:"http:
//www.springframework.org/schema/beans"]}' is expected.
    [junit]     at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExce
ption(Unknown Source)
    [junit]     at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
Sour
ce)
    [junit]     at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown S
ource)
    [junit]     at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown S
ource)
    [junit]     at
org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter
.reportError(Unknown Source)
    [junit]     at
org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaErro
r(Unknown Source)
    [junit]     at
org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartEleme
nt(Unknown Source)
    [junit]     at
org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unk
nown Source)
    [junit]     at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElem
ent(Unknown Source)
    [junit]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen
tContentDispatcher.dispatch(Unknown Source)
    [junit]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(Unknown Source)
    [junit]     at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
    [junit]     at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
    [junit]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    [junit]     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    [junit]     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
Sour
ce)
    [junit]     at
org.springframework.beans.factory.xml.DefaultDocumentLoader.l
oadDocument(DefaultDocumentLoader.java:77)
    [junit]     at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader
.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)
    [junit]     ... 15 more


    [junit] Test com.quantum.webapp.action.MessageReportControllerTest
FAILED


It's related to the following bean definition as copied from the tutorial:

        ‹bean id="methodNameResolver"
class="org.springframework.web.servlet.mvc.multiaction.ParameterMethodNameResolver"›
                ‹property name="paramName"/>
                   <value>action</action>
        ‹/bean›

Has anyone else experienced this problem?

-- 
View this message in context: 
http://www.nabble.com/Problem-wiring-up-Jasper-reports-and-appfuse-%28Spring-mvc%29-tf3569026s2369.html#a9970845
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to