PDA

View Full Version : having problem with my web application config file



master123
Aug 28th, 2009, 03:06 PM
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:flex="http://www.springframework.org/schema/flex"
xmlns:security="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/flex
http://www.springframework.org/schema/flex/spring-flex-1.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">

<flex:message-broker>
<flex:secured />
</flex:message-broker>

<flex:message-broker>
<flex:remoting-service default-adapter-id="my-default-remoting-adapter"
default-channels="my-amf, my-secure-amf" />
</flex:message-broker>



<!-- Implementation of ContactDAO using Spring's JdbcTemplate -->
<bean id="inquiryService" class="gov.fcc.inquiry.broadband.flex.dao.HomeInquiryDAOI mpl" >
<constructor-arg ref="jdbcTemplate"/>
</bean>


<!-- Expose the contactDAO bean for BlazeDS remoting -->
<flex:remoting-destination ref="inquiryService" />
<!--
<bean id="report" class="org.springframework.flex.remoting.RemotingDestinat ionExporter">
<property name="messageBroker" ref="_messageBroker"/>
<property name="service" ref="productService"/>
<property name="destinationId" value="inquiryService"/>
<property name="includeMethods" value="read, update"/>
<property name="excludeMethods" value="create, delete"/>
<property name="channels" value="my-amf, my-secure-amf"/>
</bean>
-->



<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="broadbandSource" />
</bean>

<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource" />
</bean>

</beans>


this is the error i got
org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'flex:remoting-destination'.
what am i supposed to do

jeremyg484
Aug 28th, 2009, 03:17 PM
Such an error usually signifies a problem with your class path. You likely do not have the jar for Spring BlazeDS Integration in the proper location. You need org.springframework.flex-1.0.0.RELEASE.jar in your WEB-INF/lib

master123
Aug 28th, 2009, 04:07 PM
i got the following error after updating the project with the jar file u mentioned

org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_flexRemotingAnnotationPostProcessor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.flex.config.json.JsonConfigMap PropertyEditor]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonFactory
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.instantiateBean(Abstrac tAutowireCapableBeanFactory.java:881)