Hello Carsten, I get the same 404 error when I try to access the base URL (http://localhost:8080/sling). For clarification/confirmation, here's how to reproduce what I'm seeing:
1. Get the latest source from subversion 2. rm -fr ~/.m2/repository #just to be sure i'm working with the latest stuff) 3. set sling.home in the launchpad/base/src/main/webapp/WEB-INF/web.xml file such that it points to my sling/launchpad/base directory 4. mvn clean install (from the main sling directory; that of the sling-builder project) 5. move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT-webapp.war from launchpad/base/target to launchpad/base and call it "sling.war" 6. also move org.apache.sling.launchpad.base-4.4.0-2.5.1-SNAPSHOT.jar up one directory and call it "org.apache.sling.launchpad.base.jar". 7. deploy sling.war in a web container There are more steps here than are mentioned in the wiki for apache sling web app deployment, but this is the only way I could get it to deploy. The webapp war apparently needs to be able to find the "org.apache.sling.launchpad.base.jar" file, which is why I set sling.home to the directory in which it can be found. After your latest change, the above procedure deploys the app without any errors in the server.log file, but returns 404 status from all http requests. Alex On 7/10/14, Carsten Ziegeler <[email protected]> wrote: > Do you get any response if you got to http://localhost:8080/sling ? > > Regards > Carsten > > > 2014-07-10 14:19 GMT+02:00 Alex Renger <[email protected]>: > >> Hello Carsten, >> >> Thank you for your quick response! I tested your change and it does >> indeed resolve the ClassNotFoundException. The server.log file is now >> free of any errors upon deployment. However, I receive a 404 error >> when attempting to add content using the example curl command provided >> on the sling website. Included below is the command I used and the >> response I receive. I've also attached the brief server.log file, for >> whatever it might be worth. >> >> Thanks again for your help. >> >> Alex >> >> >> rengera@din:~$ curl -u admin:admin -F"sling:resourceType=foo/bar" >> -F"title=some title" http://localhost:8080/sling/content/mynode >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html >> xmlns="http://www.w3.org/1999/xhtml"><head><title>Oracle GlassFish >> Server 3.1.2 - Error report</title><style type="text/css"><!--H1 >> >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} >> H2 >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} >> H3 >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} >> BODY >> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} >> B >> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} >> P >> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A >> {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP >> Status 404 - </h1><hr/><p><b>type</b> Status >> report</p><p><b>message</b></p><p><b>description</b>The requested >> resource () is not available.</p><hr/><h3>Oracle GlassFish Server >> 3.1.2</h3></body></html> >> >> On 7/10/14, Carsten Ziegeler <[email protected]> wrote: >> > Hi, >> > >> > thanks for reporting! This looks like a bug to me, I've just committed >> > a >> > potential fix. >> > Could you please checkout the latest from svn and test with that >> > version? >> > >> > Regards >> > Carsten >> > >> > >> > 2014-07-09 16:36 GMT+02:00 Alex Renger <[email protected]>: >> > >> >> Hello, >> >> >> >> I have encountered a problem while trying to follow the instructions >> >> provided here: >> >> >> >> https://cwiki.apache.org/confluence/display/SLING/App+Server+Deployment >> >> >> >> I posted my question on stackoverflow, here: >> >> >> >> >> >> >> http://stackoverflow.com/questions/24656210/osgi-logservice-error-when-deploying-apache-sling-in-an-app-container >> >> >> >> But I also wanted to submit this question to you all. Thank you for >> >> any help you can provide! >> >> >> >> Alex >> >> >> > >> > >> > >> > -- >> > Carsten Ziegeler >> > Adobe Research Switzerland >> > [email protected] >> > >> > > > > -- > Carsten Ziegeler > Adobe Research Switzerland > [email protected] >
