16 Jun 13:38
Re: spring dwr configuration, init-params, SAXParseException
From: jamurph <tony_murphy@...>
Subject: Re: spring dwr configuration, init-params, SAXParseException
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-06-16 11:38:05 GMT
Expires: This article expires on 2008-06-30
Subject: Re: spring dwr configuration, init-params, SAXParseException
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-06-16 11:38:05 GMT
Expires: This article expires on 2008-06-30
It doesn't look like I can set an init parameter using spring context. Anyone know of any other means of setting an parameter other than reverting to moving DWR into web.xml XMaNIaC wrote: > > IIRC the syntax should be <dwr:param ...> > > On Thu, May 15, 2008 at 2:55 PM, jamurph <tony_murphy@...> wrote: > >> >> >> Hi, >> >> I need to set an init parameter for DwrServlet but we are initialising >> the >> DWR in spring and not in web.xml >> >> this is a snippet of code and error message >> >> can anyone help? >> >> >> <beans xmlns="http://www.springframework.org/schema/beans" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:aop="http://www.springframework.org/schema/aop" >> xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr" >> xsi:schemaLocation="http://www.springframework.org/schema/beans >> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd >> http://www.directwebremoting.org/schema/spring-dwr >> http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd >> http://www.springframework.org/schema/aop >> http://www.springframework.org/schema/aop/spring-aop-2.0.xsd" >> default-autowire="byName"> >> >> <dwr:controller id="dwrController" debug="false"> >> <dwr:config-param name="allowGetForSafariButMakeForgeryEasier" >> value="true"/> >> </dwr:controller> >> >> >> 2008-05-15 13:29:14,328 ERROR >> [org.springframework.web.servlet.DispatcherServlet] - <Context >> initialization failed> >> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: >> Line >> 224 in XML document from ServletContext resource >> [/WEB-INF/tin-servlet.xml] >> is invalid; nested exception is org.xml.sax.SAXParseException: >> cvc-complex-type.2.1: Element 'dwr:controller' must have no character or >> element information item [children], because the type's content type is >> empty. >> Caused by: >> org.xml.sax.SAXParseException: cvc-complex-type.2.1: Element >> 'dwr:controller' must have no character or element information item >> [children], because the type's content type is empty. >> at >> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown >> Source) >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/spring-dwr-configuration%2C-init-params%2C-SAXParseException-tp17252608p17252608.html >> Sent from the DWR - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> > > -- -- View this message in context: http://www.nabble.com/spring-dwr-configuration%2C-init-params%2C-SAXParseException-tp17252608p17862424.html Sent from the DWR - Users mailing list archive at Nabble.com.
RSS Feed