saeedmain
پنج شنبه 27 اسفند 1388, 14:14 عصر
سلام دوستان
بنده یه برنامه با jsfنوشته ام.ولی مدتی هست هرکاری می کنم به دیتابیس وصل نمیشه!
درایور sqljdbcرو بهش اضافه کرده ام.
Athenticationمربوط به دیتابیس رو روی حالت sql ,windowsتنظیم کرده ام.
ولی exception زیر رو میده
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: java.lang.UnsupportedOperationException
Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
Possible Source of Error:
Class Name: com.microsoft.sqlserver.jdbc.SQLServerConnection
File Name: SQLServerConnection.java
Method Name:
Line Number: 223
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
راستی connection من بصورت زیر تعریف کردم:
private final static String user="sa";
; ="123" private final static String pass
; " private final static String url = "jdbc:sqlserver://localhost:1433;databaseName = Transport
دیگه نمیدونم چیکارکنم.خواهشن اگه کسی بلده کمک کنه.ممنون
بنده یه برنامه با jsfنوشته ام.ولی مدتی هست هرکاری می کنم به دیتابیس وصل نمیشه!
درایور sqljdbcرو بهش اضافه کرده ام.
Athenticationمربوط به دیتابیس رو روی حالت sql ,windowsتنظیم کرده ام.
ولی exception زیر رو میده
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: java.lang.UnsupportedOperationException
Java Runtime Environment (JRE) version 1.6 is not supported by this driver. Use the sqljdbc4.jar class library, which provides support for JDBC 4.0.
Possible Source of Error:
Class Name: com.microsoft.sqlserver.jdbc.SQLServerConnection
File Name: SQLServerConnection.java
Method Name:
Line Number: 223
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
راستی connection من بصورت زیر تعریف کردم:
private final static String user="sa";
; ="123" private final static String pass
; " private final static String url = "jdbc:sqlserver://localhost:1433;databaseName = Transport
دیگه نمیدونم چیکارکنم.خواهشن اگه کسی بلده کمک کنه.ممنون