[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-01-10 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814341#comment-15814341
 ] 

Robert Munteanu commented on SLING-6448:


How do you start Sling using the jetty-maven-plugin? I have added the following 
change to the pom file:

{noformat}diff --git a/launchpad/builder/pom.xml b/launchpad/builder/pom.xml
index c79fa65de..479437852 100644
--- a/launchpad/builder/pom.xml
+++ b/launchpad/builder/pom.xml
@@ -71,6 +71,11 @@
 
 
 
+  org.eclipse.jetty
+  jetty-maven-plugin
+  9.4.0.v20161208
+
+
 org.apache.sling
 slingstart-maven-plugin
 1.7.0{noformat}

But I get an error when starting up sling with {{mvn clean package 
jetty:run-war}}

{noformat}[WARNING] sling: Failed to start Apache Sling in 
/home/robert/Documents/sources/apache/sling/launchpad/builder/sling/_
java.lang.ClassCircularityError: java/lang/ThreadDeath
at 
org.apache.felix.framework.URLHandlers.createURLStreamHandler(URLHandlers.java:490)
at java.net.URL.getURLStreamHandler(URL.java:1142)
at java.net.URL.(URL.java:599)
at java.net.URL.(URL.java:490)
at java.net.URL.(URL.java:439)
at 
org.eclipse.jetty.util.resource.Resource.newResource(Resource.java:166)
at 
org.eclipse.jetty.util.resource.Resource.newResource(Resource.java:149)
at org.eclipse.jetty.util.TypeUtil.getLoadedFrom(TypeUtil.java:726)
at 
org.eclipse.jetty.webapp.ClasspathPattern.match(ClasspathPattern.java:519)
at 
org.eclipse.jetty.webapp.WebAppContext.isServerClass(WebAppContext.java:811)
at 
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:563)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at 
org.apache.sling.launchpad.base.shared.LauncherClassLoader.loadClass(LauncherClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at 
org.apache.felix.framework.URLHandlers.createURLStreamHandler(URLHandlers.java:490)
at java.net.URL.getURLStreamHandler(URL.java:1142)
at java.net.URL.(URL.java:599)
at java.net.URL.(URL.java:490)
at java.net.URL.(URL.java:439)
at 
org.eclipse.jetty.util.resource.Resource.newResource(Resource.java:166)
at 
org.eclipse.jetty.util.resource.Resource.newResource(Resource.java:149)
at org.eclipse.jetty.util.TypeUtil.getLoadedFrom(TypeUtil.java:726)
at 
org.eclipse.jetty.webapp.ClasspathPattern.match(ClasspathPattern.java:519)
at 
org.eclipse.jetty.webapp.WebAppContext.isServerClass(WebAppContext.java:811)
at 
org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:563)
at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
at 
org.apache.sling.launchpad.base.shared.LauncherClassLoader.loadClass(LauncherClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.sling.launchpad.base.impl.Sling.startup(Sling.java:309)
at org.apache.sling.launchpad.base.impl.Sling.init(Sling.java:350)
at org.apache.sling.launchpad.base.impl.Sling.(Sling.java:212)
at 
org.apache.sling.launchpad.base.webapp.SlingBridge$1.(SlingBridge.java:44)
at 
org.apache.sling.launchpad.base.webapp.SlingBridge.getSlingBridge(SlingBridge.java:44)
at 
org.apache.sling.launchpad.base.webapp.SlingServletDelegate.init(SlingServletDelegate.java:211)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at 
org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:382)
at 
org.apache.sling.launchpad.webapp.SlingServlet.startSling(SlingServlet.java:325)
at 
org.apache.sling.launchpad.webapp.SlingServlet.init(SlingServlet.java:119)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at 
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:634)
at 
org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:418)
at 
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744)
at 
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:348)
at 
org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480)
at 
org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:357)
at 
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442)
at 
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:788)
at 
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
at 
org.eclipse.jetty.webapp.WebAppContext.doStart(WebApp

[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-01-10 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15816842#comment-15816842
 ] 

Ravi Singareddy commented on SLING-6448:


>> mvn clean install
>> mvn jetty:run-war

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-01-10 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15817489#comment-15817489
 ] 

Robert Munteanu commented on SLING-6448:


But how did you change the pom.xml file?

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-01-11 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15818124#comment-15818124
 ] 

Ravi Singareddy commented on SLING-6448:


Added jetty dependency in the pom.xml as follows: Build requires jetty plugin 
to run war file.

.
.
.



  org.eclipse.jetty
  jetty-maven-plugin
  9.3.12.v20160915


org.codehaus.mojo
ianal-maven-plugin



verify-legal-files




.
.
.
.

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-02-04 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15853157#comment-15853157
 ] 

Ravi Singareddy commented on SLING-6448:


Starting Launchpad using jar file
started sling launchpad using following command
>> java –jar target\org.apache.sling.launchpad-9-SNAPSHOT.jar 
>> Logged into http://localhost:8080/system/console/bundles  
Bundle information: 145 bundles in total - all 145 bundles active
_

Starting Launchpad using war file
started sling launchpad using following command
>> mvn jetty:run-war 
>> Logged into http://localhost:8080/system/console/bundles  
Bundle information: 142 bundles in total, 126 bundles active, 4 active 
fragments, 12 bundles installed
Looks like 12 bundles are in installed state and are not active.

87   
Apache Geronimo Bundles: jstl-1.2org.apache.geronimo.bundles.jstl
1.2.0.1 Installed

130  
Apache Sling JSP Tag Libraryorg.apache.sling.scripting.jsp.taglib
2.2.6   sling   Installed

134  
Apache Sling Scripting HTL JavaScript Use 
Providerorg.apache.sling.scripting.sightly.js.provider
1.0.18  sling   Installed
 
 
 
136  
Apache Sling Scripting HTL Read-Eval-Print Loop 
Environmentorg.apache.sling.scripting.sightly.repl
1.0.4   sling   Installed
 
 
 
135  
Apache Sling Scripting HTL Sling Models Use 
Providerorg.apache.sling.scripting.sightly.models.provider
1.0.6   sling   Installed   

129  
Apache Sling Scripting JSP Supportorg.apache.sling.scripting.jsp
2.2.7.SNAPSHOT  sling   Installed

141  
Apache Sling XSS Protection Bundleorg.apache.sling.xss
1.0.16  sling   Installed

73   
Composum Core Consolecom.composum.core.console
1.6.0   composum,core   Installed


72   
Composum Core Sling APIcom.composum.core.commons
1.6.0   composum,core   Installed
 
 
 
75   
Composum Package Managercom.composum.core.pckgmgr
1.6.0   composum,core   Installed
 
 
 
76   
Composum User Managmenentcom.composum.core.usermgnt
1.6.0   composum,core   Installed   

Because 12 Bundles are in installed state, lauchpad running using war is not 
working properly.



> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handl

[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-02-08 Thread Robert Munteanu (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857713#comment-15857713
 ] 

Robert Munteanu commented on SLING-6448:


{quote}Looks like 12 bundles are in installed state and are not active.{quote}

That's interesting. Can you see why these bundles are installed only?

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-02-08 Thread Oliver Lietz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15858707#comment-15858707
 ] 

Oliver Lietz commented on SLING-6448:
-

[~rombert], they are not resolved because of SLING-6502 (removing {{el-api}} 
and {{jsp-api}} from Scripting JSP). Both bundles need to be added, see 
[r1781179|https://svn.apache.org/r1781179].

But do we really want to support {{jetty:run-war}} in {{builder}}? I get 
{{ThreadDeath}} also when running with latest Jetty. And posting to Sling works 
in general ({{launchpad/testing-war}}).

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-02-08 Thread Ravi Singareddy (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15858919#comment-15858919
 ] 

Ravi Singareddy commented on SLING-6448:


Robert Munteanu and Oliver Lietz, We are using Sling.war in our custom web 
application. We are removing all test references from launchpad/testing-war and 
using this war file. If it works, it will be cleaner for us build war from 
launchpad/builder.

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (SLING-6448) Not able to upload file when sling running as war file using curl

2017-02-09 Thread Oliver Lietz (JIRA)

[ 
https://issues.apache.org/jira/browse/SLING-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859368#comment-15859368
 ] 

Oliver Lietz commented on SLING-6448:
-

You should use the WAR from {{launchpad/builder}} or build a custom one with 
{{slingstart}}.

> Not able to upload file when sling running as war file using curl
> -
>
> Key: SLING-6448
> URL: https://issues.apache.org/jira/browse/SLING-6448
> Project: Sling
>  Issue Type: Bug
>  Components: Launchpad
>Affects Versions: Launchpad Builder 9
> Environment: Windows, Apache 
>Reporter: Ravi Singareddy
>
> Here are steps followed
> 1) Checked out code from svn
> svn co http://svn.apache.org/repos/asf/sling/trunk sling
> 2) cd sling
> 3) cd launchpad/builder
> 4) mvn --update-snapshots clean install
> 5) mvn jetty:run-war
> (please note I have add jetty dependency in pom.xml to run above command)
> I have used curl to upload file
> >> curl -u admin:admin http://localhost:8080/content/test.html --upload-file 
> >> test.html
> is giving following error: PUT 405 Error
> d:\curl-7.52.1-win64-mingw\bin\curl.exe -u admin:admin 
> http://localhost:8080/content/test.html --upload-file test.html
> 
> 
> 
> 405 Method PUT not supported
> 
> 
> Method PUT not supported (405)
> The requested URL /content/test.html resulted in an error in Apache Sling
>  Core Default Servlet.
> Request Progress:
> 
>   0 TIMER_START{Request Processing}
>   2 COMMENT timer_end format is {, name
> >} 
>  10 LOG Method=PUT, PathInfo=null
>  21 TIMER_START{handleSecurity}
>2418 TIMER_END{2395,handleSecurity} authenticator 
> org.apache.sling.auth.core.
> impl.SlingAuthenticator@68556f8e returns true
>3517 TIMER_START{ResourceResolution}
>3925 TIMER_END{406,ResourceResolution} URI=/content/test.html resolves to
>  Resource=NonExistingResource, path=/content/test.html
>3936 LOG Resource Path Info: SlingRequestPathInfo: 
> path='/content/landin
> g.html', selectorString='null', extension='html', suf
> fix='null'
>3936 TIMER_START{ServletResolution}
>3941 TIMER_START{resolveServlet(/content/test.html)}
>4367 TIMER_END{423,resolveServlet(/content/test.html)} Using servlet Apac
> he Sling Core Default Servlet
>4371 TIMER_END{434,ServletResolution} URI=/content/test.html handled by S
> ervlet=Apache Sling Core Default Servlet
>4378 LOG Applying Requestfilters
>4385 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4392 LOG Calling filter: 
> org.apache.sling.engine.impl.debug.RequestProgressTr
> ackerLogFilter
>4397 LOG Applying Componentfilters
>4409 TIMER_START{Apache Sling Core Default Servlet#0}
>4425 LOG Applying Error filters
>4428 LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
>4433 TIMER_START{handleError:status=405}
>4577 TIMER_END{143,handleError:status=405} Using handler 
> org.apache.sling.ser
> vlets.resolver.internal.defaults.DefaultErrorHandlerServlet
>5111 TIMER_END{5109,Request Processing} Dumping 
> SlingRequestProgressTracker E
> ntries
> 
> 
> ApacheSling/2.6 (jetty/9.3.12.v20160915, Java HotSpot(TM) 64-Bit 
> Server
>  VM 1.8.0_102, Windows 8 6.2 amd64)
> 
> 
> ___
> But If start sling using executable jar able to upload the file using curl.
> java -Xmx4g -Xms4g -Dsling.home=\var\sling -Dsling.run.modes=oak -jar 
> target\org.apache.sling.launchpad-9-SNAPSHOT.jar start
> Thanks
> Ravi



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)