I am trying to deploy a simple standalone war file in liferay tomcat version. It is neither a portlet nor theme. How can I configure the war file to be deployed as a standalone war in liferay tomcat.
I am getting following error
16:45:51,175 ERROR [localhost-startStop-1][HotDeployImpl:211]
com.liferay.portal.kernel.deploy.hot.HotDeployException: Error
registering portlets for travelinsurancetravelinsurance
So, I simply want to skip this registration as a portlet and access in by the url. Is this possible?
What did you try so far? Just deployed to tomcat webapps directory? That should work. Make sure your plugin does not have any Liferay-recognized deployment descriptor, then everything should work and any complaints by Liferay can be ignored. Don't go through Liferay's deploy directory if you're not deploying a Liferay component.
Related
The problem is that I created a Liferay portlet to invoke one
service(name is LocaleContentLocalServiceUtil) created by Liferay Service Builder before,
the service works in Liferay, but when I invoke the service
from portlet, I got NullerpointerException.
And I actived debug mode and found the return value of PortalBeanLocatorUtil.locate(LocaleContentLocalService.class.getName()) in LocaleContentLocalServiceUtil is null.
Does anyone know how to resolve this problem, or can give me some directions, pls help me.
add following property in liferay-plugin-package.properties of your portlet. Make sure service jar is your classpath of deployed portlet webapps.
required-deployment-contexts=your-service-portlet
if this property is not there, try to copy your service-api.jar into tomcat/lib/ext and delete from service and all other portlet.
I have created some theme in Liferay. Then I exported it as a *.war file. My next step was to install it on liferay server and then run. But this theme doesn't work, it is unavailable. Do you know why?
Aditional information ... same I did with some portlets and it works. Thank you.
I am trying to deploy Liferay 6.1 on WAS 7.0.
Though I have deployed it successfully with context path as "lportal", while accessing it I facing following issues
class not found
com.liferay.portal.kernel.servlet.filters.invoker.invokerfilter
exception
Which was resolved somehow by restarting the server.
Currently, I have portlet.jar, portal-service.jar, mysql.jar and hsql.jar in global path i.e
IBM/WebSphere/AppServer/lib/ext folder
Dockbar portlet is not loading up and showing only processing icon
Has anyone tried this and access liferay from WAS successfully?
Any help is appriciated.
I have created a sample Liferay portlet and it has successfully deployed. But, the eclipse console didn't say "1 portlet is ready for use". And, I couldn't find this portlet in the Add >> More.. option on a Liferay page.
As Mark mentioned, it is undeterministic and it sometimes happen. I usually follow the following steps and after this it works normally.
Steps:
remove all the references of the portlet from webapps.
stop the server
deploy the portlet's WAR
restart the server
check the logs if the portlet is deployed.
If possible try to build the WAR again and deploy the new WAR, and follow the previous steps.
Also if this doesn't work try to clear the temp and work directory and again try the previous steps.
Hope this helps.
I have been fighting with this problem for a day. For me it was two things: wrong property of
liferay.home
inside
portal-setup-wizard.properties
Only after correction I was able too see in tomcat logs that my liferay-plugins had higher version than liferay itself. I redownload plugins with correct version and new plugin deployed correctly.
If you've done all the cleaning etc. and it still does not work, there may be another reason for not showing. If you have - for some reson - deactivated the portlet in Liferay, it will remember the setting even though you have undeployed it several times.
So, you must go to Control Panel > App Manager > All Apps > Your portlet name and activate it again!
That is undeterministc but usual error. Try to undeploy the portlet - delete portlet directory under tomcat/webapps and try to deploy again.
I made a web project, packaged it in a war file and deployed in jboss - worked great (I have done this 100 times before and succeeded). Today, I modify the same project and created the war file again and deployed the project to a clustered jboss server (jboss-4.0.5.GA running on Red Hat Enterprise Linux Server release 5.4 (Tikanga)) as usual, I expect the changes to reflect.. When I accessed the project via the browser, my changes do not show. When I deploy the same war file on my laptop (Windows 7) the changes show perfectly! So I stop the jboss server, delete tmp and work directories on the clustered jboss servers plus the war file in farm folder... then deploy the new .war file.. I start the server again.. I expect the changes to show now on the server but they do not!! I have tried this over and over but no success in having the latest .war file run..
Has anyone experienced this and whats the solution?
Did you by any chance deploy to the 'default' configuration, while your cluster is running e.g. the 'all' one?
I thought it was only fair to share the answer. The reason why changes did not reflect was because our ISP was caching javascript and css files. the painful solution was to rename my css files.