java - jsp not working on linux ec2 -
i have set amazon linux ec2. new it, want set up. have domain pointed, elastic ip, php/apache/mysql. wanting run java on instance well, assume possible. php stuff works, when hit .jsp page, looks simple html.
i log instance through console, , these:
[ec2-user@ip-* ~]$ java -version java version "1.7.0_25" openjdk runtime environment (amzn-2.3.10.3.29.amzn1-x86_64) openjdk 64-bit server vm (build 23.7-b01, mixed mode)` echo $path /usr/local/bin:/bin:/user/bin:/usr/local/sbin:/usr/sbin:/sbin:opt/aws/bin:/home/ec2-user/bin:/usr/lib/jvm/java/bin
and when hit my_domain:8080 tomcat page.
so know java installed, , tomcat running. else missing?
my .jsp file looks this:
<%@page contenttype="text/html" pageencoding="utf-8"%> <!doctype html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>jsp page</title> </head> <body> <h1><% out.println("hello world!");%></h1> </body> </html>
this browser displays:
<@page contenttype="text/html" pageencoding="utf-8"%> <% out.println("hello world!");%>
anyone know need fix php , java both work?
wow.. yep @fmodos correct. i've been use php dropped .jsp file in www folder of apache instead of webapps folder of tomcat. der.
i needed give give ec2-user permissions in order ftp files it.
Comments
Post a Comment