首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WebLogic状态正在启动且从不更改

WebLogic状态正在启动且从不更改
EN

Stack Overflow用户
提问于 2016-06-08 05:20:48
回答 1查看 2.1K关注 0票数 0

我正在开发一个在Oracle WebLogic服务器上的Java应用程序,但当它启动时,会附带日志:

代码语言:javascript
复制
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m  -XX:MaxPermSize=128m
.
WLS Start Mode=Development
.
CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
.
PATH=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\native;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\native;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\native;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:/Program Files/Java/jre1.8.0_91/bin/server;C:/Program Files/Java/jre1.8.0_91/bin;C:/Program Files/Java/jre1.8.0_91/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\apache-maven-3.3.9\\bin;C:\Program Files\Java\jdk1.7.0_79\bin;C:\Program Files\Git\cmd;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\eclipse-mars;;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http:\\hostname:port\console        *
***************************************************
starting weblogic with Java version:
Listening for transport dt_socket at address: 8453
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode)
Starting WLS with line:
C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE  -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m  -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy  -Xverify:none  -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_oepe180\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_adfr1111\profiles\default\sysext_manifest_classpath  weblogic.Server
Listening for transport dt_socket at address: 8453
<07/06/2016 18h08min02s BRT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> 
<07/06/2016 18h08min02s BRT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> 
<07/06/2016 18h08min02s BRT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.4-b02 from Sun Microsystems Inc.> 
<07/06/2016 18h08min03s BRT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050 > 
<07/06/2016 18h08min04s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<07/06/2016 18h08min04s BRT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
<07/06/2016 18h08min04s BRT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Oracle\Middleware\user_projects\domains\sampleApplication\servers\AdminServer\logs\AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> 
<07/06/2016 18h08min04s BRT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Oracle\Middleware\user_projects\domains\sampleApplication\servers\AdminServer\logs\AdminServer.log00092. Log messages will continue to be logged in C:\Oracle\Middleware\user_projects\domains\sampleApplication\servers\AdminServer\logs\AdminServer.log.> 
<07/06/2016 18h08min04s BRT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Oracle\Middleware\user_projects\domains\sampleApplication\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.> 
<07/06/2016 18h08min05s BRT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
<07/06/2016 18h08min06s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
<07/06/2016 18h08min06s BRT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 

然后,它启动我的应用程序,它工作得很好,但我无法访问weblogic控制台,如果我想要停止它,我必须手动终止进程。

看起来我的应用程序启动了,但没有“告诉”服务器正在运行,所以服务器一直在等待它启动。

我查看了weblogic配置,并在我的WEB-INF目录中放置了一个名为weblogic.xml的文件,如下所示:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8" ?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.3/weblogic-web-app.xsd">
</weblogic-web-app>

但它似乎也不起作用。

有谁知道怎么解决这个问题吗?

提前谢谢。

EN

回答 1

Stack Overflow用户

发布于 2016-06-08 05:41:05

您是如何部署代码的?我猜是使用wlst或weblogic部署程序,因为您无法访问控制台。我想您对管理和受控服务器有所了解。如果它只是管理服务器(日志上说是这样),并且您已经将您的代码指向相同的服务器,那么管理服务器必须进入运行模式,否则您的应用程序不会响应。我建议您在获取此日志的同一目录中查找轮换日志。我可以看到您的WLS实际上是库中的OSB域。您确定最后使用/console连接到了管理服务器的正确端口吗?如果是您粘贴的命令提示符输出,我建议将最大perm大小增加到256M,因为它也会尝试打开sbconsole,而这些类加载将占用相当多的PERMGEN空间。此外,您可以执行netstat并在“监听”上查找,以查看所有HTTP端口都可用,您可以尝试使用相同的端口。请在url中使用localhost和您的计算机IP进行尝试。请尝试这些,并让我知道你的经验。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37689570

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档