I want to say thanks to everyone who jumped on my comments and put together a 
plan that described the process of deploying sling.  As a  result I've had some 
success and some failures of getting sling to run on my instance of glassfish. 


First the success. I was able to down load the war file pointed to on the 
downloads page do a deploy into Glassfish and get a running instance of sling. 

That was the big plus. 

The next part of my message is rather verbose, so apologies up front, if I 
missed something obvious, but I wanted to provide as much detail as possible so 
that it was clear what is happening. 


My next plan was to download a copy of the source, build and deploy that war 
file.  When I do that I have nothing but problems. 

First my environment. 

I'm building on a Mac Book Pro with java 1.6 as the compiler, using Mac OS X 
10.6.3. 

When asked it's version, maven responds:

$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.6.0_17


I checked out a copy of Sling

$ mvn -s /dev/null clean install

The build generated a lot of output,but the only bit I'll paste here is the 
result: 

[INFO] Apache Sling Launchpad Testing ........................ SUCCESS 
[2:19.201s]
[INFO] Apache Sling (Builder) ................................ SUCCESS [0.767s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 minutes 26 seconds
[INFO] Finished at: Mon May 10 11:52:39 EDT 2010
[INFO] Final Memory: 187M/252M
[INFO] ------------------------------------------------------------------------

The results of which was:

drwxr-xr-x  4 tgia  staff       136 May 10 11:50 
launchpad/builder/target/org.apache.sling.launchpad-6-SNAPSHOT
-rw-r--r--  1 tgia  staff  32170874 May 10 11:50 
launchpad/builder/target/org.apache.sling.launchpad-6-SNAPSHOT-bundles.jar
-rw-r--r--  1 tgia  staff      5012 May 10 11:50 
launchpad/builder/target/org.apache.sling.launchpad-6-SNAPSHOT-sources.jar
-rw-r--r--  1 tgia  staff  33471273 May 10 11:50 
launchpad/builder/target/org.apache.sling.launchpad-6-SNAPSHOT-standalone.jar
-rw-r--r--  1 tgia  staff  32672215 May 10 11:50 
launchpad/builder/target/org.apache.sling.launchpad-6-SNAPSHOT.war

I copy the war file from that directory to my ~/tmp and change the name to 
sling.war

(note as an aside this war file is a lot larger (32Meg) , then the one that is 
on the web site for download ( 24Meg)  )

At that point I deploy it using the command given in the earlier responses to 
my original message:

asadmin deploy ~/tmp/sling.war 
Application deployed successfully with name sling.


Result on web server when hitting http://localhost:8080/ 

HTTP Status 503 - AuthenticationSupport service missing. Cannot authenticate 
request.

type Status report
messageAuthenticationSupport service missing. Cannot authenticate request.
descriptionThe requested service (AuthenticationSupport service missing. Cannot 
authenticate request.) is not currently available.

Once that happens even going back to the original war file no longer works. I 
can only recover by deleting the glass fish file systems and starting over with 
a fresh copy. 

Reply via email to