Running JasperServer on JBoss 4.0.5GA

Since I once again got JasperServer going on JBoss, I figured I'd document how.

Follow the install instructions for the most part, but you will need to A: create a mysql-ds.xml (for example) something like this (put it in the deploy/ directory):

<?xml version="1.0" encoding="UTF-8"?>

<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server DataBase Configuration -->
<!-- -->
<!-- ===================================================================== -->

<datasources>

<local-tx-datasource>
<jndi-name>jdbc/jasperserver</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/jasperserver</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>jasperadmin</user-name>
<password>jasperadminpassword</password>
</local-tx-datasource>

</datasources>

And you'll need to modify the WEB-INF/applicationContext.xml file-- replace the datasource bean def with this:

<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="java:${metadata.hibernate.dataSource.jndiName}"/>
    </bean>

Then, create a WEB-INF/jboss-web.xml file:

<jboss-web>
<context-root>/jasperserver</context-root>
<resource-ref>
<res-ref-name>jdbc/jasperserver</res-ref-name>
<jndi-name>jdbc/jasperserver</jndi-name>
</resource-ref>
</jboss-web>

And you're in (probably not quite like flynn). So- pretty much, we unzipped the .war into the deploy directory, and made the above config changes, and, fingers croxxed, it starts up!

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.3.000. Contact Blog Owner