留言板
Unable to create portlet in Liferay IDE
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,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Junior Member 帖子: 57 加入日期: 12-1-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?
David H Nebinger,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
Oh, you're proxying, the gradle plugin may not know anything about how to use the IDE's proxy settings...
Sunil Rai,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Junior Member 帖子: 57 加入日期: 12-1-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?
Ravi Kumar Gupta,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 帖子: 1302 加入日期: 09-6-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
Sunil Rai,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Junior Member 帖子: 57 加入日期: 12-1-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?
Ravi Kumar Gupta,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 帖子: 1302 加入日期: 09-6-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
Sunil Rai,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Junior Member 帖子: 57 加入日期: 12-1-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.
David H Nebinger,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子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.
Sunil Rai,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Junior Member 帖子: 57 加入日期: 12-1-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.
Sunil Rai,修改在8 年前。
RE: Unable to create portlet in Liferay IDE (答复)
Junior Member 帖子: 57 加入日期: 12-1-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.
Ravi Kumar Gupta,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 帖子: 1302 加入日期: 09-6-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.
Sunil Rai,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Junior Member 帖子: 57 加入日期: 12-1-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.
Kiran Yalavali,修改在8 年前。
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
David H Nebinger,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Liferay Legend 帖子: 14919 加入日期: 06-9-2 最近的帖子
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,修改在8 年前。
RE: Unable to create portlet in Liferay IDE
Junior Member 帖子: 57 加入日期: 12-1-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
Vabhav Jain,修改在7 年前。
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