当前位置: 技术问答>java相关
SQL Server JDBC
来源: 互联网 发布时间:2017-04-06
本文导语: I try the sql server jdbc driver: msbase.jar mssqlserver.jar msutil.jar set the driver string to: com.microsoft.jdbc.sqlserver.SQLServerDriver change the url to: jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Nebo "Nebo" is the schema name but after startu...
I try the sql server jdbc driver:
msbase.jar
mssqlserver.jar
msutil.jar
set the driver string to:
com.microsoft.jdbc.sqlserver.SQLServerDriver
change the url to:
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Nebo
"Nebo" is the schema name
but after startup,there is error:
java.util.MissingResourceException: Can't find bundle for base name nebostrings,
locale zh_CN
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at com.learnframe.nebo.ui.util.UIStringFormatter.(UIStringFormatte
r.java:71)
at jsp_servlet._errorpage._jspService(_errorpage.java:187)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:246)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:157)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:111
)
at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextI
mpl.java:254)
at jsp_servlet._login._jspService(_login.java:672)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:246)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThre
ad.java:120)
so do you know how to setup to make it work?
Thanks
msbase.jar
mssqlserver.jar
msutil.jar
set the driver string to:
com.microsoft.jdbc.sqlserver.SQLServerDriver
change the url to:
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Nebo
"Nebo" is the schema name
but after startup,there is error:
java.util.MissingResourceException: Can't find bundle for base name nebostrings,
locale zh_CN
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at com.learnframe.nebo.ui.util.UIStringFormatter.(UIStringFormatte
r.java:71)
at jsp_servlet._errorpage._jspService(_errorpage.java:187)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:246)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
cherImpl.java:157)
at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:111
)
at weblogic.servlet.jsp.PageContextImpl.handlePageException(PageContextI
mpl.java:254)
at jsp_servlet._login._jspService(_login.java:672)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:246)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1631)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThre
ad.java:120)
so do you know how to setup to make it work?
Thanks
|
把那三个文件的完整路径加入到系统环境变量classpath里
|
请参考:
http://www.csdn.net/develop/read_article.asp?id=15765
http://www.csdn.net/develop/read_article.asp?id=15765
|
Can't find bundle for base name nebostrings
你是不是用了一个属性文件nebostrings ?
你是不是用了一个属性文件nebostrings ?