I have a strange issue with the WebLogic server: I lose the last Item that I created while creating multiply resources (JMS queues, DB Pools, etc.).
Environment:
Steps what I execute:
./startWebLogic.sh
command./stopWebLogic.sh weblogic weblogic12 t3://localhost:7001
commandWhat I see is this:
It seems that WebLogic forgets to "commit" the last item somehow.
When I check the config.xml
file before the WL restart, I can see in there what I need. After the restart WL reverts this file somehow to the preview state (without my last item) and the size of the file just changed.
If I activate the production mode
then everything is the same, I can not see differences.
I think that this issue is not related to Docker because I do not use any Docker volume. And a test file that I create next to the config.xml
is persistent between stop and start the container.
Is this a WL bug? Have you seen the same?
UPDATE
The docker image that I use above was created from another Docker Container with docker commit
command. The previous Docker layer contains some common resources and installed libraries. This issue does not exist in the previous image. So it seems that something strange things have happened across Docker created an image from the container.
---------------
¦ Oracle Linux¦
---------------
¦
------------------
¦WL with deployed¦ <- docker commit ....
¦ shared libs ¦ this issue does not appear at this level
------------------
¦
------------------
¦Image what I use¦ <- lose changes between docker stop and start
------------------
So it seems that this is a Docker bug or both: Oracle and Docker.
The following workaround solves the issue: Delete the domain_bak
directory from the Weblogic domain home before starting the server.
Example:
echo "starting the WebLogic server..."
rm -Rf $ORACLE_HOME/user_projects/domains/$DOMAIN_NAME/servers/domain_bak/*
$ORACLE_HOME/user_projects/domains/$DOMAIN_NAME/startWebLogic.sh