Ошибка с Jboss при развертывании веб-приложения jsp / servlet Ошибка com.sun.faces.config.ConfigureListener - PullRequest
2 голосов
/ 11 мая 2011

Я работаю над JSP / Servlets.Веб-приложение должно быть развернуто на Jboss 6.

Я использую Java 1.6, Eclipse и Maven2.Я нигде не ссылаюсь на JSF в моем коде.

В моем проекте нигде не задействован JSF, но при попытке развернуть WAR-приложение для веб-приложения появляется сообщение об ошибке:

21: 55: 44,448 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath = / UltimateSMS-1 21: 55: 44,493 ОШИБКА [org.apache.catalina.core.ContainerBase. [Jboss.web]. [localhost]. [/ UltimateSMS-1]] Ошибка при настройке прослушивателя приложения класса com.sun.faces.config.ConfigureListener:
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener

Вот мой 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>

Вот полный след стека:

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
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217) [:1.6.0_20]
    at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_20]
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205) [:1.6.0_20]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321) [:1.6.0_20]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [:1.6.0_20]
    at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:278) [:6.0.0.Final]
    at org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:264) [:6.0.0.Final]
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3319) [:6.0.0.Final]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3828) [:6.0.0.Final]
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]
    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]
    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]
    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]
    at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_20]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_20]
    at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_20]
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.GA]
    at $Proxy41.start(Unknown Source)   at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.GA]
    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA]
    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA]
    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]
    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]
    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
    at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.2.2]
    at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]
    at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]
    at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]
    at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]
    at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]
    at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]
    at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]
    at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]
    at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]
    at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]
    at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [:1.6.0_20]
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [:1.6.0_20]
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [:1.6.0_20]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) [:1.6.0_20]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) [:1.6.0_20]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20]
    at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]

DEPLOYMENTS IN ERROR:
  Deployment "jboss.web.deployment:war=/UltimateSMS-1" is in error due to the 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

Почему я получаю эту ошибку от JBoss?Это POM-зависимость, вызывающая эту ошибку?

Ответы [ 2 ]

0 голосов
/ 18 января 2012

У меня возникла такая же проблема. Чтобы решить эту проблему, я заменил в pom.xml:

    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-api</artifactId>
         <version>6.0</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

по:

    <dependency>
        <groupId>javax</groupId>
        <artifactId>javaee-api</artifactId>
        <version>6.0</version>
        <scope>provided</scope>
    </dependency>

Согласно maven doc вы должны установить зависимость для API сервлета и связанных API Java EE в область действия provided, поскольку веб-контейнер предоставляет эти классы.

provided очень похоже на compile, но указывает, что вы ожидаете, что JDK или контейнер предоставят зависимость во время выполнения. Например, при создании веб-приложения для Java Enterprise Edition вы должны установить зависимость от API-интерфейса сервлета и связанных API-интерфейсов Java EE, так как веб-контейнер предоставляет эти классы. Эта область доступна только для пути к классам компиляции и тестирования и не является транзитивной.

0 голосов
/ 11 мая 2011

Файл URL: /home/jamshed/jboss-6.0.0.Final/server/default/tmp/vfs/automount32136eeb452eb1b9/UltimateSMS-1.war-9f7ce8e7ceadff1/

IЯ полагаю, что это путь к рабочему пространству для создания файла войны.Возможно, можно заглянуть туда и посмотреть, сможете ли вы найти саму WAR, которую она пытается развернуть?

Что я имею в виду, посмотреть, можете ли вы построить или получить свою войнуфайл и попробуйте вручную развернуть его в JBoss.Если это не сработает, значит, в вашем classpath отсутствует что-то для JBoss, если это сработает, чего-то не хватает в Maven или в вашем pom.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...