首先tools-->配置  里面要 server 里 要配置weblogic
工程属性中app server 选择 weblogic

解决方案 »

  1.   

    JBuilder7的配置:1. 修改环境变量TEMP和TMP 为不带空格的目录如:E:\winnt\temp2. 启动Jbuilder7,选择:Tools->Configure Servers3. 选中左侧的Weblogic Application Server 6.x+,选中右边的Enable Server4. 将General->Home Directory设为WebLogic7的Home Directory如:E:/bea/weblogic700/server,正常的话Jbuilder7将自动为你添好其他的项。5. 将Custom->JDK Installation Directory设为 JDK的安装目录,如:E:/bea/jdk131_026. 将Custom->BEA Home Directory设为WebLogic7的Home Director,如:E:/bea7. 将Custom->Domain Directory设为你的域目录,如:E:/bea/user_projects/mydomain8. 添好User name, Password ,Domain name, Server name后,单击OK退出。9. 选择:Tools->Enterprise Setup,单击CORBA页上的New, 按下表填写相应信息:Name for this configuration = WelLogic 7.0Path for ORB Tools = E:/bea/weblogic700/serverLibrary for Projects = WebLogic 6.x+ DeployIDL compiler command = idlj.exeCommnad option for output directory = E:\CORBAOutput(任意目录,不要有空格)单击OK退出。10.选择Project->Default Project properties在Path页的Required libraries中将会看到WebLogic 6.x+ Client和WebLogic 6.x+ Deploy两项,如果没有,请检查以上步骤是否正确。11.选择Server页,单击Single services for all service in project在下拉列表中选择WebLogic Application Server 6.x+,但击OK退出,配置完毕。
    WebLogic7的配置:1. 启动WebLogic72. 打开IE6,在地址栏中输入:http://localhost:7001/console3. 输入用户名和密码4. 在左边的目录树中选中Services->JDBC->Connection Pools,单击右侧的Configure a new JDBC Connection Pool.,输入以下信息:Configuration->General页:Name = <Connection Pool>URL = <URL >Driver classname = <Driver classname>Properties : user = <user >Password = <Password >单击Create建立连接池。Targets->Server页:将myserver(服务器名称)移至右侧的列表中,但击单击Apply5. 在左边的目录树中选中Services->JDBC->TXData Sources,单击右侧的Configure a new JDBC Connection Pool.,输入以下信息:Configuration->General页:Name = <Connection Pool>JNDI Name = <Connection Pool>Pool Name = <Connection Pool>选中Emulate Two-Phase Commit for non-XA Driver和Row Prefetch Enabled单击Create建立数据源。Targets->Server页:将myserver(服务器名称)移至右侧的列表中,但击单击Apply,配置完毕。