[Beginner's Corner] - Migrating from JBoss AS 4.2.1 to 5.1.0
by Michael Huang
Michael Huang [http://community.jboss.org/people/yuanlinh] created the discussion
"Migrating from JBoss AS 4.2.1 to 5.1.0"
To view the discussion, visit: http://community.jboss.org/message/594898#594898
--------------------------------------------------------------
I am migrating from 4.2.1 from 5.1.0. The ear file works fine with 4.2.1, after changing xml descriptor files to new xsd and migrating to 5.1.0, still got the follwoing issue. Seems to to a application.xml issue. But I checked application.xml, there seems to be no issue with it. Could anyone point me to the right direction? Many thanks.
15:52:10,405 INFO [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server mailto:org.jboss.mx.server.MBeanServerImpl@5b78cf org.jboss.mx.server.MBeanServerImpl@5b78cf[ defaultDomain='jboss' ]
15:52:11,061 ERROR [ProfileDeployAction] Failed to add deployment: acesEar.ear
org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(acesEar.ear)
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:61)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Error determining structure: acesEar.ear
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
... 21 more
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}application not found as a child of { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}application in unordered_sequence: { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}module* { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}security-role* { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}library-directory? {all { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}descriptionGroup}?
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)
at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:161)
at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:160)
... 25 more
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}application not found as a child of { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}application in unordered_sequence: { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}module* { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}security-role* { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}library-directory? {all { http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee}descriptionGroup}?
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:383)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
... 28 more
===========application.xml below=============
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance" version="5"
xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd http://java.sun.com/xml/ns/javaee/application_5.xsd">
<application>
<display-name>xxxEar</display-name>
<module>
<java>common.jar</java>
</module>
<module>
<java>commonLib.jar</java>
</module>
............
<module>
<web>
<web-uri>xxxWebApp.war</web-uri>
<context-root>/</context-root>
</web>
</module>
..........................
<security-role>
<description>XXXXX</description>
<role-name>XXXX</role-name>
</security-role>
</application>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/594898#594898]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[JBoss Microcontainer] - Stack overflow in jboss-reflect.jar:2.2.0.GA
by Elias Ross
Elias Ross [http://community.jboss.org/people/genman] created the discussion
"Stack overflow in jboss-reflect.jar:2.2.0.GA"
To view the discussion, visit: http://community.jboss.org/message/598029#598029
--------------------------------------------------------------
Not sure this is an issue or not with Microcontainer per-se but has to do with VFS visiting.
This is JBoss 6.
Is there some way to disable annotation scanning for .jar files in a .sar, so I can bypass this the meantime?
Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ com/xxx/yyy/crypto/CryptoConfiguration.class / BaseClassLoader@7ff26e9d{vfs:///home/elias/jboss-6.0.0.Final/server/default/deploy/quattro/shared.sar}, visitor: org.jboss.scanning.annotations.plugins.GenericAnnotationVisitor@5c429303
at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91) [:1.0.0.GA]
at org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin.visit(AnnotationsScanningPlugin.java:89) [:1.0.0.GA]
at org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112) [:1.0.0.GA]
at org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101) [jboss-classloading.jar:2.2.0.GA]
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264) [jboss-classloading-vfs.jar:2.2.0.GA]
... 56 more
Caused by: java.lang.StackOverflowError
at java.lang.String.toCharArray(String.java:2726) [:1.6.0_17]
at sun.reflect.generics.parser.SignatureParser.parseTypeSig(SignatureParser.java:156) [:1.6.0_17]
at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:367) [:1.6.0_17]
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:181) [:1.6.0_17]
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69) [:1.6.0_17]
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52) [:1.6.0_17]
at java.lang.reflect.Method.declaredAnnotations(Method.java:693) [:1.6.0_17]
at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:686) [:1.6.0_17]
at java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObject.java:175) [:1.6.0_17]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.readAnnotations(IntrospectionTypeInfoFactoryImpl.java:610) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getAnnotations(IntrospectionTypeInfoFactoryImpl.java:126) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:229) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:218) [jboss-reflect.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_17]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:217) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:416) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.AnnotationValueFactory.createAnnotationValue(AnnotationValueFactory.java:109) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.createAnnotationValue(IntrospectionTypeInfoFactoryImpl.java:148) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getAnnotations(IntrospectionTypeInfoFactoryImpl.java:141) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:229) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:218) [jboss-reflect.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_17]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:217) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:416) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.AnnotationValueFactory.createAnnotationValue(AnnotationValueFactory.java:109) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.createAnnotationValue(IntrospectionTypeInfoFactoryImpl.java:148) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getAnnotations(IntrospectionTypeInfoFactoryImpl.java:141) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:229) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:218) [jboss-reflect.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_17]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:217) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:416) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.AnnotationValueFactory.createAnnotationValue(AnnotationValueFactory.java:109) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.createAnnotationValue(IntrospectionTypeInfoFactoryImpl.java:148) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getAnnotations(IntrospectionTypeInfoFactoryImpl.java:141) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:229) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:218) [jboss-reflect.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_17]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:217) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:416) [jboss-reflect.jar:2.2.0.GA]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598029#598029]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[Datasource Configuration] - Oracle XA datasource with oci driver
by raizcor raizcor
raizcor raizcor [http://community.jboss.org/people/raizcor] created the discussion
"Oracle XA datasource with oci driver"
To view the discussion, visit: http://community.jboss.org/message/598046#598046
--------------------------------------------------------------
Right now I'm using a XA datasource to an Oracle database in my application and it works very well, but I need to test it using the oci driver.
I've resolved some problems but now I'm getting the following exception:
.
.
.
20:57:53,520 INFO http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver JNDI InitialContext properties:{}
20:57:54,017 WARN http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@155a2e[state=NORMAL mc=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1ad96b4 handles=0 lastUse=1302055072412 permit=true trackByTx=true mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$PoolBySubject@aead4b context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1f352c5 xaResource=org.jboss.resource.adapter.jdbc.xa.XAManagedConnection@1ad96b4 txSync=null]
oracle.jdbc.xa.OracleXAException
at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:938)
at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:244)
at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:213)
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:799)
at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:510)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:908)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:662)
at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)
at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
at org.hibernate.loader.Loader.doQuery(Loader.java:696)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.doList(Loader.java:2228)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1596)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
.
.
.
20:57:54,024 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver java.lang.IllegalMonitorStateException
20:57:54,024 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.unlock(BaseWrapperManagedConnection.java:277)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:235)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:799)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:510)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:908)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:662)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
20:57:54,025 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.doQuery(Loader.java:696)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
20:57:54,031 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.doList(Loader.java:2228)
20:57:54,032 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
20:57:54,032 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.list(Loader.java:2120)
20:57:54,032 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
20:57:54,032 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1596)
20:57:54,032 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
.
.
20:57:54,129 WARN http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver SQL Error: 0, SQLState: null
20:57:54,129 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a040d3d:96b5:4d9bc88b:6b status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a040d3d:96b5:4d9bc88b:6b status: ActionStatus.ABORT_ONLY >))
20:57:54,135 WARN http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver SQL Error: 0, SQLState: null
20:57:54,135 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver Transaction is not active: tx=TransactionImple < ac, BasicAction: a040d3d:96b5:4d9bc88b:6b status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a040d3d:96b5:4d9bc88b:6b status: ActionStatus.ABORT_ONLY >)
.
.
.
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1573)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.doQuery(Loader.java:696)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.doList(Loader.java:2228)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.Loader.list(Loader.java:2120)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1596)
20:57:54,146 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
.
.
.
20:57:54,147 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver Caused by: org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a040d3d:96b5:4d9bc88b:6b status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a040d3d:96b5:4d9bc88b:6b status: ActionStatus.ABORT_ONLY >)
20:57:54,147 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
20:57:54,147 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92)
20:57:54,147 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
20:57:54,147 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver ... 151 more
20:57:54,147 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver Caused by: javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: a040d3d:96b5:4d9bc88b:6b status: ActionStatus.ABORT_ONLY >
20:57:54,148 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:370)
20:57:54,148 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:496)
20:57:54,148 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
20:57:54,148 ERROR http://community.jboss.org/message/598046#598046 Oracle XA datasource with oci driver at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
.
.
.
What i've already done is add the *oracle_env.sh* script provided by the oracle installation which added the following environment variables:
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
ORACLE_SID=XE
NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
That resolved a previous problem where a native library cannot be found in the 'java.library.path'.
Another thing I've done is configure a TNS service name in my tnsnames.ora file located in my home directory, which don't need before using the oci driver.
I'm working with:
Oracle 10g XE Release 10.2.0.1.0
JBoss AS 5.1.0.GA
Any help will be appreciated
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/598046#598046]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months