Java.lang.runtimeexception Error In Finding Weblogic.home
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error connecting weblogic wlst from java jdeveloper up vote 0 down vote favorite I am trying to embed a WLST script in java using the WLST Interpreter. However i encounter the following error: Exception in thread "main" java.lang.RuntimeException: error in finding weblogic.Home at weblogic.Home.getInstance(Home.java:91) at weblogic.Home.getPath(Home.java:97) at weblogic.Home.getFile(Home.java:102) at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:116) at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76) at weblogic.management.scripting.utils.WLSTUtil.ensureInterpreter(WLSTUtil.java:157) at client.WLSTWrapper.doSomething(WLSTWrapper.java:19) at client.WLSTWrapper.main(WLSTWrapper.java:13) Any help will be much appreciated. java weblogic jdeveloper wlst share|improve this question edited May 15 '13 at 14:02 MadTech 3321421 asked May 15 '13 at 13:57 Kresen 62 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote Make sure weblogic.jar is in your classpath. If it is and you still have the problem, try adding a java option like the following to your startup script: -Dweblogic.home=/opt/oracle/mw/wlserver_10.3 share|improve this answer answered May 15 '13 at 14:53 Display Name is missing 4,64831833 Thanks i tried adding weblogic.jar to the classpath, and editing the script. Still encountered the same problem. However i found a better method to run the script using : Process p = Runtime.getRuntime().exec("location of wlst.cmd location of your script") Thanks for the help. &ndas
in finding weblogic.Home weblogic.Home.getInstance(Home.java:91) weblogic.Home.getPath(Home.java:97) weblogic.Home.getFile(Home.java:102) weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:116) weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76) To check what is wrong, I do cd $DOMAIN_HOME . ./bin/setDomainEnv.sh then I examine the properties with "set": ALSB_HOME=/opt/oracle/fmw11_1_1_5/osb BEA_HOME=/opt/oracle/fmw11_1_1_5 WLS_HOME=/opt/oracle/fmw11_1_1_5/wlserver_10.3/server so all I need to do is to add JAVA_OPTS=-Dweblogic.home=/opt/oracle/fmw11_1_1_5/wlserver_10.3 -Dbea.home=/opt/oracle/fmw11_1_1_5/ to my catalina.sh Posted by Pierluigi Vernetto at 10:41 AM Labels: WLST No comments: Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) popular posts Vinita's dogs Life or a http://stackoverflow.com/questions/16567049/error-connecting-weblogic-wlst-from-java-jdeveloper programmer 2 Life of a programmer 4 Life of a programmer 3 Life of a programmer 1 Follow by Email SyntaxHighlighter Blog Archive ► 2016 (70) ► October (6) ► September (5) ► August (8) ► July (8) ► June (5) ► May (6) ► April (7) ► March (3) ► February (8) ► January (14) http://www.javamonamour.org/2012/07/error-in-finding-weblogichome.html ► 2015 (129) ► December (10) ► November (8) ► October (29) ► September (17) ► August (5) ► July (4) ► June (7) ► May (9) ► April (4) ► March (29) ► February (4) ► January (3) ► 2014 (199) ► December (3) ► November (11) ► October (8) ► September (16) ► August (17) ► July (22) ► June (24) ► May (13) ► April (22) ► March (22) ► February (19) ► January (22) ► 2013 (317) ► December (16) ► November (31) ► October (33) ► September (31) ► August (27) ► July (26) ► June (31) ► May (27) ► April (30) ► March (21) ► February (29) ► January (15) ▼ 2012 (398) ► December (24) ► November (34) ► October (18) ► September (27) ► August (37) ▼ July (44) SOAPUI and Web Test automation loadui unable to load resource http://dl.javafx.co... ssh Server refused our key loadui: jar resources in JNLP file are not signed ... HttpClient and H
automatização da criação do ambiente de desenvolvimento, principalmente, criação de domínio e configuração do servidor, para que agilize esse processo, no http://www.guj.com.br/t/wlst-error-java-lang-runtimeexception-error-in-finding-weblogic-home/280012 projeto utiliza WebLogic 10, JAVA EE, ANT.Utilizando uma ferramente chamada WLST do Weblogic, eu consigo cria um template partir de um domíniojá criado e com o servidor configurado usando os comandos: readDomain('Dir do domínio') - para ler o domínio writeTemplate('Dir que vai ficar o tamplete', 'dir do dominío') - para java.lang.runtimeexception error criar o template. Ai utilizando essa 'receita' ou template de domínio configurado consigo criar outro domínio idêntico com o comando, ai que fica sendo a automatização pois teremos esse template vercionado, e o pessoal só executara uma build com a target q fara a criação do domínio e configuração do serv java.lang.runtimeexception error in em alguns segundos: createDomain('Dir do tamplete', 'dir do domínio a ser criado', 'user', 'senha') Utilizando o ANT do projeto, estaria rodando o WLST usando um target na build do projeto para fazer isso ai automático segue abaixo target da build criada: