简体   繁体   English

WebLogic状态正在启动,永不更改

[英]WebLogic status Starting and never changes

I am developing a Java Application that is on Oracle WebLogic server, but when it starts comes with the logs: 我正在开发Oracle WebLogic服务器上的Java应用程序,但是启动时会附带日志:

    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> 

And then, it starts my application, and it is working very fine, but I can't access weblogic console and if I want to stop it, I have to kill de proccess manually. 然后,它启动了我的应用程序,并且运行良好,但是我无法访问weblogic控制台,如果要停止它,则必须手动终止处理。

It looks like my app starts but don't "tell" the server its running, so the server keeps waiting it to start. 看来我的应用程序已启动,但没有“告诉”服务器其运行状态,因此服务器一直在等待它启动。

I was looking at weblogic configurations and put a file named weblogic.xml in my WEB-INF directory looking as follows : 我正在查看weblogic的配置,并将名为weblogic.xml的文件放在我的WEB-INF目录中,如下所示:

<?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>

But it also doesn't seem to work. 但这似乎也不起作用。

Does anyone have an idea how to fix this? 有谁知道如何解决这个问题?

Thanks in advance. 提前致谢。

How have you deployed the code? 您如何部署代码? Using wlst i guess or weblogic deployer as you cannot access the console. 我猜使用wlst或weblogic部署程序,因为您无法访问控制台。 I suppose you know about Admin and managed servers. 我想您了解Admin和受管服务器。 If it is just the admin server (the logs say so) and you have targeted your code to the same, the admin server has to get into running mode else your application wouldn't have responded. 如果仅是管理服务器(日志中是这样),并且您已将代码定向到该服务器,则管理服务器必须进入运行模式,否则您的应用程序将不会响应。 I would suggest looking for rotated logs in the same directory where you got this log from. 我建议在从中获取此日志的目录中查找轮换日志。 I can see that your WLS is actually an OSB domain from the libraries. 从库中可以看到您的WLS实际上是OSB域。 Are you sure you are hitting the right port of the admin server with a /console at the end? 您确定在末尾以/ console命中管理服务器的正确端口吗? If it is the command prompt output that you have pasted, I would suggest increasing the max perm size to 256M since it is trying to bring up the sbconsole as well and these class loadings would occupy quite a bit of PERMGEN space. 如果这是您粘贴的命令提示符输出,我建议将最大烫发大小增加到256M,因为它也会尝试调出sbconsole,并且这些类加载会占用相当大的PERMGEN空间。 Additionally, you can do a netstat and find on "Listening" to see what all HTTP ports are available and you can try with the same. 另外,您可以执行netstat并在“侦听”中查找所有HTTP端口可用,并且可以尝试使用相同的端口。 Please try both with localhost and your machine IP in the url. 请尝试使用本地主机和URL中的计算机IP。 Please try these and let me know what you experienced. 请尝试这些,让我知道您的经历。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM