Error:"Servlet action is currently unavailable"

Hi,
I wrote a servlet program, when I run in URL
"http://localhost:8080/Tomcat1/" its working fine.
But
"http://localhost:8080/Tomcat1/first.do" its throwing an error
message Servlet action is currently unavailable
description The requested service (Servlet action is currently unavailable) is not currently available.
Please tell me the reason.
Thanks,
Hari

Hi,
I checked & tried, no progress.
I'm attaching web.xml & struts-config.xml.
Please let me know the issues.
web.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<!--
This is a blank Struts configuration file with an example
welcome action/page and other commented sample elements.
Tiles and the Struts Validator are configured using the factory defaults
and are ready-to-use.
NOTE: If you have a generator tool to create the corresponding Java classes
for you, you could include the details in the "form-bean" declarations.
Otherwise, you would only define the "form-bean" element itself, with the
corresponding "name" and "type" attributes, as shown here.
-->
<struts-config>
<!-- ============================================ Data Source Configuration -->
<!--
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property
property="driverClassName"
value="org.postgresql.Driver" />
<set-property
property="url"
value="jdbc:postgresql://localhost/mydatabase" />
<set-property
property="username"
value="me" />
<set-property
property="password"
value="test" />
<set-property
property="maxActive"
value="10" />
<set-property
property="maxWait"
value="5000" />
<set-property
property="defaultAutoCommit"
value="false" />
<set-property
property="defaultReadOnly"
value="false" />
<set-property
property="validationQuery"
value="SELECT COUNT(*) FROM market" />
</data-source>
</data-sources>
-->
<!-- ================================================ Form Bean Definitions -->
<form-beans>
<!-- sample form bean descriptor for an ActionForm
<form-bean
name="inputForm"
type="app.InputForm"/>
end sample -->
<!-- sample form bean descriptor for a DynaActionForm
<form-bean
name="logonForm"
type="org.apache.struts.action.DynaActionForm">
<form-property
name="username"
type="java.lang.String"/>
<form-property
name="password"
type="java.lang.String"/>
</form-bean>
end sample -->
</form-beans>
<!-- ========================================= Global Exception Definitions -->
<global-exceptions>
<!-- sample exception handler
<exception
key="expired.password"
type="app.ExpiredPasswordException"
path="/changePassword.jsp"/>
end sample -->
</global-exceptions>
<!-- =========================================== Global Forward Definitions -->
<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>
<!-- =========================================== Action Mapping Definitions -->
<action-mappings>
<!-- Default "Welcome" action -->
<!-- Forwards to Welcome.jsp -->
<!-- action path="/userRegistration" -->
<action
path="/first"
type="Tutorial.cond_Check">
<forward name="valid" path="/success.jsp"/>
<forward name=Invalid" path="/notsuccess.jsp"/>
<action
path="/Welcome"
forward="/pages/Welcome.jsp"/>
<!-- sample input and input submit actions
<action
path="/Input"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Input.jsp"/>
<action
path="/InputSubmit"
type="app.InputAction"
name="inputForm"
scope="request"
validate="true"
input="/pages/Input.jsp"/>
<action
path="/edit*"
type="app.Edit{1}Action"
name="inputForm"
scope="request"
validate="true"
input="/pages/Edit{1}.jsp"/>
end samples -->
</action-mappings>
<!-- ============================================= Controller Configuration -->
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>
<!-- ======================================== Message Resources Definitions -->
<message-resources parameter="MessageResources" />
<!-- =============================================== Plug Ins Configuration -->
<!-- ======================================================= Tiles plugin -->
<!--
This plugin initialize Tiles definition factory. This later can takes some
     parameters explained here after. The plugin first read parameters from
     web.xml, thenoverload them with parameters defined here. All parameters
     are optional.
The plugin should be declared in each struts-config file.
- definitions-config: (optional)
Specify configuration file names. There can be several comma
          separated file names (default: ?? )
- moduleAware: (optional - struts1.1)
Specify if the Tiles definition factory is module aware. If true
(default), there will be one factory for each Struts module.
               If false, there will be one common factory for all module. In this
later case, it is still needed to declare one plugin per module.
The factory will be initialized with parameters found in the first
initialized plugin (generally the one associated with the default
module).
               true : One factory per module. (default)
               false : one single shared factory for all modules
     - definitions-parser-validate: (optional)
     Specify if xml parser should validate the Tiles configuration file.
               true : validate. DTD should be specified in file header (default)
               false : no validation
     Paths found in Tiles definitions are relative to the main context.
-->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<!-- Path to XML definition file -->
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml" />
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>
<!-- =================================================== Validator plugin -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
struts-config.xml
<?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>
<display-name>Struts Blank Application</display-name>
<!-- Standard Action Servlet Configuration (with debugging) -->
<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>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<!-- Struts Tag Library Descriptors -->
<taglib>
<taglib-uri>/tags/struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-nested</taglib-uri>
<taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>/tags/struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
</web-app>
Thanks :)

Similar Messages

  • Help! Error:Servlet action is currently unavailable

    I am currently working on a BBS project which is used Eclipse+Structs.
    The web server is Tomcat 5.5
    When I am trying to run the program the following error message occur :Servlet action is currently unavailable.
    Anyone can help me out of the trouble.
    Thanks

    Did you see this?
    http://forum.java.sun.com/thread.jspa?threadID=365059&messageID=1538216

  • HTTP Status 503 - Servlet action is currently unavailable

    Hai,
    I'm developing a Struts application, where the control be forwarded to an Action class, I used globalforwards, as shown
    <code>
    <global-forwards>
    <forward
    name="Welcome"
    path="/Welcome"/>
    </global-forwards>
    </code>
    <code>
    <action
    path="/Welcome.do"
    type="WelcomeAction"
    scope="session"
    <forward name="success" path="/Login.jsp" />
    </action>
    </code>
    I've deployed the application, when run the program I got the following error
    HTTP Status 503 - Servlet action is currently unavailable
    type Status report
    message Servlet action is currently unavailable
    description The requested service (Servlet action is currently unavailable) is not currently available.
    Please help me ...

    503 Service Unavailable
    The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay MAY be indicated in a Retry-After header. If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
    Note: The existence of the 503 status code does not imply that a
    server must use it when becoming overloaded. Some servers may wish
    to simply refuse the connection.

  • Servlet Action is currently unavailable

    I get this error when trying to see the index.jsp of my web-struts application.
    It says HTTP:503 - Servlet Action is currently unavailable.
    Does it have anything to do with the web.xml?? What do I have to change in it??
    Thank you.
    and waiting for solutions...:)

    did you restart the server after modifying struts config file. Try recompile again and run it.

  • Servlet NavigationController is currently unavailable

    Hi everyone,
    I tried to execute a servelet and got this error:
    "Type: Status Report
    Message: Servlet NavigationController is currently unavailable"
    I'm using Sun One App Server 7.0
    following is server.log
    [27/Nov/2004:16:08:39] FINE (12909): WebModule[olbr]: Mapping contextPath='/olb
    r' with requestURI='/olbr/NavigationController' and relativeURI='/NavigationCont
    roller'
    [27/Nov/2004:16:08:39] FINE (12909): WebModule[olbr]: Decoded relativeURI='/Nav
    igationController'
    [27/Nov/2004:16:08:39] FINE (12909): WebModule[olbr]: Trying exact match
    [27/Nov/2004:16:08:39] FINE (12909): WebModule[olbr]: Mapped to servlet 'Navig
    ationController' with servlet path '/NavigationController' and path info 'null'
    and update=true
    [27/Nov/2004:16:08:39] FINE (12909): ApplicationDispatcher[olbr]: Servlet Navig
    ationController is currently unavailable
    Following is the a part of web.xml
    <?xml version="1.0" encoding="UTF-8"?>^M
    ^M
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
    ' 'http://java.sun.com/j2ee/dtds/web-app_2_2.dtd'>^M
    ^M
    <web-app>^M
    <display-name>ga_taxregistration</display-name>^M
    ^M
    <servlet>^M
    <servlet-name>TaxRegistrationGateway</servlet-name>^M
    <servlet-class>us.federal.sba.TaxRegistrationGateway</servlet-class>^M
    <load-on-startup>1</load-on-startup>^M
    </servlet>^M
    <servlet>^M
    <servlet-name>ResumeApplication</servlet-name>^M
    <servlet-class>us.federal.sba.ResumeApplication</servlet-class>^M
    </servlet>^M
    <servlet>^M
    <servlet-name>RenderEngine</servlet-name>^M
    <servlet-class>com.ezgov.eforms.ui.RenderEngine</servlet-class>^M
    </servlet>^M
    <servlet>^M
    <servlet-name>NavigationController</servlet-name>^M
    <servlet-class>com.ezgov.navigation.NavigationController</servlet-class>^M
    </servlet>^M
    <servlet>^M
    <servlet-name>UserRegistration</servlet-name>^M
    <servlet-class>us.federal.sba.UserRegistration</servlet-class>^M
    </servlet>^M
    ^M
    <servlet-mapping>^M
    <servlet-name>TaxRegistrationGateway</servlet-name>^M
    <url-pattern>/TaxRegistrationGateway</url-pattern>^M
    </servlet-mapping>^M
    <servlet-mapping>^M
    <servlet-name>ResumeApplication</servlet-name>^M
    <url-pattern>/ResumeApplication</url-pattern>^M
    </servlet-mapping>^M
    <servlet-mapping>^M
    <servlet-name>RenderEngine</servlet-name>^M
    <url-pattern>/RenderEngine</url-pattern>^M
    </servlet-mapping>^M
    <servlet-mapping>^M
    <servlet-name>NavigationController</servlet-name>^M
    <url-pattern>/NavigationController</url-pattern>^M
    </servlet-mapping>^M
    <servlet-mapping>^M
    <servlet-name>UserRegistration</servlet-name>^M
    <url-pattern>/UserRegistration</url-pattern>^M
    </servlet-mapping>^M
    Can you help me point out what the problem is ?
    Thanks,
    Van

    Hi,
    I rewrite the action-mapping part of struts-config.xml file as
    <action-mappings>
    <action path="/displayAddProductForm"type="tutorial.UserRegistrationAction">
    <forward name="success" path="/displayAddProdutForm.jsp"/>
    </action>
    </action-mappings>Here only if I write the action part("type" attribute), its working, previously without action part it didnt work. Why tell me what will be the reason.?
    Thanks,
    Hari

  • Servlet JAXRPCEndpoint is currently unavailable

    running the jaxrpc-hello example (jwsdp) i receive the following error
    message Servlet JAXRPCEndpoint is currently unavailable
    description The requested service (Servlet JAXRPCEndpoint is currently unavailable) is not currently available.
    anyone can help?
    thx

    Hi,
    Are you able to install the web service successfully?
    Do you get the message "A Web Service is installed at this URL" when you hit the URL?
    http://localhost:8080/jaxrpc-hello/jaxrpc/HelloIF
    Give me more info. to track it down.
    -Sriram.

  • ERROR: This site is currently unavailable.

    I receive this message when I try to upload my site to Adobe Business Catalyst I signed up for the monthly subscription with one free hosting site. So is my site hosting still ABC?
    Not sure what's happening since my trail version stopped.
    ERROR: This site is currently unavailable. For more information please contact: muse.  what phone number do I use to contact Muse........ The support team at Adobe don't seem to know any answers.. I have been on the phone for hours and keep getting pasted from one person to the other...Here's what i want to do... design in Muse host in ABC, (hosting 5 sites) I have an adobe ID. I'v paid for Muse and hosting of one site....
    Hope someone can help!!!

    these are the messages i get. It's only giving me the option for a new site...but this is not a new site.....it's the same site that i had with the trail version......I did change from a pc to a mac... my site was palestine http://palestine21.businesscatalyst.com/

  • Error : Servlet [prt] will be unavailable for undefined time.

    Dear Team,
    The following error is appearing in the portal:
    503 Service Unavailable.
    Servlet prt will be unavailable for undefined time.
    Details: javax.servlet.UnavailableException: Initialization of Dispatcher failed
    Exception id:  [00145E46AAF20024000001670006002400046175D9298A28]
    Please help to resolve it.
    Thanks & Regards,
    Nikesh Shah

    Nikesh,
    when are you getting this error.
    did you try restarting the server
    Thanks
    Bala Duvvuri

  • Unknown Server Error, sign in is currently unavailable We are unable to access your account Please try later

    Completely stuck at this point?

    Snapsvideo which Adobe software or service are you receiving this error in?   Also which operating system are you using?

  • [WHAT] Application Loader is currently unavailable

    I have been trying all day to submit an App to the App Store, and I have taken all the necessary steps required, but everytime I open Application Loader, I get the following error:
    *Application Loader is currently unavailable*
    We're having trouble connecting to the iTunes Store. Please try again later.
    +An error occurred talking to the iTunes Store+
    I am using the latest beta of xCode 3.2.5 with iOS 4.2 beta 3. The version of Application Launcher, is 1.4 (92). Anyone else having this problem? I can't seem to find a solution anywhere. Maybe the servers are just down, but I find that hard to believe...

    may i ask something?
    i'm having the same aforementioned issue, i have the iTunes Connect setup, and i produced an upload-ready zipped binary package from XCode 3.2.3.
    my App is in the ( waiting for upload ) state, and Application Loader is the only way to upload anything it seems, there is no direct documentation about this issue, and no express lane category for itunes connect, what should i do ??

  • ITunes store is currently unavailable only for most recently purchased content

    I have a new issue: when attempting to access the three most recent TV series that I purchased, I get the error, "iTunes store is currently unavailable. Please try again later." This has been occurring consistently for the last three days, even after completely resetting the Apple TV and re-logging into my iTunes account. I can access newest series on my iPad and iTunes but Apple TV will not play them, only give me the error. It will, however, play anything I purchased prior to the three most recent purchases. Maddening!

    I've been experiencing the same problem for the last several days. When clicking on certain TV shows (not specifically most recently purchased) through the purchased tab it goes straight to this error. The workaround by searching for the show works fine but is still a pain in the arse.
    It's really annoying when you try and do the right thing by paying for content (often far more expensive than even physical mediums that aren't DRM'd up the wazoo) and we can't even watch it because of server problems.
    Possibly more annoying is how crummy Apple service has become. I called to report the problem, they tell me to fill out a webform, they respond telling me to call. Seriously? Just fix your **** servers.

  • Webcenter 11g - Documents service is currently unavailable

    I am getting following error:
    Documents service is currently unavailable as there is no default content repository connection.
    Does anyone know how to setup content repository connection.
    thanks
    Edited by: user4884609 on Apr 9, 2013 11:12 AM

    http://docs.oracle.com/cd/E23943_01/core.1111/e12037/contentsvr.htm#BABJIGDJ

  • "Command Uknown is currently unavailable" when executing sPSActionControl- Play()

    In my automation plugin project, when the code executing to "sPSActionControl->Play()", the Photoshop will prompt a messageBox showing error "Command <Uknown> is currently unavailable". I just use the Play() method to call another automation plugin to show an ADM dialog, eventID is valid (got by plugin unique string). Does anyone ever meet this problem, Is it possible that I lose some library or my building environment is not correctly set?

    Oh, this issue has bothered me too much. The plugin doesn't have a EnableInfo property in PIPL file, I hope it can't be called at any time. But...

  • Error Message: The Adobe InContext Editing service is currently unavailable

    Hey Folks,
    For the past week, my client is getting the folowing error message when he tries to log in:
    The Adobe InContext Editing service is currently unavailable.
    We are sorry for any inconvenience this may cause you. Please try again later.
    However we can access the editor from another computer without without problems.
    He is in a different country and he had been using the editor for quite a few months now.
    Have the minimum requirements changed?
    Thanks,
    [email protected]

    That's correct Corey.
    The client is in Cyprus accessing the editor through a Firefox browser, which he had been successfully doing for some time now.
    His representative, using the same login and password in Canada is able to access the editor fine.
    I've since sent him a seperate login invitation
    I've asked him to try another browser / computer.
    update his flash
    He said his flash wouldn't update, so I don't know if it's an issue with his browser, computer, or user.
    I'm waiting on the other two action items.
    Thanks for your involvement.

  • Upon upgrading iPhoto, iPhoto Help no longer works.  It gives the error message:  "The selected topic is currently unavailable. To see all iPhoto Help, you must be connected to the Internet." Help!?

    Upon upgrading iPhoto, iPhoto Help no longer works.  It gives the error message:  "The selected topic is currently unavailable. To see all iPhoto Help, you must be connected to the Internet."   I am obviously connected to the internet since you are reading this.
    I tried upgrading permissions but it did not help!?  Can anyone tell me what is wrong?  Thanks

    Try
    Reboot the computer, see if that fixes it.
    Then try:
    Backup your files off the computer (not TimeMachine) and disconnect
    Hold c boot off the 10.6 disk and simply reinstalling OS X
    Log in and update to 10.6.8
    c boot off the 10.6 disk again and use Disk Utility >Repair Disk
    reboot and all should be fine, except some third party programs that install kext files, those will have to be reinstalled from fresh sources.

Maybe you are looking for

  • Error while accessing JSP deployed on Oracle AS

    Hi, I have developed an application and deployed in on the oracle AS 10.1.2 In my application i have a Jsp on which i have the following code <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "

  • How to find out the PO line items for which no GRN has been done

    Dear Friends, I need a report which will show all the fully open PO items for which no GRN has been done. In ME2N when I give the selection parameter "open goods receipt" then it shows all the line items with partially & fully open. But my requiremen

  • Understanding report need backup recovery window ..

    Hello, I have a big database which backed up within several days at night time. The retention policy is "recovery window of 3 days". I've tried to analyze the results of report need backup;But I noticed than this command return just the list of dataf

  • Source filename during runtime for link file (txt, image)

    hi, I want to pass the value or path of the source filename to the link file object I placed in the report. how can I do that.. please help me out. regards

  • Head Count Feature in Communicator

    In my previous version of Communicator each of my groups showed a count of number of people in the group and the number of people active. For instance: Human Resources (4/10) This would indicate 4 of my 10 employees were active. Is this feature avail