Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
November 21, 2014, 06:57:22 PM

Pages: [1]   Go Down
  Print  
Author Topic: Is it possible / permitted to use 'root.war'  (Read 7126 times)
SkillAdvance
Spaceship Navigator
*****
Offline Offline

Posts: 82


WWW
« on: August 21, 2010, 01:48:36 PM »

Hi; I have a working web application accessible at http://www.skilladvance.com/LCGRR. I would now like to make this a default application for a client of mine, another Lunarpages account.  I can make it work in a subdirectory on their account - is there now a way of utilizing root.war to make a WAR archive into a default app?

I see that there are many questions along the same lines going back several years - does anyone know whether this is now possible?

THanks!
Logged

JR
_______________________________________________________

SkillAdvance LLC
 Web:     http://www.skilladvance.com
_______________________________________________________
SkillAdvance
Spaceship Navigator
*****
Offline Offline

Posts: 82


WWW
« Reply #1 on: August 27, 2010, 07:04:58 AM »

OK, I give up now.  After a week of back and forth with an open ticket, I've come to the conclusion that whilst there is a way to do what I want, LP support is not going to assist.  Yes, I am frustrated and yes, I've noted that in my open ticket.  Just to vent, below is a sample of the responses I've received on this ticket.

"If they are working on 2 accounts on the same server it should be a difference in server configuration and I suspect it may be related to the file name."  [ presumably NOT a difference in server configuration, since the two accounts are on the same server.

I then asked : "I therefore have a question which needs a simple YES or NO response ... is it possible to upload root.war only and have Resin expand that as it does with other WAR files?"

The response: "We really apologize for the inconvenience. I was able to extra .war file. Please only put one root.war file, either in cap or in lower case."  This was followed by
root@happy [/home/lcgrr0/public_html/webapps]# jar xvf root.war 
presumably an indication that a shell command is needed to manually extract info.  Not helpful if one doesn't have shell access.

I asked : "1) Is it possible and permitted on the Lunarpages servers to upload a .war file and access the content using a simple Uniform Resource Locator (like http://www.lcgrr.org) without a path (like ../foobar)? 2) If it is possible, please confirm the exact name of the .war file to be used (root.war, ROOT.war, something else)?"

The response: "We really apologize for the inconvenience. I have checked that your ROOT.war file is not deploying in any resin 3.x based server, Where test .war file is extracting very easily. For Resin packaging/deployment I advise you to visit http://www.caucho.com/resin/admin/deploy.xtp" Yes, I knew that.  The URL is a reference to the Caucho Resin 4.x help pages, also no help!

"Regarding your questions .1 , Yes You can deploy in document root. Your ROOT.war if not extracting by Resin Servants. Please check with the link iI given you above and let us know if that helps."  It didn't.  Partially because the response wasn't understandable. What about question 2?

And to close, the message ended "If you have any questions, please don't hesitate to ask us, we will be happy to answer them. Please feel free to contact us for further help. We are committed to making your hosting experiences pleasant and fulfilling.

Seriously, boilerplate platitudes aren't so helpful.  This experience has been neither pleasant nor fulfilling.

There, I feel better now.  Not that I expect a response, given the liveliness of this forum, but you never know.  If anyone does know the secret of how to deploy a WAR file that is accessible without a path suffix to the URL, I'd be pleased to hear it.

Thanks.








Logged

JR
_______________________________________________________

SkillAdvance LLC
 Web:     http://www.skilladvance.com
_______________________________________________________
SkillAdvance
Spaceship Navigator
*****
Offline Offline

Posts: 82


WWW
« Reply #2 on: August 30, 2010, 02:01:29 PM »

FYI, after a direct discussion with the Resin authors, please see here:

http://forum.caucho.com/showthread.php?p=20350&posted=1#post20350

which says: "Yes, naming the war as "ROOT.war" should deploy to the "/" url. If there was ever a problem/bug with this in Resin 2.1.6, it's definitely fixed by now."

My thought is that something is being blocked specifically by LunarPages.  I'll reopen my support ticket then and try once more.
Logged

JR
_______________________________________________________

SkillAdvance LLC
 Web:     http://www.skilladvance.com
_______________________________________________________
SkillAdvance
Spaceship Navigator
*****
Offline Offline

Posts: 82


WWW
« Reply #3 on: August 31, 2010, 04:13:53 AM »

Update - "... your domain's configuration entry in the global resin.conf file [that] was modified".

Ha!  Getting closer to the er, root cause!!
Logged

JR
_______________________________________________________

SkillAdvance LLC
 Web:     http://www.skilladvance.com
_______________________________________________________
SkillAdvance
Spaceship Navigator
*****
Offline Offline

Posts: 82


WWW
« Reply #4 on: September 01, 2010, 03:04:58 AM »

Update from LP Support:

"I believe the cause of the issue you notice for ROOT.war is explicit declaration of "/" application in Resin configuration. It is usually setup by us by default for jsp files to start working right after uploading into public_html."
Logged

JR
_______________________________________________________

SkillAdvance LLC
 Web:     http://www.skilladvance.com
_______________________________________________________
katrina1
Guest
« Reply #5 on: September 01, 2010, 04:30:45 AM »

Sounds like you are getting somewhere. Hang in there.
Logged
SkillAdvance
Spaceship Navigator
*****
Offline Offline

Posts: 82


WWW
« Reply #6 on: September 02, 2010, 10:04:29 AM »

Everything is now working the way I wanted.  Kudos to support for finally getting there - however, why did the journey have to be sooooo painful!

I accept that not all front-line support have the info to hand regarding Java EE (JSP/Servlets) but to receive virtually unreadable responses to long and detailed messages from me, embellished with what is obviously a block of standard text bidding me to have a nice day, is just more irritation.

I've waited over 24 hours before writing this message, in order to allow my annoyance to dissipate and therefore not to write something I may later regret.  But why, oh why, did I need to jump through so many hoops, so many times, in order to convince someone back up the support line to take my requests seriously.

At least I now know exactly what to request when the same circumstance arises again, which it surely will because I intend to bring a new client to LunarPages very soon.

There ... I feel better.  A bit. 

Thanks for listening, Support!
Logged

JR
_______________________________________________________

SkillAdvance LLC
 Web:     http://www.skilladvance.com
_______________________________________________________
norte1
Space Explorer
***
Offline Offline

Posts: 7


« Reply #7 on: October 18, 2010, 04:41:03 AM »

@SkillAdvance. 
I had the same experience with a basic servlet exception http://www.lunarforums.com/jsp_and_servlets_support/servletexception-t55878.0.html.  I shared your exact notion that front support should not need to get involved in the deep techy stuff, they are there to inform people what .HTML files are used for   Very Happy.    And yes the second line support seems to brush things off a bit too easy.   My guess is that 99.99% of technical programming issues are with the specific programmer's application code, not with LP setup.  And for them they can't tell them apart without tearing through code, so I kind of understand their viewpoint.  Those of us that experience the 0.001% of problems that are LP initiated will be in a world of hurt.   I understand this, but man it did not make my frustrations any easier that's for sure.

One problem, I dare say, is not with Lunar Pages support rather people that post in forums.  Most people that post in forums, do not go back for a final post, and put in the solution.  You have figured this out, your posts are good, and helpful, I've seen a few.  I figured it  out as well, however, I've done my share of dangling threads.

When the sky is falling, everyone runs to the forums.  They post their problems, ask people to help, then when the solution is found they don't return the helpful favour.  That's like getting to watch a whodunnit movie but never getting to see the last 10 minutes of the film.  Crazy.

Keep up the good work SkillAdvance.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: