Fórum
Unable to create portlet in Liferay IDE
Sunil Rai, modificado 8 Anos atrás.
Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
While creating portlet in Liferay IDE it is throwing error. Check below details for error:
The server is connected with internet and other plugins are installed from marketplace. Please suggest.
(Liferay Version: liferay-portal-6.2-ce-ga5 and SDK Version: liferay-plugins-sdk-6.2-ce-ga5)
Downloading https://services.gradle.org/distributions/gradle-2.2.1-bin.zip
Exception in thread "main" java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at org.gradle.wrapper.Download.downloadInternal(Download.java:56)
at org.gradle.wrapper.Download.download(Download.java:42)
at org.gradle.wrapper.Install$1.call(Install.java:57)
at org.gradle.wrapper.Install$1.call(Install.java:44)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:44)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)</init>
The server is connected with internet and other plugins are installed from marketplace. Please suggest.
(Liferay Version: liferay-portal-6.2-ce-ga5 and SDK Version: liferay-plugins-sdk-6.2-ce-ga5)
David H Nebinger, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Clearly it's a network issue.
Can you get to https://services.gradle.org? Does the name resolve?
I mean, it's hardly a liferay problem and points to an issue in your environment.
Can you get to https://services.gradle.org? Does the name resolve?
I mean, it's hardly a liferay problem and points to an issue in your environment.
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
I am able to access https://services.gradle.org/. I have also verified the Liferay IDE for proxy configuration and it is showing correct configuration.
Also, as mentioned in earlier post I am able to install the plugins from marketplace and network is working fine.
Is there any other configuration that should be checked?
If automatic installation is not working then how I can install it manually?
Also, as mentioned in earlier post I am able to install the plugins from marketplace and network is working fine.
Is there any other configuration that should be checked?
If automatic installation is not working then how I can install it manually?
David H Nebinger, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
Oh, you're proxying, the gradle plugin may not know anything about how to use the IDE's proxy settings...
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
As the server is inside enterprise network internet connection is accessed via proxy server.
Any workaround to solve gradle issue?
Any workaround to solve gradle issue?
Ravi Kumar Gupta, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
I guess, you need to update your gradle.properties file for proxy configuration. Since gradle will not pick proxy configuration from IDE automatically.
https://docs.gradle.org/current/userguide/build_environment.html
https://docs.gradle.org/current/userguide/build_environment.html
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
It is still not working after proxy configuration for HTTP & HTTPS in gradle.properties file.
Any other suggestion for this issue?
if the automatic download is not working then how can I install the downloaded ZIP file of gradle?
Any other suggestion for this issue?
if the automatic download is not working then how can I install the downloaded ZIP file of gradle?
Ravi Kumar Gupta, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Something helpful here?
https://docs.gradle.org/current/userguide/dependency_management.html#sub:file_dependencies
https://docs.gradle.org/current/userguide/dependency_management.html#sub:file_dependencies
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
I know how to install the gradle for build task but not sure about the configuration for liferay sdk.
I tried below methods but not able to resolve:
1) Download and installation gradle. Set the environment variable to point to this installation.
2) In eclipse IDE installed "gradle integration" plugin and under preferences section updated the path for gradle.
I tried below methods but not able to resolve:
1) Download and installation gradle. Set the environment variable to point to this installation.
2) In eclipse IDE installed "gradle integration" plugin and under preferences section updated the path for gradle.
David H Nebinger, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens RecentesSunil Rai:
As the server is inside enterprise network internet connection is accessed via proxy server.
Any workaround to solve gradle issue?
What? You shouldn't be building/developing on the server.
You build/develop locally on a dev system and then deploy the artifacts to the server.
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
I have tried to do the similar steps in my local machine but it is not working. Again local machine can also access internet via proxy server only.
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE (Resposta)
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
As there is no other changes are working I connected the machine directly with internet (without proxy) and build was successful
There should be guideline available for this issue on how to setup the environment if you are working behind the proxy.
There should be guideline available for this issue on how to setup the environment if you are working behind the proxy.
Ravi Kumar Gupta, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Good to know. However, that's not going to be an available option always.. is it?
I guess this issue should be linked with gradle rather than liferay IDE.
I guess this issue should be linked with gradle rather than liferay IDE.
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens Recentes
As mentioned above I tried to setup gradle with proxy but it is not working properly. Anyway I will take the help in technical forums to get more details about this issue. I will update here if any relevant details is found. Thanks for your efforts.
Kiran Yalavali, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Regular Member Postagens: 175 Data de Entrada: 15/10/14 Postagens Recentes
Hi Sunil,
I'm also facing same problem if ur side problem was solved send to me that link or code,
Please help me.
Thanks,
kiran
I'm also facing same problem if ur side problem was solved send to me that link or code,
Please help me.
Thanks,
kiran
David H Nebinger, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
You guys might want to join the Liferay 7 explorers on dev.liferay.com and post the messages there; that's where the Liferay folks are hanging out asking LR7 questions, you're not going to get much traction here...
Sunil Rai, modificado 8 Anos atrás.
RE: Unable to create portlet in Liferay IDE
Junior Member Postagens: 57 Data de Entrada: 31/01/12 Postagens RecentesKiran Yalavali:
Hi Sunil,
I'm also facing same problem if ur side problem was solved send to me that link or code,
Please help me.
Thanks,
kiran
Hi Kiran,
I am still checking for the correct configuration for proxy settings. While developing on IDE you may get IVY dependency issue as well. The work around for now is to connect directly with internet.
Thanks,
Sunil
Vabhav Jain, modificado 7 Anos atrás.
RE: Unable to create portlet in Liferay IDE
New Member Postagens: 2 Data de Entrada: 24/11/11 Postagens Recentes
Hi Sunil/Kiran,
Is that issue resolved. I am facing the same issue from my Liferay-DXP IDE. I am facing the issue when I am creating the Liferay Module project. Getting the given below error.
Downloading https://services.gradle.org/distributions/gradle-2.1.14-bin.zip
2
3Exception in thread "main" java.net.ConnectException: Connection refused: connect
4 at java.net.DualStackPlainSocketImpl.connect0(Native Method)
Thanks,
Vabhav Jain
Is that issue resolved. I am facing the same issue from my Liferay-DXP IDE. I am facing the issue when I am creating the Liferay Module project. Getting the given below error.
Downloading https://services.gradle.org/distributions/gradle-2.1.14-bin.zip
2
3Exception in thread "main" java.net.ConnectException: Connection refused: connect
4 at java.net.DualStackPlainSocketImpl.connect0(Native Method)
Thanks,
Vabhav Jain