371048 (1) [Avatar] Offline
#1
I am following the steps as suggsted in Chp 3 for Service Builder's product-registration-portlet. However, I am getting the below error. Pls suggest:

Environment
Liferay 6.2, plugin-sdk-6.2, MySql database, JDK 1.7.0_51, Eclipse Mars IDE

Buildfile: D:\Code_Home\plugins\liferay-plugins-sdk-6.2\portlets\product-registration-portlet\build.xml
build-service:
    [mkdir] Created dir: D:\Code_Home\plugins\liferay-plugins-sdk-6.2\portlets\product-registration-portlet\docroot\WEB-INF\classes
      [jar] Building MANIFEST-only jar: D:\Code_Home\plugins\liferay-plugins-sdk-6.2\portlets\product-registration-portlet\build-service-classpath.jar
   [delete] Deleting: D:\Code_Home\plugins\liferay-plugins-sdk-6.2\portlets\product-registration-portlet\build-service-classpath.jar.manifest
     [java] Java Result: 1
     [echo] Loading jar:file:/D:/Code_Home/bundles/lportal-6.2-ga4/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
     [echo] Loading jar:file:/D:/Code_Home/bundles/lportal-6.2-ga4/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
     [echo] Loading jar:file:/D:/Code_Home/bundles/lportal-6.2-ga4/tomcat-7.0.42/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
     [echo] Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.layoutconfiguration.util.RuntimePage' defined in class path resource [META-INF/util-spring.xml]: Instantiation of bean failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class
     [echo] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
     [echo] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:910)
     [echo] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
     [echo] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
     [echo] 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
     [echo] 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
     [echo] 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
     [echo] 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
     [echo] 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
     [echo] 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
     [echo] 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
     [echo] 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
     [echo] 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
     [echo] 	at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:31)
     [echo] 	at com.liferay.portal.spring.util.SpringUtil._loadContext(SpringUtil.java:74)
     [echo] 	at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringUtil.java:60)
     [echo] 	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:189)
     [echo] 	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:166)
     [echo] 	at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:198)
     [echo] Caused by: java.lang.IncompatibleClassChangeError: Implementing class
     [echo] 	at java.lang.ClassLoader.defineClass1(Native Method)
     [echo] 	at java.lang.ClassLoader.defineClass(Unknown Source)
     [echo] 	at java.security.SecureClassLoader.defineClass(Unknown Source)
     [echo] 	at java.net.URLClassLoader.defineClass(Unknown Source)
     [echo] 	at java.net.URLClassLoader.access$100(Unknown Source)
     [echo] 	at java.net.URLClassLoader$1.run(Unknown Source)
     [echo] 	at java.net.URLClassLoader$1.run(Unknown Source)
     [echo] 	at java.security.AccessController.doPrivileged(Native Method)
     [echo] 	at java.net.URLClassLoader.findClass(Unknown Source)
     [echo] 	at java.lang.ClassLoader.loadClass(Unknown Source)
     [echo] 	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
     [echo] 	at java.lang.ClassLoader.loadClass(Unknown Source)
     [echo] 	at java.lang.Class.getDeclaredConstructors0(Native Method)
     [echo] 	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
     [echo] 	at java.lang.Class.getConstructor0(Unknown Source)
     [echo] 	at java.lang.Class.getDeclaredConstructor(Unknown Source)
     [echo] 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:65)
     [echo] 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:957)
     [echo] 	... 18 more

BUILD FAILED
D:\Code_Home\plugins\liferay-plugins-sdk-6.2\build-common-plugin.xml:222: Service Builder generated exceptions.

Total time: 5 seconds


I get the same thing even when I execute the ant script from command prompt directly. Allso attached is the username properties file