You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Michael Erdmann <er...@t-online.de> on 2018/09/08 16:32:10 UTC

Getting started but where is the promiseed fun ?

Hallo,

i am trying to do the first steps  in sling. I followed the instructions given in the "getting started" 
(https://sling.apache.org/documentation/getting-started.html); downloading the jar file  org.apache.sling.starter-10.jar
from https://sling.apache.org/project-information.html and starting it using java -jar org.apache.sling.starter-10.jar.

Doing is such a way, the port localhost:8080 will not be opended. The only way  get a port 8080 listening is add
a few options to the command line.

$ java -jar  org.apache.sling.starter-10.jar -j localhost:8080 start

Then i have been trying a few basic things from  https://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html
sopecially crating some contents like but sling complains permanently about a wrong key!

curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode

michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop/Desktop (master) $ curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 280 0 16 100 264 73 1205 --:--:-- --:--:-- --:--:-- 1278ERR: wrong key

I am wondering; but i think i am missing something basic; or i am using the wrong documentation or something is
wrong with the jar file. Pls. could give me some advise what i need to do in order to get it the installment working?!

Some basic information about the setup:
michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop (master) $ java -version java version "10.0.2" 2018-07-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

$ uname -a MINGW64_NT-10.0 DESKTOP-6ST7TKK 2.10.0(0.325/5/3) 2018-06-13 23:34 x86_64 Msys
/Regards
Michael


Re: Getting started but where is the promiseed fun ?

Posted by Michael Erdmann <er...@t-online.de>.
Forget  to attache the log files.
On 08/09/2018 18:32:10, Michael Erdmann <er...@t-online.de> wrote:

Hallo,

i am trying to do the first steps  in sling. I followed the instructions given in the "getting started" 
(https://sling.apache.org/documentation/getting-started.html); downloading the jar file  org.apache.sling.starter-10.jar
from https://sling.apache.org/project-information.html and starting it using java -jar org.apache.sling.starter-10.jar.

Doing is such a way, the port localhost:8080 will not be opended. The only way  get a port 8080 listening is add
a few options to the command line.

$ java -jar  org.apache.sling.starter-10.jar -j localhost:8080 start

Then i have been trying a few basic things from  https://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html
sopecially crating some contents like but sling complains permanently about a wrong key!

curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode

michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop/Desktop (master) $ curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 280 0 16 100 264 73 1205 --:--:-- --:--:-- --:--:-- 1278ERR: wrong key

I am wondering; but i think i am missing something basic; or i am using the wrong documentation or something is
wrong with the jar file. Pls. could give me some advise what i need to do in order to get it the installment working?!

Some basic information about the setup:
michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop (master) $ java -version java version "10.0.2" 2018-07-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

$ uname -a MINGW64_NT-10.0 DESKTOP-6ST7TKK 2.10.0(0.325/5/3) 2018-06-13 23:34 x86_64 Msys
/Regards
Michael


Re: Fw: Re: Fw: Re: Getting started but where is the promiseed fun ?

Posted by Robert Munteanu <ro...@apache.org>.
Hi Michael,

On Sun, 2018-09-09 at 09:35 +0200, Michael Erdmann wrote:
> ------ Forwarded Message --------
> From: Michael Erdmann <er...@t-online.de>
> Date: 09/09/2018 09:34:52
> Subject: Re: Fw: Re: Getting started but where is the promiseed fun ?
> To: users@sling.apache.org
> 
> ".... The "-j" argument defines the control port, see [1]. Please
> leave it
> unset for a default value and the actual Sling content will be served
> on port 0808.
> 
> this start up line seems to work at: http://localhost:8080/index.html
>  (using chrome)
>  java --add-modules java.se.ee -jar  org.apache.sling.starter-10.jar
> 
> http://localhost:8080/index.html. Is some one going to update the
> documentation ?
> 
> Thank you very much

Glad to hear it worked out!

I've updated the documentation at 

  http://sling.apache.org/documentation/getting-started.html

Hope that is enough.

Robert


Fw: Re: Fw: Re: Getting started but where is the promiseed fun ?

Posted by Michael Erdmann <er...@t-online.de>.
------ Forwarded Message --------
From: Michael Erdmann <er...@t-online.de>
Date: 09/09/2018 09:34:52
Subject: Re: Fw: Re: Getting started but where is the promiseed fun ?
To: users@sling.apache.org

".... The "-j" argument defines the control port, see [1]. Please leave it
unset for a default value and the actual Sling content will be served
on port 0808.

this start up line seems to work at: http://localhost:8080/index.html (using chrome)
 java --add-modules java.se.ee -jar  org.apache.sling.starter-10.jar

http://localhost:8080/index.html. Is some one going to update the documentation ?

Thank you very much

On 08/09/2018 23:53:31, Robert Munteanu <ro...@apache.org> wrote:
Hi Michael,



On Sat, 2018-09-08 at 19:41 +0200, Michael Erdmann wrote:
> Log files attached
>
> ------ Forwarded Message --------
> From: Michael Erdmann
> Date: 08/09/2018 18:44:40
> Subject: Re: Getting started but where is the promiseed fun ?
> To: users@sling.apache.org
>
> Forget to attache the log files.
> On 08/09/2018 18:32:10, Michael Erdmann
> wrote:
>
> Hallo,
>
> i am trying to do the first steps in sling. I followed the
> instructions given in the "getting started"
> (https://sling.apache.org/documentation/getting-started.html);
> downloading the jar file org.apache.sling.starter-10.jar
> from https://sling.apache.org/project-information.html and starting
> it using java -jar org.apache.sling.starter-10.jar.
>
> Doing is such a way, the port localhost:8080 will not be opended. The
> only way get a port 8080 listening is add
> a few options to the command line.
>
> $ java -jar org.apache.sling.starter-10.jar -j localhost:8080 start

The "-j" argument defines the control port, see [1]. Please leave it
unset for a default value and the actual Sling content will be served
on port 0808.

>
> Then i have been trying a few basic things from
> https://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html
> sopecially crating some contents like but sling complains permanently
> about a wrong key!
>
> curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some
> title" http://localhost:8080/content/mynode
>
> michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop/Desktop (master) $
> curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some
> title" http://localhost:8080/content/mynode % Total % Received %
> Xferd Average Speed Time Time Time Current Dload Upload Total Spent
> Left Speed 100 280 0 16 100 264 73 1205 --:--:-- --:--:-- --:--:--
> 1278ERR: wrong key

See above, this indicates that the control port is being accessed.

>
> I am wondering; but i think i am missing something basic; or i am
> using the wrong documentation or something is
> wrong with the jar file. Pls. could give me some advise what i need
> to do in order to get it the installment working?!
>
> Some basic information about the setup:
> michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop (master) $ java
> -version java version "10.0.2" 2018-07-17 Java(TM) SE Runtime
> Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM
> 18.3 (build 10.0.2+13, mixed mode)

Also, for now please add --add-modules java.se.ee to the java
invocation. The next release will remove the requirement, but for now
it's needed. I've also updated [2] to reflect that.

Hopefully that works better and generates a bit of fun ;-)

Best,

Robert

>
> $ uname -a MINGW64_NT-10.0 DESKTOP-6ST7TKK 2.10.0(0.325/5/3) 2018-06-
> 13 23:34 x86_64 Msys
> /Regards
> Michael
>

[1]:
http://sling.apache.org/documentation/the-sling-engine/the-sling-launchpad.html
[2]: http://sling.apache.org/documentation/getting-started.html


Re: Fw: Re: Getting started but where is the promiseed fun ?

Posted by Michael Erdmann <er...@t-online.de>.
".... The "-j" argument defines the control port, see [1]. Please leave it
unset for a default value and the actual Sling content will be served
on port 0808.

this start up line seems to work at: http://localhost:8080/index.html (using chrome)
 java --add-modules java.se.ee -jar  org.apache.sling.starter-10.jar

http://localhost:8080/index.html. Is some one going to update the documentation ?

Thank you very much

On 08/09/2018 23:53:31, Robert Munteanu <ro...@apache.org> wrote:
Hi Michael,



On Sat, 2018-09-08 at 19:41 +0200, Michael Erdmann wrote:
> Log files attached
>
> ------ Forwarded Message --------
> From: Michael Erdmann
> Date: 08/09/2018 18:44:40
> Subject: Re: Getting started but where is the promiseed fun ?
> To: users@sling.apache.org
>
> Forget to attache the log files.
> On 08/09/2018 18:32:10, Michael Erdmann
> wrote:
>
> Hallo,
>
> i am trying to do the first steps in sling. I followed the
> instructions given in the "getting started"
> (https://sling.apache.org/documentation/getting-started.html);
> downloading the jar file org.apache.sling.starter-10.jar
> from https://sling.apache.org/project-information.html and starting
> it using java -jar org.apache.sling.starter-10.jar.
>
> Doing is such a way, the port localhost:8080 will not be opended. The
> only way get a port 8080 listening is add
> a few options to the command line.
>
> $ java -jar org.apache.sling.starter-10.jar -j localhost:8080 start

The "-j" argument defines the control port, see [1]. Please leave it
unset for a default value and the actual Sling content will be served
on port 0808.

>
> Then i have been trying a few basic things from
> https://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html
> sopecially crating some contents like but sling complains permanently
> about a wrong key!
>
> curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some
> title" http://localhost:8080/content/mynode
>
> michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop/Desktop (master) $
> curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some
> title" http://localhost:8080/content/mynode % Total % Received %
> Xferd Average Speed Time Time Time Current Dload Upload Total Spent
> Left Speed 100 280 0 16 100 264 73 1205 --:--:-- --:--:-- --:--:--
> 1278ERR: wrong key

See above, this indicates that the control port is being accessed.

>
> I am wondering; but i think i am missing something basic; or i am
> using the wrong documentation or something is
> wrong with the jar file. Pls. could give me some advise what i need
> to do in order to get it the installment working?!
>
> Some basic information about the setup:
> michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop (master) $ java
> -version java version "10.0.2" 2018-07-17 Java(TM) SE Runtime
> Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM
> 18.3 (build 10.0.2+13, mixed mode)

Also, for now please add --add-modules java.se.ee to the java
invocation. The next release will remove the requirement, but for now
it's needed. I've also updated [2] to reflect that.

Hopefully that works better and generates a bit of fun ;-)

Best,

Robert

>
> $ uname -a MINGW64_NT-10.0 DESKTOP-6ST7TKK 2.10.0(0.325/5/3) 2018-06-
> 13 23:34 x86_64 Msys
> /Regards
> Michael
>

[1]:
http://sling.apache.org/documentation/the-sling-engine/the-sling-launchpad.html
[2]: http://sling.apache.org/documentation/getting-started.html


Re: Fw: Re: Getting started but where is the promiseed fun ?

Posted by Robert Munteanu <ro...@apache.org>.
Hi Michael,



On Sat, 2018-09-08 at 19:41 +0200, Michael Erdmann wrote:
> Log files attached
> 
> ------ Forwarded Message --------
> From: Michael Erdmann <er...@t-online.de>
> Date: 08/09/2018 18:44:40
> Subject: Re: Getting started but where is the promiseed fun ?
> To: users@sling.apache.org
> 
> Forget  to attache the log files.
> On 08/09/2018 18:32:10, Michael Erdmann <er...@t-online.de>
> wrote:
> 
> Hallo,
> 
> i am trying to do the first steps  in sling. I followed the
> instructions given in the "getting started" 
> (https://sling.apache.org/documentation/getting-started.html);
> downloading the jar file  org.apache.sling.starter-10.jar
> from https://sling.apache.org/project-information.html and starting
> it using java -jar org.apache.sling.starter-10.jar.
> 
> Doing is such a way, the port localhost:8080 will not be opended. The
> only way  get a port 8080 listening is add
> a few options to the command line.
> 
> $ java -jar  org.apache.sling.starter-10.jar -j localhost:8080 start

The "-j" argument defines the control port, see [1]. Please leave it
unset for a default value and the actual Sling content will be served
on port 0808.

> 
> Then i have been trying a few basic things from  
> https://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html
> sopecially crating some contents like but sling complains permanently
> about a wrong key!
> 
> curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some
> title" http://localhost:8080/content/mynode
> 
> michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop/Desktop (master) $
> curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some
> title" http://localhost:8080/content/mynode % Total % Received %
> Xferd Average Speed Time Time Time Current Dload Upload Total Spent
> Left Speed 100 280 0 16 100 264 73 1205 --:--:-- --:--:-- --:--:--
> 1278ERR: wrong key

See above, this indicates that the control port is being accessed.

> 
> I am wondering; but i think i am missing something basic; or i am
> using the wrong documentation or something is
> wrong with the jar file. Pls. could give me some advise what i need
> to do in order to get it the installment working?!
> 
> Some basic information about the setup:
> michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop (master) $ java
> -version java version "10.0.2" 2018-07-17 Java(TM) SE Runtime
> Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM
> 18.3 (build 10.0.2+13, mixed mode)

Also, for now please add --add-modules java.se.ee to the java
invocation. The next release will remove the requirement, but for now
it's needed. I've also updated [2] to reflect that.

Hopefully that works better and generates a bit of fun ;-)

Best,

Robert

> 
> $ uname -a MINGW64_NT-10.0 DESKTOP-6ST7TKK 2.10.0(0.325/5/3) 2018-06-
> 13 23:34 x86_64 Msys
> /Regards
> Michael
> 

[1]: 
http://sling.apache.org/documentation/the-sling-engine/the-sling-launchpad.html
[2]: http://sling.apache.org/documentation/getting-started.html


Fw: Re: Getting started but where is the promiseed fun ?

Posted by Michael Erdmann <er...@t-online.de>.
Log files attached

------ Forwarded Message --------
From: Michael Erdmann <er...@t-online.de>
Date: 08/09/2018 18:44:40
Subject: Re: Getting started but where is the promiseed fun ?
To: users@sling.apache.org

Forget  to attache the log files.
On 08/09/2018 18:32:10, Michael Erdmann <er...@t-online.de> wrote:

Hallo,

i am trying to do the first steps  in sling. I followed the instructions given in the "getting started" 
(https://sling.apache.org/documentation/getting-started.html); downloading the jar file  org.apache.sling.starter-10.jar
from https://sling.apache.org/project-information.html and starting it using java -jar org.apache.sling.starter-10.jar.

Doing is such a way, the port localhost:8080 will not be opended. The only way  get a port 8080 listening is add
a few options to the command line.

$ java -jar  org.apache.sling.starter-10.jar -j localhost:8080 start

Then i have been trying a few basic things from  https://sling.apache.org/documentation/getting-started/discover-sling-in-15-minutes.html
sopecially crating some contents like but sling complains permanently about a wrong key!

curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode

michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop/Desktop (master) $ curl -u admin:admin -F"sling:resourceType=foo/bar" -F"title=some title" http://localhost:8080/content/mynode % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 280 0 16 100 264 73 1205 --:--:-- --:--:-- --:--:-- 1278ERR: wrong key

I am wondering; but i think i am missing something basic; or i am using the wrong documentation or something is
wrong with the jar file. Pls. could give me some advise what i need to do in order to get it the installment working?!

Some basic information about the setup:
michaelerdmann@DESKTOP-6ST7TKK MINGW64 ~/develop (master) $ java -version java version "10.0.2" 2018-07-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)

$ uname -a MINGW64_NT-10.0 DESKTOP-6ST7TKK 2.10.0(0.325/5/3) 2018-06-13 23:34 x86_64 Msys
/Regards
Michael