facebook

[Closed] Failing to execute application on tomcat

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #238125 Reply

    ftourand
    Member

    This message has not been recovered.

    #238141

    Riyad Kalla
    Member

    This message has not been recovered.

    #238240

    ftourand
    Member

    This message has not been recovered.

    #238248

    Greg
    Member

    This message has not been recovered.

    #238255

    ftourand
    Member

    This message has not been recovered.

    #238265

    Riyad Kalla
    Member

    This message has not been recovered.

    #238429

    Riyad Kalla
    Member

    1) I unzipped both your projects and imported them into my workspace, they both built without any compiler errors.
    2) I double checked the Project Properties > MyEclipse-Web settings on both projects, myEclipse-Test01 was fine, however Session 2 bis had spaces in the Web Context-root, so I changed this simply to: /session2
    3) Now I opened the web.xml files of both your projects to make sure everything is setup correctly. Your test01 project has a welcome-file list mapping to “login.jsp”, however you do NOT have a single JSP file in the web root of that project, the only file you have is Systonomy.jpg. This project is empty, no matter if you deploy this project or not there is no JSP file to load, so that clears up that problem.
    4) Now looking at your session2 web.xml you have a welcome file list mapping to ValidationPinServlet, I have no idea why, infact I don’t think it’s valid. By setting your welcome file list you are NOT redirecting people to this page, you are simply telling Tomcat to host up that a certain file if it finds it by default, in your case you specified a servelt, which doesn’t work.
    5) You have mapped your servlets to their default locations, which as far as I can tell doesn’t work, I changed your VAlidat mapping to this:

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

    And then changed your jSP to this:

    
     <FORM ACTION="ValidatePinServlet" METHOD=POST>
        <TABLE BORDER=0 CELLPADDING=3>
            <TR>
                <TD>Numéro de compte :</TD>
                <TD><INPUT TYPE="TEXT" NAME="acctno" SIZE="16"></TD>
            </TR>
            <TR>
                <TD>Numéro de PIN :</TD>
                <TD><INPUT TYPE="PASSWORD" NAME="PIN" SIZE="4">
                <INPUT TYPE="SUBMIT" VALUE="OK">
                </TD>
            </TR>
        </TABLE>
        </FORM>
    

    Previously you were trying to map your FORM to “ValidatingPinServlet”, the name you used in the web.xml file, but the NAME you assign it is only used for resolving the servlet in the web.xml file, not it’s path like you need to do here in this form.

    I will stop here, it seems to me you are getting started with web programming and just had a lot of things wrong that together were making this entire process seem broken, please try and read through the J2EE 1.4 tutorial and other resources, web development can really be a nightmare if you don’t get good resources to help you along the way.

    #238441

    ftourand
    Member

    Thanks for your time.
    I will follow your advises.
    Regards
    Frederic

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: [Closed] Failing to execute application on tomcat

You must be logged in to post in the forum log in