Hobione's Weblog

Living & Breathing in Web 2.0 Era

Glassfish docroot for “Root” application in the server

Glassfish docroot for “Root” application in the server so url would be

http://atowus2:41877/ instead of http://atowus2:41877/root

If you put a webapp under glassfish-v2\domains\domain1\docroot, only jsp/html files will render. If there is a servlet call (http://atowus:41877/service?svc=upload&action=list&uploadPath&…) from jsp/html, it wont work and you will get a 404, because of by putting a webapp under docroot wont register to server.xml.

Suggestion:

  1. Copy all files from Netbean project, for C:\buildLocal\Root\build\web

to glassfish-v2\domains\domain1\docroot

1.jpg

2. Log in to Admin GUI and choose option

    Local packaged file or directory that is accessible from the Application Server

    3. Under General: Context Root: / (just like the picture in the bottom)

    2.jpg

     

     

    3.jpg Now I am able to access my root app just like it should be http://atowus:41877/                             Thanks to David W Burns for his help :)

    ———————————–Episode 2 —————————————————————————

    Make sure read about alternate doc root issue before do this for your glass fish.

    Advertisements

    January 15, 2008 - Posted by | GlassFish

    3 Comments »

    1. Im trying to deploy a struts 2 application, can you help please?

      Comment by fred | November 23, 2010 | Reply

    2. sorry, I sent the message too early, I depoloy an application into glassfish docroot. but I get an error message that Tiles URI not declared in web.xml or the lib files not available… can you help please?

      Comment by fred | November 23, 2010 | Reply

    3. thanks, i wasted a day searching for this solution, and i though the problem was in web.xml file. I made a post on my blog abou it too (in my native language of course)

      Comment by Clerison Campos Alencar | October 20, 2011 | Reply


    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: