Java Jboss-4.2.1.GA部署失败(.war文件)

Java Jboss-4.2.1.GA部署失败(.war文件),java,jboss,Java,Jboss,我正在Ubuntu操作系统中开发应用程序,并使用jboss-4.2.1.GA部署.war文件。现在我想在IE10中测试我的应用程序。因此,我在jboss服务器中部署了相同的.war文件,它位于Windows7中。现在,我可以在windows7中运行我的应用程序,我可以看到登录页面,但我无法登录。我不知道到底是什么问题。谁能帮帮我吗 2015-03-09 22:42:06,021 ERROR [org.jboss.deployment.scanner.URLDeploymentSc

我正在Ubuntu操作系统中开发应用程序,并使用jboss-4.2.1.GA部署.war文件。现在我想在IE10中测试我的应用程序。因此,我在jboss服务器中部署了相同的.war文件,它位于Windows7中。现在,我可以在windows7中运行我的应用程序,我可以看到登录页面,但我无法登录。我不知道到底是什么问题。谁能帮帮我吗

        2015-03-09 22:42:06,021 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@262e21ee { url=file:/D:/jboss-4.2.1.GA/server/all/deploy/mysql-ds.xml }
  deployer: org.jboss.deployment.XSLSubDeployer@5c419e74
  status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS
  state: FAILED
  watch: file:/D:/jboss-4.2.1.GA/server/all/deploy/mysql-ds.xml
  altDD: null
  lastDeployed: 1425921117619
  lastModified: 1425921117596
  mbeans:

org.jboss.deployment.DeploymentInfo@22d2d2f7 { url=file:/D:/jboss-4.2.1.GA/server/all/deploy/TagnosysEAR.ear }
  deployer: org.jboss.deployment.EARDeployer@520e7d53
  status: Deployment FAILED reason: URL file:/D:/jboss-4.2.1.GA/server/all/tmp/deploy/tmp1757552006510094191TagnosysEAR.ear-contents/TagnosysWEB-exp.war/ deployment failed
  state: FAILED
  watch: file:/D:/jboss-4.2.1.GA/server/all/deploy/TagnosysEAR.ear
  altDD: null
  lastDeployed: 1425921120795
  lastModified: 1425921118110
  mbeans:

--- MBeans waiting for other MBeans ---
ObjectName: tagnosys.com:service=AlarmCache
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    tagnosys.com:service=Workflow
    jboss.har:service=Hibernate

ObjectName: tagnosys.com:service=Collector
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    tagnosys.com:service=TagLocationCache
    tagnosys.com:service=Workflow
    jboss.har:service=Hibernate

ObjectName: tagnosys.com:service=Listener
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    jboss.har:service=Hibernate
  Depends On Me:
    jboss.jmx:type=adaptor,name=ListenerProxy,protocol=jrmp,service=proxyFactory

ObjectName: jboss.jmx:type=adaptor,name=ListenerProxy,protocol=jrmp,service=proxyFactory
  State: CONFIGURED
  I Depend On:
    jboss:service=invoker,type=jrmp
    tagnosys.com:service=Listener

ObjectName: tagnosys.com:service=PatientFlow
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    tagnosys.com:service=TagLocationCache
    tagnosys.com:service=Workflow
    jboss.har:service=Hibernate

ObjectName: tagnosys.com:service=Resource
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    tagnosys.com:service=TagLocationCache
    tagnosys.com:service=Workflow
    jboss.har:service=Hibernate

ObjectName: tagnosys.com:service=RoomStatus
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    tagnosys.com:service=TagLocationCache
    tagnosys.com:service=Workflow
    jboss.har:service=Hibernate

ObjectName: tagnosys.com:service=TagLocationCache
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    jboss.har:service=Hibernate
  Depends On Me:
    tagnosys.com:service=Collector
    agnos.com:service=PatientFlow
    agnos.com:service=Resource
    agnos.com:service=RoomStatus
    jboss.jmx:type=adaptor,name=TagLocationCacheProxy,protocol=jrmp,service=proxyFactory
    agnos.com:service=Workflow

ObjectName: jboss.jmx:type=adaptor,name=TagLocationCacheProxy,protocol=jrmp,service=proxyFactory
  State: CONFIGURED
  I Depend On:
    jboss:service=invoker,type=jrmp
    agnos.com:service=TagLocationCache

ObjectName: agnos.com:service=Workflow
  State: CONFIGURED
  I Depend On:
    jboss:service=Naming
    agnos.com:service=TagLocationCache
    jboss.har:service=Hibernate
  Depends On Me:
    agnos.com:service=AlarmCache
    agnos.com:service=Collector
    agnos.com:service=PatientFlow
    agnos.com:service=Resource
    agnos.com:service=RoomStatus

ObjectName: jboss.har:service=Hibernate
  State: CONFIGURED
  I Depend On:
    jboss.jca:service=RARDeployer
    jboss.jca:service=DataSourceBinding,name=MySqlDS
  Depends On Me:
    agnos.com:service=AlarmCache
    agnos.com:service=Collector
    agnos.com:service=Listener
    agnos.com:service=PatientFlow
    agnos.com:service=Resource
    agnos.com:service=RoomStatus
    agnos.com:service=TagLocationCache
    agnos.com:service=Workflow

ObjectName: jboss.web.deployment:war=AgnosysWEB.war,id=-621484854
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/D:/jboss-4.2.1.GA/server/all/tmp/deploy/tmp1757552006510094191AgnosysEAR.ear-contents/AgnosysWEB-exp.war/ deployment failed

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=AgnosysWEB.war,id=-621484854
  State: FAILED
  Reason: org.jboss.deployment.DeploymentException: URL file:/D:/jboss-4.2.1.GA/server/all/tmp/deploy/tmp1757552006510094191AgnosysEAR.ear-contents/AgnosysWEB-exp.war/ deployment failed

ObjectName: jboss.jca:service=DataSourceBinding,name=MySqlDS
  State: NOTYETINSTALLED
  Depends On Me:
    jboss.har:service=Hibernate
MySQl DS.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- $Id: mysql-ds.xml 63175 2007-05-21 16:26:06Z rrajesh $ -->
<!--  Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->

<datasources>

  <local-tx-datasource>
    <jndi-name>MySqlDS</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/tagnos</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>root</user-name>
    <password>root</password>
    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
    <!-- should only be used on drivers after 3.22.1 with "ping" support
    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
    -->
    <!-- sql to call when connection is created
    <new-connection-sql>some arbitrary sql</new-connection-sql>
      -->
    <!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
    <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
      -->

    <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml -->
    <metadata>
       <type-mapping>mySQL</type-mapping>
    </metadata>
  </local-tx-datasource>

</datasources>

MySqlDS
jdbc:mysql://localhost:3306/tagnos
com.mysql.jdbc.Driver
根
根
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
mySQL

谢谢。

您似乎没有在Jboss上指定数据库连接MySqlDS。在你的ubuntu中注册一个包含MySqlDS的名字,并将它复制到你的Windows7框中。@alphamikeror谢谢你的回复。我复制了那个文件。但它仍然不工作。部署时是否存在相同的错误?在服务器日志中,您是否看到MySqlDS的任何其他实例?如果数据源未启动和运行,您的应用程序将拒绝启动带有新日志的问题。您是否可以发布文件D:/jboss-4.2.1.GA/server/all/deploy/mysql-ds.xml的内容(如果愿意,请使用星号user/password)