Sunday, March 16, 2008

Roller4 deployed to Weblogic9.2

This is how I got roller installed in weblogic 9.2:

My environment is: MS Windows XP, MySQL 5, MySQL connector java 5. Before you follow what I did, you should download MySQL and install it, create the database as described in the Roller installation guide.

While installing I came across some issues while trying to activate the Roller app. Here is my basic directory structure

webapp/roller
wls9.2_webapp/roller
wls9.2_webapp/roller/data
wls9.2_webapp/roller/data/search-index
wls9.2_webapp/roller/data/themes
wls9.2_webapp/roller/data/uploads
wls9.2_webapp/roller/lib

  1. downloaded Roller and extracted to a location on my hard drive.
  2. I then created a copy of the webapp directory and renamed the new one wls9.2_webapp
  3. Under the new directory I created the following directories: data/ , lib/ .I MOVED the themes directory from the roller directory to the data directory i just created. I then created search-index and uploads directories under the data directory. I now have three directories under data (search-index, themes, uploads). In the lib directory I created the file roller-custom.properties.
  4. Added wls9.2_webapp/roller/lib to the classpath constructed in startwebloic.cmd
  5. Added the connector Java mysql driver to the classpath as well.
  6. Created a new domain and managed server. The admin and managed are one server. For this situation I just used the default port 7001.
  7. Start the weblogic admin server and deploy the directory wls9.2_webapp/roller

Issues that I encountered while trying to activate the roller webapp:
1. mail/Session not found
solution: added WEB-INF/weblogic.xml:



2. java.io.FileNotFoundException: \logs\roller.log
solution: override the roller.log log4j setting by adding the following line to roller-custom.properties. if you are on a PC make sure you escape all the backslash. log4j.appender.roller.File=[path to the logs directory]\\roller.log. You should not see any errors during activation. You can then access: http://localhost:7001/roller. If you never ran Roller before, it would have detected the RollerDB and will notify you that Roller will create the required tables in the empty database. Roller would also detect the DBMS. In my case it stated MySQL.

No comments: