Miles to go …

November 19, 2008

Screencast #28: Simple Web Application using Eclipse and GlassFish v3 Prelude

Filed under: web2.0 — arungupta @ 5:00 am

GlassFish v3 Prelude is now available! Some of the cool features are:

  • Modularity using OSGi
  • Rapid deployment using retain session data across HTTP redeploys and deploy-on-save
  • Embeddability
  • Dynamic languages and frameworks
  • Faster start up time
  • Integrated NetBeans and Eclipse tooling
  • Comet and Cometd

This screencast shows how you can create a simple Web application using JSP and Servlets in Eclipse 3.4, deploy it directly on GlassFish v3, use rapid deployment, and debug the application.


The GlassFish plugin for Eclipse has many more features than demonstrated in this screencast and are explained here.

A complete list of GlassFish related screencasts is available here. Other screencasts published on this blog are available here.

Also see GlassFish v3 running using Equinox, Rails and Merb applications using GlassFish Gem, and Embeddable GlassFish.

Submit your bugs Eclipse/GlassFish bugs here, talk to us using GlassFish Plugins Forum, and get the latest information on glassfishplugins.dev.java.net.

Technorati: screencast glassfish v3 eclipse jsp servlets deployonsave deployment

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot
Related posts:
  1. Screencast #27: Simple Web Application using NetBeans 6.5 IDE and GlassFish v3 Prelude
  2. Screencast #26: Develop/Run/Debug Rails application using NetBeans IDE and GlassFish v3 Prelude
  3. Screencast #WS6: Eclipse Europa and GlassFish
  4. Screencast #Web3: jMaki in Eclipse
  5. 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

27 Comments »

  1. jjjj

    Comment by Anonymous — December 2, 2008 @ 12:45 pm

  2. Looks like its quite easy to learn and deploy web applications using the GlassFish v3 Prelude plug in. I am not a Java programmer but from what I have seen, I would’nt mind learning the language. Where can I get learning materials for a Java novice like me?

    Comment by Timothy Mburu — December 3, 2008 @ 8:24 pm

  3. Hi,

    We have many resources available to you to learn Java programming. Please see:

    The New to Java Programming Center:
    http://java.sun.com/new2java/

    The Java Tutorial:
    http://java.sun.com/docs/books/tutorial/

    And Sun Java Courses:
    http://www.sun.com/training/catalog/java/index.xml

    Enjoy the Java Journey!!!

    Dana Nourie
    Sun Microsystems

    Comment by Dana Nourie — December 3, 2008 @ 9:35 pm

  4. When I try to run this program, I did not get the default index.jsp from my eclipse. I created one index.jsp and added at WebContent folder. After that when I try to run the whole application on server I get this error :

    INFO: Deployment of HelloGlass done is 328 ms
    Dec 4, 2008 2:12:19 PM org.apache.catalina.core.StandardWrapperValve log
    SEVERE: StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: java.err.nojdk
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:89)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:375)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
    at org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:195)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:361)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
    at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
    at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
    at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
    at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
    at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
    at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
    at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)

    Note: I am using GlassFish Prelude server and I am using Eclispse ( 3.4 Gayneme ) version.

    Comment by sreeprasad — December 4, 2008 @ 12:46 am

  5. Hi Dana,

    It sounds like you’re trying to use a JRE instead of a full JDK with your glassfish runtime, which is not supported. If you have further questions, please post them on .

    Comment by Rochelle Raccah — December 4, 2008 @ 1:17 pm

  6. very very good blog for saring thankss

    Comment by çiçekçi — January 12, 2009 @ 6:03 am

  7. [Trackback] GlassFish Plugins team released ver 1.0.16 of Eclipse plugin for GlassFish. The team has maintained pretty good cadence in terms of adding features and fixing bugs in the plugin (16 releases in approx as many months). However this particular…

    Comment by Arun Gupta's Blog — January 17, 2009 @ 5:54 am

  8. [Trackback] The Sun Tech Days Singapore started earlier this morning – over 1100 developers, an outstanding audience!!! The kick off had a good local flare when the Gods of Longevity, Fortune, and Prosperity (Fu Lu Shou) showed up to start the…

    Comment by Arun Gupta's Blog — January 20, 2009 @ 12:29 am

  9. hımm. Mixed but good.. :S

    Comment by sinema izle — March 7, 2009 @ 3:24 pm

  10. [Trackback] EclipseCon started earlier today and we are announcing the availbility of GlassFish Tools Bundle for Eclipse. Eclipse and GlassFish in one single download bundle, available here. Here are simple steps to get you started … Download the binary fo…

    Comment by Arun Gupta's Blog — March 24, 2009 @ 2:32 pm

  11. [Trackback] EclipseCon started earlier today and we are announcing the availbility of GlassFish Tools Bundle for Eclipse. Eclipse and GlassFish in one single download bundle, available here. Here are simple steps to get you started … Download the binary fo…

    Comment by Arun Gupta's Blog — March 24, 2009 @ 2:33 pm

  12. [Trackback] I had an opportunity to be interviewed by Ian Skerrett at EclipseCon 2009, see the recording below (originally published): And here is a snapshot: And then you can always read about Day 3 and Day 2 summary of Eclipse…

    Comment by Arun Gupta's Blog — March 27, 2009 @ 6:07 am

  13. thanks

    Comment by nikah şekeri — April 5, 2009 @ 11:18 am

  14. [Trackback] The GlassFish Tools Bundle for Eclipse 1.0 is now available. An earlier blog entry explains how to get started using this bundle. If you used an earlier version (0.99.x) of this bundle, then an upgrade is not supported. However…

    Comment by Arun Gupta's Blog — May 22, 2009 @ 6:07 am

  15. [Trackback] What is an Eclipse Demo Camp ? The Eclipse DemoCamps are an opportunity to showcase all of the cool interesting technology being built by the Eclipse community. They are also an opportunity for you to meet Eclipse enthusiasts in…

    Comment by Arun Gupta's Blog — June 16, 2009 @ 5:26 pm

  16. [Trackback] I, along with several other speakers, presented at Javali (an ancillary event of FISL) earlier today. The event was sponsored by Sun Microsystems. Many thanks to Sou Java and RS JUG for organizing the event and thanks to Serpro…

    Comment by Arun Gupta's Blog — June 23, 2009 @ 6:47 pm

  17. [Trackback] I, along with several other speakers, presented at Javali (an ancillary event of FISL) earlier today. The event was sponsored by Sun Microsystems. Many thanks to Sou Java and RS JUG for organizing the event and thanks to Serpro…

    Comment by Arun Gupta's Blog — June 25, 2009 @ 9:34 pm

  18. This is a nice post.I respect those people who always ready to share their knowledge.

    Comment by Affordable Website Design — July 7, 2009 @ 5:25 am

  19. [Trackback] A new version of GlassFish Tools Bundle for Eclipse (ver 1.1) was recently released. The build contains Eclipse 3.4.2 IDE with WTP Java EE support GlassFish v2.1 pre-registered and configured GlassFish v3 Prelude pre-registered and configured JavaDB s…

    Comment by Arun Gupta's Blog — August 21, 2009 @ 1:21 pm

  20. thankıs

    Comment by cicek — September 10, 2009 @ 7:29 am

  21. Best wishes on your broader command, especially now that the Bear has come out of his cave. God Bless you!

    Comment by rapidshare downloads — September 21, 2009 @ 2:49 am

  22. thankıs

    Comment by çiçekçi — November 17, 2009 @ 12:28 pm

  23. Hi!

    I had the same problem as Dana Nourie.

    org.apache.jasper.JasperException: java.err.nojdk

    Glashfish plugin was using the default JRE. with doesn’t have all the necessary jar files.

    I went to Menu bar the Window > Preferences > Java > Installed JREs.

    And then I added the JRE from JDK install forder.

    And it works!

    Comment by Wladimir Tavares — December 6, 2009 @ 10:48 pm

  24. Hi Arun
    I had the similar problem but now its over
    thanks!

    Comment by Bay Area Web Design — January 26, 2010 @ 1:12 am

  25. Hi Arun,

    What if I already have an Eclipse 3.5 and a "standalone" SGES V211patch14 installation on my laptop (WinXP) ?

    Can I then download the Eclipse Glassfish plugin, and then add a server pointing the appserver directory to the directory of my standalone V211patch14 server ?

    Or will the plugin only work with the appservers that come bundled with the plugin, or aren’t any appservers bundles within the plugin ?

    Please advice.

    Thanks,
    EDH

    Comment by Edwin Dhondt — February 3, 2010 @ 9:29 am

  26. Hi Arun,

    I’ve already got an Eclipse 3.5 installation as well as separate "standalone" SGES V211Patch02 installation on which I deploy things once in a while (not from within Eclipse).

    What will happen when I download and install the Glassfish Eclipse plugin ?

    Will I be able to add a server in Eclipse pointing the appserver directory to my standalone V211patch02 installation, or does the plugin only work with the bundled appservers (or doesn’t the plugin come bundled with appservers) ?

    Thanks,
    EDH

    Comment by Edwin Dhondt — February 3, 2010 @ 9:33 am

  27. EDH,

    An existing Eclipse 3.5 installation can be easily configured to install the plugin and then connect with an externally installed App Server (v211patch02) in your case. This is all explained at:

    http://blogs.sun.com/arungupta/entry/totd_115_glassfish_in_eclipse

    Let me know if you need more guidance.

    Comment by Arun Gupta — February 3, 2010 @ 9:59 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