hello everyone!i’m trying to run on web a java agent which uses morena classes (classes that use the twain driver to scan document…more information acn be found at Morena 6).
anyway…when this agent is triggered from a button i get the NoClassDefFoundError;
i’ve already copied the jar/dll files in /lotus/notes/jvm/lib and /lotus/notes/jvm/ext and i have included the jar files in project using EditProject…
any sugestions?
thank you in advance…
PS: what i’m trying to do…i want to scan documents using the browser and for this i’ve made a java agent that uses these classes(on Notes it works just fine); these classes provide access to the TWAIN driver.
Subject: morena & domino & web
Well, you didn’t give a lot of information, but it would be nice to know which class it can’t find (NoClassDefFoundError). Then you can find the class in the jars and work from there.
I would suggest putting all of your jars into the java agent project. I’ve had so many problems with java agents (with respect to packages) that I tend to use servlets if I have to use jars (that I did not write).
As to where to put the dll, that’s a good question. I’d try the project first.
You mentioned that you have put the files in both the project and the class path (by the way, did you declare the class path in either the server document or the environment variables?), but I could not determine if you tried them in each place separately (which is what I would suggest).
Subject: RE: morena & domino & web
first of all…i’m new in developing java agents so i had to try before getting things done; i will try to describe everything that i did so far…
-
i donwloaded morena
-
i looked in one of the examples and then i tried to build an agent which can scan documents and save them as an attachement to the current document(UIDocument)
3.i wrote that agent (with import gnome.sk.twain. … and some other classes) and when i tried to compile i get an error message
-
after including the jar files with EditProject, the agent compiled succesfully
-
when i tried to run the agent the encountered error was NoClassDefFoundError
-
after some digging i’ve copied the dll files in lotus/notes/jvm/bin and the agent was running only once; it was dying with something like that…“Error cleaning up agent threads” and to make it work again i needed to restart lotus notes
-
this problem was solved by copiyng the jar files to /lotus/notes/jvm/lib/ext
-
after that everithing worked just fine
and i was able to scan documents and attach the resulted jpg to the UIDocument; this application worked on the notes client both locally and on server(with no modification on the server…everything was running on the local machine)
-
after that i need it to make it work on the web
-
so i made a button and behind that i put @command([ToolsRunMacro];“agScan”); agScan is the java scanning agent…
-
i copied the jar and dll files on the server on the directories specified above
-
when hitting the button, the error encountered on the server console is NoClassDefFoundError on the gnome.sk.twain. … class
that it’s what i did so far…and now i’m stuck with the web application…because i don’t know what to do…i don’t know if what i did so far for the web access it’s correct or not…so any help would be “life saving”…any ideeas?
thank you in advance
what i want to obtain is an application that allows the client to scan documents using the web browser(IE), the scanner being connected to his machine and after that to attach them(automatically) to the currently opened document
(the same functionality as the one obtained with the notes client).
thank you again
Subject: well…
it’s been a while since i’ve tried java agents (so take my help for what it’s worth), but there is one thing that caught my eye while reading your post.
“7. this problem was solved by copiyng the jar files to /lotus/notes/jvm/lib/ext”
i assume you moved them to the “/lotus/domino/jvm/…” for the server version of the app.
also, there may be security settings on the server document that you need to worry about (since you are going to run from the dll with the agent - i assume).
HTH
Subject: RE: well…
what kind of security?can you give me some example?