This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Are there any particular JARs that I need to replace in WSAD which might fix the problem. I did try replacing the rt.jar file in a couple of places in WSAD but I am still getting the nullpointer exception.
code snippet :
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection("jdbc dbc:testDB","test", "test"); <<Exception is thrown at the above statement>>
Siva, IBM doesn't support WSAD or WebSphere App Server if you change the JVM. I strongly discourage you from doing that or trying to replace the rt.jar files. It may create other problems down the road. Instead add the Sun classes to your classpath.
A better solution of course would be to stop stop using Access and the JDBC-ODBC bridge. If you don't have DB2 there are a number of free databases which provide Type 2, 3 and 4 drivers.
(Now that I think back, we changed the JVM running applications inside WSAD and not the JVM for WSAD itself. This was caused by an incompatibility between the IBM and SUN RMI implementations - the two can't talk to each other )
Joined: Apr 26, 2003
(Now that I think back, we changed the JVM running applications inside WSAD and not the JVM for WSAD itself. )
Could you please elaborate on this ? How do we change the JVM running applications inside WSAD ?
Due to limitations, we have to use the Access DB for this application.
Thank you for your advice.
author & internet detective
Siva, When you run an application (with a main method) in WSAD, it picks the JVM based on the one you specified in the project properties. Each project can use a different JVM and none of them have to be the same as the one WSAD itself is running under. (WSAD/Eclipse is java based and therefore needs a JVM.)
If you are running a server app (web project, ejb project), the situation is more complex. To the best of my knowledge, you can't switch that JVM as WSAD is tied to the server.
Joined: Apr 26, 2003
Thanks Jeanne....I will try the approach you suggest.