Can't enable web:context-filter in Component.xml
jmahle Mar 23, 2008 1:16 PMHi,
when I try to enable context-filter in Component.xml to use custom servlets I got this error and the server wont start:
... Caused by: org.dom4j.DocumentException: Error on line 56 of document : The pref ix "web" for element "web:context-filter" is not bound. Nested exception: The pr efix "web" for element "web:context-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:21) at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Init ialization.java:150) ... 92 more 12:44:08,145 ERROR \[StandardContext\] Error listenerStart 12:44:08,150 ERROR \[StandardContext\] Context \[/book\] startup failed due to p revious errors 12:44:08,175 INFO \[ContextEventRepeater\] Servlet Context Name: null, Server Inf o: JBossWeb/2.0.1.GA 12:44:08,212 WARN \[ServiceController\] Problem starting service jboss.web.deploy ment:war
My component.xml looks like this:
The prefix "web" for element "web:context-filter" is not bound
<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:persistence="http://jboss.com/products/seam/persistence"
xmlns:drools="http://jboss.com/products/seam/drools"
xmlns:bpm="http://jboss.com/products/seam/bpm"
xmlns:security="http://jboss.com/products/seam/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
<core:init debug="true" jndi-pattern="@jndiPattern@" />
<component scope="APPLICATION" auto-create="true"
name="renderManager"
class="com.icesoft.faces.async.render.RenderManager" />
<core:manager concurrent-request-timeout="500"
conversation-timeout="120000" conversation-id-parameter="cid" />
<core:resource-loader>
<core:bundle-names>
<value>messages</value>
<value>constants</value>
<value>symbols</value>
</core:bundle-names>
</core:resource-loader>
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
persistence-unit-jndi-name="java:/½bookEntityManagerFactory" />
<drools:rule-base name="securityRules">
<drools:rule-files>
<value>/security.drl</value>
</drools:rule-files>
</drools:rule-base>
<security:identity
authenticate-method="#{authenticator.authenticate}"
security-rules="#{securityRules}" />
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}" />
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}" />
</event>
<web:context-filter url-pattern="/gallery/*" />
<!-- For use with jBPM pageflow or process management -->
<!--
<bpm:jbpm>
<bpm:process-definitions></bpm:process-definitions>
<bpm:pageflow-definitions></bpm:pageflow-definitions>
</bpm:jbpm>
-->
</components>
Any ideas?
Thanks
/Jacob