import-bot (20211) [Avatar] Offline
#1
Re: Error trying to run your Servlet Examples
[Originally posted by aspatton]

It can't locate the java class file (I'm sure you know that). I haven't
worked with Domino on the AS/400, so there could be configuration issues for
that platform. Let me do some digging for more information.

Tony.
import-bot (20211) [Avatar] Offline
#2
[Originally posted by tomharrison]

Domino logs the following when I try to run the Example_25_3 servlet:

> tell http restart
01/23/2001 02:27:26 PM HTTP Web Server restarting
01/23/2001 02:27:30 PM Java Servlet Manager initialized
01/23/2001 02:27:32 PM HTTP Web Server restarted
01/23/2001 02:27:37 PM Addin: Agent printing: java.io.FileNotFoundException:
/notes/casdev/domino/servlet/Example_25_3.class:
/notes/casdev/domino/servlet/Example_25_3.class
01/23/2001 02:27:37 PM Addin: Agent error message: Error occurred while
loading Servlet (Example_25_3)
01/23/2001 02:27:37 PM Addin: Agent error message: Class Example_25_3 could
not be located
01/23/2001 02:27:37 PM Addin: Agent error message:
-----Servlet Information-----
Servlet name: Example_25_3
Servlet class: Example_25_3
Servlet state: <Error>
Configuration parameters: <none>
01/23/2001 02:27:37 PM Addin: Agent printing:
java.lang.ClassNotFoundException: Example_25_3: Example_25_3

Configuration:

Domino 5.0.4 for the AS/400
Copied both the Example_25_3.java and .class files to the /domino/servlet folder
Did not change any of the default settings of the Server document

Attempted to run servlet from browser using the following URL:

http://host/servlet/Example_25_3

Tried setting up Servlets.Properties file, same error.
import-bot (20211) [Avatar] Offline
#3
Re: Error trying to run your Servlet Examples
[Originally posted by bguse]

> It can't locate the java class file (I'm sure you know that). I haven't
> worked with Domino on the AS/400, so there could be configuration issues for
> that platform. Let me do some digging for more information.
>
> Tony.

Tony,
If you find configuration success for a combination of servlets, Domino,
AS/400, and DB2, could you let me know also?

I have a basic servlet running using Domino, AS/400. Trying to include the
DB2 piece is what is causing errors still - and wondering about configuration.

Using your Example26.6, I'm seeing compile errors regarding the
com.ibm.db2.jdbc.app.DB2Driver. I've located a
COM.ibm.db2.jdbc.app.DB2Driver, but haven't found the
com.ibm.db2.jdbc.app.DB2Driver yet. Do you know where to find that?

Any suggestions for what I'm missing would be greatly appreciated.

thanks,
Berkley
import-bot (20211) [Avatar] Offline
#4
Re: Error trying to run your Servlet Examples
[Originally posted by aspatton]

Hey Berkley. I don't fully understand the question. Your servlet is working
with the exception of the JDBC access to DB2? I assume you installed the JDBC
driver for DB2 from IBM? You don't seem to be having problems with your
classpath, so can you provide insight on the loading of servlets on the
AS/400?

Tony.
import-bot (20211) [Avatar] Offline
#5
Bad Source Code???
[Originally posted by tomh]

Looks like maybe the Example_25_3 sample is bad. I tried Example_25_1 and it
worked fine. In your book, on page 336, the Example_25_3 source code
references the Example_25_2 class file (shouldn't it reference the
Example_25_3 class file). Possibly the Java and/or Class files for this
example also contain the typo.
import-bot (20211) [Avatar] Offline
#6
Bad Source Code???
[Originally posted by aspatton]

Yes, the class should be named Example_25_3 and be located in the
Example_25_3.java file. This should have been shown as an error when you
compiled it...

Tony.