How to upload a web application on a free server? [closed]

-2

I am developing an application in JavaWeb (jdk 1.7) with ICEFACES and connection to a mySQL database. I've been testing it locally with GlassFish and Tomcat and everything works perfect, but I tried to upload it to free servers like 260mb.net and 000webhost.com to try but it happens that when I unpack the WAR file that is generated and try to access my application it shows me only the html part of my code, and it does not show what is written in xhtml. What problems can I have?

I am currently working with tomcat 7.0, when I upload the WAR file and start it I get the following error:

FAIL - The application could not be started in context path / SoftwareSJRApacheTomcat FAIL - Found exception org.apache.catalina.LifecycleException: Failed to start component [StandardEngine [Catalina] .StandardHost [localhost] .StandardContext [/ SoftwareSJRApacheTomcat]]

I'm using this free application server, which apparently supports java and j2ee: link

    
asked by David Brito 11.01.2017 в 21:46
source

4 answers

2

Make sure you have correctly deployed your application on a J2EE compatible application server. For what you comment, it seems that your application is on a web server, that's why you can only see the static content.

    
answered by 11.01.2017 в 22:59
2

In order to publish a java web application, you must make sure that the application server supports java technologies, because a java web application can be composed by JSP, XHTML, JS, java bytecode, etc., servers such as tomcat, weblogic , WAS, support applications in java, that's why you can deploy without problem, if you want to try a Paas, take a look at Google App Engine.

    
answered by 11.01.2017 в 23:38
2

Surely it does not support it, surely you uploaded it to an application server such as Glassfish, WildFly, Weblogic or alternatively a servlet container like Tomcat or Jetty ?

A site where you can test your applications for free (limited time) is with Jelastic , I find it very good and easy to use.

There they allow you to create and manage your servers, databases etc ...

    
answered by 12.01.2017 в 00:29
1

Are you sure the server supports it?

Take into account that not any server supports java technology, I really doubt that a free server supports it, anyway if you are sure that the server supports it then it verifies the installation of glassfish and checks if it sends an error.

    
answered by 11.01.2017 в 23:50