Many of the servlet engines out there do not respect the classpath
environment variable (especially if they are running as NT Services),
instead they use property file settings or default directories to find their
classes.  For instance in JWS, if it is started as an NT Service, you must
put the .jar files in the <SERVLET_HOME>/lib directory for them to be found.
    (*Chris*)


----- Original Message -----
From: Sigurp�ll J�hannsson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 24, 1999 2:31 PM
Subject: class.forName and Servlet


> Hi all
> I having this very strange problem. I have finished my data-logic and
> tried it in sql prompt and in Applet and it works like a clock. But when
> I try the same in Servlet but it does not seem to work when I access it
> through brower-servlet but again it works with applet.
>
> I have narrow the problem(i think) too this statement:
>
DriverManager.registerDriver((Driver)Class.forName("com.informix.jdbc.IfxDri
ver").newInstance());
>
> or
> Class.forName("com.informix.jdbc.IfxDriver")
> or
> Class.forName("com.informix.jdbc.IfxDriver").newInstance()
>
> Does anybody know what it wrong with my code.
>
> config:
> JRun pro
> Infromix driver 1.4
> Visual J++
>
> best regards
>
> Sigurpall Johannsson
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to