[jboss-user] [JBoss Seam] - Re: Problems with contexts not being active
garypinkham
do-not-reply at jboss.com
Mon Nov 12 19:30:08 EST 2007
"pete.muir at jboss.org" wrote : Post your web.xml and components.xml
Sorry to steal the thread but I'm having the same issue so I'll post mine! :-)
First a bit of background.. I did a quick app using the generate-entities and put a web service in front of some of the entityHome's. After some hair pulling it worked great. Now I moved the app to an integration machine. Same version of jboss and seam (4.2.0GA and 2.0.0GA) and now I'm getting the IllegalStateException regarding the lack of an active context when I call the webservice. Its really weird since I didn't change anything (I actually zipped up the deployed app from my desktop and unzipped on the server to make sure it was the same..) Anyways.. Here's my web.xml and component.xml... Any help would be greatly appreciated...
| <?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:mail="http://jboss.com/products/seam/mail"
| 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/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="true" jndi-pattern="@jndiPattern@"/>
|
| <core:manager concurrent-request-timeout="500"
| conversation-timeout="120000"
| conversation-id-parameter="cid"/>
|
| <persistence:filter name="companyFilter"
| enabled="#{identity.loggedIn}">
| <persistence:name>companyFilter</persistence:name>
| <persistence:parameters>
| <key>companyId</key>
| <value>#{companyId}</value>
| </persistence:parameters>
| </persistence:filter>
|
|
| <persistence:managed-persistence-context name="entityManager"
| auto-create="true"
| entity-manager-factory="#{saasEntityManagerFactory}">
| <persistence:filters>
| <value>#{companyFilter}</value>
| </persistence:filters>
| </persistence:managed-persistence-context>
|
|
| <persistence:entity-manager-factory name="saasEntityManagerFactory"
| persistence-unit-name="saas"/>
|
| <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}"
| remember-me="true"/>
|
| <event type="org.jboss.seam.notLoggedIn">
| <action execute="#{redirect.captureCurrentView}"/>
| </event>
| <event type="org.jboss.seam.postAuthenticate">
| <action execute="#{redirect.returnToCapturedView}"/>
| </event>
|
| <mail:mail-session host="localhost" port="2525" username="test" password="test" />
|
| <!-- 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>
|
| <?xml version="1.0" ?>
| <web-app 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_5.xsd"
| version="2.5">
|
| <!-- Ajax4jsf -->
|
| <context-param>
| <param-name>org.richfaces.SKIN</param-name>
| <param-value>blueSky</param-value>
| </context-param>
|
| <!-- Seam -->
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <servlet>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Resource Servlet</servlet-name>
| <url-pattern>/seam/resource/*</url-pattern>
| </servlet-mapping>
|
| <!-- Facelets development mode (disable in production) -->
|
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <!-- JSF -->
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <servlet>
| <servlet-name>TenantService</servlet-name>
| <servlet-class>com.foo.saas.tenant.wsdl.TenantPortTypeImpl</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>TenantService</servlet-name>
| <url-pattern>/wsdl</url-pattern>
| </servlet-mapping>
|
| <servlet>
| <servlet-name>IdentityService</servlet-name>
| <servlet-class>com.foo.schemas.wsdl.IdentityPortTypeImpl</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>IdentityService</servlet-name>
| <url-pattern>/identity</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/>
| </security-constraint>
| </web-app>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103917#4103917
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103917
More information about the jboss-user
mailing list