Wlst.cmd version
Hi All,
I am trying (unsuccessfully) to export metadata for webcenter portal application using WebLogic Scripting Tool.
Accordingly to documentation
http://docs.oracle.com/cd/E23943_01/webcenter.1111/e12405/wcadm_intro.htm#BHCEDCFG
To list WebCenter Portal WLST commands, type: help('webcenter') at the WLST command prompt.
If the message No help for webcenter found... displays, you are probably running the WLST script from the wrong directory, for example, you might be running wlst.sh or wlst.cmd from the oracle_common directory instead of WC_ORACLE_HOME/common/bin.
Also in examples
wlst:> importMetadata(application='wcps-services', server='WC_Utilities', fromLocation='<mar file>', remote='true'),
but when I run in looks
wls:> importMetadata(…………….
I try it in right directory, but still having error. I have JDeveloper 11.1.1.6 with Webcenter.
1) If you are trying to export the MDS from JDeveloper you are doing an unnecessary step as the MDS in JDev is already file based and you only have to navigate to the MDS location.
You can find this in your Application properties by going to the Application menu and select Application Properties.
Open the Run node and select MDS. Copy the Default location and open it in your explorer. This should give you the MDS without needing to export it.
2) If you are trying to export MDS from a real WebCenter installation you have to go to the webcenter directory.
In my case this is:
C:\Oracle\middlewarePs6\Oracle_WC1\common\bin
So it looks like <fuisn home>/Oracle_WC1.common/bin
This will open the WLST command tool and will load the required libraries for WebCenter.
You can also read more about this in an article I recently wrote: http://www.ateam-oracle.com/exporting-metadata-for-a-specific-group-space-in-webcenter-spaces/
Similar Messages
-
Wlst.cmd file couldnt run from the cmd prompt
Hi friends,
when i tried to run the wlst.cmd file in a windows cmd prompt, it is not running as it is saying like
the system cannot find the path specified
I tried like the below
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\NEW8\instances\instance4\bifoundation\OracleBIApplication\coreapplication\set
up>CD \
C:\>SET MW_HOME=C:\NEW8
C:\>CD NEW8
C:\NEW8>CD oracle_common
C:\NEW8\oracle_common>CD common
C:\NEW8\oracle_common\common>CD bin
C:\NEW8\oracle_common\common\bin>wlst.cmd
The system cannot find the path specified.
C:\NEW8\oracle_common\common\bin>Eventhough, i tried to run it in the bi_init.cmd prompt, then too it is not running.
Can anyone tell me in which cmd prompt i need to run that wlst.cmd file for upgrading the fusion m/w shared components.
Brgds,
MiniHi Devarasu,
Thanks for your reply. But now also it doesnt seems to run. Since like you said, i set
ORACLE_HOME = C:\NEW8\Oracle_BI1And tried to run the wlst.cmd file in the cmd prompt like the below, but then too it is returning the same error like
D:\New8\oracle_common\common\bin\wlst.cmd
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\Administrator>cd..
C:\Documents and Settings>cd..
C:\>\NEW8\oracle_common\common\bin\wlst.cmd
The system cannot find the path specified.
C:\>Also i tried to run the wlst.cmd file which is in the following location like
D:\New8\wlserver_10.3\common\bin\wlst.cmd
CLASSPATH=C:\NEW8\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic
_patch.jar;C:\NEW8\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic
_patch.jar;C:\NEW8\JROCKI~1.0-1\lib\tools.jar;C:\NEW8\WLSERV~1.3\server\lib\webl
ogic_sp.jar;C:\NEW8\WLSERV~1.3\server\lib\weblogic.jar;C:\NEW8\modules\features\
weblogic.server.modules_10.3.6.0.jar;C:\NEW8\WLSERV~1.3\server\lib\webservices.j
ar;C:\NEW8\modules\ORGAPA~1.1/lib/ant-all.jar;C:\NEW8\modules\NETSFA~1.0_1/lib/a
nt-contrib.jar;;C:\NEW8\utils\config\10.3\config-launch.jar;C:\NEW8\WLSERV~1.3\c
ommon\derby\lib\derbynet.jar;C:\NEW8\WLSERV~1.3\common\derby\lib\derbyclient.jar
;C:\NEW8\WLSERV~1.3\common\derby\lib\derbytools.jar;;
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> upgradeJRF('C:\NEW8\instances\instance4\bifoundation')
Traceback (innermost last):
File "<console>", line 1, in ?
NameError: upgradeJRF
wls:/offline>But it is returning the error like Traceback (innermost last).
What might be the problem here, Deva. Can you help me to get rid of this issue.
Brgds,
Mini -
An error occurred while building the default domain - New version of error
I have installed JDeveloper Studio Edition Version 11.1.1.2.0. I used an temporary Admin account on the machine to install (organization security does not allow normal users to have admin accounts) and it runs perfectly well under that account.
When I logged in under my normal account though I get an error trying to run the Debugger on the application. The server appears to be the only area of JDeveloper that has issues under this account, and below is the Log:
[Waiting for the domain to finish building...]
[12:51:06 PM] Creating Integrated Weblogic domain...
The Server Instance cannot be started because the Integrated Weblogic domain was not built successfully.
[12:51:20 PM] ERROR: An error occurred while building the default domain.
Please see this log file for more details:
C:\Users\Brian.Hess2\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee.adrs\CreateDefaultDomain.log
Log File: C:\Users\Brian.Hess2\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee.adrs\CreateDefaultDomain.log
Label: JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
Product Home: C:\Oracle\Middleware\jdeveloper\jdev\
Domain: C:\Users\Brian.Hess2\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain
"C:\Oracle\Middleware\oracle_common\common\bin\wlst.cmd" "C:\Users\Brian.Hess2\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee.adrs\CreateDefaultDomain.py"
Process started
wlst >
wlst > CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1.5-3\lib\tools.jar;C:\Oracle\MIDDLE~1\utils\config\10.3\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.2.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jrf_11.1.1/jrf-api.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/jrf-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.odl_11.1.1/ojdl.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.odl_11.1.1/ojdl2.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.dms_11.1.1/dms.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.dconfig-infra_11.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.fabriccommon_11.1.1/fabric-common.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.xdk_11.1.0/xmlparserv2.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.xdk_11.1.0/xml.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-pmlib.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-policy-core.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-secpol.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-dependencies.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.policies_11.1.1/wsm-seed-policies.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.webservices_11.1.1/orawsdl.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.webservices_11.1.1/mdds.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.webservices_11.1.1/ws_confmbeans.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/org.apache.commons.digester_1.7.jar;C:\Oracle\MIDDLE~1\ORACLE~1/../modules/javax.xml.bind_2.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/../modules/javax.activation_1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/../modules/javax.xml.stream_1.1.1.0.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.http_client_11.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jmx_11.1.1/jmxframework.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jmx_11.1.1/jmxspi.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.dconfigbeans_11.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/adflogginghandler.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/adfsharembean.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/commons-el.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/jsp-el-api.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/oracle-el.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/auditwlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/sslconfigwlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/oamap_help.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/ossoiap_help.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/jps-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.auditprovider_11.1.1/jps-wls-auditprovider.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-manifest.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-mbeans.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-upgrade.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-patching.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\ADF-SH~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\mdswlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\AUDITW~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jps-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jrf-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAP_~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAUT~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\ossoiap.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OSSOIA~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\SSLCON~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\wsm-wlst.jar
wlst >
wlst > PATH=C:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0\bin;C:\Oracle\MIDDLE~1\JDK160~1.5-3\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1.5-3\bin;;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
wlst >
wlst > Your environment has been set.
wlst >
wlst > CLASSPATH=C:\Oracle\MIDDLE~1\patch_wls1032\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1.5-3\lib\tools.jar;C:\Oracle\MIDDLE~1\utils\config\10.3\config-launch.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.2.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.0/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jrf_11.1.1/jrf-api.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/jrf-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.odl_11.1.1/ojdl.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.odl_11.1.1/ojdl2.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.dms_11.1.1/dms.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.dconfig-infra_11.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.fabriccommon_11.1.1/fabric-common.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.xdk_11.1.0/xmlparserv2.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.xdk_11.1.0/xml.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-pmlib.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-policy-core.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-secpol.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.common_11.1.1/wsm-dependencies.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.wsm.policies_11.1.1/wsm-seed-policies.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.webservices_11.1.1/orawsdl.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.webservices_11.1.1/mdds.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.webservices_11.1.1/ws_confmbeans.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/org.apache.commons.digester_1.7.jar;C:\Oracle\MIDDLE~1\ORACLE~1/../modules/javax.xml.bind_2.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/../modules/javax.activation_1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/../modules/javax.xml.stream_1.1.1.0.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.http_client_11.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jmx_11.1.1/jmxframework.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jmx_11.1.1/jmxspi.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.dconfigbeans_11.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share.ca_11.1.1/adf-share-base.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share.ca_11.1.1/adf-share-ca.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/adflogginghandler.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/adfsharembean.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/commons-el.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/jsp-el-api.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.adf.share_11.1.1/oracle-el.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/auditwlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/sslconfigwlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/oamap_help.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/ossoiap_help.jar;C:\Oracle\MIDDLE~1\ORACLE~1/common/wlst/resources/jps-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.auditprovider_11.1.1/jps-wls-auditprovider.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-manifest.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-mbeans.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-upgrade.jar;C:\Oracle\MIDDLE~1\ORACLE~1/modules/oracle.jps_11.1.1/jps-patching.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\ADF-SH~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\lib\mdswlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\AUDITW~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jps-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\jrf-wlst.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAP_~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OAMAUT~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\ossoiap.jar;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\OSSOIA~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\SSLCON~1.JAR;C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\RESOUR~1\wsm-wlst.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbembedded57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\eval\pointbase\lib\pbtools57.jar
wlst >
wlst > Initializing WebLogic Scripting Tool (WLST) ...
wlst >
wlst > Welcome to WebLogic Server Administration Scripting Shell
wlst >
wlst > Type help() for help on available commands
wlst >
wlst > Creating Default Domain
wlst > Reading template: /C:/Oracle/Middleware/wlserver_10.3/common/templates/domains/wls.jar
wlst > Setting Name to 'DefaultServer'
wlst > Setting ListenAddress to ''
wlst > Setting ListenPort to 7101
wlst > Setting domain administrator to 'weblogic'
wlst > Setting domain password.
wlst > Writing domain: /C:/Users/Brian.Hess2/AppData/Roaming/JDeveloper/system11.1.1.2.36.55.36/DefaultDomain/
wlst > Error: writeDomain() failed. Do dumpStack() to see details.
wlst > Problem invoking WLST - Traceback (innermost last):
wlst > File "C:\Users\Brian.Hess2\AppData\Roaming\JDeveloper\system11.1.1.2.36.55.36\o.j2ee.adrs\CreateDefaultDomain.py", line 68, in ?
wlst > File "C:\Users\Brian.Hess2\AppData\Local\Temp\1\WLSTOfflineIni2950955933333350592.py", line 71, in writeDomain
wlst > at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
wlst >
wlst > at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1497)
wlst >
wlst > at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:786)
wlst >
wlst > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
wlst >
wlst > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
wlst >
wlst > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
wlst >
wlst > at java.lang.reflect.Method.invoke(Method.java:597)
wlst >
wlst >
wlst > com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.ScriptException: java.lang.Exception: Got error in writing the node manager C:\Oracle\Middleware\wlserver_10.3\common\nodemanager\nodemanager.domains property file!
wlst >
Elapsed time: 13686 ms
Any one have any ideas??? Seems like security issue, but this account has full access to it's C:/User/Account folders.
Thanks in advance.Hi,
Can you try the following steps and let us know if it works?
1. Create a folder in your c: drive (say c:\myjdevhome)
2. Invoke the command prompt, set JDEV_USER_HOME=c:\myjdevhome
3. cd to JDEV_HOME\jdeveloper\jdev\bin
4. Start the jdev (jdev.exe).
5. Run/Debug your application.
-Arun -
Running config.cmd produces - The system cannot find the path specified
I had successfuly installed Weblgic/OSB and cofigured a domain on 64 bit windows 2008
I then uninstalled all components and re-installed everything |( including deleting all directires ) .
When I come to run config.cmd to create the OSB Weblogic domain I get :-
The system cannot find the path specified
I have set echo on and can see that the cmd file is attempting to acces directories that do not exist - so the command file is getting wrong info from somewhere but I just cannot figure out from where. I donlt think its a script issue, its more like an issue with some setting somewhere in windows regirsty or some cache that its pulinng it in from - the wrong directoties displayed seem to look like my existing dir's with ~1 and ~2 on the end.
Any ideas suggestions greatly received.I have not edited any of the scipts at all - they are as they have been laid down byt the install.
Contents of E:\Oracle\Middleware\Oracle_OSB1\common\bin\config.cmd below
@ECHO ON
SETLOCAL
@REM Determine the location of this script...
SET SCRIPTPATH=%~dp0
FOR %%i IN ("%SCRIPTPATH%") DO SET SCRIPTPATH=%%~fsi
@REM Set the ORACLE_HOME relative to this script...
FOR %%i IN ("%SCRIPTPATH%\..\..") DO SET ORACLE_HOME=%%~fsi
@REM Set the MW_HOME relative to the ORACLE_HOME...
FOR %%i IN ("%ORACLE_HOME%\..") DO SET MW_HOME=%%~fsi
@REM Set the home directories...
CALL "%SCRIPTPATH%\setHomeDirs.cmd"
@REM Set the config jvm args...
SET CONFIG_JVM_ARGS=%CONFIG_JVM_ARGS% -DCOMMON_COMPONENTS_HOME=%COMMON_COMPONENTS_HOME%
@REM Delegate to the main script...
CALL "%WL_HOME%\common\bin\config.cmd" %*
ENDLOCALContents of E:\Oracle\Middleware\Oracle_OSB1\common\bin\setHomeDirs.cmd
@ECHO OFF
@REM Temporary workaround: normally use a hardcoded wls version (until the
@REM installer can substitute it for us); but for now, need to work with multiple
@REM versions. Choose the highest avail.
IF EXIST "%MW_HOME%\utils\config\10.3.3.0\setHomeDirs.cmd" (
SET WLS_VER=10.3.3.0
) ELSE IF EXIST "%MW_HOME%\utils\config\10.3.2.0\setHomeDirs.cmd" (
SET WLS_VER=10.3.2.0
) ELSE IF EXIST "%MW_HOME%\utils\config\10.3.1.0\setHomeDirs.cmd" (
SET WLS_VER=10.3.1.0
) ELSE (
SET WLS_VER=10.3
IF EXIST "%MW_HOME%\utils\config\%WLS_VER%\setHomeDirs.cmd" (
CALL "%MW_HOME%\utils\config\%WLS_VER%\setHomeDirs.cmd"
@REM Set common components home...
SET COMMON_COMPONENTS_HOME=%MW_HOME%\oracle_common
IF EXIST %COMMON_COMPONENTS_HOME% FOR %%i IN ("%MW_HOME%\oracle_common") DO SET COMMON_COMPONENTS_HOME=%%~fsiContents of following :-
dir /x E:\Oracle
>
Volume in drive E is Apps
Volume Serial Number is 6CF4-6338
Directory of e:\oracle
22/06/2012 13:57 <DIR> .
22/06/2012 13:57 <DIR> ..
22/06/2012 14:00 <DIR> MIDDLE~1 Middleware
0 File(s) 0 bytes
3 Dir(s) 758,748,934,144 bytes free
>
dir /x E:\Oracle\Middleware
>
Volume in drive E is Apps
Volume Serial Number is 6CF4-6338
Directory of e:\oracle\middleware
22/06/2012 14:00 <DIR> .
22/06/2012 14:00 <DIR> ..
22/06/2012 13:57 <DIR> COHERE~1.7 coherence_3.7
22/06/2012 13:57 136 DOMAIN~1.XML domain-registry.xml
22/06/2012 13:57 <DIR> logs
22/06/2012 13:57 <DIR> modules
22/06/2012 13:57 862 ocm.rsp
22/06/2012 14:02 <DIR> ORACLE~1 oracle_common
22/06/2012 14:02 <DIR> ORACLE~2 Oracle_OSB1
22/06/2012 13:57 110,518 registry.dat
22/06/2012 13:57 1,623 registry.xml
22/06/2012 13:57 <DIR> utils
22/06/2012 14:01 <DIR> WLSERV~1.3 wlserver_10.3
4 File(s) 113,139 bytes
9 Dir(s) 758,748,934,144 bytes free
>
dir /x E:\Oracle\MIDDLE~1\ORACLE~2\common\bin
>
Volume in drive E is Apps
Volume Serial Number is 6CF4-6338
Directory of e:\oracle\middle~1\oracle~2\common\bin
22/06/2012 14:03 <DIR> .
22/06/2012 14:03 <DIR> ..
20/01/2010 15:11 640 CONFIG~1.CMD config - Copy.cmd
22/06/2012 14:03 639 config.cmd
20/01/2010 15:11 777 config.sh
20/01/2010 15:11 638 pack.cmd
20/01/2010 15:11 773 pack.sh
20/01/2010 15:11 828 SETHOM~1.CMD setHomeDirs.cmd
27/04/2010 06:04 839 SETHOM~1.SH setHomeDirs.sh
20/01/2010 15:11 640 unpack.cmd
20/01/2010 15:11 777 unpack.sh
20/01/2010 15:11 538 WAS_CO~1.CMD was_config.cmd
20/01/2010 15:11 638 WAS_CO~1.SH was_config.sh
20/01/2010 15:11 1,344 wlst.cmd
20/01/2010 15:11 1,579 wlst.sh
20/01/2010 15:11 632 wsadmin.cmd
27/04/2010 06:04 739 wsadmin.sh
15 File(s) 12,021 bytes
2 Dir(s) 758,748,934,144 bytes free
>
And also I am able to do the following :
dir /x E:\oracle\MIDDLE~1\ORACLE~2\common\bin\setHomeDirs.cmd - ouptu below..
>
Volume in drive E is Apps
Volume Serial Number is 6CF4-6338
Directory of e:\oracle\MIDDLE~1\ORACLE~2\common\bin
20/01/2010 15:11 828 SETHOM~1.CMD setHomeDirs.cmd
1 File(s) 828 bytes
0 Dir(s) 758,748,606,464 bytes free
>
So everythings look ok to me.
So, it still begs the question why does my config.cmd script fall over doing the following :
CALL "E:\oracle\MIDDLE~1\ORACLE~2\common\bin\\setHomeDirs.cmd"
The system cannot find the path specified -
Using WLST to execute SOA Suite commands
Hi,
using SOA Suite 11g R1 PS1 (11.1.1.2.0)
I am trying out the WLST commands as described in the documentation (http://download.oracle.com/docs/cd/E15523_01/web.1111/e13813/custom_soa.htm#CIHGBHAC), such as sca_listDeployedComposites and sca_undeployComposite. However, each command seems to fail with a NameError. Other commands (non-SOA Suite related) seem to work okay.
Did anyone succeed in using the SOA Suite related command in WLST - the ones prefixed with sca_? If so: did you have to do any special set up or configuration to make it work? What is the exact syntax you are using?
Thanks for any pointers.
LucasOKAY, it is resolved:
To use those custom commands, you must invoke the WLST script from the Oracle home in which the component has been installed. Do not use the WLST script in the WebLogic Server home.
The script is located at:
+(UNIX) ORACLE_HOME_for_component/common/bin/wlst.sh+
+(Windows) ORACLE_HOME_for_component\common\bin\wlst.cmd+
I had started the wrong 'version' of WLST, the generic one and not the one in the SOA1 subdirectory that knows about the SOA Suite specific operations.
regards,
Lucas -
Hi,
I am unable to start WLST and throwing "d:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8 was unexpected at this time" error message
OS: Win 7 64-bit version
Java : Java 1.6 64-bit (jdk-6u33-windows-x64.exe)
WL Version : 10.3.6 generic version (wls1036_generic.jar)
While installing Weblogic, I have chosen the Sun JDK.
After successful installation, I changed the nodemanager properties such as startScriptEnabled and stopScriptEnabled as "true". And run the NodeManager and NodeManager started successfully on port 5556.
But while trying to start the Weblogic scripting Tool, it is throwing the error message as
"d:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8 was unexpected at this time"
I have not created any domain and planning to create using WLST script.
Please help.
Thanks,
RaviHi all,
I am also facing the same issue.I am trying to update fusion midddleware shared libraries. For that i need to run
cd oracle_common\common\bin
wlst.cmd upgradeJRF('/DOMAIN_HOME')
While running wlst.cmd file i am getting message in command prompt
D:\OraHome\Middlleware\oracle_common\common\bin>wlst
The input line is too long.
:APPEND_CLASSPATH
was unexpected at this time.
D:\OraHome\Middlleware\oracle_common\common\bin>wlst
The input line is too long.
D:\OraHome\MIDDLL~1\ORACLE~1\common\bin\setWlstEnv.cmd was unexpected at this time.
Kindly guide me regarding this.
Thanks in advance. -
Installation of OIM On weblogic.
oracle/oim/xellerate/setup/setup.xml:443: The following error occurred while executing this line:
/oracle/oim/xellerate/setup/weblogic-setup.xml:196: java.lang.RuntimeException: Could not find the OffLine WLST class
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Tried to run this command ./wlst.sh
shows
CLASSPATH=/home/oracle/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/oracle/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/jdk/lib/tools.jar:/oracle/weblogic/server/server/lib/weblogic_sp.jar:/oracle/weblogic/server/server/lib/weblogic.jar:/home/oracle/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/oracle/weblogic/server/server/lib/webservices.jar:/home/oracle/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/oracle/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/oracle/weblogic/server/server/bin:/home/oracle/bea/modules/org.apache.ant_1.6.5/bin:/oracle/jdk/jre/bin:/oracle/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/home/oracle/bin:/oracle/jdk/bin
Your environment has been set.
CLASSPATH=/home/oracle/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/oracle/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/jdk/lib/tools.jar:/oracle/weblogic/server/server/lib/weblogic_sp.jar:/oracle/weblogic/server/server/lib/weblogic.jar:/home/oracle/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/oracle/weblogic/server/server/lib/webservices.jar:/home/oracle/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/oracle/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/oracle/weblogic/server/common/eval/pointbase/lib/pbembedded57.jar:/oracle/weblogic/server/common/eval/pointbase/lib/pbtools57.jar:/oracle/weblogic/server/common/eval/pointbase/lib/pbclient57.jar
Initializing WebLogic Scripting Tool (WLST) ...
Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST class
Edited by: user10213645 on Mar 9, 2010 3:37 PMThere is an existing Bug 8431390 - WLST NOT WORKING IF WE USE NON-DEFAULT INSTALLATION (WL_HOME OUTSIDE BEA_HOME)
As per this bug, the issue can be reproduced as follows:
Steps to reproduce:
1. Install WLS 10.3GA (essex) kit in a non-default fashion (WL_HOME outside BEA_HOME)
2. Go to ur $WL_HOME/common/bin directory and execute wlst.cmd
3. It exits with the following exception:
java.lang.RuntimeException:could not find the OffLine WLST class
Hope this helps.
For more details, refer: http://idm-oracle.blogspot.com/2010/03/javalangruntimeexception-could-not-find.html -
Wlst in WebLogic 8.1.4
Hello,
I cannot seem to find wlst.cmd file in WebLogic 814.
I'm getting the following error, when I attempt to connect from a remote server.
wls:/offline> connect('weblogic', 'weblogic', 't3://xxx.xxx.xxx.xxx:7001')
Connecting to t3://xxx.xxx.xxx.xxx:7001 with userid weblogic ...
<Jan 19, 2010 3:16:12 PM EST> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible: stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359
at java.io.ObjectStreamClass.initNonProxy(Ljava.io.ObjectStreamClass;Ljava.lang.Class;Ljava.lang.ClassNotFoundException;Ljava.io.ObjectStreamClass;)V(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:36)
at java.io.ObjectInputStream.readExternalData(Ljava.io.Externalizable;Ljava.io.ObjectStreamClass;)V(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:214)
at weblogic.rjvm.MsgAbbrevInputStream.init(MsgAbbrevInputStream.java:174)
at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:426)
at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:368)
at weblogic.socket.AbstractMuxableSocket.dispatch(AbstractMuxableSocket.java:378)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:853)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:789)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:283)
at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
>
The CompatabilityMBeanServer is not initialized properly.
This might happen if the CompatabilityMBeanServer is
disabled via the JMXMBean.
To view the root cause exception use dumpStack()
WLST detected that the RuntimeMBeanServer is not enabled. This
might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
Please ensure that this MBeanServer is enabled. Online WLST cannot
function without this MBeanServer.
Traceback (innermost last):
File "<console>", line 1, in ?
File "<iostream>", line 22, in connect
WLSTException: 'Error occured while performing connect : "Cannot connect to WLST."While trying to lookup \'weblogic.management.mbeanservers.runtime\' didn\'t find subcontext \'mbeanservers\' Resolved weblogic.management Use dumpStack() to view the full stacktrace'
Any suggestions?pfa the code that i have for my WL 9.1 JDK 1.5 and the same is failing to compli itself when i am trying with WL 81. jdk 14. so can you please review and let help me out to sort out the issue please.
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.Hashtable;
import java.rmi.Remote
import javax.management.MBeanServer
import javax.management.MBeanServerConnection;
import javax.management.MalformedObjectNameException;
import javax.management.ObjectName;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import javax.naming.Context;
public class EnvDetail {
public static String username = "system";
public static String password = "password";
public static int chkValue;
public static String hostname = null;
public static String port = null;
private static MBeanServerConnection connection;
private static JMXConnector connector;
private static final ObjectName service; // Initializing the object name for DomainRuntimeServiceMBean
// so it can be used throughout the class.
static {
try {
service = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
}catch (MalformedObjectNameException e)
throw new AssertionError(e.getMessage());
/* * Initialize connection to the Domain Runtime MBean Server */
public static void initConnection(String hostname, String portString, String username, String password)
throws IOException, MalformedURLException {
String protocol = "t3";
Integer portInteger = Integer.valueOf(portString);
int port = portInteger.intValue();
String jndiroot = "/jndi/";
String mserver = "weblogic.management.mbeanservers.domainruntime";
JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, port, jndiroot + mserver);
Hashtable h = new Hashtable();
h.put(Context.SECURITY_PRINCIPAL, username);
h.put(Context.SECURITY_CREDENTIALS, password);
h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES, "weblogic.management.remote");
connector = JMXConnectorFactory.connect(serviceURL, h);
connection = connector.getMBeanServerConnection();
} /* * Print an array of ServerRuntimeMBeans. * This MBean is the root of the runtime MBean hierarchy, and * each server in the domain hosts its own instance. */
public static ObjectName[] getServerRuntimes() throws Exception {
return (ObjectName[]) connection.getAttribute(service, "ServerRuntimes");
public void getJvmRuntime() throws Exception {
ObjectName[] serverRT = getServerRuntimes();
int length = (int) serverRT.length;
for (int i = 0; i < length; i++) {
String name = (String) connection.getAttribute(serverRT,"Name");
ObjectName jvmRT = (ObjectName) connection.getAttribute(serverRT[i],"JVMRuntime");
System.out.println("\n..<"+name+" : .JVMRuntime>");
Long heapSMX =(Long)connection.getAttribute(jvmRT, "HeapSizeMax");
System.out.println("HeapSizeMax :" Math.round((heapSMX.longValue()/1048576*100000)/100000) " MB ("+connection.getAttribute(jvmRT, "HeapSizeMax")+")" );
Long heapSC =(Long)connection.getAttribute(jvmRT, "HeapSizeCurrent");
System.out.println("HeapSizeCurrent :" Math.round((heapSC.longValue()/1048576*100000)/100000) " MB ("+connection.getAttribute(jvmRT, "HeapSizeCurrent")+" bytes)");
Long heapFC =(Long)connection.getAttribute(jvmRT, "HeapFreeCurrent");
System.out.println("HeapFreeCurrent :" Math.round((heapFC.longValue()/1048576*100000)/100000) " MB ("+connection.getAttribute(jvmRT, "HeapFreeCurrent")+" bytes)");
System.out.println("HeapFreePercent :" + connection.getAttribute(jvmRT, "HeapFreePercent")+"%");
System.out.println("JavaVendor :" + connection.getAttribute(jvmRT, "JavaVendor"));
System.out.println("JavaVersion :" + connection.getAttribute(jvmRT, "JavaVersion"));
Long uptime =(Long)connection.getAttribute(jvmRT, "Uptime");
System.out.println("Uptime :" + connection.getAttribute(jvmRT, "Uptime")+" milliseconds (" + (uptime*.001)+" Seconds)");
System.out.println("******************\n");
public void getJdbcRuntime() throws Exception {
ObjectName[] serverRT = getServerRuntimes();
int length = (int) serverRT.length;
for (int i = 0; i < length; i++) {
String name = (String) connection.getAttribute(serverRT[i],"Name");
ObjectName[] appRT =
(ObjectName[]) connection.getAttribute(new ObjectName("com.bea:Name="+name+",ServerRuntime="+name+",Location="+name+",Type=JDBCServiceRuntime"),"JDBCDataSourceRuntimeMBeans");
int appLength = (int) appRT.length;
for (int x = 0; x < appLength; x++) {
System.out.println("\n.. .<"+name+" : JDBCDataSourceRuntimeMBeans>" + (String)connection.getAttribute(appRT[x], "Name")+"");
System.out.println("ActiveConnectionsCurrentCount : " + connection.getAttribute(appRT[x], "ActiveConnectionsCurrentCount"));
System.out.println("ActiveConnectionsAverageCount : " + connection.getAttribute(appRT[x], "ActiveConnectionsAverageCount"));
System.out.println("ActiveConnectionsAverageCount : " + connection.getAttribute(appRT[x], "ActiveConnectionsAverageCount"));
System.out.println("ConnectionsTotalCount : " + connection.getAttribute(appRT[x], "ConnectionsTotalCount"));
System.out.println("CurrCapacity : " + connection.getAttribute(appRT[x], "CurrCapacity"));
System.out.println("CurrCapacityHighCount : " + connection.getAttribute(appRT[x], "CurrCapacityHighCount"));
System.out.println("HighestNumAvailable : " + connection.getAttribute(appRT[x], "HighestNumAvailable"));
System.out.println("HighestNumAvailable : " + connection.getAttribute(appRT[x], "HighestNumAvailable"));
System.out.println("LeakedConnectionCount : " + connection.getAttribute(appRT[x], "LeakedConnectionCount"));
System.out.println("WaitSecondsHighCount : " + connection.getAttribute(appRT[x], "WaitSecondsHighCount"));
System.out.println("WaitingForConnectionCurrentCount: " + connection.getAttribute(appRT[x], "WaitingForConnectionCurrentCount"));
System.out.println("WaitingForConnectionFailureTotal: " + connection.getAttribute(appRT[x], "WaitingForConnectionFailureTotal"));
System.out.println("WaitingForConnectionTotal : " + connection.getAttribute(appRT[x], "WaitingForConnectionTotal"));
System.out.println("WaitingForConnectionHighCount : " + connection.getAttribute(appRT[x], "WaitingForConnectionHighCount"));
System.out.println(".\n");
public void getThreadStateandName() throws Exception {
ObjectName[] serverRT = getServerRuntimes();
//System.out.println("got server runtimes");
int length = (int) serverRT.length;
for (int i = 0; i < length; i++) {
String name = (String) connection.getAttribute(serverRT[i], "Name");
String state = (String) connection.getAttribute(serverRT[i],"State");
System.out.println("Server name: " + name + ". Server state: " + state);
ObjectName ThreadRT =(ObjectName) connection.getAttribute(serverRT[i], "ThreadPoolRuntime");
System.out.println("ExecuteThreadTotalCount :"+ (Object)connection. getAttribute(ThreadRT,"ExecuteThreadTotalCount"));
System.out.println("StandbyThreadCount:"+ (Object)connection.getAttribute(ThreadRT, "StandbyThreadCount"));
Integer e_ThreadTotal =(Integer)(Object)connection. getAttribute(ThreadRT,"ExecuteThreadTotalCount");
Integer e_standbyCount = (Integer)connection.getAttribute(ThreadRT, "StandbyThreadCount");
int eThreadTotal = e_ThreadTotal.intValue();
int estandbyCount = e_standbyCount.intValue();
System.out.println("ExecuteActiveThreadCount:"+(eThreadTotal-estandbyCount));
System.out.println("ExecuteThreadIdleCount :"+ (Object)connection. getAttribute(ThreadRT,"ExecuteThreadIdleCount"));
System.out.println("ExecuteHoggingThreadCount:"+ (Object)connection.getAttribute(ThreadRT, "HoggingThreadCount"));
System.out.println("Throughput :"+ (Object)connection.getAttribute(ThreadRT, "Throughput"));
System.out.println("HealthState :"+ (Object)connection.getAttribute(ThreadRT, "HealthState"));
//System.out.println("QueueLength:"+ (Object)connection.getAttribute(ThreadRT, "QueueLength"));
//System.out.println("StandbyThreadCount:"+ (Object)connection.getAttribute(ThreadRT, "StandbyThreadCount"));
//System.out.println("ExecuteActiveThreadCount:"+ (Object[])connection.getAttribute(ThreadRT, "ExecuteThreads"));
//System.out.println("ExecuteActiveThreadCount:"+ ((Object[])connection.getAttribute(ThreadRT, "ExecuteThreads")).size());
//System.out.println("ExecuteActiveThreadCount:"+ ((Object[])connection.getAttribute(ThreadRT, "ExecuteThreads")).length);
public void getExecuteAll() throws Exception {
System.out.println("*****************-Heap-****************");
getJvmRuntime();
System.out.println("*****************-JDBC-****************");
getJdbcRuntime();
System.out.println("*****************-Thread-****************");
getThreadStateandName();
public static void main(String[] args) throws Exception {
if (args.length != 5) {
System.out.println("\n CheckValue ------> HeapCheck : 1\n");
System.out.println(" CheckValue ------> DBCConnectionCheck : 2\n");
System.out.println(" CheckValue ------> ThreadStatusCheck : 3\n");
System.out.println(" CheckValue ------> All : 0\n");
System.out.println("Usage: java EnvDetail HostName Port CheckValue\n");
//System.out.println(args[0]);
String hostname =args[0];
//System.out.println(args[1]);
String port= args[1];
//System.out.println(args[2]);
chkValue = Integer.parseInt(args[2]);
EnvDetail ts = new EnvDetail();
initConnection(hostname,port, username, password);
switch (chkValue) {
case 1: ts.getJvmRuntime(); break;
case 2: ts.getJdbcRuntime(); break;
case 3: ts.getThreadStateandName(); break;
case 0: ts.getExecuteAll(); break;
case 5: System.out.println("CheckValue5"); break;
return;
}//main method
}// class -
Deploying a SOA COmposite using WLST
Hi,
can any one tell me step by step procedure to deploy an SOA composite using WLST..
Thanks in advance..Hi,
Go to the similar directory in your server in the command prompt...
C:\Oracle\Middleware\home_11g\Oracle_SOA1\common\bin
execute the WLST command..., wlst.cmd for windows, wlst.sh for unix...
now...
before executing the deploy command, make sure you generate the SAR file for the composite by deploy--->deploy to SAR--->check the file should be there under the project directory source location.
now back to the command prompt...
wls:/offline>sca_deployComposite(serverURL="http://localhost:8001",user="weblogic",password="welcome1",partition="Enterprise",sarLocation="C:\work\Test-App\WLSTSoaService\deploy\sca_WLSTSoaService_rev1.0.jar",forceDefault=true,overwrite=true);
press enter, then the command will be executed successfully...
check the composite in the EM console, it will be there.
Hope this helps,
N -
WLST : Error connecting to a remote Weblogic server instance from OEPE 3.7
Attempting a to run a weblogic script connecting to a remote weblogic server instance (10.3.5), which is generating the following exception in OEPE 3.7.2 -
username = 'weblogic'
password = 'weblogic6'
url='t3://xxx.xxx.com:7001'
connect(username,password,url)
Connecting to t3://xxx.xxx.com:7001 with userid weblogic ...
This Exception occurred at Fri Feb 01 13:20:54 MST 2013.
Error occured while performing connect : Error connecting to the server : Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStub
Use dumpStack() to view the full stacktrace :
java.lang.AssertionError: Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStubconnect
Problem invoking WLST - Traceback (innermost last):
File "C:\Users\hughese\workspace\12c_wlst\wlst\heapsize.py", line 13, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing connect : Error connecting to the server : Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStub
Use dumpStack() to view the full stacktrace
Connecting to the local weblogic server instance (t3://localhost:7001) works okay.
From the command prompt (wlst.cmd) I'm able to connect to the remote weblogic server instance -
wls:/offline> connect('weblogic','xxxxx','t3:xxx.xxx.com:7001') ;
Connecting to t3://xxx.xxx.com:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'IDMDomain'.
I've compared the CLASSPATHs between OEPE and the command prompt.
Any assistance would be greatly appreciated.
Edited by: 950635 on Feb 1, 2013 7:47 PMHi,
1)To get mysql JDBC driver to work on my Linux system, i had to add the classpath for the driver to the .bashrc:
CLASSPATH=./:home/<user>/java/mm.mysql-2.0.6/:home/<user>/java
Note that I execute the java program as the user <user> (and .bashrc is the config. file of this <user>...). Perhaps you must do this as well for the Oracle driver on your client machine. I don't know if your client machine is UNIX/LINUX or WINDOWS. It should only be clear that the CLASSPATH is set in the config. file of the user under which the java program runs and that this user has the permission to access the files.
There are no differences between accessing the database locally than accessing it by a network connection. The only thing that matters are that the connection parameters are right and that the network works properly.
2) are you sure that the table tname (case sensitivity?) exits?
Marc -
I get "INTERFACE_QUARANTINED due to Cmd Failure" error when enabling PortChannel in n1kv
I have added a new host to my n1kv, but the interface PortChannel3 appears to be in shutdown and I can't bring it up, despite of it is working.
SW-OUT-N1KV# sh int status
Po3 -- up trunk full 1000 --
SW-OUT-N1KV# sh port-channel sum
Flags: D - Down P - Up in port-channel (members)
I - Individual H - Hot-standby (LACP only)
s - Suspended r - Module-removed
S - Switched R - Routed
U - Up (port-channel)
Group Port- Type Protocol Member Ports
Channel
1 Po1(SD) Eth NONE Eth3/2(r)
2 Po2(SU) Eth LACP Eth4/5(P) Eth4/6(P)
3 Po3(SU) Eth LACP Eth5/5(P) Eth5/6(P)
4 Po4(SU) Eth LACP Eth4/1(P) Eth4/2(P) Eth4/3(P)
Eth4/4(P)
5 Po5(SD) Eth LACP Eth5/1(D) Eth5/2(D) Eth5/3(D)
Eth5/4(D)
6 Po6(SD) Eth NONE --
SW-OUT-N1KV# sh run int po3
!Command: show running-config interface port-channel3
!Time: Thu Jan 5 18:00:08 2012
version 4.2(1)SV1(4)
interface port-channel3
inherit port-profile SYSTEM-UPLINK
shutdown
When I try to enable it, I get the following error:
SW-OUT-N1KV(config)# int po3
SW-OUT-N1KV(config-if)# no shut
2012 Jan 5 18:00:51 SW-OUT-N1KV %PORT-PROFILE-2-INTERFACE_QUARANTINED: Interface port-channel3 has been quarantined due to Cmd Failure
The "show logging logfile" and "show accounting log" shows nothing.
Any idea why is it happening????
Other outputs,
SW-OUT-N1KV(config-if)# do sh run port-profile SYSTEM-UPLINK
!Command: show running-config port-profile SYSTEM-UPLINK
!Time: Thu Jan 5 18:02:46 2012
version 4.2(1)SV1(4)
port-profile type ethernet SYSTEM-UPLINK
vmware port-group
switchport mode trunk
duplex auto
speed auto
switchport trunk native vlan 666
switchport trunk allowed vlan 2,43-44
cdp enable
channel-group auto mode active
no shutdown
system vlan 2,43-44
state enabled
SW-OUT-N1KV(config-if)# do sh port-prof virt usag
Port Profile Port Adapter Owner
SYSTEM-UPLINK Po1
Po2
Po3
Eth4/5 vmnic4 10.100.100.63
Eth4/6 vmnic5 10.100.100.63
Eth5/5 vmnic4 10.100.100.64
Eth5/6 vmnic5 10.100.100.64
IESE_CONTENIDO Veth9 Net Adapter 1 IESECMPRO
Veth14 Net Adapter 1 IESEAUTOPRO
IESE_BACKEND Veth10 Net Adapter 1 IESEDBINTPRE
Veth11 Net Adapter 1 IESEDBPRO
IESE_PRE_INT Veth3 Net Adapter 1 IESEWEBPRE
Veth4 Net Adapter 1 IESEAPPINT
Veth5 Net Adapter 1 IESEAPPPRE1
Veth6 Net Adapter 1 IESEAPPPRE2
Veth7 Net Adapter 1 IESEAUTOPRE
Veth8 Net Adapter 1 IESECMINTPRE
DATA-UPLINK-100m Po6
SERVICE-CONSOLE Veth1 vmk0 Module 4
Veth2 vmk1 Module 4
Veth12 vmk0 Module 5
Veth13 vmk1 Module 5
DATA-UPLINK-IESE Po4
Po5
Eth4/1 vmnic0 10.100.100.63
Eth4/2 vmnic1 10.100.100.63
Eth4/3 vmnic2 10.100.100.63
Eth4/4 vmnic3 10.100.100.63
Eth5/1 vmnic0 10.100.100.64
Eth5/2 vmnic1 10.100.100.64
Eth5/3 vmnic2 10.100.100.64
Eth5/4 vmnic3 10.100.100.64Debugging port-profile errors, and trying agair, I get the following output:
SW-OUT-N1KV(config-port-prof)# no shut
2012 Jan 9 14:43:02.102017 port-profile: (ERR) ppm_fq_cmd_intf_range_get(1753): Failed to find intf tlv ^Yex^Yconf^Yport-profile DATA-UPLINK-IESE-SA^Yno shutdown error: Command Parsing Failed
2012 Jan 9 14:43:02.102577 port-profile: (ERR) ppm_profile_fsm_session_get(71): RID before session start request is 1
2012 Jan 9 14:43:02.106573 port-profile: (ERR) ppm_req_dbmgr_send(426): Changing session status: 0x0
2012 Jan 9 14:43:02.443092 port-profile: (ERR) ppm_vppm_profile_acfg_gen(353): VPPM Profile Level -1 acfg generation failed Error: no such pss key (0x40480003)
2012 Jan 9 14:43:03.048365 port-profile: (ERR) ppm_pending_req_queue_check(1035): msg_ref_p->state == 0xbba6e3cc
SW-OUT-N1KV(config-port-prof)# 2012 Jan 9 14:43:03.373461 port-profile: (ERR) ppm_pending_req_queue_check(1035): msg_ref_p->state == 0xbba6e3cc
SW-OUT-N1KV(config-port-prof)# channel-group auto mode active
2012 Jan 9 15:37:32.338832 port-profile: (ERR) ppm_fq_cmd_intf_range_get(1753): Failed to find intf tlv ^Yex^Yconf^Yport-profile type ethernet DATA-UPLINK-IESE-SA^Ychannel-group auto mode active error: Command Parsing Failed
2012 Jan 9 15:37:32.339399 port-profile: (ERR) ppm_profile_fsm_session_get(71): RID before session start request is 1
2012 Jan 9 15:37:32.358546 port-profile: (ERR) ppm_db_port_channel_check(7068): Not a channel grp command.
2012 Jan 9 15:37:32.360130 port-profile: (ERR) ppm_req_dbmgr_send(426): Changing session status: 0x0
2012 Jan 9 15:37:32.651020 port-profile: (ERR) ppm_vppm_profile_acfg_gen(353): VPPM Profile Level -1 acfg generation failed Error: no such pss key (0x40480003)
2012 Jan 9 15:37:33.181682 port-profile: (ERR) ppm_pending_req_queue_check(1035): msg_ref_p->state == 0xbba6e3cc
2012 Jan 9 15:37:33.387996 port-profile: (ERR) ppm_find_intf_in_cache(917): No pending plan present
2012 Jan 9 15:37:34.772375 port-profile: (ERR) ppm_pending_req_queue_check(1035): msg_ref_p->state == 0xbba6e3cc
2012 Jan 9 15:37:34.774586 port-profile: (ERR) ppm_profile_fsm_session_get(71): RID before session start request is 1
SW-OUT-N1KV(config-port-prof)# 2012 Jan 9 15:37:35.102895 port-profile: (ERR) ppm_vppm_profile_acfg_gen(353): VPPM Profile Level -1 acfg generation failed Error: no such pss key (0x40480003)
2012 Jan 9 15:37:35.469793 port-profile: (ERR) ppm_config_merge_handler(773): Show run merge not performed with reason PPM show run merge is not required
2012 Jan 9 15:37:35.502211 port-profile: (ERR) ppm_cmd_desc_create(1176): command to be ignored parsed mode:/exec/configuremode: /exec/configure cmd:version 4.2(1)SV1(4) error: Command is not a port-profile command
2012 Jan 9 15:37:35.503417 port-profile: (ERR) ppm_cmd_desc_create(1265): interface command detected ^Yex^Yconf^Yinterface port-channel5, error: Interface command is given for cmd desciptor
2012 Jan 9 15:37:35.510826 port-profile: (ERR) ppm_req_dbmgr_send(426): Changing session status: 0x0
2012 Jan 9 15:37:59.800813 port-profile: (ERR) ppm_dispatcher_invoker(542): Invoker parent failed with Err[0x1400]
2012 Jan 9 15:37:59.832496 port-profile: (ERR) procjobcb_job_done(686): status: 0x1400, (null)
2012 Jan 9 15:37:59.837319 port-profile: (ERR) ppm_profile_fsm_sma_apply_acc(1250): Changing session status: 0x420c007c
2012 Jan 9 15:37:59.837732 port-profile: (ERR) ppm_profile_fsm_sma_apply_acc(1252): apply status: 0x1400
2012 Jan 9 15:37:59.838435 port-profile: (ERR) ppm_profile_fsm_sma_apply_acc(1277): Could not open the file /dev/shm/ppm_DATA-UPLINK-IESE-SA_output.txt
2012 Jan 9 15:37:59.800813 port-profile: (ERR) ppm_dispatcher_invoker(542): Invoker parent failed with Err[0x1400]
2012 Jan 9 15:37:59.832496 port-profile: (ERR) procjobcb_job_done(686): status: 0x1400, (null)
2012 Jan 9 15:37:59.837319 port-profile: (ERR) ppm_profile_fsm_sma_apply_acc(1250): Changing session status: 0x420c007c
2012 Jan 9 15:37:59.837732 port-profile: (ERR) ppm_profile_fsm_sma_apply_acc(1252): apply status: 0x1400
2012 Jan 9 15:37:59.838435 port-profile: (ERR) ppm_profile_fsm_sma_apply_acc(1277): Could not open the file /dev/shm/ppm_DATA-UPLINK-IESE-SA_output.txt
2012 Jan 9 15:37:59 SW-OUT-N1KV %PORT-PROFILE-2-INTERFACE_QUARANTINED: Interface port-channel5 has been quarantined due to Cmd Failure
Any idea? I'm lost... -
Unable to use endeca-cmd against the running Endeca Server
Hello Endeca forum,
I'm working in a client environment in which I can see that the Endeca Server is running:
1. Going to a browser on the server itself, I can see a positive result page when I go to http://localhost:7770/admin/<datasource>?op=ping
2. When I'm in the linux server and do a "ps -ef | grep "start", I see that there is a process running the server with "-Djetty.port=7770"
3. Studio running on the same server has datasources pointing at localhost:7770 (and Studio is showing data)
However, when I go to the endeca-cmd and try to create a new datasource ("./endeca-cmd create-ds <new_datasource_name>"), I see the following error:
"*Error contacting the Endeca Server localhost:7770: com/endeca/opmodel/opSupport/MkMdexRunner*"
I get the same error if I try to use a graph in Data Integrator with the "Create Data Store" component (taken from the quickstart InitDataStore.grf, but pointing to the client's Endeca Server).
Running "./endeca-cmd version" gives me an equally cryptic error:
"*Error contacting the Endeca Server localhost:7770: com/endeca/mdex/admin/_1/Admin*"
Has anyone seen this before?
I'm starting to think that this may be a strange environment issue, but I can't figure why I'd be able to see the server running through other means, but fail to interact with the server using endeca-cmd.
Thanks,
JeromeHey Brett,
Good points. Unfortunately, I can't install SoapUI on the client's server (where the Endeca Server is running), but I was able to run a graph that tries to create a dgraph on it (which is an HTTP call to the createDataStore operation). This call resulted in the same error that I saw when invoking "endeca-cmd create-ds". However, the failure of the graph gives me a little more in the form of a partial stack trace...
org.apache.axis2.AxisFault: com/endeca/opmodel/opSupport/MkMdexRunner
at org.apache.axis2.description.OutInAxisOperationClient$NonBlockingInvocationWorker.run(OutInAxisOperation.java:451)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
... which doesn't really tell me anything.
Is there a place where I can see logs for the Endeca Server? Might be able to get a little more from a full stack trace...
I know that dgraph logs are at…
<OEID_installation>/Server/2.3.0/endeca-server/logs
But obviously these don’t hold anything about the dgraph that I’m trying to create.
Thanks,
Jerome -
Hi,
I fail to run java weblogic.WLST and get this error.
Exception in thread "main" java.lang.NullPointerException
at weblogic.utils.FileUtils.find(FileUtils.java:334)
at weblogic.descriptor.DescriptorClassLoader.findJars(DescriptorClassLoader.java:80)
at weblogic.descriptor.DescriptorClassLoader.getExtendedClassLoader(DescriptorClassLoader.java:154)
at weblogic.descriptor.DescriptorClassLoader.getClassLoader(DescriptorClassLoader.java:41)
at weblogic.WLST.main(WLST.java:19)
I have already set the classpath using the setWLSEnv.cmd.
My classpath is
C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK16~1.0_2\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
I can use java weblogic.Deployer but only this WLST is not usable.Hi ,
Try to set classpath from setDomainEnv first and then run java weblogic.WLST or else as Alisson mentioned you can use wlst.sh or wlst.cmd from following location.
%WLS_HOME% / common / bin/
Regards,
kal -
When I run the following Ant target:
<target name="deploy-to-weblogic">
<exec executable="${weblogic.bin.dir}/setWLSEnv.cmd" />
<wlst failOnError="true" debug="true">
<script>
Jython stuff
</script>
</wlst>
</target>
I get this error:
BUILD FAILED
D:\bea_dev\domains\domain_dev\build-weblogic-deployment.xml:25: java.lang.Runtim
eException: error in finding weblogic.Home
at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:119)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Total time: 1 second
As you can see, I have set the environment with that exec task, but for some reason I am getting the error you see above.
It is interesting to note though that the file wlst.cmd does indeed work. The file looks like this:
@ECHO OFF
SETLOCAL
SET WL_HOME=D:\bea_dev\weblogic92
CALL "%WL_HOME%\server\bin\setWLSEnv.cmd"
SET CLASSPATH=%CLASSPATH%;%WL_HOME%\common\eval\pointbase\lib\pbembedded51.jar;%WL_HOME%\common\eval\pointbase\lib\pbtools51.jar;%WL_HOME%\common\eval\pointbase\lib\pbclient51.jar
@echo.
@echo CLASSPATH=%CLASSPATH%
"%JAVA_HOME%\bin\java" weblogic.WLST %*
ENDLOCAL
I will mention that WL_HOME is set as an environment variable to the value above. I also tried running the class through the <java> task to no avail.
I appreciate any insight you can provide.
Thanks.If you are on windows, the ant <exec> forks off another process using
::CreateProcess, so I think your <exec> command is setting up the
environment in a different process than the process that wlst is being
run from.
See http://ant.apache.org/manual/CoreTasks/exec.html
Have you tried doing the setWLSEnv.cmd before you run ant?
Tony
Neil C wrote:
When I run the following Ant target:
<target name="deploy-to-weblogic">
<exec executable="${weblogic.bin.dir}/setWLSEnv.cmd" />
<wlst failOnError="true" debug="true">
<script>
Jython stuff
</script>
</wlst>
</target>
I get this error:
BUILD FAILED
D:\bea_dev\domains\domain_dev\build-weblogic-deployment.xml:25: java.lang.Runtim
eException: error in finding weblogic.Home
at weblogic.ant.taskdefs.management.WLSTTask.execute(WLSTTask.java:119)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Total time: 1 second
As you can see, I have set the environment with that exec task, but for some reason I am getting the error you see above.
It is interesting to note though that the file wlst.cmd does indeed work. The file looks like this:
@ECHO OFF
SETLOCAL
SET WL_HOME=D:\bea_dev\weblogic92
CALL "%WL_HOME%\server\bin\setWLSEnv.cmd"
SET CLASSPATH=%CLASSPATH%;%WL_HOME%\common\eval\pointbase\lib\pbembedded51.jar;%WL_HOME%\common\eval\pointbase\lib\pbtools51.jar;%WL_HOME%\common\eval\pointbase\lib\pbclient51.jar
@echo.
@echo CLASSPATH=%CLASSPATH%
"%JAVA_HOME%\bin\java" weblogic.WLST %*
ENDLOCAL
I will mention that WL_HOME is set as an environment variable to the value above. I also tried running the class through the <java> task to no avail.
I appreciate any insight you can provide.
Thanks. -
WLST invoking error in weblogic 8.1SP5
Hi,
I am getting below error while trying to run WLST.
Error Message: Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/WLST
weblogic version : 8.1 SP5
OS: HP-UX 11i V2
Java : 1.4.2.17
After going through the topic "*Support Provided for WebLogic Scripting Tool (WLST)*" from release notes http://download-llnw.oracle.com/docs/cd/E1319601/platform/docs81/relnotes/relnotes.html#1091001_,
it is refering to two URLS's which are not available now.
https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=13
https://codesamples.projects.dev2dev.bea.com/servlets/Scarab?id=97
Please help from where i can get the above details & files.
Cheers
ThallaHi,
Till WLS 8.1 SP5 you need to download the Wlst.jar Separately along with jython.jar. You can download these Jars from : http://www.4shared.com/file/116721496/8c3533ea/WLST_WLS_81.html
These Jars are available by default with WLS9.x onwards as part of *"weblogic.jar"* itself.
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
Maybe you are looking for
-
How do i display text into a JTextfield
hi, am currently using a JLabel to display the results of a calculation in my gui however i want to change it to a JTextField if possible is it possible to declare a Jtextfield, set it so that it cant accept data of any kind and display a calculation
-
3 years ago, I purchased Microsoft Office Home and Student 2010 with the backup disc. The purchase was on-line from Microsoft. I recently had to restore my PC, and when I went to reload Office, I realized I did not have the key. How do I get the key?
-
Scrolling Synaptic Touchpad Problem (Arch Wiki didn't solve it)
Good to the whole Arch's community. First of all to appear, I am codebuster and am new in this community and in this magnificent distro that I have been charmed with for his simplicity and performance. Always I had begun for behind the topic of the c
-
Error message in shared printer queue.
I am now receiving an error message in my Macbook printer queues whenever I try to print from this Macbook to a shared Epson C120 printer attached by USB to my PowerMac G5. When I highlight the queue line I wish to print, an error message reads : c
-
Resolve File Saving Conflict Dialog Box
Hi, I developed a new GUI for teststand. The problem is with the executable of the GUI, because at the end of the test it does not closed itself. I have to terminate the process by the TaskManager. When I used the GUI instead of the executable, it a