After upgrading all libs and config files to seam 2.0.0.BETA1, I'm facing two problems :
- I'm unable to access seam components from non jsf servlets (despite the <web:context-filter url-pattern="/servlet/*"/> configuration ... I get a "java.lang.IllegalStateException: No application context active at org.jboss.seam.Component.forName(Component.java:1690)" exception - a validation on a backing bean property using the @AssertTrue hibernate validator does not work anymore (@Email is still ok) Here are my 3 main configurations files ... maybe some mistake I made (?) components.xml anonymous wrote : <?xml version="1.0" encoding="UTF-8"?> | <components xmlns="http://jboss.com/products/seam/components" | xmlns:core="http://jboss.com/products/seam/core" | xmlns:drools="http://jboss.com/products/seam/drools" | xmlns:security="http://jboss.com/products/seam/security" | xmlns:mail="http://jboss.com/products/seam/mail" | xmlns:transaction="http://jboss.com/products/seam/transaction" | xmlns:persistence="http://jboss.com/products/seam/persistence" | xmlns:web="http://jboss.com/products/seam/web" | 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/drools http://jboss.com/products/seam/drools-2.0.xsd | http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd | http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd | http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.0.xsd | http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd | http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd | http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd"> | | <core:init debug="@debug@" jndi-pattern="@jndiPattern@" /> | | <core:manager concurrent-request-timeout="500" | conversation-timeout="120000" | conversation-id-parameter="cid"/> | | <core:pages no-conversation-view-id="/index.xhtml" /> | | <!-- Seam-managed persistence context with JPA --> | <persistence:managed-persistence-context name="em" auto-create="true"> | <persistence:persistence-unit-jndi-name>java:/@[EMAIL PROTECTED]</persistence:persistence-unit-jndi-name> | </persistence:managed-persistence-context> | | <core:resource-bundle> | <core:bundle-names> | myapp-messages | myapp-internals-messages | </core:bundle-names> | </core:resource-bundle> | | <core:locale-selector cookie-enabled="true" /> | | <core:transactionListener /> | | <web:multipart-filter create-temp-files="true" | max-request-size="1000000"/> | | <security:identity authenticate-method="#{login.login}"/> | | | | | | | | | <!-- integrate custom servlet with seam contexts --> | <web:context-filter url-pattern="/cm_servlets/*" /> | | <drools:rule-base name="securityRules"> | <drools:rule-files> | /META-INF/security.drl | </drools:rule-files> | </drools:rule-base> | | <transaction:ejb-transaction/> | | web.xml anonymous wrote : | <?xml version="1.0" encoding="UTF-8"?> | | <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/javaee" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_4.xsd"> | | <!-- Ajax4jsf --> | | <context-param> | <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name> | <param-value>com.sun.facelets.FaceletViewHandler</param-value> | </context-param> | | <context-param> | <param-name>org.ajax4jsf.SKIN</param-name> | <param-value>blueSky</param-value> | </context-param> | | <!-- Seam --> | | | <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> | | | | <filter-name>Seam Filter</filter-name> | <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> | | | <filter-mapping> | <filter-name>Seam Filter</filter-name> | <url-pattern>*.cm</url-pattern> | </filter-mapping> | | | <servlet-name>Seam Resource Servlet</servlet-name> | <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class> | | | <servlet-mapping> | <servlet-name>Seam Resource Servlet</servlet-name> | <url-pattern>/seam/resource/*</url-pattern> | </servlet-mapping> | | <context-param> | <param-name>facelets.DEVELOPMENT</param-name> | <param-value>@debug@</param-value> | </context-param> | | <context-param> | <param-name>facelets.SKIP_COMMENTS</param-name> | <param-value>false</param-value> | </context-param> | | <!-- JSF --> | | <context-param> | <param-name>javax.faces.DEFAULT_SUFFIX</param-name> | <param-value>.xhtml</param-value> | </context-param> | | | <servlet-name>Faces Servlet</servlet-name> | <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | <load-on-startup>1</load-on-startup> | | | <servlet-mapping> | <servlet-name>Faces Servlet</servlet-name> | <url-pattern>*.cm</url-pattern> | </servlet-mapping> | | <!-- | <security-constraint> | <display-name>Restrict raw XHTML Documents</display-name> | <web-resource-collection> | <web-resource-name>XHTML</web-resource-name> | <url-pattern>*.xhtml</url-pattern> | </web-resource-collection> | <auth-constraint> | <role-name>NONE</role-name> | </auth-constraint> | </security-constraint> | --> | | <!-- Export Servlet --> | | | <servlet-name>Export Servlet</servlet-name> | <servlet-class>com.sopinspace.coment.servlets.ExportServlet</servlet-class> | | | <servlet-mapping> | <servlet-name>Export Servlet</servlet-name> | <url-pattern>/cm_servlets/export/*</url-pattern> | </servlet-mapping> | | <error-page> | <error-code>404</error-code> | /404.xhtml | </error-page> | | <session-config> | <session-timeout>30</session-timeout> | </session-config> | | </web-app> | faces-config.xml anonymous wrote : | <?xml version="1.0" encoding="UTF-8"?> | <faces-config version="1.2" | xmlns="http://java.sun.com/xml/ns/javaee" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"> | | <!-- i18n --> | | <locale-config> | <default-locale>en</default-locale> | <supported-locale>en</supported-locale> | <supported-locale>fr</supported-locale> | </locale-config> | <!-- not with ajax4jsf (?) <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> --> | | | </faces-config> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059542#4059542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059542 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user