Jump to content

Recommended Posts

Posted

Honestly, I don't think anyone here knows. Nobody here (including us) really know much about Java programming. The only example that we know works is the dummy MyHelioServlet that's floating around (search the forum for it).

 

I know several users on here do use Java successfully though. Perhaps one of them would know why this doesn't work for you.

Posted (edited)

It worked until not long time ago...

Krydos posted here something about missing files/bad structure. Now that I finished my changes, I can get deep into finding out what is missing but I need to know what is it exactly

Edited by Amoss
Posted

root@tommy [/opt/tomcat/live/webapps/stockdi1_MyHelioServlet]# ls -la
total 4
drwxr-x---. 4 nobody nobody 35 Jul 11 16:49 .
drwxr-xr--. 27 nobody nobody 4096 Jul 11 16:49 ..
drwxr-x---. 3 nobody nobody 54 Jul 11 16:49 META-INF
drwxr-x---. 4 nobody nobody 44 Jul 11 16:49 WEB-INF
root@tommy [/opt/tomcat/live/webapps/stockdi1_MyHelioServlet]#
Still don't see an index.jsp.
Posted

Seeing that the project contains the file, there is probably something wrong with the way it's being compiled.

 

Start over using a new project.

Posted

Maybe it's in the wrong folder in the project?

Should I start the project in a specific way? Because the file was not there, I created it manually.

Posted

In the servlet guide you have to manually create it too:

However, there is currently no index file in the root of your servlet so if you were to deploy this as is and access username.heliohost.org/MyHelioServlet it would return a 404 error. Let's fix that next. Create index.jsp

Source: https://wiki.helionet.org/Java_Servlet
Posted

Apparently the problem was that the WAR didn't finish uploading. It got up to 100% and stayed there for some time so I closed the tab and deployed. Only now I realized that I should have waited longer for the progress to become green.

 

Now I waited for it to become green and re-deployed, index.jsp should be there now but I still get 404.

Any ideas?

Posted

Well, that's bizarre. The index.jsp file is showing up on the server now, but it still gives the 404 error. I would recommend starting a new project with a different name in Eclipse like Wolstech suggested and see if it has the same problem.

  • 1 month later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...