Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Ranga Rao Bobbili
Liferay 6.1.1 GA2 ServiceBuilder issue
22 de enero de 2013 14:33
Respuesta

Ranga Rao Bobbili

Ranking: Regular Member

Mensajes: 147

Fecha de incorporación: 20 de julio de 2007

Mensajes recientes

Hi All,

I am not able to generate services from plugins sdk or portlet and servicebuilder ant script throwing following exception.

E:\softwares\liferay\liferay611GA2\liferay-plugins-sdk-6.1.1\ext\SearchServices-
ext>ant build-service
Buildfile: E:\softwares\liferay\liferay611GA2\liferay-plugins-sdk-6.1.1\ext\Sear
chServices-ext\build.xml

build-service:

.

WARNING: Support for ServiceBuilder in EXT plugins will be deprecate
d in future
versions. EXT plugins are designed to override the portal's core cod
e that
cannot be done with hooks, layout templates, portlets, or themes. EX
T plugins
are not meant to contain new custom services. Please migrate your se
rvice.xml to
a portlet plugin.

Loading jar:file:/E:/LiferayTraining/liferay-portal-6.0.5/tomcat-6.0
.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
Jan 22, 2013 3:11:11 PM com.liferay.portal.kernel.log.Jdk14LogImpl i
nfo
INFO: No server detected
Loading jar:file:/E:/LiferayTraining/liferay-portal-6.0.5/tomcat-6.0
.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/E:/LiferayTraining/liferay-portal-6.0.5/tomcat-6.0.26/
webapps/ROOT/WEB-INF/classes/portal-ext.properties
15:11:16,403 WARN [ActiveManagementCoordinator:69] Failed to set up
C3P0RegistryManager mBean. [c3p0 will still function normally, but management v
ia JMX may not be possible.]
java.security.AccessControlException: access denied (javax.managemen
t.MBeanTrustPermission register)
at java.security.AccessControlContext.checkPermission(AccessCont
rolContext.java:374)
at java.lang.SecurityManager.checkPermission(SecurityManager.jav
a:568)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMB
eanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registe
rMBean(DefaultMBeanServerInterceptor.java:310)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBean
Server.java:482)
at com.mchange.v2.c3p0.management.ActiveManagementCoordinator.at
temptManageC3P0Registry(ActiveManagementCoordinator.java:64)
at com.mchange.v2.c3p0.C3P0Registry.attemptRegisterRegistryMBean
(C3P0Registry.java:217)
at com.mchange.v2.c3p0.C3P0Registry.reregister(C3P0Registry.java
:242)
at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(Pool
BackedDataSourceBase.java:228)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(
AbstractPoolBackedDataSource.java:62)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledD
ataSource.java:109)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledD
ataSource.java:105)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
DataSourceC3PO(DataSourceFactoryBean.java:137)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
Instance(DataSourceFactoryBean.java:84)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
Instance(DataSourceFactoryBean.java:1)
at org.springframework.beans.factory.config.AbstractFactoryBean.
afterPropertiesSet(AbstractFactoryBean.java:130)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory$5.run(AbstractAutowireCapableBeanFactory.java:1459)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1457)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver
.resolveConstructorArguments(ConstructorResolver.java:621)
at org.springframework.beans.factory.support.ConstructorResolver
.instantiateUsingFactoryMethod(ConstructorResolver.java:431)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory
.java:973)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:879)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:575)
at org.springframework.context.support.AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:425)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:93)
at com.liferay.portal.spring.context.ArrayApplicationContext.<in
it>(ArrayApplicationContext.java:31)
at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringU
til.java:54)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java
:136)
at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(S
erviceBuilder.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:217)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:152)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)

at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)

at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251
)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
15:11:16,536 WARN [DynamicPooledDataSourceManagerMBean:243] An Exce
ption occurred while registering/reregistering mbean com.mchange.v2.c3p0:type=Po
oledDataSource[1hge4fn8srpqfv81f7yr5f|4054c9a3]. MBean may not be registered, or
may not work properly.
java.security.AccessControlException: access denied (javax.managemen
t.MBeanTrustPermission register)
at java.security.AccessControlContext.checkPermission(AccessCont
rolContext.java:374)
at java.lang.SecurityManager.checkPermission(SecurityManager.jav
a:568)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMB
eanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registe
rMBean(DefaultMBeanServerInterceptor.java:310)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBean
Server.java:482)
at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManager
MBean.reinitialize(DynamicPooledDataSourceManagerMBean.java:234)
at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManager
MBean.<init>(DynamicPooledDataSourceManagerMBean.java:159)
at com.mchange.v2.c3p0.management.ActiveManagementCoordinator.at
temptManagePooledDataSource(ActiveManagementCoordinator.java:110)
at com.mchange.v2.c3p0.C3P0Registry.incorporate(C3P0Registry.jav
a:233)
at com.mchange.v2.c3p0.C3P0Registry.reregister(C3P0Registry.java
:251)
at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(Pool
BackedDataSourceBase.java:228)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(
AbstractPoolBackedDataSource.java:62)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledD
ataSource.java:109)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledD
ataSource.java:105)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
DataSourceC3PO(DataSourceFactoryBean.java:137)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
Instance(DataSourceFactoryBean.java:84)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
Instance(DataSourceFactoryBean.java:1)
at org.springframework.beans.factory.config.AbstractFactoryBean.
afterPropertiesSet(AbstractFactoryBean.java:130)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory$5.run(AbstractAutowireCapableBeanFactory.java:1459)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1457)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver
.resolveConstructorArguments(ConstructorResolver.java:621)
at org.springframework.beans.factory.support.ConstructorResolver
.instantiateUsingFactoryMethod(ConstructorResolver.java:431)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory
.java:973)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:879)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:575)
at org.springframework.context.support.AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:425)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:93)
at com.liferay.portal.spring.context.ArrayApplicationContext.<in
it>(ArrayApplicationContext.java:31)
at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringU
til.java:54)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java
:136)
at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(S
erviceBuilder.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:217)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:152)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)

at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)

at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251
)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
15:11:16,641 WARN [ActiveManagementCoordinator:115] Failed to set u
p a PooledDataSourceManager mBean. [com.mchange.v2.c3p0:type=PooledDataSource[1h
ge4fn8srpqfv81f7yr5f|4054c9a3]] [c3p0 will still functioning normally, but manag
ement via JMX may not be possible.]
java.security.AccessControlException: access denied (javax.managemen
t.MBeanTrustPermission register)
at java.security.AccessControlContext.checkPermission(AccessCont
rolContext.java:374)
at java.lang.SecurityManager.checkPermission(SecurityManager.jav
a:568)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMB
eanTrustPermission(DefaultMBeanServerInterceptor.java:1824)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registe
rMBean(DefaultMBeanServerInterceptor.java:310)
at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBean
Server.java:482)
at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManager
MBean.reinitialize(DynamicPooledDataSourceManagerMBean.java:234)
at com.mchange.v2.c3p0.management.DynamicPooledDataSourceManager
MBean.<init>(DynamicPooledDataSourceManagerMBean.java:159)
at com.mchange.v2.c3p0.management.ActiveManagementCoordinator.at
temptManagePooledDataSource(ActiveManagementCoordinator.java:110)
at com.mchange.v2.c3p0.C3P0Registry.incorporate(C3P0Registry.jav
a:233)
at com.mchange.v2.c3p0.C3P0Registry.reregister(C3P0Registry.java
:251)
at com.mchange.v2.c3p0.impl.PoolBackedDataSourceBase.<init>(Pool
BackedDataSourceBase.java:228)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.<init>(
AbstractPoolBackedDataSource.java:62)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledD
ataSource.java:109)
at com.mchange.v2.c3p0.ComboPooledDataSource.<init>(ComboPooledD
ataSource.java:105)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
DataSourceC3PO(DataSourceFactoryBean.java:137)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
Instance(DataSourceFactoryBean.java:84)
at com.liferay.portal.dao.jdbc.util.DataSourceFactoryBean.create
Instance(DataSourceFactoryBean.java:1)
at org.springframework.beans.factory.config.AbstractFactoryBean.
afterPropertiesSet(AbstractFactoryBean.java:130)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory$5.run(AbstractAutowireCapableBeanFactory.java:1459)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1457)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.ConstructorResolver
.resolveConstructorArguments(ConstructorResolver.java:621)
at org.springframework.beans.factory.support.ConstructorResolver
.instantiateUsingFactoryMethod(ConstructorResolver.java:431)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory
.java:973)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:879)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveReference(BeanDefinitionValueResolver.java:322)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:575)
at org.springframework.context.support.AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:425)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:93)
at com.liferay.portal.spring.context.ArrayApplicationContext.<in
it>(ArrayApplicationContext.java:31)
at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringU
til.java:54)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java
:136)
at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(S
erviceBuilder.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:217)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:152)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)

at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)

at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251
)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
15:11:17,764 INFO [DialectDetector:69] Determining dialect for MySQ
L 5
15:11:17,885 INFO [DialectDetector:49] Using dialect org.hibernate.
dialect.MySQLDialect
org.springframework.beans.factory.BeanCreationException: Error creat
ing bean with name 'liferaySessionFactory' defined in class path resource [META-
INF/hibernate-spring.xml]: Cannot create inner bean 'com.liferay.portal.kernel.u
til.PortalClassLoaderUtil#48c38157' of type [com.liferay.portal.kernel.util.Port
alClassLoaderUtil] while setting bean property 'sessionFactoryClassLoader'; nest
ed exception is org.springframework.beans.factory.BeanCreationException: Error c
reating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#48c
38157' defined in class path resource [META-INF/hibernate-spring.xml]: Initializ
ation of bean failed; nested exception is org.aspectj.weaver.reflect.ReflectionW
orld$ReflectionWorldException: warning can't determine superclass of missing typ
e org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:194)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)

at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)

at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251
)
at org.apache.tools.ant.Main.runBuild(Main.java:811)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'liferaySessionFactory' defined in class path reso
urce [META-INF/hibernate-spring.xml]: Cannot create inner bean 'com.liferay.port
al.kernel.util.PortalClassLoaderUtil#48c38157' of type [com.liferay.portal.kerne
l.util.PortalClassLoaderUtil] while setting bean property 'sessionFactoryClassLo
ader'; nested exception is org.springframework.beans.factory.BeanCreationExcepti
on: Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoa
derUtil#48c38157' defined in class path resource [META-INF/hibernate-spring.xml]
: Initialization of bean failed; nested exception is org.aspectj.weaver.reflect.
ReflectionWorld$ReflectionWorldException: warning can't determine superclass of
missing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317
)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBea
nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory
.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory
.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBean
Factory.preInstantiateSingletons(DefaultListableBeanFactory.java:575)
at org.springframework.context.support.AbstractApplicationContex
t.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContex
t.refresh(AbstractApplicationContext.java:425)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationCo
ntext.<init>(ClassPathXmlApplicationContext.java:93)
at com.liferay.portal.spring.context.ArrayApplicationContext.<in
it>(ArrayApplicationContext.java:31)
at com.liferay.portal.spring.util.SpringUtil.loadContext(SpringU
til.java:54)
at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java
:136)
at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(S
erviceBuilder.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:217)
at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:152)
... 20 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'com.liferay.portal.kernel.util.PortalClassLoaderU
til#48c38157' defined in class path resource [META-INF/hibernate-spring.xml]: In
itialization of bean failed; nested exception is org.aspectj.weaver.reflect.Refl
ectionWorld$ReflectionWorldException: warning can't determine superclass of miss
ing type org.apache.tools.ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.BeanDefinitionValue
Resolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
... 44 more
Caused by: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorl
dException: warning can't determine superclass of missing type org.apache.tools.
ant.loader.AntClassLoader5
[Xlint:cantFindType]
at org.aspectj.weaver.reflect.ReflectionWorld$ExceptionBasedMess
ageHandler.handleMessage(ReflectionWorld.java:129)
at org.aspectj.weaver.Lint$Kind.signal(Lint.java:316)
at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.rais
eCantFindType(MissingResolvedTypeWithKnownSignature.java:232)
at org.aspectj.weaver.MissingResolvedTypeWithKnownSignature.getS
uperclass(MissingResolvedTypeWithKnownSignature.java:98)
at org.aspectj.weaver.patterns.KindedPointcut.fastMatch(KindedPo
intcut.java:144)
at org.aspectj.weaver.patterns.OrPointcut.fastMatch(OrPointcut.j
ava:47)
at org.aspectj.weaver.internal.tools.PointcutExpressionImpl.coul
dMatchJoinPointsInType(PointcutExpressionImpl.java:82)
at org.springframework.aop.aspectj.AspectJExpressionPointcut.mat
ches(AspectJExpressionPointcut.java:233)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.ja
va:200)
at org.springframework.aop.support.AopUtils.canApply(AopUtils.ja
va:254)
at org.springframework.aop.support.AopUtils.findAdvisorsThatCanA
pply(AopUtils.java:286)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAu
toProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117
)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAu
toProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAu
toProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java
:68)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxy
Creator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxy
Creator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapab
leBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1418)
at org.springframework.beans.factory.support.AbstractAutowireCap
ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 46 more
Java Result: -1

BUILD SUCCESSFUL
Total time: 9 seconds

Thanks in advance................

Best Regards,
Ranga Rao Bobbili
Adaequare INC
www.adaequare.com
Ajeet Singh
RE: Liferay 6.1.1 GA2 ServiceBuilder issue
23 de enero de 2013 0:02
Respuesta

Ajeet Singh

Ranking: New Member

Mensajes: 11

Fecha de incorporación: 27 de marzo de 2012

Mensajes recientes

It is clearly mentioned in the log that EXT plugins are not meant to contain new custom services.

Hence generate the services using portlet plugin.

Regards,
Ajeet Singh
Jelmer Kuperus
RE: Liferay 6.1.1 GA2 ServiceBuilder issue
23 de enero de 2013 0:55
Respuesta

Jelmer Kuperus

Ranking: Liferay Legend

Mensajes: 1190

Fecha de incorporación: 10 de marzo de 2010

Mensajes recientes

It looks like a security manager is being used.

Maybe it has something to do with this new property try setting it to false in portal-ext.properties
Jan Geißler
RE: Liferay 6.1.1 GA2 ServiceBuilder issue
23 de enero de 2013 3:02
Respuesta

Jan Geißler

Ranking: Expert

Mensajes: 354

Fecha de incorporación: 5 de julio de 2011

Mensajes recientes

Ajeet Singh:
It is clearly mentioned in the log that EXT plugins are not meant to contain new custom services.

Hence generate the services using portlet plugin.

Regards,
Ajeet Singh



This is the answer. You cannot use ServiceBuilder in ext Plugin.
Ranga Rao Bobbili
RE: Liferay 6.1.1 GA2 ServiceBuilder issue
23 de enero de 2013 9:10
Respuesta

Ranga Rao Bobbili

Ranking: Regular Member

Mensajes: 147

Fecha de incorporación: 20 de julio de 2007

Mensajes recientes

Thanks all for your valuable inputs.
I am able to generate service classes using ServiceBuilder tool in the ext plugin.
As per my knowledge we can still generate service classes using servicebuilder tool in the ext plugin.

I made only one mistake in the service.xml file, i forgot to mention primary key relation for entity.

Best Regards,
Ranga Rao Bobbili
Adaequare INC
Ranga Rao Bobbili
RE: Liferay 6.1.1 GA2 ServiceBuilder issue
23 de enero de 2013 9:12
Respuesta

Ranga Rao Bobbili

Ranking: Regular Member

Mensajes: 147

Fecha de incorporación: 20 de julio de 2007

Mensajes recientes

Thanks jelmer kuperus.
Yes i resolved security exception using your inputs.