weblogic7与oracle怎么连接啊,救命啊.....

sandsworlf 2002-11-25 09:49:20
在win2000server下,我安装好了oracle,,我怎么启动它,
我的weblogic7怎么和oracle8i连不上啊,我按照大家说的配置,如果配置成功的话出现什么消息?请告诉我啊
我配置如下,oracle的数据库名oralina,oracle的sid:oralian,我在weblogic下的jdbc 配置如下:
url: jdbc:oracle:thin:@oralina:1521:oralina
classname: oracle.jdbc.driver.OracleDriver
Properties(key=value):user=oralina
ACLName:oralina
Password:oralina

targets页面:
servers:myserver
我点应用后出错信息:

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:5360)
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:2468)
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:5360)
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:2468)
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:5360)
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:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Server Release Build
7.0.0.0
Server Build
WebLogic Server 7.0

Protocol: HTTP/1.1
ServerName: 192.168.0.9
ServerPort: 7001
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString: MBean=mydomain%3AName%3Dmyoracle+connection+pool%2CType%3DJDBCConnectionPool
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
ContentType: application/x-www-form-urlencoded
CharacterEncoding: null
Locale: zh_CN
Method: POST
Session: weblogic.servlet.internal.session.MemorySessionData@68fcbe
RequestedSessionId: 9ilByZjVAdhedWBkjJG1AYZ3J4C0HTRqq7lDdnErsIR2nXF3c5QP!648937605!1038230977859
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: ahk
RemoteUser: ahk
RemoteAddr: 192.168.0.9
RemoteHost: ahk

Parameters
MBean = mydomain:Name=myoracle connection 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@14cd00 java.util.Locale = en_US weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@28f2f1 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
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/x-gsarcade-launch, */* Accept-Encoding = gzip, deflate Accept-Language = zh-cn Cache-Control = no-cache Connection = Keep-Alive Content-Length = 300 Content-Type = application/x-www-form-urlencoded Cookie = BEAWLSConsoleLastUsername=ahk; ADMINCONSOLESESSION=9ilByZjVAdhedWBkjJG1AYZ3J4C0HTRqq7lDdnErsIR2nXF3c5QP!648937605 Host = 192.168.0.9:7001 Referer = http://192.168.0.9:7001/console/actions/mbean/EditMBeanAction?reloadNav=true&tab=targets&MBean=mydomain%3AName%3Dmyoracle+connection+pool%2CType%3DJDBCConnectionPool User-Agent =
...全文
140 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
sandsworlf 2002-11-29
  • 打赏
  • 举报
回复
哎...还是搞不定,好了谢谢各位兄弟了,小弟先结了吧
highreport 2002-11-28
  • 打赏
  • 举报
回复
你先通过thin驱动程序连接oracle,如果能连成功的 话,那么在测试。。。。
Gemini_h 2002-11-28
  • 打赏
  • 举报
回复
试试是不是这个毛病
在weblogic的启动脚本中要设置path,classpath环境
C:\bea\wlserver6.1\config下边有个startweblogic.cmd文件,编辑它,在classpath中添加oracle驱动的路径

sunlightnh 2002-11-27
  • 打赏
  • 举报
回复
start menu-->BEA Weblogic Platform 7.0-->user project-->yourdomain-->Integration Database Wizard,then select Oracle,step by step you can get it
sandsworlf 2002-11-27
  • 打赏
  • 举报
回复
我在win2000下打开sqlplus是可以用的,我也登录进去了,oracle应该启动了吧
wdman 2002-11-26
  • 打赏
  • 举报
回复
是不是你的bean写错了?错误信息是bean的问题啊。
sandsworlf 2002-11-26
  • 打赏
  • 举报
回复
还是不行啊,谢谢sonwyangel兄了
snowyangel 2002-11-26
  • 打赏
  • 举报
回复
url: jdbc:oracle:thin:@机子的ip地址:1521:实例名
实例名为:sqlplus->select instance_name from V$INSTANCE的名字
drivaer:oracle.jdbc.driver.OracleDriver
properties:
user=scott(数据库user名)
password=tiger(密码)
dll=ocijdbc8
protocol=thin

i hope u will succeed!
ah_cai 2002-11-26
  • 打赏
  • 举报
回复
1、在windows2000下启动Oracle:
在管理工具的服务中把Oracle的service和Listener启动就可以了。
2、第二个错误:
找一根网线插上去试试,要可以通的。
qxjavajava 2002-11-26
  • 打赏
  • 举报
回复
oracle 从来没有好用过吗?
不连oracle weblogic 能用马?
启动oracle 了吗?

1,221

社区成员

发帖
与我相关
我的任务
社区描述
企业软件 中间件技术
社区管理员
  • 中间件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧