Hi, can you show your libs (a ls to see transitive libs too)? maybe some conflict remains
- Romain 2012/6/6 zeeman <hamz...@fastmail.us> > Hi all, > > I love the Tomee stack and what Apache has to offer. I have a project > running fine in AS 7.1.final. It uses Seam 3.1, Weld, Primefaces 3.2, > Hibernate 4, Mojarra. I have migrated it to Tomee 1.0, I switched to JSF > impl to Myfaces 2.7 and from Weld to OpenWebbeans. I kept using Hibernate > and it works fine in Tomee. > > The backend works fine (inject, DB, EJBs, etc...). However, some odd > behavior in the UI. > > Links inside forms are not working (Ajaxed or not). For example: > > One page1.xhtml, below keeps the page on the same url and it does not go to > page2.xhtml. I have simplified the problem from my real code. > > <h:form id="createStuffForm"> > <h:commandLink id="link1" > value="Go" action="/page2.xhtml" /> > </h:form> > > Simply anything that has to do with navigation, redirects, ajax, etc... is > not working. Any ideas? The same exact code works fine on AS7 stack. Is it > something to do with Seam, PrettyURL, or Myfaces? > > My web.xml: > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <web-app xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > version="3.0" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> > > <display-name>mycompany</display-name> > > <session-config> > <session-timeout>30</session-timeout> > </session-config> > > > <listener> > > <listener-class>com.mycompany.loaders.ServletLoaderListner</listener-class> > </listener> > > <listener> > > > <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> > </listener> > > <context-param> > <param-name>javax.faces.PROJECT_STAGE</param-name> > <param-value>Development</param-value> > </context-param> > > <context-param> > <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name> > <param-value>true</param-value> > </context-param> > > <context-param> > > <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name> > <param-value>10</param-value> > </context-param> > <context-param> > <param-name>org.apache.myfaces.PRETTY_HTML</param-name> > <param-value>true</param-value> > </context-param> > <context-param> > <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> > <param-value>true</param-value> > </context-param> > <context-param> > <param-name>org.apache.myfaces.VALIDATE</param-name> > <param-value>true</param-value> > </context-param> > > > <context-param> > <param-name>primefaces.PRIVATE_CAPTCHA_KEY</param-name> > > <param-value>6Lcrs84SAAAAAD80L6f0eOADi3sG9HSP9cPwUEbN</param-value> > </context-param> > <context-param> > <param-name>primefaces.PUBLIC_CAPTCHA_KEY</param-name> > > <param-value>6Lcrs84SAAAAALiPyJtqGqfGGFH9MlnwBp-bywn0</param-value> > </context-param> > > > <context-param> > <param-name>primefaces.THEME</param-name> > <param-value>ui-lightness</param-value> > </context-param> > > <filter> > <filter-name>Pretty Filter</filter-name> > <filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>Pretty Filter</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>FORWARD</dispatcher> > <dispatcher>REQUEST</dispatcher> > <dispatcher>ERROR</dispatcher> > </filter-mapping> > > > <filter> > <filter-name>PrimeFaces FileUpload Filter</filter-name> > > > <filter-class>com.mycompany.loaders.upload.mycompanyFileUploadFilter</filter-class> > > </filter> > <filter-mapping> > <filter-name>PrimeFaces FileUpload Filter</filter-name> > <servlet-name>Faces Servlet</servlet-name> > > <dispatcher>FORWARD</dispatcher> > <dispatcher>REQUEST</dispatcher> > <dispatcher>ERROR</dispatcher> > </filter-mapping> > > <context-param> > <param-name>javax.faces.DEFAULT_SUFFIX</param-name> > <param-value>.xhtml</param-value> > </context-param> > <context-param> > <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name> > <param-value>*.xhtml</param-value> > </context-param> > > <servlet> > <servlet-name>Faces Servlet</servlet-name> > > <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > <servlet-mapping> > <servlet-name>Faces Servlet</servlet-name> > <url-pattern>*.xhtml</url-pattern> > </servlet-mapping> > <servlet> > <servlet-name>mediaServlet</servlet-name> > > <servlet-class>com.mycompany.services.media.MediaServlet</servlet-class> > </servlet> > <servlet-mapping> > <servlet-name>mediaServlet</servlet-name> > <url-pattern>/media/*</url-pattern> > </servlet-mapping> > </web-app> > > My Pom.xml dependencies: > > <dependencies> > <dependency> > <groupId>org.apache.myfaces.core</groupId> > <artifactId>myfaces-api</artifactId> > <version>2.1.7</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>org.apache.myfaces.core</groupId> > <artifactId>myfaces-impl</artifactId> > <version>2.1.7</version> > <scope>provided</scope> > <exclusions> > <exclusion> > > <artifactId>commons-collections</artifactId> > > <groupId>commons-collections</groupId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>jstl</artifactId> > <version>1.2</version> > <scope>runtime</scope> > </dependency> > <dependency> > <groupId>org.apache.openejb</groupId> > <artifactId>javaee-api</artifactId> > <version>6.0-3</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-infinispan</artifactId> > <version>${hibernate.core.version}</version> > <scope>provided</scope> > <exclusions> > <exclusion> > <artifactId> > > jboss-transaction-api_1.1_spec > </artifactId> > > <groupId>org.jboss.spec.javax.transaction</groupId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-validator</artifactId> > <version>4.2.0.Final</version> > <scope>provided</scope> > <exclusions> > <exclusion> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-api</artifactId> > </exclusion> > <exclusion> > > <artifactId>jboss-logging</artifactId> > <groupId>org.jboss.logging</groupId> > </exclusion> > <exclusion> > > <artifactId>validation-api</artifactId> > <groupId>javax.validation</groupId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-search</artifactId> > <version>4.1.1.Final</version> > <exclusions> > <exclusion> > <groupId>org.hibernate</groupId> > > <artifactId>hibernate-core</artifactId> > </exclusion> > <exclusion> > <groupId>org.slf4j</groupId> > <artifactId>slf4j-api</artifactId> > </exclusion> > <exclusion> > <groupId>org.apache.solr</groupId> > > <artifactId>solr-analysis-extras</artifactId> > </exclusion> > <exclusion> > > <artifactId>jboss-logging</artifactId> > <groupId>org.jboss.logging</groupId> > </exclusion> > <exclusion> > > <groupId>org.hibernate.common</groupId> > > <artifactId>hibernate-commons-annotations</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>org.hibernate</groupId> > <artifactId>hibernate-entitymanager</artifactId> > <version>${hibernate.core.version}</version> > <exclusions> > <exclusion> > > <groupId>org.hibernate.javax.persistence</groupId> > > <artifactId>hibernate-jpa-2.0-api</artifactId> > </exclusion> > <exclusion> > > <groupId>org.jboss.spec.javax.transaction</groupId> > > <artifactId>jboss-transaction-api_1.1_spec</artifactId> > </exclusion> > <exclusion> > > <artifactId>jboss-logging</artifactId> > <groupId>org.jboss.logging</groupId> > </exclusion> > <exclusion> > > <groupId>org.hibernate.common</groupId> > > <artifactId>hibernate-commons-annotations</artifactId> > </exclusion> > </exclusions> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>joda-time</groupId> > <artifactId>joda-time</artifactId> > <version>1.6</version> > </dependency> > <dependency> > <groupId>org.jadira.usertype</groupId> > <artifactId>usertype.jodatime</artifactId> > <version>2.0</version> > </dependency> > > > <dependency> > <groupId>javax.mail</groupId> > <artifactId>mail</artifactId> > <version>1.4.5</version> > </dependency> > <dependency> > <groupId>org.jboss.seam.mail</groupId> > <artifactId>seam-mail-api</artifactId> > <version>${seam.version}</version> > </dependency> > <dependency> > <groupId>org.jboss.seam.mail</groupId> > <artifactId>seam-mail</artifactId> > <scope>compile</scope> > <version>${seam.version}</version> > </dependency> > <dependency> > <groupId>org.jboss.seam.security</groupId> > <artifactId>seam-security</artifactId> > <scope>compile</scope> > <version>${seam.version}</version> > </dependency> > <dependency> > <groupId>org.jboss.solder</groupId> > <artifactId>solder-impl</artifactId> > <version>${seam.version}</version> > </dependency> > <dependency> > <groupId>org.jboss.seam.persistence</groupId> > <artifactId>seam-persistence</artifactId> > <version>${seam.version}</version> > </dependency> > <dependency> > <groupId>org.jboss.seam.international</groupId> > <artifactId>seam-international</artifactId> > <version>${seam.version}</version> > </dependency> > <dependency> > <groupId>org.jboss.seam.faces</groupId> > <artifactId>seam-faces</artifactId> > <version>${seam.version}</version> > </dependency> > <dependency> > <groupId>org.scribe</groupId> > <artifactId>scribe</artifactId> > <version>1.3.0</version> > </dependency> > <dependency> > <groupId>com.ocpsoft</groupId> > <artifactId>prettyfaces-jsf2</artifactId> > <scope>runtime</scope> > <version>3.3.2</version> > </dependency> > <dependency> > <groupId>org.primefaces</groupId> > <artifactId>primefaces</artifactId> > <version>3.2</version> > </dependency> > <dependency> > <groupId>org.primefaces.themes</groupId> > <artifactId>ui-lightness</artifactId> > <version>1.0.2</version> > </dependency> > <dependency> > <groupId>commons-io</groupId> > <artifactId>commons-io</artifactId> > <version>1.4</version> > </dependency> > <dependency> > <groupId>commons-fileupload</groupId> > <artifactId>commons-fileupload</artifactId> > <version>1.2.2</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>com.google.guava</groupId> > <artifactId>guava</artifactId> > <version>12.0</version> > </dependency> > <dependency> > <groupId>commons-lang</groupId> > <artifactId>commons-lang</artifactId> > <version>2.4</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>commons-codec</groupId> > <artifactId>commons-codec</artifactId> > <version>1.4</version> > <scope>provided</scope> > </dependency> > <dependency> > <groupId>com.mortennobel</groupId> > <artifactId>java-image-scaling</artifactId> > <version>0.8.5</version> > </dependency> > > <dependency> > <groupId>org.apache.velocity</groupId> > <artifactId>velocity</artifactId> > <version>1.7</version> > <scope>runtime</scope> > <exclusions> > <exclusion> > > <artifactId>commons-collections</artifactId> > > <groupId>commons-collections</groupId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>org.freemarker</groupId> > <artifactId>freemarker</artifactId> > <version>${freemarker.version}</version> > </dependency> > > > <dependency> > <groupId>org.subethamail</groupId> > <artifactId>subethasmtp</artifactId> > <version>3.1.3</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>junit</groupId> > <artifactId>junit</artifactId> > <version>4.8.1</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.jboss.shrinkwrap.resolver</groupId> > > <artifactId>shrinkwrap-resolver-impl-maven</artifactId> > <scope>test</scope> > <version>1.0.0-beta-5</version> > <exclusions> > <exclusion> > > <groupId>com.google.collections</groupId> > > <artifactId>google-collections</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>org.jboss.arquillian.ajocado</groupId> > <artifactId>arquillian-ajocado-testng</artifactId> > <version>1.0.0.CR2</version> > <type>pom</type> > <scope>test</scope> > <exclusions> > <exclusion> > > <artifactId>commons-collections</artifactId> > > <groupId>commons-collections</groupId> > </exclusion> > </exclusions> > </dependency> > > > <dependency> > <groupId>org.drools</groupId> > <artifactId>drools-compiler</artifactId> > <version>5.1.1</version> > <exclusions> > <exclusion> > <artifactId>mvel2</artifactId> > <groupId>org.mvel</groupId> > </exclusion> > <exclusion> > > <artifactId>antlr-runtime</artifactId> > <groupId>org.antlr</groupId> > </exclusion> > <exclusion> > <artifactId>ecj</artifactId> > > <groupId>org.eclipse.jdt.core.compiler</groupId> > </exclusion> > </exclusions> > </dependency> > </dependencies> > > My face-config.xml navigation rule: > > <navigation-rule> > <from-view-id>*</from-view-id> > <navigation-case> > <from-outcome>error</from-outcome> > <to-view-id>/error.xhtml</to-view-id> > </navigation-case> > <navigation-case> > <from-action>#{identity.logout}</from-action> > <if>#{true}</if> > <to-view-id>/home.xhtml</to-view-id> > <redirect/> > </navigation-case> > <navigation-case> > <from-action>#{identity.login}</from-action> > <if>#{identity.loggedIn}</if> > <to-view-id>/home.xhtml</to-view-id> > <redirect> > <view-param> > <name>pageSection</name> > <value>wall</value> > </view-param> > </redirect> > </navigation-case> > <navigation-case> > <from-action>#{identity.login}</from-action> > <from-outcome>failed</from-outcome> > <to-view-id>/login.xhtml</to-view-id> > </navigation-case> > <navigation-case> > <from-action>#{identity.login}</from-action> > <from-outcome>exception</from-outcome> > <to-view-id>/home.xhtml</to-view-id> > </navigation-case> > </navigation-rule> > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/JSF2-project-migrated-from-Jboss-AS7-to-Tomee-not-working-tp4655453.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >