Basavaraju Banakar

Greenhorn
+ Follow
since Jul 18, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Basavaraju Banakar

Congrats KD...

Would love to see your notes... could you please mail it across to basavaraju.banakar@gmail.com
Originally posted by Rich Morrison:
Semi-newbie problem.

Environment:
Windows XP workstation,
WSAD 5.1.1
MS Access 2000 database

I am trying to connect to a Microsoft Access 2000 data base using the jdbcodbc bridge. I get a runtime SQLException "No suitable driver" from the statement
conn = DriverManager.getConnection(Url);

Yes, the Url is well formed.
Yes, the class sun.jdbc.odbc.JdbcOdbcDriver is loaded.

[QB I believe the appropriate jars are in the classpath; rt.jar and j2ee.jar .


The Jar that is rewuired here in the calsspath is that of the Driver. Make sure that you have the Driver available to Websphere.

--Basu




This happens in a WebSphere "Web" project.

The same code works in a WebSphere "Java" project using Swing controls instead of jsp pages.

I have tried to configure the test server on my workstation by adding rt.jar and j2ee.jar as "External JARS" for the default server configuration. That does not help.

Any suggestion will be appreciated.

Thanks,
Rich Morrison
19 years ago
Hello,

I am haveing problem in Datasource configuration with Websphere 5.1 on Windows2000 box connecting to DB2 7.0.2 on mainframe.

I am trying to use the driver (db2jcc.jar) found in ~\WebSphere\AppServer\cloudscape\lib\otherJars" directory.

Getting the errors below:

DSRA8040I: Failed to connect to the DataSource. Encountered : java.lang.Exception: com.ibm.db2.jcc.b.SqlException at com.ibm.ws.rsadapter.DSConfigurationHelper.testConnectionForGUI(DSConfigurationHelper.java:1810) at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.ibm.ws.management.DataSourceConfigHelperMBean.testConnectionToDataSource2(DataSourceConfigHelperMBean.java:523) at com.ibm.ws.management.DataSourceConfigHelperMBean.testConnection(DataSourceConfigHelperMBean.java:451) at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code)) at java.lang.reflect.Method.invoke(Method.java(Compiled Code)) at com.tivoli.jmx.modelmbean.MMBInvoker.invoke(MMBInvoker.java:46) at com.tivoli.jmx.modelmbean.MMBInvoker.invokeOperation(MMBInvoker.java:115 -- <truncated> --.
19 years ago
Step1.
Use SAX parser for reading the path from XML file
step2.
Read files using java.io package....
19 years ago
I would go ahead with the page flow logic.... that would bring out some of the business logic that might othervise has to be revisited is business layer is taken up first....
20 years ago
The form u are submitting does not include the Username and password input elements... they are outside the <form> </form> tag ... modify this to include them within these tags in HTML...
20 years ago
try disabling the back button...
20 years ago
No .. unless u handle explectly by synchronizing the access to the method...
20 years ago
How exactly will u make the differentiation between the unload method called due to closing of window and that of refreshing the page...
same method is called in both the cases....
I assume that u check for the parent window (whether it exist..) and then call the servlet appropriately?
20 years ago

Originally posted by push j:

For me it worked fine, I didn't had any problem, but as you know if the end user wants to make it fail he can do it anywayz
Regards
Push


Did u try refreshing the entire page.. then the unload method of the header is called.. which might end the user session??
20 years ago
what do u mean "connect to XML"?
20 years ago
The requests from different browser instances (other than opening a new window form an existing one) will have diferent sessions.
20 years ago
Any comments over using XML/XSL/XSLT in place of JSPs?
20 years ago
Actually I was looking for something that happens in Transactions....
Exactly how Java handles try block in memory?...
20 years ago
What is the overhead of having a lot of code in a single try block and catch all the exceptions that are thrown in seperate catch blocks??
Would it be better to have seperate try/catch blocks to handle each chunck of code that potentially throws an exception.
20 years ago