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):
<!-- ===================================================================== -->
<!-- -->
<!-- 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:
<property name="jndiName" value="java:${metadata.hibernate.dataSource.jndiName}"/>
</bean>
Then, create a WEB-INF/jboss-web.xml file:
<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!

There are no comments for this entry.
[Add Comment] [Subscribe to Comments]