[JBoss Seam] - Re: help with Maven 2 and SeamTest (part 2)
by oranheim
I'm struggeling a lot in order have Embedded EJB3 container running for TestNG cases. Can you provide me with an example of configuration.
What do you place under:
| /src/main/resources
|
| /src/test/resources
|
Please note that I use JBoss 4.0.4 + Seam 1.0.1. I have ported Seam DVDStore demo to Maven2. Packaging and deployment works all fine, but the test-cases want run correctly. I suspect to have a jndi-problem due to the LocalOnlyContextFactory. I am completly out of ideas.
| /src/main/resources/META-INF/dvd-ds.xml
| /src/main/resources/META-INF/ejb-jar.xml
| /src/main/resources/META-INF/persistence.xml
| /src/main/resources/components.xml
| /src/main/resources/mport.sql
| /src/main/resources/seam.properties
|
| /src/test/resources/jboss-jms-beans.xml
| /src/test/resources/seam.properties
| /src/test/resources/default.persistence.properties
| /src/test/resources/jndi.properties
| /src/test/resources/security-beans.xml
| /src/test/resources/ejb3-interceptors-aop.xml
| /src/test/resources/log4j.xml
| /src/test/resources/embedded-jboss-beans.xml
| /src/test/resources/login-config.xml
| /src/test/resources/testng.xml
|
Here is my issue:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=86127
Any valuable input is highly appreciated.
Cheers,
Ove
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957291#3957291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957291
19 years, 9 months
[Persistence, JBoss/CMP, Hibernate, Database] - PB with wrapping my oracledatasource
by clodeindustrie
hi,
I'm trying to use an Oracledatasource to acces my db from a servlet but I' have an error:
java.lang.ClassCastException: org.jboss.resource.adapter.jdbc.WrapperDataSource
here is my code:
Context ctx;
try {
ctx = new InitialContext();
OracleDataSource ds;
ds = (OracleDataSource) ctx.lookup("java:OracleDS");
OracleConnection connection;
try {
connection = (OracleConnection) ds.getConnection();
PrintWriter out = reponse.getWriter();
....
.....
The line that bug is underlined, it seems that I Can't cast anything with an oraclesomething whatever it's an oracleconnection, oracledatasource etc..
I think my datasource is well configured (see below)
<local-tx-datasource>
<jndi-name>OracleDS</jndi-name>
<connection-url>jdbc:oracle:thin:@localhost:1521:ORCL</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>jeremy</user-name>
taeslin <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
So if anybody could help me, i would be very pleased :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957286#3957286
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957286
19 years, 9 months
[JBoss jBPM] - ANT and generated script
by jmix2006
Hi,
I want to generate JBPM's[3.0.3] script of SQL server 2000 .
I do the procedure normaly[Run As -->Ant Build]
this is the screen of console
| Buildfile: C:\JBPM\jbpm-starters-kit-3.0.3\jbpm-db\build.xml
| mssql.scripts:
| prepare:
| compile.jbpm:
| compile.jbpm.test:
| compile.identity:
| compile.webapp:
| compile.identity.test:
| compile.examples:
| compile:
| db.scripts:
| [mkdir] Created dir: C:\JBPM\jbpm-starters-kit-3.0.3\jbpm-db\build\mssql\scripts
| [java] syntax: JbpmSchema create
| [java] syntax: JbpmSchema drop
| [java] syntax: JbpmSchema clean
| [java] syntax: JbpmSchema scripts <dir> <prefix>
| BUILD SUCCESSFUL
| Total time: 2 seconds
|
But the folder ) ..\build\mssql\script is empty
Any idea!!?
Regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957285#3957285
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957285
19 years, 9 months
[JBoss Portal] - Re: JBoss Portal 2.4 problem
by julien@jboss.com
Thanks for the report, I fixed it in 2.4 CVS and it should be in the CR2 release.
I noticed that you did not add security constraint in the -object.xml of your war file, you should rather use :
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>default</parent-ref>
| <page>
| <page-name>Phonebook</page-name>
| <window>
| <window-name>PhonebookPortletWindow</window-name>
| <instance-ref>PhonebookPortletInstance</instance-ref>
| <region>center</region>
| <height>0</height>
| </window>
| <security-constraint>
| <policy-permission>
| <unchecked/>
| <action-name>viewrecursive</action-name>
| </policy-permission>
| </security-constraint>
| </page>
| </deployment>
| </deployments>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957281#3957281
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957281
19 years, 9 months