留言板

When I deploy Portlet it throws error

thumbnail
Sagar A Vyas,修改在12 年前。

When I deploy Portlet it throws error

Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
Hi All,

Need one favor.

I have portlet called MRBS already in server.- Its working fine

Now i have changed some part in service.xml (i.e. add one column only) ,and build service and war.

Now when i deploy this war it will throw error as mention below.

12:05:01,911 INFO  [PortletHotDeployListener:383] Unregistering portlets for MRBS-portlet
12:05:01,942 INFO  [PortletHotDeployListener:414] 1 portlet for MRBS-portlet was unregistered
Loading file:/D:/projects/mrbs/runtimes/tomcat/tomcat-6.0.18/temp/14-MRBS-portlet/WEB-INF/classes/service.properties
12:05:06,505 ERROR [PortletApplicationContext:80] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [com.liferay.portal.spring.aop.ServiceVelocityAdvice] not found
Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
Bean 'velocityHookAdvice'; nested exception is java.lang.ClassNotFoundException: com.liferay.portal.spring.aop.ServiceVelocityAdvice
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [com.liferay.portal.spring.aop.ServiceVelocityAdvice] not found
Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/base-spring.xml]
Bean 'velocityHookAdvice'; nested exception is java.lang.ClassNotFoundException: com.liferay.portal.spring.aop.ServiceVelocityAdvice
        at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:288)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:484)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:389)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:358)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:239)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
        at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
        at com.liferay.portal.spring.context.PortletApplicationContext.loadBeanDefinitions(PortletApplicationContext.java:69)
        at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
        at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:77)
        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.portalInit(PortalClassLoaderServletContextListener.java:89)
        at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:47)
        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:73)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: com.liferay.portal.spring.aop.ServiceVelocityAdvice
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
        at com.liferay.portal.kernel.util.AggregateClassLoader.loadClass(AggregateClassLoader.java:45)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
        at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:89)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.createBeanDefinition(BeanDefinitionParserDelegate.java:610)
        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:465)
        ... 41 more
12:05:09,333 INFO  [DialectDetector:63] Determining dialect for MySQL 5
12:05:09,364 INFO  [DialectDetector:96] Using dialect org.hibernate.dialect.MySQLDialect
Loading file:/D:/projects/mrbs/runtimes/tomcat/tomcat-6.0.18/temp/14-MRBS-portlet/WEB-INF/classes/service.properties
Loading file:/D:/projects/mrbs/runtimes/tomcat/tomcat-6.0.18/temp/14-MRBS-portlet/WEB-INF/classes/service.properties
12:05:11,177 INFO  [ServiceComponentLocalServiceImpl:269] Running mrbs SQL scripts for the first time
12:05:13,270 WARN  [DBUtil:517] Table 'mrbsdemo_bookingattendees' already exists: create table mrbsdemo_BookingAttendees (attendeesId LONG not null,bookingId LONG not null,primary key (attendeesId, bookingId));
12:05:13,286 WARN  [DBUtil:517] Table 'mrbsdemo_bookingfacilitymapping' already exists: create table mrbsdemo_BookingFacilityMapping (bookingId LONG not null,facilitiesId LONG not null,primary key (bookingId, facilitiesId));
12:05:13,302 WARN  [DBUtil:517] Table 'mrbsdemo_bookingrooms' already exists: create table mrbsdemo_BookingRooms (BRMappingId LONG not null primary key,bookingId LONG,roomId LONG,bookingDate DATE null);
12:05:13,302 WARN  [DBUtil:517] Table 'mrbsdemo_citymaster' already exists: create table mrbsdemo_CityMaster (cityId LONG not null primary key,cityName VARCHAR(75) null);
12:05:13,317 WARN  [DBUtil:517] Table 'mrbsdemo_facilitymaster' already exists: create table mrbsdemo_FacilityMaster (facilitiesId LONG not null primary key,facilitiesName VARCHAR(75) null,facilitiesDesc VARCHAR(75) null);
12:05:13,333 WARN  [DBUtil:517] Table 'mrbsdemo_floormaster' already exists: create table mrbsdemo_FloorMaster (floorId LONG not null primary key,locationId LONG,floorName VARCHAR(75) null);
12:05:13,348 WARN  [DBUtil:517] Table 'mrbsdemo_locationmaster' already exists: create table mrbsdemo_LocationMaster (locationId LONG not null primary key,cityId LONG,locationName VARCHAR(75) null);
12:05:13,364 WARN  [DBUtil:517] Table 'mrbsdemo_newbooking' already exists: create table mrbsdemo_NewBooking (bookingId LONG not null primary key,meetingTitle VARCHAR(75) null,meetingDesc VARCHAR(75) null,hostId LONG,fromDate DATE null,toDate DATE null,startTime V
12:05:13,364 WARN  [DBUtil:517] Table 'mrbsdemo_roomfacilitymapping' already exists: create table mrbsdemo_RoomFacilityMapping (roomId LONG not null,facilitiesId LONG not null,primary key (roomId, facilitiesId));
12:05:13,380 WARN  [DBUtil:517] Table 'mrbsdemo_roommaster' already exists: create table mrbsdemo_RoomMaster (roomId LONG not null primary key,cityId LONG,locationId LONG,floorId LONG,roomName VARCHAR(75) null,capacity LONG,extension LONG);
12:05:33,445 INFO  [PortletHotDeployListener:229] Registering portlets for MRBS-portlet
Loading file:/D:/projects/mrbs/runtimes/tomcat/tomcat-6.0.18/temp/14-MRBS-portlet/WEB-INF/classes/portlet.properties
12:05:33,758 INFO  [PortletHotDeployListener:348] 1 portlet for MRBS-portlet is available for use


Any help would be really appreciated.

Thanks,
Sagar Vyas
thumbnail
Bijan Vakili,修改在12 年前。

RE: When I deploy Portlet it throws error

Expert 帖子: 375 加入日期: 09-3-10 最近的帖子
Sagar Vyas,

Did you try restarting app server?
thumbnail
Sagar A Vyas,修改在12 年前。

RE: When I deploy Portlet it throws error

Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
Bijan Vakili:
Sagar Vyas,

Did you try restarting app server?



Hi Bijan,

Thanks for reply.

I have restart server.

I generated latest war file with all changes after removing temp,work folder from webapps and gave new build number to that.

though it throwing some error.

Any idea ? any Pointer ?


Thanks,
Sagar Vyas
thumbnail
Bijan Vakili,修改在12 年前。

RE: When I deploy Portlet it throws error

Expert 帖子: 375 加入日期: 09-3-10 最近的帖子
Sagar,

Do you have other customizations on the portal?

If so, try deploying your portlet on a fresh liferay-tomcat bundle.
thumbnail
Sagar A Vyas,修改在12 年前。

RE: When I deploy Portlet it throws error

Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
Hi Binjal,

Yes I do have some other customized portlets available.

But any ways i have solved problem it was because of WAR that generated on Liferay 5.2.6 version and i was trying to deploy it on LIferay 5.2.3.

So it was version compatibility issue.

Anyways thanks for your support Bijan.

Thanks,
Sagar Vyas