Has any one created a Bean Portlet in Liferay DXP ?
I followed up https://help.liferay.com/hc/en-us/articles/360028708772-Creating-a-Bean-Portlet and executed the command
mvn archetype:generate -DarchetypeGroupId=com.liferay -DarchetypeArtifactId=com.liferay.project.templates.cdi.bean.portlet -DarchetypeVersion=1.0.0 -DgroupId=com.mycompany -DartifactId=com.mycompany.demo.bean.portlet
But getting following Error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.liferay:com.liferay.project.templates.cdi.bean.portlet:1.0.0) -> [Help 1]
Seems template is missing !
Thanks & Regards,
Parth Ghiya
We get the same error - I believe that the reason is that the related development ticket is still in the "In Review" Status:
https://issues.liferay.com/browse/LPS-83990
You can create a Jira account and vote on this ticket to show the developers that many people are interested in this feature.
Best Regards,
Peter
Related
I am using Eclipse 2020-06 with NetSuite 2020.1 IDE, and getting the following error when attempting to deploy a simple SuiteScript project with just one User Event Script.
Some background on successful tasks:
Within Eclipse, I have added a domain of XXXXXX-sb1.suitetalk.api.netsuite.com
When adding my account to this domain within Eclipse, the username/password is accepted
The Eclipse IDE then allows me to manage authentication type for each
role assigned to my account in NetSuite.
I have left each role's Authentication Type as "User Credentials"
On the NetSuite server, I have followed the instructions for installing the SuiteCloud Development Framework (https://4583703-sb1.app.netsuite.com/app/help/helpcenter.nl?fid=chapter_4702629975.html)
Some comments on my Eclipse Environment:
This is a brand new Eclipse download with only NetSuite IDE added
There is only one project in the Eclipse workspace, and that SuitScript project contains just a single auto-generated script with no modifications/references
I've repeated this step multiple times with different projects, and always get the same error message referencing the same application id of "22804373-084A-49DC-8622-4DECD6ED07E7"
So this clearly seems to be a server-side issue.
My questions:
This applicationId is clearly derived from the NetSuite server, any ideas where it is coming from?
Other ideas?
Thanks in advance,
Randy
Try an Account Customization project instead of a SuiteApp which requires an application id
I downloaded liferay 6.1 with bundled tomcat from the website and i am currently trying to add a new repository in the documents and media portlet, using the process described in here.
Although the integration succeeds, in the repository list, the newly created cmis repository (alfresco) displays the following warning: "an unexpected error occured while connecting to the repository". Nothing on the catalina.out and the liferay logs though. Then when i try to create a subfolder, i get the following exception: in apache chemistry CmisRuntimeException: Length Required.
I checked with wireshark and, in fact the POST request from liferay to alfresco misses the content-length indeed. How can i enable it ? has anyone had similar issues ?
Any help will be much appreciated.
Best regards
Portal Settings - Authentication - Use screen name.
Nickname and password for account creating repository should be same as for alfresco.
Add parameters to portal-ext.properties
session.store.password=true and company.security.auth.type=screenName
Create repository. Use URL path /alfresco/service/cmis (not /alfresco/cmisatom). Live repository ID blank.
Read more at
Mounting Multiple CMIS Repositories on Liferay 6.1 and CMIS Repository.
Some strange issue is popping up while trying to deploy a solution in sharepoint.
Error occurred in deployment step 'Retract Solution': Feature 'GUID' is not activated at this scope.
I am able to build and rebuild, but when trying to deploy, the above shown error is raised.
while trying to retract, the error raised is
Feature 'GUID' is not activated at this scope.
It all happend suddenly.....
It was working perfectly till yesterday!!!....
How do i find out whether the feature with ID is activated? also
How do i activate the feature?
Thanks in advance....
Retract and then install the solution again using 'SharePoint 2010 Management Shell' Install-SPSolution –Identity SharePointProject2.wsp –WebApplication -GACDeployment.
Follow http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/12/02/adding-and-deploying-solutions-with-powershell-in-sharepoint-2010.aspx for proper syntax.
Once it run without error confirm that the required features are activated in the site collection.
Please ensure Features are activated. please follow
Go to site setting.Then select manage site features in site action. Then activate that particular feature
hopes it works .
I had the same issue, the account I was using to deploy from visual studio wasn't a site ower. Once I added the account as site owner, It deployed fine.
I modified settings for a Community Site inside Liferay.
Trying to poke and play with Liferay's CMS.
Added this setting= Staging: Remote Live
And now I get this error:
javax.servlet.jsp.JspException:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'runtime' in class com.liferay.taglib.util.VelocityTaglib threw
exception org.apache.jasper.JasperException:
javax.servlet.ServletException: javax.servlet.jsp.JspException:
ServletException in '/html/portlet/staging_bar/view.jsp':
com.liferay.portal.NoSuchLayoutSetBranchException: No LayoutSetBranch
exists with the key {groupId=13309, privateLayout=false, master=true}
at VM_liferay.vm[line 91, column 24]
Can anyone help with what can I change programmatically to be able to get into the app again? I cannot even get to localhost:8080, it gives me this error.
I'm still using the default HSQL database.
think it might be related to this: http://issues.liferay.com/browse/LPS-18606
It looks like the one we had some time ago.
Site crashed after modifying it's settings in Control Panel. After some investigation we've found up that a setting branchingPublic=true affected that.
First of all, find out which site (community) have You modified. For example it is "community1".
In database find the row of this site:
SELECT * FROM group_ WHERE friendlyurl like '%community1%'
And check there what settings it has in column: "typesettings". I recommend copy them to have a backup.
We have changed branchingPublic=true to branchingPublic=false. And restarted the Liferay Portal.
It helped to start running again.
Although Liferay Support didn't reproduce this, I believe it may help You or someone else.
If that doesn't help, try playing with other settings, maybe some other affects the crash. At last you can try remove them all. Just an idea for You!
Kind Regards!
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.