I would appreciate any help anyone can provide me. I can not get a .JSP page to display on a deluxe hosted GoDaddy account. I have tried the most basic page. Just to make sure I do not have a type-o, I even used an HTML page to direct me.
Here is the HTML page that has the hyperlink. This page displays fine.
<html>
<head>
<title>Test</title>
</head>
<body>
Here is a test page
<a href="test.jsp">Test JSP</a>
</body>
</html>
Here is the JSP page that can not be displayed.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test</title>
</head>
<body>
Here is a test JSP page
</body>
</html>
When I click on the link, I get the HTTP 400 error saying the webpage could not be found. I know the code works since I have tested it locally. Plus the code is very simple.
I am very stumped here and have tried GoDaddy’s help multiple times. They keep telling me it is a scripting issue. I am not sure how it can be a scripting issue because there is no script here. Basically, it is an HTML page with a .JSP extension.
If anyone can provide advice or know what is wrong, I would very much appreciate the time and knowledge!!!
I have contacted their support twice now and they really do not have much knowledge on Java hosting. They are friendly and try to help, but one of the suggestions for this issue was to FTP the files. I paused and thought… that files are already on the server, why is he asking me to move them again.
To give an update…
I logged in this morning and now, the JSP page displays. I was aware that GoDaddy redeploy’s Tomcat every night at around 1:00 am Arizona time, but I am not sure why this corrected the issue.
When I was testing locally, I could place any new JSP file in Tomcat and view it without having to do a redeploy. Why does this work differently on GoDaddy? I am assuming it has something to do with the shared hosting but I am not sure what. Does any one have any insight on this?
I am no jsp expert but I guess tomcat caches the pages a lot. Probably something to do with it. In any case, I dont think godaddy is the right host, especially for jsp. Their support is pretty average and you cant expect any help for script related issues. You may better find a specialist jsp host.
HI,
Am very new to webhosting. I own the same package as u do with godaddy. Iam not sure how to replace thier default behavior of displaying welcome html. I tried the normal method of placing a webxml inside the WEB-INF folder. Seems like its not taking precedence. Still welcome html is getting displayed. Also what version of JRE are these guys using. How can i know abt those details. The support guys seems like very novice.
Thank you for the feedback, to help the other question:
GoDaddy uses JRE 1.5 and Tomcat 5.0.27.
As for the welcome.html, this page is provided for you. To replace it, you need to have an index.jps, index.htm or something like that. There is an order GoDaddy uses to display there default pages, I am just not sure what it is off the top of my head.
Also, the WEB-INF folder is where your Java specific content goes. For example, when you access an servlet, that server goes against the web.xml to see what Java class it should load.
After reading all replies from the thread starter here I think that the best option for him would be to move and as fat as understand he did moved.
I think that happened because of blind web hosting choice. Why don’t read about the company more, ask them questions regarding your content or web application. That is not forbidden and always helps you understand the company better and avoid mistakes.