Today I wanted to give it a shot with Apache Roller on Jboss 4.2.2. The thing is Apache Roller works with Apache OpenJPA, which offers Java EE persistence. Jboss works with Hibernate Entity Manager by default.
I’m trying to find a way to switch the persistence provider for roller on Jboss. If you already know a way, let me know.
Subscribe to:
Post Comments (Atom)
2 comments:
Hi
Did you find a solution to this . I am in the same state and would like to find an answer
Thanks in advance. If you have found a solution I would apprecitate if you do drop me an email at hvram1 at gmail dot com
Put a jboss-web.xml in your roller.war/WEB-INF directory with the following content:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE jboss-web
PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
<jboss-web>
<context-root>/roller</context-root>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
org.apache:loader=roller.war
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
<resource-ref>
<res-ref-name>jdbc/rollerdb</res-ref-name>
<jndi-name>java:/jdbc/rollerdb</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>java:/Mail</res-ref-name>
<jndi-name>java:/Mail</jndi-name>
</resource-ref>
</jboss-web>
You also need a ds xml file in your deploy directory for this.
Post a Comment