Hi,
I experienced the same problem. That's probably Alex and I use the
same environment: MacOSX and starting sling with the launcher/app/
target/....-full.jar
One problem is the HTTP Service bundle that is used which did include
a Servlet API 1.3 implementation (Jetty) although Sling expects a 2.4
API. That caused runtime errors of the JSPs in the sample app. It can
be solved when using the patched HTTP Service bundle from the felix
project [1] written by Felix (thanks to Carsten's help).
But before getting so far that the sample app can run (ie. it's
content are in the JCR), there are other problems. Here are my steps:
---------
1. Start with a clean sling, ie. run launcher/app with an empty sling
home dir (aka empty JCR as well)
2. Deploy the sample app via mvn sling-install
3. There are three errors:
1) cannot register node types
2) resource not found: org/apache/sling/sample/SampleContent
3) resource not found: org/apache/sling/sample/SamplePage
4. The sample app bundle is started anyway
5. But there is no content in the JCR yet (no /apps/sling/...)
6. Now I restart sling (keeping sling home dir and JCR)
7. Upon start of the sample app bundle, the errors 2) and 3) from
above repeat
8. But now suddenly the content is in JCR
9. I go to http://localhost:8080/sample/content/home/moreinfojsp.html
and the pages are displayed (Note that this required the patched HTTP
service mentioned above)
10. But during the compilation of the JSPs there are also lots of
exceptions in the log like:
org.apache.felix.moduleloader.ResourceNotFoundException: org/apache/
sling/scripting.class
org.apache.felix.moduleloader.ResourceNotFoundException: org/apache/
sling/scripting/jsp.class
org.apache.felix.moduleloader.ResourceNotFoundException: org/apache/
sling/scripting/jsp/jasper.class
org.apache.felix.moduleloader.ResourceNotFoundException: org/apache/
sling/scripting/jsp/jasper/runtime.class
and so on...
and this one:
java.lang.ClassNotFoundException: *** Class
'org.apache.jsp.apps.sling.SampleContent.html_jsp' was not found.
Bundle 28 does not import package
'org.apache.jsp.apps.sling.SampleContent', nor is the package exported
by any other bundle or available from the system class loader.
All of these are WARN level, so maybe they are "normal" !?
---------
Any ideas? I talked with Carsten about it and he also was wondering if
the order of nodetype and content loading was mixed up...
Alex
[1] https://issues.apache.org/jira/browse/FELIX-55
--
Alexander Klimetschek
[EMAIL PROTECTED]