set!Import project to NetBeans, setup MySQL driver, and run it on GlassFish 3.1.2.2Since this is an article about migrating from GlassFish to WebLogic, I will assume you know how to get this application running on GlassFish 3.1.2.2 from NetBeans. But I will provide some highlights to make it work smoothless.In order for the @DataSourceDefinition entry inside class InitializeSampleDataSessionBean work fine and connect to your MySQL database in GlassFish, make sure you have copied MySQL JDBC Driver into glassfish3/glassfish/domains/domain/domain1/lib/ext/ of course, before starting it up. In WebLogic, you don't need to do this since MySQL Connector/J is already part of the default installation.Download the project 'bookmark-javaee6' to your local machine by either cloning the GitHub repository locally, or by downloading the zip and extracting somewhere. This is an Apache Maven project, so don't worry about environment. Just make sure you have this project up and running on a GlassFish domain.Import the project bookmark-javaee6 into your NetBeans environment. Right click on bookmark-javaee6 project and select Run. Test the application by going to http://localhost:8080/bookmark-javaee6.You should by now looking at the following screen:Test the Bookmark WebService with a simple clientThe sample Bookmark application comes with a JAX-WS WebService.You can test this WebService in many ways, but I will give you three main options: one is to try SoapUI. Another option is to right click on the WebService in NetBeans, and select Test WebService. Last option is to run the bookmark-javaee6-wsclient that comes with JUnit Test Cases. Make your choice, and see it working!Running the sample Java EE 6 application in WebLogic 12cBefore we go to a pure Maven description on how to do this, let's give NetBeans a try. Now that you have everything ready (a Java EE 6 application running on GlassFish 3.1.2.2), with source code as a Maven project in NetBeans, let's add WebLogic as a Server to it.Go to the Services tab in NetBeans, and right click in Servers, then select Add Server....Select Oracle WebLogic ServerInsert the path location of your recently installed WebLogic server. Remember to select the subfolder wlserver. If you installed as described in the beginning, you should try /opt/wls12120/wlserverType your username and password of your WebLogic domainFinish this wizardNow we must change from GlassFish to WebLogic in Project Properties. Select bookmark-javaee6 project and right click on it. Go to Run and select your newly created WebLogic 12.1.2 server. Press OK. See the picture below to understand what has to be done:Start your project by right clicking in it, and select Run! Test your application running on WebLogic by going to the following location: http://localhost:7001/bookmark-javaee6In case you had any problem, try these two articles:Registering Oracle WebLogic Server in NetBeansInstalling, Configuring, and Testing WebLogic Server 12c Developer Zip Distribution in NetBeansSuccess! You have now the same application running on WebLogic 12c! Without any code change!WebLogic understands GlassFish Deployment DescriptorI haven't mentioned this before because I wanted you to see the sample application up and running on WebLogic, but what you can do in this application is to remove src/main/webapp/WEB-INF/weblogic.xml, and change the context-root inside glassfish-web.xml. What will happened if you redeploy