Jump to content

[SOLVED] Http Status 404


guard163

Recommended Posts

Try putting an index file such as index.html or index.php or index.jsp in your public_html folder.

 

Tomcat seems to be running fine now, I think the only issue is with the indexing on your account since you don't have any index files. Try logging into cPanel and clicking Index Manager and checking the settings for public_html.

Link to comment
Share on other sites

When entered the domain http://guard163.heliohost.org/ i saw this:

 

type Status report

message /

description The requested resource (/) is not available.

 

What does it mean? In terms of where the error?

It means that tomcat has crashed and needed to be manually restarted. Which I have just done.

 

That error just means that the resource could not be found (404), which has nothing to do with tomcat.

Link to comment
Share on other sites

2Krydos It was 503 like now.

I tried to upload index,html, server works right with him. Now i uploaded index.jsp and it writes: "Service Temporarily Unavailable". What's that?

P.S. index.jsp i took from here:

http://mainline.brynmawr.edu/~dkumar/JSP/

The same page as above using JSP looks as shown below:

 

<HTML>

<HEAD>

<TITLE>Hello World</TITLE>

</HEAD>

<BODY>

<H1>Hello World</H1>

Today is: <%= new java.util.Date().toString() %>

</BODY>

</HTML>

 

In order to run it, do the following:

  1. Place it in a file, HelloWorld.jsp in the same directory as your .html files

Link to comment
Share on other sites

I cleared the cache but nothing changed. I shared a link with a friend, he also did not appears site. And what you saw?

UPD: I see

type Exception report

 

message

 

description The server encountered an internal error () that prevented it from fulfilling this request.

 

exception

 

org.apache.jasper.JasperException: Unable to compile class for JSP:

 

An error occurred at line: 7 in the jsp file: /index.jsp

The method print(boolean) in the type JspWriter is not applicable for the arguments (void)

4: </HEAD>

5: <BODY>

6: <H1>Hello World</H1>

7: Today is: <%=out.println("test") %>

8: </BODY>

9: </HTML>

 

 

Stacktrace:

org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:451)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)

javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

 

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.33 logs.

 

Now again the white screen

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...