添加到/launchpad目录时未找到Apache Sling资源
关于吊索的阅读手册 已将文件夹blog和blog.html添加到目标:添加到/launchpad目录时未找到Apache Sling资源,apache,exception,resources,sling,Apache,Exception,Resources,Sling,关于吊索的阅读手册 已将文件夹blog和blog.html添加到目标: \launchpad\content\src\main\resources\content\ 但它仍然无法从URL访问: http://localhost:8080/blog/blog.html 错误: The requested URL /blog/blog.html resulted in an error in org.apache.sling.servlets.resolver.internal.defaults
\launchpad\content\src\main\resources\content\
但它仍然无法从URL访问:
http://localhost:8080/blog/blog.html
错误:
The requested URL /blog/blog.html resulted in an error in org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet.
Request Progress:
0 (2012-06-14 15:12:32) TIMER_START{Request Processing}
0 (2012-06-14 15:12:32) COMMENT timer_end format is {<elapsed msec>,<timer name>} <optional message>
0 (2012-06-14 15:12:32) LOG Method=GET, PathInfo=/blog/blog.html
0 (2012-06-14 15:12:32) TIMER_START{ResourceResolution}
12 (2012-06-14 15:12:32) TIMER_END{12,ResourceResolution} URI=/blog/blog.html resolves to Resource=NonExistingResource, path=/blog/blog.html
...
如第条所述(据我所知)
它是从d:\workspaceSling\sling\launchpad\content\pom.xml
完成的mvn清洁安装
,因此在目标中获得了结构:
d:\workspaceSling\sling\launchpad\content\target\classes\content\blog\blog.html
反正http://localhost:8080/blog/blog.html
不可用
1.此URL可用:
http://localhost:8080/index.html
它对应于本地文件:
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\index.html
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\sling-test\sling\sling-test.html
2.此URL也可用于:
http://localhost:8080/sling-test/sling/sling-test.html
它对应于本地文件:
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\index.html
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\sling-test\sling\sling-test.html
所以,核心问题是,我的自定义手动添加的内容没有显示在ApacheSling服务器上
内容(blog.html文件)已添加到本地文件夹:
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\blog
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\blog
如第条所述(据我所知)
这是不正确的,在中教程需要的唯一文件是内容存储库中的/apps/blog/blog.esp脚本,而不是文件系统中的脚本。通过WebDAV挂载存储库是创建该文件的一种方法,或者您可以使用curl,如下面提到的“15分钟内吊装”教程中所述
在我看来,如果你回到教程并更仔细地遵循说明,你应该会很好。也许更基础的教程有助于更好地掌握Sling的基础知识。不确定“将内容添加到\launchpad\content\src\main\resources\content\”是什么意思,反斜杠似乎表示您已将该内容添加到文件系统中。您需要更准确地解释您是如何在那里“添加内容”的。Bertrand您好,请参阅我添加的更新部分。hi Bertrand,谢谢您的提示。我从未使用过
WebDAV
。我会尽快尝试反馈。