Integrate JasperReports with EnterWorks
-
Update the shared configuration properties as shown below. When you edit the
sharedConfig.properties
file, if the settings do not exist, add them. -
Open the EPX
Enterworks.properties
file for editing. The file is in the folder:\\<AppServerName>\\Enterworks\EPX32\bin\conf
-
Add the following entry at the end of the file. The target directories can be set to any place on the network that the Enable services account has access to. Customize the code below as necessary.
##Jasper report scheduler properties jasper.server.url=http://<WebServerName>:8080/jasperserver-pro/services/repository jasper.server.login=superuser jasper.server.password=superuser jasper.targetDirectory.brands=\\\\wa00433q\\Enterworks\\<customer specific>\\ProductGuides\\Brands jasper.targetDirectory.brandFamilies=\\\\<AppServerName> \\Enterworks\\<customer specific> \\ProductGuides\\BrandFamilies jasper.targetDirectory.categories=\\\\<AppServerName> \\Enterworks\\<customer specific>\\ProductGuides\\Categories
-
Open the EPX web wrapper file
EPX_WEB_9040_9039_wrapper
for editing. The file is located at:\\wa00433q\\Enterworks\EPX32\bin\
-
After the entry:
wrapper.java.classpath.61=../lib/Services.jar
, add the following entries:wrapper.java.classpath.62=../lib/com-jaspersoft-ireport-jasperserver.jar wrapper.java.classpath.63=../lib/com-jaspersoft-ireport.jar wrapper.java.classpath.64=../lib/commons-collections-3.2.jar wrapper.java.classpath.65=../lib/commons-digester-1.7.jar wrapper.java.classpath.66=../lib/commons-logging-1.0.4.jar wrapper.java.classpath.67=../lib/itext-2.1.7.js2.jar wrapper.java.classpath.68=../lib/jasperreports-5.2.0.jar wrapper.java.classpath.69=../lib/jasperreports-fonts-5.0.0.jar wrapper.java.classpath.70=../lib/jasperreports-htmlcomponent-5.0.1.jar wrapper.java.classpath.71=../lib/jasperserver-common-ws-5.2.0.jar wrapper.java.classpath.72=../lib/js_activation-1.1.jar wrapper.java.classpath.73=../lib/js_axis-1.4patched.jar wrapper.java.classpath.74=../lib/js_commons-codec-1.3.jar wrapper.java.classpath.75=../lib/js_commons-discovery-0.2.jar wrapper.java.classpath.76=../lib/js_commons-httpclient-3.1.jar wrapper.java.classpath.77=../lib/js_jaxrpc.jar wrapper.java.classpath.78=../lib/js_mail-1.4.jar wrapper.java.classpath.79=../lib/js_wsdl4j-1.5.1.jar wrapper.java.classpath.81=../lib/log4j-1.2.15.jar wrapper.java.classpath.82=../lib/org-openide-util-7.2.jar wrapper.java.classpath.83=../lib/org-openide-util-lookup-8.3.1.jar wrapper.java.classpath.84=../lib/servlet-api-2.4.jar wrapper.java.classpath.85=../lib/xercesImpl-2.10.0.jar wrapper.java.classpath.86=../lib/xml-apis-1.4.01.jar
-
Copy all jar files in:
<drive>:\temp\JasperJars
to:
\\<AppServerName>\\Enterworks\EPX32\lib
When prompted, overwrite any files already existing in the target directory. Contents of the
<drive>temp\JasperJars
directory include:com-jaspersoft-ireport-jasperserver.jar com-jaspersoft-ireport.jar commons-collections-3.2.jar commons-digester-1.7.jar commons-logging-1.0.4.jar itext-2.1.7.js2.jar jasperreports-5.2.0.jar jasperreports-fonts-5.0.0.jar jasperreports-htmlcomponent-5.0.1.jar jasperserver-common-ws-5.2.0.jar js_activation-1.1.jar js_axis-1.4patched.jar js_commons-codec-1.3.jar js_commons-discovery-0.2.jar js_commons-httpclient-3.1.jar js_jaxrpc.jar js_mail-1.4.jar js_wsdl4j-1.5.1.jar log4j-1.2.15.jar org-openide-util-7.2.jar org-openide-util-lookup-8.3.1.jar servlet-api-2.4.jar xercesImpl-2.10.0.jar xml-apis-1.4.01.jar
- Stop Jasper services on the web server via the Services console.
-
Start Jasper services on the web server via the Services console.
-
Restart Enable services on both the web server and app server.
- Stop EPX services on the app server by running the script (as admin):
<drive>:/Enterworks/bin/Stop EPX.cmd.
-
Start EPX services on the app server by running the script (as admin):
<drive>:/Enterworks/bin/Start EPX.cmd.
-
Log on to Enable and confirm that JasperReports is accessible from the Report Manager menu.
-
Jasper is now integrated with Enable.