You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Damian Harden <dh...@gmail.com> on 2008/01/29 10:40:38 UTC
MissingRepositoryException
All,
I just downloaded Sling trunk from SVN (Revision: 616220) and followed
the First Steps. Installation failed and the error.log file contains
many instances of the following exception:
org.apache.sling.core.impl.auth.MissingRepositoryException: No
Repository available to SlingAuthenticator, cannot authenticate
If I then start Sling I see the following errors in the console:
Unresolved package in bundle 7: package; (package=javax.jcr))
org.osgi.framework.BundleException: Unresolved package in bundle 7:
package; (package=javax.jcr)
...
Unresolved package in bundle 9: package; (package=org.apache.commons.
io.output)) org.osgi.framework.BundleException: Unresolved package in
bundle 9: package; (package=org.apache.commons.io.output)
Can anyone suggest why I would be seeing these exceptions and why the
bundles are not correctly setup?
Kind regards,
Damian Harden
Re: MissingRepositoryException
Posted by Bertrand Delacretaz <bd...@apache.org>.
On Jan 29, 2008 1:42 PM, Damian Harden <dh...@gmail.com> wrote:
> Fantastic Bertrand - worked a treat! ;-)
Cool - I've expanded on those explanations at
http://cwiki.apache.org/confluence/display/SLING/Discover+Sling+in+15+minutes
-Bertrand
Re: MissingRepositoryException
Posted by Damian Harden <dh...@gmail.com>.
Fantastic Bertrand - worked a treat! ;-)
Damian
On 29/01/2008, Bertrand Delacretaz <bd...@apache.org> wrote:
> On Jan 29, 2008 11:03 AM, Damian Harden <dh...@gmail.com> wrote:
>
> > I don't know the difference between the launchpad and the launcher.
> > ...However, I would be happy to try the launchpad if some documentation
> > is made available :-)..
>
> Ok - for now here's what you can do:
>
> cd <top level of the Sling source code tree>
> mvn clean install
> cd launchpad/launchpad-webapp
> mvn jetty:run
>
> Now, http://locahost:8080/sling shows the "Sling Management Console"
> page. We don't need it right now, but it shows that Sling is started.
>
> Create a node with an HTTP POST request, for example (or create an
> HTML form that posts there):
>
> curl -F"sling:resourceType=foo/bar" -F"title=some title"
> http://admin:admin@localhost:8080/content/mynode
>
> Now
>
> http://localhost:8080/content/mynode (login: admin/admin)
>
> Displays a text representation saying "Node dumped by
> PlainTextRendererServlet" with the node's properties.
>
> Try
>
> http://localhost:8080/content/mynode.html
>
> which displays a default representation of the node, in HTML.
>
> Now connect to the repository with a WebDAV client, at
> http://admin:admin@localhost:8080/dav/default/ and copy this file
> under /apps/foo/bar/html.esp, creating those folders as needed:
>
> <html>
> <body>
> <h1><%= resource.node.title %></h1>
> </body>
> </html>
>
> Now http://localhost:8080/content/mynode.html displays the title
> property of your node as an H1.
>
> That's a first step: rendering JCR nodes with server-side javascript.
>
> I'll put that up on the wiki - stay tuned for more fun.
>
> -Bertrand
>
Re: MissingRepositoryException
Posted by Bertrand Delacretaz <bd...@apache.org>.
On Jan 29, 2008 11:03 AM, Damian Harden <dh...@gmail.com> wrote:
> I don't know the difference between the launchpad and the launcher.
> ...However, I would be happy to try the launchpad if some documentation
> is made available :-)..
Ok - for now here's what you can do:
cd <top level of the Sling source code tree>
mvn clean install
cd launchpad/launchpad-webapp
mvn jetty:run
Now, http://locahost:8080/sling shows the "Sling Management Console"
page. We don't need it right now, but it shows that Sling is started.
Create a node with an HTTP POST request, for example (or create an
HTML form that posts there):
curl -F"sling:resourceType=foo/bar" -F"title=some title"
http://admin:admin@localhost:8080/content/mynode
Now
http://localhost:8080/content/mynode (login: admin/admin)
Displays a text representation saying "Node dumped by
PlainTextRendererServlet" with the node's properties.
Try
http://localhost:8080/content/mynode.html
which displays a default representation of the node, in HTML.
Now connect to the repository with a WebDAV client, at
http://admin:admin@localhost:8080/dav/default/ and copy this file
under /apps/foo/bar/html.esp, creating those folders as needed:
<html>
<body>
<h1><%= resource.node.title %></h1>
</body>
</html>
Now http://localhost:8080/content/mynode.html displays the title
property of your node as an H1.
That's a first step: rendering JCR nodes with server-side javascript.
I'll put that up on the wiki - stay tuned for more fun.
-Bertrand
Re: MissingRepositoryException
Posted by Damian Harden <dh...@gmail.com>.
Hi Bertrand,
I don't know the difference between the launchpad and the launcher.
However, I would be happy to try the launchpad if some documentation
is made available :-)
Kind regards,
Damian
On 29/01/2008, Bertrand Delacretaz <bd...@apache.org> wrote:
> Hi Damian,
>
> On Jan 29, 2008 10:40 AM, Damian Harden <dh...@gmail.com> wrote:
>
> > ....I just downloaded Sling trunk from SVN (Revision: 616220) and followed
> > the First Steps....
>
> If you don't have a specific reason to use the launcher/app or
> launcher/webapp, it might be better to try the launchpad, as this is
> where the action is at the moment. The launcher stuff will eventually
> be merged with the launchpad to have just one starting point.
>
> Now, there's no documentation on the website about the launchpad, but
> if you'd like to try it today I'd be happy to create such docs - I
> could start right now.
>
> Would that be ok for you? If so I'll start writing right away so that
> you can get started.
>
> -Bertrand
>
Re: MissingRepositoryException
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Damian,
On Jan 29, 2008 10:40 AM, Damian Harden <dh...@gmail.com> wrote:
> ....I just downloaded Sling trunk from SVN (Revision: 616220) and followed
> the First Steps....
If you don't have a specific reason to use the launcher/app or
launcher/webapp, it might be better to try the launchpad, as this is
where the action is at the moment. The launcher stuff will eventually
be merged with the launchpad to have just one starting point.
Now, there's no documentation on the website about the launchpad, but
if you'd like to try it today I'd be happy to create such docs - I
could start right now.
Would that be ok for you? If so I'll start writing right away so that
you can get started.
-Bertrand