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:
- Copy all files from Netbean project, for C:\buildLocal\Root\build\web
to glassfish-v2\domains\domain1\docroot
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)
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.
3 Comments »
Leave a Reply
-
Archives
- January 2011 (3)
- September 2010 (1)
- August 2010 (1)
- May 2010 (1)
- April 2010 (1)
- November 2009 (1)
- July 2009 (1)
- June 2009 (5)
- May 2009 (2)
- April 2009 (4)
- March 2009 (2)
- January 2009 (3)
-
Categories
-
RSS
Entries RSS
Comments RSS
Im trying to deploy a struts 2 application, can you help please?
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?
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)