Request Info
Protocol: HTTP/1.1
ServerName: localhost
ServerPort: 7001
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString: MBean=mydomain%3AName%3DMyJDBC+Tx+Data+Source%2CType%3DJDBCTxDataSource
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: null
ContentType: application/x-www-form-urlencoded
CharacterEncoding: null
Locale: zh_CN
Method: POST
Session: weblogic.servlet.internal.session.MemorySessionData@5d19b8
RequestedSessionId: 2RYWOC16Q7AmdDZVTzX2l3xMPhN1Rir3ZoKLPGImrXNrVVOMfL22!-641411377!1049696278273
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: weblogic_bolin
RemoteUser: weblogic_bolin
RemoteAddr: 127.0.0.1
RemoteHost: 127.0.0.1Parameters
MBean = mydomain:Name=MyJDBC Tx Data Source,Type=JDBCTxDataSource chosen_wl_control_weblogic.management.configuration.JDBCTxDataSourceMBean.Targets-Server = mydomain:Name=myserver,Type=Server weblogic.console.submit_form = dataposted wl_control_weblogic.management.configuration.JDBCTxDataSourceMBean.Targets-Server = mydomain:Name=myserver,Type=Server
Attributes
_wl_internalaction = weblogic.management.console.actions.internal.InternalActionContext@4c2f7f java.util.Locale = en_US weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@7f108e weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; 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@62821c weblogic.management.console.helpers.UnitsHelper = weblogic.management.console.helpers.UnitsHelper@685009 weblogic.management.console.helpers.UrlHelper = weblogic.management.console.helpers.UrlHelper@42514f
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */* Accept-Encoding = gzip, deflate Accept-Language = zh-cn Cache-Control = no-cache Connection = Keep-Alive Content-Length = 296 Content-Type = application/x-www-form-urlencoded Cookie = ADMINCONSOLESESSION=2RYWOC16Q7AmdDZVTzX2l3xMPhN1Rir3ZoKLPGImrXNrVVOMfL22!-641411377 Host = localhost:7001 Referer = http://localhost:7001/console/actions/mbean/EditMBeanAction?reloadNav=false&tab=targets&MBean=mydomain%3AName%3DMyJDBC+Tx+Data+Source%2CType%3DJDBCTxDataSource User-Agent = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; 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 Errors occurred while processing your request.
2.在执行jsp程序(用系统向导创建)报下面错误,不知怎么解决?
Could not find C:/bea/weblogic700/server/lib/weblogic_sp.jar to copy to WebApp <Default WebApp>; file is defined as element of library WebLogic 7.x Deploy
C:/bea/weblogic700/server/lib/weblogic_sp.jar (The system cannot find the file specified)请高手指点,不胜感激!
Protocol: HTTP/1.1
ServerName: localhost
ServerPort: 7001
Secure: false
ContextPath: /console
ServletPath: /common/error.jsp
QueryString: MBean=mydomain%3AName%3DMyJDBC+Tx+Data+Source%2CType%3DJDBCTxDataSource
PathInfo: null
PathTranslated: null
RequestURI: /console/common/error.jsp
AuthType: null
ContentType: application/x-www-form-urlencoded
CharacterEncoding: null
Locale: zh_CN
Method: POST
Session: weblogic.servlet.internal.session.MemorySessionData@5d19b8
RequestedSessionId: 2RYWOC16Q7AmdDZVTzX2l3xMPhN1Rir3ZoKLPGImrXNrVVOMfL22!-641411377!1049696278273
RequestedSessionIdFromCookie: true
RequestedSessionIdFromURL: false
UserPrincipal: weblogic_bolin
RemoteUser: weblogic_bolin
RemoteAddr: 127.0.0.1
RemoteHost: 127.0.0.1Parameters
MBean = mydomain:Name=MyJDBC Tx Data Source,Type=JDBCTxDataSource chosen_wl_control_weblogic.management.configuration.JDBCTxDataSourceMBean.Targets-Server = mydomain:Name=myserver,Type=Server weblogic.console.submit_form = dataposted wl_control_weblogic.management.configuration.JDBCTxDataSourceMBean.Targets-Server = mydomain:Name=myserver,Type=Server
Attributes
_wl_internalaction = weblogic.management.console.actions.internal.InternalActionContext@4c2f7f java.util.Locale = en_US weblogic.management.console.catalog.Catalog = weblogic.management.console.catalog.XmlCatalog@7f108e weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; 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@62821c weblogic.management.console.helpers.UnitsHelper = weblogic.management.console.helpers.UnitsHelper@685009 weblogic.management.console.helpers.UrlHelper = weblogic.management.console.helpers.UrlHelper@42514f
Headers
Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */* Accept-Encoding = gzip, deflate Accept-Language = zh-cn Cache-Control = no-cache Connection = Keep-Alive Content-Length = 296 Content-Type = application/x-www-form-urlencoded Cookie = ADMINCONSOLESESSION=2RYWOC16Q7AmdDZVTzX2l3xMPhN1Rir3ZoKLPGImrXNrVVOMfL22!-641411377 Host = localhost:7001 Referer = http://localhost:7001/console/actions/mbean/EditMBeanAction?reloadNav=false&tab=targets&MBean=mydomain%3AName%3DMyJDBC+Tx+Data+Source%2CType%3DJDBCTxDataSource User-Agent = Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
BrowserInfo
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; 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 Errors occurred while processing your request.
2.在执行jsp程序(用系统向导创建)报下面错误,不知怎么解决?
Could not find C:/bea/weblogic700/server/lib/weblogic_sp.jar to copy to WebApp <Default WebApp>; file is defined as element of library WebLogic 7.x Deploy
C:/bea/weblogic700/server/lib/weblogic_sp.jar (The system cannot find the file specified)请高手指点,不胜感激!
你看一下在C:/bea/weblogic700/server/lib目录下有weblogic_sp.jar这个文件吗?如果没有,找到并拷贝到C:/bea/weblogic700/server/lib下
把你在WEBLOGIC中配置的内容贴上来
2.我是按照下面的方法配置的:
一 安装JBuilder7,Weblogic700,Oracle8
安装过程略,假设安装路径如下:
c:\bea
c:\jbuilder7
c:\oracle8
假设使用的Oracle数据库名为:orcl二 Weblogic7配置(本例采用thin连接方式访问oracle)· 进入c:\bea\weblogic700\server\bin目录,修改startWLS.cmd
找到set CLASSPATH = … 和set PATH = …
在CLASSPATH最前面加上class12.jar所在全路径,如c:\oracle8\lib\class12.jar;。
在PATH中加入c:\bea\weblogic700\server\bin\oci817_8;。· 打开[启动菜单]中的[BEA Weblogic platform 7.0]->[domain configuration wizard]
1.Select a template:选择WLS Domain,Name默认的mydomain (可修改)
2.Choose Server Type: 默认的是“Single Server”
3.Specify directory for "mydomain": 输入C:\bea\user_projects\
4.Configure Standalone/Administrative Server:
Server Name: 默认为myserver (可修改)
Server Listen Address: 本机ip地址 (单机使用时不填也可)
Server Listen Port: 默认7001
Server SSL Listen Port:默认7002
5.Create Administrator User: 输入管理使用的用户名和密码。
6.选择是否作为系统服务运行。
7.选择是否添加快捷方式到开始菜单中。
上述配置完成后单击[create]创建新的domain。创建成功后会在开始菜单中会出现(前面配置过程中如果没有选择该项则看不到)
[BEA Weblogic Platform 7.0]->[User projects]->[mydomain]->[Start Server]
选择[Start Server]· 启动浏览器输入:http://localhost:7001/console
输入管理使用的用户名和密码,即可进入管理控制台。
· 配置连接池(使用管理控制台)
选择Services->JDBC->Connection Pools,
单击右侧的Configure a new JDBC Connection Pool.
输入以下信息:
Configuration->General页:
Name : 输入连接池名称
URL : jdbc:oracle:thin:@机器名(IP):1521:orcl
Driver classname : oracle.jdbc.driver.OracleDriver
Properties :
user= 数据库用户名
password= 密码
单击Create建立连接池。
选择Targets->Server页:
将myserver(服务器名称)移至右侧的列表中,单击Apply。
· 配置数据源(使用管理控制台)
选择Services->JDBC->TX Data Sources,
单击右侧的Configure a new TX Data Sources,
输入以下信息:
Configuration->General页:
Name : 输入数据源名称
JNDI Name : 输入数据源JNDI名 (以后要引用的DataSource的JNDI名)
Pool Name : 输入连接池名字 (要和上面配置的连接池名字一致)
选中Emulate Two-Phase Commit for non-XA Driver和Row Prefetch Enabled
单击Create建立数据源。
Targets->Server页:
将myserver(服务器名称)移至右侧的列表中,但击单击Apply,配置完毕
三 JBuilder7配置
· 确保系统环境变量种的TEMP和TMP 为不带空格的目录。(weblogic不支持空格)
· 启动Jbuilder7,选择Tools->Configure libraries->class->Add,
加入class12.jar;。。
· 选择Tools->Configure Servers
选择Weblogic Application Server 6.x+,选中右边的Enable Server
Home Directory设为WebLogic7的Home Directory:如c:/bea/weblogic700/server。
server parameters不填。
· 将Custom->JDK Installation Directory设为当前使用JDK的安装目录,如:c:/jdk131
· 将Custom->BEA Home Directory设为WebLogic7的Home Director,如:c:/bea
· 将Custom->Domain Directory设为你的域目录,如:c:/bea/user_projects/mydomain
· 输入Weblogic中的User name, Password ,Domain name, Server name.
· 选择:Tools->Enterprise Setup,选择[CORBA]页, 按下表填写相应信息:
Name for this configuration : WelLogic
Path for ORB Tools : c:/bea/weblogic700/server
Library for Projects : WebLogic 6.x+ Deploy
IDL compiler command : idlj.exe
Commnad option for output directory : 随意目录
选择[DATABASE]页,在其中添加class12.jar库文件。
· 单击OK退出,重新启动JBuilder7配置生效。说明:Properties : 项后还有三项,不知要不要设置,如要怎么设置啊?
换一个Weblogic版本(盗版问题,找不同的盗版版本。)。
第二个问题:
在bea/weblogic700/server/lib目录下,找到weblogic.jar复制一份,改名为weblogic_sp.jar放到该目录下,即可。
以上两种方法绝对正确。
2.建连接池前应确认你已和数据库连通
3.JB7中,加入"class12.zip"那一步不需要
4.配置SERVER时,如果你用的是WEBLOGIC7,应该选择"Weblogic Application Server 7.x"
5.配置SERVER中CUSTOM页,选择Domain Directory后,User name,Domain name,Server name应自动跳出,不需要输入
6.如果你只是想连接数据库,在ENTERPRISE SETUP中不需要设置CORBA,只需在DATABASE DRIVERS中新建一个即可
我重装了jb8,默认情况下,怎么出现gbk问题.即不管在jsp里增加任何语句都报gbk错误,我试图用下面方法都无济于事:
1.用gb2312代替gbk
2.修改工程默认设置:将encoding 改为:utf8/gb2312/gbk
好象都不行啊!
请高手帮帮忙啊!
确保能用。可要结账哟!嘻嘻^_*
大家共同学习!
[email protected]
马上结贴!