通过jndi配置数据源时启动jboss服务器时出错

通过jndi配置数据源时启动jboss服务器时出错,jboss,Jboss,我正试图通过jboss中的jndi配置数据源 启动服务器时出现以下错误 2013-01-06 00:18:01,078 ERROR [ProfileServiceBootstrap] (Thread-2) Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS F

我正试图通过jboss中的jndi配置数据源

启动服务器时出现以下错误

    2013-01-06 00:18:01,078 ERROR [ProfileServiceBootstrap] (Thread-2) Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

    *** DEPLOYMENTS MISSING DEPLOYERS: Name

    vfs:///D:/downloads/jboss-6.1.0.Final/server/default/deploy/jboss-local-jdbc.rar

    DEPLOYMENTS MISSING DEPENDENCIES:
      Deployment "jboss-switchboard:appName=practice,module=practice" is missing the following dependencies:
        Dependency "java:/DefaultDS" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'java:/DefaultDS' **")
      Deployment "jboss.web.deployment:war=/practice" is missing the following dependencies:
        Dependency "jboss-switchboard:appName=practice,module=practice" (should be in state "Installed", but is actually in state "Create")
      Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the following dependencies:
        Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **")

    DEPLOYMENTS IN ERROR:
      Deployment "java:/DefaultDS" is in error due to the following reason(s): ** NOT FOUND Depends on 'java:/DefaultDS' **
      Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **
      Deployment "vfs:///D:/downloads/jboss-6.1.0.Final/server/default/deploy/oracle-ds.xml" is in error due to the following reason(s): java.lang.IllegalStateException: No ConnectorMetaData found for mdf rarName: jboss-local-jdbc.rar

        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.2.GA]
        at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.2.GA]
        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.1.0.Final]
        at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
        at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.1.0.Final]
        at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0.Final]
        at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]
        at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-6]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_31]

    2013-01-06 00:18:01,156 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-2) Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
    2013-01-06 00:18:01,171 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
    2013-01-06 00:18:01,171 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.1.0.Final "Neo"] Started in 2m:57s:984ms
以下是$JBOSS\u HOME\server\default\deploy目录中的oracle-ds.xml文件

oralce-ds.xml .................................................................................


默认值
jdbc:oracle:thin:@localhost:1521:myDB
oracle.jdbc.driver.OracleDriver
用户名
pwd
5.
20
org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter
Oracle9i
web.xml的内容

    web.xml
    ....................................................
    <resource-ref>
          <description>Oracle DS</description>
          <res-ref-name>jdbc/DefaultDS</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
    </resource-ref>
web.xml
....................................................
甲骨文DS
jdbc/DefaultDS
javax.sql.DataSource
容器
jboss-web.xml的内容

  jboss-web.xml
    ..................................................
    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
        <resource-ref>
            <res-ref-name>jdbc/DefaultDS</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <jndi-name>java:/DefaultDS</jndi-name>
        </resource-ref>
    </jboss-web>


Any help will be appreciated.
jboss-web.xml
..................................................
jdbc/DefaultDS
javax.sql.DataSource
java:/DefaultDS
任何帮助都将不胜感激。

JBoss使用DefaultDS。您必须将“DefaultDS”更改为其他名称

部署中缺少jboss-local-jdbc.rar,请尝试获取它并将其放置在部署文件夹中。

我确实将DEFAULTDS更改为ORACLEDS,但仍然收到相同的错误。此错误日志位于启动服务器的末尾。您能否在启动时提供错误信息。
  jboss-web.xml
    ..................................................
    <?xml version="1.0" encoding="UTF-8"?>
    <jboss-web>
        <resource-ref>
            <res-ref-name>jdbc/DefaultDS</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <jndi-name>java:/DefaultDS</jndi-name>
        </resource-ref>
    </jboss-web>


Any help will be appreciated.