Jboss 7 com oracle

0 respostas
E

Pessoal,

Estou com a seguinte dificuldade, minha tenho uma aplicação J2EE com EJB3 e JSF, onde usamos o Jboss 7. A aplicação funciona perfeitamente com o SLQServer, mas esta também deve funcionar no Oracle, mas não estou conseguindo configurar o jboss (modules) para funcionar com o driver.

Configurei o modulo do oracle no jboss, criando a pasta JBOSS_HOME\modules\com\oracle\ojdbc14\main e criando os arquivos: module.xml e ojdbc-14.jar

Segue o conteúdo do arquivo modulo.xml:
<?xml version=“1.0” encoding=“UTF-8”?>
<module xmlns=“urn:jboss:module:1.0” name=“com.oracle.ojdbc14”>
<resources>
<resource-root path=“ojdbc-14.jar”/>
</resources>
<dependencies>
<module name=“javax.api”/>
</dependencies>
</module>

No arquivo JBOSS_HOME\standalone\configuration\standalone.xml, segue a configuração do banco:

<datasource jndi-name=java:/datasources/PortalScopeWeb pool-name=psw enabled=true jta=true use-java-context=true use-ccm=true>

<connection-url>

jdbc:oracle:thin:@172.20.24.170:1521:orcl

</connection-url>

<driver>

oracle

</driver>

<security>

<user-name>

scopecnf227

</user-name>

<password>

scopecnf227

</password>

</security>

</datasource>

.

.

.

<driver name=oracle module=com.oracle.ojdbc14>

<xa-datasource-class>

oracle.jdbc.OracleDriver

</xa-datasource-class>

</driver>
No log do eclipse,  mostra o seguinte:

09:38:14,809 ERROR [org.jboss.as] (MSC service thread 1-3) JBoss AS 7.0.1.Final "Zap" started (with errors) in 20540ms - Started 976 of 1160 services (71 services failed or missing dependencies, 113 services are passive or on-demand)

09:38:15,010 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "PortalScopeWebEAR.ear" was rolled back with failure message Operation handler failed to complete

09:38:15,068 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/PortalScopeWeb]] (MSC service thread 1-1) Closing Spring root WebApplicationContext

09:38:15,068 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-1) Closing Root WebApplicationContext: startup date [Tue Nov 22 09:38:06 GMT-03:00 2011]; root of context hierarchy

09:38:15,069 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-1) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@726ef8: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,loggerListener,securityContextPersistenceFilter,org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0,org.springframework.security.access.vote.AffirmativeBased#0,org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor#0,org.springframework.security.methodSecurityMetadataSourceAdvisor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.security.filterChains,org.springframework.security.filterChainProxy,org.springframework.security.web.PortMapperImpl#0,org.springframework.security.authentication.ProviderManager#0,org.springframework.security.web.context.HttpSessionSecurityContextRepository#0,org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler#0,org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler#1,org.springframework.security.access.vote.AffirmativeBased#1,org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0,org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator#0,org.springframework.security.authentication.AnonymousAuthenticationProvider#0,org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0,org.springframework.security.userDetailsServiceFactory,org.springframework.security.web.SecurityFilterChain#0,org.springframework.security.provisioning.InMemoryUserDetailsManager#0,org.springframework.security.authentication.dao.DaoAuthenticationProvider#0,org.springframework.security.authentication.DefaultAuthenticationEventPublisher#0,org.springframework.security.authenticationManager]; root of factory hierarchy

09:38:15,356 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "Operation handler failed to complete"}}
Criado 22 de novembro de 2011
Respostas 0
Participantes 1