jboss-as-7.1.1.final.zip里面配置Oracle10g连接池问题
数据连接配置求解:我在jboss-home(D:\jboss-as-7.1.1.Final\modules\com\)目录下创建Oracle文件夹,在里面有main目录,在这里面我放有classes12.jre驱动,另外在此文件夹里面新建一个module.xml文件,内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.oracle.classes12.jar">
<resources>
<resource-root path="classes12.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
然后找到standalone.xml文件(此文件目录为:D:\jboss-as-7.1.1.Final\standalone\configuration)在里面找到<datasources>标签,在里面添加如下文件:
<datasource jndi-name="java:jboss/datasources/oracleDS" pool-name="oracleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
<driver>OracleDriver</driver>
<security>
<user-name>guanli</user-name>
<password>june</password>
</security>
</datasource>
另外在此标签里找到<drivers>标签,添加如下内容:
<driver name="OracleDriver" module="com.oracle.classes12.jar">
<xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
</driver>
一切配置完毕,启动jboss服务器,会在main目录下生成classes12.jar.index文件,内容如下:
oracle/net/TNSAddress
oracle/net/resolver
oracle/jdbc/oracore
oracle/jdbc/xa
oracle/jdbc/internal
oracle
oracle/jdbc/oci
oracle/jpub/runtime
oracle/net/nl
oracle/net/jndi
oracle/sql/converter_xcharset
javax
oracle/net/ano
oracle/security/o3logon
oracle/net/nt
oracle/net/ns
javax/sql
oracle/jdbc/util
oracle/jdbc/pool
oracle/jpub
oracle/jdbc/driver
oracle/jdbc
oracle/jdbc/connector
oracle/net/aso
oracle/sql/converter
oracle/core/lvf
oracle/net/nl/mesg
META-INF
oracle/core
oracle/security
oracle/sql
oracle/jdbc/rowset
oracle/jdbc/xa/client
oracle/net
oracle/core/lmx
oracle/net/mesg
问题来了,在控制台显示:
14:13:08,812 信息 [org.jboss.modules] JBoss Modules version 1.1.1.GA
14:13:08,906 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
14:13:08,953 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
14:13:09,468 INFO [org.xnio] XNIO Version 3.0.3.GA
14:13:09,468 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
14:13:09,484 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
14:13:09,484 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
14:13:09,546 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
14:13:09,562 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
14:13:09,578 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
14:13:09,578 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
14:13:09,578 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
14:13:09,578 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
14:13:09,578 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
14:13:09,593 INFO [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final
14:13:09,625 INFO [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
14:13:09,656 INFO [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
14:13:09,656 INFO [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS015400: Bound mail session [java:jboss/mail/Default]
14:13:09,750 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
14:13:09,765 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
14:13:09,828 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
14:13:10,046 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory D:\jboss-as-7.1.1.Final\standalone\deployments
14:13:10,046 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:9999
14:13:10,046 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on localhost/127.0.0.1:4447
14:13:10,203 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
14:13:10,421 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.jdbc-driver.OracleDriver (missing) dependents: [service jboss.data-source.java:jboss/datasources/oracleDS]
14:13:10,500 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
14:13:10,500 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 1860ms - Started 134 of 212 services (2 services failed or missing dependencies, 74 services are passive or on-demand)
这是为什么?各位易做图们,求解啊,急用,分不够再加啊,谢谢大家了! --------------------编程问答-------------------- 此问题本人已解决 --------------------编程问答-------------------- 除 --------------------编程问答-------------------- 你好:
我遇到相同问题了,请问你是怎么解决的。可以留言于我的qq吗?469482866
谢谢! --------------------编程问答-------------------- 是少东西了吧? --------------------编程问答-------------------- 2 services failed or missing dependencies --------------------编程问答-------------------- 你好像还没有告诉你的成功过程,我目前也是遇到类似的问题。
补充:Java , J2ME