从JBOSS 7.1.1版本部署war文件时抛出的未知错误

时间:2014-06-07 15:03:46

标签: jboss

无法了解此错误是如何产生的。没有理由没有从脑中发现脑部

  

17:52:58,395 INFO [org.jboss.modules] JBoss Modules版本1.1.1.GA   17:52:58,604 INFO [org.jboss.msc] JBoss MSC版本1.0.2.GA   17:52:58,665 INFO [org.jboss.as] JBAS015899:JBoss AS 7.1.1.Final   "勃朗特"开始17:52:59,554 INFO [org.xnio] XNIO版本3.0.3.GA   17:52:59,554 INFO [org.jboss.as.server] JBAS015888:创建http   使用套接字绑定的管理服务(management-http)17:52:59,563   INFO [org.xnio.nio] XNIO NIO实现版本3.0.3.GA   17:52:59,570 INFO [org.jboss.remoting] JBoss Remoting版本   3.2.3.GA 17:52:59,590 INFO [org.jboss.as.logging] JBAS011502:删除引导程序日志处理程序17:52:59,593 INFO   [org.jboss.as.configadmin](ServerService线程池 - 26)   JBAS016200:激活ConfigAdmin子系统17:52:59,617 INFO   [org.jboss.as.naming](ServerService线程池 - 38)JBAS011800:   激活命名子系统17:52:59,624 INFO [org.jboss.as.osgi]   (ServerService线程池 - 39)JBAS011940:激活OSGi   子系统17:52:59,633 INFO [org.jboss.as.clustering.infinispan]   (ServerService线程池 - 31)JBAS010280:激活Infinispan   子系统。 17:52:59,655 INFO [org.jboss.as.security](ServerService   线程池 - 44)JBAS013101:激活安全子系统   17:52:59,667 INFO [org.jboss.as.security](MSC服务主题1-6)   JBAS013100:Current PicketBox version = 4.0.7.Final 17:52:59,719 INFO   [org.jboss.as.naming](MSC服务主题1-5)JBAS011802:正在启动   命名服务17:52:59,722 INFO [org.jboss.as.mail.extension](MSC   服务线程1-5)JBAS015400:绑定邮件会话   [java:jboss / mail / Default] 17:52:59,725 INFO   [org.jboss.as.webservices](ServerService线程池 - 48)   JBAS015537:激活WebServices Extension 17:52:59,782 INFO   [org.jboss.as.connector](MSC服务主题1-8)JBAS010408:正在启动   JCA子系统(JBoss IronJacamar 1.0.9.Final)17:52:59,812 INFO   [org.jboss.as.connector.subsystems.datasources](ServerService Thread   池 - 27)JBAS010403:部署符合JDBC的驱动程序类   org.h2.Driver(版本1.3)17:52:59,861信息   [org.jboss.as.connector.subsystems.datasources](ServerService Thread   池 - 27)JBAS010404:部署不符合JDBC的驱动程序类   com.mysql.jdbc.Driver(版本5.1)17:52:59,927信息   [org.jboss.ws.common.management.AbstractServerConfig](MSC服务   线程1-5)JBoss Web服务 - 堆栈CXF Server 4.0.2.GA   17:53:00,363 INFO [org.jboss.as.server.deployment.scanner](MSC   服务线程1-3)JBAS015012:已启动FileSystemDeploymentService   对于目录D:\ jboss-as-7.1.1.Final \ standalone \ deploymentments   17:53:00,363 INFO [org.jboss.as.server.deployment.scanner](MSC   服务线程1-5)JBAS015012:已启动FileSystemDeploymentService   目录   d:\工作区\ eclipse.metadata.plugins \ org.jboss.ide.eclipse.as.core \ JBoss_7.1_Runtime_Server1402151223281 \部署   17:53:00,393 INFO [org.jboss.as.remoting](MSC服务主题1-8)   JBAS017100:在localhost / 127.0.0 .1:4447 17:53:00,393上收听信息   [org.jboss.as.remoting](MSC服务主题1-1)JBAS017100:听力   on / 127 .0。 0.1:10101 17:53:00,413 INFO   [org.apache.coyote.http11.Http11Protocol](MSC服务主题1-5)   在http-loca lhost-127上启动Coyote HTTP / 1.1。 0.0.1-7070   17:53:00,525 INFO [org.jboss.as.connector.subsystems.datasources]   (MSC服务线程1-4)JBAS010400:绑定数据源[java:/ MySqlDS]   17:53:00,525 INFO [org.jboss.as.connector.subsystems.datasources]   (MSC服务线程1-1)JBAS010400:绑定数据源   [java:jboss / datasources / ExampleDS] 17:53:00,554 INFO [org.jboss.as]   (控制器启动线程)JBAS015951:管理控制台监听http:   // 127 .0.0.1:10102 17:53:00,554 INFO [org.jboss.as](控制器   引导线程)​​JBAS015874:JBoss AS 7.1.1.Final" Brontes"开始了   2443ms - 215项服务中的139项(74项服务是被动的或   按需)17:53:15,376 INFO [org.jboss.as.server.deployment.scanner]   (DeploymentScanner-threads - 1)JBAS015003:找到了HelloRest.war   部署目录。要触发部署,请创建一个名为的文件   HelloRest.war.dodeploy 17:53:15,412 INFO   [org.jboss.as.server.deployment](MSC服务主题1-3)JBAS015876:   开始部署" HelloRest.war" 17:53:16,843 INFO   [org.jboss.weld.deployer](MSC服务主题1-4)JBAS016002:   处理焊接部署HelloRest.war 17:53:16,853错误   [org.jboss.msc.service.fail](MSC服务主题1-4)MSC00001:失败   启动服务jboss.deployment.unit。" HelloRest.war" .POST_MODULE:   服务中的org.jboss.msc.service.StartException   jboss.deployment.unit。" HelloRest.war" .POST_MODULE:处理失败   阶段POST_MODULE部署" HelloRest.war"在   org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119)   [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at   org.jboss.msc.service.ServiceControllerImpl $ StartTask.startService(ServiceControllerImpl.java:1811)   [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at   org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl.java:1746)   [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at   java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)   [rt.jar:1.7.0_51] at   java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)   [rt.jar:1.7.0_51] at java.lang.Thread.run(Unknown Source)   [rt.jar:1.7.0_51]引起:   java.lang.StringIndexOutOfBoundsException:字符串索引超出范围:   0在java.lang.String.charAt(未知来源)[rt.jar:1.7.0_51] at   org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:460)     在   org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)     在   org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)     在   org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)     在   org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.checkDeclaredApplicationClassAsServlet(JaxrsScanningProcessor.java:288)     在   org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scanWebDeployment(JaxrsScanningProcessor.java:155)     在   org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:104)     在   org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113)   [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] ... 5更多

     

17:53:16,868 INFO [org.jboss.as.server](DeploymentScanner-threads -   2)JBAS015870:部署部署" HelloRest.war"被退了回去   失败消息{" JBAS014671:失败的服务" =>   {" jboss.deployment.unit \" HelloRest.war \" .POST_MODULE" =>   "服务中的org.jboss.msc.service.StartException   jboss.deployment.unit。\" HelloRest.war \" .POST_MODULE:处理失败   阶段POST_MODULE部署\" HelloRest.war \""}} 17:53:16,870 INFO   [org.jboss.as.controller](DeploymentScanner-threads - 2)JBAS014774:   服务状态报告JBAS014777:无法启动的服务:
  service jboss.deployment.unit。" HelloRest.war" .POST_MODULE:   服务中的org.jboss.msc.service.StartException   jboss.deployment.unit。" HelloRest.war" .POST_MODULE:处理失败   阶段POST_MODULE部署" HelloRest.war"

     

17:53:16,879错误[org.jboss.as.server.deployment.scanner]   (DeploymentScanner-threads - 1){" JBAS014653:复合操作   失败并被退回。失败的步骤:" => {"操作步骤-2"   => {" JBAS014671:服务失败" => {" jboss.deployment.unit \" HelloRest.war \" .POST_MODULE" =>   "服务中的org.jboss.msc.service.StartException   jboss.deployment.unit。\" HelloRest.war \" .POST_MODULE:处理失败   阶段POST_MODULE部署\" HelloRest.war \""}}}} 17:53:16,914   INFO [org.jboss.as.server.deployment](MSC服务主题1-7)   JBAS015877:在40ms停止部署HelloRest.war

PERSON JAVA CLASS:

package rest.hello;

public class Person implements Speakable {

@Override
public String getName() {
    return "My Name";
}

}

SPEACKABLE界面:

package rest.hello;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/person")
@Produces(MediaType.TEXT_PLAIN)
@Consumes(MediaType.TEXT_PLAIN)
public interface Speakable {

@GET
@Path("/name")
public String getName();

}

POM文件

<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>org.jboss.tools</groupId>
<artifactId>hellorest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>hellorest</name>
<description>hellorest</description>
<build>
    <resources>
        <resource>
            <directory>${basedir}/src/main/java</directory>
            <excludes>
                <exclude>**/*.java</exclude>
            </excludes>
        </resource>
    </resources>
    <plugins>
        <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.3</version>
            <configuration>
                <warSourceDirectory>${basedir}/WebContent</warSourceDirectory>
                <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.0</version>
            <configuration>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>
        </plugin>
    </plugins>
</build>

<repositories>
    <repository>
        <id>maven-central</id>
        <url>http://repo1.maven.org/maven2</url>
    </repository>
    <repository>
        <id>maven2-repository.java.net</id>
        <name>Java.net Repository for Maven</name>
        <url>http://download.java.net/maven/2/</url>
        <layout>default</layout>
    </repository>
    <repository>
        <id>java.net2</id>
        <name>Java.net</name>
        <url>https://oss.sonatype.org/content/repositories/java.net2</url>
    </repository>
</repositories>

<dependencies>

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

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>ejb3-persistence</artifactId>
        <version>1.0.1.GA</version>
    </dependency>

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-annotations</artifactId>
        <version>3.3.1.GA</version>
    </dependency>

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate</artifactId>
        <version>3.2.6.ga</version>
    </dependency>

    <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.16</version>
    </dependency>

    <dependency>
        <groupId>org.jboss.resteasy</groupId>
        <artifactId>resteasy-jaxrs</artifactId>
        <version>2.2.1.GA</version>
    </dependency>

</dependencies>

1 个答案:

答案 0 :(得分:0)

在你的日食中,点击项目&gt;属性&gt;项目方面

取消选中jax-rs选项,然后重试