properties in web.xml ??

Discussions

Web tier: servlets, JSP, Web frameworks: properties in web.xml ??

  1. properties in web.xml ?? (2 messages)

    Hi, I am still have the same error :
    Error: 503
    Location: /fvote/servlet/fastvote
    java.io.FileNotFoundException: /WEB-INF/fv.properties (The system cannot
    find the path specified)

    Service is permanently unavailable


    the web.xml is like this :
    .................
    <servlet>
       <servlet-name>fastvote</servlet-name>
       <servlet-class>com.virtua.fv.FastVoteServlet</servlet-class>
       <init-param>
               <param-name>config.file</param-name>
               <param-value>/WEB-INF/fv.properties</param-value>

           </init-param>
    </servlet>
    ...............

    Threaded Messages (2)

  2. properties in web.xml ??[ Go to top ]

    Hello,

    Please do the following ,

    - Check for the path you have specified in the web.xml ( i.e /Web-inf/application_properties ).
    - Try to view the properties and set it using some web server ( Like , Servlet Exec 3.1 ) ..

    I am currently using ServletExec 3.1 and It is running fine. Here is a sample code from web.xml I think this could give you lots of help. I have generated this code through the ServletExec 3.1 webserver.

    ////////////////
    .....
    <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/config.xml</param-value>
        </init-param>
        <init-param>
          <param-name>application</param-name>
          <param-value>Resources.ApplicationResources</param-value>
        </init-param>
        <init-param>
          <param-name>validate</param-name>
          <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
      </servlet>
     ........
    ////////////////

    Now what you have to do is follow up with this ..

    I think this would help you a lot..

    Regards,
    Shozi
  3. properties in web.xml ??[ Go to top ]

    I am using tomcat321, and I still have the same error:
    Error: 503
    Location: /fvote/servlet/fastvote
    java.io.FileNotFoundException: /WEB-INF/fv.properties (The system cannot find the path specified)
    Service is permanently unavailable