问题描述
数据连接配置求解:我在jboss-home(D:jboss-as-7.1.1.Finalmodulescom)目录下创建Oracle文件夹,在里面有main目录,在这里面我放有classes12.jre驱动,另外在此文件夹里面新建一个module.xml文件,内容如下:<?xmlversion="1.0"encoding="UTF-8"?><modulexmlns="urn:jboss:module:1.0"name="com.oracle.classes12.jar"><resources><resource-rootpath="classes12.jar"/></resources><dependencies><modulename="javax.api"/><modulename="javax.transaction.api"/></dependencies></module>然后找到standalone.xml文件(此文件目录为:D:jboss-as-7.1.1.Finalstandaloneconfiguration)在里面找到<datasources>标签,在里面添加如下文件:<datasourcejndi-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>标签,添加如下内容:<drivername="OracleDriver"module="com.oracle.classes12.jar"><xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class></driver>一切配置完毕,启动jboss服务器,会在main目录下生成classes12.jar.index文件,内容如下:oracle/net/TNSAddressoracle/net/resolveroracle/jdbc/oracoreoracle/jdbc/xaoracle/jdbc/internaloracleoracle/jdbc/ocioracle/jpub/runtimeoracle/net/nloracle/net/jndioracle/sql/converter_xcharsetjavaxoracle/net/anooracle/security/o3logonoracle/net/ntoracle/net/nsjavax/sqloracle/jdbc/utiloracle/jdbc/pooloracle/jpuboracle/jdbc/driveroracle/jdbcoracle/jdbc/connectororacle/net/asooracle/sql/converteroracle/core/lvforacle/net/nl/mesgMETA-INForacle/coreoracle/securityoracle/sqloracle/jdbc/rowsetoracle/jdbc/xa/clientoracle/netoracle/core/lmxoracle/net/mesg问题来了,在控制台显示:14:13:08,812信息[org.jboss.modules]JBossModulesversion1.1.1.GA14:13:08,906INFO[org.jboss.msc]JBossMSCversion1.0.2.GA14:13:08,953INFO[org.jboss.as]JBAS015899:JBossAS7.1.1.Final"Brontes"starting14:13:09,468INFO[org.xnio]XNIOVersion3.0.3.GA14:13:09,468INFO[org.jboss.as.server]JBAS015888:Creatinghttpmanagementserviceusingsocket-binding(management-http)14:13:09,484INFO[org.xnio.nio]XNIONIOImplementationVersion3.0.3.GA14:13:09,484INFO[org.jboss.remoting]JBossRemotingversion3.2.3.GA14:13:09,546INFO[org.jboss.as.logging]JBAS011502:Removingbootstraploghandlers14:13:09,562INFO[org.jboss.as.osgi](ServerServiceThreadPool--39)JBAS011940:ActivatingOSGiSubsystem14:13:09,578INFO[org.jboss.as.clustering.infinispan](ServerServiceThreadPool--31)JBAS010280:ActivatingInfinispansubsystem.14:13:09,578INFO[org.jboss.as.configadmin](ServerServiceThreadPool--26)JBAS016200:ActivatingConfigAdminSubsystem14:13:09,578INFO[org.jboss.as.webservices](ServerServiceThreadPool--48)JBAS015537:ActivatingWebServicesExtension14:13:09,578INFO[org.jboss.as.security](ServerServiceThreadPool--44)JBAS013101:ActivatingSecuritySubsystem14:13:09,578INFO[org.jboss.as.naming](ServerServiceThreadPool--38)JBAS011800:ActivatingNamingSubsystem14:13:09,593INFO[org.jboss.as.security](MSCservicethread1-5)JBAS013100:CurrentPicketBoxversion=4.0.7.Final14:13:09,625INFO[org.jboss.as.connector](MSCservicethread1-2)JBAS010408:StartingJCASubsystem(JBossIronJacamar1.0.9.Final)14:13:09,656INFO[org.jboss.as.naming](MSCservicethread1-5)JBAS011802:StartingNamingService14:13:09,656INFO[org.jboss.as.mail.extension](MSCservicethread1-5)JBAS015400:Boundmailsession[java:jboss/mail/Default]14:13:09,750INFO[org.jboss.as.connector.subsystems.datasources](ServerServiceThreadPool--27)JBAS010403:DeployingJDBC-compliantdriverclassorg.h2.Driver(version1.3)14:13:09,765INFO[org.jboss.ws.common.management.AbstractServerConfig](MSCservicethread1-3)JBossWebServices-StackCXFServer4.0.2.GA14:13:09,828INFO[org.apache.coyote.http11.Http11Protocol](MSCservicethread1-3)StartingCoyoteHTTP/1.1onhttp-localhost-127.0.0.1-808014:13:10,046INFO[org.jboss.as.server.deployment.scanner](MSCservicethread1-5)JBAS015012:StartedFileSystemDeploymentServicefordirectoryD:jboss-as-7.1.1.Finalstandalonedeployments14:13:10,046INFO[org.jboss.as.remoting](MSCservicethread1-8)JBAS017100:Listeningon/127.0.0.1:999914:13:10,046INFO[org.jboss.as.remoting](MSCservicethread1-6)JBAS017100:Listeningonlocalhost/127.0.0.1:444714:13:10,203INFO[org.jboss.as.connector.subsystems.datasources](MSCservicethread1-6)JBAS010400:Bounddatasource[java:jboss/datasources/ExampleDS]14:13:10,421INFO[org.jboss.as.controller](ControllerBootThread)JBAS014774:ServicestatusreportJBAS014775:Newmissing/unsatisfieddependencies:servicejboss.jdbc-driver.OracleDriver(missing)dependents:[servicejboss.data-source.java:jboss/datasources/oracleDS]14:13:10,500INFO[org.jboss.as](ControllerBootThread)JBAS015951:Adminconsolelisteningonhttp://127.0.0.1:999014:13:10,500ERROR[org.jboss.as](ControllerBootThread)JBAS015875:JBossAS7.1.1.Final"Brontes"started(witherrors)in1860ms-Started134of212services(2servicesfailedormissingdependencies,74servicesarepassiveoron-demand)这是为什么?各位大师们,求解啊,急用,分不够再加啊,谢谢大家了!
解决方案
解决方案二:
此问题本人已解决
解决方案三:
解决方案四:
你好:我遇到相同问题了,请问你是怎么解决的。可以留言于我的qq吗?469482866谢谢!
解决方案五:
是少东西了吧?
解决方案六:
2servicesfailedormissingdependencies
解决方案七:
你好像还没有告诉你的成功过程,我目前也是遇到类似的问题。