收集在使用过程中遇到的
WebLogic问题及解决方法,可能会对大家有所帮助。 1. TIME:2008-3-4 9:45:30
问题:WebLogic启动时报UnknownHostException,具体是在启动MedRec域的时候出现的。想想以前修改过计算机名称,因此觉得可能和这相关。
解决方法是在C:\WINDOWS\system32\drivers\etc\hosts文件中添加相关的映射信息:
127.0.0.1 Desktop-atalin
<2008-3-4 上午09时29分31秒 CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
java.net.UnknownHostException: Desktop-alin: Desktop-atalin
at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
at java.net.InetAddress.getAllByName(InetAddress.java:1061)
at java.net.InetAddress.getByName(InetAddress.java:958)
at weblogic.rjvm.JVMID.setLocalID(JVMID.java:204)
at weblogic.rjvm.RJVMService.setJVMID(RJVMService.java:48)
at weblogic.rjvm.RJVMService.start(RJVMService.java:30)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
>
The WebLogic Server encountered a critical failure
Reason: Assertion violated
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/protocol/ServerIdentityManager$Initializer
at weblogic.protocol.ServerIdentityManager.findServerIdentity(ServerIdentityManager.java:65)
at weblogic.protocol.URLManager.findAdministrationURL(URLManager.java:170)
at weblogic.server.ServerLifeCycleRuntime.getLifeCycleOperationsRemote(ServerLifeCycleRuntime.java:677)
at weblogic.t3.srvr.ServerRuntime.sendStateToAdminServer(ServerRuntime.java:406)
at weblogic.t3.srvr.ServerRuntime.updateRunState(ServerRuntime.java:392)
at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:172)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:373)
at weblogic.Server.main(Server.java:67)
Stopping PointBase server...
PointBase server stopped. 2. TIME:2008-3-19 20:4:51
问题:WebLogic9.2设置预编译,在weblogic.xml文件中配置:
<jsp-descriptor>
<keepgenerated>true</keepgenerated>
<package-prefix>jsp_servlet</package-prefix>
<page-check-seconds>1</page-check-seconds>
<precompile>false</precompile>
<precompile-continue>true</precompile-continue>
<verbose>true</verbose>
<working-dir>D:\Project\logs\jsp_temp</working-dir>
<print-nulls>true</print-nulls>
<backward-compatible>true</backward-compatible>
<encoding>GBK</encoding>
<exact-mapping>true</exact-mapping>
<default-file-name>true</default-file-name>
<rtexprvalue-jsp-param-name>false</rtexprvalue-jsp-param-name>
</jsp-descriptor>
具体参考:http://edocs.bea.com.cn/wls/docs92/webapp/weblogic_xml.html#wp10719823. TIME:2008-4-8 12:8:48
问题:修改了Session Bean某个方法(readByIdAndName)的参数,导致部署不成功,WebLogic版本为9.2。错误信息储如下列所示:
[EJB:011006]Unable to bind a cluster-aware stateless session EJBObject to the name: EARejb\FinanceUserManageSes_EO. Please ensure that the jndi-name in the weblogic-ejb-jar.xml is correct.
Caused by: java.rmi.UnexpectedException: Failed to parse descriptor file; nested exception is:
java.rmi.server.ExportException: Failed to export class …… problem with rmi descriptor signature readByIdAndName(Ljava.lang.String;Ljava.lang.String;)
解决方案:清空WebLogic缓存,准确地说是清空EJBCompilerCache,在部署的Server下面,删除此目录即可。