JBuilder7+WebLogic7.0的配置和EJB开发 (3)
[ 来源:互网络 | 更新日期:2007-09-08 16:15:16 | 浏览次数:8767]
简介:0的文章为主要内容来写的。综合自己的经验,目的希望大家能顺利的搭建一个比较普遍流行的J2EE环境,并学会开发基本的EJB程序。
1、创建一个Weblogic Server域
本文假设你已经正确安装了这两个软件。值得注意的是在Weblogic Server 7
}
catch (Exception ex){}
}
(10)运行客户端测试程序
要运行测试程序的话,先要为它加一个运行期设置。在Run??>Configuration里选择New在弹出的窗口里选择Run下的Application。在上面的Configuration name里输入Client,在Main里点选旁边的按钮,在弹出的窗口里选择Browse标签下的testses下的TestSesTestClient。一路OK完成。右击TestSesTestClient.java,单击Run Using Client后,运行Client程序。运行成功后如图10所示。Client得到了调用了Session Bean的方法,返回了Testing Successful。
screen.width-333)this.width=screen.width-333;">
4、常见错误解答
错误1:WebLogic Server cannot start: config.xml not found
错误代码描述:
<Info> <Management> <140013> <C:eauser_projects.config.xml not found>
C:eauser_projects.config.xml not found
Since no config.xml was found, the fileRealm.properties file will not be used.
Would you like the server to create a default configuration and boot? (y/n):
问题发生时机:
在Jbuilder上运行Weblogic Server时,在Weblogic 6.x+ http:7001页上。
产生原因:
Weblogic域目录没有正确设置
解决方法:
选择Tools??>Configure Servers,左边选择Weblogic Server 6.x+,选择右边的Custom标签,
检查你的域目录是否正确。如:h:eauser_projectsmydomain。
错误2:Authentication for user <username> denied
错误代码描述:
<Critical> <WebLogicServer> <000364> <Server failed during initialization.
Exception:java.lang.SecurityException: Authentication for user username denied
java.lang.SecurityException: Authentication for user username denied.
问题发生时机:
在Jbuilder上运行Weblogic Server时,在Weblogic 6.x+ http:7001页上。
产生原因:
在Jbuilder里用户名、密码填写错误
解决方法:
选择Tools??>Configure Servers,左边选择Weblogic Server 6.x+,选择右边的Custom标签,
检查你的用户名和密码是否正确。
错误3:Deployment of Web application failed
错误代码描述:
Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 0
Module: TestWebApp Error: weblogic.j2ee.DeploymentException: Cannot deploy
ServletContext(id=2545674,name=TestWebApp,context-path=/TestWebApp) from
C:eauser_projectsmydomainmyserveruploadTestWebAppTestWebApp.war on myserver
because there is already a webapp named
ServletContext(id=5684736,name=TestWebApp,contextpath=/
TestWebApp) loaded from C:document. and
SettingsspatijbprojectTestWebAppTestWebApp, which is using the context path
/TestWebApp.
问题发生时机:
部署WAR文件的时候
产生原因:
可能是你已经在Weblogic上部署了一个相同名称的应用了。
解决方法:
选择Project??>Project Properties,选择Server标签,在Services列表里先选上jsp/servlet,把右边的Map project webapps at runtime的勾去掉,就可以安全的部署了。如果问题还是存在的话,你就只有重新新建一个WEB应用程序,把你做的程序都拷贝


您的位置:
