Environment
============
SpagoBI: version 2.5
OS Server: Windows server 2008 R2 (x64)
App Server: Tomcat 6.0.18 (in the SpagoBI demo package)
Java: JDK 1.6.0_20
Problems
============
Here is the screenshot of Tomcat console:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRV6nhNaDr3yTc3ezEsfUhmYtzge5Ls4yzfcXXFB7dNggsKWep8CrxsHNiLX_Uf4FN316m7ZXz4fKzWIXUZUvnN5Ga_StWtP0Islf9ERED2l-DzbF6fXwBCu5VVxD1OdiDafb7RYDADiQ/s400/SpagoBI-9.jpg)
We can find three issues:
1) APR (Apache Portable Runtime) is not installed by default. APR is to provide superior scalability, performance, and better integration with native server technologies;
2) No persistent store is configured for session management;
3) There is log4j warning of log4j system not being initialized properly;
Fixes
=============
1) First, download APR from here, and save to folder like Tomcat_home\APR;
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0ovTEF9sE1pY89Ll8y3I7_nYE_U10ho__RjbjkoSX0wsyJnGqZMwoxD42zt8kD9GuARhQaCKRrRY0yeYP8n3ik6QIBiDSjX3pdIJlpuKh8Q7dkN4kPF3fWnWZnDeI3G5vCCgmEpdYEDA/s400/SpagoBI-11.jpg)
Then, open and edit file "Tomcat_home\bin\catalina.bat", and add one line after ":okHome", just like below:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU5Uq5t6YoHdPhmX8Q2fyUysBXhWQkdlpxaSKimLLpu0S-fsxSqYhE9kDmgKTE62BPFbaJYyYv7bsZzs-WQDFzFQYWG8ADZye9BUD_0FSHpfbAiMrebBWKhKesmuSQ2j4zHM2qrAXRyKA/s400/SpagoBI-10.jpg)
2) Edit the file "context.xml" at "tomcat_home\webapps\SpagoBI\META-INF":
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGHqumGsmJ00mNoPVeuj9rYIWiKTAc4R-LRp82k27EVQmdUTwZ9ofJJOG3d0xrW6j8z-kVRlcK_Bwb8QtS7xM6VngUl-pYQHH4cqxkexd1BJzw-eHFH3fn4YiNvj5TtYoBpcaFiUd1RO8/s400/SpagoBI-12.jpg)
The same change can apply to other context file;
3) Edit the file "log4j.properties" at "tomcat_home\webapps\SpagoBIJPXMLAEngine\WEB-INF\classes":
Add the following 2 lines:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf-Iu0wCZhvoDgVGce2iNWES7HCio70yzbFB2vkWZVbz-uix9mV5hapQyFu_z3nCCKDl3ocHV2JNoU3S1eiarTBT2CFHTtfNXO-BajqyP7t9Q9P9qP0-KIKFPtxRnEXOmE0JqiCMySACw/s400/SpagoBI-13.jpg)
Save and restart Tomcat server.
No comments:
Post a Comment