Its because, you're right, the class cannot be found. You can add your JAR or classes to the JServ properties file (mine's called jserv.properties):
wrapper.classpath=/usr/local/lib/java/infoglide.jar
I'm using JServ 1.0b3, which has the concept of servlet zones (not sure about b1). My config file for my 'millennium' zone is as follows:
------------ Start
# List of
Repositories
#######################
# The list of servlet repositories
controlled by this servlet zone
# Syntax:
repositories=[repository],[repository]...
# Default:
NONE
repositories=/usr/local/jserv/zones/millenniumsrv,/usr/local/lib/java/gnujsp.jar,/usr/local/lib/java/postgresql.jar
--------------- Finish snippet
These positories are also added to the classpath I believe. I usually restart Apache after altering classes, but I think you can just HUP the JServ java process (not sure?).
HTH,
Joe.
--
Joe Shevland
Turnaround Solutions Pty. Ltd.
mailto:[EMAIL PROTECTED]
http://www.TurnAround.com.au
Ph:
+61-03-6224-9146
Fax: +61-03-6223-2556
-----Original Message-----All I am trying to do is get a bean to work in a JSP.
From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Conner
Sent: Friday, March 12, 1999 10:40 AM
To: [EMAIL PROTECTED]
Subject: need help running beans in jsp with GNUJSP
I am using Apache 1.3.3, ApacheJserv 1.0b1, GNUJSP 0.9.7, JDK1.2
and unfortunately Win NT 4.0.
I am using the tags from ref .91.
ex.
<bean name="db" type="com.infoglide.web.tools.DataBaseBean" introspect="yes" create="yes" scope="session">
</bean>
When I use a class name that does not exist I get a compile time error.
With the above tag I get an error of:
500 JSP run-time error
The JSP page you requested could not be served because the following error(s) occured:
Could not create bean db of type com.infoglide.web.tools.DataBaseBean
This suggests that the JSPServlet could not instantiate my class.
I tried instantiating my class outside of a JSP, in a main method, and received no errors.
When I don't use the bean tag and just write scriplets everything works fine.
Any ideas?
does this have something to do with my classpath?
does the bean have to be in a jar file?
