• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem to do a deploy of war file.

 
Ranch Hand
Posts: 675
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I installed Apache Tomcat 9 in my VPS now I'm trying to make a deploy but I'm receiving error im my browser that is Google, I access tomcat by IPaddress:8080 and login. I the Context Path field I put /var/www/html/itcmedbr that is my domain folder and after Select WAR file to upload and click in Deploy button the error is "ERR_CONNECTION_RESET".
tomcat-users.xml:

What other things I must to do to made this deploy.
Thanks and best regards.
 
Saloon Keeper
Posts: 27879
197
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
The simplest way to deploy a webapp to Tomcat is to create a WAR file and copy that file to the TOMCAT_HOME/webapps/ folder. Tomcat will then (by default) unzip it to create a directory subtree with the same name as the WAR file, less the ".war" extension. The URL context assigned to the webapp will be the name of this directory, so if I drop foo.war into TOMCAT_HOME/webapps/, then the URL for the webapp would be http://ipaddress:8080/foo/

You can use the Tomcat Manager webapp to upload the WAR into tomcat using its file-browse based deploy system, but the same effect will occur.

It's important to note that when you use JEE container security you do NOT invoke the login page directly. The login page is automatically presented when the user is not logged in and has requested a secured URL from the webapp. If you attempt to access the login page via a direct client URL request, it won't work because the necessary security environment has not been set up.

 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok my master http://ipaddress:8080/itcmedbr/ are working fine, I tried do this in the /var/www/html but Tomcat don't unzipped it to create a directory subtree my objective is www.itcmedbr.com what should I do?
 
Tim Holloway
Saloon Keeper
Posts: 27879
197
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
The /var/www/html directory is used by the Apache Httpd webapp server, Not by Apache Tomcat. The httpd server and Tomcat are very different applications and you should not attempt to put anything Tomcat-related under /var/www/html.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In /etc/httpd/conf.d/ I created itcmedbr.com.conf with following content:

I created too itcmedbr.com directory:

I don't have any information of itcmedbr.com in my  tomcat only in my httpd. What I must to do to deploy itcmedbr.war?
 
Tim Holloway
Saloon Keeper
Posts: 27879
197
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
You cannot use httpd to deploy JEE (Tomcat) webapps. It is a completely different sort of program.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't use Tomcat, my question is how to extract the war file to access my pages in browser?
 
Tim Holloway
Saloon Keeper
Posts: 27879
197
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
You have to install a JEE webapp server. If not Tomcat, then  jetty, WebSphere, Wildfly or something that speaks Java.

The Apache HTTP webapp server does not speak Java. It has no way to handle a WAR.
 
Saloon Keeper
Posts: 15630
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mean that you have static HTML pages inside your WAR file, that you want to host using httpd?

If so, then why are they being packaged in a WAR in the first place?
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I install wildfly, now I am study how to deploy my application. I'll close this topic and I'll open a new topic if necessary.
Thanks and best regards.
 
Cezar Apulchro
Ranch Hand
Posts: 675
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because my application is Jsp, Servlet, Mysql, JasperSoft, Hibernate.
 
Stephan van Hulst
Saloon Keeper
Posts: 15630
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, you started out by telling us you were using Tomcat, then httpd, then Wildfly. Why are you changing everything all the time?
reply
    Bookmark Topic Watch Topic
  • New Topic