You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by janandith jayawardena <ja...@gmail.com> on 2008/07/17 20:59:27 UTC
how can i run webloader sample
Hi,
I would like to know how to run the samples/webloader . I've followed
the README.txt file.
but I get the error ,
"cant find org.apache.sling.scripting.core.scripthelper.getService(object)
(apps/sling/webloader/html.esp#34)"
line 34 is this,
"loader = sling.getService(Packages.org.apache.sling.samples.webloader.Webloader);
"
how can I run it correctly.
janandith
Re: how can i run webloader sample
Posted by Alexander Klimetschek <ak...@day.com>.
Note 100% sure, but maybe ".class" must be appended just as in plain Java:
loader = sling.getService(Packages.org.apache.sling.samples.webloader.Webloader.class);
Regards,
Alex
On Thu, Jul 17, 2008 at 8:59 PM, janandith jayawardena
<ja...@gmail.com> wrote:
> Hi,
>
> I would like to know how to run the samples/webloader . I've followed
> the README.txt file.
> but I get the error ,
>
> "cant find org.apache.sling.scripting.core.scripthelper.getService(object)
> (apps/sling/webloader/html.esp#34)"
>
> line 34 is this,
>
> "loader = sling.getService(Packages.org.apache.sling.samples.webloader.Webloader);
> "
>
> how can I run it correctly.
>
> janandith
>
--
Alexander Klimetschek
alexander.klimetschek@day.com
Re: how can i run webloader sample
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Fri, Jul 18, 2008 at 6:02 AM, janandith jayawardena
<ja...@gmail.com> wrote:
> ...How do I get the revision number and checkout the correct code in svn...
When you do "svn up", svn prints the revision number after updating -
that's usually the number that I indicate in bug reports or comments.
Later, "svn info" prints the current revision number.
If you want to be sure that your local sandbox has no modifications,
use "svn stat" - that should output nothing.
To revert to the svn version, use "svn revert -R ." but note that this
does not delete any locally added files, which "svn stat" would then
show.
If you really really want to be sure that you have the latest code, a
fresh checkout (svn co ...) in an empty directory is the safest way.
-Bertrand
Re: how can i run webloader sample
Posted by janandith jayawardena <ja...@gmail.com>.
Hi Bertrand,
I'll try that.
A small question,
How do I get the revision number and checkout the correct code in svn
janandith.
On Fri, Jul 18, 2008 at 1:40 AM, Bertrand Delacretaz
<bd...@apache.org> wrote:
> Hi,
>
> On Thu, Jul 17, 2008 at 8:59 PM, janandith jayawardena
> <ja...@gmail.com> wrote:
>> ...I would like to know how to run the samples/webloader . I've followed
>> the README.txt file.
>> but I get the error ,
>>
>> "cant find org.apache.sling.scripting.core.scripthelper.getService(object)
>> (apps/sling/webloader/html.esp#34)"...
>
> Seems like your build is not up to date - the webloader sample works
> for me in revision 677702, by doing:
>
> mvn clean build at the top level of the sling source code tree
>
> cd launchpad/webapp ; mvn jetty:run
>
> Then in another console, run this first in samples/webloader/service
> then in samples/webloader/ui:
>
> mvn -P autoInstallBundle clean install -D
> sling.url=http://localhost:8888/system/console
>
> This builds and installs the bundles in the running sling webapp instance.
>
> After this, http://localhost:8888/bin/sling/webloader.html displays
> the webloader form, which works as expected, retrieves and loads
> documents when submitted.
>
> Can you see if this works for you, and if not we'll have to find out
> what's different in your setup.
>
> -Bertrand
>
Re: how can i run webloader sample
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Thu, Jul 17, 2008 at 8:59 PM, janandith jayawardena
<ja...@gmail.com> wrote:
> ...I would like to know how to run the samples/webloader . I've followed
> the README.txt file.
> but I get the error ,
>
> "cant find org.apache.sling.scripting.core.scripthelper.getService(object)
> (apps/sling/webloader/html.esp#34)"...
Seems like your build is not up to date - the webloader sample works
for me in revision 677702, by doing:
mvn clean build at the top level of the sling source code tree
cd launchpad/webapp ; mvn jetty:run
Then in another console, run this first in samples/webloader/service
then in samples/webloader/ui:
mvn -P autoInstallBundle clean install -D
sling.url=http://localhost:8888/system/console
This builds and installs the bundles in the running sling webapp instance.
After this, http://localhost:8888/bin/sling/webloader.html displays
the webloader form, which works as expected, retrieves and loads
documents when submitted.
Can you see if this works for you, and if not we'll have to find out
what's different in your setup.
-Bertrand