WebLogic.WLST question
I am trying to create a python script to use with WLST to deploy applications into our BEA environment without having to go thru the console. I am not a python developer but I tried to take a stab at it. Here is what I came up with.
# Prompt user for input
name = raw_input("Enter username:")
password = raw_input("Enter password:")
protocol = raw_input("Enter URL(ex.t3://adminAddress:adminPort)?")
app = raw_input("Archive: ")
appPath = "/beadev/wls920/applications/" + app
Server = raw_input("Managed/Cluster: ")
# Output user input to stdout
print name
print password
print protocol
print app[:-4]
print appPath
print Server
# Format parameters to the deploy() method
# based on user input
cmd = "deploy(" +"\"" + app[:-4] + "\"" + "," "\"" \
+ appPath + "\"" + "," "\"" + Server \
+ "\"" + "," + "securityModel=" \
+ "\"DDOnly\"" + "," + "block=" + "\"true\"" ")"
# Output parameters to stdout
print "Command sent to deploy(): " + cmd
# Define method
def deploy_myApp(cmd):
try:
#deploy(app,appPath , Server ,securityModel="DDOnly",block="true")
#deploy("Operations","/beadev/wls920/applications/Operations.war","dstDevMS3",securityModel="DDOnly",block="true")
#deploy(cmd)
cmd
print "Command inside the deploy_myApp() function: " + cmd
except:
print "Could not deploy application ", app
dumpStack()
# Connect to the administration server
connect(name, password, protocol)
# Open and start edit session
edit()
startEdit()
# Call method
deploy_myApp(cmd)
# Save and activate changes
save()
activate(block="true")
# End edit session and exit WLST.
stopEdit()
exit()
I am trying to make the script as generic a possible. The problem I am facing is that the deploy method inside the deploy_myApp() function does not work or to be more accurate, it doesn't look like it even runs. The rest of the scripts seems to run fine. Anyone have any ideas? My initial thought was that the deploy() method does not like variables passed thru it but that seemed odd since the connect() method had no problems with it. Any help would be greatly appreciated.
Edited by wellscx at 01/24/2008 11:58 AM
I was able to fix this in the below method
# Define method
def deploy_myApp(cmd):
try:
#deploy(app,appPath , Server ,securityModel="DDOnly",block="true")
#deploy("Operations","/beadev/wls920/applications/Operations.war","dstDevMS3",securityModel="DDOnly",block="true")
#deploy(cmd)
cmd # Old call
print "Command inside the deploy_myApp() function: " + cmd
exec(cmd) # New call
except:
print "Could not deploy application ", app
dumpStack()
I had to use the exec() method to actually run the contents of the "cmd" variable.
Similar Messages
-
Could not find or load main class weblogic.WLST
Hi,
I am trying to run a python script to create JMS components for use with iHub and i got the following error message when i try to run the script:
C:\ihub\bin>java weblogic.WLST omipmihubwlscript.py weblogicjms Welcome1 http://<servername>:7111 OMIPMIHUBServer
Error: Could not find or load main class weblogic.WLST
I have run the setWLSEnv.cmd file and got the following output
C:\oracle\Middleware2\wlserver_10.3\server\bin>setWLSEnv.cmd
CLASSPATH="C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_p
atch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~2\mod
ules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~2\modu
les\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\sys_man
ifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.
jar;C:\oracle\MIDDLE~2\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1/lib/ant-all.j
ar;C:\oracle\MIDDLE~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp37
1\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSER
V~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~2\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\module
s\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;"
PATH="C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDD
LE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\oracle\MIDDLE~2\patch_wls1036\profiles\defa
ult\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\module
s\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\
default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bi
n;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\app\paul.currie\product\11.2.0\client_2\bin;C:\app\paul.currie\product\11.2.0\dbhome_3\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Wind
ows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_13\jre\bin;;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x
64\oci920_8;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\oci920_8;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\oci920_8"
Your environment has been set.
I am totally stuck at this point so any help would be much appreciated.
Cheers
PaulI have just tested both on a Windows and a Linux server and it works fine.
D:\oracle\product\Middleware\wlserver_10.3\server\bin>setWLSEnv.cmd
CLASSPATH=D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\oracle\
product\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\oracle\product\JAVA_C~1\li
b\tools.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\serve
r\lib\weblogic.jar;D:\oracle\product\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;D:\oracle\product\MI
DDLE~1\WLSERV~1.3\server\lib\webservices.jar;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;D:\oracle\pro
duct\MIDDLE~1\modules\NETSFA~2.0_1/lib/ant-contrib.jar;D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\sys_man
ifest_classpath\weblogic_patch.jar;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\web
logic_patch.jar;D:\oracle\product\JAVA_C~1\lib\tools.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.ja
r;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;D:\oracle\product\MIDDLE~1\modules\features\weblogic.ser
ver.modules_10.3.5.0.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;D:\oracle\product\MIDDLE~1\mod
ules\ORGAPA~1.1/lib/ant-all.jar;D:\oracle\product\MIDDLE~1\modules\NETSFA~2.0_1/lib/ant-contrib.jar;
PATH=D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\native;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles
\default\native;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server
\bin;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\oracle\product\JAVA_C~1\jre\bin;D:\oracle\product\JAVA_C~1\bin
;D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\native;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles\def
ault\native;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\bin
;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\oracle\product\JAVA_C~1\jre\bin;D:\oracle\product\JAVA_C~1\bin;C:\
Program Files\Legato\nsr\bin;C:\PROGRA~2\CA\SHARED~1\ETPKI\lib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C
:\Windows\System32\WindowsPowerShell\v1.0\;D:\oracle\Java\current\jre\bin;C:\PROGRA~2\CA\IDENTI~1\PROVIS~1\BIN;C:\Progra
m Files (x86)\CA\SharedComponents\CAM\bin;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8;D:\oracle
\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8
Your environment has been set.
D:\oracle\product\Middleware\wlserver_10.3\server\bin>java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> -
Where Is weblogic.WLST Installed? (Version 10.3)
I've installed Weblogic Server 10.3 (Oracle WebLogic Server 11gR1 (10.3.1) - Package Installer). I want to use weblogic.WLST but it does not seem like it got installed? What am I missing.
Thank youThis was helpful, thank you.
I read through the cited example however I was unable to find a 'weblogic.WLST' anywhere under $WL_HOME. Then I stumbled across a $WL_HOME/wlserver_10.3/common/bin/*wlst.sh*. I found that I can invoke that script and be placed at a WLST prompt. I was then able to start the node manager and Admin Server using WLST.
I wonder what happened to 'weblogic.WLST', maybe this wlst.sh is it's replacement in version 10.3?
In the end, I had problems starting a Managed Server, and I've been reading through the doc a good part of the day so I think I'm going to start a new thread on that problem.
Thank you! -
Error while running command: "java weblogic.WLST"
I am using Web Logic Server Version: 10.3.3.0.
I have created a script file.when I gave command “java weblogic.WLST”, I get below error:
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.WLS at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: weblogic.WLST not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
I have created a boot.properties file in the location where my domain is, but that didn’t help.
Contents of boot.properties file:
Password=weblogic1
Username=weblogicHello User,
I am a novice weblogic admin.
I am trying to enroll domain (created before installation of Node Manager) to Node Manager, in the process I got to use:
user_projects/domains/test_domain/bin$ ./setDomainEnv.sh
java weblogic.WLST
but when I use so I am getting the following err
"Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/WLST
Caused by: java.lang.ClassNotFoundException: weblogic.WLST
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: weblogic.WLST. Program will exit. "
I did ./setWLSEnv.sh, and I got my environment has been set, after that I used java weblogic.WLST still ended up with the above error.
Please help me .
Thanks in advance. -
wlst vs java classname="weblogic.WLST" which one is preferred?
Hi,
I have recently started working with weblogic 10gR3 and came across examples to invoke wlst scripts from ANT.
Since there are two approaches i would like to know the difference and which one is preferred. I have so far seen more examples of <java classname="weblogic.WLST"> then <wlst>. In my personal experience i find it more convenient to invoke python script using weblogic.WLST option.
any comments?
thanks
salmanHello Lance,
I will try to reproduce it on my side and see if I can reproduce, until then use the shutdown() method on the server runtime MBean as workaround.
Thanks,
-satya -
WebLogic WLST Install question cgDataSource.
I'm trying to script out a WebLogic 10.3g install on a Windows 2003 Server using JRockit and Oracle 10.3g as the cgDataSource and cgDataSource-nonXA. All of the samples for a silent install using a silent.xml parameter file don't allow you to change the Java SDK being used. When I get into the wlst.py script files I can't see any way to tell cgDataSource or cg..XA to point to Oracle until after the install has been completed.
So, what is the best practice? Do I install using the defaults and then manually update to use the latest version of JRockit? After that, do I manually or script the cgDataSource from PointBase to use Oracle? I'm trying to make this a click once type of install.
Thanks.All of the samples for a silent install using a silent.xml parameter file don't allow you to change the Java SDK being usedhttp://download.oracle.com/docs/cd/E15051_01/common/docs103/install/scripts/silent.xml
<!--
<data-value name="LOCAL_JVMS" value="D:\jrockit_160_05|D:\jdk160_05"/>
--> -
WebLogic - WLST Server start question
If I have an Admin Server and nodemanager on ServerA and a nodemanager on ServerB with a full WLS install can I connect to the nodemanager on ServerB from ServerA and stop and start managed servers via WLST? Is that possible or do I need to be on the remote box to do it?
Hi,
You can connect to the nodemanager on ServerB from ServerA and stop and start managed servers via WLST / Admin-Console however in both the cases the node-manager has to up and running and make sure you have done Enrolled ServerB's node-manger to ServerA's node-manger.
To get step-by-step instructions you can have a look at the following link:
http://weblogic-wonders.com/weblogic/2010/04/28/weblogic-clustering-in-remote-boxes
Hope above information helped you.
Regards,
Ravish Mody -
JSP Weblogic server question.
Hi,
I'm new with Weblogic, and I have running the server already. I'm able to run servlets
through the browser, however I want to start working with JSP. I created a sample
jsp file and when trying to launch it through the browser I get a 404 message error.
So my question is how can I make weblogic to act as a jsp server as well?
Thank you for any help.
A.R.
Copy your JSP file into the
config/mydomain/applications/
DefaultWebApp directory
In a web browser, request the JSP file using the following URL:
http://localhost:7001/sampleJsp.jsp
"A.R." wrote:
> Hi,
> I'm new with Weblogic, and I have running the server already. I'm able to run servlets
> through the browser, however I want to start working with JSP. I created a sample
> jsp file and when trying to launch it through the browser I get a 404 message error.
> So my question is how can I make weblogic to act as a jsp server as well?
>
> Thank you for any help.
> A.R.
-
Workshop Weblogic config questions
I'm using Oracle Workshop for WebLogic 10.3 and I'm hoping someone can answer some setup/config questions.
When I double click on the server (WebLogic Server v10.3 at localhost) a window opens with various settings that manage how workshop and weblogic work together.
Under "Startup & Deployment" I have the following turned on:
Launch WebLogic server in Eclipse console
Always start WebLogic Server in debug mode
Ignore project compilation errors when publishing (I have this turned on because of errors in a portal project, the errors aren't inmportant, and don't prevent the project form running)
Run stand-alone web module directly from workspace
So, first question, with these settings I was able to quickly switch to debug mode, with out restarting the server, now the server restarts whenever I turn debugging on. What have I done that has stopped this working correctly? How can I get it to start debugging without a full restart?
next question, what happens if I turn on "Start WebLogic Server in Express Mode"? As far as I can tell nothing happens.
Lastly, under "Automatic Publishing" I have it set to "Never publish automatically", if I choose another setting workshop essentially freezes because it's constantly publishing. So whenever I make a change, even in a jsp, I need to remove the project, then re-add it to see my changes in the browser. This is frustrating, not just because it takes 8 or 9 minutes (8 or 9 MINUTES!!!), but because the project doesn't run properly until it is redeployed. You'd think that if it needs to be re-deployed, then none of my changes should matter on the server until it is re-deployed.
So, my question is, Is there any way to get this re-deployment to happen faster?
Thanks for any and all helpWell, in my experience performance is not bad as you experienced. Is it locally connected server or remotely connected server? If it is a remote server, network issue could cause this latency issue.
Is performance better if you run the server without enabling debug mode? If yes, probably you can also review any break points set.
You could also try out the following options
1) Run workshop with -clean option, by opening command prompt and navigating to workshop_home\'workshop.exe -clean'
2) Untick the option 'Launch WebLogic server in Eclipse console' and start server which would enable server to start on command prompt
3) This would enable you to take multiple thread dumps (cutl +Break) on the server console output, while performance is very bad, to see where threads are halt. -
Exam weblogic 12c questions test
What will be your answer to:
When your WebLogic Server solution needs to be scaled out with additional capacity and you
don’t want to add additional hardware, which three techniques should you us?
A. Assign more than one managed server to a physical hardware that allows better CPU
utilization.
B. Assign more than one application to one managed server to better utilize threads within a single
JVM process.
C. Assign the same application to more than one managed server to load balance requests
between servers.
D. Assign the same heap size to the managed server across the cluster for easier control of
memory footprint
E. Create a virtualized environment with hypervisor for an easier solution
When your WebLogic Server solution needs to be scaled out with additional capacity and you
don’t want to add additional hardware, which three techniques should you us?
A. Assign more than one managed server to a physical hardware that allows better CPU
utilization.
B. Assign more than one application to one managed server to better utilize threads within a single
JVM process.
C. Assign the same application to more than one managed server to load balance requests
between servers.
D. Assign the same heap size to the managed server across the cluster for easier control of
memory footprint
E. Create a virtualized environment with hypervisor for an easier solution
A common approach to solve application performance issues is to add more hardware. Which two reasons describe why this alone does not always solve performance problems?
A. There may be a bottleneck in the application that additional hardware would not solve.
B. Adding more hardware is costly and time consuming.
C. Adding hardware at the application layer may place additional load on an already overloaded
database, network appliance, or storage system.
D. Adding more hardware may introduce new configuration requirements that need to be tested.
Thanks
MaxiHello user7776, I am also looking for answers to the above Questions. Can you please send me the correct answers if you got the answers already? I really appreciate your response. Thank you sir.
-VCS -
When I run the WLST script .sh script to set the env as follows why can't I see the updated path when I do echo?
[linbox2 bin]$ ./setWLSEnv.sh CLASSPATH=/directory/ols_wls/patch_wlss1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/directory/ols_wls/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/directory/ols_wls/patch_oepe1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/directory/ols_wls/patch_ocm1031/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/directory/ols_wls/jrockit_160_14_R27.6.5-32/lib/tools.jar:/directory/ols_wls/utils/config/10.3/config-launch.jar:/directory/ols_wls/wlserver_10.3/server/lib/weblogic_sp.jar:/directory/ols_wls/wlserver_10.3/server/lib/weblogic.jar:/directory/ols_wls/modules/features/weblogic.server.modules_10.3.2.0.jar:/directory/ols_wls/wlserver_10.3/server/lib/webservices.jar:/directory/ols_wls/modules/org.apache.ant_1.7.0/lib/ant-all.jar:/directory/ols_wls/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/directory/ols_wls/wlserver_10.3/server/bin:/directory/ols_wls/modules/org.apache.ant_1.7.0/bin:/directory/ols_wls/jrockit_160_14_R27.6.5-32/jre/bin:/directory/ols_wls/jrockit_160_14_R27.6.5-32/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_11/bin/bin:/home/oracle/bin:/directory/wls_olwcs/jdk160_14_R27.6.5-32/bin:/directory/ccanywhere81/bin:/directory/oracle/oracle/product/10.2.0/client_1/bin
Your environment has been set. [linbox2 bin]$ export CLASSPATH [linbox2 bin]$ export PATH [linbox2 bin]$ echo $PATH /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/java/j2sdk1.4.2_11/bin/bin:/home/oracle/bin:/directory/wls_olwcs/jdk160_14_R27.6.5-32/bin:/directory/ccanywhere81/bin:/directory/oracle/oracle/product/10.2.0/client_1/bin [linbox2 bin]$
Also when I do java -version it doe snot show me weblogic java version but it shows this
$ java -version
java version "1.4.2"
gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10.0.1)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.Hi,
Open a Shell prompt then please follow the Steps...
Step1). echo $CLASSPATH ... Just to see what is the current CLASSPATH value.
Step2). run the "setWLSEnv.sh" by adding two DOTs separated by a single space .....before the actual script like following : (use 'cd' command to move inside the <BEA_HOME>/wlserver_10.3/server/bin) then run the following command....
. ./setWLSEnv.sh
<font color=red>Note: the first DOT represents that set the Environment in the current Shell, AND the second ./ represents execute the script from the current directory.</font><BR>
Step3). Verify that the Classpath is Set properly or not:
echo $CLASSPATH
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic (WebLogic Wonders Are Here) -
About weblogic license questions before weblogic10.3 version
Someone asked me about the license type'question earlier,and the following is a license.bea details.
<license
component="Cluster"
cpus="unvalued"
expiration="never"
ip="any"
licensee="Customer"
serial="454493271161-2642471307168"
type="RTK"/type="SDK"
units="unlimited"
signature="MC0CFDfPUvOf1UEyeQqN9StdR73a6SUNAhUAlV6dn5xy2/30omfdMfFQbIoe9Qk="
/>
Q1:I know most of them except license type's parameter value.what's meaning of "RTK" & "SDK" ?
Q2:what's meaning of signature ?
Q3:from weblogic10.3,there is no need to set a license.bea file in your BEA_HOME,and how customer be authorized to use ?
Who can tell me ?
Thank you !Weblogic Licensing <a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free at Togotutor)
Q1:I know most of them except license type's parameter value.what's meaning of "RTK" & "SDK" ?
Not sure about it
Q2:what's meaning of signature ?
Signature is the like a security key encrypted per license
Q3:from weblogic10.3,there is no need to set a license.bea file in your BEA_HOME,and how customer be authorized to use ?
using registry.xml
Thanks
Togotutor
<b><a class="jive-link-external" href="http://www.togotutor.com">http://www.togotutor.com</a> (Learn Programming and Administration for Free)</b>
Edited by: togotutor on Aug 12, 2010 3:19 PM -
Estimate ADF web app use size in Weblogic - quick question
Hi
1- Is there a good way to estimate or get a better accurate measurement of the amount of memory required/used by a running ADF app within Weblogic Server ?
Eg How much memory footprint does a deployed ADF app uses (not including those apps that comes with weblogic installs in the deployment section of WLS UI) ?
2- Because we have ADF as a web app, is there a usually a big increase in memory usages of ADF web app when more people are logged in ?
Any memory tool as a quick way to get the memory sizes ?
ThanksAFAIK,You need to first calculate the live data size for your application with the help of the GC logs to find out the ideal memory for your app to run :)
You can enable the GC logs -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:<Filename> to find out the live data size for your application
Tools to monitor the applications:
JConsole/VisualVM/JRMC
http://docs.oracle.com/javase/6/docs/technotes/guides/visualvm/index.html -
Application Logging in Standalone weblogic - quick questions
Hi
In JDeveloper, we could write our application logging to logs for debugging and viewable from JDeveloper.
When we deploy to Standalone weblogic server, we cant find our logging.
Of the 3 loggers (Msg Catalog, nonCatalog, Commons log API),
Which logging mechanism is the best practice used logging for development environment ? Does it print to AdminServer.log ? If not, how can we accomplish that printing app log to AdminServer.log ?
Which logging mechanism is the best practice used logging for production environment ? Does it print to AdminServer.log ? If not, how can we accomplish that printing app log to AdminServer.log ?
Thankshi,
people commonly Log4J for their logging,Like Commons Logging, SLF4J, or the default Java Logging API. But if you're working with Oracle's Application Development Framework, there is another option as well: ADF Logging.
ADF Logging is a logging mechanism, embedded in the ADF framework. It wraps the Java Logging API, but throws in a few extra methods and some JDeveloper and (Weblogic) Enterprise Manager features.
the following one demo video from oracle site its very useful.
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/debug_part1/debug_part1.html
regards
siva -
Weblogic WLST for starting weblogic server
I have created a domain with a single server running Admin Server, SOA and BAM server in the same port.
I would like to start this Server from node manager.
I have started ii with the command nmStart(...), within WLST, I can connect to the ADmin server using connect() command.
But I cannot access the url.
If I start the AdminServer by using startWeblogic.sh then the URL works.
Has anybody tried it?Hi,
Try this...
[Starting Admin and Managed Servers using Node Manager and WLST | http://neeraj-soa-tips.blogspot.com/2010/06/starting-admin-and-managed-servers.html ]
Regards,
Neeraj Sehgal
Maybe you are looking for
-
Last night as I was setting up the pin I got distracted and entered the wrong one, now I can't access my phone as I don't know what I entered. Is there anyway around this or do I have to wipe my phone and sign in with my Apple ID and restore from icl
-
After updating the latest on my MacBook OS X Version 10.6.8 I started experiencing several issues. iTunes will not open and continues to leave an error message on the screen. This is happening repeatedly for about 2 days. The error message looks like
-
Does anyone know how to get a flash projector to span or stretch across two monitors in full screen mode? I have set the stage dimensions to 2356 pixels in width to appear on both my monitors. When I run the project in full screen mode (no window ui)
-
Searching Emails after transferring to new MacBook
I recently purchased a new MacBook Pro and transferred my Home folder from my old PowerBook to the MacBook using the Setup utility that launched when I first powered up the MacBook. When I search for archived email I've sent in my Sent folder, Mail o
-
Message-Objekt in BSP-Applications
Hello experts, system messages (sm02) are not shown in WebTemplates if we access them via a customized variable entry screen. If we access WebTemplates directly system messages are shown! Are there any parameters not passed from entry screen to WebTe