-
1. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
bmajsak Nov 2, 2012 7:03 AM (in response to verboomp)Hi Patrick,
core and dbunit configuration has been splitted a while back, all dbunit properties should be defined using "persistence-dbunit" qualifier, have you tried it this way?
Here's the reference https://docs.jboss.org/author/display/ARQ/Persistence
With regards to the first question please file feature request in JIRA and I'll be happy to provide it
Cheers,
Bartosz
-
2. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
bmajsak Nov 5, 2012 5:07 AM (in response to bmajsak)Any update on this problem?
-
3. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
verboomp Nov 5, 2012 7:31 AM (in response to bmajsak)Hi Bartosz,
Thank you for your reply. Your reply is partitialy helpfull. I have found the mistake I made in the configuration. I have changed it now in two seperate configurations one for persistence and one for persistence-dbunit.
Now I am running into another problem. Althrough I have thr oracle ojdbc6-11.2.0.1.0.jar configured in the pom.xml as test dependency I get the following Exception:
13:11:08,359 WARN [org.jboss.modules] (pool-8-thread-1) Failed to define class org.dbunit.ext.oracle.OracleSdoGeometry in Module "deployment.arquillian-service:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/dbunit/ext/oracle/OracleSdoGeometry (Module "deployment.arquillian-service:main" from Service Module Loader)
with as root cause
Caused by: java.lang.ClassNotFoundException: oracle.sql.ORAData from [Module "deployment.arquillian-service:main" from Service Module Loader]
Regards,
Patrick
-
4. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
bmajsak Nov 5, 2012 7:41 AM (in response to verboomp)Hi Patrick,
I believe you need to add this dependency to the shrinkwrap test deployment. This guide should help https://community.jboss.org/wiki/HowToIAddMavenArtifactsToMyShrinkWrapArchives
Let me know if there is anything else I can help with.
Cheers,
Bartosz
-
5. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
bmajsak Nov 5, 2012 7:47 AM (in response to bmajsak)With regards to dbunit assertion object injection to the test class - can you provide me some sample code you would like to execute in the test?
I'm still not sure which objects from dbunit we should expose. I was thinking more about DbUnitAssert or maybe some facade for that.
-
6. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
verboomp Nov 5, 2012 9:29 AM (in response to bmajsak)I have reduced the error so far that it is only thrown when I turn on the following setting in the arquillian.xml file:
<property name="datatypeFactory">org.dbunit.ext.oracle.OracleDataTypeFactory</property>
I assume the problems have something to do with the way DBUnit loads these classes
I have tried to add dbunit and oracle to the classpath in the shrinkwrap configuration. That didn't resolve the problem. I have also tried to add them as a module but that doesn't work either.
For the project I am working on now I don't really need this configuration parameter. I can do without it for now. It will however be a problem for those people who use oracle specific columns like the XMLTYPE column.
-
7. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
bmajsak Nov 5, 2012 9:49 AM (in response to verboomp)This might be solely DBUnit problem, see http://stackoverflow.com/questions/10835024/dbunit-ant-is-not-finding-oracle-sql-oradata-even-though-its-in-the-jar-file
Strange stuff indeed. Have you tried with some other versions of the driver?
-
8. Re: Arquillian Persistence questions and a possible bug in 1.0.0.Alpha5 on an Oracle database
mbuamuh Dec 3, 2013 6:43 AM (in response to verboomp)Has this problem been solved? I am experiencing the same problem. Below is the content of my arquillian.xml file. I will be very grateful for any help. Thank you.
<arquillian xmlns="http://jboss.org/schema/arquillian"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd"><defaultProtocol type="Servlet 3.0" />
<container qualifier="jbossas-managed" default="true">
<configuration>
<property name="jbossHome">C:/jboss-eap-6.1Beta</property>
<property name="outputToConsole">true</property>
<property name="allowConnectingToRunningServer">true</property>
</configuration>
</container>
<extension qualifier="persistence">
<property name="defaultDataSource">java:jboss/datasources/ECPM_DEV</property>
<property name="defaultTransactionMode">COMMIT</property>
</extension>
<extension qualifier="persistence-dbunit">
<property name="datatypeFactory">org.dbunit.ext.oracle.Oracle10DataTypeFactory</property>
<property name="useIdentityInsert">true</property>
<property name="excludePoi">true</property>
<property name="skipOracleRecycleBinTables">true</property>
<!-- <property name="defaultDataSetLocation">"datasets/"</property>-->
</extension>
</arquillian>