Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 17393 invoked from network); 29 Jun 2010 15:36:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jun 2010 15:36:44 -0000 Received: (qmail 56896 invoked by uid 500); 29 Jun 2010 15:36:44 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 56850 invoked by uid 500); 29 Jun 2010 15:36:44 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Delivered-To: moderator for clerezza-dev@incubator.apache.org Received: (qmail 44294 invoked by uid 99); 29 Jun 2010 15:29:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of henry.story@gmail.com designates 74.125.82.47 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:cc:to :mime-version:x-mailer; bh=VffJQ+W/ScwsRu8m1FGy6G6gDk6j0MBU8Rt1PHLg+OQ=; b=APh7aruSQKNPpCLYRuCJ9NiElWJpLVUTnj4hJjjxj/Yys8IpOOr0C4JJBNd9WgKeA9 B2+7fXEo26sK9rVWFamspvrV4TougCv+3kYSQuiaY4k8oXNpFe7Zti9SLyfDq/7qA4nj GfV9CThYjnoP9GdSEYIGdDxz4nvDDcPYlnn+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :cc:to:mime-version:x-mailer; b=A8Z3o17XEB3K798iV5dkSG4nsE9pJn1e6Z3eYwcEkF+tCfNa4np7567U4+OuWAA+Hx +T1Lhoxg8AqCmUyG0Yz4Vqk7/vWEAK1nkdKqZEzDH8gdxclXBwF2YIWUobVT/q4/RBZp zI3C+azp1W4Tu5kQOCBHY98hazEGn4LvZmlME= From: Henry Story Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Scala, OSGi implementation of foaf+ssl in Clerezza Date: Tue, 29 Jun 2010 17:28:45 +0200 Message-Id: <99563CBC-79D9-4174-ADDB-781C8C12AC72@bblfish.net> Cc: =?iso-8859-1?Q?Reto_Bachmann-Gm=FCr?= To: foaf-protocols@lists.foaf-project.org, clerezza-dev@incubator.apache.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org Hi,=20 Reto implemented an version of foaf+ssl in the OSGi based, RDF = powered, apache Clerezza Content Management system.=20 http://incubator.apache.org/clerezza/ To get it to work, do the following 1. check it out $ svn co = http://svn.apache.org/repos/asf/incubator/clerezza/trunk/org.apache.clerez= za.parent 2. compile it with mvn (>=3D2.2.1) $ mvn clean install -Dmaven.test.skip=3Dtrue # -Dmaven.test.skip=3Dtrue to skip the tests because some of them = don't work # I commented out the uima module in the pom as at revision 958920 it = did not work # add -o to avoid redownloading maven bundles if you allready have = downloaded them the first time 3. create a key for the machine you are running this on, which you need = to place in .keystore So if this is going to be run on localhost then you need the = Distinguished name to be localhost $ keytool -keystore keystore -alias jetty -genkey -keyalg RSA = -keysize 2048 $ mv keystore ~/.keystore # of course if you already have one, then = watch out here 4. start it =20 $ cd org.apache.clerezza.platform.launcher.tdb/target $ java -Dorg.wymiwyg.jetty.httpservice.clientauth=3Dwant = -Dorg.osgi.service.http.secure.enabled=3Dtrue -jar = org.apache.clerezza.platform.launcher.tdb-0.5-incubating-SNAPSHOT.jar # you will end up in a command line interface where you can send a = number of commands such as -> help # don't cntr-Z (background) this on OSX, as for some reason the = command line interface=20 # then no longer works 5. try it out - you should have an http server at http://localhost:8080/ - you can try logging in with your (non RDFa backed) Web ID at = https://localhost:8443/dashboard =20 6. build RDFa support use the OSGi enabled module I put together at = http://github.com/bblfish/java-rdfa $ git clone git://github.com/bblfish/java-rdfa.git $ cd java-rdfa =20 7. install RDFa support In the clerezza shell type -> start mvn:net.rootdev/java-rdfa-core/0.5-SNAPSHOT -> start mvn:net.rootdev/java-rdfa-clerezza/0.5-SNAPSHOT It should work now with IDs created with http://webid.myxwiki.org/ TODO =3D=3D=3D=3D The RDFA parsers rely on nu.validator.htmlparser.common and some other = packages which are not OSGi enabled yet. Reto is currently working on = improving the access control framework to allow us to create much more = flexible access control examples. The Scala code probably has bugs as it = is still fresh. Note =3D=3D=3D=3D An interesting thing to note about this foaf+ssl implementation, is = that it is written directly into the java ssl layer. This was Reto's = idea, and it looks like it could be very helpful, but we still need to = test it with more examples to see what the limitations may be. But in any case, Clerezza is a very interesting framework, and being a = java programmer, I will try to use this to put together my own = playground. Henry =20 =20 =20=