java - Error with Jboss while deploying a jsp/servlet web app "com.sun.faces.config.ConfigureListener" Error -
i working on jsp/servlets. web app deployed on jboss 6.
i using java 1.6, eclipse , maven2. not refer jsf anywhere in code.
my project doesnot have jsf involved anywhere, when try deploy webapp war error says :
21:55:44,448 info [org.jboss.web.tomcat.service.deployers.tomcatdeployment] deploy, ctxpath=/ultimatesms-1 21:55:44,493 error [org.apache.catalina.core.containerbase.[jboss.web].[localhost].[/ultimatesms-1]] error configuring application listener of class com.sun.faces.config.configurelistener:
java.lang.classnotfoundexception: com.sun.faces.config.configurelistener
here pom , web.xml
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>ultimatesms</groupid> <artifactid>ultimatesms</artifactid> <version>1</version> <packaging>war</packaging> <name>ultimatesms</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> </properties> <build> <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> </configuration> </plugin> <plugin> <artifactid>maven-compiler-plugin</artifactid> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <artifactid>maven-war-plugin</artifactid> <version>2.0</version> </plugin> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>jboss-maven-plugin</artifactid> <version>1.5.0</version> <configuration> <!-- <jbosshome>/opt/jboss6/server/default/deploy</jbosshome> --> <jbosshome>/home/jamshed/jboss-6.0.0.final/</jbosshome> <servername>default</servername> <filename>target/ultimatesms.war</filename> <path>/ultimatesms</path> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupid>org.testng</groupid> <artifactid>testng</artifactid> <version>5.14.9</version> </dependency> <dependency> <groupid>postgresql</groupid> <artifactid>postgresql</artifactid> <version>9.0-801.jdbc4</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>org.codehaus.mojo.hibernate3</groupid> <artifactid>maven-hibernate3</artifactid> <version>2.2</version> <type>pom</type> <scope>compile</scope> </dependency> <dependency> <groupid>commons-fileupload</groupid> <artifactid>commons-fileupload</artifactid> <version>1.2.1</version> </dependency> <dependency> <groupid>org.apache.commons</groupid> <artifactid>commons-io</artifactid> <version>1.3.2</version> </dependency> <dependency> <groupid>net.sf.opencsv</groupid> <artifactid>opencsv</artifactid> <version>2.0</version> </dependency> <dependency> <groupid>jboss</groupid> <artifactid>jboss-j2ee</artifactid> <version>4.0.2</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>org.hibernate</groupid> <artifactid>hibernate</artifactid> <version>3.0</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>log4j</groupid> <artifactid>log4j</artifactid> <version>1.2.12</version> </dependency> <dependency> <groupid>javax</groupid> <!-- <artifactid>javaee-web-api</artifactid> --> <artifactid>javaee-api</artifactid> <version>6.0</version> <!-- added below --> <type>jar</type> <scope>compile</scope> <!-- end --> </dependency> <dependency> <groupid>trove</groupid> <artifactid>trove</artifactid> <version>1.1-beta-5</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>javax.servlet</groupid> <artifactid>servlet-api</artifactid> <version>2.5</version> <type>jar</type> <scope>compile</scope> </dependency> </dependencies> </project>
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" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <servlet> <servlet-name>sendmessage</servlet-name> <servlet-class>com.java.misc.sendmessage</servlet-class> <load-on-startup>1</load-on-startup> <enabled>true</enabled> </servlet> <servlet> <display-name>addcontact</display-name> <servlet-name>addcontact</servlet-name> <servlet-class>com.java.misc.addcontact</servlet-class> </servlet> <servlet> <display-name>addcoverage</display-name> <servlet-name>addcoverage</servlet-name> <servlet-class>com.java.misc.addcoverage</servlet-class> </servlet> <servlet> <display-name>addgroup</display-name> <servlet-name>addgroup</servlet-name> <servlet-class>com.java.misc.addgroup</servlet-class> </servlet> <servlet> <display-name>addgroup</display-name> <servlet-name>addgroup</servlet-name> <servlet-class>com.java.misc.addgroup</servlet-class> </servlet> <servlet> <display-name>addoperator</display-name> <servlet-name>addoperator</servlet-name> <servlet-class>com.java.misc.addoperator</servlet-class> </servlet> <servlet> <display-name>addstartnumber</display-name> <servlet-name>addstartnumber</servlet-name> <servlet-class>com.java.misc.addstartnumber</servlet-class> </servlet> <servlet> <display-name>adduser</display-name> <servlet-name>adduser</servlet-name> <servlet-class>com.java.misc.adduser</servlet-class> </servlet> <servlet> <display-name>adminsimplereport</display-name> <servlet-name>adminsimplereport</servlet-name> <servlet-class>com.java.misc.adminsimplereport</servlet-class> </servlet> <servlet> <display-name>displayaddressbook</display-name> <servlet-name>displayaddressbook</servlet-name> <servlet-class>com.java.misc.displayaddressbook</servlet-class> </servlet> <servlet> <display-name>download</display-name> <servlet-name>download</servlet-name> <servlet-class>com.java.misc.download</servlet-class> </servlet> <servlet> <display-name>downloadfile</display-name> <servlet-name>downloadfile</servlet-name> <servlet-class>com.java.misc.downloadfile</servlet-class> </servlet> <servlet> <display-name>editprefix</display-name> <servlet-name>editprefix</servlet-name> <servlet-class>com.java.misc.editprefix</servlet-class> </servlet> <servlet> <display-name>etoptlst</display-name> <servlet-name>etoptlst</servlet-name> <servlet-class>com.java.misc.etoptlst</servlet-class> </servlet> <servlet> <display-name>feedback</display-name> <servlet-name>feedback</servlet-name> <servlet-class>com.java.misc.feedback</servlet-class> </servlet> <servlet> <display-name>getcredit</display-name> <servlet-name>getcredit</servlet-name> <servlet-class>com.java.misc.getcredit</servlet-class> </servlet> <servlet> <display-name>getdate</display-name> <servlet-name>getdate</servlet-name> <servlet-class>com.java.misc.getdate</servlet-class> </servlet> <servlet> <display-name>getfaildate</display-name> <servlet-name>getfaildate</servlet-name> <servlet-class>com.java.misc.getfaildate</servlet-class> </servlet> <servlet> <display-name>login</display-name> <servlet-name>login</servlet-name> <servlet-class>com.java.misc.login</servlet-class> </servlet> <servlet> <display-name>numeric</display-name> <servlet-name>numeric</servlet-name> <servlet-class>com.java.misc.numeric</servlet-class> </servlet> <servlet> <display-name>operatormonth</display-name> <servlet-name>operatormonth</servlet-name> <servlet-class>com.java.misc.operatormonth</servlet-class> </servlet> <servlet> <display-name>processuser</display-name> <servlet-name>processuser</servlet-name> <servlet-class>com.java.misc.processuser</servlet-class> </servlet> <servlet> <display-name>sendmessagefromconact</display-name> <servlet-name>sendmessagefromconact</servlet-name> <servlet-class>com.java.misc.sendmessagefromconact</servlet-class> </servlet> <servlet> <display-name>sendsmsinfuture</display-name> <servlet-name>sendsmsinfuture</servlet-name> <servlet-class>com.java.misc.sendsmsinfuture</servlet-class> </servlet> <servlet> <display-name>smssender</display-name> <servlet-name>smssender</servlet-name> <servlet-class>com.java.misc.smssender</servlet-class> </servlet> <servlet-mapping> <servlet-name>sendmessage</servlet-name> <url-pattern>/sendmessage</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>addcontact</servlet-name> <url-pattern>/addcontact</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>addcoverage</servlet-name> <url-pattern>/addcoverage</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>addgroup</servlet-name> <url-pattern>/addgroup</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>addgroup</servlet-name> <url-pattern>/addgroup</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>addoperator</servlet-name> <url-pattern>/addoperator</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>addstartnumber</servlet-name> <url-pattern>/addstartnumber</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>adduser</servlet-name> <url-pattern>/adduser</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>adminsimplereport</servlet-name> <url-pattern>/adminsimplereport</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>displayaddressbook</servlet-name> <url-pattern>/displayaddressbook</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>download</servlet-name> <url-pattern>/download</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>downloadfile</servlet-name> <url-pattern>/downloadfile</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>editprefix</servlet-name> <url-pattern>/editprefix</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>etoptlst</servlet-name> <url-pattern>/etoptlst</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>feedback</servlet-name> <url-pattern>/feedback</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>getcredit</servlet-name> <url-pattern>/getcredit</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>getdate</servlet-name> <url-pattern>/getdate</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>getfaildate</servlet-name> <url-pattern>/getfaildate</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>login</servlet-name> <url-pattern>/login</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>numeric</servlet-name> <url-pattern>/numeric</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>operatormonth</servlet-name> <url-pattern>/operatormonth</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>processuser</servlet-name> <url-pattern>/processuser</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>sendmessagefromconact</servlet-name> <url-pattern>/sendmessagefromconact</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>sendsmsinfuture</servlet-name> <url-pattern>/sendsmsinfuture</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>smssender</servlet-name> <url-pattern>/smssender</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>template.jsp</welcome-file> </welcome-file-list> </web-app>
here's complete stack trace:
21:55:44,448 info [org.jboss.web.tomcat.service.deployers.tomcatdeployment] deploy, ctxpath=/ultimatesms-1 21:55:44,493 error [org.apache.catalina.core.containerbase.[jboss.web].[localhost].[/ultimatesms-1]] error configuring application listener of class com.sun.faces.config.configurelistener: java.lang.classnotfoundexception: com.sun.faces.config.configurelistener @ java.net.urlclassloader$1.run(urlclassloader.java:217) [:1.6.0_20] @ java.security.accesscontroller.doprivileged(native method) [:1.6.0_20] @ java.net.urlclassloader.findclass(urlclassloader.java:205) [:1.6.0_20] @ java.lang.classloader.loadclass(classloader.java:321) [:1.6.0_20] @ java.lang.classloader.loadclass(classloader.java:266) [:1.6.0_20] @ org.jboss.web.tomcat.service.tomcatinjectioncontainer.newinstance(tomcatinjectioncontainer.java:278) [:6.0.0.final] @ org.jboss.web.tomcat.service.tomcatinjectioncontainer.newinstance(tomcatinjectioncontainer.java:264) [:6.0.0.final] @ org.apache.catalina.core.standardcontext.contextlistenerstart(standardcontext.java:3319) [:6.0.0.final] @ org.apache.catalina.core.standardcontext.start(standardcontext.java:3828) [:6.0.0.final] @ org.jboss.web.tomcat.service.deployers.tomcatdeployment.performdeployinternal(tomcatdeployment.java:294) [:6.0.0.final] @ org.jboss.web.tomcat.service.deployers.tomcatdeployment.performdeploy(tomcatdeployment.java:146) [:6.0.0.final] @ org.jboss.web.deployers.abstractwardeployment.start(abstractwardeployment.java:477) [:6.0.0.final] @ org.jboss.web.deployers.webmodule.startmodule(webmodule.java:118) [:6.0.0.final] @ org.jboss.web.deployers.webmodule.start(webmodule.java:95) [:6.0.0.final] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) [:1.6.0_20] @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) [:1.6.0_20] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) [:1.6.0_20] @ java.lang.reflect.method.invoke(method.java:616) [:1.6.0_20] @ org.jboss.mx.interceptor.reflecteddispatcher.invoke(reflecteddispatcher.java:157) [:6.0.0.ga] @ org.jboss.mx.server.invocation.dispatch(invocation.java:96) [:6.0.0.ga] @ org.jboss.mx.server.invocation.invoke(invocation.java:88) [:6.0.0.ga] @ org.jboss.mx.server.abstractmbeaninvoker.invoke(abstractmbeaninvoker.java:271) [:6.0.0.ga] @ org.jboss.mx.server.mbeanserverimpl.invoke(mbeanserverimpl.java:670) [:6.0.0.ga] @ org.jboss.system.microcontainer.serviceproxy.invoke(serviceproxy.java:206) [:2.2.0.ga] @ $proxy41.start(unknown source) @ org.jboss.system.microcontainer.startstoplifecycleaction.installaction(startstoplifecycleaction.java:53) [:2.2.0.ga] @ org.jboss.system.microcontainer.startstoplifecycleaction.installaction(startstoplifecycleaction.java:41) [:2.2.0.ga] @ org.jboss.dependency.plugins.action.simplecontrollercontextaction.simpleinstallaction(simplecontrollercontextaction.java:62) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.action.accesscontrollercontextaction.install(accesscontrollercontextaction.java:71) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontrollercontextactions.install(abstractcontrollercontextactions.java:51) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontrollercontext.install(abstractcontrollercontext.java:379) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.system.microcontainer.servicecontrollercontext.install(servicecontrollercontext.java:301) [:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:2044) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.incrementstate(abstractcontroller.java:1083) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.executeorincrementstatedirectly(abstractcontroller.java:1322) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1246) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1139) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:894) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:641) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.deployers.vfs.deployer.kernel.beanmetadatadeployer.deploy(beanmetadatadeployer.java:182) [:2.2.0.ga] @ org.jboss.deployers.vfs.deployer.kernel.beanmetadatadeployer.deploy(beanmetadatadeployer.java:58) [:2.2.0.ga] @ org.jboss.deployers.spi.deployer.helpers.abstractsimplerealdeployer.internaldeploy(abstractsimplerealdeployer.java:62) [:2.2.0.ga] @ org.jboss.deployers.spi.deployer.helpers.abstractrealdeployer.deploy(abstractrealdeployer.java:55) [:2.2.0.ga] @ org.jboss.deployers.plugins.deployers.deployerwrapper.deploy(deployerwrapper.java:179) [:2.2.0.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.dodeploy(deployersimpl.java:1832) [:2.2.0.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.doinstallparentfirst(deployersimpl.java:1550) [:2.2.0.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.doinstallparentfirst(deployersimpl.java:1571) [:2.2.0.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.install(deployersimpl.java:1491) [:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontrollercontext.install(abstractcontrollercontext.java:379) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.install(abstractcontroller.java:2044) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.incrementstate(abstractcontroller.java:1083) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.executeorincrementstatedirectly(abstractcontroller.java:1322) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1246) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.resolvecontexts(abstractcontroller.java:1139) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:939) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.dependency.plugins.abstractcontroller.change(abstractcontroller.java:654) [jboss-dependency.jar:2.2.0.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.change(deployersimpl.java:1983) [:2.2.0.ga] @ org.jboss.deployers.plugins.deployers.deployersimpl.process(deployersimpl.java:1076) [:2.2.0.ga] @ org.jboss.deployers.plugins.main.maindeployerimpl.process(maindeployerimpl.java:679) [:2.2.0.ga] @ org.jboss.system.server.profileservice.deployers.maindeployerplugin.process(maindeployerplugin.java:106) [:6.0.0.final] @ org.jboss.profileservice.dependency.profilecontrollercontext$delegatedeployer.process(profilecontrollercontext.java:143) [:0.2.2] @ org.jboss.profileservice.deployment.hotdeploy.hdscanner$hdscanaction.deploy(hdscanner.java:240) [:0.2.2] @ org.jboss.profileservice.deployment.hotdeploy.hdscanner$hdscanaction.complete(hdscanner.java:192) [:0.2.2] @ org.jboss.profileservice.management.twopcactionwrapper.docomplete(twopcactionwrapper.java:57) [:0.2.2] @ org.jboss.profileservice.management.actions.abstracttwophasemodificationaction.complete(abstracttwophasemodificationaction.java:74) [:0.2.2] @ org.jboss.profileservice.management.actions.abstracttwophasemodificationaction.prepare(abstracttwophasemodificationaction.java:95) [:0.2.2] @ org.jboss.profileservice.management.modificationsession.prepare(modificationsession.java:87) [:0.2.2] @ org.jboss.profileservice.management.abstractactioncontroller.internalperfom(abstractactioncontroller.java:234) [:0.2.2] @ org.jboss.profileservice.management.abstractactioncontroller.performwrite(abstractactioncontroller.java:213) [:0.2.2] @ org.jboss.profileservice.management.abstractactioncontroller.perform(abstractactioncontroller.java:150) [:0.2.2] @ org.jboss.profileservice.management.abstractactioncontroller.perform(abstractactioncontroller.java:135) [:0.2.2] @ org.jboss.profileservice.deployment.hotdeploy.hdscanner.scan(hdscanner.java:146) [:0.2.2] @ org.jboss.profileservice.deployment.hotdeploy.hdscanner.run(hdscanner.java:90) [:0.2.2] @ java.util.concurrent.executors$runnableadapter.call(executors.java:471) [:1.6.0_20] @ java.util.concurrent.futuretask$sync.innerrunandreset(futuretask.java:351) [:1.6.0_20] @ java.util.concurrent.futuretask.runandreset(futuretask.java:178) [:1.6.0_20] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:165) [:1.6.0_20] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:267) [:1.6.0_20] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) [:1.6.0_20] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) [:1.6.0_20] @ java.lang.thread.run(thread.java:636) [:1.6.0_20] deployments in error: deployment "jboss.web.deployment:war=/ultimatesms-1" in error due following reason(s): org.jboss.deployers.spi.deploymentexception: url file:/home/jamshed/jboss-6.0.0.final/server/default/tmp/vfs/automount32136eeb452eb1b9/ultimatesms-1.war-9f7ce8e7ceadff1/ deployment failed
why error jboss? pom dependency causing error?
url file:/home/jamshed/jboss-6.0.0.final/server/default/tmp/vfs/automount32136eeb452eb1b9/ultimatesms-1.war-9f7ce8e7ceadff1/
i believe path working space building war file. perhaps possible take in there , see if able find war attempting deploy?
what getting @ is, see if can build or obtain war file , try manually deploy jboss. if doesn't work there missing on classpath jboss, if there missing in maven or pom.
Comments
Post a Comment