0

Java で記述されたサーバー API と Flex で記述されたクライアント側があり、GraniteDS を使用してそれらを一緒に構成しようとしています。ただし、この行を追加しようとすると:

<graniteds:flex-filter url-pattern="/*"/>

ApplicationContext.xml に - 次に、webapp を (glassfish 経由で) サーバーにデプロイしようとすると、次のエラーが発生します。

org.apache.catalina.LifecycleException: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 86 in XML document from ServletContext resource [/WEB-INF/commonContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'graniteds:flex-filter'.

何が問題なのですか?

4

1 に答える 1

0

commonContext.xmlファイルで、xmlns:graniteds名前空間とそれに対応するを定義する必要がありますxsi:schemaLocation

ドキュメントで指定されているように:

<?xml version="1.0" encoding="UTF-8"?>
<beans
  xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:graniteds="http://www.graniteds.org/config"
  xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
    http://www.graniteds.org/config http://www.graniteds.org/public/dtd/2.1.0/granite-config-2.1.xsd">

  <graniteds:flex-filter url-pattern="/*" />

</beans>
于 2011-11-06T19:23:21.963 に答える