掲示板
Unable to create portlet in Liferay IDE
8年前 に Sunil Rai によって更新されました。
Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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)
8年前 に David H Nebinger によって更新されました。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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.
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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?
8年前 に David H Nebinger によって更新されました。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Oh, you're proxying, the gradle plugin may not know anything about how to use the IDE's proxy settings...
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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?
8年前 に Ravi Kumar Gupta によって更新されました。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
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
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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?
8年前 に Ravi Kumar Gupta によって更新されました。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
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
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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.
8年前 に David H Nebinger によって更新されました。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿Sunil 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.
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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.
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE (回答)
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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.
8年前 に Ravi Kumar Gupta によって更新されました。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
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.
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿
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.
8年前 に Kiran Yalavali によって更新されました。
RE: Unable to create portlet in Liferay IDE
Regular Member 投稿: 175 参加年月日: 14/10/15 最新の投稿
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
8年前 に David H Nebinger によって更新されました。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
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...
8年前 に Sunil Rai によって更新されました。
RE: Unable to create portlet in Liferay IDE
Junior Member 投稿: 57 参加年月日: 12/01/31 最新の投稿Kiran 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
7年前 に Vabhav Jain によって更新されました。
RE: Unable to create portlet in Liferay IDE
New Member 投稿: 2 参加年月日: 11/11/24 最新の投稿
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