2

我试图按照https://sling.apache.org/documentation/development/ide-tooling.html上的说明为 Apache Sling 设置 Eclipse 开发环境

尝试连接到外部 Apache Sling 服务器时出现错误。

请参阅下面的屏幕截图

在此处输入图像描述

我从 Eclipse 日志(workspace/.metadata/.log)中得到跟踪

!MESSAGE An internal error occurred during: "Starting Sling Server (external) at localhost".
!STACK 0
java.lang.LinkageError: org/apache/commons/httpclient/auth/AuthScope
    at org.apache.commons.httpclient.HttpMethodDirector.authenticateHost(HttpMethodDirector.java:273)
    at org.apache.commons.httpclient.HttpMethodDirector.authenticate(HttpMethodDirector.java:234)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at org.apache.sling.ide.osgi.impl.HttpOsgiClient.getBundleVersion(HttpOsgiClient.java:71)
    at org.apache.sling.ide.osgi.impl.TracingOsgiClient.getBundleVersion(TracingOsgiClient.java:48)
    at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.installBundle(SlingLaunchpadBehaviour.java:162)
    at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadBehaviour.start(SlingLaunchpadBehaviour.java:111)
    at org.apache.sling.ide.eclipse.core.internal.SlingLaunchpadLaunchConfigurationDelegate.launch(SlingLaunchpadLaunchConfigurationDelegate.java:45)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:731)
    at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3541)
    at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3477)
    at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:367)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

我正在开发 Eclipse 4.2、Maven 3.0.5、ubuntu 14.04 LTS 和 Oracle JAVA 8。我使用的吊索是“org.apache.sling.launchpad-8.jar”

有人有什么主意吗?

请建议

谢谢

4

0 回答 0