hello
i have updated the server document, set the classpath and so on with all jars…
when i use a servlet which uses following line:
NotesFactory.createSession…
i get following error:
HTTP JVM: java.lang.NoClassDefFoundError: lotus/domino/cso/Session: lotus/domino/cso/Session
he cannot find the class, i know, but i have set the NSCO.jar in my classpath in the server document, so whats wrong?
maze
Subject: servlet problems
You’ll have to be a bit more specific about how you’ve gone about doing everything you said you did . I’ve never found anywhere’s in the server document where you set a Classpath, but if you say you did, I won’t argue with you. It’s been a long day for me, too.
You didn’t specify where you’re running your Servlet, either. And I hate to assume anything, so it would be helpful if you would include that tidbit of information.
Lastly, thank God, is if you’re running your Servlet locally, then you should set Notes.jar in your Classpath, not NCSO.jar.
Hope this helps!
Neill
Subject: RE: servlet problems
in the meanwhile i solved the problem…i included an tomcat 3.2 server which handles all my servlets. with the notes 5 Notes.jar and NCSOW.jar i can connect, and manipulate my documents, but, now i have problems appending attachments to my rich text fields…
i tried variantions of my jar files, from notes 5 and 6, but nothing helps…?!?
Subject: RE: servlet problems
Could you be a bit more specific, and maybe someone can help you.
Once you have established a session, the code is the same as an agent. So, I suspect someone has run into the same problem.
Neill
Subject: Java and Forms that allow attachments
Browsers use a completely different format when posting Forms that include a “Browse to attach file” field.
The usual format is:
field1=value1&field2=value2
The other format (simplified and from memory so do not use this as the specification) is:
boundary=MyBoundary
–MyBoundary
Name: Field1
Type: Text
value1
–MyBoundary
Name: Field2
Type: Text
value2
–
I do not believe that Java 1.3 understands the latter format at all. I wrote a parser for it for my program.