This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. Liferay with OracleXE
Error
ERROR [IncludeTag:165] com.liferay.util.EncryptorException: com.liferay.util.EncryptorException: java.lang.NullPointerException
If you guys are using Liferay with Oracle XE + ojdbc14.jar then do the below changes.
Beacause ojdbc14.jar -classes for use with JDK 1.4 and 1.5
and in your Liferay, you are using version of JDK1.6.
Explanation
The actual problem happens when you switch from one JVM to another. Liferay stores the encryption key algorithm in the company table of the database. Each JVM generally has its own algo implementation and thus when you move from one JVM to another, you will need to do the following to repair:
Change-Either
1) Remember the companyId and accountId of the company table.
2) Delete the rows in the table.
3) Restart the Liferay (it will automatically create a new company when it cannot find the desired one, creating a key that's valid for your new JVM)
4) Shutdown the Liferay
5) Go into the database and set the companyId and accountId fields to the previous values.
Change-OR
Just Replace the ojdbc14 to ojdbc5.jar in your tomcat/lib/ext/