1 Reply Latest reply on May 24, 2007 9:46 AM by Gavin King

    problem with character-encoding-filter in components.xml

    Hannes Schulz Newbie

      Hi,

      i added the following entry to components.xml

      <web:character-encoding-filter encoding="UTF-8"
       override-client="true"
       url-pattern="*.seam"/>


      and when i deploy the ear i get the following error



      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: org.dom4j.DocumentException: Error on line 58 of document : The prefix "web" for element "web:character-encoding-filter" is not bound. Nested exception: The prefix "web" for element "web:character-encoding-filter" is not bound.
       at org.dom4j.io.SAXReader.read(SAXReader.java:482)
       at org.dom4j.io.SAXReader.read(SAXReader.java:343)
       at org.jboss.seam.util.XML.getRootElement(XML.java:16)
       at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:133)
       ... 92 more



      can anyone help?

      i use seam 1.21GA

      thanks and regards,
      hasc