Starting server in Weblogic: "I/O error while writing to file The process cannot access the file because it is beign used by another proccess - weblogic

I need help with solving issue with Weblogic. In freshly installed WebLogic 14.1.1 I've created new server and machine for this server. I have working NodeManager launched in CMD, but when I try to start the server (new or one I've configured earlier) I get error from NodeManager that result in FAILED_NON_RESTARTABLE state. What I get from the NodeManager logs, it tries to access this server log file, but it fails with error from title. I've tried to reinstall everything but nothing seems to work.
<13:17:20> <INFO> <base_domain> <Server-0> <Startup configuration properties loaded from "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\data\nodemanager\startup.properties">
<13:17:20> <INFO> <Server Implementation Class: weblogic.nodemanager.server.NMServer$ClassicServer.>
<13:17:20> <INFO> <Secure socket listener started on port 5556, host localhost/127.0.0.1>
<15:06:18> <INFO> <base_domain> <Server-0> <Boot identity properties saved to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\data\nodemanager\boot.properties">
<15:06:18> <INFO> <base_domain> <Server-0> <Startup configuration properties saved to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\data\nodemanager\startup.properties">
<15:06:18> <INFO> <base_domain> <Server-0> <Rotated server output log to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out00006">
<15:06:18> <INFO> <base_domain> <Server-0> <Server error log also redirected to server log>
<15:06:18> <INFO> <base_domain> <Server-0> <Starting WebLogic server with command line: C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\startWebLogic.cmd >
<15:06:18> <INFO> <base_domain> <Server-0> <Working directory is 'C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain'>
<15:06:18> <INFO> <base_domain> <Server-0> <Server output log file is 'C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out'>
<15:06:23> <INFO> <base_domain> <Server-0> <The server 'Server-0' with process id 4796 is no longer alive; waiting for the process to die.>
<15:06:23> <INFO> <base_domain> <Server-0> <Rotated server output log to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out00007">
<15:06:23> <INFO> <base_domain> <Server-0> <Server error log also redirected to server log>
<15:06:23> <INFO> <base_domain> <Server-0> <Server failed during startup. It may be retried according to the auto restart configuration.>
<15:06:23> <INFO> <base_domain> <Server-0> <Server failed so attempting to restart (restart count = 1)>
<15:06:23> <INFO> <base_domain> <Server-0> <Rotated server output log to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out00008">
<15:06:23> <INFO> <base_domain> <Server-0> <Server error log also redirected to server log>
<15:06:23> <INFO> <base_domain> <Server-0> <Starting WebLogic server with command line: C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\startWebLogic.cmd >
<15:06:23> <INFO> <base_domain> <Server-0> <Working directory is 'C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain'>
<15:06:23> <INFO> <base_domain> <Server-0> <Server output log file is 'C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out'>
<15:06:28> <INFO> <base_domain> <Server-0> <The server 'Server-0' with process id 20156 is no longer alive; waiting for the process to die.>
<15:06:28> <WARNING> <base_domain> <Server-0> <I/O error while writing to file "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out">
java.io.FileNotFoundException: C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out (Proces nie mo┐e uzyskaŠ dostŕpu do pliku, poniewa┐ jest on u┐ywany przez inny proces)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:293)
at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:235)
at java.base/java.io.FileWriter.<init>(FileWriter.java:113)
at weblogic.nodemanager.server.InternalInstanceCustomizer.log(InternalInstanceCustomizer.java:77)
at weblogic.nodemanager.server.WLSInstanceCustomizer.log(WLSInstanceCustomizer.java:23)
at weblogic.nodemanager.server.ServerMonitor.log(ServerMonitor.java:773)
at weblogic.nodemanager.server.ServerMonitor.log(ServerMonitor.java:777)
at weblogic.nodemanager.server.ServerMonitor.info(ServerMonitor.java:782)
at weblogic.nodemanager.server.ServerMonitor.runMonitor(ServerMonitor.java:531)
at weblogic.nodemanager.server.ServerMonitor.run(ServerMonitor.java:487)
at java.base/java.lang.Thread.run(Thread.java:833)
<15:06:28> <INFO> <base_domain> <Server-0> <Rotated server output log to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out00009">
<15:06:28> <INFO> <base_domain> <Server-0> <Server error log also redirected to server log>
<15:06:28> <INFO> <base_domain> <Server-0> <Server failed during startup. It may be retried according to the auto restart configuration.>
<15:06:28> <INFO> <base_domain> <Server-0> <Server failed so attempting to restart (restart count = 2)>
<15:06:28> <INFO> <base_domain> <Server-0> <Rotated server output log to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out00010">
<15:06:28> <INFO> <base_domain> <Server-0> <Server error log also redirected to server log>
<15:06:28> <INFO> <base_domain> <Server-0> <Starting WebLogic server with command line: C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\startWebLogic.cmd >
<15:06:28> <INFO> <base_domain> <Server-0> <Working directory is 'C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain'>
<15:06:28> <INFO> <base_domain> <Server-0> <Server output log file is 'C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out'>
<15:06:32> <INFO> <base_domain> <Server-0> <The server 'Server-0' with process id 4648 is no longer alive; waiting for the process to die.>
<15:06:32> <INFO> <base_domain> <Server-0> <Rotated server output log to "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\Server-0\logs\Server-0.out00011">
<15:06:32> <INFO> <base_domain> <Server-0> <Server error log also redirected to server log>
<15:06:32> <INFO> <base_domain> <Server-0> <Server failed during startup. It may be retried according to the auto restart configuration.>
<15:06:32> <INFO> <base_domain> <Server-0> <Server failed but will not be restarted because the maximum number of restart attempts has been exceeded>
<15:06:32> <WARNING> <Server start command for WebLogic server 'Server-0' failed due to: [Server failed to start up but Node Manager was not aware of the reason]. Please check Node Manager log and/or server 'Server-0' log for detailed information.>
(Note: date information removed from log file for readability.)
I've installed Weblogic12c and same problem occurs.

I've accidently found anwser after messing around. Node manager logs are missleading. I thought that problem was with my computer configuration, tried different java versions, different weblogic versions etc. In my case it was port conflict. Port that I configured was already in use.
In weblogic 12, then I later got same error in NM, but now server logs were helpful.

Related

Dev Weblogic can not bind address which is not used

I've encounter a problem that I cannot start up weblogic 11gR1 development server in oepe eclipse after one time I stop the server start up progress before it finish all task in the start up progress.
Here's the error message I got every time I try to start up weblogic 11gR1.
JAVA Memory arguments: -Xms400m -Xmx512m -Xss512k -XX:PermSize=128m -XX:MaxPermSize=512m
.
WLS Start Mode=Development
.
CLASSPATH=D:\workspace\ CommonLib\antlr-2.7.6rc1.jar;D:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\java\32bit\JDK16~2.0_2\lib\tools.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;D:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.3.0.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;D:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;D:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
.
PATH=D:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;D:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\java\32bit\JDK16~2.0_2\jre\bin;D:\java\32bit\JDK16~2.0_2\bin;D:\Informatica\9.0.1\clients\tools\datadirect;D:\Informatica\9.0.1\clients\DeveloperClient\bin;D:\app\Administrator\product\11.2.0\client_1\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;D:\java\32bit\jdk1.6.0_21\bin;;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8
.
starting weblogic with Java version:
Listening for transport dt_socket at address: 8453
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode)
Starting WLS with line:
D:\java\32bit\JDK16~2.0_2\bin\java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms400m -Xmx512m -Xss512k -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=AdminServer -Djava.security.policy=D:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djava.awt.headless=true -Duser.language=en -Duser.country=US -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=D:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=D:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=D:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=D:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath weblogic.Server
Listening for transport dt_socket at address: 8453
<Jun 19, 2014 10:24:20 AM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 17.0-b17 from Sun Microsystems Inc.>
<Jun 19, 2014 10:24:20 AM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
<Jun 19, 2014 10:24:21 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Jun 19, 2014 10:24:21 AM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Jun 19, 2014 10:24:21 AM CST> <Notice> <LoggingService> <BEA-320400> <The log file D:\Oracle\Middleware\user_projects\domains\cg\servers\AdminServer\logs\AdminServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Jun 19, 2014 10:24:21 AM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to D:\Oracle\Middleware\user_projects\domains\cg\servers\AdminServer\logs\AdminServer.log00003. Log messages will continue to be logged in D:\Oracle\Middleware\user_projects\domains\cg\servers\AdminServer\logs\AdminServer.log.>
<Jun 19, 2014 10:24:21 AM CST> <Notice> <Log Management> <BEA-170019> <The server log file D:\Oracle\Middleware\user_projects\domains\cg\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
<Jun 19, 2014 10:24:21 AM CST> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'D:\java\32bit\JDK16~2.0_2\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;D:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\java\32bit\JDK16~2.0_2\jre\bin;D:\java\32bit\JDK16~2.0_2\bin;D:\Informatica\9.0.1\clients\tools\datadirect;D:\Informatica\9.0.1\clients\DeveloperClient\bin;D:\app\Administrator\product\11.2.0\client_1\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;D:\java\32bit\jdk1.6.0_21\bin;;D:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8'
>
<Jun 19, 2014 10:24:22 AM CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Jun 19, 2014 10:24:23 AM CST> <Warning> <Store> <BEA-280101> <The persistent file store "_WLS_AdminServer" is forced to use buffered I/O and so may have significantly degraded performance. Either the OS/hardware environment does not support the chosen write policy or the native wlfileio library is missing. See store open log messages for the requested and final write policies. See the documentation on store synchronous write policy configuration for advice.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <LoggingService> <BEA-320400> <The log file D:\Oracle\Middleware\user_projects\domains\cg\servers\AdminServer\logs\cg.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to D:\Oracle\Middleware\user_projects\domains\cg\servers\AdminServer\logs\cg.log00003. Log messages will continue to be logged in D:\Oracle\Middleware\user_projects\domains\cg\servers\AdminServer\logs\cg.log.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Jun 19, 2014 10:24:24 AM CST> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[3]". The address 127.0.0.1 might be incorrect or another process is using port 7001: java.net.BindException: Address already in use: JVM_Bind.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:0:5efe:c0a8:d750:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 19, 2014 10:24:24 AM CST> <Warning> <Server> <BEA-002611> <Hostname "%Host DNS name%", maps to multiple IP addresses: 192.168.215.80, fe80:0:0:0:20da:75b4:f1db:efa3%11>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:20da:75b4:f1db:efa3:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.215.80:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "cg" running in Development Mode>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Jun 19, 2014 10:24:24 AM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Listening for transport dt_socket at address: 8453
The start up progress was frozed at the 87% of "starting weblogic progress" in eclipse,
then eclipse throw out an error message dialog that server start up failed without any further error message.
You might say that there is a process using port 7001, but this is the first time
I start up dev server in eclipse after restarting my computer, and I've check out port 7001 by netstat cmd before I start my dev server, so I am sure that 7001 is available before I start dev server.
And this is what I got after starting up my weblogic server.
netstat after starting up weblogic dev server in eclipse
http://i57.tinypic.com/2hyk42.png
I don't understand what's wrong is going on my dev environment.
I have re-install my oepe eclipse, weblogic dev server and reset eclipse and weblogic domain, delete any oracle related setting file in my user directory,
but still I can not start up my dev server to test if my project is ok.
My OS is windows 7 without admin privileges,
eclipse is oepe-helios-all-in-one-11.1.1.6.1.201010012100-win32
with server adapter weblogic 11gR1 patchSet2
Does anyone know what's wrong is going on my enviroment?
Any help or suggestion is appreciated. Thank you.
Try to modify your config.xml file for your domain at:
D:\Oracle\Middleware\user_projects\domains\cg\config\config.xml
Check the following:
<listen-port>7001</listen-port>
<listen-address>127.0.0.1</listen-address>
You may need to change the listen-address to be your actual IP or hostname. You can also change listen-port to something else just to see if 7001 is truly the problem.
That said, normally a server will never reach the RUNNING state if you have binding problems. Check to see if you can reach the admin console at:
http://127.0.0.1:7001/console

Independent Manage servers in weblogic

I have two servers Server A and Server B :
I want to make admin server on Server A and manage servers on server B .Manage servers on B will be pointing to Server A admin . I tried using this configuration but manage servers are not able to start giving below error, Admin server A is running
Configuration :
Server A : Only Admin , Port 9001
Server B : No admin , Only 2 Manage servers : Port 7002, 7003 pointing to Server A admin
**Error logs :
<May 7, 2014 4:11:40 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with IBM J9 VM Version 2.3 from IBM Corporation>
<May 7, 2014 4:11:41 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3 Mon Mar 10 08:28:41 EDT 2008 1096261 >
<May 7, 2014 4:11:44 PM IST> <Emergency> <Management> <BEA-141151> <The admin server could not be reached at http://172.21.153.108.>
<May 7, 2014 4:11:44 PM IST> <Info> <Configuration Management> <BEA-150018> <This server is being started in managed server independence mode in the absence of the admin server.>
<May 7, 2014 4:11:44 PM IST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : /usr/local/bea/bea92/license.bea>
<May 7, 2014 4:11:44 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<May 7, 2014 4:11:44 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<May 7, 2014 4:11:44 PM IST> <Notice> <Log Management> <BEA-170019> <The server log file /usr/local/bea/bea92/user_projects/domains/RxConnect/servers/Store_MS1/logs/Store_MS1.log is opened. All server side log events will be written to this file.>
<May 7, 2014 4:11:48 PM IST> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.IllegalArgumentException: port out of range:-1.
weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: java.lang.IllegalArgumentException: port out of range:-1
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:469)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:822)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealms(CommonSecurityServiceManagerDelegateImpl.java:851)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1007)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:854)
Truncated. see log file for complete stacktrace
com.bea.common.engine.ServiceInitializationException: java.lang.IllegalArgumentException: port out of range:-1
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:342)
at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:292)
at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:263)
at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:71)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:461)
Truncated. see log file for complete stacktrace
java.lang.IllegalArgumentException: port out of range:-1
at java.net.InetSocketAddress.<init>(InetSocketAddress.java:136)
at java.net.Socket.<init>(Socket.java:226)
at netscape.ldap.LDAPConnSetupMgr.connectServer(LDAPConnSetupMgr.java:499)
at netscape.ldap.LDAPConnSetupMgr.openSerial(LDAPConnSetupMgr.java:435)
at netscape.ldap.LDAPConnSetupMgr.connect(LDAPConnSetupMgr.java:274)
Truncated. see log file for complete stacktrace
>
<May 7, 2014 4:11:48 PM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<May 7, 2014 4:11:48 PM IST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:898)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1029)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:854)
at weblogic.security.SecurityService.start(SecurityService.java:141)
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)
>
<May 7, 2014 4:11:48 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<May 7, 2014 4:11:48 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<May 7, 2014 4:11:48 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>**

Inability to start weblogic BEA-002606

I run a managed instance of Weblogic 10.3 on my mac box. One day i tried starting it and i got this error message
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <LoggingService> <BEA-320400> <The log file /Users/xx/bfdev/bea10/user_projects/domains/xx/servers/admin/logs/xx.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /Users/xx/bfdev/bea10/user_projects/domains/xx/servers/admin/logs/xx.log00101. Log messages will continue to be logged in /Users/xx/bfdev/bea10/user_projects/domains/xx/servers/admin/logs/benefitfocusDomain.log.>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<Jun 2, 2013 5:19:34 PM EDT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[3]". The address fe80:0:0:0:2acf:e9ff:fe64:20eb%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address.>
*<Jun 2, 2013 5:19:34 PM EDT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[2]". The address fe80:0:0:0:0:0:0:1%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address.>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
**<Jun 2, 2013 5:19:34 PM EDT> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1, fe80:0:0:0:0:0:0:1%1>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.2.93:7001 for protocols iiop, t3, ldap, snmp, http.>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.2:7001 for protocols iiop, t3, ldap, snmp, http.>**
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "admin" for domain "xx" running in Development Mode>*
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<Jun 2, 2013 5:19:34 PM EDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Since i am a new mac user, assigning and reassigning port numbers is an area i have little knowledge. Any help would be appreciated on this issue.
PS: NO vague answers. Specific responses on which steps to take would be of help here as i have tried google-ing and it has been hell.
I would manually edit the config.xml file that lives in your:
<domain home>/config directory.
Find your
<server>
and edit the
<listen-address>
to use the exact IP of your machine. You can also change
<listen-port>
in there to something other than the default. Try something like 65501 to see if you can bring it up. And yes, weblogic is hell.
When you change the IP address
Change the IP Address in
/etc/hosts - IP address was changed [Linux]

How restart weblogic server after Authentication error

I am trying to restart my weblogic server (Weblogic Server Version: 10.3.5). It throws the below error. I used to restart is regularly earlier but it is throwing this error today.
I have replaced the boot.properties file with the correct username and password and on trying to restart, I see that it is getting encrypted, but the server is not starting up. I have also tried modifying the config.xml and entered the decrypted password, but still I get the error.
Starting WLS with line:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/bin/java -server -Xms2048M -Xmx2048M -XX:MaxPermSize=512M -Dweblogic.Name=ManagedServer -Djava.security.policy=/u01/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.security.SSL.trustedCAKeyStore=/u01/Oracle/Middleware/wlserver_10.3/server/lib/cacerts -da -Dplatform.home=/u01/Oracle/Middleware/wlserver_10.3 -Dwls.home=/u01/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/u01/Oracle/Middleware/wlserver_10.3/server -Dweblogic.management.discover=false -Dweblogic.management.server=http://kbzuatapp:7001 -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/u01/Oracle/Middleware/patch_wls1035/profiles/default/sysext_manifest_classpath:/u01/Oracle/Middleware/patch_ocp360/profiles/default/sysext_manifest_classpath -Djava.security.egd=file:/dev/./urandom weblogic.Server
<Oct 19, 2012 8:01:35 PM MMT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Oct 19, 2012 8:01:36 PM MMT> <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>
<Oct 19, 2012 8:01:36 PM MMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with OpenJDK 64-Bit Server VM Version 19.0-b09 from Sun Microsystems Inc.>
<Oct 19, 2012 8:01:37 PM MMT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:Error: Failed to get value from Standard Input
Enter password to boot WebLogic server:
<Oct 19, 2012 8:01:37 PM MMT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 >
<Oct 19, 2012 8:01:38 PM MMT> <Error> <Configuration Management> <BEA-150021> <The admin server failed to authenticate the identity of the user starting the managed server. The reason for the error is .>
<Oct 19, 2012 8:01:38 PM MMT> <Emergency> <Management> <BEA-141151> <The admin server could not be reached at http://kbzuatapp:7001.>
<Oct 19, 2012 8:01:38 PM MMT> <Info> <Configuration Management> <BEA-150018> <This server is being started in managed server independence mode in the absence of the admin server.>
<Oct 19, 2012 8:01:38 PM MMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<Oct 19, 2012 8:01:38 PM MMT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Oct 19, 2012 8:01:38 PM MMT> <Notice> <LoggingService> <BEA-320400> <The log file /u01/Oracle/Middleware/user_projects/domains/KBZUAT/servers/ManagedServer/logs/ManagedServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
<Oct 19, 2012 8:01:38 PM MMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /u01/Oracle/Middleware/user_projects/domains/KBZUAT/servers/ManagedServer/logs/ManagedServer.log00011. Log messages will continue to be logged in /u01/Oracle/Middleware/user_projects/domains/KBZUAT/servers/ManagedServer/logs/ManagedServer.log.>
<Oct 19, 2012 8:01:38 PM MMT> <Notice> <Log Management> <BEA-170019> <The server log file /u01/Oracle/Middleware/user_projects/domains/KBZUAT/servers/ManagedServer/logs/ManagedServer.log is opened. All server side log events will be written to this file.>
<Oct 19, 2012 8:01:41 PM MMT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Oct 19, 2012 8:01:41 PM MMT> <Critical> <Security> <BEA-090403> <Authentication for user denied>
<Oct 19, 2012 8:01:41 PM MMT> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication for user denied
weblogic.security.SecurityInitializationException: Authentication for user denied
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:965)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
Caused By: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Truncated. see log file for complete stacktrace
Any help would be great. Thanks!
Got the solution. I deleted the edit.lok file and then tried the restart. It worked.
As for me, I had to edit the file boot.properties and set there AGAIN the login and password for the weblogic server. The previous values were encrypted and obviously, some SW couldn't manage it correctly.
try to remove the ManagedServerDir/data/ldap directory.
do not forget to backup
Just do a root level search for boot.properties & edit.lok in the weblogic server and delete them. (take the back up before deleting it) and restart the server.
It works :-)
I have solved in this way:
Under {domain}\servers\AdminServer\data\ldap delete just files on the root and not the ones inside ldapfiles
Remove username - passwrod from boot.properties file under {domain}\servers\AdminServer\security
After the restart, it asks me the credentails and it works as expected.

Weblogic refuses to start for different user

I have a Weblogic instance that starts fine for one user, but when a different user tries to start the same code it fails like this:
<Jun 26, 2010 8:19:30 AM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 1.5.0_15-b04 from Sun Microsystems Inc.>
<Jun 26, 2010 8:19:32 AM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP3 Mon Mar 10 08:28:41 EDT 2008 1096261 >
<Jun 26, 2010 8:19:36 AM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: [Management:141266]Parsing Failure in config.xml: java.lang.StringIndexOutOfBoundsException: String index out of range: -1>
<Jun 26, 2010 8:19:36 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
I have checked the config.xml file and it looks fine. Has anyone seen this? The lack of info in the error message is very frustrating, as well as the fact that it works fine with a different user.
Thanks
Weblogic has specific roles with varying privileges. Is it possible User A is part of Administrators or Operators groups - while User B is not?
See the list of roles here:
http://download.oracle.com/docs/cd/E13222_01/wls/docs91/secwlres/secroles.html#1221588
Actually, it turned out to be a bad path. Somehow one user was able to follow a symbolic link but the other user was not. Still not sure why but changing the path to avoid the symbolic link did the trick. Thanks for the suggestion.