Results 1 to 2 of 2
  1. #1
    mohsen.noor is offline Member
    Join Date
    Dec 2012
    Posts
    18
    Rep Power
    0

    Default tomcat server and html file[netbeans]

    Hello everyone
    I am fresh in Java servlet
    I create web app in that I have one servlet file and html file
    when I run from a servlet file it works, but by html file it does not work
    type Status report

    message /MyWeb/login.html

    description The requested resource is not available.

    Thanks in advance

    Java Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
        <servlet>
            <servlet-name>Check</servlet-name>
            <servlet-class>com.Check</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Check</servlet-name>
            <url-pattern>/Check</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>login.html</welcome-file>
        </welcome-file-list>
    </web-app>

  2. #2
    mohsen.noor is offline Member
    Join Date
    Dec 2012
    Posts
    18
    Rep Power
    0

    Default Re: tomcat server and html file[netbeans]

    Problem solved
    I put it in the wrong folder

Similar Threads

  1. Replies: 0
    Last Post: 07-06-2012, 01:22 PM
  2. Error deploying war file in tomcat server
    By nive in forum New To Java
    Replies: 1
    Last Post: 06-02-2011, 09:50 AM
  3. How to download file from apache tomcat server
    By nnnnn in forum New To Java
    Replies: 8
    Last Post: 06-18-2010, 03:03 AM
  4. Replies: 3
    Last Post: 12-24-2009, 07:04 AM
  5. New to JSP-Netbeans, external tomcat server
    By dropez in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 04-01-2009, 06:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •