Article View: ibm.software.vajava.language
Article #13Re: DB2-JDBC pb: .Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes'
From: Bradley D. Kliewer
Date: Mon, 16 Nov 1998 00:00
Date: Mon, 16 Nov 1998 00:00
20 lines
1813 bytes
1813 bytes
127.0.0.1 is the IP loopback address. So yes, it's using the address because DB2 is installed on the same machine as your browser (the host name entry that matches this is probably "localhost"). That name may appear in HOSTNAME or (more likely) the hosts file in the etc directory. As to the Netscape problem, the following might help (but I'd have to check my reference materials to be sure -- so someone else jump in if I'm wrong). You're jdbc classes are listing the net drivers, e.g. COM.ibm.db2.jdbc.net.DB2Driver.connect If I remember correctly, those drivers work through the database client programs installed on your system. Netscape may not be able to access those because of security limitations. One approach that should work (I haven't actually used this approach yet because we don't [yet] need browser access for our apps) would be changing to the applet drivers (which, again from memory so it may be wrong) would look like: COM.ibm.db2.jdbc.app.DB2Driver.connect Note that you're DB2 server would need to be configured to serve JDBC applets. I'm not sure whether that is the default or not.
Technical Details
Message-ID:
<36506F68.28D4@mapub.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<72ppor$m72$1@news.software.ibm.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7e2e,ac31a13fac11378 X-Google-Attributes: gidf7e2e,public X-Google-Thread: 114aa0,ac31a13fac11378 X-Google-Attributes: gid114aa0,public From: "Bradley D. Kliewer" <bkliewer@mapub.com> Subject: Re: DB2-JDBC pb: .Couldn't connect to '127.0.0.1' with origin from 'local-classpath-classes' Date: 1998/11/16 Message-ID: <36506F68.28D4@mapub.com> X-Deja-AN: 412476450 Content-Transfer-Encoding: 7bit References: <72ppor$m72$1@news.software.ibm.com> Content-Type: text/plain; charset=us-ascii Organization: Media Automation, Inc. Mime-Version: 1.0 Newsgroups: ibm.software.vajava.language,ibm.software.db2.udb.eee