Get Started with Oracle WebLogic Server 12c - Using Zip Installer (TOTD #174)




Oracle WebLogic Server 12c is now available!

After you download the zip installer, here is how you get started on Mac OSX (the commands are highlighted in bold) ...

mkdir 12c
cd 12c
unzip ~/Downloads/wls1211_dev.zip
   creating: modules/
   creating: modules/endorsed/
   creating: modules/features/
  . . .
  inflating: wlserver/server/bin/setWLSEnv.sh 
  inflating: wlserver/server/bin/startNodeManager.sh 
  inflating: wlserver/server/lib/unix/nodemanager.sh
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
export USER_MEM_ARGS="-Xmx1024m -XX:MaxPermSize=256m"
export MW_HOME=`pwd`
./configure.sh
**************************************************
WebLogic Server 12c (12.1.1.0) Zip Configuration

MW_HOME:   /Users/arungup/tools/weblogic/12c
JAVA_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
**************************************************

Please wait while      771 jars are unpacked ...
...Unpacking done                                                                            0 to go

CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/tools.jar:/Users/arungup/tools/weblogic/12c/wlserver/server/lib/weblogic_sp.jar:/Users/arungup/tools/weblogic/12c/wlserver/server/lib/weblogic.jar:/Users/arungup/tools/weblogic/12c/modules/features/weblogic.server.modules_12.1.1.0.jar:/Users/arungup/tools/weblogic/12c/wlserver/server/lib/webservices.jar:/Users/arungup/tools/weblogic/12c/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/Users/arungup/tools/weblogic/12c/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:

PATH=/Users/arungup/tools/weblogic/12c/wlserver/server/bin:/Users/arungup/tools/weblogic/12c/modules/org.apache.ant_1.7.1/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/jre/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Developer/usr/bin

Your environment has been set.
Configuring WLS...

BUILD SUCCESSFUL
Total time: 0 seconds
. $MW_HOME/wlserver/server/bin/setWLSEnv.sh
CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/tools.jar:/Users/arungup/tools/weblogic/12c/wlserver/server/lib/weblogic_sp.jar:/Users/arungup/tools/weblogic/12c/wlserver/server/lib/weblogic.jar:/Users/arungup/tools/weblogic/12c/modules/features/weblogic.server.modules_12.1.1.0.jar:/Users/arungup/tools/weblogic/12c/wlserver/server/lib/webservices.jar:/Users/arungup/tools/weblogic/12c/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/Users/arungup/tools/weblogic/12c/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:

PATH=/Users/arungup/tools/weblogic/12c/wlserver/server/bin:/Users/arungup/tools/weblogic/12c/modules/org.apache.ant_1.7.1/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/jre/bin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Developer/usr/bin

Your environment has been set.
cd ..
mkdir mydomain
cd mydomain
$JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=256m weblogic.Server
<Dec 9, 2011 3:35:22 PM PST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Dec 9, 2011 3:35:22 PM PST> <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>
<Dec 9, 2011 3:35:23 PM PST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.1-b02-383 from Apple Inc..>

/Users/arungup/tools/weblogic/mydomain/config not found

No config.xml was found.
Would you like the server to create a default configuration and boot? (y/n): y
<Dec 9, 2011 3:35:25 PM PST> <Info> <Management> <BEA-140013> </Users/arungup/tools/weblogic/mydomain/config not found>
<Dec 9, 2011 3:35:26 PM PST> <Info> <Security> <BEA-090065> <Getting boot identity from user.>
Enter username to boot WebLogic server:admin
Enter password to boot WebLogic server: <Enter the password as "admin007" - MUST have minimum of 8 characters and an alphabet and a numeral>
For confirmation, please re-enter password required to boot WebLogic server:
<Dec 9, 2011 3:35:33 PM PST> <Info> <Management> <BEA-141254> <Generating new domain directory in /Users/arungup/tools/weblogic/mydomain.>
<Dec 9, 2011 3:35:40 PM PST> <Info> <Management> <BEA-141255> <Domain generation completed in 7,234 milliseconds.>
<Dec 9, 2011 3:35:40 PM PST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 >
<Dec 9, 2011 3:35:42 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Dec 9, 2011 3:35:42 PM PST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
<Dec 9, 2011 3:35:42 PM PST> <Notice> <Log Management> <BEA-170019> <The server log file /Users/arungup/tools/weblogic/mydomain/servers/myserver/logs/myserver.log is opened. All server side log events will be written to this file.>
<Dec 9, 2011 3:35:45 PM PST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<Dec 9, 2011 3:35:46 PM PST> <Warning> <Store> <BEA-280109> <Unable to load the native wlfileio library for the persistent file store "_WLS_myserver". The store will use buffered I/O. The store is still operating in a transactionally safe synchronous mode. See store open log messages for the requested and final write policies.>
<Dec 9, 2011 3:35:49 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
<Dec 9, 2011 3:35:49 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<Dec 9, 2011 3:35:50 PM PST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>
<Dec 9, 2011 3:35:50 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
<Dec 9, 2011 3:35:51 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
<Dec 9, 2011 3:35:51 PM PST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[2]". The address fe80:0:0:0:2acf:daff:fee4:f11a%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address>
<Dec 9, 2011 3:35:51 PM PST> <Error> <Server> <BEA-002606> <The server is unable to create a server socket for listening on channel "Default[1]". The address fe80:0:0:0:0:0:0:1%0 might be incorrect or another process is using port 7001: java.net.BindException: Can't assign requested address>
<Dec 9, 2011 3:35:51 PM PST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.1.13:7001 for protocols iiop, t3, ldap, snmp, http.>
<Dec 9, 2011 3:35:51 PM PST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Dec 9, 2011 3:35:51 PM PST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<Dec 9, 2011 3:35:51 PM PST> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "myserver" for domain "mydomain" running in development mode.>
<Dec 9, 2011 3:35:51 PM PST> <Warning> <Server> <BEA-002611> <The hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1, fe80:0:0:0:0:0:0:1%1.>
<Dec 9, 2011 3:35:51 PM PST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
<Dec 9, 2011 3:35:51 PM PST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>

And the server is now finally started!

The administration console is accessible at localhost:7001/console and looks like:



And logging in with the username "admin" and password "admin007" shows the following page:



Are you with me so far ?

Follow the complete series here.

Comments:

I was at least expecting 12c to have a new CSS!

Posted by guest on December 10, 2011 at 01:18 AM PST #

Hi Arun,

The admin console is at http://localhost:7001/console/
Host and port are not enough ;)

All the best,
-m

Posted by Markus on December 10, 2011 at 01:27 AM PST #

Of course, fixed the typo!

Posted by guest on December 10, 2011 at 01:45 AM PST #

You could also do: export JAVA_HOME=`/usr/libexec/java_home`

Great post!

Posted by Mike Jennings on March 19, 2012 at 09:23 AM PDT #

Is all this stuff really necessary for the user to do?

How come GlassFisg, JBoss AS, TomEE, etc etc don't need installation scripts to be used?

The workflow there is:

download & unzip
point Eclipse WTP runtime to unzip directory
done

Will WebLogic ever support such a flow?

Posted by henk de boer on April 28, 2012 at 08:40 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today