Mantis - Baratine
Viewing Issue Advanced Details
5924 minor always 07-02-15 12:39 07-02-15 12:39
alex  
 
normal  
new 0.9.0  
open  
none    
none  
0005924: javax.script should work with detached classloader
Exception in thread "main" com.caucho.config.ConfigException: baratine/snap can't open configuration file 'classpath:/META-INF/baratine/baratine.cf'
\tat com.caucho.cli.server.BootConfigParser.parseBoot(BootConfigParser.java:89)
\tat com.caucho.cli.daemon.ArgsDaemon.parseBoot(ArgsDaemon.java:427)
\tat com.caucho.cli.server.ServerCommandBase.doCommandImpl(ServerCommandBase.java:86)
\tat com.caucho.cli.server.ServerCommandBase.doCommandImpl(ServerCommandBase.java:51)
\tat com.caucho.cli.spi.CommandBase.doCommand(CommandBase.java:295)
\tat com.caucho.cli.spi.ArgsBase.doCommand(ArgsBase.java:173)
\tat com.caucho.cli.baratine.ScriptEngineBaratine.eval(ScriptEngineBaratine.java:83)
\tat javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
\tat qa.Test.main(Test.java:33)
    URLClassLoader cl = new URLClassLoader(urls.toArray(new URL[urls.size()]));

    ScriptEngine baratine
      = new ScriptEngineManager(cl).getEngineByName("baratine");

    Object obj
      = baratine.eval("start -p 8086 --root-dir " + rootDir + "/baratine");
    System.out.println(obj);

There are no notes attached to this issue.