Announcement Announcement Module
Collapse
No announcement yet.
having problem with my web application config file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • having problem with my web application config file

    <?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/schem...-beans-2.5.xsd
    http://www.springframework.org/schema/flex
    http://www.springframework.org/schem...g-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.HomeInqu iryDAOImpl" >
    <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.RemotingD estinationExporter">
    <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.JndiObjectFactoryB ean">
    <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

  • #2
    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

    Comment


    • #3
      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)

      Comment

      Working...
      X