sorry for making two post ..
appreciate your help and time.
also the struct examples are working fine..
i m using velocity tools 1.3 for view

however i installed another tomcat but the same version 5.5.25 .. and could see the logs

"hi , i m getting the following error
of which i understand there might be a problem with my struts-config file
but i checked it and couldn fine any

i m using struct 1.3.8
below i have pasted my structs-config file

SEVERE: javax.servlet.UnavailableException: Parsing error processing resource path jndi:
/localhost/struts/WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.handleConfigException(ActionSe
rvlet.java:774)




<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE struts-config PUBLIC
      "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
      "http://struts.apache.org/dtds/struts-config_1_3.dtd";>
<struts-config>

  <form-beans>
      <form-bean name="registerForm" type="RegisterForm"/>
  </form-beans>


  <action-mappings>
      <action path="/struts" type="RegisterAction" name="registerForm">
             <forward name="success" path="/success.vm"/>
      <forward name="failure" path="/failure.vm"/>
             </action>

  </action-mappings>
</struts-config> "

Thanks,
Sohil

Robert Slama wrote:
send your struts-config.xml and requested url


r^



Dave Newton  wrote / napĂ­sal(a):
It's probable there's an error in one (or more) of your S1 configuration
files.

d.

--- Sohil Rupani <[EMAIL PROTECTED]> wrote:

hi i m using Struts 1

Following is the content of my web.xml file.
Please let me know if i m making some mistake in this ..
Thanks


<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
<web-app>
<!-- Action Servlet Configuration -->
    <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/struts-config.xml</param-value>
            </init-param>
                       <init-param>
                <param-name>debug</param-name>
                <param-value>2</param-value>
            </init-param>

            <init-param>
                <param-name>detail</param-name>
                <param-value>2</param-value>
            </init-param>

        <load-on-startup>2</load-on-startup>
    </servlet>


    <servlet>
        <servlet-name>velocity</servlet-name>
<servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
                       <init-param>
                           <param-name>toolbox</param-name>
                <param-value>/WEB-INF/toolbox.xml</param-value>
            </init-param>

            <load-on-startup>10</load-on-startup>
    </servlet>


    <!-- Action Servlet Mapping -->
           <servlet-mapping>
        <servlet-name>velocity</servlet-name>
        <url-pattern>*.vm</url-pattern>
    </servlet-mapping>
           <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>

<!-- Struts Tag Library Descriptors -->
       <taglib>
        <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
       <taglib>
        <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
</web-app>



Cheng Wei Lee wrote:
Are you using Struts 1? Please check your web.xml file.

On Jan 8, 2008 3:56 PM, Sohil Rupani <[EMAIL PROTECTED]> wrote:

Hi ,
Thanks for the reply.. appreciate you time.

Following is the error i m getting on the browser..

HTTP Status 404 - Servlet action is not available
type Status report
message Servlet action is not available
description The requested resource (Servlet action is not available) is
not available.
Apache Tomcat/5.5.25

I searched throught thru the log file of tomcat. however it doesnt show
any error ..

Thanks,
Sohil

Thanks,
Sohil.

Cheng Wei Lee wrote:
Hi Sohil,

Could you provide the stacktrace for troubleshooting?

Thanks.

On Jan 8, 2008 3:37 PM, Sohil Rupani <[EMAIL PROTECTED]> wrote:


Hi,

I m new to struts , using tomcat and jdk 1.5.  i m getting a error
Servlet action not avaliable..
which on browsing i learn that is a very common error
i searched through the tomcat log where i dont see any error
messages..
i would like to know where does struts creates its log.. so that i can
understand more about the error..
Thanks
Sohil

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__________ Informacia od NOD32 2772 (20080107) __________

Tato sprava bola preverena antivirusovym systemom NOD32.
http://www.eset.sk




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to