Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Problem Bringing up Admin

    7 answers - 923 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I've installed tomcat 5.5.9 and downloaded the admin package. When I
    attempt to access http://localhost:8080/admin/ I get a blank screen the
    first time, then if i reload I get the following error message in my
    browser.
    HTTP Status 503 - Servlet admin.login_jsp is currently unavailable
    *type* Status report
    *message* _Servlet admin.login_jsp is currently unavailable_
    *description* _The requested service (Servlet admin.login_jsp is
    currently unavailable) is not currently available._
    Apache Tomcat /5.5.9
    I've read around on several forums, and the usual cause of this seems to
    be duplicate instances of the file struts.jar, however I can only locate
    the struts.jar file that is in
    $ Is anyone familiar
    with this problem, I'm sure that it's probably a basic solution, i'm a
    complete and total newbie to tomcat.
    Thanks in advance,
  • No.1 | | 1328 bytes | |

    may be you would have done this but I want to know
    whethere you extracted all files from that admin archive (zip or tar)
    and placed the files in respective folders like
    admin.xml in "<catalina home>\conf\Catalina\localhost"
    admin folder in "<catalina home>\server\webapps\"

    Srikanth

    7/22/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    I've installed tomcat 5.5.9 and downloaded the admin package. When I
    attempt to access http://localhost:8080/admin/ I get a blank screen the
    first time, then if i reload I get the following error message in my
    browser.

    HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

    *type* Status report
    *message* _Servlet admin.login_jsp is currently unavailable_
    *description* _The requested service (Servlet admin.login_jsp is
    currently unavailable) is not currently available._

    Apache Tomcat /5.5.9

    I've read around on several forums, and the usual cause of this seems to
    be duplicate instances of the file struts.jar, however I can only locate
    the struts.jar file that is in
    $ Is anyone familiar
    with this problem, I'm sure that it's probably a basic solution, i'm a
    complete and total newbie to tomcat.

    Thanks in advance,
  • No.2 | | 2276 bytes | |

    Yes, those files are exactly where you say they should be.

    Thanks.
    Ryan

    Peddireddy Srikanth wrote:

    >may be you would have done this but I want to know
    >whethere you extracted all files from that admin archive (zip or tar)
    >and placed the files in respective folders like

    admin.xml in "<catalina home>\conf\Catalina\localhost"
    admin folder in "<catalina home>\server\webapps\"
    >
    >Srikanth
    >

    7/22/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:

    >
    >>I've installed tomcat 5.5.9 and downloaded the admin package. When I
    >>attempt to access http://localhost:8080/admin/ I get a blank screen the
    >>first time, then if i reload I get the following error message in my
    >>browser.
    >>
    >>
    >>HTTP Status 503 - Servlet admin.login_jsp is currently unavailable
    >>

    type* Status report
    message* _Servlet admin.login_jsp is currently unavailable_
    description* _The requested service (Servlet admin.login_jsp is
    >>currently unavailable) is not currently available._
    >>
    >>Apache Tomcat /5.5.9
    >>
    >>
    >>
    >>
    >>I've read around on several forums, and the usual cause of this seems to
    >>be duplicate instances of the file struts.jar, however I can only locate
    >>the struts.jar file that is in
    >>$ Is anyone familiar
    >>with this problem, I'm sure that it's probably a basic solution, i'm a
    >>complete and total newbie to tomcat.
    >>
    >>Thanks in advance,
    >>


    >>J. Ryan Kelley
    >>Trinity Transport, Inc.
    >>
    >>
    >>
    >>

    >
    >>

    >
    >
    >To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >
    >
    >
  • No.3 | | 2674 bytes | |

    hmm
    if u have manger application running , try depploying (or redeploying
    ) admin application theu it
    and then try to login
    I hope u added the user with which r trying to login into admin in
    tomcat-users.xml
    If u have tried all these already and still failed then I too dont
    have a clue :-(

    7/25/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    Yes, those files are exactly where you say they should be.

    Thanks.
    Ryan

    Peddireddy Srikanth wrote:

    >may be you would have done this but I want to know
    >whethere you extracted all files from that admin archive (zip or tar)
    >and placed the files in respective folders like

    admin.xml in "<catalina home>\conf\Catalina\localhost"
    admin folder in "<catalina home>\server\webapps\"
    >
    >Srikanth
    >

    7/22/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    >
    >
    >>I've installed tomcat 5.5.9 and downloaded the admin package. When I
    >>attempt to access http://localhost:8080/admin/ I get a blank screen the
    >>first time, then if i reload I get the following error message in my
    >>browser.
    >>
    >>
    >>HTTP Status 503 - Servlet admin.login_jsp is currently unavailable
    >>

    type* Status report
    message* _Servlet admin.login_jsp is currently unavailable_
    description* _The requested service (Servlet admin.login_jsp is
    >>currently unavailable) is not currently available._
    >>
    >>Apache Tomcat /5.5.9
    >>
    >>
    >>
    >>
    >>I've read around on several forums, and the usual cause of this seems to
    >>be duplicate instances of the file struts.jar, however I can only locate
    >>the struts.jar file that is in
    >>$ Is anyone familiar
    >>with this problem, I'm sure that it's probably a basic solution, i'm a
    >>complete and total newbie to tomcat.
    >>
    >>Thanks in advance,
    >>


    >>J. Ryan Kelley
    >>Trinity Transport, Inc.
    >>
    >>
    >>
    >>
    >>
    >>

    >
    >
    >To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >
    >
    >
    >
    >
  • No.4 | | 8864 bytes | |

    yeah, my user is added to tomcat-users.xml, but i don't even get a
    prompt to attempt to loginI have a feeling that some of my
    dependencies are not complete. I never installed struts, but there is a
    struts.jar file in my $
    directorythe reason that i think this is some of the following
    entries I found in my catalina.out log file

    Jul 25, 2005 9:18:53 PM init
    SEVERE: Unable to initialize Struts ActionServlet due to an unexpected
    exception or error thrown, so marking the servlet as unavailable. Most
    likely, this is
    due to an incorrect or missing library dependency.

    at (Native Method)
    at (Class.java:1655)
    at java.lang.Class.getMethod0(Class.java:1901)
    at java.lang.Class.getMethod(Class.java:984)
    at
    (MethodUtils.java:535)
    at
    (MethodUtils.java:209)
    at
    (CallMethodRule.java:585)
    at (Rule.java:228)
    at
    (Digester.java:1067)
    at
    (Unknown Source)
    at
    (Unknown
    Source)
    at
    $(Unknown
    Source)
    at
    (Unknown
    Source)
    at (Unknown
    Source)
    at (Unknown
    Source)
    at (Unknown Source)
    at (Unknown Source)
    at (Digester.java:1591)
    at
    (ActionServlet.java:1140)
    at
    (ActionServlet.java:326)
    at
    (ApplicationServlet.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at
    (StandardEngineValve.java:107)
    at
    (CoyoteAdapter.java:148)
    at
    (Http11Processor.java:856)
    at
    $(Http11Protocol.java:744)
    at
    (PoolTcpEndpoint.java:527)
    at
    ()
    at
    $ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Jul 25, 2005 9:18:53 PM log
    INF: Marking servlet action as unavailable
    Jul 25, 2005 9:18:53 PM
    invoke
    SEVERE: Allocate exception for servlet action
    SEVERE: Allocate exception for servlet action

    at
    (ActionServlet.java:366)
    at
    (ApplicationServlet.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at
    (StandardEngineValve.java:107)
    at
    (CoyoteAdapter.java:148)
    at
    (Http11Processor.java:856)
    at
    $(Http11Protocol.java:744)
    at
    (PoolTcpEndpoint.java:527)
    at
    ()
    at
    $ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Jul 25, 2005 9:18:53 PM
    invoke
    SEVERE: Servlet.service() for servlet admin.login_jsp threw exception

    at
    (ActionServlet.java:366)
    at
    (ApplicationServlet.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at
    (StandardEngineValve.java:107)
    at
    (CoyoteAdapter.java:148)
    at
    (Http11Processor.java:856)
    at
    $(Http11Protocol.java:744)
    at
    (PoolTcpEndpoint.java:527)
    at
    ()
    at
    $ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Jul 25, 2005 9:18:53 PM log
    INF: Marking servlet admin.login_jsp as unavailable
    Jul 25, 2005 9:18:53 PM
    authenticate
    WARNING: Unexpected error forwarding to login page

    so obviously (it seems to me anyway) my issue is that admin.login_jsp is
    being marked unavailable because of messed up dependencies, do I need to
    download struts?

    Thanks again for helping out a newbie,
    Ryan

    Peddireddy Srikanth wrote:

    >hmm
    >if u have manger application running , try depploying (or redeploying
    >) admin application theu it
    >and then try to login
    >I hope u added the user with which r trying to login into admin in
    >tomcat-users.xml
    >If u have tried all these already and still failed then I too dont
    >have a clue :-(
    >
    >

    7/25/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:

    >
    >>Yes, those files are exactly where you say they should be.
    >>
    >>Thanks.
    >>Ryan
    >>
    >>Peddireddy Srikanth wrote:
    >>

    >
    >>

    may be you would have done this but I want to know
    whethere you extracted all files from that admin archive (zip or tar)
    and placed the files in respective folders like
    admin.xml in "<catalina home>\conf\Catalina\localhost"
    admin folder in "<catalina home>\server\webapps\"

    Srikanth

    7/22/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:

    I've installed tomcat 5.5.9 and downloaded the admin package. When I
    attempt to access http://localhost:8080/admin/ I get a blank screen the
    first time, then if i reload I get the following error message in my
    browser.

    HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

    type* Status report
    message* _Servlet admin.login_jsp is currently unavailable_
    description* _The requested service (Servlet admin.login_jsp is
    currently unavailable) is not currently available._

    Apache Tomcat /5.5.9

    I've read around on several forums, and the usual cause of this seems to
    be duplicate instances of the file struts.jar, however I can only locate
    the struts.jar file that is in
    $ Is anyone familiar
    with this problem, I'm sure that it's probably a basic solution, i'm a
    complete and total newbie to tomcat.

    Thanks in advance,

    J. Ryan Kelley
    Trinity Transport, Inc.

    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org


    >>J. Ryan Kelley
    >>Trinity Transport, Inc.
    >>
    >>
    >>
    >>
    >>To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >>For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >>
    >>

    >
    >>

    >
    >
    >To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >
    >
    >
  • No.5 | | 9048 bytes | |

    hmm,
    i dont think struts need to be downloaded seperately
    are u using JDK 1.4 or 1.5 ?
    if u r using 1.4 u have to download compatabliity package and
    configure its contents in ur tomcat installation by following the
    steps in Running.txt

    7/26/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    yeah, my user is added to tomcat-users.xml, but i don't even get a
    prompt to attempt to loginI have a feeling that some of my
    dependencies are not complete. I never installed struts, but there is a
    struts.jar file in my $
    directorythe reason that i think this is some of the following
    entries I found in my catalina.out log file

    Jul 25, 2005 9:18:53 PM init
    SEVERE: Unable to initialize Struts ActionServlet due to an unexpected
    exception or error thrown, so marking the servlet as unavailable. Most
    likely, this is
    due to an incorrect or missing library dependency.

    at (Native Method)
    at (Class.java:1655)
    at java.lang.Class.getMethod0(Class.java:1901)
    at java.lang.Class.getMethod(Class.java:984)
    at
    (MethodUtils.java:535)
    at
    (MethodUtils.java:209)
    at
    (CallMethodRule.java:585)
    at (Rule.java:228)
    at
    (Digester.java:1067)
    at
    (Unknown Source)
    at
    (Unknown
    Source)
    at
    $(Unknown
    Source)
    at
    (Unknown
    Source)
    at (Unknown
    Source)
    at (Unknown
    Source)
    at (Unknown Source)
    at (Unknown Source)
    at (Digester.java:1591)
    at
    (ActionServlet.java:1140)
    at
    (ActionServlet.java:326)
    at
    (ApplicationServlet.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at
    (StandardEngineValve.java:107)
    at
    (CoyoteAdapter.java:148)
    at
    (Http11Processor.java:856)
    at
    $(Http11Protocol.java:744)
    at
    (PoolTcpEndpoint.java:527)
    at
    ()
    at
    $ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Jul 25, 2005 9:18:53 PM log
    INF: Marking servlet action as unavailable
    Jul 25, 2005 9:18:53 PM
    invoke
    SEVERE: Allocate exception for servlet action
    SEVERE: Allocate exception for servlet action

    at
    (ActionServlet.java:366)
    at
    (ApplicationServlet.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at
    (StandardEngineValve.java:107)
    at
    (CoyoteAdapter.java:148)
    at
    (Http11Processor.java:856)
    at
    $(Http11Protocol.java:744)
    at
    (PoolTcpEndpoint.java:527)
    at
    ()
    at
    $ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Jul 25, 2005 9:18:53 PM
    invoke
    SEVERE: Servlet.service() for servlet admin.login_jsp threw exception

    at
    (ActionServlet.java:366)
    at
    (ApplicationServlet.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at (GenericServlet.java:211)
    at
    (StandardWrapper.java:1091)
    at
    (StandardWrapper.java:750)
    at
    (ApplicationDispatcher.java:641)
    at
    (ApplicationDispatcher.java:539)
    at
    (ApplicationDispatcher.java:499)
    at admin.login_jsp._jspService(login_jsp.java:66)
    at
    (HttpJspBase.java:97)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()
    at
    (ApplicationDispatcher.java:672)
    at
    (ApplicationDispatcher.java:463)
    at
    (ApplicationDispatcher.java:398)
    at
    (ApplicationDispatcher.java:301)
    at
    (FormAuthenticator.java:238)
    at
    (AuthenticatorBase.java:446)
    at
    (StandardHostValve.java:126)
    at
    (ErrorReportValve.java:105)
    at
    (StandardEngineValve.java:107)
    at
    (CoyoteAdapter.java:148)
    at
    (Http11Processor.java:856)
    at
    $(Http11Protocol.java:744)
    at
    (PoolTcpEndpoint.java:527)
    at
    ()
    at
    $ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:534)
    Jul 25, 2005 9:18:53 PM log
    INF: Marking servlet admin.login_jsp as unavailable
    Jul 25, 2005 9:18:53 PM
    authenticate
    WARNING: Unexpected error forwarding to login page

    so obviously (it seems to me anyway) my issue is that admin.login_jsp is
    being marked unavailable because of messed up dependencies, do I need to
    download struts?

    Thanks again for helping out a newbie,
    Ryan

    Peddireddy Srikanth wrote:

    >hmm
    >if u have manger application running , try depploying (or redeploying
    >) admin application theu it
    >and then try to login
    >I hope u added the user with which r trying to login into admin in
    >tomcat-users.xml
    >If u have tried all these already and still failed then I too dont
    >have a clue :-(
    >
    >

    7/25/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    >
    >
    >>Yes, those files are exactly where you say they should be.
    >>
    >>Thanks.
    >>Ryan
    >>
    >>Peddireddy Srikanth wrote:
    >>
    >>
    >>

    may be you would have done this but I want to know
    whethere you extracted all files from that admin archive (zip or tar)
    and placed the files in respective folders like
    admin.xml in "<catalina home>\conf\Catalina\localhost"
    admin folder in "<catalina home>\server\webapps\"

    Srikanth

    7/22/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:

    I've installed tomcat 5.5.9 and downloaded the admin package. When I
    attempt to access http://localhost:8080/admin/ I get a blank screen the
    first time, then if i reload I get the following error message in my
    browser.

    HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

    type* Status report
    message* _Servlet admin.login_jsp is currently unavailable_
    description* _The requested service (Servlet admin.login_jsp is
    currently unavailable) is not currently available._

    Apache Tomcat /5.5.9

    I've read around on several forums, and the usual cause of this seems to
    be duplicate instances of the file struts.jar, however I can only locate
    the struts.jar file that is in
    $ Is anyone familiar
    with this problem, I'm sure that it's probably a basic solution, i'm a
    complete and total newbie to tomcat.

    Thanks in advance,

    J. Ryan Kelley
    Trinity Transport, Inc.

    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org


    >>J. Ryan Kelley
    >>Trinity Transport, Inc.
    >>
    >>
    >>
    >>
    >>To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >>For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >>
    >>
    >>
    >>

    >
    >
    >To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >
    >
    >
    >
    >
  • No.6 | | 14513 bytes | |

    All of the dependencies appear to be valid. I can bring up
    http://localhost:8080 and go into the manager and the examples, but not
    admin. Also, the msh service that I am installing Tomcat for is not
    working in the same fashion. I figure that the users on this list are
    probably a lot more familiar with the admin servlet then Hermes MSH.
    Anyone have any idea what would give me these dependency errors?

    Thanks,
    Ryan

    Peddireddy Srikanth wrote:

    >hmm,
    >i dont think struts need to be downloaded seperately
    >are u using JDK 1.4 or 1.5 ?
    >if u r using 1.4 u have to download compatabliity package and
    >configure its contents in ur tomcat installation by following the
    >steps in Running.txt
    >
    >
    >
    >

    7/26/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:

    >
    >>yeah, my user is added to tomcat-users.xml, but i don't even get a
    >>prompt to attempt to loginI have a feeling that some of my
    >>dependencies are not complete. I never installed struts, but there is a
    >>struts.jar file in my $
    >>directorythe reason that i think this is some of the following
    >>entries I found in my catalina.out log file
    >>
    >>
    >>Jul 25, 2005 9:18:53 PM init
    >>SEVERE: Unable to initialize Struts ActionServlet due to an unexpected
    >>exception or error thrown, so marking the servlet as unavailable. Most
    >>likely, this is

    >due to an incorrect or missing library dependency.
    >
    >at (Native Method)
    >at (Class.java:1655)
    >at java.lang.Class.getMethod0(Class.java:1901)
    >at java.lang.Class.getMethod(Class.java:984)
    >at
    >>(MethodUtils.java:535)

    >at
    >>(MethodUtils.java:209)

    >at
    >>(CallMethodRule.java:585)

    >at (Rule.java:228)
    >at
    >>(Digester.java:1067)

    >at
    >>(Unknown Source)

    >at
    >>(Unknown
    >>Source)

    >at
    >>$(Unknown
    >>Source)

    >at
    >>(Unknown
    >>Source)

    >at (Unknown
    >>Source)

    >at (Unknown
    >>Source)

    >at (Unknown Source)
    >at (Unknown Source)
    >at (Digester.java:1591)
    >at
    >>(ActionServlet.java:1140)

    >at
    >>(ActionServlet.java:326)

    >at
    >>(ApplicationServlet.java:105)

    >at (GenericServlet.java:211)
    >at
    >>(StandardWrapper.java:1091)

    >at
    >>(StandardWrapper.java:750)

    >at
    >>(ApplicationDispatcher.java:641)

    >at
    >>(ApplicationDispatcher.java:539)

    >at
    >>(ApplicationDispatcher.java:499)

    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >>(HttpJspBase.java:97)

    >at (HttpServlet.java:802)
    >at
    >>()

    >at
    >>()

    >at
    >>(ApplicationDispatcher.java:672)

    >at
    >>(ApplicationDispatcher.java:463)

    >at
    >>(ApplicationDispatcher.java:398)

    >at
    >>(ApplicationDispatcher.java:301)

    >at
    >>(FormAuthenticator.java:238)

    >at
    >>(AuthenticatorBase.java:446)

    >at
    >>(StandardHostValve.java:126)

    >at
    >>(ErrorReportValve.java:105)

    >at
    >>(StandardEngineValve.java:107)

    >at
    >>(CoyoteAdapter.java:148)

    >at
    >>(Http11Processor.java:856)

    >at
    >>$(Http11Protocol.java:744)

    >at
    >>(PoolTcpEndpoint.java:527)

    >at
    >>()

    >at
    >>$ControlRunnable.run(ThreadPool.java:684)

    >at java.lang.Thread.run(Thread.java:534)
    >>Jul 25, 2005 9:18:53 PM log
    >>INF: Marking servlet action as unavailable
    >>Jul 25, 2005 9:18:53 PM
    >>invoke
    >>SEVERE: Allocate exception for servlet action
    >>SEVERE: Allocate exception for servlet action

    >
    >at
    >>(ActionServlet.java:366)

    >at
    >>(ApplicationServlet.java:105)

    >at (GenericServlet.java:211)
    >at
    >>(StandardWrapper.java:1091)

    >at
    >>(StandardWrapper.java:750)

    >at
    >>(ApplicationDispatcher.java:641)

    >at
    >>(ApplicationDispatcher.java:539)

    >at
    >>(ApplicationDispatcher.java:499)

    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >>(HttpJspBase.java:97)

    >at (HttpServlet.java:802)
    >at
    >>()

    >at
    >>()

    >at
    >>(ApplicationDispatcher.java:672)

    >at
    >>(ApplicationDispatcher.java:463)

    >at
    >>(ApplicationDispatcher.java:398)

    >at
    >>(ApplicationDispatcher.java:301)

    >at
    >>(FormAuthenticator.java:238)

    >at
    >>(AuthenticatorBase.java:446)

    >at
    >>(StandardHostValve.java:126)

    >at
    >>(ErrorReportValve.java:105)

    >at
    >>(StandardEngineValve.java:107)

    >at
    >>(CoyoteAdapter.java:148)

    >at
    >>(Http11Processor.java:856)

    >at
    >>$(Http11Protocol.java:744)

    >at
    >>(PoolTcpEndpoint.java:527)

    >at
    >>()

    >at
    >>$ControlRunnable.run(ThreadPool.java:684)

    >at java.lang.Thread.run(Thread.java:534)
    >>Jul 25, 2005 9:18:53 PM
    >>invoke
    >>SEVERE: Servlet.service() for servlet admin.login_jsp threw exception

    >
    >at
    >>(ActionServlet.java:366)

    >at
    >>(ApplicationServlet.java:105)

    >at (GenericServlet.java:211)
    >at
    >>(StandardWrapper.java:1091)

    >at
    >>(StandardWrapper.java:750)

    >at
    >>(ApplicationDispatcher.java:641)

    >at
    >>(ApplicationDispatcher.java:539)

    >at
    >>(ApplicationDispatcher.java:499)

    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >>(HttpJspBase.java:97)

    >at (HttpServlet.java:802)
    >at
    >>()

    >at
    >>()

    >at
    >>(ApplicationDispatcher.java:672)

    >at
    >>(ApplicationDispatcher.java:463)

    >at
    >>(ApplicationDispatcher.java:398)

    >at
    >>(ApplicationDispatcher.java:301)

    >at
    >>(FormAuthenticator.java:238)

    >at
    >>(AuthenticatorBase.java:446)

    >at
    >>(StandardHostValve.java:126)

    >at
    >>(ErrorReportValve.java:105)

    >at (GenericServlet.java:211)
    >at
    >>(StandardWrapper.java:1091)

    >at
    >>(StandardWrapper.java:750)

    >at
    >>(ApplicationDispatcher.java:641)

    >at
    >>(ApplicationDispatcher.java:539)

    >at
    >>(ApplicationDispatcher.java:499)

    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >>(HttpJspBase.java:97)

    >at (HttpServlet.java:802)
    >at
    >>()

    >at
    >>()

    >at
    >>(ApplicationDispatcher.java:672)

    >at
    >>(ApplicationDispatcher.java:463)

    >at
    >>(ApplicationDispatcher.java:398)

    >at
    >>(ApplicationDispatcher.java:301)

    >at
    >>(FormAuthenticator.java:238)

    >at
    >>(AuthenticatorBase.java:446)

    >at
    >>(StandardHostValve.java:126)

    >at
    >>(ErrorReportValve.java:105)

    >at
    >>(StandardEngineValve.java:107)

    >at
    >>(CoyoteAdapter.java:148)

    >at
    >>(Http11Processor.java:856)

    >at
    >>$(Http11Protocol.java:744)

    >at
    >>(PoolTcpEndpoint.java:527)

    >at
    >>()

    >at
    >>$ControlRunnable.run(ThreadPool.java:684)

    >at java.lang.Thread.run(Thread.java:534)
    >>Jul 25, 2005 9:18:53 PM log
    >>INF: Marking servlet admin.login_jsp as unavailable
    >>Jul 25, 2005 9:18:53 PM

    >authenticate
    >>WARNING: Unexpected error forwarding to login page

    >
    >>
    >>
    >>so obviously (it seems to me anyway) my issue is that admin.login_jsp is
    >>being marked unavailable because of messed up dependencies, do I need to
    >>download struts?
    >>
    >>
    >>
    >>Thanks again for helping out a newbie,
    >>Ryan
    >>
    >>
    >>
    >>
    >>Peddireddy Srikanth wrote:
    >>

    >
    >>

    hmm
    if u have manger application running , try depploying (or redeploying
    ) admin application theu it
    and then try to login
    I hope u added the user with which r trying to login into admin in
    tomcat-users.xml
    If u have tried all these already and still failed then I too dont
    have a clue :-(

    7/25/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:

    Yes, those files are exactly where you say they should be.

    Thanks.
    Ryan

    Peddireddy Srikanth wrote:

    may be you would have done this but I want to know
    whethere you extracted all files from that admin archive (zip or tar)
    and placed the files in respective folders like
    admin.xml in "<catalina home>\conf\Catalina\localhost"
    admin folder in "<catalina home>\server\webapps\"

    Srikanth

    7/22/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:

    I've installed tomcat 5.5.9 and downloaded the admin package. When I
    attempt to access http://localhost:8080/admin/ I get a blank screen the
    first time, then if i reload I get the following error message in my
    browser.

    HTTP Status 503 - Servlet admin.login_jsp is currently unavailable

    type* Status report
    message* _Servlet admin.login_jsp is currently unavailable_
    description* _The requested service (Servlet admin.login_jsp is
    currently unavailable) is not currently available._

    Apache Tomcat /5.5.9

    I've read around on several forums, and the usual cause of this seems to
    be duplicate instances of the file struts.jar, however I can only locate
    the struts.jar file that is in
    $ Is anyone familiar
    with this problem, I'm sure that it's probably a basic solution, i'm a
    complete and total newbie to tomcat.

    Thanks in advance,

    J. Ryan Kelley
    Trinity Transport, Inc.

    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org

    J. Ryan Kelley
    Trinity Transport, Inc.

    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org

    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org


    >>J. Ryan Kelley
    >>Trinity Transport, Inc.
    >>
    >>
    >>
    >>
    >>To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >>For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >>
    >>

    >
    >>

    >
    >
    >To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >
    >
    >
  • No.7 | | 11882 bytes | |

    Hi Folks,

    I have been at this for a few hours today and what fixed my problem with
    going to admin page and getting a blank page, then refreshing to find error
    is HTTP Status 503 - Servlet admin.login_jsp is currently unavailable.

    download the tomcatadmin.tar.gz file, extracting it and copy the whole
    server folder to
    $CATALINA_HME. the admin folder is in $
    also copy the conf folder to $CATALINA_HME.

    I hope this helps because i know how frustrating it is.
    USING: Apache Tomcat/5.5.17
    and sun JDK 1.5

    Best Regards,

    Peddireddy Srikanth wrote:

    hmm,
    i dont think struts need to be downloaded seperately
    are u using JDK 1.4 or 1.5 ?
    if u r using 1.4 u have to download compatabliity package and
    configure its contents in ur tomcat installation by following the
    steps in Running.txt

    7/26/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    >yeah, my user is added to tomcat-users.xml, but i don't even get a
    >prompt to attempt to loginI have a feeling that some of my
    >dependencies are not complete. I never installed struts, but there is a
    >struts.jar file in my $
    >directorythe reason that i think this is some of the following
    >entries I found in my catalina.out log file
    >
    >
    >Jul 25, 2005 9:18:53 PM init
    >SEVERE: Unable to initialize Struts ActionServlet due to an unexpected
    >exception or error thrown, so marking the servlet as unavailable. Most
    >likely, this is
    >due to an incorrect or missing library dependency.
    >
    >at (Native Method)
    >at (Class.java:1655)
    >at java.lang.Class.getMethod0(Class.java:1901)
    >at java.lang.Class.getMethod(Class.java:984)
    >at
    >(MethodUtils.java:535)
    >at
    >(MethodUtils.java:209)
    >at
    >(CallMethodRule.java:585)
    >at (Rule.java:228)
    >at
    >(Digester.java:1067)
    >at
    >(Unknown Source)
    >at
    >(Unknown
    >Source)
    >at
    >$(Unknown
    >Source)
    >at
    >(Unknown
    >Source)
    >at (Unknown
    >Source)
    >at (Unknown
    >Source)
    >at (Unknown Source)
    >at (Unknown
    >Source)
    >at (Digester.java:1591)
    >at
    >(ActionServlet.java:1140)
    >at
    >(ActionServlet.java:326)
    >at
    >(ApplicationServlet.java:105)
    >at (GenericServlet.java:211)
    >at
    >(StandardWrapper.java:1091)
    >at
    >(StandardWrapper.java:750)
    >at
    >(ApplicationDispatcher.java:641)
    >at
    >(ApplicationDispatcher.java:539)
    >at
    >(ApplicationDispatcher.java:499)
    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >(HttpJspBase.java:97)
    >at (HttpServlet.java:802)
    >at
    >()
    >at
    >()
    >at
    >(ApplicationDispatcher.java:672)
    >at
    >(ApplicationDispatcher.java:463)
    >at
    >(ApplicationDispatcher.java:398)
    >at
    >(ApplicationDispatcher.java:301)
    >at
    >(FormAuthenticator.java:238)
    >at
    >(AuthenticatorBase.java:446)
    >at
    >(StandardHostValve.java:126)
    >at
    >(ErrorReportValve.java:105)
    >at
    >(StandardEngineValve.java:107)
    >at
    >(CoyoteAdapter.java:148)
    >at
    >(Http11Processor.java:856)
    >at
    >$(Http11Protocol.java:744)
    >at
    >(PoolTcpEndpoint.java:527)
    >at
    >()
    >at
    >$ControlRunnable.run(ThreadPool.java:684)
    >at java.lang.Thread.run(Thread.java:534)
    >Jul 25, 2005 9:18:53 PM log
    >INF: Marking servlet action as unavailable
    >Jul 25, 2005 9:18:53 PM
    >invoke
    >SEVERE: Allocate exception for servlet action
    >SEVERE: Allocate exception for servlet action
    >
    >at
    >(ActionServlet.java:366)
    >at
    >(ApplicationServlet.java:105)
    >at (GenericServlet.java:211)
    >at
    >(StandardWrapper.java:1091)
    >at
    >(StandardWrapper.java:750)
    >at
    >(ApplicationDispatcher.java:641)
    >at
    >(ApplicationDispatcher.java:539)
    >at
    >(ApplicationDispatcher.java:499)
    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >(HttpJspBase.java:97)
    >at (HttpServlet.java:802)
    >at
    >()
    >at
    >()
    >at
    >(ApplicationDispatcher.java:672)
    >at
    >(ApplicationDispatcher.java:463)
    >at
    >(ApplicationDispatcher.java:398)
    >at
    >(ApplicationDispatcher.java:301)
    >at
    >(FormAuthenticator.java:238)
    >at
    >(AuthenticatorBase.java:446)
    >at
    >(StandardHostValve.java:126)
    >at
    >(ErrorReportValve.java:105)
    >at
    >(StandardEngineValve.java:107)
    >at
    >(CoyoteAdapter.java:148)
    >at
    >(Http11Processor.java:856)
    >at
    >$(Http11Protocol.java:744)
    >at
    >(PoolTcpEndpoint.java:527)
    >at
    >()
    >at
    >$ControlRunnable.run(ThreadPool.java:684)
    >at java.lang.Thread.run(Thread.java:534)
    >Jul 25, 2005 9:18:53 PM
    >invoke
    >SEVERE: Servlet.service() for servlet admin.login_jsp threw exception
    >
    >at
    >(ActionServlet.java:366)
    >at
    >(ApplicationServlet.java:105)
    >at (GenericServlet.java:211)
    >at
    >(StandardWrapper.java:1091)
    >at
    >(StandardWrapper.java:750)
    >at
    >(ApplicationDispatcher.java:641)
    >at
    >(ApplicationDispatcher.java:539)
    >at
    >(ApplicationDispatcher.java:499)
    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >(HttpJspBase.java:97)
    >at (HttpServlet.java:802)
    >at
    >()
    >at
    >()
    >at
    >(ApplicationDispatcher.java:672)
    >at
    >(ApplicationDispatcher.java:463)
    >at
    >(ApplicationDispatcher.java:398)
    >at
    >(ApplicationDispatcher.java:301)
    >at
    >(FormAuthenticator.java:238)
    >at
    >(AuthenticatorBase.java:446)
    >at
    >(StandardHostValve.java:126)
    >at
    >(ErrorReportValve.java:105)
    >at (GenericServlet.java:211)
    >at
    >(StandardWrapper.java:1091)
    >at
    >(StandardWrapper.java:750)
    >at
    >(ApplicationDispatcher.java:641)
    >at
    >(ApplicationDispatcher.java:539)
    >at
    >(ApplicationDispatcher.java:499)
    >at admin.login_jsp._jspService(login_jsp.java:66)
    >at
    >(HttpJspBase.java:97)
    >at (HttpServlet.java:802)
    >at
    >()
    >at
    >()
    >at
    >(ApplicationDispatcher.java:672)
    >at
    >(ApplicationDispatcher.java:463)
    >at
    >(ApplicationDispatcher.java:398)
    >at
    >(ApplicationDispatcher.java:301)
    >at
    >(FormAuthenticator.java:238)
    >at
    >(AuthenticatorBase.java:446)
    >at
    >(StandardHostValve.java:126)
    >at
    >(ErrorReportValve.java:105)
    >at
    >(StandardEngineValve.java:107)
    >at
    >(CoyoteAdapter.java:148)
    >at
    >(Http11Processor.java:856)
    >at
    >$(Http11Protocol.java:744)
    >at
    >(PoolTcpEndpoint.java:527)
    >at
    >()
    >at
    >$ControlRunnable.run(ThreadPool.java:684)
    >at java.lang.Thread.run(Thread.java:534)
    >Jul 25, 2005 9:18:53 PM log
    >INF: Marking servlet admin.login_jsp as unavailable
    >Jul 25, 2005 9:18:53 PM
    >authenticate
    >WARNING: Unexpected error forwarding to login page
    >
    >
    >
    >so obviously (it seems to me anyway) my issue is that admin.login_jsp is
    >being marked unavailable because of messed up dependencies, do I need to
    >download struts?
    >
    >
    >
    >Thanks again for helping out a newbie,
    >Ryan
    >
    >
    >
    >
    >Peddireddy Srikanth wrote:
    >
    >>hmm
    >>if u have manger application running , try depploying (or redeploying
    >>) admin application theu it
    >>and then try to login
    >>I hope u added the user with which r trying to login into admin in
    >>tomcat-users.xml
    >>If u have tried all these already and still failed then I too dont
    >>have a clue :-(
    >>
    >>

    >7/25/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    >>
    >>
    >>>Yes, those files are exactly where you say they should be.
    >>>
    >>>Thanks.
    >>>Ryan
    >>>
    >>>Peddireddy Srikanth wrote:
    >>>
    >>>
    >>>

    >may be you would have done this but I want to know
    >whethere you extracted all files from that admin archive (zip or tar)
    >and placed the files in respective folders like
    >admin.xml in "<catalina home>\conf\Catalina\localhost"
    >admin folder in "<catalina home>\server\webapps\"
    >
    >Srikanth
    >
    >7/22/05, J. Ryan Kelley <ryan.kelley (AT) trinitytransport (DOT) comwrote:
    >
    >
    >
    >
    >I've installed tomcat 5.5.9 and downloaded the admin package. When I
    >attempt to access http://localhost:8080/admin/ I get a blank screen
    >the
    >first time, then if i reload I get the following error message in my
    >browser.
    >
    >
    >HTTP Status 503 - Servlet admin.login_jsp is currently unavailable
    >
    >type* Status report
    >message* _Servlet admin.login_jsp is currently unavailable_
    >description* _The requested service (Servlet admin.login_jsp is
    >currently unavailable) is not currently available._
    >
    >Apache Tomcat /5.5.9
    >
    >
    >
    >
    >I've read around on several forums, and the usual cause of this seems
    >to
    >be duplicate instances of the file struts.jar, however I can only
    >locate
    >the struts.jar file that is in
    >$ Is anyone familiar
    >with this problem, I'm sure that it's probably a basic solution, i'm
    >a
    >complete and total newbie to tomcat.
    >
    >Thanks in advance,
    >
    >
    >J. Ryan Kelley
    >Trinity Transport, Inc.
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >
    >
    >
    >
    >
    >
    >
    >
    >>>J. Ryan Kelley
    >>>Trinity Transport, Inc.
    >>>
    >>>
    >>>
    >>>
    >>>To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >>>For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >>>
    >>>
    >>>
    >>>

    >>
    >>
    >>To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >>For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >>
    >>
    >>
    >>
    >>

    >
    >--
    >J. Ryan Kelley
    >Trinity Transport, Inc.
    >(302)253-3900 ext. 3844
    >
    >
    >
    >To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    >For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org
    >
    >>


    To unsubscribe, e-mail: tomcat-user-unsubscribe (AT) jakarta (DOT) apache.org
    For additional commands, e-mail: tomcat-user-help (AT) jakarta (DOT) apache.org

Re: Problem Bringing up Admin


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "Java"

EMSDN.COM