Friday, June 29, 2012

custom banner on weblogic console

If you would like to have your own customized banner on weblogic console.
Go to wlserver_10.3\server\lib\consoleapp\webapp\framework\skins\wlsconsole\images
and edit the gif file in paint to create your own banner and clean restart weblogic server.
However doing this in production systems is illegal.

Tuesday, June 26, 2012

cannot open file _WLS_ADMINSERVER000000.DAT

Error message:1

<BEA-280061> <The persistent store "XXXX" could not be deployed: weblogic.store.PersistentStoreException: [Store:280020]There was an error while reading from the log file
weblogic.store.PersistentStoreException: [Store:280020]There was an error while reading from the log file
    at weblogic.store.io.file.Heap.getNextRecoveryFile(Heap.java:796)
    at weblogic.store.io.file.Heap.open(Heap.java:182)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:88)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:332)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:323)

java.io.IOException: Error reading from file, No such file or directory, errno=2
    at weblogic.store.io.file.direct.DirectIONative.read(Native Method)
    at weblogic.store.io.file.direct.DirectFileChannel.read(DirectFileChannel.java:134)
    at weblogic.store.io.file.StoreFile.read(StoreFile.java:282)
    at weblogic.store.io.file.Heap.getNextRecoveryFile(Heap.java:794)
    at weblogic.store.io.file.Heap.open(Heap.java:182)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:88)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:332)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:323)

Error message :2 

weblogic.store.PersistentStoreFatalException: [Store:280105]The persistent file store "_WLS_AdminServer" cannot open file _WLS_ADMINSERVER000000.DAT.
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:128)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:435)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:423)
    at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:126)
    at weblogic.store.admin.FileAdminHandler.activate(FileAdminHandler.java:191)
    at weblogic.store.admin.DefaultStoreService.start(DefaultStoreService.java:60)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused By: java.io.IOException: Error from open(), Permission denied, errno=13
    at weblogic.store.io.file.direct.DirectIONative.openConsiderLock(Native Method)
    at weblogic.store.io.file.direct.DirectFileChannel.<init>(DirectFileChannel.java:54)
    at weblogic.store.io.file.direct.DirectIOManager.open(DirectIOManager.java:179)
    at weblogic.store.io.file.StoreFile.openInternal(StoreFile.java:112)
    at weblogic.store.io.file.StoreFile.openDirect(StoreFile.java:168)
    at weblogic.store.io.file.Heap.openStoreFile(Heap.java:398)
    at weblogic.store.io.file.Heap.open(Heap.java:325)
    at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:117)
    at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:435)
    at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:423)
    at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:126)
    at weblogic.store.admin.FileAdminHandler.activate(FileAdminHandler.java:191)
    at weblogic.store.admin.DefaultStoreService.start(DefaultStoreService.java:60)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

Solution 1: Stop weblogic and delete the .Dat file from *\user_projects\domains\<base_domain>\servers\<AdminServer>\data\store\default and diagnostics
start the JVM

Solution 2:  Follow solution1 and then login to console - server - config - services - change :Synchronous Write Policy: to cache-flush. select Advanced - uncheck : - save -activate changes and restart.

Error : Caused By: java.io.IOException: Error from fcntl() for file locking

Soln:
1.) Uncheck "Enable File locking " for persistent stores

==> This option is not supported while using NFS filesystem

2.) Maintain different directories for filestores of different JMS Servers and maintain a different file store for each JMS server.

ref :
http://docs.oracle.com/cd/E14571_01/web.1111/e13814/storetune.htm#CACFDGCA
http://docs.oracle.com/cd/E24329_01/web.1211/e24390/storetune.htm#CAEGGIEG
http://docs.oracle.com/cd/E17904_01/web.1111/e13701/store.htm#i1143516
Doc ID 957377.1
Doc ID 1278828.1 

Friday, June 8, 2012

Two weblogic consoles in the same set of browser

Two weblogic consoles when opened in the same set of browser, logs out.
For example, if you open both consoles in firefox or IE, then both logs out, however if you open one console in firefox and another in IE, it does not logout.

That is because the default Console Cookie Name is ADMINCONSOLESESSION, and when two cookies are created in browser with same cookie name, there is a conflict.

To avoid this:
Go to console - domain - config - gen - adv -
edit the Console Cookie Name of ADMINCONSOLESESSION to something else - save - restart

Else use ip:port/console for one and hostname:port/console for other.