我已经从http://download.jboss.org/jbosstools/updates/development/mars/安装了OpenShift v3工具v.3.0.0.Beta2 我在Ubuntu 14.04和Java 8上使用Eclipse Java Mars IDE。
我尝试使用连接向导连接到服务器。我已将openshift.redhat.com用作服务器,并且我已选择基本身份验证协议
但我收到以下错误:
com.openshift.restclient.OpenShiftException: Exception getting the resource
at com.openshift.internal.restclient.DefaultClient.handleHttpClientException(DefaultClient.java:396)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:241)
at com.openshift.internal.restclient.DefaultClient.getCurrentUser(DefaultClient.java:402)
at com.openshift.internal.restclient.authorization.AuthorizationClient.getContext(AuthorizationClient.java:89)
at com.openshift.internal.restclient.DefaultClient.getContext(DefaultClient.java:407)
at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:210)
at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:200)
at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPageModel.connect(ConnectionWizardPageModel.java:263)
at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPage$ConnectJob.doRun(ConnectionWizardPage.java:335)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.openshift.internal.restclient.http.NotFoundException:
404 Not found
我错过了什么吗?
答案 0 :(得分:1)
如果openshift.redhat.com是您在服务器类型中设置“OpenShift v3”时尝试连接的服务器,那么原因很简单:openshift.redhat.com不是v3服务器(还是),它现在是一个仅限v2的服务器。如果您目前想要试用OpenShift v3,则必须自行下载,安装和运行。您可以在此处找到相关说明:http://www.openshift.org//