Jump to content

Servlet Invoking


Recommended Posts

Hi, I'm infopar on Johnny. Here's my problem.

 

I have my structure under public_html, among the dirs with JSPs I have the folder WEB-INF/classes, in it some folders as it/fp/servlets, in it my servlets.

 

In my web.xml I have:

 

<servlet> <servlet-name>ServletServizi</servlet-name> <servlet-class>it.fp.servlets.ServletServizi</servlet-class> </servlet>

<servlet-mapping> <servlet-name>ServletServizi</servlet-name> <url-pattern>/ServletServizi</url-pattern> </servlet-mapping>

 

When from a <form> I hit submit

 

<form action="ServletServizi" method="post" class="menu">

<input name="dati" type="submit" class="pulsante submenu <%=funzioneCorrente%>" value="Dati Parrocchiali">

<input type="hidden" name="funzione" value="datiParrocchiali" />

<input type="hidden" name="paginaUtente" value="../servizio/datiParrocchia.jsp" />

<input type="hidden" name="paginaErrore" value="" />

</form>

 

I get

Not Found

 

The requested URL /ServletServizi was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

and in my log file I find

 

[Thu Jan 31 13:14:47 2013] [error] [client 151.25.22.29] File does not exist: /home/infopar/public_html/ServletServizi, referer: http://infopar.heliohost.org/index.jsp

 

What's the problem? Thanks in advance.

Link to comment
Share on other sites

If you would like to deploy a .war file follow these steps:

  1. Create your account on Johnny http://www.heliohost.org/home/signup/johnny
  2. Request Java to be enabled on your account http://www.helionet.org/index/forum/74-java-requests/
  3. Wait patiently and keep your account active, because Java can only be enabled on a finite number of account at a time, and you must wait in line to have it enabled. It can take up to a month to get Java enabled depending on how many other people are in line ahead of you.
  4. Once Java is enabled on your account upload your .war file to your home directory. Ex: /home/username/MyProject.war
  5. Request to have the .war file deployed by creating a new topic in Customer Service http://www.helionet.org/index/forum/45-customer-service/

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...