Sure. My url string was wrong: String url ="jdbc:ibm-u2://server.college.edu/the/acct/path;dbmstype=UNIDATA";
It shd have been String url ="jdbc:ibm-u2://server.college.edu//the/acct/path;dbmstype=UNIDATA"; It needed two slashes (/) between the server (server.college.edu) and the account path (/the/acct/path )- one is separator and the other one to signify the root directory. It took me 3 hours to figure this out!! Savita. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Renfrew Sent: Monday, April 18, 2005 3:12 PM To: [email protected] Subject: Re: [U2][UD] JDBC connection Mind sharing the solution in the event others encounter the same or similiar issue in the future. As Dawn M. Wolthuis, would say 'Take and give some delight today.' Regards, Ian Renfrew ----- Original Message ----- From: "Chauhan, Savita" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, April 18, 2005 3:23 PM Subject: RE: [U2][UD] JDBC connection > Hi All, > Thanks for any help. > > Just to let you all know, I got my program working. > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chauhan, Savita > Sent: Monday, April 18, 2005 12:43 PM > To: [email protected] > Subject: RE: [U2][UD] JDBC connection > > I am not connecting thru a webserver. I am trying to directly connect to > UniData machine. > This is my first attempt to connect thru java. So please let me know > what settings do I have to look for and where? > > Thanks. > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Kevin King > Sent: Monday, April 18, 2005 12:32 PM > To: [email protected] > Subject: RE: [U2][UD] JDBC connection > > Check your webserver configuration. Just because you can login w/ > telnet doesn't mean the webserver is open to that dir. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chauhan, > Savita > Sent: Monday, April 18, 2005 11:13 AM > To: [email protected] > Subject: [U2][UD] JDBC connection > > I am trying to connect to UniData (on AIX) from my PC through a java > program. > > This is how I am trying to connect: > > String url = > "jdbc:ibm-u2://server.college.edu/the/acct/path;dbmstype=UNIDATA"; > Class.forName("com.ibm.u2.jdbc.UniJDBCDriver"); > Connection con = DriverManager.getConnection(url, "john", "johnpass"); > > > When I run this program it gives me following error: > "You don't have permissions to chdir to /the/acct/path" > > But when I (say John) logon directly to unix, I can cd to > /the/acct/path !! > > Can someone please tell me the cause of this error? > > Thanks. > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 4/18/2005 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.9.16 - Release Date: 4/18/2005 > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
