[JBoss JIRA] (ARQ-1819) CDI not working in Jboss as 7.1
by Raj Haque (JIRA)
[ https://issues.jboss.org/browse/ARQ-1819?page=com.atlassian.jira.plugin.s... ]
Raj Haque commented on ARQ-1819:
--------------------------------
FIXED: for some reason I had to add all this to get it working. Not sure why?
.setWebXML(new File("src/main/webapp/WEB-INF/web.xml"))
.addAsResource(new File("src/main/webapp/WEB-INF/jboss-web.xml"))
.addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
> CDI not working in Jboss as 7.1
> -------------------------------
>
> Key: ARQ-1819
> URL: https://issues.jboss.org/browse/ARQ-1819
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Raj Haque
> Priority: Critical
>
> Hi Guys, I am having problems in Arquillian CDI.
> I am using in my parent pom....
> <dependency>
> <groupId>org.jboss.arquillian.junit</groupId>
> <artifactId>arquillian-junit-container</artifactId>
> <version>1.0.0.CR7</version>
> <scope>test</scope>
> </dependency>
> My Arquillian.xml is like this
> <?xml version="1.0" encoding="UTF-8"?>
> <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">
>
> <engine>
> <property name="deploymentExportPath">/SDDevelopmentMVN/TEST_temp</property>
> </engine>
> <!-- Example configuration for a remote JBoss AS 7 instance -->
> <container qualifier="jboss" default="true">
> <protocol type="jmx-as7">
> <property name="executionType">REMOTE</property>
> </protocol>
> <configuration>
> <property name="jbossHome">/SDDevelopmentMVN/jboss/jbossInternalMVN</property>
> <property name="managementAddress">127.0.0.1</property>
> <property name="managementPort">10099</property>
> </configuration>
> </container>
> </arquillian>
> -------------------------
> My Test class is
> @RunWith(Arquillian.class)
> @RunAsClient
> public class PayrollCRUDServiceRestfullTest {
> @Deployment
> public static Archive<?> createTestArchive() {
> return ShrinkWrap.create(WebArchive.class, "test1177.war")
> .addClasses(MiscUtilsSD.class,GenericAuditService.class,PayrollCRUDService.class, SmartDAO.class,Resources.class)
> .addPackage("com.animation2000.coreservices.domain")
> .addPackage("com.animation2000.coreservices.audit.domain")
> .addPackage("com.animation2000.coreservices.audit.service")
> .addPackage("com.animation2000.coreservices.audit.wrapper")
> .addPackage("com.animation2000.coreservices.domain.customized")
>
> .addPackage("com.animation2000.smart.dao")
> .addPackage("com.animation2000.coreservices.payroll.crud.service")
> .addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml")
>
> .addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
>
> }
> @Inject
> PayrollCRUDService payrollCRUDService;
> But payrollCRUDService is null..
> Any advise?Please.
> Many Thanks
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-1444) Oracle does not support query delimiter inside statements
by Rafael Pestano (JIRA)
[ https://issues.jboss.org/browse/ARQ-1444?page=com.atlassian.jira.plugin.s... ]
Rafael Pestano commented on ARQ-1444:
-------------------------------------
bingo! that was the issue, thanks Michel.
maybe we should add that in docs: https://docs.jboss.org/author/display/ARQ/Persistence
> Oracle does not support query delimiter inside statements
> ---------------------------------------------------------
>
> Key: ARQ-1444
> URL: https://issues.jboss.org/browse/ARQ-1444
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Persistence
> Affects Versions: persistence_1.0.0.Alpha6
> Environment: Oracle Database.
> Reporter: Michel Graciano
> Assignee: Bartosz Majsak
> Fix For: persistence_1.0.0.Alpha7
>
>
> When we try to use @ApplyScriptBefore and the script file has more than one statement, we use ; as delimiter. The problem is that the delimiter is not removed from the statement before run it, so Oracle database return the following exception:
> Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-1444) Oracle does not support query delimiter inside statements
by Michel Graciano (JIRA)
[ https://issues.jboss.org/browse/ARQ-1444?page=com.atlassian.jira.plugin.s... ]
Michel Graciano commented on ARQ-1444:
--------------------------------------
Rafael,
there is a gotcha here. Try add the property sqlDialect at your arquillian.xml as follow:
{code:xml}
<extension qualifier="persistence-script">
<property name="sqlDialect">oracle</property>
</extension>
{code}
The defualt delimiter is already ; so it is not necessary to define it. I solved a similar issue doing this in my tests.
> Oracle does not support query delimiter inside statements
> ---------------------------------------------------------
>
> Key: ARQ-1444
> URL: https://issues.jboss.org/browse/ARQ-1444
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Persistence
> Affects Versions: persistence_1.0.0.Alpha6
> Environment: Oracle Database.
> Reporter: Michel Graciano
> Assignee: Bartosz Majsak
> Fix For: persistence_1.0.0.Alpha7
>
>
> When we try to use @ApplyScriptBefore and the script file has more than one statement, we use ; as delimiter. The problem is that the delimiter is not removed from the statement before run it, so Oracle database return the following exception:
> Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-1444) Oracle does not support query delimiter inside statements
by Rafael Pestano (JIRA)
[ https://issues.jboss.org/browse/ARQ-1444?page=com.atlassian.jira.plugin.s... ]
Rafael Pestano commented on ARQ-1444:
-------------------------------------
* in Alpha7
> Oracle does not support query delimiter inside statements
> ---------------------------------------------------------
>
> Key: ARQ-1444
> URL: https://issues.jboss.org/browse/ARQ-1444
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Persistence
> Affects Versions: persistence_1.0.0.Alpha6
> Environment: Oracle Database.
> Reporter: Michel Graciano
> Assignee: Bartosz Majsak
> Fix For: persistence_1.0.0.Alpha7
>
>
> When we try to use @ApplyScriptBefore and the script file has more than one statement, we use ; as delimiter. The problem is that the delimiter is not removed from the statement before run it, so Oracle database return the following exception:
> Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-1444) Oracle does not support query delimiter inside statements
by Rafael Pestano (JIRA)
[ https://issues.jboss.org/browse/ARQ-1444?page=com.atlassian.jira.plugin.s... ]
Rafael Pestano commented on ARQ-1444:
-------------------------------------
Hi guys,
is this issue really resolved?
im trying to clean a oracle db using @CleanupUsingScript or @ApplyScriptAfter/Before and still having ORA-00911: invalid character in Alpha.
My scripts are simple DELETE from TABLE;
my arquillian.xml is as follows:
<extension qualifier="persistence-dbunit">
<property name="schema">TR_DETRAN_RED_AD</property>
<!-- <property name="datatypeFactory">org.dbunit.ext.oracle.Oracle10DataTypeFactory</property>-->
<property name="filterTables">true</property>
<!--<property name="filterForeignKeysEnabled">false</property>-->
<!--<property name="customTableFilter">org.jboss.arquillian.persistence.dbunit.filter.OracleDatabaseSequenceFilterProvider</property>-->
</extension>
<extension qualifier="persistence">
<property name="defaultDataSource">java:jboss/datasources/RedTesteDS</property>
<!--<property name="defaultDataSeedStrategy">CLEAN_INSERT</property> -->
<!-- <property name="defaultCleanupPhase">NONE</property> -->
<property name="dumpData">false</property>
</extension>
<!-- <extension qualifier="persistence-script">
<property name="sqlStatementDelimiter">;</property>
</extension> -->
thanks in advance.
> Oracle does not support query delimiter inside statements
> ---------------------------------------------------------
>
> Key: ARQ-1444
> URL: https://issues.jboss.org/browse/ARQ-1444
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Persistence
> Affects Versions: persistence_1.0.0.Alpha6
> Environment: Oracle Database.
> Reporter: Michel Graciano
> Assignee: Bartosz Majsak
> Fix For: persistence_1.0.0.Alpha7
>
>
> When we try to use @ApplyScriptBefore and the script file has more than one statement, we use ; as delimiter. The problem is that the delimiter is not removed from the statement before run it, so Oracle database return the following exception:
> Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-1819) CDI not working in Jboss as 7.1
by Raj Haque (JIRA)
Raj Haque created ARQ-1819:
------------------------------
Summary: CDI not working in Jboss as 7.1
Key: ARQ-1819
URL: https://issues.jboss.org/browse/ARQ-1819
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Raj Haque
Priority: Critical
Hi Guys, I am having problems in Arquillian CDI.
I am using in my parent pom....
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<version>1.0.0.CR7</version>
<scope>test</scope>
</dependency>
My Arquillian.xml is like this
<?xml version="1.0" encoding="UTF-8"?>
<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">
<engine>
<property name="deploymentExportPath">/SDDevelopmentMVN/TEST_temp</property>
</engine>
<!-- Example configuration for a remote JBoss AS 7 instance -->
<container qualifier="jboss" default="true">
<protocol type="jmx-as7">
<property name="executionType">REMOTE</property>
</protocol>
<configuration>
<property name="jbossHome">/SDDevelopmentMVN/jboss/jbossInternalMVN</property>
<property name="managementAddress">127.0.0.1</property>
<property name="managementPort">10099</property>
</configuration>
</container>
</arquillian>
-------------------------
My Test class is
@RunWith(Arquillian.class)
@RunAsClient
public class PayrollCRUDServiceRestfullTest {
@Deployment
public static Archive<?> createTestArchive() {
return ShrinkWrap.create(WebArchive.class, "test1177.war")
.addClasses(MiscUtilsSD.class,GenericAuditService.class,PayrollCRUDService.class, SmartDAO.class,Resources.class)
.addPackage("com.animation2000.coreservices.domain")
.addPackage("com.animation2000.coreservices.audit.domain")
.addPackage("com.animation2000.coreservices.audit.service")
.addPackage("com.animation2000.coreservices.audit.wrapper")
.addPackage("com.animation2000.coreservices.domain.customized")
.addPackage("com.animation2000.smart.dao")
.addPackage("com.animation2000.coreservices.payroll.crud.service")
.addAsResource("META-INF/persistence.xml", "META-INF/persistence.xml")
.addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"));
}
@Inject
PayrollCRUDService payrollCRUDService;
But payrollCRUDService is null..
Any advise?Please.
Many Thanks
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-197) Research support for @Deployment on multiple levels
by Karthik Shantaraman (JIRA)
[ https://issues.jboss.org/browse/ARQ-197?page=com.atlassian.jira.plugin.sy... ]
Karthik Shantaraman edited comment on ARQ-197 at 7/14/14 7:43 PM:
------------------------------------------------------------------
Hi [~huangdihu]
That was really helpful. Thank you for the link. Is it possible to use ArquillianSuiteExtension in Arquillian with JUnit tests running in Apache Tomcat Container?
was (Author: kshantaraman):
Hi [~huangdihu]
That was really helpful. Thank you for the link. Is it possible to use ArquillianSuiteExtension in Apache Tomcat Container?
> Research support for @Deployment on multiple levels
> ---------------------------------------------------
>
> Key: ARQ-197
> URL: https://issues.jboss.org/browse/ARQ-197
> Project: Arquillian
> Issue Type: Feature Request
> Components: Base Implementation
> Reporter: Aslak Knutsen
> Priority: Critical
> Fix For: 2.0.0.CR1
>
>
> One deployment pr TestCase might not always be the ideal solution. Research how we can deploy multiple TestCases with one Deployment and test them all at once.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-197) Research support for @Deployment on multiple levels
by Karthik Shantaraman (JIRA)
[ https://issues.jboss.org/browse/ARQ-197?page=com.atlassian.jira.plugin.sy... ]
Karthik Shantaraman commented on ARQ-197:
-----------------------------------------
Hi [~huangdihu]
That was really helpful. Thank you for the link. Is it possible to use ArquillianSuiteExtension in Apache Tomcat Container?
> Research support for @Deployment on multiple levels
> ---------------------------------------------------
>
> Key: ARQ-197
> URL: https://issues.jboss.org/browse/ARQ-197
> Project: Arquillian
> Issue Type: Feature Request
> Components: Base Implementation
> Reporter: Aslak Knutsen
> Priority: Critical
> Fix For: 2.0.0.CR1
>
>
> One deployment pr TestCase might not always be the ideal solution. Research how we can deploy multiple TestCases with one Deployment and test them all at once.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-1818) JUnit @Before/After phase is called after/before Arquillian's Before/After phase
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1818?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen updated ARQ-1818:
-------------------------------
Priority: Blocker (was: Critical)
> JUnit @Before/After phase is called after/before Arquillian's Before/After phase
> --------------------------------------------------------------------------------
>
> Key: ARQ-1818
> URL: https://issues.jboss.org/browse/ARQ-1818
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Test Harness Integration
> Affects Versions: 1.1.5.Final
> Reporter: Aslak Knutsen
> Priority: Blocker
> Fix For: 1.1.6.Final
>
>
> In < 1.1.5.Final JUnit's @Before and @After was called by Arquillian as part of Arquillian's Before and After phases. This changed by accident during the JUnit Rule support rewrite and @Before is now called after Arquillian's Before and @After phase is now called Before Arquillian's After.
> This break down APIs like Deployer/ContainerController as non of the Suite/Class/Test Contexts are active at that point.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months
[JBoss JIRA] (ARQ-1818) JUnit @Before/After phase is called after/before Arquillian's Before/After phase
by Aslak Knutsen (JIRA)
[ https://issues.jboss.org/browse/ARQ-1818?page=com.atlassian.jira.plugin.s... ]
Aslak Knutsen reassigned ARQ-1818:
----------------------------------
Assignee: Aslak Knutsen
> JUnit @Before/After phase is called after/before Arquillian's Before/After phase
> --------------------------------------------------------------------------------
>
> Key: ARQ-1818
> URL: https://issues.jboss.org/browse/ARQ-1818
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Test Harness Integration
> Affects Versions: 1.1.5.Final
> Reporter: Aslak Knutsen
> Assignee: Aslak Knutsen
> Priority: Blocker
> Fix For: 1.1.6.Final
>
>
> In < 1.1.5.Final JUnit's @Before and @After was called by Arquillian as part of Arquillian's Before and After phases. This changed by accident during the JUnit Rule support rewrite and @Before is now called after Arquillian's Before and @After phase is now called Before Arquillian's After.
> This break down APIs like Deployer/ContainerController as non of the Suite/Class/Test Contexts are active at that point.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 8 months