[
https://issues.apache.org/jira/browse/WOOKIE-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13753552#comment-13753552
]
Amir Rana commented on WOOKIE-417:
----------------------------------
I did try above solutions as suggested by you but they did not work.
I think the problem is that WAS 7 provides it own implementation of open jpa
(com.ibm.ws.jpa.jar) which is included in the server runtime and WAS 7 loads it
during server startup and ignores the openjpa-all-2.0.0.jar included in Wookie.
I have tried to fix this issue by changing class loader policies to
PARENT_LAST, but it did not help.
In the persistence.properties file (located at
wookie.war\WEB-INF\classes\org\apache\wookie\beans\jpa) following is mentioned
openjpa.Log=log4j
Since log4j jar is not available in WAS 7 class path, it results into error (as
mentioned in my original post).
As a solution I commented the line (openjpa.Log=log4j) and above exception is
gone now I am one step ahead and getting following exception about table names.
Caused by: <openjpa-2.0.2-SNAPSHOT-r422266:1084264 fatal user error>
org.apache.openjpa.persistence.ArgumentException: Table "WidgetInstance" given
for "org.apache.wookie.beans.jpa.impl.WidgetInstanceImpl" does not exist.
at
org.apache.openjpa.jdbc.meta.MappingInfo.createTable(MappingInfo.java:532)
at
org.apache.openjpa.jdbc.meta.ClassMappingInfo.getTable(ClassMappingInfo.java:309)
at
org.apache.openjpa.jdbc.meta.ClassMappingInfo.getTable(ClassMappingInfo.java:331)
at
org.apache.openjpa.jdbc.meta.strats.FullClassStrategy.map(FullClassStrategy.java:73)
I am getting this exception for following tables i.e. WidgetInstance,
Preference, Widget, Feature, Param.
Do you have any clue about this exception ?
Thanks
Amir
> Wookie installation on WebSphere 7
> ----------------------------------
>
> Key: WOOKIE-417
> URL: https://issues.apache.org/jira/browse/WOOKIE-417
> Project: Wookie
> Issue Type: Bug
> Affects Versions: 0.14.0
> Environment: windows 7, IBM WebSphere 7 (7.0.0.19), Oracle 11g
> Reporter: Amir Rana
>
> We are not able to install Apache Wookie on WAS 7. After deploying Wookie War
> on WAS 7, during the server restart following exception occurs
> 8/20/13 15:45:26:045 PKT] 0000001b webapp E
> com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E:
> Exception caught while initializing context: {0}
> java.lang.RuntimeException: Unable to load or initialize PersistenceManager
> class: java.lang.reflect.InvocationTargetException
> How can this issue be resolved ? This issue is blocking for us. The complete
> version of WAS is (7.0.0.19)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira