Weblogic Scripting Tool help required
Hi,
Can anyone please help me in creating a new WLS domain which is exactly same as an another existing WLS domain, by using WLST scripts? Suppose I have my own domain, which is having a admin server, and two managed servers, and some resourse configuraions(JDBC, JMS, etc) and application deployments, then I want to create the same domain configuration on another machine, by just running a WLST script. Is it possible? If yes, how should I create a WLST script for doing that?? Please answer to my query at the earliest.
Thanks in advance,
Seshu
Hello Kalluri,
Have you tried configToScript? You can run configToScript on a config.xml to create a wlst script and a properties file. You can change the server names, domain name etc in the properties file and run the script on a different machine to create the same configuration. The script might need a little tweaking depending on any errors or any encrypted passwords.
Thanks,
-satya
Similar Messages
-
Anyone tried the new Weblogic Scripting Tool (WLST)?
Has anyone tried using the new WebLogic Scripting Tool (WLST) that was recently
posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
It looks to be a handy tool that is built upon jython and enables you to easily
navigate, inspect and manipulate the WebLogic MBean tree on a running server.
It also has a nice scripting tool which allows you to convert a config.xml file
into a script that can be run to recreate a domain or specific resources within
the domain. This is exactly something I have been looking for because we occasionally
recreate domains or subsets of a domain for testing and POC purposes.
The utility is fairly well documented and works well for the most part. The only
issue I have run into so far is that is does not seem to understand JMS Distributed
Destinations. When I try to convert a config.xml that contains a DD to a script
it throws a null pointer exception. I have not tried a cluster yet.
I noticed the utility was authored by someone at BEA. Is there potential that
BEA will support this in the future if it catches on? Has anyone had experience
with WLST or jython that would cause you to reccomend (or not) using it?
Thanks.Darryl,
Thanks for the valuable feedback. My comments are inline.
Darryl Stoflet wrote:
As a fairly long time wlshell user who recently started testing wlst there are
few features I have found lacking in wlst.
1. For monitoring purposes I am frequently using the -g and -r options to wlshell's
get command for graphing and repeating respectivelyI haven't looked at -g and -r options in wlshell, but will do so.
Although there is no graphical monitoring of attributes in wlst, but
there is certainly some monitoring capability (which will be enhanced
further in the coming version). Please take a look at the
monitorAttribute() function.
wls:/(offline)> help('monitorAttribute')
Description:
Monitors the specified attribute every by polling every interval.
Syntax:
monitorAttribute(attributeName, interval, monitorFile)
attributeName = Name of the attribue that you would like to monitor.
interval = Time (in seconds) to wait before the next fetch
monitorFile=[optional] File path where the monitored data will be
written to.
Example:
wls:/mydomain/runtime/ServerRuntimes/myserver/ExecuteQueueRuntimes/weblogic.kernel.Default>
monitorAttribute("ServicedRequestTotalCount",10)
Press Return to quit monitoring
Monitoring started for attribute ServicedRequestTotalCount
wls:/(offline)>
>
2. wlshell 2.0 adds the option when connecting to the admin server to also connect
to all managed servers in that domain. This is a nice feature for monitoring because
you then have access to all the runtime mbeans in each managed serverYes, this indeed seems to be a very nice feature. We will consider this
for our next release.
>
3. There is not a good way to pass cmd line options(variables) to wlst. In wlshell
I can send cmd line options via -v. I have tried something similar with wlst using
-loadProperties but this is a little laborious because I do not necessarily want
to create a properties file when a passing in only one or two variables. Also
I find loadProperties lacking somewhat (see 4 below)ok, I just realised that there is indeed a bug in wlst where the command
line arguments are not being honored. In Jython one can access the
command line arguments from the sys.argv variable. For example,
java weblogic.WLST -i foo.py var1 var2 var3
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to Weblogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> print sys.argv
['foo.py', 'var1', 'var2', 'var3']
wls:/offline>
But this isn't working properly, please keep using the loadProperties
untill this has been fixed.
>
4) loadProperties treats all created variables as strings. While this is understandable
from the perspective that getProperty returns a string, it would be nice if wlst
was smart enough that when a property is numbers only its an int, otherwise a
string etc.
wlshell does this logic/conversion for you which really simplifies calling methods
that expect the particular datatype. To get around this problem you can create a script file say,
variables.py which would look like,
# variables that will be used
theInterpreter.set('var1',10)
theInterpreter.set('var2','i am a string')
java weblogic.WLST variables.py
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to Weblogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/(offline)> print var1
10
wls:/(offline)> print var2
'i am a string'
>
5. I'd like to be able to send cmd output etc to a file while running within wlst.
In wlshell its a simple as adding >> filename to the end of the command. In wlst it is not as simple as doing >>, it is more than that. You can
choose any output stream to direct your output to. In your case you can
create a FileOutputStream and route the output to this stream for any
particular command.
Example,
# create a file output stream say fos
from java.io import FileOutputStream
fos = FileOutputStream("output.txt")
# save the default output stream to a variable to
# switch it back
sys.stdout=fos
# Now all output for any function will go to output.txt
ls()
cd('foo')
# after done with your functions switch it back
sys.stdout=origOutput
This is the right Jython way to do it. This works for all output streams
, very useful when you embed an interpreter in a servlet and would like
to display the output via a PrintStream etc.
>
>
All in all wlst is a nice tool. Personally if the above features were added it
would be much easier to transistion to wlst for good.
Also I really like the wlst offline tool. Its nice to be able to do the whole
create and configure domain process with one tool. Will this be supported. Yes indeed. We are working on merging both the tools into one.
I do
not want to rely on it too much if it will not work in future weblogic versions.It will be supported in future release of weblogic.
Thanks,
-satya
>
Thanks,
Darryl
"Steve Hess" <[email protected]> wrote:
Hello,
I am the BEA Product Manager behind WLST.
WLST, as it appears today on dev2dev, is an early release version of
a tool that
BEA does intend to support as part of our next major release. We decided
to issue
early versions of the tool because of the demand for a supported scripting
solution,
and to generate feedback from our user community. I encourage you to
work with
WLST, and assure you that this tool represents our current direction
in management
scripting.
Also note, this newsgroup can be used to issue questions, concerns and
feedback
about WLST. The engineering and PM team will monitor this group and
respond to
your questions as quickly as we can. While we will not be able to respond
to
every feature request, we really value your suggestions, and will endeavor
to
improve the tool in ways that meet your real-world needs.
Cheers,
Steve Hess
Director, WLS PM
"George Lupanoff" <[email protected]> wrote:
Has anyone tried using the new WebLogic Scripting Tool (WLST) that was
recently
posted on the dev2dev WebLogic Utilities site: http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
It looks to be a handy tool that is built upon jython and enables you
to easily
navigate, inspect and manipulate the WebLogic MBean tree on a running
server.
It also has a nice scripting tool which allows you to convert a config.xml
file
into a script that can be run to recreate a domain or specific resources
within
the domain. This is exactly something I have been looking for because
we occasionally
recreate domains or subsets of a domain for testing and POC purposes.
The utility is fairly well documented and works well for the most part.
The only
issue I have run into so far is that is does not seem to understandJMS
Distributed
Destinations. When I try to convert a config.xml that contains a DDto
a script
it throws a null pointer exception. I have not tried a cluster yet.
I noticed the utility was authored by someone at BEA. Is there potential
that
BEA will support this in the future if it catches on? Has anyone had
experience
with WLST or jython that would cause you to reccomend (or not) using
it?
Thanks. -
How to create a server through WLST ( Weblogic Scripting Tool ) ?
How to create a server through WLST ( Weblogic Scripting Tool ) ?
Thanks in advance...
SanjayHi Murugesh,
Thanks a lot for you reply..
I was able to create a server using create(). Is it possible to clone a server ?
When i create a server following tags is added to config.xml
<server>
<name>testServer_lab1</name>
<listen-port>43000</listen-port>
</server>
And if i do a clone through admin console, following is added to config.xml
<server>
<name>testServer2_lab1</name>
<machine xsi:nil="true"></machine>
<listen-port>7001</listen-port>
<cluster xsi:nil="true"></cluster>
<listen-address></listen-address>
<graceful-shutdown-timeout>120</graceful-shutdown-timeout>
</server>
If incase, cloning is not possible through WLST, can i add following
<machine xsi:nil="true"></machine>
<listen-port>7001</listen-port>
<cluster xsi:nil="true"></cluster>
<listen-address></listen-address>
<graceful-shutdown-timeout>120</graceful-shutdown-timeout>
under <server> tag which is created through WLST ?
I am using 9.2 version.
Regards
Sanjay -
Hi All,
I have installed weblogic portal version 10. I want to use WLST for deplyimg a portal application .Can anyone please suggest a introductory pdf describing how to start with or expalining basic concepts of wlst.
Thanks & Regards,
Weblog_newbieHello Kalluri,
Have you tried configToScript? You can run configToScript on a config.xml to create a wlst script and a properties file. You can change the server names, domain name etc in the properties file and run the script on a different machine to create the same configuration. The script might need a little tweaking depending on any errors or any encrypted passwords.
Thanks,
-satya -
Problem using WebLogic Scripting Tool
Hi,
I'm new to weblogic. I tried to deploy WAR file to weblogic(installed on my PC) using WLST. I got the following error message.
Problem invoking WLST - Traceback (innermost last):
[exec] File "C:\TutorialHome\CDB\buildfiles\localhost.py", line 7, in ?
[exec] File "<iostream>", line 354, in activate
[exec] WLSTException: 'Error occured while performing activate : Error while Activating changes. Use dumpStack() to view the full stacktrace'
[exec] <Apr 21, 2009 1:24:43 PM EDT> <Warning> *<JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>*
Here is my hostlocal.py:
connect('weblogic','weblogic','t3://localhost:7001')
stopApplication('cdb')
edit()
startEdit()
progress=redeploy('cdb')
save()
activate()
startApplication('cdb')
disconnect()
exit()
So How can I solve the problem of "<BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>"?
Thanks in advance.
SarahCheck the blend modes for the brush tool in the tool options bar.
Also if your painting on a blank layer check the blend modes in the layers panel.
Either way try the Normal mode.
MTSTUNER -
Is there any Scripting tool available?
Hi,
I am brand new to Web AS and wondering is there any command line scripting tool available within Web AS? For example, something similar to BEA's WebLogic Scripting Tool (WLST) that is based on Jython or IBMs WebSphere Administrative (wsadmin) that is based on Jacl and Jython.
Any input/comments/pointers are much appreciated.http://bivald.com/lessons-learned/2007/08/flash-media-server-ide.html
or if above link fails, try this
http://www.igorcosta.org/?p=151
Yes, I believe you can use any text editor, including a javascript editors to write serverside AS, but may not get intellisense in most of those editors while coding.
check the above links for a development IDE with intellisense enjoy
Mohamed D. Sankoh
Calgary
Alberta, Canada -
Help with Oracle Scripting Tool
Hello all, I am currently new to using the Oracle Scripting Tool. I can already launch the scripting author and develop some basic scripts using PL/SQL commands and test them using the scripting user responsibility. My main problem is with this one requirement in one of the panels of the script.
In the first panel, there is a multi-list select box with a number of options. The user will select any number of these options then click continue to the next panel. Now here is my problem, if say the user selects 3 options in the last panel, the next panel should show 3 text fields. These text fields will correspond to each option selected meaning if I select 2 options in the last panel, 2 text fields will appear in the next panel or if I select 5 options in the last panel then 5 text fields will apper in the next panel. I dont know how to implement this using the Oracle Scripting tool, please help.. Any advice on this would be of greatly appreciated..Neither can be affected by the user. The first is a long-standing, frustrating, bug. Please report it via Aperture feedback at "Aperture➞Provide Aperture Feedback". (I make thousands of crops a week, and make hundreds of details from crops (re-cropping smaller). The current set-up, which "helpfully" over-rides _my_ setting, is extremely frustrating.)
The second is not changeable. You could recommend larger and/or more visible sizing handles by filing a second feedback request.
Sorry for the unhelpful news. -
Help required in Weblogic 6 - Creation & Configuration of Web Application
Forum Home > Enterprise JavaBeans[tm]
Topic: Help required in Weblogic 6 - Creation & Configuration of Web Application
Duke Dollars
2 Duke Dollars assigned to this topic. Reward the best responses to your question
using the icons below, or transfer additional Duke Dollars to this topic.
Welcome moinshariff!
Watching this topic.
Previous Topic Next Topic
This topic has 1 reply on 1 page (Most recent message: Jan 23, 2002 1:05 AM)
Author: moinshariff Jan 22, 2002 4:55 AM
Hi,
I am using Weblogic 6. I have created a new Web
Application called Web (I have not used the DefaultWebApp_myserver).
And I have the following settings:
Name : Web
URI : Web
and Path : C:\Web
and placed my JSP files under c:\Web\
I am able to access the first page, but after that I am not able to access the
second page.
I get "Error 404--Not Found" on the browser. Basically the class file is not getting
created under /Web-inf/_tmp_war_myserver_myserver_Web/jsp_servlet/ folder .
I tried a work around for this. I copied all my files under one more folder called
web and placed this under C:\Web
The it works. Now I have 2 copied off all the files, 1 copy under c:\web and another
copy under c:\web\web\.
If I have the files under DefaultWebApp_myserver and have the setting as
Name: DefaultWebApp_myserver
URI: DefaultWebApp_myserver
Path: .\config\mydomain\applications
everything works fine.
Can any one please let me know if there is any configuration which has to be done
so that I do not duplicate the code in 2 directories
Thanks in advance.
Regards,
MoinForum Home > Enterprise JavaBeans[tm]
Topic: Help required in Weblogic 6 - Creation & Configuration of Web Application
Duke Dollars
2 Duke Dollars assigned to this topic. Reward the best responses to your question
using the icons below, or transfer additional Duke Dollars to this topic.
Welcome moinshariff!
Watching this topic.
Previous Topic Next Topic
This topic has 1 reply on 1 page (Most recent message: Jan 23, 2002 1:05 AM)
Author: moinshariff Jan 22, 2002 4:55 AM
Hi,
I am using Weblogic 6. I have created a new Web
Application called Web (I have not used the DefaultWebApp_myserver).
And I have the following settings:
Name : Web
URI : Web
and Path : C:\Web
and placed my JSP files under c:\Web\
I am able to access the first page, but after that I am not able to access the
second page.
I get "Error 404--Not Found" on the browser. Basically the class file is not getting
created under /Web-inf/_tmp_war_myserver_myserver_Web/jsp_servlet/ folder .
I tried a work around for this. I copied all my files under one more folder called
web and placed this under C:\Web
The it works. Now I have 2 copied off all the files, 1 copy under c:\web and another
copy under c:\web\web\.
If I have the files under DefaultWebApp_myserver and have the setting as
Name: DefaultWebApp_myserver
URI: DefaultWebApp_myserver
Path: .\config\mydomain\applications
everything works fine.
Can any one please let me know if there is any configuration which has to be done
so that I do not duplicate the code in 2 directories
Thanks in advance.
Regards,
Moin -
Unable to start MS NoClassDefFoundError: weblogic/sip/tools/SipToolsFactory
Hi Folks,
I really need ur assistance on this, I am failing to start my weblogic managed server which is on WL 10.3.4 and hosted on Windows 2008R2 server.
I am getting the below exception:
<<WLS Kernel>> <> <> <1365769487402> <BEA-000386> <Server subsystem failed. Reason: java.lang.NoClassDefFoundError: weblogic/sip/tools/SipToolsFactory
java.lang.NoClassDefFoundError: weblogic/sip/tools/SipToolsFactory
at weblogic.sip.plugin.SipPlugin.startService(SipPlugin.java:25)
at weblogic.server.ServiceActivator.start(ServiceActivator.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused By: java.lang.ClassNotFoundException: weblogic.sip.tools.SipToolsFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at weblogic.sip.plugin.SipPlugin.startService(SipPlugin.java:25)
at weblogic.server.ServiceActivator.start(ServiceActivator.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Now the I dont want to use the SIP and have done the following:
1. Disabled the SIP from my Weblogic Console and restarted the Admin Server
2. Modified my init script from
<setenv name="WLSS_HOME">
<value>E:\Oracle\Middleware\wlserver_10.3/sip</value>
</setenv>
<setenv name="SIP_ENABLED">
<value>true</value>
</setenv>
to
<setenv name="WLSS_HOME">
<value>E:\Oracle\Middleware\wlserver_10.3/sip</value>
</setenv>
<setenv name="SIP_ENABLED">
<value>false</value>
</setenv>
3. Modified my class paths so SIP wont be called.
Now the interesting part, actually this setup is a running setup and I have installed it from scratch..The thing here is it might sound silly....But the weblogic still picks up the Classpath for SIP during startup, be it via node manger or even on the server.
<WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
E:\Oracle\Middleware\user_projects\domains\DOMAIN_XYZ\lib\sipactivator.jar>
<BEA-002647> <The service plugin, com.oracle.core.sip.activator, was added from E:\Oracle\Middleware\user_projects\domains\DOMAIN_XYZ\lib\sipactivator.jar.>
If you see its a extension lib file, now my query without deleting the file from the extension lib how can i get rid of it.
Hope someone can help me out.
ThanksHi Kishore,
Thanks for the update, but I had already done those changes, please find my current config.xml but I noticed one thing when I restart my weblogic instance it creates a new config.xml with a name like this config.xml and it doesnt reflect the original config.xml which I am trying to use. I some how feel that the config.xml is being picked up while stating the instance instead of the original config.xml.
I am placing both of them below with the respective names.
config.xml (the one i am trying to use)
<?xml version='1.0' encoding='UTF-8'?>
<domain xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator/1.0/passwordvalidator.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd">
<name>TEST</name>
<domain-version>10.3.4.0</domain-version>
<security-configuration>
<name>TEST</name>
<realm>
<sec:authentication-provider xsi:type="wls:default-authenticatorType"></sec:authentication-provider>
<sec:authentication-provider xsi:type="wls:default-identity-asserterType">
<sec:active-type>AuthenticatedUser</sec:active-type>
</sec:authentication-provider>
<sec:role-mapper xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-role-mapperType"></sec:role-mapper>
<sec:authorizer xmlns:xac="http://xmlns.oracle.com/weblogic/security/xacml" xsi:type="xac:xacml-authorizerType"></sec:authorizer>
<sec:adjudicator xsi:type="wls:default-adjudicatorType"></sec:adjudicator>
<sec:credential-mapper xsi:type="wls:default-credential-mapperType"></sec:credential-mapper>
<sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"></sec:cert-path-provider>
<sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
<sec:name>myrealm</sec:name>
<sec:password-validator xmlns:pas="http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator" xsi:type="pas:system-password-validatorType">
<sec:name>SystemPasswordValidator</sec:name>
<pas:min-password-length>8</pas:min-password-length>
<pas:min-numeric-or-special-characters>1</pas:min-numeric-or-special-characters>
</sec:password-validator>
</realm>
<default-realm>myrealm</default-realm>
<credential-encrypted>{AES}xxxxx</credential-encrypted>
<node-manager-username>wlxxxx</node-manager-username>
<node-manager-password-encrypted>{AES}xxxxx</node-manager-password-encrypted>
</security-configuration>
<server>
<name>AdminServer</name>
<machine>localhost</machine>
<listen-address></listen-address>
</server>
<server>
<name>Test01</name>
<machine>localhost</machine>
<listen-port>9001</listen-port>
<listen-address></listen-address>
<server-start>
<java-vendor>Sun</java-vendor>
</server-start>
</server>
<server>
<name>Test02</name>
<machine>Machine2</machine>
<listen-port>9001</listen-port>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test03</name>
<machine>localhost</machine>
<listen-port>9002</listen-port>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test04</name>
<machine>Machine2</machine>
<listen-port>9002</listen-port>
<listen-address></listen-address>
<server-start>
<java-vendor>Sun</java-vendor>
<class-path>E:\Oracle\Middleware\user_projects\domains\TEST\properties\Test</class-path>
<arguments>-Xms128m -Xmx512m -XX:MaxPermSize=256m</arguments>
</server-start>
</server>
<server>
<name>Test_ES01</name>
<machine>localhost</machine>
<listen-port>9003</listen-port>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test_ES02</name>
<machine>Machine2</machine>
<listen-port>9003</listen-port>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test_ES03</name>
<machine>localhost</machine>
<listen-port>9004</listen-port>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test_ES04</name>
<machine>Machine2</machine>
<listen-port>9004</listen-port>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test_HK01</name>
<machine>localhost</machine>
<listen-port>9005</listen-port>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test_HK02</name>
<machine>Machine2</machine>
<listen-port>9005</listen-port>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test_HK03</name>
<machine>localhost</machine>
<listen-port>9006</listen-port>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test_HK04</name>
<machine>Machine2</machine>
<listen-port>9006</listen-port>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
<server-start></server-start>
</server>
<server>
<name>Test05</name>
<machine>localhost</machine>
<listen-port>9007</listen-port>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
</server>
<server>
<name>Test07</name>
<machine>localhost</machine>
<listen-port>9008</listen-port>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
</server>
<server>
<name>Test06</name>
<machine>Machine2</machine>
<listen-port>9007</listen-port>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
<server-start>
<java-vendor>Sun</java-vendor>
<class-path>E:\Oracle\Middleware\user_projects\domains\TEST\properties\Test</class-path>
<arguments>-Xms128m -Xmx512m -XX:MaxPermSize=256m</arguments>
</server-start>
</server>
<server>
<name>Test08</name>
<machine>Machine2</machine>
<listen-port>9008</listen-port>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
<server-start>
<java-vendor>Sun</java-vendor>
<class-path>E:\Oracle\Middleware\user_projects\domains\TEST\properties\Test</class-path>
<arguments>-Xms128m -Xmx512m -XX:MaxPermSize=256m</arguments>
</server-start>
</server>
<server>
<name>Test_IN01</name>
<jms-thread-pool-size>0</jms-thread-pool-size>
<machine>localhost</machine>
<listen-port>9003</listen-port>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<server-debug>
<debug-scope>
<name>default</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.application</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.classloader</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.cluster</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.connector</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.core</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.debug</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.default</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.deploy</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.descriptor</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.diagnostics</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.ejb</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.iiop</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.jdbc</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.jms</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.jpa</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.management</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.messaging</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.messagingbridge</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.protocol</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.sca</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.security</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.servlet</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.store</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.t3</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.transaction</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.work</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.workarea</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic.wtc</name>
<enabled>false</enabled>
</debug-scope>
</server-debug>
<listen-address></listen-address>
<xml-registry xsi:nil="true"></xml-registry>
<xml-entity-cache xsi:nil="true"></xml-entity-cache>
<default-file-store>
<synchronous-write-policy>Direct-Write</synchronous-write-policy>
</default-file-store>
</server>
<server>
<name>Test_IN02</name>
<jms-thread-pool-size>0</jms-thread-pool-size>
<machine>Machine2</machine>
<listen-port>9003</listen-port>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<server-debug>
<debug-scope>
<name>default</name>
<enabled>false</enabled>
</debug-scope>
<debug-scope>
<name>weblogic</name>
<enabled>false</enabled>
</debug-scope>
<debug-libraries>true</debug-libraries>
<class-finder>true</class-finder>
<classpath-servlet>true</classpath-servlet>
<class-loader>true</class-loader>
<debug-server-life-cycle>true</debug-server-life-cycle>
</server-debug>
<listen-address></listen-address>
<xml-registry xsi:nil="true"></xml-registry>
<xml-entity-cache xsi:nil="true"></xml-entity-cache>
<default-file-store>
<synchronous-write-policy>Cache-Flush</synchronous-write-policy>
</default-file-store>
</server>
<server>
<name>Test_IN03</name>
<jms-thread-pool-size>0</jms-thread-pool-size>
<machine>localhost</machine>
<listen-port>9004</listen-port>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<listen-address></listen-address>
<xml-registry xsi:nil="true"></xml-registry>
<xml-entity-cache xsi:nil="true"></xml-entity-cache>
<default-file-store>
<synchronous-write-policy>Cache-Flush</synchronous-write-policy>
</default-file-store>
</server>
<server>
<name>Test_IN04</name>
<ssl>
<enabled>false</enabled>
</ssl>
<machine>Machine2</machine>
<listen-port>9004</listen-port>
<listen-port-enabled>true</listen-port-enabled>
<cluster xsi:nil="true"></cluster>
<web-server>
<web-server-log>
<number-of-files-limited>false</number-of-files-limited>
</web-server-log>
</web-server>
<java-compiler>javac</java-compiler>
<client-cert-proxy-enabled>false</client-cert-proxy-enabled>
<server-diagnostic-config>
<wldf-diagnostic-volume>Low</wldf-diagnostic-volume>
</server-diagnostic-config>
</server>
<embedded-ldap>
<name>TEST</name>
<credential-encrypted>{AES}xxxxx</credential-encrypted>
</embedded-ldap>
<configuration-version>10.3.4.0</configuration-version>
<app-deployment>
<name>Test_hkapp01</name>
<target>Test_HK01</target>
<module-type>war</module-type>
<source-path>applications\TestApp\Test_hkapp01</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>Test_hkrp01</name>
<target>Test_HK03</target>
<module-type>war</module-type>
<source-path>applications\TestApp\Test_hkrp01</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>Testapp05</name>
<target>Test05</target>
<module-type>war</module-type>
<source-path>applications\TestApp\Testapp05\test.war</source-path>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>testrp07</name>
<target>Test07/target>
<module-type>war</module-type>
<source-path>applications\TestApp\Testrp07\Testrp.war</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>nostage</staging-mode>
</app-deployment>
<app-deployment>
<name>Testrp08</name>
<target>Test08</target>
<module-type>war</module-type>
<source-path>applications\TestApp\Testrp08\Testrp.war</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>stage</staging-mode>
</app-deployment>
<app-deployment>
<name>Testapp06</name>
<target>Test06</target>
<module-type>war</module-type>
<source-path>applications\TestApp\Testapp06\Test.war</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>stage</staging-mode>
</app-deployment>
<app-deployment>
<name>Test_hkrp04</name>
<target>Test_HK04</target>
<module-type>war</module-type>
<source-path>applications\TestApp\Test_hkrp04</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>stage</staging-mode>
</app-deployment>
<app-deployment>
<name>Test_hkapp02</name>
<target>Test_HK02</target>
<module-type>war</module-type>
<source-path>applications\TestApp\Test_hkapp02</source-path>
<deployment-order>100</deployment-order>
<security-dd-model>DDOnly</security-dd-model>
<staging-mode>stage</staging-mode>
</app-deployment>
<machine>
<name>localhost</name>
<node-manager>
<name>localhost</name>
<nm-type>SSL</nm-type>
<listen-address>xxx-xxx-xxx-xxx</listen-address>
<listen-port>5556</listen-port>
<debug-enabled>false</debug-enabled>
</node-manager>
</machine>
<machine>
<name>Machine2</name>
<node-manager>
<nm-type>SSL</nm-type>
<listen-address>xxx-xxx-xxx-xxx</listen-address>
<listen-port>5556</listen-port>
<debug-enabled>false</debug-enabled>
</node-manager>
</machine>
<admin-server-name>AdminServer</admin-server-name>
<jdbc-system-resource>
<name>Test01app_DS</name>
<target>Test01</target>
<descriptor-file-name>jdbc/Test01app_DS-4659-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>Test03rp_DS</name>
<target>Test03</target>
<descriptor-file-name>jdbc/Test03rp_DS-3850-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>Test02app_DS</name>
<target>Test02</target>
<descriptor-file-name>jdbc/Test02app_DS-7531-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
<jdbc-system-resource>
<name>Test04rp_DS</name>
<target>Test04</target>
<descriptor-file-name>jdbc/Test04rp_DS-5676-jdbc.xml</descriptor-file-name>
</jdbc-system-resource>
</domain>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -
How to debugg a script when the Required out put is like Fax or email
Hi this is Durga Prasad i have small doubt in scripts can any one clarify that one plz normally we will do that one with activating debugger but when a special requirement is like fax or e mail how we will do that one
"how to debugg a script when the Required out put is like Fax or email"
Thanks in advance
Durga Prasad.Hi
DEBUG Smartform:
1) One way to debug smartform is to debug the Function Module of that smartforms.
If you want to debug particular smartform node that the solution would be,
insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
2) SFTRACE can be used for debugging SMARTFORMS.
Read More here.
http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
script
1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
When you debug Print program it is same as you debug any other ABAP program. While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.
As per ur question there is nothing new with script debugging,
it is same as normal report debugging...
SMARTFORMS DEBUGGING
For smartforms debugging you can do this.
1. Execute the smartform (execute button in SMARTFORMS transaction)
2. Take the generated function module and display it in SE80.
3.Find the smartforms Elements (text elements, windows, code lines, loops) in this and set Soft break points.
Correct name is SMARTFORM_TRACE. You have lots of options for adequate analysis
Tcode - SFTRACE
Re: How to Debug a Smartform
Debug of smartform and sapscript.
Debugging SmartForms
Debugging of a subroutine pool.
SCRIPT
There are 2 separate kinds of debugging available when you try to debug scripts.
1. Debugging the print program : This is the normal debugging we do for our report programs.
2. Debugging the script itself : You Can debug a SAP Script by activating debugger in two ways:
a .In SE71->Menu->Utilities->Activate Debugger, then debugger will be get activated and when your print program is executing Script Debugger will be in active and you can proceed with your debugging.
b. Goto se38-> RSTXDBUG ->Execute this same as going thru in se71-> Menu, now debugger will be activated.
refer to the link below
http://www.howforge.com/how-to-debugging-sapscript-form
Look at the BLOG here, it is well explained
/people/sudheer.junnuthula2/blog/2007/01/09/script-debugging
Regards
Anji -
Weblogic.wsee.tools.anttasks.ClientGenTask
Hi All
I want to create an application client to my web service. and that needs the artifact classes.. In Ant file, I got an error stating that weblogic.wsee.tools.anttasks.ClientGenTask not found???
Any help please
Thank you for your time and consideration
JotnartaHi Jotnarta,
In your ANT Script please add the following Lines:
<font color=maroon>
<property name="wl.home" value="/home/jaysharma/WLS10.3/wlserver_10.0" />
<path id=”wlappc.classpath”>
<fileset dir=”${wl.home}/server/lib”>
<include name=”*.jar”/>
</fileset>
</path>
<taskdef name=”clientgen” classpathref=”wlappc.classpath” classname=”weblogic.wsee.tools.anttasks.ClientGenTask”/>
</font>
Thanks
Jay SenSharma -
Unable to capture the adf table column sort icons using open script tool
Hi All,
I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.Hi keerthi,
1. I have pasted the code for the first issue
web
.button(
122,
"/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
.click();
adf
.table(
"/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
.columnSort("Ascending", "Name" );
} -
Urgent help required: Query regarding LC Variables
Hi All
Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
export LC_COLLATE=en_US.ISO8859-1
export LC_MESSAGES=C
export LC_MONETARY=en_US.ISO8859-1
export LC_MONETARY=en_US.ISO8859-1
export HZ=100
export LC_CTYPE=en_US.ISO8859-1
export LANG=en_US.UTF-8
Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
1. Can someone please tell me, what each of these variable mean and how these values make a difference.
2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
Appreciate your help in this regard.
Thanks
Amit
Hi All
A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
Request everyone to please give their inputs as it's a bit urgent.
Thanks for all the help in advance.
Thanks
Amit
Some help required please...
Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
Edited by: amitsinhaengg on Jul 22, 2009 2:06 AMLC_CTYPE
Controls the behavior of character handling functions.
LC_TIME
Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
LC_MONETARY
Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
LC_NUMERIC
Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
LC_COLLATE
Specifies a collation order and regular expression definition for the locale.
LC_MESSAGES
Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
You can use command
# locale -k LC_CTYPE
to see more detail about each type. -
Urgent - How to Run a FM using CATT script tool,
Hi All,
How to Run a FM using CATT script tool,
Thanks in advance,
KSRchoose type as "Function module test" (if you are in release less than 6.4 abap) after entering into t.code SCAT.
Pl. refer to this documentation for creating function module test cases
<a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf">http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCATTOL/CACATTOL.pdf</a>
reward if it helps
Krishna -
Help required network configuration - Gateway route settings get erased on reboot.
Oracle Linux 7
Linux myhostname 3.8.13-35.3.1.el7uek.x86_64 #2 SMP Wed Jun 25 15:27:43 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
#cat /etc/sysconfig/network-scripts/ifcfg-eno16780032
TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="eno16780032"
UUID="2d1107e3-8bd9-49b1-b726-701c56dc368b"
ONBOOT="yes"
IPADDR0="34.36.140.86"
PREFIX0="22"
GATEWAY0="34.36.143.254"
DNS1="34.36.132.1"
DNS2="34.34.132.1"
DOMAIN="corp.halliburton.com"
HWADDR="00:50:56:AC:3F:F9"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
NM_CONTROLLED="no"
#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 34.36.143.254 0.0.0.0 UG 0 0 0 eno16780032
34.36.140.0 0.0.0.0 255.255.252.0 U 0 0 0 eno16780032
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eno16780032
When I reboot the machine, the first line in route table gets erased, I then run:
#route add default gw 34.36.143.254
After which network works fine.
Help required. I don't want to use NetworkManager.The following might be useful:
https://access.redhat.com/solutions/783533
"When transitioning from NetworkManager to using the network initscript, the default gateway parameter in the interface's ifcfg file will be depicted as 'GATEWAY0'. In order for the ifcfg file to be compatible with the network initscript, this parameter must be renamed to 'GATEWAY'. This limitation will be addressed in an upcoming release of RHEL7."
NetworkManager is now the default mechanism for RHEL 7. Personally I don't quite understand this, because as far as I can gather it is a program for systems to automatically detect and connect to known networks. I think such functionality can be useful when switching between wireless and wired networks, but for a server platform, I wonder.
Maybe you are looking for
-
Installation problem for Oracle 9.2 on Win XP pro
This is what I have done so far: 1. Launch Setup 2. Specify the Product Key and Home Directory 3. Select Database Option 4. Select Personal Edition (I am a student) 5. Click Install The Installer starts and I see a progress bar on top. It goes till 3
-
Performance Issues with Location Services
I am having performance lag issues with most apps with location services turned on. This is a new issue that has crept up after update to iOS 4.2.1. Apps get slow and upon exiting the location service is still active as indicated by arrow icon in top
-
Has anyone had the "genius'| at an Apple store give them wrong info?? I had an old model Iphone 3G that was working fine until the other day the screen turned completely black and no matter what button I tried to push it just stayed black. If a call
-
Hi all, I try to upgrade the SAP for one of my client from SAP 2005b Pl 42 to SAP 2007b PL 10. The update process in the server is over and it is fine. But for my Client machines the upgrade is running fine but after upgrade i will not see any databa
-
Options for exporting a project in Adobe premiere Pro CS5.5
When Exporting a project from Adobe premiere Pro CS5.5 I use the format of Windows Media file and Preset HDTV 1080P 30 HighQuality. At the bottom of the window there are some options that say "Use Maximum Render Quality" And "Use Frame Blending". I u