This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Error when compiling to a servlet


It is not possible to compile a servlet like described in :

http://www.gnu.org/software/kawa/Servlets.html

system: 
- kawa-2.9
- /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
- ubuntu 14.04.1

command:
kawa --servlet -C script.scm 

what works though isa
kawa  -C script.scm and
kawa  --servlet script.scm 

but not the combination of --servlet and -C

script.scm:
(format "The time is <~s>." (java.util.Date))

error:
(compiling script.scm to script)
internal error while compiling script.scm
java.lang.RuntimeException: no such class: gnu.kawa.servlet.KawaServlet
        at gnu.bytecode.ObjectType.getReflectClass(ObjectType.java:122)
        at gnu.bytecode.ClassType.getModifiers(ClassType.java:105)
        at gnu.bytecode.ClassType.isInterface(ClassType.java:522)
        at gnu.bytecode.ClassType.getSuperclass(ClassType.java:426)
        at gnu.bytecode.ClassType.isSubclass(ClassType.java:1348)
        at gnu.bytecode.ClassType.compare(ClassType.java:1380)
        at gnu.bytecode.Type.isSubtype(Type.java:439)
        at gnu.expr.Compilation.generateBytecode(Compilation.java:2048)
        at gnu.expr.Compilation.process(Compilation.java:2001)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:290)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:272)
        at kawa.repl.compileFiles(repl.java:824)
        at kawa.repl.processArgs(repl.java:444)
        at kawa.repl.main(repl.java:871)
Caused by: java.lang.ClassNotFoundException:
gnu.kawa.servlet.KawaServlet
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:274)
        at gnu.bytecode.ObjectType.getContextClass(ObjectType.java:88)
        at gnu.bytecode.ObjectType.getReflectClass(ObjectType.java:115)
t


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]