You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Peter Svensson <ps...@gmail.com> on 2008/01/24 19:12:41 UTC

A quick build question

I just did svn up, went to trunk and did mvn clean install and then wen down
into microsling-core and tried to do the same, but....

root@peter-desktop:/home/peter/inst/Sling/trunk/microsling/microsling-core#
mvn clean install
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building microsling core
[INFO]    task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory
/home/peter/inst/Sling/trunk/microsling/microsling-core/target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 42 source files to
/home/peter/inst/Sling/trunk/microsling/microsling-core/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

/home/peter/inst/Sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/DefaultSlingServlet.java:[34,27]
cannot find symbol
symbol  : class HttpStatusCodeException
location: package org.apache.sling.api

/home/peter/inst/Sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/renderers/JsonRendererServlet.java:[28,27]
cannot find symbol
symbol  : class HttpStatusCodeException
location: package org.apache.sling.api

/home/peter/inst/Sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/renderers/JsonRendererServlet.java:[132,53]
cannot find symbol
symbol  : class HttpStatusCodeException
location: class
org.apache.sling.microsling.slingservlets.renderers.JsonRendererServlet

/home/peter/inst/Sling/trunk/microsling/microsling-core/src/main/java/org/apache/sling/microsling/slingservlets/MicrojaxGetServlet.java:[30,27]
cannot find symbol
symbol  : class HttpStatusCodeException
location: package org.apache.sling.api


Does this mean ; "Wait a bit, under construction", or is it a real error?

Cheers,
PS

Re: A quick build question

Posted by Peter Svensson <ps...@gmail.com>.
[Up way too early, going to a conference];

OK, it seems that the logs said this;

[INFO] [jetty:run]
[INFO] Configuring Jetty for project: Sling Launchpad Web Application
[INFO] Webapp source directory =
/home/peter/inst/Sling/trunk/launchpad/launchpad-webapp/target/org.apache.sling.launchpad.webapp-
2.0.0-incubator-SNAPSHOT
[INFO] web.xml file =
/home/peter/inst/Sling/trunk/launchpad/launchpad-webapp/target/org.apache.sling.launchpad.webapp-
2.0.0-incubator-SNAPSHOT/WEB-INF/web.xml
[INFO] Classes directory
/home/peter/inst/Sling/trunk/launchpad/launchpad-webapp/target/classes does
not exist
2008-01-25 03:29:51.603::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory =
/home/peter/inst/Sling/trunk/launchpad/launchpad-webapp/target/work
[INFO] Web defaults =  jetty default
[INFO] Web overrides =  none
[INFO] Webapp directory =
/home/peter/inst/Sling/trunk/launchpad/launchpad-webapp/target/org.apache.sling.launchpad.webapp-
2.0.0-incubator-SNAPSHOT
[INFO] Starting jetty 6.1.5 ...
2008-01-25 03:29:51.722::INFO:  jetty-6.1.5
2008-01-25 03:29:52.958::INFO:  No Transaction manager found - if your
webapp requires one, please configure one.
2008-01-25 03:29:54.400:/:INFO:  sling: Servlet sling initialized
2008-01-25 03:29:54.413::INFO:  Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server


2008-01-25 03:30:55.980::WARN:  Committed before 401 Unauthorized
2008-01-25 03:30:55.981::WARN:  /dav/
java.lang.IllegalStateException: Committed
        at org.mortbay.jetty.Response.resetBuffer(Response.java:990)
        at org.mortbay.jetty.Response.sendError(Response.java:238)
        at org.apache.jackrabbit.webdav.WebdavResponseImpl.sendError(
WebdavResponseImpl.java:226)
        at org.apache.jackrabbit.webdav.server.AbstractWebdavServlet.service
(AbstractWebdavServlet.java:199)
        at org.apache.sling.jcr.webdav.SimpleWebDavServlet.service(
SimpleWebDavServlet.java:83)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(
ServletRegistration.java:90)
        at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(
ProxyServlet.java:109)
        at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(
ProxyServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)


Maybe it takess a while to get going and I was to frisk on the buttons?  I
tried it twice, and waited maybe 30-40 sec... after the Start Jetty server
message before mounting. Much longer thant I waited before, so it might be
some config issue somwhere, eprhaps.

Cheers,
PS

On Jan 24, 2008 9:56 PM, Bertrand Delacretaz <bd...@apache.org> wrote:

> On Jan 24, 2008 9:53 PM, Peter Svensson <ps...@gmail.com> wrote:
> > ...Hmm . How do I get the user/pw for the webDAV access?? It's not
> admin/admin
> > anymore, it seems....
>
> It should be admin/admin - if that doesn't work, maybe check the log
> under sling/logs/error.log, if running launchpad-webapp.
>
> -Bertrand (going to bed ;-)
>

Re: A quick build question

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Jan 24, 2008 9:53 PM, Peter Svensson <ps...@gmail.com> wrote:
> ...Hmm . How do I get the user/pw for the webDAV access?? It's not admin/admin
> anymore, it seems....

It should be admin/admin - if that doesn't work, maybe check the log
under sling/logs/error.log, if running launchpad-webapp.

-Bertrand (going to bed ;-)

Re: A quick build question

Posted by Peter Svensson <ps...@gmail.com>.
Hmm . How do I get the user/pw for the webDAV access?? It's not admin/admin
anymore, it seems.

Cheers,
PS

On Jan 24, 2008 9:43 PM, Peter Svensson <ps...@gmail.com> wrote:

> Thanks!!!! This is jsut the info I needed. I just need a simple, easy to
> use path to esp parsing inside Sling, whatever it's called :)
> The downside is that I can't possibly go to bed yet .
> I'll give it a spin.
> Again. thansk.
>
> PS
>
>
> On Jan 24, 2008 9:33 PM, Bertrand Delacretaz <bd...@apache.org>
> wrote:
>
> > On Jan 24, 2008 7:12 PM, Peter Svensson <ps...@gmail.com> wrote:
> > > ...I just did svn up, went to trunk and did mvn clean install and then
> > wen down
> > > into microsling-core and tried to do the same, but....
> > >
> > > ...cannot find symbol
> > > symbol  : class HttpStatusCodeException...
> >
> > Hmmm..this class doesn't exist anymore - microsling-core is getting
> > out of sync with the rest of Sling, it's time to remove it soon.
> >
> > You should either go back to a previous version that compiles, for
> > example
> >
> > svn co -r 613894 http://svn.apache.org/repos/asf/incubator/sling/trunk/sling
> >
> > which makes no difference w.r.t microsling since we haven't touched
> > since.
> >
> > Or, the launchpad is getting close to the microsling functionality, if
> > you want to try that you can:
> >
> > -build sling as you did
> > -go to launchpad/launchpad-servlets and run "mvn clean install"
> > -go to launchpad/launchpad-webapp and run "mvn clean package jetty:run"
> >
> > This should start Sling at http://localhost:8080 - with the same
> > functionality as microsling-core except the helpful html pages, and
> > with a WebDAV server at http://localhost:8080/dav
> >
> > One difference with microsling is that the launchpad looks for scripts
> > under /apps, so for an nt:unstructured node with no sling:resourceType
> > property for example, the html rendering script would be
> > /apps/nt/unstructured/html.esp
> >
> > Excuse our mess - I hope that we'll have a fully functional version of
> > the launchpad (i.e. as good as microsling but running on OSGi with all
> > Sling's bells and whistles) by mid next week.
> >
> > -Bertrand
> >
>
>

Re: A quick build question

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Jan 24, 2008 9:43 PM, Peter Svensson <ps...@gmail.com> wrote:
> ...The downside is that I can't possibly go to bed yet ....

To make sure you don't go to bed, you can try the rhino debugger: if
you create a file named  /tmp/sling.debug before starting the
launchpad-webapp module, you should see the nice Rhino debugger pop up
when running esp scripts, with the current svn revision.

-Bertrand

Re: A quick build question

Posted by Peter Svensson <ps...@gmail.com>.
Thanks!!!! This is jsut the info I needed. I just need a simple, easy to use
path to esp parsing inside Sling, whatever it's called :)
The downside is that I can't possibly go to bed yet .
I'll give it a spin.
Again. thansk.

PS

On Jan 24, 2008 9:33 PM, Bertrand Delacretaz <bd...@apache.org> wrote:

> On Jan 24, 2008 7:12 PM, Peter Svensson <ps...@gmail.com> wrote:
> > ...I just did svn up, went to trunk and did mvn clean install and then
> wen down
> > into microsling-core and tried to do the same, but....
> >
> > ...cannot find symbol
> > symbol  : class HttpStatusCodeException...
>
> Hmmm..this class doesn't exist anymore - microsling-core is getting
> out of sync with the rest of Sling, it's time to remove it soon.
>
> You should either go back to a previous version that compiles, for example
>
> svn co -r 613894 http://svn.apache.org/repos/asf/incubator/sling/trunk/sling
>
> which makes no difference w.r.t microsling since we haven't touched since.
>
> Or, the launchpad is getting close to the microsling functionality, if
> you want to try that you can:
>
> -build sling as you did
> -go to launchpad/launchpad-servlets and run "mvn clean install"
> -go to launchpad/launchpad-webapp and run "mvn clean package jetty:run"
>
> This should start Sling at http://localhost:8080 - with the same
> functionality as microsling-core except the helpful html pages, and
> with a WebDAV server at http://localhost:8080/dav
>
> One difference with microsling is that the launchpad looks for scripts
> under /apps, so for an nt:unstructured node with no sling:resourceType
> property for example, the html rendering script would be
> /apps/nt/unstructured/html.esp
>
> Excuse our mess - I hope that we'll have a fully functional version of
> the launchpad (i.e. as good as microsling but running on OSGi with all
> Sling's bells and whistles) by mid next week.
>
> -Bertrand
>

Re: A quick build question

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Jan 24, 2008 7:12 PM, Peter Svensson <ps...@gmail.com> wrote:
> ...I just did svn up, went to trunk and did mvn clean install and then wen down
> into microsling-core and tried to do the same, but....
>
> ...cannot find symbol
> symbol  : class HttpStatusCodeException...

Hmmm..this class doesn't exist anymore - microsling-core is getting
out of sync with the rest of Sling, it's time to remove it soon.

You should either go back to a previous version that compiles, for example

svn co -r 613894 http://svn.apache.org/repos/asf/incubator/sling/trunk/ sling

which makes no difference w.r.t microsling since we haven't touched since.

Or, the launchpad is getting close to the microsling functionality, if
you want to try that you can:

-build sling as you did
-go to launchpad/launchpad-servlets and run "mvn clean install"
-go to launchpad/launchpad-webapp and run "mvn clean package jetty:run"

This should start Sling at http://localhost:8080 - with the same
functionality as microsling-core except the helpful html pages, and
with a WebDAV server at http://localhost:8080/dav

One difference with microsling is that the launchpad looks for scripts
under /apps, so for an nt:unstructured node with no sling:resourceType
property for example, the html rendering script would be
/apps/nt/unstructured/html.esp

Excuse our mess - I hope that we'll have a fully functional version of
the launchpad (i.e. as good as microsling but running on OSGi with all
Sling's bells and whistles) by mid next week.

-Bertrand