public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* Error when compiling to a servlet
@ 2015-02-14 16:07 Ben
  2015-02-14 19:16 ` Per Bothner
  0 siblings, 1 reply; 9+ messages in thread
From: Ben @ 2015-02-14 16:07 UTC (permalink / raw)
  To: kawa

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-19 20:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-14 16:07 Error when compiling to a servlet Ben
2015-02-14 19:16 ` Per Bothner
2015-02-16 10:14   ` Ben
2015-02-16 17:04     ` Per Bothner
2015-02-16 21:12       ` Per Bothner
     [not found]         ` <2AF1422A-71B1-4EE1-904D-4F87BAB86629@sent.com>
2015-02-17 13:25           ` Per Bothner
2015-02-18 11:09             ` Ben
2015-02-18 19:29               ` Per Bothner
2015-02-19 20:23               ` Kawa servlet updates [was: Error when compiling to a servlet] Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).