Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
sure thanks On Thu, May 28, 2009 at 11:13 PM, Mike Müller mike...@mysign.ch wrote: Hi Benjamin Thank you for your corrections. I took it over to the Sling website. If you have more updates/corrections or even new documenations/examples feel free to contact me. best regards mike -Original Message- From: pub cog [mailto:pub@gmail.com] Sent: Thursday, May 28, 2009 3:53 PM To: sling-dev@incubator.apache.org Subject: Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited) Done. You can review changes http://cwiki.apache.org/confluence/display/SLING/Discover+Slin g+in+15+minutes ;) http://cwiki.apache.org/confluence/pages/viewpreviouspageversi ons.action?pageId=118769 Also, in http://incubator.apache.org/sling/site/architecture.html: ... Web Applications with Sling, *a an* API has been defined... there is an extra a ... Web Applications with Sling, *an* API has been defined... as I said minor ;)
Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
thanks for the explanation :) On Wed, May 27, 2009 at 6:25 PM, Alexander Klimetschek aklim...@day.com wrote: On Wed, May 27, 2009 at 6:04 PM, pub cog pub@gmail.com wrote: I sneak into this thread to ask how does the official website is created ? http://incubator.apache.org/sling/site/ It is created by exporting a separate confluence wiki: http://cwiki.apache.org/confluence/display/SLINGxSITE Write access is restricted. This is different from the public Sling wiki at: http://cwiki.apache.org/confluence/display/SLING I'd like to provide minor enhancements patches to the documentation but I couldn't find it under svn ? http://svn.apache.org/repos/asf/incubator/sling/trunk/site/ ? http://svn.apache.org/repos/asf/incubator/sling/site/ ? Note that a cleanup of the docs is just on it's way, you might ask Mike Müller on how you can provide improvements for the documentation to him: http://markmail.org/message/7vu63i7rketgdozi Regards, Alex -- Alexander Klimetschek alexander.klimetsc...@day.com
Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
Done. You can review changes http://cwiki.apache.org/confluence/display/SLING/Discover+Sling+in+15+minutes ;) http://cwiki.apache.org/confluence/pages/viewpreviouspageversions.action?pageId=118769 Also, in http://incubator.apache.org/sling/site/architecture.html: ... Web Applications with Sling, *a an* API has been defined... there is an extra a ... Web Applications with Sling, *an* API has been defined... as I said minor ;) On Wed, May 27, 2009 at 10:43 PM, Mike Müller mike...@mysign.ch wrote: Hi again snip snap You're very welcome to contribute to the documentation. I duplicated the Discover Sling in 15 minutes page in the public wiki under [1]. Please put your enhancements and corrections there and let me know if you have finished. I will take the new version over to the Sling website after that. sorry forgot the link: [1] http://cwiki.apache.org/confluence/display/SLING/Discover+Sling+in+15+minutes best regards mike
RE: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
Hi Benjamin Thank you for your corrections. I took it over to the Sling website. If you have more updates/corrections or even new documenations/examples feel free to contact me. best regards mike -Original Message- From: pub cog [mailto:pub@gmail.com] Sent: Thursday, May 28, 2009 3:53 PM To: sling-dev@incubator.apache.org Subject: Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited) Done. You can review changes http://cwiki.apache.org/confluence/display/SLING/Discover+Slin g+in+15+minutes ;) http://cwiki.apache.org/confluence/pages/viewpreviouspageversi ons.action?pageId=118769 Also, in http://incubator.apache.org/sling/site/architecture.html: ... Web Applications with Sling, *a an* API has been defined... there is an extra a ... Web Applications with Sling, *an* API has been defined... as I said minor ;)
Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
Hi, On Fri, Apr 24, 2009 at 8:57 AM, conflue...@apache.org wrote: Reviewed 2009-09-24, this page's information is in sync with the current Sling codebase. As noted by Tako Schotanus in a chat, this does seem to prove that Sling's really the future! BR, Jukka Zitting
Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
I sneak into this thread to ask how does the official website is created ? http://incubator.apache.org/sling/site/ I'd like to provide minor enhancements patches to the documentation but I couldn't find it under svn ? http://svn.apache.org/repos/asf/incubator/sling/trunk/site/ ? http://svn.apache.org/repos/asf/incubator/sling/site/ ? I can provide them as plain text in a Jira but I think integration job will be easier if I can provided them as svn diff... ;) On Wed, May 27, 2009 at 5:54 PM, Jukka Zitting jukka.zitt...@gmail.com wrote: Hi, On Fri, Apr 24, 2009 at 8:57 AM, conflue...@apache.org wrote: Reviewed 2009-09-24, this page's information is in sync with the current Sling codebase. As noted by Tako Schotanus in a chat, this does seem to prove that Sling's really the future! BR, Jukka Zitting
Re: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
On Wed, May 27, 2009 at 6:04 PM, pub cog pub@gmail.com wrote: I sneak into this thread to ask how does the official website is created ? http://incubator.apache.org/sling/site/ It is created by exporting a separate confluence wiki: http://cwiki.apache.org/confluence/display/SLINGxSITE Write access is restricted. This is different from the public Sling wiki at: http://cwiki.apache.org/confluence/display/SLING I'd like to provide minor enhancements patches to the documentation but I couldn't find it under svn ? http://svn.apache.org/repos/asf/incubator/sling/trunk/site/ ? http://svn.apache.org/repos/asf/incubator/sling/site/ ? Note that a cleanup of the docs is just on it's way, you might ask Mike Müller on how you can provide improvements for the documentation to him: http://markmail.org/message/7vu63i7rketgdozi Regards, Alex -- Alexander Klimetschek alexander.klimetsc...@day.com
RE: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
Hi On Wed, May 27, 2009 at 6:04 PM, pub cog pub@gmail.com wrote: I sneak into this thread to ask how does the official website is created ? http://incubator.apache.org/sling/site/ It is created by exporting a separate confluence wiki: http://cwiki.apache.org/confluence/display/SLINGxSITE Write access is restricted. This is different from the public Sling wiki at: http://cwiki.apache.org/confluence/display/SLING I'd like to provide minor enhancements patches to the documentation but I couldn't find it under svn ? http://svn.apache.org/repos/asf/incubator/sling/trunk/site/ ? http://svn.apache.org/repos/asf/incubator/sling/site/ ? Note that a cleanup of the docs is just on it's way, you might ask Mike Müller on how you can provide improvements for the documentation to him: http://markmail.org/message/7vu63i7rketgdozi You're very welcome to contribute to the documentation. I duplicated the Discover Sling in 15 minutes page in the public wiki under [1]. Please put your enhancements and corrections there and let me know if you have finished. I will take the new version over to the Sling website after that. best regards mike
RE: [CONF] Apache Sling Website: Discover Sling in 15 minutes (page edited)
Hi again snip snap You're very welcome to contribute to the documentation. I duplicated the Discover Sling in 15 minutes page in the public wiki under [1]. Please put your enhancements and corrections there and let me know if you have finished. I will take the new version over to the Sling website after that. sorry forgot the link: [1] http://cwiki.apache.org/confluence/display/SLING/Discover+Sling+in+15+minutes best regards mike
[jira] Assigned: (SLING-332) Mistakes in the page Discover Sling in 15 minutes
[ https://issues.apache.org/jira/browse/SLING-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger reassigned SLING-332: --- Assignee: Felix Meschberger Mistakes in the page Discover Sling in 15 minutes Key: SLING-332 URL: https://issues.apache.org/jira/browse/SLING-332 Project: Sling Issue Type: Bug Components: Site Reporter: Thilina Buddhika Assignee: Felix Meschberger Priority: Minor In the page http://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html , just below the topic Start the Launchpad, it asks to navigate to the directory launchpad/launchpad-webapp. But there is not a directory named launchpad-webapp inside the launchpad directory. But it has a directory named webapp, for which the instructions given in the page works fine. So this has to be modified. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SLING-332) Mistakes in the page Discover Sling in 15 minutes
[ https://issues.apache.org/jira/browse/SLING-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger resolved SLING-332. - Resolution: Fixed Fix Version/s: 2.0.0 Fixed the site. It should be online within a few hours. NB: We are managing our site in the Confluence Wiki at [1]. So to remind us of any mistakes, you may just add a comment there and need not take the route of creating JIRA. NB2: Your feedback is very much appreciated. Thanks. [1] http://cwiki.apache.org/confluence/display/SLINGxSITE/Index Mistakes in the page Discover Sling in 15 minutes Key: SLING-332 URL: https://issues.apache.org/jira/browse/SLING-332 Project: Sling Issue Type: Bug Components: Site Reporter: Thilina Buddhika Assignee: Felix Meschberger Priority: Minor Fix For: 2.0.0 In the page http://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html , just below the topic Start the Launchpad, it asks to navigate to the directory launchpad/launchpad-webapp. But there is not a directory named launchpad-webapp inside the launchpad directory. But it has a directory named webapp, for which the instructions given in the page works fine. So this has to be modified. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Closed: (SLING-332) Mistakes in the page Discover Sling in 15 minutes
[ https://issues.apache.org/jira/browse/SLING-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thilina Buddhika closed SLING-332. -- thanks for the information. I'll follow that route. Mistakes in the page Discover Sling in 15 minutes Key: SLING-332 URL: https://issues.apache.org/jira/browse/SLING-332 Project: Sling Issue Type: Bug Components: Site Reporter: Thilina Buddhika Assignee: Felix Meschberger Priority: Minor Fix For: 2.0.0 In the page http://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html , just below the topic Start the Launchpad, it asks to navigate to the directory launchpad/launchpad-webapp. But there is not a directory named launchpad-webapp inside the launchpad directory. But it has a directory named webapp, for which the instructions given in the page works fine. So this has to be modified. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: Discover Sling in 15 minutes
Hi Carsten, thanks, but there's a different problem now (see below). I thought that maybe just the tests fail, but mvn jetty:run does not work either: [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking for update s from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist o r no valid version could be found Can I try anything else? Thanks a lot Michael 2008-02-01 15:44:12.609::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2008-02-01 15:44:12.656::INFO: jetty-6.1.1rc1 2008-02-01 15:44:12.812::INFO: Extract jar:file:/C:/dev/launchpad/launchpad/lau nchpad-webapp/target/org.apache.sling.launchpad.webapp- 2.0.0-incubator-SNAPSHOT. war!/ to C:\DOCUME~1\mmarth\LOCALS~1\Temp\Jetty_0_0_0_0_8080_org.apache.sling.la unchpad.webapp-2.0.0-incubator-SNAPSHOT.war__org_apache_sling_launchpad_webapp-2 _0_0-incubator-SNAPSHOT__ybspfb\webapp 2008-02-01 15:44: 21.921:/org.apache.sling.launchpad.webapp-2.0.0-incubator-SNAPS HOT:INFO: sling: Servlet sling initialized 2008-02-01 15:44:21.921::INFO: Extract jar:file:/C:/dev/launchpad/launchpad/lau nchpad-webapp/target/jetty6x/cargocpc.war!/ to C:\DOCUME~1\mmarth\LOCALS~1\Temp\ Jetty_0_0_0_0_8080_cargocpc.war__cargocpc__xflgf3\webapp 2008-02-01 15:44:22.515::INFO: Started SelectChannelConnector @ 0.0.0.0:8080 [INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [8080] [INFO] [surefire:test {execution: surefire-integration-test}] [INFO] Surefire report directory: C:\dev\launchpad\launchpad\launchpad-webapp\ta rget\surefire-reports --- T E S T S --- Running org.apache.sling.launchpad.webapp.integrationtest.PropertyRenderingTest log4j:WARN No appenders could be found for logger ( org.apache.commons.httpclient .HttpClient). log4j:WARN Please initialize the log4j system properly. Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 6, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 10.078 sec F AILURE! Running org.apache.sling.launchpad.webapp.integrationtest.JsonRenderingTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.IncludeTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.GetWithSuffixTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec FAI LURE! Running org.apache.sling.launchpad.webapp.integrationtest.UploadFileTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.ujax.PostServletOrderT est Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec FAI LURE! Running org.apache.sling.launchpad.webapp.integrationtest.NodetypeRenderingTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 6, Failures: 6, Errors:
Re: Discover Sling in 15 minutes
Hmm, that's strange, it seems mvn can't find the jetty plugin. You could try mvn org.mortbay.jetty:mvn-jetty-plugin:6.1.5:run instead Carsten Michael Marth wrote: Hi Carsten, thanks, but there's a different problem now (see below). I thought that maybe just the tests fail, but mvn jetty:run does not work either: [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking for update s from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist o r no valid version could be found Can I try anything else? Thanks a lot Michael 2008-02-01 15:44:12.609::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2008-02-01 15:44:12.656::INFO: jetty-6.1.1rc1 2008-02-01 15:44:12.812::INFO: Extract jar:file:/C:/dev/launchpad/launchpad/lau nchpad-webapp/target/org.apache.sling.launchpad.webapp- 2.0.0-incubator-SNAPSHOT. war!/ to C:\DOCUME~1\mmarth\LOCALS~1\Temp\Jetty_0_0_0_0_8080_org.apache.sling.la unchpad.webapp-2.0.0-incubator-SNAPSHOT.war__org_apache_sling_launchpad_webapp-2 _0_0-incubator-SNAPSHOT__ybspfb\webapp 2008-02-01 15:44: 21.921:/org.apache.sling.launchpad.webapp-2.0.0-incubator-SNAPS HOT:INFO: sling: Servlet sling initialized 2008-02-01 15:44:21.921::INFO: Extract jar:file:/C:/dev/launchpad/launchpad/lau nchpad-webapp/target/jetty6x/cargocpc.war!/ to C:\DOCUME~1\mmarth\LOCALS~1\Temp\ Jetty_0_0_0_0_8080_cargocpc.war__cargocpc__xflgf3\webapp 2008-02-01 15:44:22.515::INFO: Started SelectChannelConnector @ 0.0.0.0:8080 [INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [8080] [INFO] [surefire:test {execution: surefire-integration-test}] [INFO] Surefire report directory: C:\dev\launchpad\launchpad\launchpad-webapp\ta rget\surefire-reports --- T E S T S --- Running org.apache.sling.launchpad.webapp.integrationtest.PropertyRenderingTest log4j:WARN No appenders could be found for logger ( org.apache.commons.httpclient ..HttpClient). log4j:WARN Please initialize the log4j system properly. Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 6, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 10.078 sec F AILURE! Running org.apache.sling.launchpad.webapp.integrationtest.JsonRenderingTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.IncludeTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.GetWithSuffixTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec FAI LURE! Running org.apache.sling.launchpad.webapp.integrationtest.UploadFileTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.ujax.PostServletOrderT est Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec FAI LURE! Running org.apache.sling.launchpad.webapp.integrationtest.NodetypeRenderingTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling
Re: Discover Sling in 15 minutes
Just update from svn and try again :) It works now... Carsten Michael Marth wrote: Guys, just tried to do the 15 minutes tutorial, but I get a compilation error (mvn clean install) - see below. I use C:\dev\launchpadmvn -version Maven version: 2.0.7 Java version: 1.5.0_13 Does anybody have an idea? The error looks strange to me. Also tried to delete my mvn repo, but no success either. thanks for pointers Cheers Michael [INFO] - --- [INFO] Building Sling - ScriptResolver implementation [INFO]task-segment: [clean, install] [INFO] - --- [INFO] [clean:clean] [INFO] Deleting directory C:\dev\launchpad\scripting\resolver\target [INFO] [enforcer:enforce {execution: enforce-java}] [INFO] [dependency:copy {execution: get-bsf3-api}] [INFO] Configured Artifact: org.apache.bsf:bsf-api:3.0-beta2:jar [INFO] Copying bsf-api-3.0-beta2.jar to C:\dev\launchpad\scripting\resolver\targ et\dependency\bsf-api.jar [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 8 source files to C:\dev\launchpad\scripting\resolver\target\cl asses [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\DefaultSlingScript.java:[76,22] type java.util.Dictionary does not ta ke parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\DefaultSlingScript.java:[192,22] type java.util.Enumeration does not take parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandReader.java:[23,16] package java.nio does not exist C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandReader.java:[70,20] cannot find symbol symbol : class CharBuffer location: class org.apache.sling.scripting.resolver.impl.helper.OnDemandReader C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandReader.java:[70,15] read(char[]) is already defined in org.apache.sling.scripting.resolver.impl.helper.OnDemandReader C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\SlingScriptAdapterFactory.java:[75,16] type java.util.List does not t ake parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\SlingScriptAdapterFactory.java:[77,16] type java.util.List does not t ake parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\SlingScriptAdapterFactory.java:[83,17] type java.lang.Class does not take parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandWriter.java:[44,5] cannot find symbol symbol : class Override location: class org.apache.sling.scripting.resolver.impl.helper.OnDemandWriter C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandWriter.java:[51,5] cannot find symbol symbol : class Override location: class org.apache.sling.scripting.resolver.impl.helper.OnDemandWriter On 1/29/08, Gert Vanthienen [EMAIL PROTECTED] wrote: Bernard, An 'svn up;mvn clean install' fixed the issue. Thank you for the fast reponse, Gert Bertrand Delacretaz wrote: On Jan 29, 2008 3:16 PM, Gert Vanthienen [EMAIL PROTECTED] wrote: ...I ran into a problem when executing the 'curl ...' command to add a first node of content: Method POST not supported (405)... When running this? curl -Fsling:resourceType=foo/bar -Ftitle=some title http://admin:[EMAIL PROTECTED]:8080/content/mynode As the Sling modules start asynchronously, what might happen is that they're not ready yet. But startup shouldn't take more than a few seconds on a decent system. If retrying doesn't help, have a look at the log created under launchpad-webapp/target/logs/error.log, and if any errors are reported. I've just added the info about that log file to the wiki page. -Bertrand -- Carsten Ziegeler [EMAIL PROTECTED]
Re: Discover Sling in 15 minutes
Guys, just tried to do the 15 minutes tutorial, but I get a compilation error (mvn clean install) - see below. I use C:\dev\launchpadmvn -version Maven version: 2.0.7 Java version: 1.5.0_13 Does anybody have an idea? The error looks strange to me. Also tried to delete my mvn repo, but no success either. thanks for pointers Cheers Michael [INFO] - --- [INFO] Building Sling - ScriptResolver implementation [INFO]task-segment: [clean, install] [INFO] - --- [INFO] [clean:clean] [INFO] Deleting directory C:\dev\launchpad\scripting\resolver\target [INFO] [enforcer:enforce {execution: enforce-java}] [INFO] [dependency:copy {execution: get-bsf3-api}] [INFO] Configured Artifact: org.apache.bsf:bsf-api:3.0-beta2:jar [INFO] Copying bsf-api-3.0-beta2.jar to C:\dev\launchpad\scripting\resolver\targ et\dependency\bsf-api.jar [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 8 source files to C:\dev\launchpad\scripting\resolver\target\cl asses [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\DefaultSlingScript.java:[76,22] type java.util.Dictionary does not ta ke parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\DefaultSlingScript.java:[192,22] type java.util.Enumeration does not take parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandReader.java:[23,16] package java.nio does not exist C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandReader.java:[70,20] cannot find symbol symbol : class CharBuffer location: class org.apache.sling.scripting.resolver.impl.helper.OnDemandReader C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandReader.java:[70,15] read(char[]) is already defined in org.apache.sling.scripting.resolver.impl.helper.OnDemandReader C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\SlingScriptAdapterFactory.java:[75,16] type java.util.List does not t ake parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\SlingScriptAdapterFactory.java:[77,16] type java.util.List does not t ake parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\SlingScriptAdapterFactory.java:[83,17] type java.lang.Class does not take parameters C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandWriter.java:[44,5] cannot find symbol symbol : class Override location: class org.apache.sling.scripting.resolver.impl.helper.OnDemandWriter C:\dev\launchpad\scripting\resolver\src\main\java\org\apache\sling\scripting\res olver\impl\helper\OnDemandWriter.java:[51,5] cannot find symbol symbol : class Override location: class org.apache.sling.scripting.resolver.impl.helper.OnDemandWriter On 1/29/08, Gert Vanthienen [EMAIL PROTECTED] wrote: Bernard, An 'svn up;mvn clean install' fixed the issue. Thank you for the fast reponse, Gert Bertrand Delacretaz wrote: On Jan 29, 2008 3:16 PM, Gert Vanthienen [EMAIL PROTECTED] wrote: ...I ran into a problem when executing the 'curl ...' command to add a first node of content: Method POST not supported (405)... When running this? curl -Fsling:resourceType=foo/bar -Ftitle=some title http://admin:[EMAIL PROTECTED]:8080/content/mynode As the Sling modules start asynchronously, what might happen is that they're not ready yet. But startup shouldn't take more than a few seconds on a decent system. If retrying doesn't help, have a look at the log created under launchpad-webapp/target/logs/error.log, and if any errors are reported. I've just added the info about that log file to the wiki page. -Bertrand -- Michael Marth, http://dev.day.com
Re: Discover Sling in 15 minutes
no joy either :( Michael Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/mvn-jetty-plugin/6. 1.5/mvn-jetty-plugin-6.1.5.pom Downloading: http://repo.dev.day.com/central/org/mortbay/jetty/mvn-jetty-plugin/ 6.1.5/mvn-jetty-plugin-6.1.5.pom [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.mortbay.jetty ArtifactId: mvn-jetty-plugin Version: 6.1.5 Reason: Unable to download the artifact from any repository org.mortbay.jetty:mvn-jetty-plugin:pom:6.1.5 from the specified remote repositories: central (http://repo1.maven.org/maven2) On 2/1/08, Carsten Ziegeler [EMAIL PROTECTED] wrote: Hmm, that's strange, it seems mvn can't find the jetty plugin. You could try mvn org.mortbay.jetty:mvn-jetty-plugin:6.1.5:run instead Carsten Michael Marth wrote: Hi Carsten, thanks, but there's a different problem now (see below). I thought that maybe just the tests fail, but mvn jetty:run does not work either: [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] org.apache.maven.plugins: checking for updates from central [INFO] org.codehaus.mojo: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-jetty-plugin: checking for update s from central [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist o r no valid version could be found Can I try anything else? Thanks a lot Michael 2008-02-01 15:44:12.609::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2008-02-01 15:44:12.656::INFO: jetty-6.1.1rc1 2008-02-01 15:44:12.812::INFO: Extract jar:file:/C:/dev/launchpad/launchpad/lau nchpad-webapp/target/org.apache.sling.launchpad.webapp- 2.0.0-incubator-SNAPSHOT. war!/ to C:\DOCUME~1\mmarth\LOCALS~1\Temp\Jetty_0_0_0_0_8080_org.apache.sling.la unchpad.webapp-2.0.0-incubator-SNAPSHOT.war__org_apache_sling_launchpad_webapp-2 _0_0-incubator-SNAPSHOT__ybspfb\webapp 2008-02-01 15:44: 21.921:/org.apache.sling.launchpad.webapp-2.0.0-incubator-SNAPS HOT:INFO: sling: Servlet sling initialized 2008-02-01 15:44:21.921::INFO: Extract jar:file:/C:/dev/launchpad/launchpad/lau nchpad-webapp/target/jetty6x/cargocpc.war!/ to C:\DOCUME~1\mmarth\LOCALS~1\Temp\ Jetty_0_0_0_0_8080_cargocpc.war__cargocpc__xflgf3\webapp 2008-02-01 15:44:22.515::INFO: Started SelectChannelConnector @ 0.0.0.0:8080 [INFO] [beddedLocalContainer] Jetty 6.x Embedded started on port [8080] [INFO] [surefire:test {execution: surefire-integration-test}] [INFO] Surefire report directory: C:\dev\launchpad\launchpad\launchpad-webapp\ta rget\surefire-reports --- T E S T S --- Running org.apache.sling.launchpad.webapp.integrationtest.PropertyRenderingTest log4j:WARN No appenders could be found for logger ( org.apache.commons.httpclient ..HttpClient). log4j:WARN Please initialize the log4j system properly. Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 6, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 10.078sec F AILURE! Running org.apache.sling.launchpad.webapp.integrationtest.JsonRenderingTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 7, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.125sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.IncludeTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 0.016sec FA ILURE! Running org.apache.sling.launchpad.webapp.integrationtest.GetWithSuffixTest Checking if the required Sling services are started... Checking if the required Sling services are started... Checking if the required Sling services are started... Tests run: 3, Failures: 3, Errors: 0,
Re: Discover Sling in 15 minutes
Bertrand Delacretaz wrote: On Feb 1, 2008 4:23 PM, Carsten Ziegeler [EMAIL PROTECTED] wrote: ...You could try mvn org.mortbay.jetty:mvn-jetty-plugin:6.1.5:run instead.. that'd be mvn org.mortbay.jetty:maven-jetty-plugin:6.1.5:run Yepp, sorry for the typo. Carsten -- Carsten Ziegeler [EMAIL PROTECTED]
Discover Sling in 15 minutes
I've started working on this page: http://cwiki.apache.org/confluence/display/SLING/Discover+Sling+in+15+minutes To help people get started with the Launchpad. The page will eventually move to the Sling website, but for now guinea pigs^H^H^H^H^H^H^H^H beta testers are welcome! -Bertrand
Re: Discover Sling in 15 minutes
L.S., While following the instructions on the wiki page you mentioned, I ran into a problem when executing the 'curl ...' command to add a first node of content: Method POST not supported (405) The requested URL /content/mynode resulted in an error in Sling Core Default Servlet What have I done wrong here? Gert
Re: Discover Sling in 15 minutes
On 29 Jan 2008, at 23:55, Felix Meschberger wrote: Hi Torgeir, Sorry for that, I am currently committing SLING-198 fixes. If you update the jcr/resource project now, it should compile. A few files still missing? INFO] Compiling 53 source files to /Users/torgeir/java/src/sling/ 15minutes/sling/sling/core/target/classes [INFO] [INFO] Compilation failure /Users/torgeir/java/src/sling/15minutes/sling/sling/core/src/main/java/ org/apache/sling/core/impl/SlingHttpServletResponseImpl.java:[35,37] cannot find symbol symbol : class PathResolver location: package org.apache.sling.jcr.resource /Users/torgeir/java/src/sling/15minutes/sling/sling/core/src/main/java/ org/apache/sling/core/impl/SlingHttpServletResponseImpl.java:[247,8] cannot find symbol symbol : class PathResolver location: class org.apache.sling.core.impl.SlingHttpServletResponseImpl /Users/torgeir/java/src/sling/15minutes/sling/sling/core/src/main/java/ org/apache/sling/core/impl/SlingHttpServletResponseImpl.java:[247,73] cannot find symbol symbol : class PathResolver location: class org.apache.sling.core.impl.SlingHttpServletResponseImpl -- Torgeir Veimo [EMAIL PROTECTED]
Re: Discover Sling in 15 minutes
On Jan 29, 2008 3:52 PM, Felix Meschberger [EMAIL PROTECTED] wrote: ...For me, Sling now builds through the reactor Same here, revision 616367 builds, launchpad-webapp integration tests pass. I didn't have a reactor handy, so I used an atom bomb. Worked fine ;-) -Bertrand
Re: Discover Sling in 15 minutes
On 29 Jan 2008, at 21:22, Bertrand Delacretaz wrote: I've started working on this page: http://cwiki.apache.org/confluence/display/SLING/Discover+Sling+in+15+minutes When running mvn jetty:run in launchpad/launchpad-webapp I get [...] [INFO] [compiler:testCompile] [INFO] Compiling 29 source files to /Users/torgeir/java/src/sling/ 15minutes/sling/launchpad/launchpad-webapp/target/test-classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure /Users/torgeir/java/src/sling/15minutes/sling/launchpad/launchpad- webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ ujax/PostServletDeleteTest.java:[44,75] cannot find symbol symbol : variable DEFAULT_CREATE_SUFFIX location: class org.apache.sling.ujax.UjaxPostServlet /Users/torgeir/java/src/sling/15minutes/sling/launchpad/launchpad- webapp/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/ ujax/PostServletDeleteTest.java:[45,75] cannot find symbol symbol : variable DEFAULT_CREATE_SUFFIX location: class org.apache.sling.ujax.UjaxPostServlet -- Torgeir Veimo [EMAIL PROTECTED]