This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests and have Scott Selikoff and Jeanne Boyarsky on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Tomcat_Amazon

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am in my Amazon instance

http://ec2-52-29-66-6.eu-central-1.compute.amazonaws.com:8080/index.jsp

and I can see Tomcat when I try to Host Manager or Manager app.

I get error 404.

Any idea, please?

Regards, Isaac
 
Saloon Keeper
Posts: 23255
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are getting a 404 error from Tomcat on AWS, then the reason is exactly the same reason that you'd get one from a Tomcat installed on your own local machine - the resource you requested could not be found in the webapp context that you specified (which for the URL given is the root context).

Tomcat doesn't behave any differently when running on AWS or EBS than it does when running in a non-cloud environment. Although if you're using an Amazon-supplied copy of Tomcat, they may not have installed the Tomcat Manager or Admin webapps. Those are optional components and potential security risks, so some people prefer not to use them.
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes I installed the updates, for the managed and it works now so I upload my app and when I submit from the index to the Servlet the page appear in white.

Remote URL doesnt works completely:


http://ec2-52-29-66-6.eu-central-1.compute.amazonaws.com:8080/leanRouteStressTestAnalyzer_1/LRStressTestAnalyzer?loadTime=1&loadUsers=1000&reQuestFunc=sdfsdfs



Local URL works fine:


http://localhost:8080/leanRouteStressTestAnalyzer_1/respuesta.jsp



Before submit the URL is:

http://ec2-52-29-66-6.eu-central-1.compute.amazonaws.com:8080/leanRouteStressTestAnalyzer_1/

(index.jsp it works)

after it the URL is:

http://ec2-52-29-66-6.eu-central-1.compute.amazonaws.com:8080/leanRouteStressTestAnalyzer_1/LRStressTestAnalyzer?loadTime=1&loadUsers=2000&reQuestFunc=thft

(page in blank)

Any idea, please?
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I changed server and I get the same probelm, in local it works it is adding the Servlet path to the ULR instead of the redirection to the JSP name file

Any idea, please?
 
Tim Holloway
Saloon Keeper
Posts: 23255
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Is your web application in WAR format?

2. Where are you deploying the WAR on Amazon?

3. Does Tomcat have read-access rights to this location?

 
No, tomorrow we rule the world! With this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic