Sunday, October 19, 2014

WLST No domain or domain template has been read

Error: No domain or domain template has been read

 

If you have just recently started to get your hands dirty with weblogic & wlst, you’ll may not be aware of all the wlst commands and scenarios in which those commands can be used. The documentation for wlst, and weblogic in general, is so huge that it is OK for anyone to have missed out such niti-grities.

During a similar situation, I faced below error when I was trying to execute “getNodeManagerHome()” command on wlst using node manager connection.

“Error: No domain or domain template has been read.”

Ø  WLST command & error message

Welcome to WebLogic Server Administration Scripting Shell

 

Type help() for help on available commands

 

wls:/offline> getNodeManagerHome()

Error: No domain or domain template has been read.

wls:/offline>

 

At first I thought this may be because of my not being connected to the node manager. But as you can see below, soon that assumption turned out to be wrong.

wls:/offline> nmConnect('weblogic', 'xxxxxxxx', '10.xx.xx.xx', '5556','poc_domain', '/opt/app/oracle/middleware/user_projects/domains/poc_domain','plain')

Connecting to Node Manager ...

Successfully Connected to Node Manager.

wls:/nm/poc_domain> getNodeManagerHome()

Error: No domain or domain template has been read.

wls:/nm/poc_domain>

 

Ø  Solution

To execute several commands, you must first read the domain template using readDomain(), and then you can execute those commands.

wls:/offline> readDomain('/opt/app/oracle/middleware/user_projects/domains/poc_domain')

wls:/offline/poc_domain>getNodeManagerHome()

'/opt/app/oracle/middleware/user_projects/domains/poc_domain/nodemanager'

 

Note that readDomain() is used on offline mode, i.e. without actually connecting using the weblogic/node manager credentials.

The other commands, which impose that you first read the domain using readDomain() are: updateDomain(), addTemplate(), etc.

 

Ø  Reference

https://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html#wp1003638

 

Continue to to SeeITwithSanjay for more blogs on FMW.

 

13 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. I think it could be more general if you get a football sports activity Registered dietitian

    ReplyDelete
  6. I think about it is most required for making more on this get engaged LED mini mirror

    ReplyDelete
  7. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here keep up the good work word combiner

    ReplyDelete
  8. This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post! personal budget template

    ReplyDelete
  9. Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also best startup names

    ReplyDelete
  10. hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. names for businesss

    ReplyDelete
  11. Thank you so much for sharing this great blog.Very inspiring and helpful too.Hope you continue to share more of your ideas.I will definitely love to read. https://hostinglelo.in/

    ReplyDelete
  12. What's more, to protect your prosperity, make certain to keep away from the snares found in the realm of free web hosting and get the arrangements your spending plan can manage. https://onohosting.com/

    ReplyDelete