Miles to go …

August 2, 2010

Screencast #31: Java EE 6 using GlassFish and Eclipse 3.6 – Oracle Enterprise Pack for Eclipse 11.1.1.6 is now available – 5 new screencasts

Filed under: General — arungupta @ 10:44 am

Oracle Enterprise Pack for Eclipse 11.1.1.6 is now available – download here.

This is a set of plugins for Eclipse 3.6 that provide support for Oracle Coherence, Weblogic Scripting Tool (WLST), WebLogic server JDBC deployment descriptor and Web services annotation editor, and now Java EE 6 & GlassFish as well!

The plugins can also be downloaded from Eclipse Marketplace.

This video tutorial shows:

  1. Getting started with GlassFish in OEPE
  2. A simple Java EE 6 application (JSP, Servlets, EJB)
  3. Reading database table using Java Persistence API 2
  4. Using Facelets with Java Server Faces 2
  5. RESTful Web services using JAX-RS

Enjoy!

Note, this is a playlist of all the videos so click on little arrows (shown as "<" or ">") to view the different videos.

Please give us feedback on GlassFish Forums.

Technorati: screencast javaee6 glassfish tutorial eclipse oepe oracle

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot
Related posts:
  1. Screencast #30: Java EE 6 & GlassFish 3 using NetBeans 6.9 – 5 screencasts
  2. Screencast #36: Web App Development using Java EE 6, GlassFish, and Eclipse – Webinar Recording
  3. Oracle at Eclipse Con 2011: OSGi-enabled Java EE Applications using GlassFish Tutorial and Other Sessions
  4. Screencast #SWDP1: How to download, install, and get started with Sun Web Developer Pack ?
  5. Screencast #38: “Developing OSGi-enabled Java EE Applications using GlassFish” Tutorial at EclipseCon 2011

15 Comments »

  1. Great, Arun !

    I was waiting for that since our chat at FISL!

    Keep up the good work and thanks for all!

    Comment by Alessandro Dias — August 2, 2010 @ 5:48 pm

  2. Excellent presentation!

    Comment by Sam — October 18, 2010 @ 2:02 pm

  3. This tutorial helped me a lot!
    Thank you very much!

    Next time specify please the exact version of eclipse you’re using. (I had the M6 release and installing OEPE through the remote site did not work)

    Comment by seaqxx — October 28, 2010 @ 1:44 pm

  4. Hi Arun,

    You webcast helped me a lot. Thanks for it.

    I was trying to configure my existing projects in glassfish + eclipse combination.

    I have a dynamic web project, which is dependent upon few other java projects. (where my business logic is).

    When i deploy web project on glass fish. and from open/launch configuration give in server class path all my java projects and other third party jars needed.

    they r not detected by glass fish. and i get class not found exception.

    same thing works for TOMCAT. but somehow its not working for glassfish.

    can you please suggest what I can do to make it work.

    Comment by Praveen — November 1, 2010 @ 12:36 am

  5. Praveen,

    Have you tried posting your question to ?

    Comment by Arun Gupta — November 1, 2010 @ 10:45 am

  6. yes…
    Well I posted question there and on your blog together. Still waiting for response from there.

    Comment by Praveen — November 1, 2010 @ 11:42 am

  7. This blog mentions a version of OEPE that has been updated since August 2010.
    Try the October 2010 release from http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/index.html

    It might help, as some fixes where done both on WTP and the plugin to address dependent libs issues.

    Comment by ludo — November 1, 2010 @ 3:30 pm

  8. Praveen,

    Hope that answers your question now. BTW, I don’t see your question posted at:

    https://glassfishplugins.dev.java.net/servlets/SummarizeList?listName=users

    Comment by Arun Gupta — November 1, 2010 @ 3:59 pm

  9. Thanks for a great tutorial, it helped me a lot!

    I found one problem with JSF – in the latest version I installed (oepe-helios-all-in-one-11.1.1.6.1 for Win32), I have to first check the "JavaServer Faces" under project properties – "Project Facets, otherwise the URL mapping to "/faces" and the templating mechanism did not work.
    This was not mentioned in the tutorial, so I suppose this was checked by default in the version that Arun used when creating the tutorial.
    But maybe this note will help people suffering with the same problem with JSF.

    Comment by Michal Aron — January 30, 2011 @ 6:20 am

  10. sir i m getting this bug while starting glassfish server.. "GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties ‘Runtime Environment’ section." but i hav installed the latest jdk-6u24 –windows-i586.exe .plz help me out i will be very thankful to u

    Comment by kamal garg — February 23, 2011 @ 10:46 pm

  11. Thanks Michal for your comment.

    Kamal,

    Check if your JAVA_HOME is pointing to JDK or JRE ?

    Comment by Arun Gupta — February 25, 2011 @ 5:13 pm

  12. im getting below error msg while i start GF server in eclipse 3.6

    GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties ‘Runtime Environment’ section.

    please help.

    Comment by please help.... — March 21, 2011 @ 11:26 am

  13. please help,

    You do need a JDK 1.6. It seems like you using JRE to run the GlassFish. Can you please download/install JDK 1.6 and configure it in Eclipse and for GlassFish ?

    Comment by Arun Gupta — March 30, 2011 @ 3:10 pm

  14. Hi Arun,

    Appreciate your efforts for publishing this tutorial. This was really helpful.

    I tried the examples using oepe-helios-installer-11.1.1.7.1.201103091755-win32 and ogs-3.1-windows-ml.

    While trying the example for JAX-RS (the last one), i facing NullPointerException while creating entity manager from the injected entity manager factory. below is the exception stacktrace. It would be helpful, to you know your insight. This exception occurs exactly while creating entity manager. However, the same approach works with other example when entitymanagerfactory is injected to HelloServlet.

    SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
    java.lang.NullPointerException
    at resource.SimpleResource.getXml(SimpleResource.java:40)
    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 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:167)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1347)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1279)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:419)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)

    WARNING: StandardWrapperValve[JAX-RS Servlet]: PWC1406: Servlet.service() for servlet JAX-RS Servlet threw exception
    java.lang.NullPointerException
    at resource.SimpleResource.getXml(SimpleResource.java:40)
    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 com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:167)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1347)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1279)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1219)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:419)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:662)

    Comment by Mathivanan — April 10, 2011 @ 9:39 am

  15. Mathivanan,

    Posted the response back on users@glassfish alias.

    Did you add @ManagedBean on the JAX-RS resource ?

    Comment by Arun Gupta — April 10, 2011 @ 11:31 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.
Powered by WordPress