with absolutely no idea about slang... have you install slang-scala feature or just the deploy bundle? This one sounds that all bundles need to be available for slang to correctly install url handlers, compilers, ...
Kind regards, Andreas [1] http://fusesource.com/forge/git/slang.git/?p=slang.git;a=blob;f=features/src/main/resources/features.xml;h=f244b8ac42963c7560e08ea142765f31a9a1c427;hb=HEAD On Thu, Mar 8, 2012 at 11:38, Guillaume Yziquel <[email protected]> wrote: > Hi. > > (Cross-posting to [email protected], as I suspect the > [email protected] mailing to have low activity). > > I've just tried out the Scala Slang Deployer for Karaf > > http://fusesource.com/forge/git/slang.git/ > > but scala files do not get deployed. > >> class ScalaDeploymentListener extends ArtifactUrlTransformer { >> >> val LOG = LogFactory.getLog(classOf[ScalaDeploymentListener]) >> >> def canHandle(artifact: File) = { >> artifact.isFile() && artifact.getName().endsWith(".scala") >> } >> >> def transform(artifact: URL) : URL = { >> try { >> new URL("scala", null, artifact.toString()); >> } catch { >> case e: Exception => { >> LOG.error("Unable to build scala bundle", e); >> return null; >> } >> } >> } >> } > > It fails in 'new URL("scala", null, artifact.toString())' as there are > no 'scala' protocol: > >> 10:07:42,262 | ERROR | Framework/deploy | ScalaDeploymentListener | ? >> ? | 258 - org.fusesource.slang.scala.deployer - >> 1.0.0.SNAPSHOT | Unable to build scala bundle >> java.net.MalformedURLException: unknown protocol: scala >> at java.net.URL.<init>(URL.java:395)[:1.6.0_29] >> at java.net.URL.<init>(URL.java:283)[:1.6.0_29] >> at java.net.URL.<init>(URL.java:306)[:1.6.0_29] >> at >> org.fusesource.slang.scala.deployer.ScalaDeploymentListener.transform(ScalaDeploymentListener.scala:38)[258:org.fusesource.slang.scala.deployer:1.0.0.SNAPSHOT] >> at >> org.apache.felix.fileinstall.internal.DirectoryWatcher.transformArtifact(DirectoryWatcher.java:501)[6:org.apache.felix.fileinstall:3.1.10] >> at >> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:430)[6:org.apache.felix.fileinstall:3.1.10] >> at >> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)[6:org.apache.felix.fileinstall:3.1.10] > > Anybody recently tried out the Slang deployer? > > -- > Guillaume Yziquel > Crossing-Tech > Parc Scientifique EPFL
