Message Boards

Module status is active, but not showing on widget

Dioni Aditama, modified 5 Years ago.

Module status is active, but not showing on widget

New Member Posts: 4 Join Date: 3/16/19 Recent Posts
Hi all,

Im develop a angular portlet base on yo liferay bundle.
My portlet short descirption is to create Alfresco login base on angular ng2-alfresco-core and ng2-alfresco-login component.
everything fine when i exceute npm run-script built, and then i deploy it to server.

In Liferay catalina it show STARTED alfresco-login, and i check in Liferay App Manager the portlet is in active status, but when i want to use it the portlet didnt show inside Widget menu.

I try to restart the Liferay server but it stop on '1 theme for classic-theme is available for use'.

So, im confuse what is wrong with my module?
Wondering someone here can help me to solve this problem.

For your information my module size is 473MB.

Thank you
thumbnail
Olaf Kock, modified 5 Years ago.

RE: Module status is active, but not showing on widget

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts
Dioni Aditama

So, im confuse what is wrong with my module?
Wondering someone here can help me to solve this problem.

For your information my module size is 473MB.
Without knowing your code, we can't help you.

473MB? That's not a module - that's one third of Liferay's own size. You're building something weird, but not what I'd name a module.
Dioni Aditama, modified 5 Years ago.

RE: Module status is active, but not showing on widget

New Member Posts: 4 Join Date: 3/16/19 Recent Posts
Olaf Kock
Dioni Aditama

So, im confuse what is wrong with my module?
Wondering someone here can help me to solve this problem.

For your information my module size is 473MB.
Without knowing your code, we can't help you.

473MB? That's not a module - that's one third of Liferay's own size. You're building something weird, but not what I'd name a module.

Thank you for response my thread sir.
About the size i think liferay npm bundler bundle the used dependcy from my code, but i dont know for sure.
Im doing to create a widget with liferay angular npm bundler, and yeoman. I look at the structure its familiar with angular Alfreco App Dev Framework, and i try to create simple login widget into Alfresco based on ADF sample, i try to npm start using webpack and the code is run without error, and then i change the build script with 'tsc && npm run copy-assets && liferay-npm-bundler and its build success. The .jar file i put into deploy folder and i start the Liferay server. The catalina show me that the module is deployed and started, i check in App Manager the status is active.

Here i attach the code

Thank you

Attachments:

thumbnail
Christoph Rabel, modified 5 Years ago.

RE: Module status is active, but not showing on widget

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
Just downloaded your code and tried to build it, but there is something wrong.

Calling "tsc" fails:
npm node_modules/ng2-alfresco-core/src/utils/file-utils.ts:19:13 - error TS2304: Cannot find name 'WebKitFileEntry'.


There is also no build.gradle and also no java code, so there is actually no portlet. Could you please open that jar file of yours and post the contents? A couple of screenshots are probably best, to give us some clue.

Ist there a /META-INF/MANIFEST.MF? Could you please attach it?

About the size: Please check if maybe the node_modules get packaged inside the project. 473 MB is not normal, so there has to be at least one huge folder in your jar file.
Dioni Aditama, modified 5 Years ago.

RE: Module status is active, but not showing on widget

New Member Posts: 4 Join Date: 3/16/19 Recent Posts
Christoph RabelJust downloaded your code and tried to build it, but there is something wrong.

Calling "tsc" fails:
npm node_modules/ng2-alfresco-core/src/utils/file-utils.ts:19:13 - error TS2304: Cannot find name 'WebKitFileEntry'.


There is also no build.gradle and also no java code, so there is actually no portlet. Could you please open that jar file of yours and post the contents? A couple of screenshots are probably best, to give us some clue.

Ist there a /META-INF/MANIFEST.MF? Could you please attach it?

About the size: Please check if maybe the node_modules get packaged inside the project. 473 MB is not normal, so there has to be at least one huge folder in your jar file.

Thank you for your response sir.

The error cannot find WebKitFileEntry its because the missing dependencies, i eliminate that error by copying the not exists dependencies from alfresco adf, and also installing the latest typescript dependecies.

Here i attach the screenshots about extracted jar and the manifest.mf.

Thank you sir
thumbnail
Christoph Rabel, modified 5 Years ago.

RE: Module status is active, but not showing on widget

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
I don't think, these screenshots are from the jar file content. There should be a META-INF folder on the screenshot.  Since you have posted a MANIFEST.MF file, there is obviously one.

As far as I can tell from your Manifest file, there is no portlet at all. I am not sure, where you started (probably with the angular portlet) and what you changed (I guess, you deleted the portlet?), but maybe it would be best if you started from scratch and start adding stuff from there.

Also, the jar file is far too big, I guess, the whole node_modules folder is packaged into the jar file.

Note: It's quite possible, that you angular js module actually works and is available as /o/lifealf@1.0.0/lib/main.js (Note: I am not sure about the path here, just guessing here). Even if you want no portlet and just want an angular module, I'd start with the portlet to understand how it works.