﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-【Xine】中文站-文章分类-Bea Weblogic</title><link>http://www.blogjava.net/xine/category/11744.html</link><description>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;I love you not because of who you are,but because of who I am when I am with you.&lt;br&gt;&lt;br&gt;</description><language>zh-cn</language><lastBuildDate>Fri, 02 Mar 2007 01:59:52 GMT</lastBuildDate><pubDate>Fri, 02 Mar 2007 01:59:52 GMT</pubDate><ttl>60</ttl><item><title>门户中的资源挂起线程应急解决方案</title><link>http://www.blogjava.net/xine/articles/51995.html</link><dc:creator>【Xine】中文站</dc:creator><author>【Xine】中文站</author><pubDate>Sun, 11 Jun 2006 06:54:00 GMT</pubDate><guid>http://www.blogjava.net/xine/articles/51995.html</guid><wfw:comment>http://www.blogjava.net/xine/comments/51995.html</wfw:comment><comments>http://www.blogjava.net/xine/articles/51995.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xine/comments/commentRss/51995.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xine/services/trackbacks/51995.html</trackback:ping><description><![CDATA[
		<span class="h1b">门户中的资源挂起线程应急解决方案</span>
		<br />
		<br />
		<table cellspacing="0" cellpadding="0" width="100%" border="0">
				<tbody>
						<tr>
								<td height="64">时间：2006-05-26<br />作者：<a href="http://dev2dev.bea.com.cn/author/506.html">Michael Poulin</a><br />浏览次数：
<script language="JavaScript" src="http://203.81.25.103/cgi-bin/beadevcount.cgi?d_id=800" type="text/JavaScript"></script>
 124 <br />本文关键字：<a href="http://dev2dev.bea.com.cn/products/search.jsp?searchtype=keywords&amp;keywords=WebLogic Portal">WebLogic Portal</a>, <a href="http://dev2dev.bea.com.cn/products/search.jsp?searchtype=keywords&amp;keywords=thread hanging">thread hanging</a>, <a href="http://dev2dev.bea.com.cn/products/search.jsp?searchtype=keywords&amp;keywords=Workaround">Workaround</a>, <a href="http://dev2dev.bea.com.cn/products/search.jsp?searchtype=keywords&amp;keywords=线程挂起">线程挂起</a>, <a href="http://dev2dev.bea.com.cn/products/search.jsp?searchtype=keywords&amp;keywords=应急方案">应急方案</a></td>
								<td>
										<table class="box_content" cellspacing="0" cellpadding="0" border="0">
												<tbody>
														<tr>
																<td>
																</td>
														</tr>
												</tbody>
										</table>
								</td>
						</tr>
				</tbody>
		</table>
		<!-- 提取技术文章 -->
		<div class="beas">
				<img height="1" alt="" src="http://dev2dev.bea.com.cn/images/dot6B6B6B.gif" width="100%" />
		</div>
		<h3>业务任务</h3>
		<p>您的门户出现用户请求在资源中挂起情况的频率是多高？我希望这种情况不经常发生。然而，如果出现了这种情况，而且资源不断挂起用户请求，则门户会面临耗尽所有已配置的并发用户请求并最终崩溃的致命风险。这将是一场灾难。我碰到过几次这样的情况，并决定保护我的门户不再受类似情况的影响。</p>
		<p>我们需要让门户包含几个具有登录控件（通过用于每个Portlet的备份文件提供）的Portlet。对于每个请求，创建一个备份文件，备份文件在用户请求方面是线程安全的。在登录控件中，备份文件的init()方法（或preRender()方法）调用独立的安全服务（资源）API以获得资源访问授权。对于业务处理，Portlet也通过其他API调用将用户请求委托到业务层。一切都运行正常，直到一个对资源的调用未返回到Portlet，即，由于某种原因，它在某处挂起了。以下是一个具体示例。</p>
		<p>我们假定WebLogic Portal使用EJB作为业务层和/或安全服务中的资源。此EJB操作其他资源，并通过使用JMS发送消息的方式报告处理状态。此EJB与其他应用程序一起部署在集群中。门户部署在另一个物理机器上。如果共同部署的一个应用程序引发了内存错误，则整个集群（包括EJB）都会挂起，即它不返回请求也不抛出异常。事实上，讨论如此显著的失效是没有必要的：从门户的角度来说，“挂起”模式仅是门户的动态并发生命周期中的一种返回得过慢、延迟过久以至于不能接受的响应。例如，延迟可能由于服务器过载或数据库出现问题引起，但这是不相干的——备份文件中的线程运行时间超出了正常门户工作的允许范围，达到了门户中的“最大并发用户数”。此门户完全停止接受用户请求——这就成了问题。</p>
		<h3>解决方案设计</h3>
		<p>我首先想到的是，在Portlet用于访问其资源的RMI客户端（即EJB客户端）上设置超时（远程－客户端－超时）。然而，关于使用RMI超时的WebLogic指导原则列出了关于此类超时的几条限制，其中包括“在调用中不涉及JMS资源。”这就是说，不能对EJB资源使用超时。我提及这种情况只是为了说明存在门户可能未被保护以不受挂起的资源线程影响的情况。即使没有关于超时的限制，如果请求挂起的速度快于超时释放相关线程的速度，问题就依然存在。</p>
		<p>我想介绍一种针对此问题的可能解决方案。此解决方案在下面的条件下有效：门户具有一些独立于可能会挂起的资源的内容或功能。就是说，门户可以运行部分功能。</p>
		<p>此解决方案包括3个组件：监控、决策规则和规则实施方法。此解决方案的原理很简单：门户监控运行中的资源调用，从而监控被调用的资源线程，对运行过久的资源线程的数量进行计数（riskCounterValue），然后应用决策规则，如“如果riskCounterValue达到或超出预定义的阈值（riskThreshold），则所有传入的对此资源的调用均被拒绝，直到riskCounterValue小于riskThreshold。”使用此规则可以限制可能“挂起”的资源线程数量，而且可能使用简化功能处理用户请求。例如，如果门户包含4个Portlet，用于一个Portlet的某些资源线程被认为“存在挂起的风险”，则门户可以跳过存在风险的Portlet而仅对用户显示3个Portlet。</p>
		<p>规则实施方法的实现非常重要。如果此规则在每个调用的范围内执行，我们可以预见性能会降低，但是可以轻松地控制可能“挂起”的资源线程。如果此规则在调用以外执行，我们可以保持性能，但是对此类控制的调整是需要技巧的。我们将详细讨论后一种情况。图1的图描述了这种情况。</p>
		<p align="center">
				<img height="389" alt="解决方案设计" src="http://dev2dev.bea.com.cn/images/image060526002.jpg" width="513" />
		</p>
		<p>如图所示，在第一步中，门户初始化一个Helper对象，而此Helper对象则初始化一个CallRegistry对象。后者可作为java.util.HashMap实现，并用于注册所有对资源API的调用。然后Helper启动一个watchdog线程。例如，如果使用Struts，则此线程就在模型中启动。watchdog线程定期检查CallRegistry中的记录，对运行时间过长的调用数量进行计数，并将其设置为Helper中的riskCounterValue变量。</p>
		<p>假定我们大概知道API调用的正常执行时间。该值（最长持续时间）可以用于所有的API，或者每个API可以具有其单独的执行时间。因此，当调用一个API方法时，我们可以计算此API在正常情况下预期完成的时间，例如：</p>
		<pre class="code">java.lang.System.currentTimeMillis()
long apiExecutionTime = ...;// property
long timeToComplete =
      java.lang.System.currentTimeMillis() + apiExecutionTim 
</pre>
		<p>当调用Helper的方法时，它将一条新记录添加进CallRegistry。此记录包括一个惟一的调用ID（用作java.util.HashMap中的键）和用于API的预期完成时间（timeToComplete）（用作java.util.HashMap中的值）。如果此方法成功完成，它会从CallRegistry移除其记录。</p>
		<p>让我们来看一下用户请求是如何处理的。接到用户请求后，Portlet的备份文件将其委托给Helper API方法（后者调用资源API）。首先，此Helper API方法检查其是否可以执行。如果接到请求的时候尚未达到riskThreshold，则此Helper API方法继续运行。否则，它会抛出一个异常，门户会继续下一项功能或下一个API调用。</p>
		<p>仅在运行时间过长的资源线程数量（riskCounterValue）小于riskThreshold的情况下才可以赋予执行的权限。通过配置属性设置riskThreshold。例如，如果将并发用户请求最大值配置为25，则riskThreshold可以设置为10。这就是说，门户处理并发用户请求的能力仅存在一半风险，它在资源线程开始挂起的情况下仍然可以运行。</p>
		<p>请注意我们不对运行时间过长的API调用进行任何操作。它们中的一些最终可以成功完成，Helper API方法会将其记录从CallRegistry移除，即下一次计数可能会低于riskThreshold，下一次针对资源的用户请求可能不会被拒绝（通过抛出异常的方式）。</p>
		<p>门户无法知道网络中是否存在意外延迟或者资源线程是否确实挂起。因此，推荐在几个顺序控制周期中达到或超出riskThreshold时给操作团队发送一个通知（例如，通过电子邮件）。收到的通知允许操作团队迅速分析日志，及时找到并解决运行时间过长的调用的原因。</p>
		<h3>分析和调整</h3>
		<p>对“挂起”的资源线程的控制具有很大的动态性，要对其进行调整并不是一件简单的事。其效果是基于对以下3个参数的权衡： </p>
		<ul>
				<li>用户请求之间的平均时间（TUR）与watchdog线程控制周期（风险控制周期）之间的时间（TRC）的比率：R = TUR / TRC 
</li>
				<li>用于特定资源的风险阀值（riskThreshold） 
</li>
				<li>资源API调用的预期执行时间 </li>
		</ul>
		<p>对控件的研究和测试得出的结论是，参数调整取决于特定的门户实现，但具有共同的趋势。<a href="http://res.sys-con.com/story/feb06/185309/poulin-fig-2.gif" target="_blank">图2</a>中的图表展示了用于调整的准则。在测试中，比率被设为R = 95%，TUR为95［ms］，TRC被设为100［ms］。通常，可靠的比率是90%或更高。 </p>
		<p align="center">
				<img height="208" alt="用于调整的准则" src="http://dev2dev.bea.com.cn/images/image060526003.gif" width="468" border="0" />
		</p>
		<p>此图表显示“挂起”的API调用数（在控件中计数）是如何取决于调用执行时间的。图表中的点代表风险控制周期之间挂起的用户请求的最大数量，即在针对给定调用执行时间而进行的一系列测试中的riskCounterValue最大值。请记住，在实施决策规则时，一些用户请求被拒绝，而“挂起”的资源线程数量不会增加。</p>
		<p>图2中的水平红线标记门户中所允许的最大并发用户数量。控件的目的是将最大riskCounterValue严格保持在红线以下。图表中的点越接近红线，就越可能达到或超出riskThreshold。</p>
		<p>我们可以看到，控制的行为不明显。对于某些调用执行时间值（从3250ms到1500ms），控件生成用户请求，“挂起”的资源线程数量接近并超出门户允许的并发用户最大值。在此间隔期间，控制在给定条件下是无效的。同时，控制在从100ms到1000ms和从3500ms到4000ms的2个间隔中是有效的：具有特定riskThreshold的决策规则可靠地保护门户不受“挂起”的API调用的影响，并保留足够的并发请求线程以服务其他用户请求。</p>
		<p>此图表还显示较小的riskThreshold可提供较好的保护。但是，如果将一个资源的riskThreshold设置得过低，资源可能仅仅由于网络延迟的轻微波动就在大多数用户会话中不可用。这是另一个主题了：平衡和调整。</p>
		<h3>结束语</h3>
		<p>这套关于“挂起”的资源调用的运行时控制的推荐解决方案允许门户隔离有问题的资源，并使用余下的资源继续运行，从而最大程度地减小对性能的影响。此解决方案的效果取决于以下几个调整参数：请求频率和风险控制周期频率的比率、风险阀值的值和预期的调用执行时间。</p>
		<p>这种情况下的调整不是一件容易的事——它需要密集的测试。此外，本文中给出的数字是特定于我的测试门户的，即使您发现了相关性，在您的门户上进行的测试中使用的应该是其他值。另一方面，如果某种程度的性能降低是可以接受的，则推荐在每个API调用的范围内执行风险控制周期，以显著简化解决方案参数的调整。</p>
		<h3>参考资料</h3>
		<ul>
				<li>WebLogic RMI特性和指导原则：关于使用RMI超时的指导原则<a href="http://e-docs.bea.com/wls/docs81/rmi/rmi_api.html" target="_blank">http://e-docs.bea.com/wls/docs81/rmi/rmi_api.html</a></li>
				<li>Nyberg, G.、Patrick, R.、Bauerschmidt, P.、McDaniel, J.以及Mukherjee, R.所著的“Mastering BEA WebLogic Server: Best Practices for Building and Deploying J2EE Applications”，Wiley E-Book，2004年3月出版。ISBN: 0-471-48090-8。 </li>
		</ul>
		<p>
				<b>原文出处:</b>
				<a href="http://wldj.sys-con.com/read/185309.htm" target="_blank">http://wldj.sys-con.com/read/185309.htm</a>
				<a href="http://www.onjava.com/pub/a/onjava/2005/10/26/ajax-handling-bookmarks-and-back-button.html" target="_blank">
				</a>
		</p>
		<!--文章其他信息-->
		<div class="dot001">
				<img height="1" alt="" src="http://dev2dev.bea.com.cn/images/_.gif" width="100%" />
		</div>
		<table cellspacing="0" cellpadding="3" width="100%" border="0">
				<tbody>
						<tr valign="bottom">
								<td colspan="2" height="20"> <span class="h2b">作者简介</span></td>
						</tr>
						<tr>
								<td valign="top" align="middle" width="0">
								</td>
								<td>
										<a href="http://wldj.sys-con.com/author/poulin.htm" target="_blank">Michael Poulin</a> 是一位技术架构师，现供职于华尔街一家大型公司。他是Sun认证的Java技术架构师。过去数年来，他专攻分布式计算、应用程序安全性和SOA。</td>
						</tr>
				</tbody>
		</table>
<img src ="http://www.blogjava.net/xine/aggbug/51995.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xine/" target="_blank">【Xine】中文站</a> 2006-06-11 14:54 <a href="http://www.blogjava.net/xine/articles/51995.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>启动 WLS 时的身份验证错误</title><link>http://www.blogjava.net/xine/articles/49697.html</link><dc:creator>【Xine】中文站</dc:creator><author>【Xine】中文站</author><pubDate>Thu, 01 Jun 2006 08:54:00 GMT</pubDate><guid>http://www.blogjava.net/xine/articles/49697.html</guid><wfw:comment>http://www.blogjava.net/xine/comments/49697.html</wfw:comment><comments>http://www.blogjava.net/xine/articles/49697.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xine/comments/commentRss/49697.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xine/services/trackbacks/49697.html</trackback:ping><description><![CDATA[
		<div align="center">
				<table cellspacing="0" cellpadding="0" width="644" border="0">
						<tbody>
								<tr>
										<td>
												<img style="CURSOR: pointer" onclick="javascript:window.open(this.src);" src="http://www.bea.com.cn/support_pattern/images/01.jpg" width="644" onload="javascript:if(this.width&gt;500)this.style.width=500;" />
										</td>
								</tr>
						</tbody>
				</table>
				<table height="25" cellspacing="0" cellpadding="0" width="644" border="0">
						<tbody>
								<tr>
										<td height="25">
												<div align="right"> </div>
										</td>
								</tr>
								<tr>
										<td height="40">
												<div align="center">
														<h1>启动 WLS 时的身份验证错误</h1>
												</div>
										</td>
								</tr>
						</tbody>
				</table>
				<table cellspacing="0" cellpadding="0" width="615" border="0">
						<tbody>
								<tr>
										<td>
												<div align="center">
														<table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2">
																<tbody>
																		<tr>
																				<td style="VERTICAL-ALIGN: top">
																						<font style="COLOR: rgb(0,0,0)" color="#009900">
																								<b>问题描述</b>
																						</font>
																						<br />WebLogic Server 不启动，并抛出与管理密码、管理授权或 LDAP 有关的错误。<br /></td>
																		</tr>
																</tbody>
														</table>  
<table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><font color="#009900"><span style="FONT-WEIGHT: bold; COLOR: rgb(0,0,0)">故障排除</span><br /></font>请注意，并非下面所有任务都需要完成。有些问题仅通过执行几项任务就可以解决。<br /><br /><font color="#009900"><span style="FONT-WEIGHT: bold; COLOR: rgb(0,0,0)">快速链接</span></font><ul><li><a href="#Why_does_the_problem_occur_">为什么发生此问题？</a><ul><li><a href="#1_Boot_identity_not_valid_WLS7_and">启动身份无效（WLS 7.0 和 WLS 8.1）</a></li><li><a href="#2_Embedded_LDAP_:_Loss_of_Admin">内嵌的 LDAP：丢失管理密码（WLS 7.0 和 WLS 8.1） </a></li><li><a href="#3_Embedded_LDAP_:_The_managed_server">内嵌的 LDAP：更改管理密码后被管服务器不启动（WLS 7.0 和 WLS 8.1）</a></li><li><a href="#4_Weblogic_server_failed_to_connect_to">WebLogic 服务器与 LDAP 服务器连接失败（WLS 7.0 和 WLS 8.1）</a></li><li><a href="#5_LDAP_server_:_Connection_error_error">LDAP 服务器：连接错误（WLS 7.0 和 WLS 8.1）</a></li><li><a href="#6_LDAP_server_:_Weblogic_admin_user_is">LDAP 服务器：WebLogic 管理用户启动服务器时被拒绝（WLS 7.0 和 WLS 8.1） </a></li><li><a href="#7_Weblogic_as_NT_service:_error_1058_">WebLogic 作为 NT 服务：错误 1058</a></li><li><a href="#8_Weblogic_as_NT_service:_error_1067_">WebLogic 作为 NT 服务：错误 1067</a></li><li><a href="#9_System_user_password_in_File_Realm">File Realm 中的系统用户密码损坏 (WLS 6.1)</a></li></ul></li></ul><ul><li><a href="#How_to_Set_Debug_Flags">如何设置调试标志</a><p></p></li><li><a href="#Known_WebLogic_Server_Issues">已知的 WebLogic Server 问题 </a></li></ul><br /><a name="Why_does_the_problem_occur_"></a><span class="keywordhighlight">为什么发生此问题？</span><br />要启动 WebLogic Server 实例，必须提供拥有服务器启动权限的用户的 Credential。<br />将根据某个安全 Realm（即 File Realm、LDAP、RDBMS LDAP 等）检查 Credential。如果启动时提供的信息与安全 Realm 中的信息不匹配，或安全 Realm 损坏，WebLogic Server 将不会启动。<br /><br />下面是在若干种情况下查明故障和解决问题的方法。<br /><br /><a name="1_Boot_identity_not_valid_WLS7_and"></a><span class="keywordhighlight">启动身份无效（WLS 7.0 和 WLS 8.1）</span><br />启动 WebLogic Server 时抛出以下错误：<br /></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><span style="FONT-FAMILY: courier new">The WebLogic Server did not start up properly. </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">Reason: weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; </span><font size="-1"><br /></font></td></tr></tbody></table><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top">该错误表明启动身份文件 (boot.properties) 中的用户名和/或密码无效。可能是在创建启动身份文件后更改过启动身份。请使用正确的用户名和密码编辑和更新启动身份文件。首次使用更新后的启动身份文件启动服务器时会将这些新值加密。<b><br /><span>解决方法</span></b>：<br />以明文形式更改 boot.properties 中的参数值。“<span style="FONT-FAMILY: courier new">boot.properties</span>”通常位于域根目录中。<br />例如：<br /></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><font style="FONT-FAMILY: courier new" color="#000000">username=weblogic</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">password=weblogic812</font></td></tr></tbody></table><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top">设置属性后，重新启动服务器。<br /><font size="-1"><a href="#TOP">返回页首</a></font><br /><p><b><a name="2_Embedded_LDAP_:_Loss_of_Admin"></a>内嵌的 LDAP：丢失管理密码（WLS 7.0 和 WLS 8.1）</b></p><p>管理密码已丢失。</p><p><span style="FONT-WEIGHT: bold">解决方法：</span><br />由于没有覆盖用户 ID 密码的方法，因此必须创建新的管理员用户 ID，然后使用它来启动 WebLogic。以下是丢失管理员密码后恢复管理用户的步骤。<br />假定创建了一个用户 ID“adminuser”，密码是“weblogic” </p><ol><li>将目录更改为域目录：cd mydomain 
</li><li>java -cp D:\bea\weblogic615\server\lib\weblogic.jar weblogic.security.utils.AdminAccount adminuser weblogic . （注意：命令的末尾有一个句点） 
</li><li>rm myserver/ldap/DefaultAuthenticatormyrealmInit.initialized 
</li><li>rm boot.properties（如果有） 
</li><li>以“adminuser”为管理员用户 ID 重新启动管理服务器 </li></ol><font size="-1"><a href="#TOP">返回页首</a></font>   
<p><b><a name="3_Embedded_LDAP_:_The_managed_server"></a>内嵌的 LDAP：更改管理密码后被管服务器无法启动（WLS 7.0 和 WLS 8.1）</b><br />WebLogic Server 无法正常启动。<br />抛出了异常：<br /></p></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><font style="FONT-FAMILY: courier new" color="#000000">weblogic.management.configuration.ConfigurationException: [Configuration Management:150021]The admin</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">server failed to authenticate the identity of the user weblogic starting the managed server. The reason for the error is .</font><br /></td></tr></tbody></table><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><b>解决方法</b>：<br />如果更改管理密码时被管服务器有故障，就会出现该异常。<br />删除被管服务器中的 ldap 目录。<br />LDAP 目录位于被管根目录下，名称是 ldap。<br />如果被管服务器名称为 myManaged1，则 LDAP 目录将是 ./myManaged1/ldap<br /><br /><p><b><a name="4_Weblogic_server_failed_to_connect_to"></a>WebLogic Server 与 LDAP 服务器连接失败</b><br />抛出错误，说明 WLS 与 LDAP 服务器连接失败。可能的成因是 LDAP Server 未启动或主机地址和/或端口无效  </p><br /></td></tr></tbody></table><table style="WIDTH: 615px; HEIGHT: 120px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><span style="FONT-FAMILY: courier new">&lt;13 juil. 2004 16 h 42 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;new LDAP connection to host localhost port 389 use local connection is false&gt; </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">&lt;13 juil. 2004 16 h 42 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;created new LDAP connection LDAPConnection { ldapVersion:2 bindDN:""}&gt; </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">&lt;13 juil. 2004 16 h 42 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;connection failed netscape.ldap.LDAPException: failed to connect to server ldap://localhost:389 (91)&gt;</span><br /><font size="-1"><br /></font></td></tr></tbody></table><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><b>解决方法</b>： <br /><ul><li>验证 LDAP 服务器是否已启动 
</li><li>验证主机地址和端口是否有效 </li></ul><font size="-1"><a href="#TOP">返回页首</a></font><br /><br /><b><a name="5_LDAP_server_:_Connection_error_error"></a>LDAP 服务器：连接错误（错误 49）<br /><br /></b></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><span style="FONT-FAMILY: courier new">&lt;30 juin 2004 15 h 07 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;new LDAP connection to host localhost port 389 use local connection is false&gt; </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">&lt;30 juin 2004 15 h 07 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;created new LDAP connection LDAPConnection { ldapVersion:2 bindDN:""}&gt; </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">&lt;30 juin 2004 15 h 07 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;connection failed netscape.ldap.LDAPException: error result (49)&gt;</span><br /><font size="-1"><br /></font></td></tr></tbody></table><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><b>解决方法</b>：<br />提供的用于连接 LDAP 服务器的用户 ID 无效。<br />检查 config.xml 并验证以下参数：<br />  Credential="<font color="#3333ff">weblogic</font>" <br />  Principal="<font color="#3333ff">uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot</font>"  </td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><span style="FONT-FAMILY: courier new">       &lt;weblogic.security.providers.authentication.IPlanetAuthenticator </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">            ControlFlag="SUFFICIENT" </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">            Credential="</span><font style="FONT-FAMILY: courier new" color="#3333ff">weblogic</font><span style="FONT-FAMILY: courier new">" </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">            GroupBaseDN="ou=groups" </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">            Name="Security:Name=RealmIPlanetAuthenticator" </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">            Principal="</span><font style="FONT-FAMILY: courier new" color="#3333ff">uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot</font><span style="FONT-FAMILY: courier new">" </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">            Realm="Security:Name=Realm" UserBaseDN="dc=bea,dc=com"/&gt;</span><br /><font size="-1"><br /></font></td></tr></tbody></table><br /><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top">要解决该问题，请使用以下方法之一更正 uid 或密码 (Credential)，然后重新启动 WebLogic Server。<span style="COLOR: rgb(153,51,153)"><br /></span><ol style="COLOR: rgb(0,0,0); FONT-FAMILY: times new roman"><li><big><span class="234004512-18112004"><font size="2"><big>编辑 config.xml 并更改 uid 或密码，然后重新启动</big></font></span></big></li><li><big><span class="234004512-18112004"><font size="2"><big>将 config.xml.booted 复制到 config.xml，重新启动服务器，然后更改 Credential（uid/密码）</big></font></span></big></li></ol><br /><font size="-1"><a href="#TOP">返回页首</a></font><br /><p><b><a name="6_LDAP_server_:_Weblogic_admin_user_is"></a>LDAP 服务器：WebLogic 管理用户启动服务器时被拒绝</b><br />WebLogic Server 管理用户在启动服务器时可能遭到拒绝。三个可能的成因如下：<br /></p><ol><li>与 LDAP 连接时发生错误 32 
</li><li>与 LDAP 连接时身份验证失败 
</li><li>不允许用户 XXXXXX 启动服务器 </li></ol><br /><span style="FONT-WEIGHT: bold">1. 与 LDAP 连接时发生错误 32</span><br /></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><font style="FONT-FAMILY: courier new" color="#000000">&lt;30 juin 2004 15 h 10 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;connection succeeded&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">&lt;30 juin 2004 15 h 10 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;DN for user weblogic: uid=weblogic,dc=bea,dc=com&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">&lt;30 juin 2004 15 h 10 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;search("ou=groups", "(&amp;(uniquemember=uid=weblogic,dc=bea,d</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">c=com)(objectclass=groupofuniquenames))", base DN &amp; below)&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">&lt;30 juin 2004 15 h 10 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;returnConnection conn:LDAPConnection {ldap://localhost:389</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000"> ldapVersion:3 bindDN:"uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot"}&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">netscape.ldap.LDAPException: </font><font style="FONT-FAMILY: courier new" color="#3333ff">error result (32)</font><br /><font size="-1"><br /></font></td></tr></tbody></table><br /><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><p><b style="FONT-WEIGHT: bold">解决方法</b><span style="FONT-WEIGHT: bold">：</span><br />在 LDAP 中未找到 WebLogic 应在与 LDAP 连接时使用的 LDAP 用户（本例中为“weblogic”），因此必须创建该用户。</p>关于创建用户 ID 的方法，请参考 LDAP 服务器文档。<br /><br style="FONT-WEIGHT: bold" /><span style="FONT-WEIGHT: bold">2. 与 LDAP 连接时身份验证失败</span><br /></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><span style="FONT-FAMILY: courier new">&lt;30 juin 2004 15 h 29 CEST&gt; &lt;Debug&gt; &lt;SecurityDebug&gt; &lt;000000&gt; &lt;returnConnection conn:LDAPConnection {ldap://localhost:389 </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new"> ldapVersion:3 bindDN:"uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot"}&gt; </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">javax.security.auth.login.FailedLoginException: [Security:090302]Authentication Failed: </span><font style="FONT-FAMILY: courier new" color="#3333ff">User admin denied</font><br /><font size="-1"><br /></font></td></tr></tbody></table><br /><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><p><span style="FONT-WEIGHT: bold">解决方法：</span><span></span><br />config.xml. 中的管理用户密码错误。<br /></p><p>更改 config.xml 中的“credential”以使用正确的密码。<br /></p>&lt;weblogic.security.providers.authentication.IPlanetAuthenticator <br />            Credential="<font color="#3333ff">weblogic</font>"   <br /><br /><font style="FONT-WEIGHT: bold; COLOR: rgb(0,0,0)" color="#3333ff">3. 不允许用户 XXXXXX 启动服务器</font><br /></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><span style="FONT-FAMILY: courier new">&lt;30 juin 2004 16 h 40 CEST&gt; &lt;Critical&gt; &lt;Security&gt; &lt;BEA-090404&gt; &lt;</span><font style="FONT-FAMILY: courier new" color="#3333ff">User weblogic is not permitted to boot the server</font><span style="FONT-FAMILY: courier new">; </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">The server policy may have changed in such a way that the user is no longer able to boot the server. </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">Reboot the server with the administrative user account or contact the system administrator to update the server policy definitions.&gt;</span><br /><font size="-1"><br /></font></td></tr></tbody></table><br /><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><b>解决方法</b><span>：</span><br />LDAP 管理员组中没有与 LDAP 连接所使用的 LDAP 用户“weblogic”。<br />将此用户添加到管理员组。有关说明，请参考 LDAP 文档。<br /><br /><font size="-1"><a href="#TOP">返回页首</a></font><br /><p><b><a name="7_Weblogic_as_NT_service:_error_1058_"></a>WebLogic 作为 NT 服务：错误 1058</b><br />WLS 无法在 Windows 2000 上作为 Windows NT 服务启动，并产生以下错误：<br /><span style="FONT-FAMILY: courier new">“Could not start the &lt;Service Name&gt; service on \\&lt;Computer Name&gt;.Error 1058:The specified service is disabled and cannot be started.”</span></p><p><b>解决方法</b><span>：</span><br />为该服务启用 Windows 硬件配置文件。<br />以下是在 Windows 2000 上启用的操作步骤：<br /></p><ol><li>依次单击“开始”、“设置”、“控制面板”、“管理工具”、“服务”。 
</li><li>在“服务”窗口中，右键单击相应的服务，然后选择“属性”。 
</li><li>单击“登录”选项卡，在窗口底部的白色区域中，可以将每个硬件配置文件在“已启用”和“已禁用”间切换。通过单击将相应的配置文件设置为“已启用”。 </li></ol><p>Microsoft 知识库文章 175155（位于 <a href="http://support.microsoft.com/kb/q175155/">http://support.microsoft.com/kb/q175155/）</a>也介绍了以上步骤。<br /></p><p><b><a name="8_Weblogic_as_NT_service:_error_1067_"></a>WebLogic 作为 NT 服务：错误 1067</b><br />将 WLS 域作为 NT 服务安装后，启动它时发生“Microsoft Error: 1067”。<br />此错误提供的只是一般性信息，未提供任何与真正问题有关的线索。下面的情况可能会导致此“1067”错误及 WebLogic Server 无法作为服务正常启动。<br />CONFIGURATION：安装在 Windows NT 上的 WLS 6.x、7.x。<br /></p><b>解决方法</b>：<br />服务继承系统属性。如果系统 PATH 变量中有空格，服务就无法启动。举一个例子，下面是系统路径的一个片段：“<span style="FONT-FAMILY: courier new">C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;</span>”。Visual Studio 目录名中的空格会导致 beasvc 产生“1067”非描述性错误而启动失败。<br /><br />清理系统 PATH 环境变量，使之不包含空格。<br /><br /><font size="-1"><a href="#TOP">返回页首</a></font><br /><br /><b><a name="9_System_user_password_in_File_Realm"></a>File Realm 中的系统用户密码 (WLS 6.1)</b><br />WebLogic Server 不能正常启动。<br /><br /></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><span style="FONT-FAMILY: courier new">Exception raised: </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">java.lang.SecurityException: Authentication for user system denied </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">        at weblogic.security.SecurityService.initializeSuid(SecurityService.java:410) </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">        at weblogic.security.SecurityService.initialize(SecurityService.java:120) </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">        at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:421) </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:213) </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">        at weblogic.Server.main(Server.java:35) </span><br style="FONT-FAMILY: courier new" /><span style="FONT-FAMILY: courier new">Reason: Fatal initialization exception</span><br style="FONT-FAMILY: courier new" /><font size="-1"><br /></font></td></tr></tbody></table><br /><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><p><b>解决方法</b><span>：</span><br />File Realm 中的系统用户密码由于某种原因在客户域中损坏，因而 WebLogic Server 无法启动。<br /></p>创建 fileRealm.properties 和 SerializedSystemIni.dat（位于域根目录中）的备份。<br />如果有可以成功启动的域，请将正常域中的以下文件复制到问题域：<br /><ol><li>fileRealm.properties 
</li><li>SerializedSystemIni.dat </li></ol><br />备注：由于加密/解密需要由以上文件共同完成，因此两个文件都必须复制，才能使加密/解密正常进行。<br /><font size="-1"><a href="#TOP">返回页首</a></font><br /><p></p><p></p><b><a name="How_to_Set_Debug_Flags"></a>如何设置调试标志</b><br />设置调试标志有助于解决许多 LDAP 问题。编辑 config.xml 文件并添加以下属性：<br />    <font color="#3333ff">StdoutDebugEnabled="true" StdoutSeverityLevel="64"</font><br />    <font color="#3333ff">&lt;ServerDebug DebugSecurityAdjudicator="true" DebugSecurityAtn="true"</font><br /><font color="#3333ff">        DebugSecurityAtz="true" DebugSecurityRoleMap="true" Name="myserver"/&gt;</font><br />如下面所示：<br /><br /></td></tr></tbody></table><table style="WIDTH: 615px" cellspacing="2" cellpadding="2" border="1"><tbody><tr><td style="VERTICAL-ALIGN: top; BACKGROUND-COLOR: rgb(204,204,204)"><font style="FONT-FAMILY: courier new" color="#000000">   &lt;Server ListenAddress="" ListenPort="6151" Name="myserver"</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">        NativeIOEnabled="true" ReliableDeliveryPolicy="RMDefaultPolicy"</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">        ServerVersion="8.1.2.0" </font><font style="FONT-FAMILY: courier new" color="#3333ff">StdoutDebugEnabled="true" StdoutSeverityLevel="64"</font><font style="FONT-FAMILY: courier new" color="#000000">&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">        &lt;SSL Enabled="false" HostnameVerificationIgnored="false"</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">            IdentityAndTrustLocations="KeyStores" Name="myserver"/&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">        &lt;ServerDebug DebugSecurityAdjudicator="true"</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">            DebugSecurityAtn="true" DebugSecurityAtz="true"</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">            DebugSecurityRoleMap="true" Name="myserver"/&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">    &lt;/Server&gt;</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#000000">    </font><font style="FONT-FAMILY: courier new" color="#3333ff">&lt;ServerDebug DebugSecurityAdjudicator="true" DebugSecurityAtn="true"</font><span style="FONT-FAMILY: courier new"></span><br style="FONT-FAMILY: courier new" /><font style="FONT-FAMILY: courier new" color="#3333ff">        DebugSecurityAtz="true" DebugSecurityRoleMap="true" Name="myserver"/&gt;</font><br /><font size="-1"><br /></font></td></tr></tbody></table><br /><table style="WIDTH: 615px; TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><p><b><a name="Known_WebLogic_Server_Issues"></a>已知的 WebLogic Server 问题</b></p><a href="http://e-docs.bea.com/wls/docs70/notes/resolved.html#1075200">CR076945</a> (English)  WLS 7.0 - 由于 LDAP 文件可能已损坏而无法启动 WLS。<br /><span style="COLOR: rgb(0,0,0)"><br />此外，您可以定期查看所用 WLS 版本的“Release Notes”，了解 Service Pack 中的“Known Issues”或“Resolved Issues”的详细信息及浏览与身份验证有关的问题。  </span><span style="COLOR: rgb(0,0,0)">方便起见，下面提供了这些发行说明的链接：<br /></span><ul><li><span style="COLOR: rgb(0,0,0)"><a href="http://edocs.bea.com/wls/docs81/notes/index.html">WLS 8.1 Release Notes (English)</a></span></li><li><span style="COLOR: rgb(0,0,0)"><a href="http://edocs.bea.com/wls/docs70/notes/index.html">WLS 7.0 Release Notes (English)</a></span></li><li><span style="COLOR: rgb(0,0,0)"><a href="http://edocs.bea.com/wls/docs61/notes/index.html">WLS 6.1 Release Notes (English)</a></span></li></ul><span style="COLOR: rgb(0,0,0)">使用搜索功能也可以搜索到“Release Notes”，还可以搜索到其它支持解决办法及与 CR 有关的信息，如<a href="#Need_Further_Help?">需要更多帮助？</a>中所提到的内容。如果客户签订了技术支持合同，则可以登录 </span><span style="FONT-FAMILY: 'Times New Roman'"><a href="http://support.bea.com/">http://support.bea.com/</a>，登录后会看到为 Solutions 和 Bug Central 提供的 Browse portlet，可在其中按产品版本浏览最新提供的 CR。</span><br /><br /><a href="#TOP">返回页首</a></td></tr></tbody></table><table style="WIDTH: 615px; COLOR: rgb(0,0,0); TEXT-ALIGN: left" cellspacing="2" cellpadding="2"><tbody><tr><td style="VERTICAL-ALIGN: top"><span><span style="FONT-WEIGHT: bold"><a name="Need_Further_Help?"></a>需要更多帮助？</span></span><br /><span style="FONT-FAMILY: 'Times New Roman'">如果您已经理解这个模式，但仍需要更多帮助，您可以：<br /></span><ol><li><span style="FONT-FAMILY: 'Times New Roman'">在 </span><span style="FONT-FAMILY: 'Times New Roman'"><a href="http://support.bea.com/">http://support.bea.com/</a></span> 上查询 AskBEA（例如，<span style="FONT-FAMILY: 'Times New Roman'"></span><span style="FONT-FAMILY: 'Times New Roman'">使用</span><span style="FONT-FAMILY: 'Times New Roman'">“errors starting WLS”，以查找其它已发布的解决办法。</span><span style="COLOR: rgb(0,0,0); FONT-FAMILY: 'Times New Roman'">技术支持合同客户：确保已经登录，可以访问提供的与 CR 有关的信息。</span></li><li><span style="FONT-FAMILY: 'Times New Roman'">在 </span><a href="http://newsgroups.bea.com/">http://newsgroups.bea.com/</a> 上，向 BEA 的某个新闻组提出更详细具体的问题。<br /></li></ol>如果这还不能解决您的问题，并且您拥有有效的技术支持合同，您可以通过登录以下网站来打开支持案例：<span style="FONT-FAMILY: 'Times New Roman'"><a href="http://support.bea.com/">http://support.bea.com/</a></span>。</td></tr></tbody></table><br /><table width="615" border="2"><tbody><tr><td><p><strong>反馈</strong></p><p><font color="#000000">请给我们提供您的意见，说明此支持诊断模式<strong>“启动 WLS 时出错”</strong>一文是否有所帮助、您需要的任何解释，以及对<a href="mailto:support.ke@bea.com?subject=Patterns%20Feedback:%20Errors%20Starting%20WLS&amp;body=">支持诊断模式</a>的新主题的任何要求。<br /></font></p></td></tr></tbody></table><br /><table width="615" border="2"><!--DWLayoutTable--><tbody><tr><td height="78"><p><strong>免责声明：</strong></p><p>依据 BEA 与您签署的维护和支持协议条款，BEA Systems, Inc. 在本网站上提供技术技巧和补丁供您使用。虽然您可以将这些信息和代码与您获得 BEA 授权的软件一起使用，但 BEA 并不对所提供的技术技巧和补丁做任何形式的担保，无论是明确的还是隐含的。</p><p>本文档中引用的任何商标是其各自所有者的财产。有关完整的商标信息，请参考您的产品手册。</p></td></tr></tbody></table></div>
										</td>
								</tr>
						</tbody>
				</table>
		</div>
<img src ="http://www.blogjava.net/xine/aggbug/49697.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xine/" target="_blank">【Xine】中文站</a> 2006-06-01 16:54 <a href="http://www.blogjava.net/xine/articles/49697.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux 系统下面重建weblogic domain</title><link>http://www.blogjava.net/xine/articles/49696.html</link><dc:creator>【Xine】中文站</dc:creator><author>【Xine】中文站</author><pubDate>Thu, 01 Jun 2006 08:53:00 GMT</pubDate><guid>http://www.blogjava.net/xine/articles/49696.html</guid><wfw:comment>http://www.blogjava.net/xine/comments/49696.html</wfw:comment><comments>http://www.blogjava.net/xine/articles/49696.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xine/comments/commentRss/49696.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xine/services/trackbacks/49696.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">[web@www web]$ cd /home/web/bea/weblogic81/server/bin/<br />[web@www web]$ rm boot.properties<br />[web@www web]$ rm -Rf myserver<br />[web@www web]$ rm config.xml<br />[web@www web]$ rm config.xml.booted<br />[web@www web]$ ./startWLS.sh<br /><br /></font>这样，一步一步按提示做就可以重新建一个域了<br /><br />我是weblogic console密码忘了才这样做的，不知道有没有好的办法恢复密码？<img src ="http://www.blogjava.net/xine/aggbug/49696.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xine/" target="_blank">【Xine】中文站</a> 2006-06-01 16:53 <a href="http://www.blogjava.net/xine/articles/49696.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>linux 开机自动启动weblogic</title><link>http://www.blogjava.net/xine/articles/49694.html</link><dc:creator>【Xine】中文站</dc:creator><author>【Xine】中文站</author><pubDate>Thu, 01 Jun 2006 08:52:00 GMT</pubDate><guid>http://www.blogjava.net/xine/articles/49694.html</guid><wfw:comment>http://www.blogjava.net/xine/comments/49694.html</wfw:comment><comments>http://www.blogjava.net/xine/articles/49694.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xine/comments/commentRss/49694.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xine/services/trackbacks/49694.html</trackback:ping><description><![CDATA[
		<font color="#ff0000">killall weblogic <br /> killall java <br /> cd /home/web/bea/weblogic81/server/bin <br /> ./startWLS.sh &gt; /home/web/web.log &amp; <br /> cd /home/web/ <br /></font> <br /> 这是我restartWLS的脚本，放在web的home下面 <br /> <br /> 我在rc.local里面加了一句 <br /><font color="#ff0000">  su - web -c restartWLS</font><br /><br />这样就可以实现linux 开机自动启动weblogic了<img src ="http://www.blogjava.net/xine/aggbug/49694.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xine/" target="_blank">【Xine】中文站</a> 2006-06-01 16:52 <a href="http://www.blogjava.net/xine/articles/49694.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>weblogic.xml,web.xml配置文件模板</title><link>http://www.blogjava.net/xine/articles/49693.html</link><dc:creator>【Xine】中文站</dc:creator><author>【Xine】中文站</author><pubDate>Thu, 01 Jun 2006 08:51:00 GMT</pubDate><guid>http://www.blogjava.net/xine/articles/49693.html</guid><wfw:comment>http://www.blogjava.net/xine/comments/49693.html</wfw:comment><comments>http://www.blogjava.net/xine/articles/49693.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/xine/comments/commentRss/49693.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/xine/services/trackbacks/49693.html</trackback:ping><description><![CDATA[
		<p>----------------------------------<a>7.0sp2</a>  weblogic.xml------------------------------------------------------------------<br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />&lt;!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN" "<a href="http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd">http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd</a>"&gt;<br />&lt;weblogic-web-app&gt;<br />  &lt;jsp-descriptor&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;compileFlags&lt;/param-name&gt;<br />      &lt;param-value&gt;-g&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;keepgenerated&lt;/param-name&gt;<br />      &lt;param-value&gt;true&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;encoding&lt;/param-name&gt;<br />      &lt;param-value&gt;GBK&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;workingDir&lt;/param-name&gt;<br />      &lt;param-value&gt;/home/webdev/barcelona/WEB-INF/workingdir/&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />  &lt;/jsp-descriptor&gt;<br />  &lt;charset-params&gt;<br />    &lt;input-charset&gt;<br />      &lt;resource-path&gt;/*&lt;/resource-path&gt;<br />      &lt;java-charset-name&gt;GBK&lt;/java-charset-name&gt;<br />    &lt;/input-charset&gt;<br />  &lt;/charset-params&gt;<br />  &lt;context-root&gt;&lt;/context-root&gt;<br />&lt;/weblogic-web-app&gt;<br /><br />----------------------------------<a>8.1sp2</a>  weblogic.xml------------------------------------------------------------------<br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />&lt;!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "<a href="http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd</a>"&gt;<br />&lt;weblogic-web-app&gt;<br />  &lt;jsp-descriptor&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;compileFlags&lt;/param-name&gt;<br />      &lt;param-value&gt;-g&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;keepgenerated&lt;/param-name&gt;<br />      &lt;param-value&gt;true&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;encoding&lt;/param-name&gt;<br />      &lt;param-value&gt;GBK&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />    &lt;jsp-param&gt;<br />      &lt;param-name&gt;workingDir&lt;/param-name&gt;<br />      &lt;param-value&gt;/home/webdev/html/guanli/WEB-INF/workingdir/&lt;/param-value&gt;<br />    &lt;/jsp-param&gt;<br />  &lt;/jsp-descriptor&gt;<br />  &lt;charset-params&gt;<br />    &lt;input-charset&gt;<br />      &lt;resource-path&gt;/*&lt;/resource-path&gt;<br />      &lt;java-charset-name&gt;GBK&lt;/java-charset-name&gt;<br />    &lt;/input-charset&gt;<br />  &lt;/charset-params&gt;<br />  &lt;context-root&gt;guanli&lt;/context-root&gt;<br />&lt;/weblogic-web-app&gt;<br /></p>
		<p>----------------------------------------------web.xml--------------------------------------------------------------<br />&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />&lt;!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "<a href="http://java.sun.com/dtd/web-app_2_3.dtd">http://java.sun.com/dtd/web-app_2_3.dtd</a>"&gt;<br />&lt;web-app&gt;<br />  &lt;display-name&gt;bbs_fcb&lt;/display-name&gt;<br />  &lt;welcome-file-list&gt;<br />    &lt;welcome-file&gt;bbs.jsp&lt;/welcome-file&gt;<br />    &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;<br />    &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;<br />  &lt;/welcome-file-list&gt;<br />&lt;error-page&gt;<br />    &lt;error-code&gt;404&lt;/error-code&gt;<br />    &lt;location&gt;/404.html&lt;/location&gt;<br />  &lt;/error-page&gt;<br />  &lt;error-page&gt;<br />    &lt;error-code&gt;500&lt;/error-code&gt;<br />    &lt;location&gt;/500.html&lt;/location&gt;<br />  &lt;/error-page&gt;<br />&lt;/web-app&gt;<br /></p>
<img src ="http://www.blogjava.net/xine/aggbug/49693.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/xine/" target="_blank">【Xine】中文站</a> 2006-06-01 16:51 <a href="http://www.blogjava.net/xine/articles/49693.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>