java - Mavenized Seam 2.3.1.Final project get FileNotFoundException while trying to access a simple view -


when access example src/main/webapp/home.xhtml browser displays no problem, when trying access src/main/webapp/views/example.xhtml following:

02:04:27,513 error [org.apache.catalina.core.containerbase.[jboss.web].[default-host].[/myproject].[faces servlet]] (http-localhost-127.0.0.1-8080-16) servlet.service() servlet faces servlet threw exception: java.io.filenotfoundexception @ org.apache.naming.resources.dircontexturlconnection.getinputstream(dircontexturlconnection.java:369) [jbossweb-7.0.13.final.jar:] @ com.sun.faces.facelets.impl.defaultfaceletcache._getlastmodified(defaultfaceletcache.java:172) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfaceletcache.access$000(defaultfaceletcache.java:62) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfaceletcache$1.newinstance(defaultfaceletcache.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfaceletcache$1.newinstance(defaultfaceletcache.java:78) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.util.expiringconcurrentcache$1.call(expiringconcurrentcache.java:99) [jsf-impl-2.1.7-jbossorg-2.jar:] @ java.util.concurrent.futuretask$sync.innerrun(unknown source) [rt.jar:1.6.0_45] @ java.util.concurrent.futuretask.run(unknown source) [rt.jar:1.6.0_45] @ com.sun.faces.util.expiringconcurrentcache.get(expiringconcurrentcache.java:114) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfaceletcache.getfacelet(defaultfaceletcache.java:121) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfaceletcache.getfacelet(defaultfaceletcache.java:62) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfaceletfactory.getfacelet(defaultfaceletfactory.java:256) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:366) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfacelet.include(defaultfacelet.java:346) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfaceletcontext.includefacelet(defaultfaceletcontext.java:199) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.tag.ui.compositionhandler.apply(compositionhandler.java:155) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.compiler.namespacehandler.apply(namespacehandler.java:93) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.compiler.encodinghandler.apply(encodinghandler.java:86) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.facelets.impl.defaultfacelet.apply(defaultfacelet.java:152) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.application.view.faceletviewhandlingstrategy.buildview(faceletviewhandlingstrategy.java:774) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.lifecycle.renderresponsephase.execute(renderresponsephase.java:100) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:] @ com.sun.faces.lifecycle.lifecycleimpl.render(lifecycleimpl.java:139) [jsf-impl-2.1.7-jbossorg-2.jar:] @ javax.faces.webapp.facesservlet.service(facesservlet.java:594) [jboss-jsf-api_2.1_spec-2.0.1.final.jar:2.0.1.final] @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:329) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:248) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.java:840) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.applicationdispatcher.processrequest(applicationdispatcher.java:622) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.applicationdispatcher.doforward(applicationdispatcher.java:560) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.applicationdispatcher.forward(applicationdispatcher.java:488) [jbossweb-7.0.13.final.jar:] @ org.tuckey.web.filters.urlrewrite.normalrewrittenurl.dorewrite(normalrewrittenurl.java:195) [urlrewritefilter-3.0.4.jar:3.0.4] @ org.tuckey.web.filters.urlrewrite.rulechain.handlerewrite(rulechain.java:159) [urlrewritefilter-3.0.4.jar:3.0.4] @ org.tuckey.web.filters.urlrewrite.rulechain.dorules(rulechain.java:141) [urlrewritefilter-3.0.4.jar:3.0.4] @ org.tuckey.web.filters.urlrewrite.urlrewriter.processrequest(urlrewriter.java:90) [urlrewritefilter-3.0.4.jar:3.0.4] @ org.tuckey.web.filters.urlrewrite.urlrewritefilter.dofilter(urlrewritefilter.java:406) [urlrewritefilter-3.0.4.jar:3.0.4] @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:280) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:248) [jbossweb-7.0.13.final.jar:] @ org.jboss.seam.servlet.seamfilter$filterchainimpl.dofilter(seamfilter.java:83) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.web.loggingfilter.dofilter(loggingfilter.java:60) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.servlet.seamfilter$filterchainimpl.dofilter(seamfilter.java:69) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.web.identityfilter.dofilter(identityfilter.java:40) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.servlet.seamfilter$filterchainimpl.dofilter(seamfilter.java:69) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.web.multipartfilter.dofilter(multipartfilter.java:90) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.servlet.seamfilter$filterchainimpl.dofilter(seamfilter.java:69) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.web.exceptionfilter.dofilter(exceptionfilter.java:64) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.servlet.seamfilter$filterchainimpl.dofilter(seamfilter.java:69) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.web.redirectfilter.dofilter(redirectfilter.java:45) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.servlet.seamfilter$filterchainimpl.dofilter(seamfilter.java:69) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.web.hotdeployfilter.dofilter(hotdeployfilter.java:53) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.servlet.seamfilter$filterchainimpl.dofilter(seamfilter.java:69) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.jboss.seam.servlet.seamfilter.dofilter(seamfilter.java:158) [jboss-seam-2.3.1.final.jar:2.3.1.final] @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:280) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:248) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:275) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:161) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:397) [jbossweb-7.0.13.final.jar:] @ org.jboss.as.jpa.interceptor.webnontxemcloservalve.invoke(webnontxemcloservalve.java:50) [jboss-as-jpa-7.1.1.final.jar:7.1.1.final] @ org.jboss.as.web.security.securitycontextassociationvalve.invoke(securitycontextassociationvalve.java:153) [jboss-as-web-7.1.1.final.jar:7.1.1.final] @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:155) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:102) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:109) [jbossweb-7.0.13.final.jar:] @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:368) [jbossweb-7.0.13.final.jar:] @ org.apache.coyote.http11.http11processor.process(http11processor.java:877) [jbossweb-7.0.13.final.jar:] @ org.apache.coyote.http11.http11protocol$http11connectionhandler.process(http11protocol.java:671) [jbossweb-7.0.13.final.jar:] @ org.apache.tomcat.util.net.jioendpoint$worker.run(jioendpoint.java:930) [jbossweb-7.0.13.final.jar:] @ java.lang.thread.run(unknown source) [rt.jar:1.6.0_45] 

my pom.xml:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>com.mycompany</groupid> <artifactid>myproject</artifactid> <version>0.0.1-snapshot</version> <packaging>war</packaging> <name>myproject</name> <build>     <sourcedirectory>${basedir}/src/main/java</sourcedirectory>     <resources>         <resource>             <directory>${basedir}/src/main/resources</directory>             <excludes>                 <exclude>**/*.java</exclude>             </excludes>         </resource>     </resources>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-compiler-plugin</artifactid>             <version>2.3.2</version>             <configuration>                 <source>1.6</source>                 <target>1.6</target>                 <debug>true</debug>             </configuration>         </plugin>         <plugin>             <artifactid>maven-war-plugin</artifactid>             <version>2.3</version>             <configuration>                 <warsourcedirectory>${basedir}/src/main/webapp</warsourcedirectory>             </configuration>         </plugin>     </plugins> </build> <dependencies>     <dependency>         <groupid>org.jboss.seam</groupid>         <artifactid>jboss-seam</artifactid>         <version>2.3.1.final</version>     </dependency>     <dependency>         <groupid>org.jboss.seam</groupid>         <artifactid>jboss-seam-ui</artifactid>     </dependency>     <dependency>         <groupid>org.jboss.seam</groupid>         <artifactid>jboss-seam-debug</artifactid>     </dependency>     <dependency>         <groupid>org.jboss.seam</groupid>         <artifactid>jboss-seam-ioc</artifactid>     </dependency>     <dependency>         <groupid>org.jboss.seam</groupid>         <artifactid>jboss-seam-mail</artifactid>     </dependency>     <dependency>         <groupid>org.jboss.seam</groupid>         <artifactid>jboss-seam-pdf</artifactid>     </dependency>     <dependency>         <groupid>org.primefaces</groupid>         <artifactid>primefaces</artifactid>         <version>3.5</version>     </dependency>     <dependency>         <groupid>org.tuckey</groupid>         <artifactid>urlrewritefilter</artifactid>         <exclusions>             <exclusion>                 <artifactid>junit</artifactid>                 <groupid>junit</groupid>             </exclusion>             <exclusion>                 <artifactid>ant</artifactid>                 <groupid>ant</groupid>             </exclusion>         </exclusions>     </dependency>     <dependency>         <groupid>org.jboss.spec.javax.faces</groupid>         <artifactid>jboss-jsf-api_2.1_spec</artifactid>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.jboss.spec.javax.servlet</groupid>         <artifactid>jboss-servlet-api_3.0_spec</artifactid>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.drools</groupid>         <artifactid>drools-decisiontables</artifactid>         <exclusions>             <exclusion>                 <artifactid>jxl</artifactid>                 <groupid>jexcelapi</groupid>             </exclusion>         </exclusions>     </dependency>     <dependency>         <groupid>org.drools</groupid>         <artifactid>knowledge-api</artifactid>     </dependency>     <dependency>         <groupid>org.drools</groupid>         <artifactid>drools-templates</artifactid>     </dependency>     <dependency>         <groupid>org.drools</groupid>         <artifactid>drools-compiler</artifactid>         <exclusions>             <exclusion>                 <artifactid>junit</artifactid>                 <groupid>junit</groupid>             </exclusion>             <exclusion>                 <artifactid>xpp3</artifactid>                 <groupid>xpp3</groupid>             </exclusion>             <exclusion>                 <artifactid>xstream</artifactid>                 <groupid>com.thoughtworks.xstream</groupid>             </exclusion>             <exclusion>                 <artifactid>xercesimpl</artifactid>                 <groupid>xerces</groupid>             </exclusion>             <exclusion>                 <artifactid>xml-apis</artifactid>                 <groupid>xml-apis</groupid>             </exclusion>         </exclusions>     </dependency>     <dependency>         <groupid>commons-io</groupid>         <artifactid>commons-io</artifactid>     </dependency>     <dependency>         <groupid>commons-lang</groupid>         <artifactid>commons-lang</artifactid>     </dependency>     <dependency>         <groupid>commons-codec</groupid>         <artifactid>commons-codec</artifactid>     </dependency>     <dependency>         <groupid>org.javassist</groupid>         <artifactid>javassist</artifactid>     </dependency>     <dependency>         <groupid>log4j</groupid>         <artifactid>log4j</artifactid>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-core</artifactid>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-entitymanager</artifactid>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-validator</artifactid>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-search</artifactid>         <scope>provided</scope>     </dependency>     <dependency>         <groupid>org.richfaces.ui</groupid>         <artifactid>richfaces-components-ui</artifactid>     </dependency>     <dependency>         <groupid>org.richfaces.ui</groupid>         <artifactid>richfaces-components-api</artifactid>     </dependency>     <dependency>         <groupid>org.richfaces.core</groupid>         <artifactid>richfaces-core-impl</artifactid>     </dependency>     <dependency>         <groupid>org.richfaces.core</groupid>         <artifactid>richfaces-core-api</artifactid>     </dependency> </dependencies> <dependencymanagement>     <dependencies>         <dependency>             <groupid>org.jboss.seam</groupid>             <artifactid>bom</artifactid>             <version>2.3.1.final</version>             <type>pom</type>             <scope>import</scope>         </dependency>     </dependencies> </dependencymanagement> 

my web.xml:

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="webapp_id" version="3.0"> <display-name>myproject</display-name> <welcome-file-list>     <welcome-file>index.html</welcome-file> </welcome-file-list> <!-- 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>  <!-- url rewriting --> <filter>     <filter-name>urlrewritefilter</filter-name>     <filter-class>org.tuckey.web.filters.urlrewrite.urlrewritefilter</filter-class> </filter> <filter-mapping>     <filter-name>urlrewritefilter</filter-name>     <url-pattern>/*</url-pattern> </filter-mapping>  <!-- jsf --> <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>*.seam</url-pattern> </servlet-mapping> <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.jsf</url-pattern> </servlet-mapping> <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.faces</url-pattern> </servlet-mapping> <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.xhtml</url-pattern> </servlet-mapping>  <context-param>     <param-name>facelets.development</param-name>     <param-value>true</param-value> </context-param> <context-param>     <param-name>javax.faces.default_suffix</param-name>     <param-value>.xhtml</param-value> </context-param> <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>  <session-config>     <session-timeout>10</session-timeout> </session-config>  <!-- richfaces --> <context-param>     <param-name>org.richfaces.skin</param-name>     <param-value>bluesky</param-value> </context-param> <context-param>     <param-name>org.richfaces.enablecontrolskinning</param-name>     <param-value>false</param-value> </context-param>  <!-- fonts --> <mime-mapping>     <extension>otf</extension>     <mime-type>font/opentype</mime-type> </mime-mapping> <mime-mapping>     <extension>ttf</extension>     <mime-type>application/x-font-ttf</mime-type> </mime-mapping> <mime-mapping>     <extension>woff</extension>     <mime-type>application/x-font-woff</mime-type> </mime-mapping> <mime-mapping>     <extension>eot</extension>     <mime-type>application/vnd.ms-fontobject</mime-type> </mime-mapping> 

can me, organize project using sub folders under src/main/webapp source folder.

thanks in advanced!


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -