lotus wcm - IBM WCM 8, Spring 4 -
i'm pretty new ibm wcm , ibm portal; i'm using following versions:
- ibm websphere portal server_8.0.0.0
- ibm web content manager_8.0.0.0
i need create custom action wcm workflow; far able in creating simple custom action following link: wcm custom action
now need create more complex custom action; in custom action use spring 4.0 , hibernate 4.3.0; created ear file , war module; in war module, under web-inf/lib directory have following jars:
- commons-pool-1.5.4.jar
- spring-beans-4.0.0.release.jar
- hibernate-core-4.3.0.final.jar
- dom4j-1.6.1.jar
- spring-aop-4.0.0.release.jar
- validation-api-1.1.0.final.jar
- jandex-1.1.0.final.jar
- spring-context-support-4.0.0.release.jar
- commons-math3-3.2.jar
- javassist-3.18.1-ga.jar
- antlr-2.7.7.jar
- aspectjweaver-1.7.4.jar
- hppc-0.5.4.jar
- commons-dbcp-1.4.jar
- spring-jdbc-4.0.0.release.jar
- hibernate-commons-annotations-4.0.4.final.jar
- aopalliance-1.0.jar
- jackson-mapper-asl-1.9.13.jar
- spring-tx-4.0.0.release.jar
- slf4j-log4j12-1.7.1.jar
- log4j-1.2.17.jar
- commons-io-2.4.jar
- spring-web-4.0.0.release.jar
- xml-apis-1.0.b2.jar
- spring-core-4.0.0.release.jar
- hibernate-spatial-4.3-snapshot.jar
- spring-aspects-4.0.0.release.jar
- hsqldb-2.0.0.jar
- classmate-1.0.0.jar
- jboss-logging-3.1.3.ga.jar
- hibernate-validator-5.0.2.final.jar
- spring-orm-4.0.0.release.jar
- hibernate-ehcache-4.3.0.final.jar
- slf4j-api-1.7.1.jar
- commons-collections-3.2.1.jar
- jackson-core-asl-1.9.13.jar
- spring-expression-4.0.0.release.jar
- commons-logging-1.1.3.jar
- spring-context-4.0.0.release.jar
- ehcache-core-2.6.6.jar
- hibernate-jpa-2.1-api-1.0.0.final.jar
- spring-webmvc-4.0.0.release.jar web.xml file content:
<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemalocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="webapp_id" version="3.0"> <display-name>comigeomediaweb</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <context-param> <param-name>contextconfiglocation</param-name> <param-value>classpath:application-context.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.contextloaderlistener</listener-class> </listener> </web-app> this plugin.xml file content:
<?xml version="1.0" encoding="utf-8"?> <plugin id= "mitu.wcm.api.custom" name= "spring custom action" version= "1.0.0" provider-name= "ibm" > <extension-point id= "comicustomactionfactory" name="comicustomactionfactory" /> <extension point="com.ibm.workplace.wcm.api.customworkflowactionfactory" id= "comicustomactionfactory" > <provider class= "it.wcm.api.custom.springcustomactionfactory"/> </extension> </plugin> when try deploy ear under 8, ear installation ok when try start it, error:
[3/11/14 9:14:38:719 cet] 000000e7 registryloade w cwxrs0010w: error while processing: file:/opt/ibm/websphere/wp_profile/installedapps/192cell/comigeomedia.ear/comigeomediaweb.war/web-inf/plugin.xml java.lang.classcastexception: com.ibm.wkplc.extensionregistry.extension incompatible com.ibm.wkplc.extensionregistry.extensionpoint @ com.ibm.wkplc.extensionregistry.registrycache.putextensionpoint(registrycache.java:341) @ com.ibm.wkplc.extensionregistry.plugindescriptor.convertobjectstoproxies(plugindescriptor.java:296) @ com.ibm.wkplc.extensionregistry.extensionregistry.addplugin(extensionregistry.java:339) @ com.ibm.wkplc.extensionregistry.extensionregistry.addplugin(extensionregistry.java:319) @ com.ibm.wkplc.extensionregistry.registryloader.loadpluginxml(registryloader.java:482) i add full log question. can tell me i'm wrong? spring , hibernate causing listed error? ho can solve it?
try following plugin.xml file - take note of attribute ordering , removal of whitespace attributes names/values:
<?xml version="1.0" encoding="utf-8"?> <plugin provider-name="ibm" version="1.0.0" name="spring custom action" id="com.ibm.workplace.wcm.api.custom"> <extension-point name="comicustomactionfactory" id="comicustomactionfactory" /> <extension point="com.ibm.workplace.wcm.api.customworkflowactionfactory" id="comicustomactionfactory" > <provider class="it.wcm.api.custom.springcustomactionfactory"/> </extension> </plugin> hope helps. ensure have included jar files in order compile code. you'll need:
- ilwwcm-api.jar - located in: $portal_home$/wcm/prereq.wcm/wcm/shared/app
- wp.base.jar - located in: $portal_home$/base/wp.base/shared/app
you'll need ensure when deploying application, that's it's tied websphere_portal instance , it's startup behavior (enterprise applications --> deployed_war --> startup behavior), has it's start order set 30 (default wcm).
pete.
Comments
Post a Comment