Sunday, 15 June 2014

xml - JSF 2.1 + Tomcat 8 - error in deploying -



xml - JSF 2.1 + Tomcat 8 - error in deploying -

i have problem in deploying simple java ee app tomcat. few exceptions below:

... 09-nov-2014 14:06:36.541 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar deploying web application archive c:\apache-tomcat-8.0.14\webapps\app.war 09-nov-2014 14:06:37.197 severe [localhost-startstop-1] org.apache.catalina.core.containerbase.addchildinternal containerbase.addchild: start: org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[/app]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:724) @ org.apache.catalina.core.containerbase.addchild(containerbase.java:700) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:714) @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:919) @ org.apache.catalina.startup.hostconfig$deploywar.run(hostconfig.java:1703) @ java.util.concurrent.executors$runnableadapter.call(unknown source) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) caused by: java.lang.classformaterror: absent code attribute in method not native or abstract in class file javax/faces/webapp/facesservlet @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclass(unknown source) @ java.security.secureclassloader.defineclass(unknown source) @ org.apache.catalina.loader.webappclassloaderbase.findclassinternal(webappclassloaderbase.java:2450) @ org.apache.catalina.loader.webappclassloaderbase.findclass(webappclassloaderbase.java:852) @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1262) @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1145) @ com.sun.faces.config.facesinitializer.<clinit>(facesinitializer.java:106) @ java.lang.class.forname0(native method) @ java.lang.class.forname(unknown source) @ org.apache.catalina.startup.webappserviceloader.loadservices(webappserviceloader.java:181) @ org.apache.catalina.startup.webappserviceloader.load(webappserviceloader.java:151) @ org.apache.catalina.startup.contextconfig.processservletcontainerinitializers(contextconfig.java:1599) @ org.apache.catalina.startup.contextconfig.webconfig(contextconfig.java:1128) @ org.apache.catalina.startup.contextconfig.configurestart(contextconfig.java:771) @ org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:305) @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:117) @ org.apache.catalina.util.lifecyclebase.firelifecycleevent(lifecyclebase.java:90) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5120) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 10 more 09-nov-2014 14:06:37.197 severe [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar error deploying web application archive c:\apache-tomcat-8.0.14\webapps\app.war java.lang.illegalstateexception: containerbase.addchild: start: org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[/app]] @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:727) @ org.apache.catalina.core.containerbase.addchild(containerbase.java:700) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:714) @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:919) @ org.apache.catalina.startup.hostconfig$deploywar.run(hostconfig.java:1703) @ java.util.concurrent.executors$runnableadapter.call(unknown source) @ java.util.concurrent.futuretask.run(unknown source) @ java.util.concurrent.threadpoolexecutor.runworker(unknown source) @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source) @ java.lang.thread.run(unknown source) 09-nov-2014 14:06:37.228 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploywar deployment of web application archive c:\apache-tomcat-8.0.14\webapps\app.war has finished in 656 ms 09-nov-2014 14:06:37.228 info [localhost-startstop-1] org.apache.catalina.startup.hostconfig.deploydirectory deploying web application directory c:\apache-tomcat-8.0.14\webapps\docs ...

here web.xml

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1"> <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> </web-app>

my faces-config.xml file empty.

what wrong project? utilize netbeans 8.0 , apache-maven-3.2.3.

here pom.xml

<groupid>com.karol</groupid> <artifactid>jsf2tut</artifactid> <version>1.0</version> <packaging>war</packaging> <name>jsf2tut</name> <properties> <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties> <dependencies> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-api</artifactid> <version>2.1.29</version> </dependency> <dependency> <groupid>com.sun.faces</groupid> <artifactid>jsf-impl</artifactid> <version>2.1.29</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>jstl</artifactid> <version>1.2</version> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> </dependency> <dependency> <groupid>javax.servlet.jsp</groupid> <artifactid>jsp-api</artifactid> <version>2.1</version> </dependency> <dependency> <groupid>javax</groupid> <artifactid>javaee-web-api</artifactid> <version>6.0</version> <type>jar</type> </dependency> </dependencies> <build> <finalname>app</finalname> <plugins> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build>

xml maven jsf tomcat netbeans

No comments:

Post a Comment