Slingに関するマニュアルを読むhttp://sling.apache.org/site/46-line-blog.html
フォルダ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.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
...
誰かがSlinglaunchpadディレクトリにコンテンツを追加しましたか?
アップデート:
content(blog.html file)がローカルフォルダに追加されました:
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\blog
記事でアドバイスされたように(私が理解しているように)
それはmvn clean install
から行われd:\workspaceSling\sling\launchpad\content\pom.xml
たので、ターゲットに構造を取得しました:
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
2.このURLは次のURLでも利用できます。
http://localhost:8080/sling-test/sling/sling-test.html
ローカルファイルに対応します:
d:\workspaceSling\sling\launchpad\content\src\main\resources\content\sling-test\sling\sling-test.html
したがって、カスタムで手動で追加したコンテンツがApacheSlingサーバーに表示されないという主要な問題