当前位置: 技术问答>java相关
配置weblogic 連接池的問題
来源: 互联网 发布时间:2017-04-19
本文导语: 大家好,我第一次來這里發貼子,我是一個java初學者,現在在我機上 都安裝好了JB7+Weblogic7+Mssql2000 在測試開發session bean 時我按別的做法,測試完成了,沒有出現錯誤 但測試entity時,就出現了錯誤,不能部署出來 原因可能是...
大家好,我第一次來這里發貼子,我是一個java初學者,現在在我機上
都安裝好了JB7+Weblogic7+Mssql2000
在測試開發session bean 時我按別的做法,測試完成了,沒有出現錯誤
但測試entity時,就出現了錯誤,不能部署出來
原因可能是我在控制台里配置連接池時就出現了問題
但我的這個為什么總不成功昵?
我在"JDBC-->Configure a new JDBC Connection Pool..."
URL :jdbc:weblogic:mssqlserver4:localhost:1433
weblDriver Classname: weblogic.jdbc.mssqlserver4.Driver
Properties"
user=sa
db=Northwind
password=''
然后create 成功
但是在在target里面把myserver点到右边,然后点apply時就出現了如下的錯誤呀?
Exception
java.lang.NullPointerException
at weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:1153)
at weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(EditMBeanAction.java:210)
at weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(EditMBeanAction.java:188)
at weblogic.management.console.actions.internal.InternalActionContext.setAction(InternalActionContext.java:158)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:170)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:1156)
at weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(EditMBeanAction.java:210)
at weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(EditMBeanAction.java:188)
at weblogic.management.console.actions.internal.InternalActionContext.setAction(InternalActionContext.java:158)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:170)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException - with nested exception:
[weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:190)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Current Date
Sat Jan 04 18:02:44 CST 2003
.....
Parameters
MBean = mydomain:Name=MyJDBC Pool,Type=JDBCConnectionPool chosen_wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets-Server = mydomain:Name=myserver,Type=Server weblogic.console.submit_form = dataposted wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets-Server = mydomain:Name=myserver,Type=Server
Attributes
_wl_internalaction = weblogic.management.console.actions.internal.InternalActionContext@1e0a90 java.util.Locale = en_US weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@1a2279 weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: true JavscriptHrefs: false TableCellClick: true DocumentReloadedOnResize: false DropdownStretchable: true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy: true PartialToWideTables: false DisabledControlSupported: true weblogic.management.console.helpers.DebugHelper = weblogic.management.console.helpers.DebugHelper@32bb2b weblogic.management.console.helpers.UnitsHelper = weblogic.management.console.helpers.UnitsHelper@16d080 weblogic.management.console.helpers.UrlHelper = weblogic.management.console.helpers.UrlHelper@47898a
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* Accept-Encoding = gzip, deflate Accept-Language = zh-tw Cache-Control = no-cache Connection = Keep-Alive Content-Length = 300 Content-Type = application/x-www-form-urlencoded Cookie = ADMINCONSOLESESSION=2Wt8S2hRXwze43BCA2eYvgE9hGXkrOW5LOPmqMa8bb2CNK2fditK!-860308716 Host = hf-arison:7001 Referer = http://hf-arison:7001/console/actions/mbean/DoEditMBeanAction?MBean=mydomain%3AName%3DMyJDBC++Pool%2CType%3DJDBCConnectionPool User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
IE: true
Netscape: false
Supported: true
JavscriptHrefs: false
TableCellClick: true
DocumentReloadedOnResize: false
DropdownStretchable: true
CellSpacingBlank: false
EmptyCellBlank: false
ImgOnclickSupported: true
TableBorderFancy: true
PartialToWideTables: false
DisabledControlSupported: true
不知道是什么原因昵?到這一步就出錯了,后面的配置我就沒有了
都安裝好了JB7+Weblogic7+Mssql2000
在測試開發session bean 時我按別的做法,測試完成了,沒有出現錯誤
但測試entity時,就出現了錯誤,不能部署出來
原因可能是我在控制台里配置連接池時就出現了問題
但我的這個為什么總不成功昵?
我在"JDBC-->Configure a new JDBC Connection Pool..."
URL :jdbc:weblogic:mssqlserver4:localhost:1433
weblDriver Classname: weblogic.jdbc.mssqlserver4.Driver
Properties"
user=sa
db=Northwind
password=''
然后create 成功
但是在在target里面把myserver点到右边,然后点apply時就出現了如下的錯誤呀?
Exception
java.lang.NullPointerException
at weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:1153)
at weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(EditMBeanAction.java:210)
at weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(EditMBeanAction.java:188)
at weblogic.management.console.actions.internal.InternalActionContext.setAction(InternalActionContext.java:158)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:170)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:1156)
at weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(EditMBeanAction.java:210)
at weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(EditMBeanAction.java:188)
at weblogic.management.console.actions.internal.InternalActionContext.setAction(InternalActionContext.java:158)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:170)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException - with nested exception:
[weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:190)
at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Current Date
Sat Jan 04 18:02:44 CST 2003
.....
Parameters
MBean = mydomain:Name=MyJDBC Pool,Type=JDBCConnectionPool chosen_wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets-Server = mydomain:Name=myserver,Type=Server weblogic.console.submit_form = dataposted wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets-Server = mydomain:Name=myserver,Type=Server
Attributes
_wl_internalaction = weblogic.management.console.actions.internal.InternalActionContext@1e0a90 java.util.Locale = en_US weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@1a2279 weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) IE: true Netscape: false Supported: true JavscriptHrefs: false TableCellClick: true DocumentReloadedOnResize: false DropdownStretchable: true CellSpacingBlank: false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy: true PartialToWideTables: false DisabledControlSupported: true weblogic.management.console.helpers.DebugHelper = weblogic.management.console.helpers.DebugHelper@32bb2b weblogic.management.console.helpers.UnitsHelper = weblogic.management.console.helpers.UnitsHelper@16d080 weblogic.management.console.helpers.UrlHelper = weblogic.management.console.helpers.UrlHelper@47898a
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */* Accept-Encoding = gzip, deflate Accept-Language = zh-tw Cache-Control = no-cache Connection = Keep-Alive Content-Length = 300 Content-Type = application/x-www-form-urlencoded Cookie = ADMINCONSOLESESSION=2Wt8S2hRXwze43BCA2eYvgE9hGXkrOW5LOPmqMa8bb2CNK2fditK!-860308716 Host = hf-arison:7001 Referer = http://hf-arison:7001/console/actions/mbean/DoEditMBeanAction?MBean=mydomain%3AName%3DMyJDBC++Pool%2CType%3DJDBCConnectionPool User-Agent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
IE: true
Netscape: false
Supported: true
JavscriptHrefs: false
TableCellClick: true
DocumentReloadedOnResize: false
DropdownStretchable: true
CellSpacingBlank: false
EmptyCellBlank: false
ImgOnclickSupported: true
TableBorderFancy: true
PartialToWideTables: false
DisabledControlSupported: true
不知道是什么原因昵?到這一步就出錯了,后面的配置我就沒有了
|
按以下参数试试:
URL = jdbc:weblogic:mssqlserver4:northwind@localhost
Driver classname = weblogic.jdbc.mssqlserver4.Driver
Properties :
user = sa
Password = “”
URL = jdbc:weblogic:mssqlserver4:northwind@localhost
Driver classname = weblogic.jdbc.mssqlserver4.Driver
Properties :
user = sa
Password = “”