Monday May 14, 2012

Java Day, Istanbul, May 2012 Trip Report




About 120+ 150 attendees at Java Day, Istanbul learned about Java EE 6/7 earlier today. The Java track had about 100 110 attendees during most of the day. I gave 4 sessions:
  • Developing Modern and Lightweight Java EE 6 Applications using WebLogic 12c (keynote to all the attendees)
  • What's coming in Java EE 7
  • Java EE 6 Hands-on Lab using NetBeans/WebLogic
  • RESTful Web services using JAX-RS

The attendees were generally quiet but the hands-on session had some interesting conversations around Java EE 6 usage. TOTD #177 showcase the WebLogic Maven plugin usage TOTD #176 shows how to run Conference Planner application on WebLogic 12c. I also had the opportunity to meet the Istanbul JUG leader and local GTUG leader. Show your passion about Java by participating at the local JUG, all the more better to volunteer as a speaker :-)

The slides presented are available below.






The self-paced instructions for Java EE 6 hands-on lab using NetBeans and WebLogic is available here.

Some pictures from the event and around the city ...














Here are a couple of more pictures from the local events team:





And the complete album:


Next stop Geecon, Poland ...

Friday May 11, 2012

wls-maven-plugin: WebLogic 12c Maven Plugin Usage (TOTD #177)


Oracle WebLogic Server 12c provides full Java EE 6 platform support. The screencast #39 shows how to build a complete application using NetBeans. The self-paced hands-on lab provides detailed instructions on the same as well. The Maven support in WebLogic 12c is much more improved. Steve Button and Markus Eisele wrote detailed blogs on how/what/why of Maven support in WebLogic. This Tip Of The Day (TOTD) will provide a quick overview of how to get started with using the maven plugin for deploying a Java EE 6 web application.

  1. Download and install WebLogic 12c using the zip installer as explained in TOTD #174.
  2. The Maven plugin can be installed using "$MW_HOME/wlserver/server/lib/wls-maven-plugin.jar". Change the directory to "$MW_HOME/wlserver/server/lib" and give the following commands:
    mvn install
    mvn install:install-file –Dfile=wls-maven-plugin.jar -DpomFile=pom.xml
  3. The maven plugin usage can be seen by giving the following command:
    mvn com.oracle.weblogic:wls-maven-plugin:help
    Or add the following to "~/.m2/settings.xml":
    <pluginGroups>     
    <pluginGroup>com.oracle.weblogic</pluginGroup>
    </pluginGroups>
    And then give the following command:
    mvn wls:help
    to see the output as:
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building wls-maven-sample 1.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- wls-maven-plugin:12.1.1.0:help (default-cli) @ wls-maven-sample ---
    [INFO]
    WebLogic Server Maven Plugin
    The following goals are supported by wls-maven-plugin:

    appc:
    The appc compiler generates and compiles the classes needed to deploy
    EJBs and JSPs to WebLogic Server. It also validates the deployment
    descriptors for compliance with the current specifications at both the
    individual module level and the application level.

    deploy:
    To deploy a weblogic server application (supports all formats WAR,JAR
    etc..)

    create-domain:
    Create a domain for WebLogic Server using the default domain template.
    For more complex domain creation use the WLST goal.

    help:
    Provides a list of all the goals supported by the wls-maven-plugin

    install:
    Install WebLogic Server

    list-apps:
    Lists the deployment names for applications and stand-alone modules
    deployed distributed, or installed to the domain

    redeploy:
    Redeploys a running application or part of a running application

    start-app:
    Starts an application deployed on weblogic server.

    start-server:
    Start WebLogic Server

    stop-app:
    Stops an application

    stop-server:
    Stop Weblogic Server

    undeploy:
    Undeploys the application from weblogic server. Stops the deployment unit
    and removes staged files from target servers

    update-app:
    Updates an application's deployment plan by redistributing the plan files
    and reconfiguring the application based on the new plan contents.

    wlst:
    WLST wrapper for Maven


    For detailed help on a goal, use -Dgoal=<goal-name> -Ddetail=true options.
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.794s
    [INFO] Finished at: Thu May 03 06:38:23 IST 2012
    [INFO] Final Memory: 8M/125M
    [INFO] ------------------------------------------------------------------------
    More details about each goal can be found using the following command:
    mvn wls:help -Dgoal=<GOAL> -Ddetail=true
    For example:
    mvn wls:help -Dgoal=install -Ddetail=true
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Maven Stub Project (No POM) 1
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- wls-maven-plugin:12.1.1.0:help (default-cli) @ standalone-pom ---
    [INFO]
    WebLogic Server Maven Plugin
    The following goals are supported by wls-maven-plugin:

    install:
    Install WebLogic Server

    Available Parameters:

    installCommand:
    The command to use to install the product when using an
    'executable' installer. The following macros are supported -
    @INSTALLER_FILE@ - the path to the installer file, @JAVA_HOME@ -
    path to the java home. eg: @JAVA_HOME@ -Xms512m -Xmx1024m -jar
    @INSTALLER_FILE@ one two

    artifactLocation:
    The address of the artifact. This can be one of the following -
    1) A ':' separated maven coordinates of the form (groupId:artifac-
    tId:packaging:classifier:version) 2) A file on the local system
    (/home/prash/myapps/helloworld.war)3) A remote http url
    (http://foo/a/b.zip)

    middlewareHome:
    The home directory for Oracle WebLogic Server or Fusion
    Middleware installation. Required unless WLS was installed in the
    default location selected by the WLS Maven Plugin's install goal.

    domainHome:
    Location of WLS domain

    localRepository:
    The absolute path of a local maven repository.

    artifactFactory:
    The artifactFactory is used to locate an artifact with a
    groupId:artifactId:artifactName:version in the remote Repository
    as provided by the remoteRepsitories parameter.

    artifactResolver:
    Artifactresolver resolves the artifact from the remote
    repository. Downloads an updated version of the artifact if
    present in the remote repo.



    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 0.889s
    [INFO] Finished at: Wed May 02 17:35:46 PDT 2012
    [INFO] Final Memory: 6M/89M
    [INFO] ------------------------------------------------------------------------

  4. Build a Java EE 6 application
    1. Create a Java EE 6 Maven web application as:
      mvn archetype:generate
      -DarchetypeGroupId=org.codehaus.mojo.archetypes
      -DarchetypeArtifactId=webapp-javaee6 -DgroupId=example
      -DartifactId=wls-maven-sample -DarchetypeVersion=1.5
      -DinteractiveMode=false
    2. Add a trivial servlet to the sample project by following the screencast #39. The complete source code for the project can be downloaded here.
  5. Add the following code fragment to the generated "pom.xml":
    <plugin>                
    <groupId>com.oracle.weblogic</groupId>
    <artifactId>wls-maven-plugin</artifactId>
    <version>12.1.1.0</version>
    </plugin>
  6. Try some Maven commands in the "wls-maven-sample" directory
    1. The server can be started as:

      mvn wls:start-server
      -DmiddlewareHome=/Users/arungup/tools/weblogic/12c
      -DdomainHome=/Users/arungup/tools/weblogic/mydomain

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building wls-maven-sample 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- wls-maven-plugin:12.1.1.0:start-server (default-cli) @ wls-maven-sample ---
      [INFO] ++====================================================================++
      [INFO] ++ wls-maven-plugin: start-server ++
      [INFO] ++====================================================================++
      .[INFO] Starting server in domain: /Users/arungup/tools/weblogic/mydomain
      [INFO] Check stdout file for details: /Users/arungup/tools/weblogic/mydomain/server-922019421247284651.out
      [INFO] Process being executed, waiting for completion.
      ................
      [INFO] Server started successful
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 16.919s
      [INFO] Finished at: Wed May 02 18:06:22 PDT 2012
      [INFO] Final Memory: 5M/88M
      [INFO] ------------------------------------------------------------------------
    2. Build and deploy the application as:

      mvn wls:deploy
      -DmiddlewareHome=/Users/arungup/tools/weblogic/12c
      -DdomainHome=/Users/arungup/tools/weblogic/mydomain
      -Duser=admin
      -Dpassword=admin007
      -Dsource=/Users/arungup/code/samples/weblogic/wls-maven-sample/target/wls-maven-sample-1.0-SNAPSHOT.war

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building wls-maven-sample 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- wls-maven-plugin:12.1.1.0:deploy (default-cli) @ wls-maven-sample ---
      [INFO] ++====================================================================++
      [INFO] ++ wls-maven-plugin: deploy ++
      [INFO] ++====================================================================++
      weblogic.Deployer invoked with options: -noexit -user admin -deploy -source /Users/arungup/code/samples/weblogic/wls-maven-sample/target/wls-maven-sample-1.0-SNAPSHOT.war
      <May 3, 2012 8:24:17 AM IST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, wls-maven-sample-1.0-SNAPSHOT [archive: /Users/arungup/code/samples/weblogic/wls-maven-sample/target/wls-maven-sample-1.0-SNAPSHOT.war], to configured targets.>
      Task 0 initiated: [Deployer:149026]deploy application wls-maven-sample-1.0-SNAPSHOT on myserver.
      Task 0 completed: [Deployer:149026]deploy application wls-maven-sample-1.0-SNAPSHOT on myserver.
      Target state: deploy completed on Server myserver

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 7.745s
      [INFO] Finished at: Thu May 03 08:24:18 IST 2012
      [INFO] Final Memory: 11M/130M
      [INFO] ------------------------------------------------------------------------
    3. The application is accessible at localhost:7001/wls-maven-sample-1.0-SNAPSHOT/TestServlet.
    4. Stop the server as:

      mvn wls:stop-server
      -DmiddlewareHome=/Users/arungup/tools/weblogic/12c
      -DdomainHome=/Users/arungup/tools/weblogic/mydomain
      -Duser=admin
      -Dpassword=admin007

      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building wls-maven-sample 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- wls-maven-plugin:12.1.1.0:stop-server (default-cli) @ wls-maven-sample ---
      [INFO] ++====================================================================++
      [INFO] ++ wls-maven-plugin: stop-server ++
      [INFO] ++====================================================================++
      [INFO] Stop server in domain: /Users/arungup/tools/weblogic/mydomain
      [INFO] Process being executed, waiting for completion.
      [INFO] [exec] Stopping Weblogic Server...
      [INFO] [exec]
      [INFO] [exec] Initializing WebLogic Scripting Tool (WLST) ...
      [INFO] [exec]
      [INFO] [exec] Welcome to WebLogic Server Administration Scripting Shell
      [INFO] [exec]
      [INFO] [exec] Type help() for help on available commands
      [INFO] [exec]
      [INFO] [exec] Connecting to t3://localhost:7001 with userid admin ...
      [INFO] [exec] Successfully connected to Admin Server 'myserver' that belongs to domain 'mydomain'.
      [INFO] [exec]
      [INFO] [exec] Warning: An insecure protocol was used to connect to the
      [INFO] [exec] server. To ensure on-the-wire security, the SSL port or
      [INFO] [exec] Admin port should be used instead.
      [INFO] [exec]
      [INFO] [exec] Shutting down the server myserver with force=false while connected to myserver ...
      [INFO] [exec] WLST lost connection to the WebLogic Server that you were
      [INFO] [exec] connected to, this may happen if the server was shutdown or
      [INFO] [exec] partitioned. You will have to re-connect to the server once the
      [INFO] [exec] server is available.
      [INFO] [exec] Disconnected from weblogic server: myserver
      [INFO] [exec] Disconnected from weblogic server:
      [INFO] [exec]
      [INFO] [exec]
      [INFO] [exec] Exiting WebLogic Scripting Tool.
      [INFO] [exec]
      [INFO] [exec] Done
      [INFO] [exec] Stopping Derby Server...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 10.847s
      [INFO] Finished at: Thu May 03 06:37:48 IST 2012
      [INFO] Final Memory: 9M/125M
      [INFO] ------------------------------------------------------------------------

Simple, quick, and easy!

Are you building Java EE 6 applications on WebLogic ? With Maven ? Now you can fully integrate the WebLogic lifecycle with your "pom.xml".

The WebLogic Application Development Guide provide detailed documentation on the maven plugin.


Wednesday May 09, 2012

OTN Developer Days in Turkey and Johannesburg, Geecon in Poland, JEEConf in Ukraine


Several Java EE sessions around the world over next few days ...


Where: Ceylan Intercontinental Istanbul, Turkey
When: May 14, 9am
Sessions: Several Java EE 6/7 sessions
Agenda, Register



Where: Poznan, Poland
When: May 16-18
Sessions:
    Java EE 6 = Less Code + More Power (May 16, 9am)
    Java EE 7: Developing for the Cloud (May 16, 11:10am)
    JAX-RS 2.0: RESTful Java on Steroids (May 18, 11:20am)
    PaaSing a Java EE 6 Application (May 18, 2:30pm)



Where: International Exhibition Center, Kiev, Ukraine
When: May 19, 10am
Session: Java EE 7: Developing for the Cloud
Register



When: May 21
Where: The Forum, Johannesburg, South Africa
Session: Several
Agenda, Register


Where will I see or run with you ?

Wednesday May 02, 2012

Java EE 6 Sample Application on WebLogic 12c: Conference Planner (TOTD #176)


Oracle WebLogic 12c provide a Java EE 6 Full Platform compliant application server. During the launch event last year, a Java EE 6 application was shown that demonstrated all the features of Java EE 6. This application allows conference organizers to publish details about their conference such as tracks, sessions, and speakers. It also allows attendees to register for the conference and prepare their schedule. The application is built as a typical 3-tier Java EE 6 application using JavaServer Faces (with PrimeFaces widgets) for the front-end, Enterprise JavaBeans for the middle tier business logic, and Java Persistence API for connectivity with the database.

This Tip Of The Day (TOTD) shows how to deploy the application on WebLogic 12c.
  1. Check out the application from svn.java.net/svn/glassfish~svn/branches/arun/ConferencePlanner/trunk/ or download the source bundle.
  2. Download and install Apache Derby. If you are using JDK7 then it comes bundled with Derby and installed in directory (/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/db). Any other database can be used as well but the instructions will differ accordingly.
    1. Create "derby.properties" file in the main directory of and specify the following content:

      #
      derby.user.sa=sa

      This creates a user "sa" with the password "sa".
    2. Start the database by invoking the "bin/startNetworkServer" script.
    3. Copy "derbyclient.jar" to "mydomain/lib" directory and restart the server by using "mydomain/startWeblogic.sh" script.
    4. Create and populate the database by invoking the interactive SQL scripting tool "bin/ij". Specify the location of the SQL from the application as shown.
      ./ij
      ij version 10.8
      ij> driver 'org.apache.derby.jdbc.ClientDriver';
      ij> connect 'jdbc:derby://localhost:1527/cp;ServerName=localhost;databaseName=cp;user=sa;password=sa;create=true';
      ij> run '/Users/arungup/code/workspaces/arun/ConferencePlanner/trunk/src/main/sql/javaone-sf-2011.sql';
      ij> . . .
      1 row inserted/updated/deleted
      ij> exit;
  3. Download, unzip, and configure WebLogic 12c as described in TOTD #174. Here is my simple script that performs all the steps required:
    mkdir 12c
    cd 12c
    export CLASSPATH=/Users/arungup/tools/db-derby-10.8.2.2-bin/lib/derbyclient.jar
    unzip ~/Downloads/wls1211_dev.zip export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home ./configure.sh . $MW_HOME/wlserver/server/bin/setWLSEnv.sh cd .. mkdir mydomain cd mydomain $JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -XX:MaxPermSize=256m weblogic.Server

    Notice, here we are explicitly including "derbyclient.jar" in the  CLASSPATH. This will ensure that Derby database's JDBC driver is available to WebLogic Administration Console which was not able to pick up JAR files from "mydomain/lib" directory otherwise.
  4. Access WebLogic Admin Console at localhost:7001/console, the login/password used in TOTD #174 is admin/admin007.
  5. Create a JDBC data source
    1. Click on "Data Sources" as shown.


    2. Click on "New" and select "Generic Data Source" as shown.

    3. Specify the values as shown.



      The JDBC resource name is "jdbc/cp" and the database is "Derby".
    4. Change the "Database Driver" to "Derby's Driver (Type 4) Versions: Any" and click on "Next". Make sure to not choose Type 4 XA driver which is the default.
    5. Take the defaults and select "Next".
    6. Specify the connection properties as shown.



      And click on "Next".
    7. Click on "Test Configuration" to make sure that every thing is configured correctly. Make sure to see the message "Connection test succeeded.". Verify the defaults and click on "Next".
    8. Select the target "myserver" as shown



      and click on "Finish".
  6. Deploy the application
    1. In the localhost:7001/console, click on "Home" (at the top center) and then "Deployments".


    2. Click on "Install".
    3. Specify the location of the WAR file as shown



      Make sure to pick the WAR file by selecting the radio button and click on "Next".
    4. Take the defaults and click on "Next".
    5. Take the defaults again and click on "Next". Notice that "myserver" is chosen as the target of deployment.
    6. Click on "Finish". After the application is deployed the console shows the following snapshot:


  7. Access the application at localhost:7001/ConferencePlanner to see the output as:



Feel free to browse through the source code!

Download WebLogic and play with it! Screencast #39 explains how to build a more comprehensive Java EE 6 application using NetBeans and WebLogic.

Wednesday Feb 01, 2012

Java EE 6 pulled crowd at Austin JUG




I delivered a NetBeans-driven Java EE 6 session to about 80+ attendees at the Austin JUG yesterday. The session built a typical three-tier Web application using the new/updated technologies in the Java EE 6 platform. I was told this is one of the largest attendance seen at the JUG in recent months. Java EE 6 is indeed a crowd puller ;-)

Rob Ratcliff, the JUG leader, started with a great overview of "Whats new in Java" covering recent JDK update releases, Java FX 2.1 Developer Preview for Mac and Linux, Java EE 6 and WebLogic 12c, NetBeans 7.1 and other stuff. His complete slides are available here. I was fortunate to speak at the JUG because an informal survey of the attendees showed that nobody attends (or plan to attend) a conference in the coming months.

During my session, the highly interactive attendees learned about NetBeans wizard-driven Java EE 6 application development. Here are some of the features that were demonstrated in the talk:
  • Improvements in Java Persistence API
  • "web.xml"-free and annotation-driven Servlets
  • Simplified packaging of EJBs in a WAR file, no-interface and single file definition of EJB
  • Session preservation across redeploys
  • Facelets (XHTML/CSS) as templating language for JavaServer Faes to achieve true MVC
  • Integration of Bean Validation with JPA and JSF
  • Typesafe dependency injection and Producer/Observer of events using CDI
  • RESTful resources using JAX-RS

The application was built using NetBeans and deployed on GlassFish. This same application can be easily deployed on WebLogic 12c as well since it is full Java EE 6-compliant as well now. The complete instructions for NetBeans/GlassFish are available here and same instructions for NetBeans/WebLogic will be made available shortly as well.

The session ran almost 45 minutes beyond the scheduled time with most of the attendees staying late and asking questions. The feedback from the attendees was very positive. One of them was even starting a new project using NetBeans + Java EE 6 + GlassFish next week so this talk was directly relevant. Also found another attendee using GlassFish for development and WebLogic for deployment for their Java EE 6 application. Rob used GlassFish for an internal US Military project and has been deployed for more than 2 years with nearly zero maintenance.

Check out some pictures from the JUG visit ...






A tweet like the one below definitely make the quick trip worth it ...



The formal JUG session was followed by a beer-a-thon (lemonade-a-thon for me ;-) at BJs.

Some interesting facts about Austin ...
  • Michael Dell (chairman and CEO of Dell) lives in Austin, Dell worldwide headquarters are in Austin.
  • Lance Armstrong is from Austin.
  • Sandra Bullock, Matthew McConaughey, and Brad Pitt has homes in Austin.
  • Whole Foods chain started and headquartered in Austin. I was lucky enough to squeeze time out for a lunch with a colleague at one of their stores in this less-than-24-hour visit to Austin.
  • Keep Austin Weird
Download the NetBeans/GlassFish instructions and let us know how you are using Java EE 6.

Next stop is Reykjavik (Iceland), Stockholm (Sweden) and Umeå (Sweden), more on that later ...

Tuesday Jan 03, 2012

Java EE 6 using WebLogic 12c, NetBeans, and MySQL (Screencast #39)




Oracle WebLogic Server 12c is now available and comes with a zip installer.

This video shows how to develop and deploy a Java EE 6 application on WebLogic 12c using NetBeans. It builds a simple application using Java Persistence API 2.0, Enterprise JavaBeans 3.1, Servlets 3.0, Java API for RESTful Web Services 1.1, Java Server Faces 2.0, and Contexts & Dependency Injection 1.0. The video also explains how to configure MySQL database in NetBeans and use it for accessing the database tables in the Java EE 6 applications.

Enjoy!



You can also check out the sample code built in this application from here.

What kind of Java EE 6 applications are you deploying on WebLogic ?

What else would you like to see on this blog relating to Java EE 6 and WebLogic ?

Follow the complete series here.

Wednesday Dec 21, 2011

WebLogic 12c and Coherence: OTN Virtual Developer Day in Jan/Feb 2012



Oracle WebLogic Server 12c is now available for about 2 weeks. Do you know it comes with an easy-to-use zip installer ? Have you downloaded and tried it ?

An OTN Virtual Developer Day is coming to talk about the latest and greatest features in WebLogic Server 12c. This is your chance to immerse yourself in learning how WebLogic Server 12c supportes the Java EE 6 standards how Maven support is enhanced and made much more feature-rich, extensive integration with NetBeans and Eclipse will be practised using hands-on lab sessions, and there will be opportunity to learn about Coherence as well.

The complete agenda and session abstract is available here.

When ?
Americas, Jan 24, 2012
Europe/Russia: Feb 7th, 2012
Asia Pacific (English): Feb 9, 2012
Asia Pacific (Chinese): Feb 21, 2012

Just register online here!

Also check out the following useful links:
  1. Replay from online launch event + developer deep dive
  2. WebLogic Blog
  3. Online Documentation
  4. WebLogic Server Data Sheet

Also check out the social presence of WebLogic by clicking on the image below:



All the information about WebLogic Server is available from oracle.com/weblogic!

Friday Dec 09, 2011

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.

Oracle WebLogic Server 12c - Now Available, With Zip Installer! (TOTD #173)




Oracle WebLogic Server 12c is now available for download!

What are the main themes of this new release ?
  • Java EE 6 and Developer Productivity
  • Simplified Deployment and Management with Virtualization
  • Integrated Traffic Management
  • Enhanced Availability and Disaster Recovery
  • Much Higher Performance
  • Seamless Upgrade
Go get your zip installer now ...



Get a quick preview of the key features in this interview with Mike Lehmann at Oracle Open World/JavaOne Latin America 2011:



Also check out the following useful links:
  1. Replay from online launch event + developer deep dive
  2. Online Documentation
  3. WebLogic Server Data Sheet
All the information is available from oracle.com/weblogic!

Wednesday Dec 07, 2011

Oracle WebLogic Server 12c Preview at Oracle Open World/JavaOne Latin America 2011 + Launch Playback




Get a quick preview of Oracle WebLogic Server 12c from Mike Lehmann (Sr Director, Product Management, Fusion Middleware at Oracle) at Oracle Open World/JavaOne Latin America 2011.

What are the main themes of this new release ?
  • Java EE 6 and Developer Productivity
  • Simplified Deployment and Management with Virtualization
  • Integrated Traffic Management
  • Enhanced Availability and Disaster Recovery
  • Much Higher Performance
  • Seamless Upgrade



And if you want to learn more about WebLogic 12c then a replay of the online launch event from last week is now available here. It covers 1-hour executive overview by Hasan Rizvi and 1-hour developer deep dive, with several demos, by Will Lyons.

Bits coming soon ...
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