A Simple 405 error

I am getting a 405 error in the web browser and in my client MIDlet whenever it performs a post operation and the servlet tries to grab via the code shown below.
I am not doing anything fancy just want to get a string as a parameter in the servlet and print it out that is all I have to do to get the MIDlet to receive it.
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
public class PostServlet extends HttpServlet {
  public void doPost(HttpServletRequest request,
      HttpServletResponse response)
      throws ServletException, IOException {
    String name = request.getParameter("name = ");
    String message = "Received name: " + name + "'";
    response.setContentType("text/plain");
    response.setContentLength(message.length());
    PrintWriter out = response.getWriter();
    out.println(message);
}I am using tomcat 4.1 on jdk 1.4.1 I am not sure why I get this error. The url pattern used in the clients is:
http://localhost:8080/myapp/servlet/PostServlet
If anyone explain what has happened I would be greatful.
Prash

I find that if I put it in my root folder then the application runs. So this must be some sort of security error. I was wondering how would i write a web.xml for this application
e.g. folder name = test
servlet name = servletTest
I have seen many tutorials on how to write the web.xml for your own application (without using the root context) but none of them work so far. I know I have to also set the security allowance to make this applicaiton able to execute post and ger in the web.xml. This is what caused my problems earlier as I just copy , pasted the root folder and called it 'test'. I know this was bad practice on my behalf but I just wanted to get it to work real fast.

Similar Messages

  • ICM_HTTP_INTERNAL_ERROR 405 error

    Hi All,
    We are using BPM for multiple IDoc-XI-Single file scenario. While processing material in bulk (5000 material at a time) message is failed with ICM_HTTP_INTERNAL_ERROR 405 error.
    In Integration Process, we used Deadline Branch Block with 1 min duration.
    Please suggest reasons for the error.
    Regards,
    Rama

    Hi Rama,
    The following threads discuss the same issue, they might help you:-
    1. Performance issue and Error in ICM in case of a lot of messages
    2. error code: 400, error text: ICM_HTTP_CONNECTION_FAILED
    Regards,
    Sushumna

  • 405 error when created a servlet for Recalculate form button

    hello, if anyone can help me out. I'm doing a school project that is a (Apache Tomcat Server) website that allows customers to buy music cds.(no it does not really go to a Service) i am having trouble with the recalculate form button. I have a form button created in a page called CartDetails.java and i use outstring to convert these lines <form method='POST' name='recalc' action='Recalculate'> and <input type='Submit' name='recalc' value='Recalculate'> into html code so tomcat will see it as html and not java. I have also made a doGet method inside another page called Recalculate.java to request the data i need from the database. this is part of the code(in Recalculate.java).
    protected void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    HttpSession session = request.getSession();
    Music.Customer custbean = (Music.Customer)session.getAttribute("customer");
    yes, I have done all the calculations.(my teacher gave them to me). I have also created the servlet in the web.xml file properly. the problem is that it gives me a 405 error saying HTTP method POST is not supported by this URL when the recalculate form button is pressed.
    please help. thanx

    I did change it to doPost and it gave me the same error message. my teacher told me to put in a doPost method right underneath the doGet method(the doPost would do exactly what the doGet does in my program). but that would mean i would have to open two sessions. this is my whole program. i am almost positive the problem is here. Everything else is done right. /*
    This servlet recalculates the total of the cart. those items which quantities are 0 will be deleted from the
    cartdetails table. This version calls on CartDetails servlet to finish the job. Commented segments below were in
    RecalculateCart
    package Music;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import Music.DBI;
    import Music.Customer;
    import Music.Control;
    import java.text.NumberFormat;
    public class Recalculate extends Music.Control {
    String CustomerID;
    protected DBI dbi; // i also used do Post here....same result.
    protected void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    HttpSession session = request.getSession();
    Music.Customer custbean = (Music.Customer)session.getAttribute("customer");
    dbi = custbean.getDBI();
    try {
    java.util.Enumeration paramNames = request.getParameterNames();
    while(paramNames.hasMoreElements())
    String paramName = (String)paramNames.nextElement();
    this.dbi.printItem(paramName);
    // String[] paramValue = request.getParameterValues(paramName);
    /*ParamValue is the ID of the item */
    String paramValue = request.getParameter(paramName);
    this.dbi.printItem("Item = "+paramName+" Number of Items = "+paramValue);
    int qty = Integer.parseInt(paramValue);
    if (qty == 0)
    /* delete record form cartdetail */
    this.dbi.deleteItem(Integer.parseInt(custbean.getCartId()),Integer.parseInt(paramName));
    else
    /* update record with the paramValues as quantity */
    this.dbi.updateItem(Integer.parseInt(custbean.getCartId()),Integer.parseInt(paramName),qty);
    } // end while
    catch(Exception e)
    e.printStackTrace();
    gotoPage("/CartDetails", request, response);
    } // end do Post
    } // end class

  • After Upgrade to PI7.1 getting Simple transformation error

    HI Experts,
    I have an Issue, the scenario which i', working its working properly in DEV, QA, PROD in PI 7.0, We upgraded the system to PI7.1
    Unknown Simple transformation error in converting XML to internal table
    Application error in mapping program , error text: Unknown Simple transformation error in converting XML to internal table An exception has occurred.
    Can any one suggest related notes are suggestion.
    appericate in advance for the solutions which you all provide me
    Thank you
    Venkat Anil

    What kind of mapping is that ? Graphical, Java, XSLT, ABAP ?
    The XML parser in 7.1 contains many subtle changes compared to 3.0
    But this error sounds like a bug. Is there something special in the XML input ? is it wellformed-XML ?
    CSY

  • Simple transformation error in converting XML to internal table

    Hi Team,
    I have an issue, its working in Dev, QA, and Prod in PI 7.0, once we upgrade it to PI 7.1 I'm getting the  below mention error,   
    Unknown Simple transformation error in converting XML to internal table
    Application error in mapping program ZF_INT006_FILE_TO_SAP_FILE, error code: , error text: Unknown Simple transformation error in converting XML to internal table An exception has occurred.
    Can any one suggest related notes are suggestion.
    appericate in advance for the solutions which you all provide me
    Thank you
    Venkat Anil

    Check the flag "use SAP XML toolkit" for the operation mapping and try, if that works then.
    Check the flag for all XSLT and Java mappings which is migrated from PI 7.0

  • 405 Error...

    Hi friends,
       i saw the 405 error message while i run my ABAPPROXY scenario in SXMB_MONI.
    the following errors are given below.
      <b><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
      <SAP:P1>405</SAP:P1>
      <SAP:P2>ICM_HTTP_INTERNAL_ERROR</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText><html><head><title>SAP Web Application Server Error</title> <style type="text/css"> body { font-family: arial, sans-serif;} </style> </head> <BODY text="#172972" link="#808080" vlink="#808080" alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <table height="61" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://sapxi30:8000/sap/public/icman/img/bluebar_tile.gif" height="30"><table> <tr> <td width=5></td> <td width=20% nowrap><font face=arial size="-1" color=white>SAP Web Application Server </font></td><td width=75% align="right" nowrap><font face=arial size="-1" color="white"><a href="http://help.sap.com/">Help </font></td><td width=5% nowrap></font></td> </tr></table> </td><td rowspan=2 width=122 height=61 valign=top><img src= "http://sapxi30:8000/sap/public/icman/img/theme.jpg" width=122 height=61 border=0 alt="SAP"></td> </tr><tr><td background="http://sapxi30:8000/sap/public/icman/img/graybar_tile.jpg" height="31">  </td></tr> </table> <br><br> <table width=800> <tr><td width=50 nowrap> </td><td> <H2><b>500 Internal Server Error</b></H2><br><hr><br>Internal Server Error(-1)<br><br><hr> <table border="0"> <tr><td>Error:</td><td>-1</td></tr> <tr><td>Version:</td><td>6040</td></tr> <tr><td>Component:</td><td>HTTP_PLG</td></tr> <tr><td>Date/Time:</td><td>Thu Sep 08 10:54:26 2005 </td></tr> <tr><td>Module:</td><td>http_plg.c</td></tr> <tr><td>Line:</td><td>3387</td></tr> <tr><td>Server:</td><td>sapxi30_XI3_00</td></tr> <tr><td>Detail:</td><td>No handler defined for this URL</td></tr> </table> <p></p> </td></tr></table> <table><tr><td width=50 nowrap></td> <td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">&copy; 2001-2003, SAP AG</a></FONT></td></tr></table></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error when receiving by HTTP (error code:  405, error text: ICM_HTTP_INTERNAL_ERROR)</SAP:Stack>
      <SAP:Retry>A</SAP:Retry>
      </SAP:Error></b>
    why i got this error and what i need to do.
    thanks in advance,
    Saravanan.
    <b></b>

    First could you check, if the URL is correct?
    The URL should be:
    http://<host>:<port>/sap/xi/engine?type=entry for Web AS 6.40
    http://<host>:<port>/sap/xi/engine?type=receiver for Web AS 6.20
    Second check with SICF, if the service corresponding to the URL is active.
    Regards
    Stefan

  • 405 error sometimes returned, sometimes works properly

    We have an application that is built on top of STRUTS 1.1. We have encountered
    what seem to be 'random' instances where a "405 error - resouce not allowed" is
    returned. Open a new browser window, it will work fine. Our configuration consists
    of LINUX Apache web servers with weblogic 8.1 running on windows 2000. We are
    using clustering. We have a load balancing device in front of our 2 web servers,
    with 3 weblogic servers in our cluster. Testing in production has recreated the
    problem, specific to 1 web server talking to 1 of the web servers, although the
    weblogic access logs show that the problem has occured on one of our other weblogic
    servers as well. The wierd part is that this problem doesn't seem to be consistent,
    and the application seems to work 'most of the time'.

    I have exactly the same problem
    (Problem:
     *Sometimes* when I boot my laptop the power light comes on but the screen stays black. Doesn't go any further.)
    My laptop only doesn't start on battery only. The power light comes on and the stays on with the laptop in a freeze (nothing displayed on screen). The only way to get this light off is to remove battery.
    Starts EVERY time with the AC power connected (with or without battery).
    Works perfectly normal once booted
    SOMETIMES starts with the battery only if I boot soon after I have already been using the laptop
    I have tried the static release processes but doesn't work.
    After having this trouble I updated to latest BIOS but has not helped
    Tried a different battery and has not helped
    Is a Toshiba Satellite PRO L500 T4400 4GB 15" Win7 Laptop - only 3 weeks or so old
    Very annoying!
    Please someone with an answer??

  • Sjsws 7 u1 and PHP 405 errors

    All,
    I have receiving php 405 errors when I run php scripts on sjsws 7 u1. I have downloaded the php add on from sun downloads. Any suggestions on how to make this work. The install script has placed most of the entries I required in the obj.conf, magnus.conf and mime.types files.
    Any help is greatly appreciated.
    Nathan

    Here is my obj.conf:
    # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
    # Use is subject to license terms.
    # You can edit this file, but comments and formatting changes
    # might be lost when you use the administration GUI or CLI.
    <Object name="default">
    Service type="magnus-internal/php"
    fn="responder-fastcgi"
    app-path="/sun/webserver7/plugins/php/bin/php"
    bind-path="localhost:3101"
    app-env="PHPRC=/sun/webserver7/plugins/php"
    app-env="PHP_FCGI_CHILDREN=2"
    app-env="PHP_FCGI_MAX_REQUEST=200"
    app-env="FCGI_WEB_SERVER_ADDRS=127.0.0.1"
    app-env="LD_LIBRARY_PATH=/sun/webserver7/plugins/php"
    app-env="LD_LIBRARY_PATH_64=/sun/webserver7/plugins/php/64"
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn="pfx2dir" from="/mc-icons" dir="/sun/webserver7/lib/icons" name="es-internal"
    NameTrans fn="assign-name" from="/fcgi/*" name="fcgi.config"
    PathCheck fn="uri-clean"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp,index.php,default.asp,index.asp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object name="fcgi.config">
    AuthTrans fn="auth-fastcgi" app-path="/fastcgi/apps/c/simpleAuth"
    bind-path="localhost:2111"
    Service fn="responder-fastcgi"
    app-path="/fastcgi_enabled_php_installation_dir/bin/php"
    app-env="name1=abc"
    </object>

  • 405 error - messagebroker/amf

    I just installed Blaze DS to a server that is using CF8 with IIS. So I installed using integration method with CF8. I tried to run a Flex 3 application and now I get a 405 error when trying to POST to messagebroker/amf. I have searched everywhere and need some other ideas to troubleshoot. I can put in the URL direct to http://(webroot)/messagebroker/amf and I don't get an error.
    Any ideas????

    I just installed Blaze DS to a server that is using CF8 with IIS. So I installed using integration method with CF8. I tried to run a Flex 3 application and now I get a 405 error when trying to POST to messagebroker/amf. I have searched everywhere and need some other ideas to troubleshoot. I can put in the URL direct to http://(webroot)/messagebroker/amf and I don't get an error.
    Any ideas????

  • While creating a simple VIEW Error comes ORA-00604,ORA-00001

    I am using
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
    a simple view statement gives an error.
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00001: unique constraint (SYS.I_COL1) violated
    what may be the reason

    Hi,
    It seems that SHORT_NAME cause problem.
    SQL> CREATE OR REPLACE FORCE VIEW V_META_IMAGELIST
      2  AS
      3  SELECT A.SEQ_NUM, A.SHORT_NAME, A.DESCRIPTION, A.MULTISELECT, A.ENTITY_SEQ_NUM, A.SECTION_TYPE_
    SEQ_NUM,
      4  B.SHORT_NAME, A.ACTIVE, A.ENTERED_BY,
      5  A.ENTRY_DATE, A.IMAGELIST_LEVEL, A.STARTINGSENTENCE, A.SEPARATOR, A.CONJUNCTION, A.ENDINGSENTEN
    CE,
      6  A.META_IMAGELIST_ELEMENT_SEQ_NUM
      7  FROM meta_imagelist A, SECTION_TYPES B
      8  WHERE A.SECTION_TYPE_SEQ_NUM = B.SEQ_NUM(+) ;
    B.SHORT_NAME, A.ACTIVE, A.ENTERED_BY,
    ERROR at line 4:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00001: unique constraint (SYS.I_COL1) violated
    SQL> ed
    Wrote file afiedt.buf
      1  CREATE OR REPLACE FORCE VIEW V_META_IMAGELIST
      2  AS
      3  SELECT A.SEQ_NUM, A.SHORT_NAME, A.DESCRIPTION, A.MULTISELECT, A.ENTITY_SEQ_NUM, A.SECTION_TYPE_
      4  B.SHORTNAME, A.ACTIVE, A.ENTERED_BY,
      5  A.ENTRY_DATE, A.IMAGELIST_LEVEL, A.STARTINGSENTENCE, A.SEPARATOR, A.CONJUNCTION, A.ENDINGSENTEN
      6  A.META_IMAGELIST_ELEMENT_SEQ_NUM
      7  FROM meta_imagelist A, SECTION_TYPES B
      8* WHERE A.SECTION_TYPE_SEQ_NUM = B.SEQ_NUM(+)
    SQL> /
    Warning: View created with compilation errors. --this is because I haven't any tables
    SQL> show error
    No errors.
    SQL> Try to rename SHORT_NAME to an other word.
    Nicolas.

  • 405 error loading a php file using fastCGI

    I'll start off by admitting I'm brand new to JWS. I really appreciate anyone willing to help with this configuration:
    GOAL: Install the PHP Engine as a FastCGI Server
    http://developers.sun.com/webtier/reference/techart/php2.html#4
    I've read a lot of pages on this, and "thought" I had my configuration right.
    I'm running SLES 10, and installed php fastcgi using yast2. The path to my php is /usr/bin/php-cgi5. I have copied that file to my plugins directory, as I heard it has to be in a location that web server can reach: /sun/webserver7/plugins/php/php-cgi5.
    My configs:
    obj.conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="restart" from="/" uri="/admingui/"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    ##Me added
    # Make everything in URI "/php" come from"/path/to/php" and
    # be executed as PHP using the directives in the Object
    # named "fastcgi" (defined below)
    NameTrans fn="pfx2dir"
    from="/php"
    dir="/path/to/php"
    name="fastcgi"
    ##End Me added
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    ##Me Added
    # Execute all things with a MIME type of
    # "magnus-internal/fastcgi" with options (this requires that
    # mime.types be updated to assign this type
    # for specified extensions - see below):
    # bind-path: localhost:8082
    # app-path: /export/my/cgi/php
    # min-procs: 1
    # PHP_FCGI_CHILDREN: 1
    # PHP_FCGI_MAX_REQUEST: 200
    # LD_LIBRARY_PATH: /usr/local/php/lib
    # PHPRC: /path/to/php/config/dir
    # The LD_LIBRARY_PATH can be used to indicate the location
    # of the local system's MySQL libraries, etc.
    # Note that the PHPRC variable points to the directory
    # containing php.ini, not to php.ini itself.
    # This can be a single line or a line continued using
    # the syntax below
    Service type="magnus-internal/fastcgi"
    fn="responder-fastcgi"
    bind-path="localhost:8082"
    app-path="/export/my/cgi/php"
    min-procs="1"
    app-env="PHP_FCGI_CHILDREN=1"
    app-env="PHP_FCGI_MAX_REQUEST=200"
    app-env="LD_LIBRARY_PATH=/usr/local/php/lib"
    app-env="PHPRC=/path/to/php/config/dir"
    ##End Me added
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    ##Me Added
    # Object to handle assigned names from the Default object
    <Object name="fastcgi">
    # Anything that ends up here has its type forced to
    # "magnus-internal/fastcgi"
    ObjectType fn="force-type"
    type="magnus-internal/fastcgi"
    # Run the request through the FastCGI handler with
    # the following options:
    # bind-path: localhost:8082
    # app-path: /export/my/cgi/php
    # min-procs: 1
    # PHP_FCGI_CHILDREN: 1
    # PHP_FCGI_MAX_REQUEST: 200
    # LD_LIBRARY_PATH: /usr/local/php/lib
    # PHPRC: /path/to/php/config/dir
    # The LD_LIBRARY_PATH can be used to indicate the location
    # of the local system's MySQL libraries, etc.
    # Note that the PHPRC variable points to the directory
    # containing php.ini, not to the php.ini itself.
    # This can be a single line or a line continued using
    # the syntax below
    Service type="magnus-internal/fastcgi"
    fn="responder-fastcgi"
    bind-path="localhost:8082"
    app-path="/sun/webserver7/plugins/php/php-cgi5"
    min-procs="1"
    app-env="PHP_FCGI_CHILDREN=1"
    app-env="PHP_FCGI_MAX_REQUEST=200"
    app-env="LD_LIBRARY_PATH=/usr/local/php/lib"
    app-env="PHPRC=/etc/php5/fastcgi/"
    </Object>
    magnus.conf
    Init fn="load-modules" shlib="libj2eeplugin.so"
    Init fn="load-modules" shlib="libdavplugin.so" funcs="init-dav,ntrans-dav,pcheck-dav,service-dav"
    Init fn="init-dav" LateInit="yes"
    Init fn=load-modules shlib="libfastcgi.so"
    mime.types (relevant sections only)
    type=magnus-internal/parsed-html exts=shtml
    type=magnus-internal/cgi exts=cgi,exe,bat,php
    type=magnus-internal/fastcgi exts=php,php3,php4,php5
    I'm not convinced that I have specified all the php directories as requested. Perhaps something looks off there?
    I currently have nothing configured in the fastCGI section of the web admin for the server.
    The default page still loads just fine, it's only php files i'm having issue with.
    The error I'm receiving is (IP removed):
    for host X.X.X.X trying to GET /foo.php, handle-processed reports: HTTP2205: The request method is not applicable to the requested resource.
    Thanks,
    Nick

    Thank you so much for the reply. yes, that appeared to be a typo in my config. Here's the new relevant section
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="restart" from="/" uri="/admingui/"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    ##Me added
    # Make everything in URI "/php" come from"/path/to/php" and
    # be executed as PHP using the directives in the Object
    # named "fastcgi" (defined below)
    NameTrans fn="assign-name" from="/php/*" name="fastcgi"
    NameTrans fn="pfx2dir" from="/php/*" name="fastcgi"
    ##End Me added
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"#####################
    I wasn't sure from your prior message if both of the following lines should be in there:
    NameTrans fn="assign-name" from="/php/*" name="fastcgi"
    NameTrans fn="pfx2dir" from="/php/*" name="fastcgi"
    I tried with both, tried with just the first, and still getting a 405. Not sure if i need to, but I am restarting the instance after making changes.
    I also tried putting my test file in both the webroot directory:
    /sun/webserver7/https-myhostname/docs/foo.php
    and in a php subdir of that
    /sun/webserver7/https-myhostname/docs/php/foo.php
    Still no luck.
    Thanks,
    Nick
    Edited by: wefawefds on Oct 30, 2009 1:54 PM

  • OBIEE 11.1.1.6 as Simple Install , Error in Server logs

    Hi Guys,
    I have newly installed OBIEE 11.1.1.6 as Simple Install and I am finding this error in my server logs, So please can you guide me to resolve this impending issue?
    ####<Apr 23, 2012 12:06:06 PM IST> <Notice> <WebLogicServer> <Vijay-PC> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1335162966866> <BEA-000365> <Server state changed to FAILED>
    ####<Apr 23, 2012 12:06:06 PM IST> <Error> <WebLogicServer> <Vijay-PC> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1335162966866> <BEA-000383> <A critical service failed. The server will shut itself down>
    ####<Apr 23, 2012 12:06:06 PM IST> <Notice> <WebLogicServer> <Vijay-PC> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1335162966898> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    ####<Apr 23, 2012 12:06:06 PM IST> <Info> <WebLogicServer> <Vijay-PC> <AdminServer> <Main Thread> <<WLS Kernel>> <> <> <1335162966991> <BEA-000236> <Stopping execute threads.>
    Thanks,
    Vj

    Hi Vj,
    The error logs are quite generic and do not seem to help much. If you are on windows, check the event viewer if there are any messages. You may want to check the Admin server's ".out" file too other than ".log" file.
    Hope this helps.
    Thank you,
    Dhar

  • Simple-replica error: access denied

    Hi,
    I am trying to configure a simple replication agreement and I can not make it work. I have followed the Administrator Guide steps:
    A.In the consumer:
    1. Configure the DN for the supplier (cn=Replication Manager,cn=config)
    2. Create the object for that user
    3. Configure the replica as consumer (with the same supplied DN than before)
    B. In the master:
    1.Configure the change log.
    2.Configure the replica as simple-master. I assigned to it the ID 1.
    C. I created the replication agreement in the supplier server.
    The results for all this process are:
    1. Error in supplier: "replication error acquiring replica: permission denied. Error Code: 3"
    2. In the consumer error log: "[12/Dec/2001:17:04:58 -0400] NSMMReplicationPlugin - Incoming replication session was unable to acq
    uire replica o=idsk.com: sending error - permission denied to supplier"
    3. In the consumer access log:
    [12/Dec/2001:17:04:58 -0400] conn=18 op=0 BIND dn="cn=Replication Manager,cn=config" method=128 ver
    sion=3
    [12/Dec/2001:17:04:58 -0400] conn=18 op=0 RESULT err=0 tag=97 nentries=0 etime=0 dn=""
    [12/Dec/2001:17:04:58 -0400] conn=18 op=1 SRCH base="" scope=0 filter="(objectClass=*)" attrs="supp
    ortedControl supportedExtension"
    [12/Dec/2001:17:04:58 -0400] conn=18 op=1 RESULT err=0 tag=101 nentries=1 etime=0
    [12/Dec/2001:17:04:58 -0400] conn=18 op=2 EXT oid="2.16.840.1.113730.3.5.3"
    [12/Dec/2001:17:04:58 -0400] conn=18 op=2 RESULT err=0 tag=120 nentries=0 etime=0
    [12/Dec/2001:17:05:59 -0400] conn=18 op=3 UNBIND
    [12/Dec/2001:17:05:59 -0400] conn=18 op=3 fd=49 closed - U1
    It seems like the user is binding properly and looking for something that is not well configured in the consumer.
    I am sure I am missing something because to configure the agreement should be very easy. Does anybody know what I am doing wrong?
    Thank you in advance
    Jorge Ortiz Claver

    The supplier is not finding the cn=Replication Manager,cn=config entry in
    the consumer server. If it was, the second line in the consumer's access log
    would look like:
    [12/Dec/2001:17:04:58 -0400] conn=18 op=0 RESULT err=0 tag=97 nentries=0
    etime=0 dn="cn=replication manager,cn=config"
    Since it can't find the entry in the consumer server, your supplier is
    binding anonymously, which obviously doesn't give it the permissions it
    needs to update the consumer.
    Are you sure you created the Replication Manager entry on the consumer? Can
    you describe the configuration steps you tried, in more detail?
    "Jorge Ortiz" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am trying to configure a simple replication agreement and I can not
    make it work. I have followed the Administrator Guide steps:
    A.In the consumer:
    1. Configure the DN for the supplier (cn=Replication
    Manager,cn=config)
    2. Create the object for that user
    3. Configure the replica as consumer (with the same supplied DN than
    before)
    B. In the master:
    1.Configure the change log.
    2.Configure the replica as simple-master. I assigned to it the ID 1.
    C. I created the replication agreement in the supplier server.
    The results for all this process are:
    1. Error in supplier: "replication error acquiring replica: permission
    denied. Error Code: 3"
    2. In the consumer error log: "[12/Dec/2001:17:04:58 -0400]
    NSMMReplicationPlugin - Incoming replication session was unable to acq
    uire replica o=idsk.com: sending error - permission denied to
    supplier"
    3. In the consumer access log:
    [12/Dec/2001:17:04:58 -0400] conn=18 op=0 BIND dn="cn=Replication
    Manager,cn=config" method=128 ver
    sion=3
    [12/Dec/2001:17:04:58 -0400] conn=18 op=0 RESULT err=0 tag=97
    nentries=0 etime=0 dn=""
    [12/Dec/2001:17:04:58 -0400] conn=18 op=1 SRCH base="" scope=0
    filter="(objectClass=*)" attrs="supp
    ortedControl supportedExtension"
    [12/Dec/2001:17:04:58 -0400] conn=18 op=1 RESULT err=0 tag=101
    nentries=1 etime=0
    [12/Dec/2001:17:04:58 -0400] conn=18 op=2 EXT
    oid="2.16.840.1.113730.3.5.3"
    [12/Dec/2001:17:04:58 -0400] conn=18 op=2 RESULT err=0 tag=120
    nentries=0 etime=0
    [12/Dec/2001:17:05:59 -0400] conn=18 op=3 UNBIND
    [12/Dec/2001:17:05:59 -0400] conn=18 op=3 fd=49 closed - U1
    It seems like the user is binding properly and looking for something
    that is not well configured in the consumer.
    I am sure I am missing something because to configure the agreement
    should be very easy. Does anybody know what I am doing wrong?
    Thank you in advance
    Jorge Ortiz Claver
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Method not allowed http 405 error

    I built a web service and it contains a static document myvi.html and a web method vi myvi.vi
    the myvi.html contains a form to post data to myvi.vi by clicking the submit button.
    When I used http://localhost:8080/servicename/myvi.html to fill the form and submit, the data had been posted to myvi.vi and it worked fine.
    But when I used http://ipaddress:8080/servicename/myvi.html to fill the form and submit, I got the error 405 : method not allowed.
    What's the problem? I already turned off all firewalls.
    Thanks.
    Solved!
    Go to Solution.

    "Method Not Implemented"... Ah, the joys of webservers. Could be that, well, the method (GET, POST, CONNECT) isn't implemented or enabled in the daemon's configuration.  That's not so much of a firewall issue but a server/daemon configuration problem.  I'm most familiar with apache, so YMMV.
    Default install of the webserver?  You said you turned off firewalls, but is the port actually listening externally? (Use a port scanner to scan the machine, nmap or similar... there's a lot of them out there.)  Can you see anything at http://ipaddress through a web browser?  Is the machine on the same subnet, or are you punching through NAT on a router somewhere?
    Also see that there aren't any .htaccess files or line items in the configuration restricting access to the server to localhost. 

  • SIMPLE PID ERROR - Resource is being used

    Hey guys,
    I'm a beginner in using LabView, and currrently I've written a huge program, which is infact pretty simple, that takes an analogue input from the hall sensors of a BLDC motor I am running, and uses a PID block to output (via analogue output) the calculated values. I have uploaded an image of the program to this post. But I'm getting the following error when I try to run this:
    The device resource is being occupied.
    Please make sure that no other analogue output operation is running within the device.
    As you can see I have only initialised the pin 1 on both the analogue input and analogue output, and am not too sure what this error is suggesting.
    Any help is much appreciated, as I have my final year project deliverable in about a week. It's just this glitch that I have to sort out and I'm done.
    Cheers
    Attachments:
    untitled.JPG ‏102 KB

    Do those cards show up in Measurement and Automation Explorer (MAX) ?
    Using a VISA resource implies that they do.  But since they are both called 1, it has to be referring to the same channel.  Usually there is more to the name that distinguishes an analog input channel from an analog ouput channels such as AI1 vs. AO1.  The 1 is just an alias to a particular channel.  And two different channels can't have the same alias, otherwise how does LabVIEW know which channel to communicate with?
    Check how they show up in MAX.  I don't think you can legitmately name them the same.  For grins, eliminate the analog output part of your code and see if you get an error.  Then put it back in and eliminate the analog input part of your code and see if you get an error.

Maybe you are looking for