Enabling COM in JBoss
While trying to get a site to render reports in Crystal Reports, moving to J2EE implementation required a few tweaks to the settings, but the information was scattered over a few files found on Macromedia’s site. Here’s what I had to do to make sure that CF could load the COM objects correctly.
- Add the ColdFusion lib path to the Java classpath. This most likely will be WEB-INF\cfusion\lib under your webapp.
- Add WEB-INF\cfusion\jintegra\bin and WEB-INF\cfusion\jintegra\bin\international to the java.library.path
- Add two arguments to the startup command: -DJINTEGRA_NATIVE_MODE and -DJINTEGRA_PREFETCH_ENUMS
- One additional step I had to take, most likely because this machine was the guinea pig for J2EE setup, was go through my Windows Registry and make sure all references to TypeViewer.dll were pointing to the right directory (I had moved my web-inf\cfusion directory to another location, so they weren’t synched up)
Hope that helps anyone else who is running Crystal on a J2EE server and has problems using it.
Published on Wednesday, Mar 16,2005 |
Leave a reply