Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now while I am trying to start the Weblogic service it turns out to throw the error shown below:
Code:
[w1_11@localhost common]$ bin/startManagedWebLogic.sh
bin/startManagedWebLogic.sh: line 33: http://10.94.214.192:7001: No such file or directory
bin/startManagedWebLogic.sh: line 34: 10.94.214.192: command not found
Need to set SERVER_NAME and ADMIN_URL environment variables or specify
them in command line:
Usage: ./startManagedWebLogic.sh [SERVER_NAME] [ADMIN_URL]
for example:
./startManagedWebLogic.sh managedserver1 http://localhost:7001
[w1_11@localhost common]$ bin/startManagedWebLogic.sh 10.94.214.192 http://localhost:7001
bin/startManagedWebLogic.sh: line 33: http://10.94.214.192:7001: No such file or directory
bin/startManagedWebLogic.sh: line 34: 10.94.214.192: command not found
CLASSPATH=/home/w1_11/Oracle/Middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/lib/tools.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/w1_11/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/w1_11/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/w1_11/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/home/w1_11/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbynet.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar::/jre/lib/rt.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:.
PATH=/home/w1_11/Oracle/Middleware/wlserver_10.3/server/bin:/home/w1_11/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/jre/bin:/bin:/bin:/usr/local/maven/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://<hostname>:<port>/console *
***************************************************
<Oct 3, 2014 2:59:29 AM EDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Oct 3, 2014 2:59:29 AM EDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Oct 3, 2014 2:59:30 AM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with OpenJDK 64-Bit Server VM Version 24.65-b04 from Oracle Corporation>
<Oct 3, 2014 2:59:31 AM EDT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:w1_11
OpenJDK 64-Bit Server VM warning: You have loaded library /home/w1_11/Oracle/Middleware/wlserver_10.3/server/native/linux/i686/libterminalio.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Enter password to boot WebLogic server:w1_11
<Oct 3, 2014 3:00:02 AM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 >
<Oct 3, 2014 3:00:02 AM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.management.ManagementException: [Management:141247]The configuration directory /home/w1_11/Oracle/Middleware/wlserver_10.3/common/config does not exist and the admin server is not available.
at weblogic.management.provider.internal.RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:200)
at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:115)
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:881)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:568)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
at weblogic.Server.main(Server.java:71)
>
<Oct 3, 2014 3:00:02 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Oct 3, 2014 3:00:02 AM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Oct 3, 2014 3:00:02 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
[w1_11@localhost common]$
This isn't a script, it's a small bit of an XML file.
Quote:
Now while I am trying to start the Weblogic service it turns out to throw the error shown below:
Code:
[w1_11@localhost common]$ bin/startManagedWebLogic.sh
bin/startManagedWebLogic.sh: line 33: http://10.94.214.192:7001: No such file or directory
bin/startManagedWebLogic.sh: line 34: 10.94.214.192: command not found
Need to set SERVER_NAME and ADMIN_URL environment variables or specify
them in command line:
Usage: ./startManagedWebLogic.sh [SERVER_NAME] [ADMIN_URL]
for example:
./startManagedWebLogic.sh managedserver1 http://localhost:7001
...which tells you that you didn't provide the correct command-line arguments, tells you what they are, and gives you an example....
Quote:
Code:
[w1_11@localhost common]$ bin/startManagedWebLogic.sh 10.94.214.192 http://localhost:7001
bin/startManagedWebLogic.sh: line 33: http://10.94.214.192:7001: No such file or directory
bin/startManagedWebLogic.sh: line 34: 10.94.214.192: command not found
CLASSPATH=/home/w1_11/Oracle/Middleware/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/lib/tools.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/w1_11/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.6.0.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/w1_11/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/w1_11/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/home/w1_11/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbynet.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar::/jre/lib/rt.jar:/home/w1_11/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:.
PATH=/home/w1_11/Oracle/Middleware/wlserver_10.3/server/bin:/home/w1_11/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/jre/bin:/bin:/bin:/usr/local/maven/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http://<hostname>:<port>/console *
***************************************************
<Oct 3, 2014 2:59:29 AM EDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Oct 3, 2014 2:59:29 AM EDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Oct 3, 2014 2:59:30 AM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with OpenJDK 64-Bit Server VM Version 24.65-b04 from Oracle Corporation>
<Oct 3, 2014 2:59:31 AM EDT> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:w1_11
OpenJDK 64-Bit Server VM warning: You have loaded library /home/w1_11/Oracle/Middleware/wlserver_10.3/server/native/linux/i686/libterminalio.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Enter password to boot WebLogic server:w1_11
<Oct 3, 2014 3:00:02 AM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 >
<Oct 3, 2014 3:00:02 AM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.management.ManagementException: [Management:141247]The configuration directory /home/w1_11/Oracle/Middleware/wlserver_10.3/common/config does not exist and the admin server is not available.
at weblogic.management.provider.internal.RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:200)
at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:115)
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:881)
at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:568)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
at weblogic.Server.main(Server.java:71)
>
<Oct 3, 2014 3:00:02 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
<Oct 3, 2014 3:00:02 AM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
<Oct 3, 2014 3:00:02 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
How to fix this?
Did you read/understand the message? It's bolded above...it's telling you VERY plainly that the directory you specified in the configuration doesn't exist/can't be read by the user running that script. So, either create it, or change the permissions. Without the configuration directory/files, the service can't start.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.