Admin console VS Startup Script
Hi!
I'm very confused about this subject. I understand that Admin console uses Node Manager to start/stop managed server, but i dont't understand why using Admin Console the Managed Server is started with JRockit and via startup script is started with Sun JDK.
Thanks a lot
Best regards
Hi,
When starting the managed servers from the admin console, you are indeed using the Node Manager. But in this scenario, the NM is using the properties defined in the startup properties for each of the managed servers, not the properties defined in the startup scripts. If you want Node Manager to use the startup scripts when starting the managed servers, you must change the value of the "StartScriptEnabled" parameter to "true" in the /wlserver/common/nodemanager/nodemanager.properties file.
I hope this helps.
Regards!
Edited by: Radu Dobrinescu on Dec 14, 2010 1:23 AM
Similar Messages
-
Initiating batch scripts from Maxl Script Editor in Admin Console??
Guys,
Is it possible to initiate batch scripts from Maxl script editor in Admin Console.
I dont want to automate the scripts as my data loading process can happen at any time.
Thanks in advance
AHi A,
I'm not sure what you're asking? Do you want to run a batch of Maxl scripts, or a batch file, or a single Maxl Script? Why do you choose to use the Admin console to do this? Could you run what you're trying to run in batch from the command line?
Executing MaxL and MDX Scripts
To execute a MaxL script or an MDX script:
Open or create the script.
From the server drop-down list on the toolbar, select the Analytic Server to execute the script against.
The drop-down list contains only Analytic Servers that are displayed in your Enterprise View. For more information about connections, see Connecting to Analytic Servers in MaxL and MDX Script Editors.
Specify how errors should be handled during execution. See Setting MaxL and MDX Execution Options.
Specify how you want results to be displayed in the Results tab. See Viewing MaxL and MDX Results.
If the script contains variables, specify how undefined variables are resolved during execution. See Resolving Undefined Variables.
To execute the entire script, right-click and select Execute from the pop-up menu.
To execute only part of the script, highlight the statement or statements that you want to execute, right-click, and select Execute from the pop-up menu.
The script executes against the specified Analytic Server, and the results are displayed in the Results panel.Regards,
Robb Salzmann -
Bypassing startup script in .cshrc.user file for console login
Hi,
I'm calling a startup script in my .cshrc.user file. How do I bypass the startup script if it is a console login. Other cases like telnet, rlogin or opening a new terminal should go through the startup script.
Thanks,
RamkumarShort note; instead of ..
echo `tty` >> testfile
you could just do..
tty >> testfile
.. since the "tty" command sends its output to STDOUT, same as "echo", and >> takes the STDOUT and puts it in a file.
Anyway, what does "tty" give you if you run it on the console?
//Magnus -
In Admin Console We are unable to start Managed Server.
Hi,
We are using Weblogic 10.3.1.0 version.
Totaly 4 Managed Severs
1 Admin Server
with Nodemanger.
In Admin Console When ever we going to Stop the Manged Servers.
1. Environment ----- > Servers ---- > Control ----------- > Mananged Server 1 -----------> Force shutdown
2. Then click refresh button ---- showing "FAILED_NOT_RESTARTABLE"
3. after that when ever we going to start the Managed Server in Admin console
First its Showing ----- Starting
and next its showing ----- FAILED_NOT_RESTARTABLE
4. its not coming to Running State.
In Logs
Domain log
-----------> <1273141345460> <BEA-000450> <Socket 8 internal data record unavailable (probable closure due idle timeout), event received 17>
####<06-May-2010 11:54:40 o'clock BST> <Alert> <WebLogicServer> <ukirt156> <twpserver1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1273143280738> <BEA-000396> <Server shutdown has been requested by weblogic>
####<06-May-2010 11:54:40 o'clock BST> <Notice> <WebLogicServer> <ukirt156> <twpserver1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1273143280771> <BEA-000365> <Server state changed to FORCE_SUSPENDING>
####<06-May-2010 11:54:40 o'clock BST> <Notice> <Cluster> <ukirt156> <twpserver1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1273143280844> <BEA-000163> <Stopping "async" replication service>
####<06-May-2010 11:54:41 o'clock BST> <Notice> <WebLogicServer> <ukirt156> <twpserver1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1273143281061> <BEA-000365> <Server state changed to ADMIN>
####<06-May-2010 11:54:41 o'clock BST> <Notice> <WebLogicServer> <ukirt156> <twpserver1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1273143281064> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
####<06-May-2010 11:54:41 o'clock BST> <Notice> <Server> <ukirt156> <twpserver1> <DynamicListenThread[Default]> <<WLS Kernel>> <> <> <1273143281113> <BEA-002607> <Channel "Default" listening on 172.21.149.168:7003 was shutdown.>
####<06-May-2010 11:56:30 o'clock BST> <Error> <NodeManager> <ukirt156> <AdminServer> <[ACTIVE] ExecuteThread: '45' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1273143390016> <BEA-300048> <Unable to start the server twpserver1 : Exception while starting server 'twpserver1': java.io.IOException: Server failed to start up. See server output log for more details.>
AdminServer log
<06-May-2010 11:56:30 o'clock BST> <Error> <NodeManager> <BEA-300048> <Unable to start the server twpserver1 : Exception while starting server 'twpserver1': java.io.IOException: Server failed to start up. See server output log for more details.>
<06-May-2010 11:57:33 o'clock BST> <Error> <NodeManager> <BEA-300048> <Unable to start the server twpserver1 : Exception while starting server 'twpserver1': java.io.IOException: Server failed to start up. See server output log for more details.>
<06-May-2010 12:07:02 o'clock BST> <Error> <NodeManager> <BEA-300048> <Unable to start the server twpserver1 : Exception while starting server 'twpserver1': java.io.IOException: Server failed to start up. See server output log for more details.>
ManagedServer Log
<06-May-2010 11:54:40 o'clock BST> <Alert> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by weblogic>
06-May-2010 11:54:41 org.quartz.core.QuartzScheduler shutdown
INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down.
06-May-2010 11:54:41 org.quartz.core.QuartzScheduler pause
INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused.
06-May-2010 11:54:41 org.quartz.core.QuartzScheduler shutdown
INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete.
<06-May-2010 11:54:54> <Debug> <NodeManager> <Waiting for the process to die: 19316>
<06-May-2010 11:54:54> <Info> <NodeManager> <Server was shut down normally>
<06-May-2010 11:54:54> <Debug> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
NodeManager Log
<06-May-2010 11:54:54> <Info> <twp_domain> <twpserver1> <Server was shut down normally>
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Boot identity properties saved to "/appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties">
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Startup configuration properties saved to "/appl/weblogic/scripts/servers/twpserver1/data/nodemanager/startup.properties">
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Rotated server output log to "/appl/weblogic/scripts/servers/twpserver1/logs/twpserver1.out00020">
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Server error log also redirected to server log>
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Starting WebLogic server with command line: /appl/weblogic/oracle/middleware/jrockit_160_05_R27.6.2-20/jre/bin/java -Dweblogic.Name=twpserver1 -Djava.security.policy=/appl/weblogic/oracle/middleware/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.management.server=http://ukirt156:7001 -Djava.library.path="/appl/weblogic/oracle/middleware/jrockit_160_05_R27.6.2-20/jre/lib/i386/jrockit:/appl/weblogic/oracle/middleware/jrockit_160_05_R27.6.2-20/jre/lib/i386:/appl/weblogic/oracle/middleware/jrockit_160_05_R27.6.2-20/jre/../lib/i386::/appl/nsm/CA/UnicenterNSM/lib:/appl/nsm/CA/SharedComponents/JRE/1.4.2_09/lib/i386/client:/appl/nsm/CA/SharedComponents/JRE/1.4.2_09/lib/i386:/appl/nsm/CA/SharedComponents/ccs/dia/dna/lib:/appl/nsm/CA/SharedComponents/ccs/dia/lib:/usr/lib:/opt/CA/CAlib:/appl/nsm/CA/SharedComponents/lib:/appl/nsm/CA/SharedComponents/Csam/SockAdapter/lib:/appl/weblogic/oracle/middleware/wlserver_10.3/server/native/linux/i686:/appl/weblogic/oracle/middleware/wlserver_10.3/server/native/linux/i686/oci920_8" -Djava.class.path=/data/share/package/twp/WEB-INF/lib/ojdbc14.jar:/appl/weblogic/oracle/middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/appl/weblogic/oracle/middleware/wlserver_10.3/server/lib/weblogic.jar -Dweblogic.system.BootIdentityFile=/appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xmanagement:port=7091,ssl=false,authenticate=false -Xms=1200m -Xmx=1200m -Xverbose:gc,gcpause -Dreflexis.scheduler=true -Dreflexis.server=twpserver1 -Djava.awt.headless=true -Dclient.encoding.override=UTF-8 -Doracle.jdbc.V8Compatible=true weblogic.Server >
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Working directory is "/appl/weblogic/scripts">
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Rotated server output log to "/appl/weblogic/scripts/servers/twpserver1/logs/twpserver1.out00021">
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Server error log also redirected to server log>
<06-May-2010 11:56:21> <Info> <twp_domain> <twpserver1> <Server output log file is "/appl/weblogic/scripts/servers/twpserver1/logs/twpserver1.out">
<06-May-2010 11:56:29> <Info> <twp_domain> <twpserver1> <Server failed during startup so will not be restarted>
<06-May-2010 11:56:29> <Warning> <Exception while starting server 'twpserver1': java.io.IOException: Server failed to start up. See server output log for more details.>
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:332)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:542)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:119)
at weblogic.nodemanager.server.Handler.run(Handler.java:66)
at java.lang.Thread.run(Thread.java:619)
Server logs
<06-May-2010 12:06:57> <Info> <NodeManager> <Server output log file is "/appl/weblogic/scripts/servers/twpserver1/logs/twpserver1.out">
[INFO ][memory ] GC mode: Garbage collection optimized for throughput, initial strategy: Generational Parallel Mark & Sweep
[INFO ][memory ] heap size: 1228800K, maximal heap size: 1228800K, nursery size: 614400K
[INFO ][memory ] <s>-<end>: GC <before>K-><after>K (<heap>K), <pause> ms
[INFO ][memory ] <s/start> - start time of collection (seconds since jvm start)
[INFO ][memory ] <end> - end time of collection (seconds since jvm start)
[INFO ][memory ] <before> - memory used by objects before collection (KB)
[INFO ][memory ] <after> - memory used by objects after collection (KB)
[INFO ][memory ] <heap> - size of heap after collection (KB)
[INFO ][memory ] <pause> - total sum of pauses during collection (milliseconds)
[INFO ][memory ] run with -Xverbose:gcpause to see individual pauses
[JRockit] Management server started on port 7091, ssl=false, authenticate=false.
<06-May-2010 12:06:59 o'clock BST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.2-20_o-108500-1.6.0_05-20090120-1115-linux-ia32 from BEA Systems, Inc.>
<06-May-2010 12:07:00 o'clock BST> <Critical> <Security> <BEA-090518> <Could not decrypt the username attribute value of {AES}xvFgPysVi5b89pYwaAppoqPXQ5wFVW13yoFhzhKmuQo= from the file /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties. If you have copied an encrypted attribute from boot.properties from another domain into /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties, change the encrypted attribute to its cleartext value then reboot the server. The attribute will be re-encrypted. Otherwise, change all encrypted attributes to their cleartext values, then reboot the server. All encryptable attributes will be re-encrypted. The decryption failed with the exception weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte..>
<06-May-2010 12:07:00 o'clock BST> <Critical> <Security> <BEA-090518> <Could not decrypt the password attribute value of {AES}WSsjiXk6ppStq4WFajxaXkqCwpcBwaMJni7vk/pqXvk= from the file /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties. If you have copied an encrypted attribute from boot.properties from another domain into /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties, change the encrypted attribute to its cleartext value then reboot the server. The attribute will be re-encrypted. Otherwise, change all encrypted attributes to their cleartext values, then reboot the server. All encryptable attributes will be re-encrypted. The decryption failed with the exception weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte..>
Enter username to boot WebLogic server:<06-May-2010 12:07:00 o'clock BST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.1.0 Thu Jun 11 00:26:56 EDT 2009 1227385 >
<06-May-2010 12:07:01 o'clock BST> <Info> <Management> <BEA-141223> <The server name twpserver1 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.>
<06-May-2010 12:07:01 o'clock BST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.management.ManagementException: [Management:141223]The server name twpserver1 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.
at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:149)
at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:41)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:749)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:488)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)
at weblogic.Server.main(Server.java:67)
>
<06-May-2010 12:07:01 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<06-May-2010 12:07:01 o'clock BST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<06-May-2010 12:07:01 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
<06-May-2010 12:07:02> <Debug> <NodeManager> <Waiting for the process to die: 19443>
<06-May-2010 12:07:02> <Info> <NodeManager> <Server failed during startup so will not be restarted>
<06-May-2010 12:07:02> <Debug> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
Note: if i start the manged servers through WLST scripts its working fine.
[twpuser@ukirt156 /appl/weblogic/scripts]$ java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> nmConnect('weblogic', 'w3bl0g1c', 'ukirt156', '5556', 'twp_domain', '/appl/weblogic/oracle/middleware/user_projects/domains/twp_domain', 'plain')
Connecting to Node Manager ...
Successfully Connected to Node Manager.
wls:/nm/twp_domain> nmStart('twpserver1')
Starting server twpserver1 ...
Successfully started server twpserver1 ...
Please provide the solution, how to solve this issue.
Thanks
SRKIn my question some content was strike.... now again i updated...pls see now...
Server logs
<06-May-2010 12:06:57> <Info> <NodeManager> <Server output log file is "/appl/weblogic/scripts/servers/twpserver1/logs/twpserver1.out">
[INFO ][memory ] GC mode: Garbage collection optimized for throughput, initial strategy: Generational Parallel Mark & Sweep
[INFO ][memory ] heap size: 1228800K, maximal heap size: 1228800K, nursery size: 614400K
[INFO ][memory ] <s>-<end>: GC <before>K-><after>K (<heap>K), <pause> ms
[INFO ][memory ] <s/start> - start time of collection (seconds since jvm start)
[INFO ][memory ] <end> - end time of collection (seconds since jvm start)
[INFO ][memory ] <before> - memory used by objects before collection (KB)
[INFO ][memory ] <after> - memory used by objects after collection (KB)
[INFO ][memory ] <heap> - size of heap after collection (KB)
[INFO ][memory ] <pause> - total sum of pauses during collection (milliseconds)
[INFO ][memory ] run with -Xverbose:gcpause to see individual pauses
[JRockit] Management server started on port 7091, ssl=false, authenticate=false.
<06-May-2010 12:06:59 o'clock BST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.2-20_o-108500-1.6.0_05-20090120-1115-linux-ia32 from BEA Systems, Inc.>
<06-May-2010 12:07:00 o'clock BST> <Critical> <Security> <BEA-090518> <Could not decrypt the username attribute value of {AES}xvFgPysVi5b89pYwaAppoqPXQ5wFVW13yoFhzhKmuQo= from the file /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties. If you have copied an encrypted attribute from boot.properties from another domain into /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties, change the encrypted attribute to its cleartext value then reboot the server. The attribute will be re-encrypted. Otherwise, change all encrypted attributes to their cleartext values, then reboot the server. All encryptable attributes will be re-encrypted. The decryption failed with the exception weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte..>
<06-May-2010 12:07:00 o'clock BST> <Critical> <Security> <BEA-090518> <Could not decrypt the password attribute value of {AES}WSsjiXk6ppStq4WFajxaXkqCwpcBwaMJni7vk/pqXvk= from the file /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties. If you have copied an encrypted attribute from boot.properties from another domain into /appl/weblogic/scripts/servers/twpserver1/data/nodemanager/boot.properties, change the encrypted attribute to its cleartext value then reboot the server. The attribute will be re-encrypted. Otherwise, change all encrypted attributes to their cleartext values, then reboot the server. All encryptable attributes will be re-encrypted. The decryption failed with the exception weblogic.security.internal.encryption.EncryptionServiceException: com.rsa.jsafe.JSAFE_PaddingException: Could not perform unpadding: invalid pad byte..>
Enter username to boot WebLogic server:<06-May-2010 12:07:00 o'clock BST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.1.0 Thu Jun 11 00:26:56 EDT 2009 1227385 >
<06-May-2010 12:07:01 o'clock BST> <Info> <Management> <BEA-141223> <The server name twpserver1 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.>
<06-May-2010 12:07:01 o'clock BST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.management.ManagementException: [Management:141223]The server name twpserver1 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.
at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:149)
at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:41)
at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:749)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:488)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)
at weblogic.Server.main(Server.java:67)
>
<06-May-2010 12:07:01 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<06-May-2010 12:07:01 o'clock BST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<06-May-2010 12:07:01 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
<06-May-2010 12:07:02> <Debug> <NodeManager> <Waiting for the process to die: 19443>
<06-May-2010 12:07:02> <Info> <NodeManager> <Server failed during startup so will not be restarted>
<06-May-2010 12:07:02> <Debug> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
Note: if i start the manged servers through WLST scripts its working fine.
[twpuser@ukirt156 /appl/weblogic/scripts]$ java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> nmConnect('weblogic', 'w3bl0g1c', 'ukirt156', '5556', 'twp_domain', '/appl/weblogic/oracle/middleware/user_projects/domains/twp_domain', 'plain')
Connecting to Node Manager ...
Successfully Connected to Node Manager.
wls:/nm/twp_domain> nmStart('twpserver1')
Starting server twpserver1 ...
Successfully started server twpserver1 ...
Please provide the solution, how to solve this issue.
Thanks
SRK -
Weblogic 9.x admin console slowest and worst application ever
Does anyone else think the Weblogic 9.x admin console really sucks? Is there any place I can make improvement requests?
Things in Weblogic 8.x that took just a couple of minutes to accomplish routinely take a half-hour or more in the Weblogic 9.x console. I have recently discovered WLST and I have created a couple of scripts to script things I do quite often but quite honestly I don't have time to script everything I need to do in the console, especially since BEA should provide a usable admin console IMHO.
My specific complaints (not all inclusive as there is no way I could think of every annoyance I run into on a day to day basis):
1) It is crazy slow. We use the ssh node manager so every time it loads a page I guess it polls every managed instance via ssh and page loads take a couple of minutes. For example, getting the next page of Deployments takes around 3 minutes.
2) The deployment pagination is very annoying. Why is this limited to 10 deployments per page? This should just show me a list of all my deployments in alphabetical order. The pagination offers nothing. At the very least pagination length should be configurable. The pagination combined with problem 1 takes me many minutes to get to the app I need to do something with.
3) If BEA insists on pagination on the deployments list at least give me a link so I can immediately jump to a specific page! The link should have the letter range of the deployments on that page (like A-C, D-V, W-Z, or something like that).
4) After I stop an app it jumps back to page 1 instead of showing the page of deployments containing the app I just stopped. OMG!!! GRRR! Now I have to hit Next several times to get back to my app with 3 minutes between each page load. YOU HAVE GOT TO BE KIDDING ME!!!!
5) Why is there not a Redeploy button like there was in Weblogic 8.x? If I need to restart an application I have to go through the update procedure and not upload a new version. This is annoying, just give me a damn redeploy button.
6) After clicking the Lock button I have to wait 2-3 minutes for it to give me the Lock. Why does it take this long?
7) The whole locking mechanism is stupid. Why do I have to obtain a lock to make any changes? I never had a problem in Weblogic 8.x with walking on someone else. I can see how this could possibly be beneficial to some organizations (I suppose) so at the very least make obtaining the lock optional via configuration.
I am sure there are many more but I can't think of all of them now. I will start writing it down every time the console annoys the hell out of me. IMHO the Weblogic 9.x console broke the perfectly good Weblogic 8.x console.
It wouldn't be so annoying if it wasn't so MADDENINGLY SLOW.We have upgraded our WebLogic from 8.1 to 9.2 along with our PeopleSoft 9.0 upgrade and boy-oh-boy, has the WebLogicAdmin console slowed down.
It used to open in about 10 seconds.
Now it opens in roughly 1 minute and 30 seconds.
The heap size settings are the same as they were in the WebLogic 8.1
Even restarting the WebLogicAdmin and associated PeopleSoft PIA's is the worst I have ever seen.
Windows 2003 SP3
Here's the startup command line;
-Xms256m -Xmx256m -XX:MaxPermSize=128m -classpath ";D:/psft/hr849\webserv\hdev\lib\ps_patch.jar;D:/psft/hr849\webserv\hdev\applications\peoplesoft\PSIGW\WEB-INF\lib\mail.jar;D:/psft/hr849\webserv\hdev\lib\portlet-api-1.0.jar;D:/psft/hr849\webserv\hdev\lib\pluto-1.0.1.jar;D:/psft/hr849\webserv\hdev\applications\peoplesoft\PORTAL\WEB-INF\lib\saaj.jar;D:/psft/hr849\webserv\hdev\applications\peoplesoft\PORTAL\WEB-INF\lib\xml-apis.jar;D:/psft/hr849\webserv\hdev\applications\peoplesoft\PORTAL\WEB-INF\lib\xercesImpl.jar;;d:\bea\patch_weblogic923\profiles\default\sys_manifest_classpath\weblogic_patch.jar;d:\bea\jdk150_12\lib\tools.jar;d:\bea\WEBLOG~1\server\lib\weblogic_sp.jar;d:\bea\WEBLOG~1\server\lib\weblogic.jar" -Djava.util.logging.config.file=D:\psft\hr849\webserv\hdev\applications\peoplesoft\logging.properties -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Dweblogic.Name=WebLogicAdmin -Dweblogic.management.username=operator -Dweblogic.ProductionModeEnabled=true -Dps_vault=D:\psft\hr849\webserv\hdev\psvault -Djava.security.policy="d:\bea\WEBLOG~1\server\lib\weblogic.policy" -Dssl.debug=false -Dps_home=D:/psft/hr849 weblogic.Server
Regards,
Tom -
Weblogic 10 doesn't start through admin console
Hi,
While starting a managed server on WebLogic 10.3 through the admin console I get the below error. However when starting the same managed server with a script I can successfully start it up.
<Sep 30, 2010 10:31:52 AM EEST> <Emergency> <Management> <BEA-141151> <The admin server could not be reached at http://10.123.456.78:7001.>
<Sep 30, 2010 10:31:52 AM EEST> <Info> <Configuration Management> <BEA-150018> <This server is being started in managed server independence mode in the absence of the admin server.>
<Sep 30, 2010 10:31:52 AM EEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
Sep 30, 2010 10:31:55 AM EEST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:40)
at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:35)
at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105)
at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
at weblogic.server.channels.ChannelService.start(ChannelService.java:197)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
java.net.UnknownHostException: myServer: myServer
at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
at weblogic.server.channels.AddressUtils$AddressMaker.getLocalHost(AddressUtils.java:38)
at weblogic.server.channels.AddressUtils$AddressMaker.<clinit>(AddressUtils.java:35)
at weblogic.server.channels.AddressUtils.getIPAny(AddressUtils.java:105)
at weblogic.protocol.configuration.ChannelHelper.checkConsistency(ChannelHelper.java:60)
at weblogic.server.channels.ChannelService.start(ChannelService.java:197)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
The environment had been up and running for many months, have done many successfull restarts occasionally. But after an ungraceful shutdown (database connection was down and managed server wouldn't shutdown through admin console) of the managed server & admin server, the startup through admin console stopped working. No configurations had been modified and we have two other systems working with similar configurations.
The log is stating that "<The admin server could not be reached at http://10.123.456.78:7001.>" but it actually is listening at that IP and port and I can connect to it with other means. I'm able to ping the hostname, IP, localhost etc... and network connection shouldn't be an issue even though the log states so.
Does anyone have any ideas what is broken? Thanks for any help in advance!Hi,
With script I meant the startManagedWebLogic.cmd script (on Windows). The managed server is running on the same machine as the admin server.
The hosts file has also been checked, it has the same content as two other environments which are working fine. But anyway we tried adding the IP & hostname there, but it didn't fix the issue. Nothing is wrong with the DNS either.
I'm also able to ping the address:port, with the command you gave I get the following result:
Sending 1 ping of 100 bytes.
RTT = ~0 milliseconds, or ~0 milliseconds/packet
When I'm trying to restart the managed server through admin console (on my laptop), I can see on the server side that there is a connection to the IP:port of admin server from my laptop's IP:
C:\>netstat -an | grep 7001
TCP 10.123.456.78:7001 0.0.0.0:0 LISTENING
TCP 10.123.456.78:7001 10.164.51.33:3965 ESTABLISHED
I again want to say that no changes have been done to any configurations in the environment. It was working fine before the "ungraceful" shutdown, where the connection to DB (that the managed server uses) was down and neither the managed or admin server would shutdown through admin console, but were shutdown by closing the cmd prompt window(used to start admin server) and java.exe task from taskmgr (managed server). -
WLS 8.1 cluster startup scripts
Hi all,
I'm new to WebLogic and so am stumped by a configuration issue that should be normally be simple. I'm running WebLogic Server 8.1 SP6 on a Linux server and the Sun 1.4.2 JVM. A single cluster with 3 managed servers is set up, all servers being on the same machine.
I'm trying to get the JProfiler 4.3 agent running on one of these servers to investigate a memory leak issue. Using the WLS administration console (TestDomain > Clusters > TestCluster > TestServer1 > Configuration > RemoteStart), I have changed the server's startup arguments to add "-Xrunjprofiler" and "-Xbootclasspath".
For now I'm getting a "Error occurred during initialization of VM Could not find -Xrun library: libjprofiler.so" message when I start the server using the admin console. To solve this I need to modify the LD_LIBRARY_PATH for this particular server to include this library's dynamic dependencies.
The current question is: where should I be making these changes? I thought that the setEnv.sh, startManagedWebLogic.sh and startWebLogic.sh scripts in ~/domains/TestDomain/TestServer would be executed when starting this individual server, but changing them doesn't seem to have any impact. This means that other scripts are invoked, but which ones?
Thanks a bunch for your help.
Cheers,
GB
Edited by gbilodeau at 08/13/2007 10:59 AM
Edited by gbilodeau at 08/13/2007 10:59 AMHi,
Go through the following link and check whether you configured load balancing settings correctly or not.
http://e-docs.bea.com/wls/docs81/cluster/load_balancing.html
Regards
Anilkumar kari -
Unable to start managed servers from Admin Console "FAILED_NOT_RESTARTABLE"
I recently installed WebLogic 10.3.5, JRockit, and ECM 11.1.1.5. I'm to the point where I am trying to get Nodemanager configured so I can stop/start managed servers through the admin console. I have the following listed in Environment > Servers:
AdminConsole - running
IBR_server1 - FAILED_NOT_RESTARTABLE
managedServer1 - FAILED_NOT_RESTARTABLE
UCM_server1 - FAILED_NOT_RESTARTABLE
I followed the tutorial at http://blogs.oracle.com/jamesbayer/entry/weblogic_nodemanager_quick_sta to get to the point where the AdminServer starts when the server reboots, so I think Nodemanager is working there. If I view Machines > Monitoring, it says Nodemanager "Reachable." However, when I go to restart IBR_server1, managedServer1, or UCM_server1, I get the FAILED_NOT_RESTARTABLE status. I am using the weblogic server's IP for the machine name/host because our DNS is still screwed up. Would that have any affect on this?
I'm completely unsure what to do now. The Nodemanager log shows:
INFO - <Loading domains file: E:\oracle\MIDDLE~1\WLSERV~1.3\common\nodemanager\nodemanager.domains>
WARNING - <Domains file not found: E:\oracle\MIDDLE~1\WLSERV~1.3\common\nodemanager\nodemanager.domains>
INFO - <Loading identity key store: FileName=E:/oracle/MIDDLE~1/WLSERV~1.3/server\lib\DemoIdentity.jks, Type=jks, PassPhraseUsed=true>
WARNING - <Node manager configuration properties file 'E:\oracle\MIDDLE~1\WLSERV~1.3\common\nodemanager\nodemanager.properties' not found. Using default settings.>
So I'm confused why it's saying the properties file and domains file are not found... I've checked and they exist at
E:\oracle\middleware\wlserver_10.3\common\nodemanager\nodemanager.properties
and
E:\oracle\middleware\wlserver_10.3\common\nodemanager\nodemanager.domains
The domains file contains
base_domain=e\:\\oracle\\middleware\\user_projects\\domains\\base_domain
Which is correct.
Any idea what I'm missing here? I can provide more detail if needed. Thank you.
EDIT: I should add that I can start the UCM and IBR managed servers using the start up scripts on the server, but that's not what I'm after. I want everything controlled through the AdminConsole and want to be sure that when the server reboots, all the managed servers come back up correctly.
Edited by: user5824683 on Oct 5, 2011 5:04 PM
Edited by: user5824683 on Oct 5, 2011 5:09 PMI did a bit of digging, and it seems I have an issue with -Xnohup... I've verified this arugment exists in all of my managed servers properties files, yet it still bombs when I try to restart from the webLogic console. I should note that if I start fresh from the server, I can start all my manager servers using WLST nmStart().
starting weblogic with Java version:
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Oracle JRockit(R) (build R28.1.3-11-141760-1.6.0_24-20110301-1430-windows-x86_64, compiled mode)
Starting WLS with line:
E:\java\JROCKI~1.1\bin\java -jrockit -Xms256m -Xmx512m -Dweblogic.Name=IBR_server1 -Djava.security.policy=E:\oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Dweblogic.system.BootIdentityFile=E:\oracle\middleware\user_projects\domains\base_domain\servers\IBR_server1\data\nodemanager\boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xnohup -Xverify:none -da -Dplatform.home=E:\oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=E:\oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=E:\oracle\MIDDLE~1\WLSERV~1.3\server -Dcommon.components.home=E:\oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=e:\oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1 -Djrockit.optfile=E:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=e:\oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\servers\IBR_server1 -Doracle.domain.config.dir=e:\oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=e:\oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\carml -Digf.arisidstack.home=e:\oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=e:\oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=e:\oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\servers\IBR_server1\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=E:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,E:\oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Ducm.oracle.home=E:\oracle\MIDDLE~1\ORACLE~2 -Dem.oracle.home=E:\oracle\middleware\oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=false -Dweblogic.management.server=http://138.126.180.177:7001 -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=e:\oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath weblogic.Server
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: –Xnohup
Caused by: java.lang.ClassNotFoundException: –Xnohup
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
Could not find the main class: –Xnohup. Program will exit.
<Oct 6, 2011 12:38:13 PM> <FINEST> <NodeManager> <Waiting for the process to die: 4252>
<Oct 6, 2011 12:38:13 PM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<Oct 6, 2011 12:38:13 PM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters> -
Unable to start Managed servers from admin console
Hello!
We have a problem to start Managed Servers throw Node manager.
We get an error:
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Boot identity properties saved to "/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/data/nodemanager/boot.properties">
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.ServerManager log
INFO: Boot identity properties saved to "/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/data/nodemanager/boot.properties"
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Startup configuration properties saved to "/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/data/nodemanager/startup.properties">
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.ServerManager log
INFO: Startup configuration properties saved to "/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/data/nodemanager/startup.properties"
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Server error log also redirected to server log>
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.LogFileRotationUtil log
INFO: Server error log also redirected to server log
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Starting WebLogic server with command line: /software/psoft/pt851/webserv/peoplesoft/bin/startManagedWebLogic.sh >
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.ServerManager log
INFO: Starting WebLogic server with command line: /software/psoft/pt851/webserv/peoplesoft/bin/startManagedWebLogic.sh
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Working directory is '/software/psoft/pt851/webserv/peoplesoft'>
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.ServerManager log
INFO: Working directory is '/software/psoft/pt851/webserv/peoplesoft'
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Rotated server output log to "/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/logs/PIA1.out00001">
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.LogFileRotationUtil log
INFO: Rotated server output log to "/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/logs/PIA1.out00001"
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Server error log also redirected to server log>
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.LogFileRotationUtil log
INFO: Server error log also redirected to server log
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Server output log file is '/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/logs/PIA1.out'>
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.ServerManager log
INFO: Server output log file is '/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/logs/PIA1.out'
<Jan 26, 2012 2:17:54 PM> <INFO> <peoplesoft> <PIA1> <Server failed during startup so will not be restarted>
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.ServerManager log
INFO: Server failed during startup so will not be restarted
<Jan 26, 2012 2:17:54 PM> <WARNING> <Exception while starting server 'PIA1'>
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:567)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:662)
Jan 26, 2012 2:17:54 PM weblogic.nodemanager.server.Handler handleStart
WARNING: Exception while starting server 'PIA1'
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:567)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:662)
Additional information:
weblogic 10.3.3
PT8.51.11
Linux x86_64 RH5
When we starting Manged servers manualy, it's works fine.
Thank you.Hello!
The problem is found.
We tried to startup managed server by running startManagedServer.sh script, but this script expecting to get parameters.
The NodeManager unable to send parameters to script that appears in nodemanager.properties file (StartScriptName).
So, I created a new script startPIA.sh, that calls to startManagedServer.sh and sends it 2 parameters:
./startManagedWebLogic.sh $SERVER_NAME $ADMIN_URL
Now, we can start and stop managed servers from admin console, BUT we still have an error in NodeManager:
<Jan 29, 2012 11:15:39 AM> <INFO> <peoplesoft> <PIA1> <Server failed during startup so will not be restarted>
Jan 29, 2012 11:15:39 AM weblogic.nodemanager.server.ServerManager log
INFO: Server failed during startup so will not be restarted
<Jan 29, 2012 11:15:39 AM> <WARNING> <Exception while starting server 'PIA1'>
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:567)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:662)
Jan 29, 2012 11:15:39 AM weblogic.nodemanager.server.Handler handleStart
WARNING: Exception while starting server 'PIA1'
java.io.IOException: Server failed to start up. See server output log for more details.
at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
at weblogic.nodemanager.server.Handler.handleStart(Handler.java:567)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
at weblogic.nodemanager.server.Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:662)
There are no errors in managed servers logs.
PIA1.out:
<Jan 29, 2012 11:15:38 AM> <INFO> <NodeManager> <Server output log file is '/software/psoft/pt851/webserv/peoplesoft/servers/PIA1/logs/PIA1.out'>
Attempting to start WebLogic Server PIA1
No activity will be logged to this window.
Server activity will be logged to /software/psoft/pt851/webserv/peoplesoft/servers/PIA1/logs/PIA1_*
PID for WebLogic Server PIA1 is: 27018
<Jan 29, 2012 11:15:39 AM> <FINEST> <NodeManager> <Waiting for the process to die: 26847>
<Jan 29, 2012 11:15:39 AM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<Jan 29, 2012 11:15:39 AM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
The status of managed server in admin console is RUNNING, but "Status of Last Action" is FAILED.
What can be the reason?
Thank you. -
Weblogic admin console fails to start when commons logging is used.
I have an application that requires commons logging.
I followed the instructions as per the documentation and other forum entries such as How to use log4j into weblogic 10.3 to add the commons logging jar from apache and the weblogic jar specified. Plus I set the system property for the LogFactory.
When I start up the application server I see messages as expected from my application. But when I start up the weblogic Admin console I get and exception and the console fails to start. I even tried to put the jars in my applicaiton instead of the domain/lib directory to try to iscolate the issue but still got issues with starting the Console.
Any ideas on why this is occuring?
See the error below:
####<May 19, 2010 4:16:04 PM EDT> <Notice> <Stdout> <TE001XU-CATOR1> <AdminServer> <Check Retention Schedule Setting> <<WLS Kernel>> <> <> <1274300164672> <BEA-000000> <----------------------------------------Retention Init()---------------------------------------->
####<May 19, 2010 4:16:04 PM EDT> <Notice> <Stdout> <TE001XU-CATOR1> <AdminServer> <Check Retention Schedule Setting> <<WLS Kernel>> <> <> <1274300164672> <BEA-000000> <Thu May 20 05:00:00 EDT 2010>
####<May 19, 2010 4:16:06 PM EDT> <Info> <Health> <TE001XU-CATOR1> <AdminServer> <weblogic.GCMonitor> <<anonymous>> <> <> <1274300166060> <BEA-310002> <81% of the total memory in the server is free>
####<May 19, 2010 4:35:03 PM EDT> <Info> <WorkManager> <TE001XU-CATOR1> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1274301303146> <BEA-002901> <Creating WorkManager "consoleWorkManager" for module "null" and application "consoleapp">
####<May 19, 2010 4:35:17 PM EDT> <Error> <HTTP> <TE001XU-CATOR1> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1274301317582> <BEA-101216> <Servlet: "AppManagerServlet" failed to preload on startup in Web application: "console".
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at weblogic.servlet.AsyncInitServlet.createDelegate(AsyncInitServlet.java:44)
at weblogic.servlet.AsyncInitServlet.initDelegate(AsyncInitServlet.java:98)
at weblogic.servlet.AsyncInitServlet.init(AsyncInitServlet.java:78)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:531)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1915)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1889)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1807)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3045)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1397)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:460)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:54)
at weblogic.application.internal.BackgroundDeploymentService$2.next(BackgroundDeploymentService.java:373)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.BackgroundDeploymentService$BackgroundDeployAction.run(BackgroundDeploymentService.java:277)
at weblogic.application.internal.BackgroundDeploymentService$OnDemandBackgroundDeployAction.run(BackgroundDeploymentService.java:336)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused By: org.apache.commons.logging.LogConfigurationException: The chosen LogFactory implementation does not extend LogFactory. Please check your configuration. (Caused by java.lang.ClassCastException: weblogic.logging.commons.LogFactoryImpl cannot be cast to org.apache.commons.logging.LogFactory)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:574)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:517)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:254)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at com.bea.console.utils.MBeanUtilsInitSingleFileServlet.<clinit>(MBeanUtilsInitSingleFileServlet.java:23)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at weblogic.servlet.AsyncInitServlet.createDelegate(AsyncInitServlet.java:44)
at weblogic.servlet.AsyncInitServlet.initDelegate(AsyncInitServlet.java:98)
at weblogic.servlet.AsyncInitServlet.init(AsyncInitServlet.java:78)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:531)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1915)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1889)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1807)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3045)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1397)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:460)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:54)
at weblogic.application.internal.BackgroundDeploymentService$2.next(BackgroundDeploymentService.java:373)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:83)
at weblogic.application.internal.BackgroundDeploymentService$BackgroundDeployAction.run(BackgroundDeploymentService.java:277)
at weblogic.application.internal.BackgroundDeploymentService$OnDemandBackgroundDeployAction.run(BackgroundDeploymentService.java:336)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)Thank you for replying. Yes that is the first place we looked and tried. Actually to be more specific we followed the instrcutions under: "How to Use the Commons API with WebLogic Logging Services" of the same link.
Are you thinking that maybe we are we missing a step somewhere else within the site?
Not sure if I was clear before but we are using Weblogic 10.3 and also tried up to version 10.3.3. And we get the same results.
We prefer to use the method with commons logging for our application.
One more specific here what we did on our last attempt.
1. added this to the startWeblogic script JAVAOPTIONS -Dorg.apache.commons.logging.LogFactory=weblogic.logging.commons.LogFactoryImpl
2. we put the WebLogic-specific Commons classes, $BEA_HOME/modules/com.bea.core.weblogic.commons.logging_1.3.0.0.jar, together with the commons-logging.jar file in one of the following locations: APP-INF/LIB or WEB-INF/LIB directory or DOMAIN_NAME/LIB directory server CLASSPATH
We are still not able to get the Weblogic admin console to start
Any other ideas?
Edited by: user13094648 on May 21, 2010 10:29 AM
Edited by: user13094648 on May 21, 2010 10:37 AM -
Startup Scripts for OBIEE 11g on Linux
Hi, I originally spent many hours trying to find a startup/shutdown script for OBIEE on linux, in the end I compiled a new one based on notes in the install manual and other posts on the subject until I got it working consistantly
Please add comments or improvements :)
Note: you need to create the boot.properties file (in /security) for each server, and provide the username/password so WebLogic won't prompt for it when starting automatically (otherwise it doesn't start :p) ....refer to the install manual or [weblogic boot.properties|http://onlineappsdba.com/index.php/2010/08/21/weblogic-startup-prompting-from-username-password-bootproperties/]
#!/bin/bash
# /etc/init.d/obiee
# Run-level Startup script for OBIEE
# set required paths
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1
export ORACLE_OWNR=oracle
export ORACLE_FMW=/opt/oracle/product/fmw
export PATH=$PATH:$ORACLE_FMW/bin
case "$1" in
start)
echo -e "Starting Weblogic Server...."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startWebLogic.sh > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Node Manager..."
su $ORACLE_OWNR -c "$ORACLE_FMW/wlserver_10.3/server/bin/startNodeManager.sh > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Managed Server: bi_server1..."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/startManagedWebLogic.sh bi_server1 [url for admin console] > /dev/null 2>&1 &"
sleep 30
echo -e "Starting Components...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl startall > /dev/null 2>&1 &"
sleep 30
stop)
echo -e "Stopping Components...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl stopall > /dev/null 2>&1 &"
sleep 30
echo -e "Stopping Managed Server: bi_server1..."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopManagedWebLogic.sh bi_server1 [url for admin console] [weblogic user] [weblogic pass] > /dev/null 2>&1 &"
sleep 30
echo -e "Stopping Weblogic Server...."
su $ORACLE_OWNR -c "$ORACLE_FMW/user_projects/domains/bifoundation_domain/bin/stopWebLogic.sh > /dev/null 2>&1 &"
sleep 15
status)
echo -e "Component Status...."
su $ORACLE_OWNR -c "$ORACLE_FMW/instances/instance1/bin/opmnctl status"
restart)
$0 stop
$0 start
echo "Usage: `basename $0` start|stop|restart|status"
exit 1
esac
exit 0
Hopefully this helps others in the same situation
CheersHI,
Is this script for Enterprise Install on a single computer? For Simple install I think there is no concept of nodemanager and managedserver.
--Joe -
Starting an App using Admin Console - confusing message
I tried starting my 'App' and the messages indicate success but say failure.
I am confused.
Here is a CUT/PASTE of the "Progress of Activation (Entire Domain)" window.
I also attach my config file for consideration...
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
********CHECKING SYSTEM RESOURCES
Security=NONE
********ACTIVATING ADMINISTRATIVE SERVERS ON MASTER SITE
Could not Activate the Administrative Servers.
Domain=poc
Master=PACEMid1 [A.Central.poc.customs.gov.au]
State=INACTIVE
Options=LAN,MIGRATE
[Operation: SET T_DOMAIN STATE:ACTIVE]
[Message: Success]
The activation attempt has failed. Check
the information printed above for possible
reasons for the failure.
******END OF MESSAGES******
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[config.txt]Lyall,
You are corect that you only need the compiled TUXCONFIG file on the
master machine, the boot process will propagate it to the other machines.
I am unclear as to what your problem is now, where is the boot failing?
Are there any errors in the ULOG file on the master machine, or the
other machine?
The tlisten process must be started manually (or via UNIX startup
scripts) the tmboot brings up application servers. This application
boot process that may require the tlisten to be running in advance.
There is no way that the boot process "thinks it is starting the tlisten"
Please post some more information about what your current problem is!
Regards,
Peter.
Got a Question? Ask BEA at http://askbea.bea.com
The views expressed in this posting are solely those of the author, and BEA
Systems, Inc. does not endorse any of these views.
BEA Systems, Inc. is not responsible for the accuracy or completeness of
the
information provided
and assumes no duty to correct, expand upon, delete or update any of the
information contained in this posting.
Lyall Pearce wrote:
Thankyou Peter for responding so quickly.
I am still having difficulty. (Linux unix in case you are wondering)
The admin console thinks it is ok starting the master (cos it thinks it is starting
the tlisten process when I know one is already running)
[tuxadm@PACEMid1 poc]$ ps -fae | grep tlisten
tuxadm 14653 1 0 18:10 pts/10 00:00:00 tlisten -l //PACEMid1:12344
tuxadm 14799 11238 0 18:29 pts/10 00:00:00 grep tlisten
[tuxadm@PACEMid1 poc]$
It also thinks that it is not running on the second machine and so, fails to start
up the second machine. I know the tlisten is running on the second machine.
[tuxadm@PACEMid2 poc]$ ps -afe | grep tlisten
tuxadm 2891 1 0 08:51 pts/8 00:00:00 tlisten -l //PACEMid2:12344
tuxadm 2954 1111 0 09:04 pts/8 00:00:00 grep tlisten
[tuxadm@PACEMid2 poc]$
The admin console shows the full configuration (wonderful stuff really)
My config file has been updated now that I understand the difference between NADDR
and NLSADDR (maybe some synonyms in these config files that are more intuitive
would be helpful!)
I have only shown what I understand to be the relevant networking entries here.
*MACHINES
"PACEMid1"
LMID = "Central.A.poc.customs.gov.au"
TUXDIR = "/opt/bea/tuxedo8.0"
APPDIR = "/home/tuxadm/poc"
TUXCONFIG = "/home/tuxadm/poc/tuxconfig.poc.customs.eds.au"
"PACEMid2"
LMID = "Adl.A.poc.customs.gov.au"
TUXDIR = "/opt/bea/tuxedo8.0"
APPDIR = "/home/tuxadm/poc"
TUXCONFIG = "/home/tuxadm/poc/tuxconfig.poc.customs.eds.au"
*NETWORK
"Central.A.poc.customs.gov.au"
NADDR = "//205.239.97.151:12345"
NLSADDR = "//205.239.97.151:12344"
"Adl.A.poc.customs.gov.au"
NADDR = "//205.239.97.198:12345"
NLSADDR = "//205.239.97.198:12344"
In summary:
I seem to be in control of the master machine by default since it gives the impression
it is starting it's own tlisten process (which I am unable to find).
I am not in control of the second machine.
I have compiled the Config file on the master machine only (it does not exist
on the second machine), I gather that it will be replicated to the second machine.
..Lyall -
Dear All
Can I have a IBM AIX DB Startup Scripts ?
Regards
Lakmalput
Orastart:2:wait:/usr/local/bin/changedbstatus_ora start all FORCE> /dev/console 2>&1
at the end of /etc/inittab
and
/usr/local/bin/changedbstatus_ora stop all FORCE
in /etc/rc.shutdown
where changedbstatus is similar to the following
[haiti]/db_masters $ cat changedbstatus_ora
#!/bin/sh
# usage: changedbstatus_ora start|stop
# This script is used to start or stop ORACLE
# $1 = Start, Stop, or reset_logs
# $2 = SID to start or stop (can be all)
# $3 = FORCE Force a shutdown or startup
# if $2 is not specified it defaults to all. this allows autostart/stop during
# system startup/shutdown
# Written by Graham Myers, Coda plc, (c) 2001
# fn_determine_version
# returns VERSION (7.3.4, 8.1.7, 9.2.0 etc)
fn_determine_version() {
set +x
if [ -f ${ORACLE_HOME}/bin/sqldba ]
then
VERSION=`sqldba command=exit | \
awk '/SQL\*DBA: (Release|Version)/ {split($3, V, ".") ; print V[1]}'`
elif [ -f ${ORACLE_HOME}/bin/svrmgrl ]
then
VERSION=`$ORACLE_HOME/bin/svrmgrl command=exit | awk '
/PL\/SQL (Release|Version)/ { print substr($3,1,5); exit }
/Oracle7 Server (Release|Version)/ { print substr($4,1,5); exit }
/Oracle8i Enterprise Edition (Release|Version)/ { print substr($5,1,5); exit }
/Oracle8i (Release|Version)/ { print substr($3,1,5); exit }'`
else
VERSION=`$ORACLE_HOME/bin/sqlplus -? | awk '/SQL\*Plus: Release/ {print substr($3,1,5); exit }'`
fi
VERSION_MAJOR=`echo ${VERSION} | cut -d. -f1`
# fn_determine_os - determine whioh operating system we're using, returns:
# BITS - no of processor bits 32 or 64
# ORATAB - set to correct path of oratab file
fn_determine_os() {
set +x
ORATAB=/etc/oratab
case `uname` in
SunOS)
BITS=`isainfo -kv | cut -d"-" -f 1`
ORATAB=/var/opt/oracle/oratab;;
HP-UX)
BITS=`/bin/getconf KERNEL_BITS`;;
AIX)
BITS=`/usr/sbin/bootinfo -K`;;
OSF1)
BITS=64;;
esac
# fn_check_status - check instance status
# Returns STATUS (1=running, 0=not running)
fn_check_status() {
set +x
#Check to see if instance shutdown cleanly (or is still running)
STATUS=0
if [ ${VERSION_MAJOR} -ge 8 ]
then
[ "`ps -ef | egrep pmon_${ORACLE_SID} | grep -v grep`" != "" ] && STATUS=1
else
[ -f ${ORACLE_HOME}/dbs/sgadef${ORACLE_SID}.dbf -o \
-f ${ORACLE_HOME}/dbs/sgadef${ORACLE_SID}.ora ] && STATUS=1
fi
# fn_cmd_file - Create a UNIX command script
# inputs $1 command - begin create a new command file
# begin_agent start an angent comamnd file
# command actual comamnds to place in command file
# start_sql run up the relevent SQL processor
# stop_sql exit out of SQL processor
# end finish off command file
fn_cmd_file() {
set +x
case $1 in
begin | begin_agent)
CMD_FILE=/tmp/changedbstatus.tmp$$
RDBMS_HOME=`grep oracle /etc/passwd | awk -F: '{print $6}'`
# Make sure the correct verion of Oracle is defined at login
if [ "$1" = "begin" ]
then
echo "Oracle_${VERSION}(${ORACLE_SID})" > ${RDBMS_HOME}/.rdbms_defaults
else
echo "Oracle_10.1.0(agent)" > ${RDBMS_HOME}/.rdbms_defaults
fi
echo "unset TWO_TASK" >> ${CMD_FILE};;
start_sql)
case "${VERSION}" in
"7") SQL_COMMAND="sqldba";;
"7.3.4"|"8.0.5") SQL_COMMAND="svrmgrl";;
*) SQL_COMMAND="sqlplus /nolog";;
esac
echo "${SQL_COMMAND}<<EOF" >> ${CMD_FILE}
echo "connect / as sysdba" >> ${CMD_FILE};;
command)
shift
echo "$*" >> ${CMD_FILE};;
end_sql)
echo "EOF" >> ${CMD_FILE};;
end)
chmod 755 ${CMD_FILE};;
esac
# fn_execute_cmd_file
# PLEASE NOTE the strange way of eching the session to the display rather than
# using tee. For some reason agentctl does not "let go" of the session and
# tee hangs. This is a documented "non-bug" for tnslsnr on 8i but nobody has
# has reported it for agentctl for 9i
# $1 should be a message to write to the screen prior to execution so the user
# has an indication something is happening
fn_execute_cmd_file() {
set +x
echo $1
su - oracle -c ${CMD_FILE} > ${CMD_FILE}.log 2>&1
RETURN_STATUS=$?
cat ${CMD_FILE}.log
# Scrap the defaults file after the command script has run
rm ${RDBMS_HOME}/.rdbms_defaults ${CMD_FILE}
# fn_reset_logs - rename existing log, create a new one, and purge old ones
# if $1 is non blank then it is assumed to be embedded in another command
# and so will not start a new command file (or execute it)
fn_reset_logs() {
set +x
if [ "$1" = "" ]
then
fn_cmd_file begin
fn_cmd_file command set +x
fi
if [ ${VERSION_MAJOR} -ge 9 ]
then
fn_cmd_file command "dmp_dest=\`grep background_dump_dest $PFILE|awk -F\"'\" '{print \$2}'\`"
else
fn_cmd_file command "dmp_dest=\`grep background_dump_dest $PFILE|awk '{print \$3}'\`"
fi
fn_cmd_file command "cd \${dmp_dest}"
fn_cmd_file command "dmp=alert_\${ORACLE_SID}.log"
fn_cmd_file command "new_dmp=\${dmp}.\`date +%y%m%d\`"
fn_cmd_file command "if [ -f \${new_dmp}.Z ]"
fn_cmd_file command "then"
fn_cmd_file command " zcat \${dmp} >> \${new_dmp}"
fn_cmd_file command " rm \${dmp} \${new_dmp}.Z"
fn_cmd_file command "else"
fn_cmd_file command " mv \${dmp} \${new_dmp}"
fn_cmd_file command "fi"
fn_cmd_file command "compress \${new_dmp}"
fn_cmd_file command "find ./ -name "\${dmp}.*" -mtime +30 -print -exec rm {} \\\+"
fn_cmd_file command "find ./ -name "/tmp/changdbstatus*" -mtime +2 -print -exec rm {} \\\+"
if [ "$1" = "" ]
then
fn_cmd_file end
fn_execute_cmd_file "reseting log files..."
fi
# fn_start_agent - Start the 10g intelligent agent
# This is only done once and only if a 64-bit server
fn_start_agent() {
set +x
fn_cmd_file begin_agent
fn_cmd_file command emctl start agent
fn_cmd_file end
fn_execute_cmd_file "Starting Intelligent Agent..."
# fn_stop_agent - Stop the 9i intelligent agent
# This is only done once and only if 64-bit server
fn_stop_agent() {
set +x
fn_cmd_file begin_agent
fn_cmd_file command emctl stop agent
fn_cmd_file end
fn_execute_cmd_file "Stopping Intelligent Agent..."
# fn_start_database - Start database
fn_start_database() {
set +x
fn_cmd_file begin
fn_cmd_file command set +x
fn_reset_logs include
fn_determine_listener
[ "`ps -ef | egrep ${LISTENER_NAME} | grep -v grep`" = "" ] && fn_cmd_file command lsnrctl start ${LISTENER_NAME}
fn_cmd_file start_sql
fn_cmd_file command startup
fn_cmd_file end_sql
#We now use an Oracle 10g Enterprise manager which does not support Oracle 8i agents so don't start them
# if [ ${VERSION_MAJOR} -lt 9 ]
# then
# # start the intelligent agent and data gatherer
# fn_cmd_file command vppcntl -start
# fn_cmd_file command lsnrctl dbsnmp_start
# fi
fn_cmd_file end
fn_execute_cmd_file "Starting instance ${ORACLE_SID}..."
# fn_stop_database - Stop database $1 passed as abort if required
fn_stop_database() {
set +x
fn_cmd_file begin
if [ "${ALL_DATABASES}" = "Y" ]
then
#We now use an Oracle 10g Enterprise manager which does not support Oracle 8i agents so they haven't been started
# if [ ${VERSION_MAJOR} -lt 9 ]
# then
# # stop the data gatherer and agent
# fn_cmd_file command vppcntl -stop
# fn_cmd_file command lsnrctl dbsnmp_stop
# fi
fn_determine_listener
[ "`ps -ef | egrep ${LISTENER_NAME} | grep -v grep`" != "" ] && fn_cmd_file command lsnrctl stop ${LISTENER_NAME}
fi
fn_cmd_file start_sql
fn_cmd_file command shutdown $1
fn_cmd_file end_sql
fn_cmd_file end
fn_execute_cmd_file "Stopping instance ${ORACLE_SID}..."
# fn_determine_listener - work out listener name
# For 8i it will be listener_817
# For 9i it will be listener_<hostname> as we use MTS
# on 9i and only need the listener for OEM.
fn_determine_listener() {
set +x
LISTENER_NAME=`grep "SID_LIST_" ${TNS_ADMIN:-$ORACLE_HOME/network/admin}/listener.ora | \
cut -d "_" -f 3- | cut -d "=" -f 1`
(trap 'exit' 1 2 3
set +x
fn_determine_os
ORIGINAL_ORACLE_HOME=${ORACLE_HOME}
ORIGINAL_ORACLE_PATH=${ORACLE_PATH}
ORIGINAL_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
ORIGINAL_PATH=${PATH}
if [ "$3" = "FORCE" ]
then
FORCE=Y
else
FORCE=N
fi
if [ "$2" = "all" -o "$2" = "" ]
then
FILTER="tee /dev/null"
ALL_DATABASES=Y
#if $2 is null then we are in system startup/shutdown - so force db start/stop
# this will get around any rogue files maybe due to a previous crash
[ "$2" = "" ] && FORCE=Y
#if we are starting all databases then assume we are starting everthing fresh
# so start the intelligent agent
if [ \( "$1" = "start" -o "$1" = "START" \) -a "${BITS}" = "64" ]
then
fn_start_agent
fi
else
FILTER="grep ^$2:" #Only apply filter if not all
ALL_DATABASES=N
fi
grep -v "^#" ${ORATAB} | ${FILTER} | awk -F: '{print $1,$2,$3}' | \
while read ORATAB_SID ORATAB_HOME ORATAB_START
do
ORACLE_SID=${ORATAB_SID} ;export ORACLE_SID
ORACLE_HOME=${ORATAB_HOME} ;export ORACLE_HOME
PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/etc ;export PATH
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ORACLE_HOME}/lib ;export LD_LIBRARY_PATH
fn_determine_version #Work out which version of Oracle is required
if [ ${VERSION_MAJOR} -ge 9 ]
then
PFILE=${ORACLE_HOME}/dbs/spfile${ORACLE_SID}.ora
else
PFILE=${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora
fi
if [ -f ${PFILE} ]
then
fn_check_status #See if instance is already running
case $1 in
start | START )
if [ ${STATUS} -eq 1 ]
then
if [ "${FORCE}" = "Y" ]
then
echo Instance ${ORACLE_SID} already running - forcing shutdown
fn_stop_database abort
else
echo Instance ${ORACLE_SID} already running
continue
fi
fi
if [ "${ALL_DATABASES}" = "Y" -o \( "${ORATAB_START}" = "Y" -a "${ALL_DATABASES}" = "N" \) ]
then
fn_start_database
if [ ${RETURN_STATUS} -eq 0 ]
then
echo "Instance ${ORACLE_SID} started."
else
echo "Instance ${ORACLE_SID} NOT started."
fi
else
echo "Instance ${ORACLE_SID} NOT started."
fi;;
stop | STOP)
if [ ${STATUS} -eq 0 ]
then
if [ "${FORCE}" = "Y" ]
then
echo Instance ${ORACLE_SID} already shutdown - forcing shutdown
fn_stop_database abort
else
echo Instance ${ORACLE_SID} already shutdown
continue
fi
else
fn_stop_database IMMEDIATE
if [ ${RETURN_STATUS} -eq 0 ]
then
echo "Instance ${ORACLE_SID} shutdown."
else
echo "Instance ${ORACLE_SID} NOT shutdown."
fi
fi;;
reset_logs)
fn_reset_logs;;
esac
else
echo ""
echo "Cant find init file for instance ${ORACLE_SID}."
fi
done
#if we are shutting down eveything then close down the agents too
if [ "${ALL_DATABASES}" = "Y" -a \( "$1" = "stop" -o "$1" = "STOP" \) -a ${BITS} = 64 ]
then
fn_stop_agent
fi
ORACLE_HOME=${ORIGINAL_ORACLE_HOME};export ORACLE_HOME
ORACLE_SID=${ORIGINAL_ORACLE_PATH};export ORACLE_SID
LD_LIBRARY_PATH=${ORIGINAL_LD_LIBRARY_PATH};export LD_LIBRARY_PATH
PATH=${ORIGINAL_PATH};export PATH
for VARIABLE in FILTER ORATAB_HOME ORATAB_SID ORATAB_START STATUS ORATAB \
PFILE SQL_COMMAND VERSION RETURN_STATUS RDBMS_HOME \
LISTENER_NAME FORCE ALL_DATABASES VERSION_MAJOR \
BITS LISTENER
do
unset ${VARIABLE}
done
unset VARIABLE) 2>&1 | tee /tmp/changedbstatus_ora.log
regards
Graham -
Opensso : problem load opensso admin console page after install agent
Hi,
After installing policy agent for Tomcat in another instance,
I could not load opensso admin console as usual (http://opensso.local.asyd.net:8000/opensso/UI/Login). The message
given:
root cause
javax.servlet.ServletException: Servlet execution threw an
exception
com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91)
root cause
java.lang.NoClassDefFoundError
com.sun.identity.authentication.client.AuthClientUtils.<clinit>(AuthClientUtils.java:136)
or
com.sun.identity.authentication.UI.LoginServlet.initializeRequestContext(LoginServlet.java:106)
The tomcat log gave this message:
SEVERE: Servlet.service() for servlet LoginServlet threw exception
java.lang.NoClassDefFoundError
at com.sun.identity.authentication.UI.LoginServlet.initializeRequestContext(LoginServlet.java:106)
+++++++++++++++++++++++++++++++++++++++++
I have 2 Tomcat instances on one machine:
/home/opensso/apache-tomcat-6.0.18 (where the open sso server is deployed)
/opt/tomcat-instance/opensso.local.asyd.net (where the web server client is deployed and agent is installed)
Here is the response summary of my agent installation:
SUMMARY OF YOUR RESPONSES
Tomcat Server Config Directory :
/opt/tomcat-instance/opensso.local.asyd.net/conf
OpenSSO server URL : http://opensso.local.asyd.net:8000/opensso
$CATALINA_HOME environment variable :
/home/opensso/apache-tomcat-6.0.18
Tomcat global web.xml filter install : false
Agent URL : http://opensso.local.asyd.net:8081/mini-agentsample
Agent Profile name : AS9Agent
Agent Profile Password file name :
/opt/tomcat-instance/tomcat_v6_agent/tomcat6agentpw.txt
Verify your settings above and decide from the choices below.
1. Continue with Installation
2. Back to the last interaction
3. Start Over
4. Exit
Please make your selection [1]: 1
Updating the /home/opensso/apache-tomcat-6.0.18/bin/setclasspath.sh
script with the Agent classpath ...DONE.
Creating directory layout and configuring Agent file for Agent_001
instance ...DONE.
Reading data from file
/opt/tomcat-instance/tomcat_v6_agent/tomcat6agentpw.txt and
encrypting it ...DONE.
Generating audit log file name ...DONE.
Creating tag swapped OpenSSOAgentBootstrap.properties file for instance
Agent_001 ...DONE.
Creating a backup for file
/opt/tomcat-instance/opensso.local.asyd.net/conf/server.xml ...DONE.
Creating a backup for file
/opt/tomcat-instance/opensso.local.asyd.net/conf/web.xml ...DONE.
Adding OpenSSO Tomcat Agent Realm to Server XML file :
/opt/tomcat-instance/opensso.local.asyd.net/conf/server.xml ...DONE.
Adding filter to Global deployment descriptor file :
/opt/tomcat-instance/opensso.local.asyd.net/conf/web.xml ...DONE.
Adding OpenSSO Tomcat Agent Filter and Form login authentication to
selected Web applications ...DONE.
SUMMARY OF AGENT INSTALLATION
Agent instance name: Agent_001
Agent Bootstrap file location:
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/config/OpenSSOAgentBootstrap.properties
Agent Configuration file location
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/config/OpenSSOAgentConfiguration.properties
Agent Audit directory location:
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/logs/audit
Agent Debug directory location:
/opt/tomcat-instance/tomcat_v6_agent/Agent_001/logs/debug
Install log file location:
/opt/tomcat-instance/tomcat_v6_agent/installer-logs/audit/install.log
Thank you for using OpenSSO Policy Agent
Edited by: enterprisecoder on Jun 27, 2010 8:19 PM
Edited by: enterprisecoder on Jun 28, 2010 12:37 AM
Edited by: enterprisecoder on Jun 28, 2010 2:14 AM
Edited by: enterprisecoder on Jun 28, 2010 8:19 PMHi
I am facing the similar issue after installing the policy agent on tomcat 6.x
Installation gets successfully, but once I start the tomcat server secured by agent than I get below error
Dec 23, 2010 2:43:44 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Dec 23, 2010 2:43:44 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
AgentConfiguration: Exception while reading new mod interval: "null"
Dec 23, 2010 2:43:45 PM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.ExceptionInInitializerError
at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:643)
at com.sun.identity.agents.tomcat.v6.AmTomcatRealm.<clinit>(AmTomcatRealm.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:206)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:510)
at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.RuntimeException: Unknown User Mapping Mode: null
at com.sun.identity.agents.arch.AgentConfiguration.setUserMappingMode(AgentConfiguration.java:865)
at com.sun.identity.agents.arch.AgentConfiguration.setHotSwappableConfigProps(AgentConfiguration.java:1170)
at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentConfiguration.java:1098)
at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfiguration.java:1543)
... 31 more
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ExceptionInInitializerError
at com.sun.identity.agents.arch.Manager.<clinit>(Manager.java:643)
at com.sun.identity.agents.tomcat.v6.AmTomcatRealm.<clinit>(AmTomcatRealm.java:64)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:206)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
at org.apache.catalina.startup.Catalina.load(Catalina.java:510)
at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
... 6 more
Caused by: java.lang.RuntimeException: Unknown User Mapping Mode: null
at com.sun.identity.agents.arch.AgentConfiguration.setUserMappingMode(AgentConfiguration.java:865)
at com.sun.identity.agents.arch.AgentConfiguration.setHotSwappableConfigProps(AgentConfiguration.java:1170)
at com.sun.identity.agents.arch.AgentConfiguration.initializeConfiguration(AgentConfiguration.java:1098)
at com.sun.identity.agents.arch.AgentConfiguration.<clinit>(AgentConfiguration.java:1543)
... 31 more
Exception in thread "SystemTimer" java.lang.NoClassDefFoundError: Could not initialize class com.sun.identity.agents.arch.AgentConfiguration
at com.sun.identity.agents.arch.AgentConfiguration$ConfigurationMonitor.getRunPeriod(AgentConfiguration.java:1397)
at com.sun.identity.common.TimerPool$WorkerThread.run(TimerPool.java:504) -
WLS 9.0: Admin Console User/Password
Hi,
I downloaded server900_solaris32.bin and ran it to install. After that, I started up the admin server from the samples directory:
/bea/weblogic90/samples/domains/wl_server/startWebLogic.sh
Then I tried to log into the Administration Console -- but realized I don't know what WLS_USER and WLS_PWD are.
Is there a default value? I wasn't prompted for anything during install nor during startup script execution.
Please advise.
Thanks,
Paulhi,
thing is that weblogic is the default user& weblogic is the default password....
if not you can edit the boot.properties file, that is available in the weblogic home directory, in that file you have both the username & password .
Yuvaraj.M
Maybe you are looking for
-
How to change a batch of CU mailbox including aliases?
Hello, We want to change all mailbox users from 4 digits to 5 in our CU (Cisco Unity Connection version: 9.1.1.20000-32). We have around 3500 users. Please, note that we were using the same 4digits of the extension to identify aliases. We want to kee
-
Hi guys, I updated my iPhone last night (for first time in months!) and installed iCloud. However this morning, I can't access any of my emails thru my hotmail acc - keep getting an error message that unable to download? Not very good with this part
-
I want to clear my toolbar off old websites I no longer visit
I want to clear my dropdown (old) toolbar but cant seem to delete or clear websites I no longer look at from it.
-
Trouble forwarding event( s)
Hello, I'm having some problem with forwarding the ActionEvent to calling class... For example consider following Pad class import java.awt.*; import java.awt.event.*; public class Pad extends Panel implements ActionListener private Button btn1
-
HT1600 How long does the current Apple,TV software download take
How long does the current Apple TV software up date take , or should it take ..?