Servlet not getting invoked on using RequestDispatcher

In the following code I am getting a blank page instead of the MenuServlet being invoked
here is the code from LoginCheckServlet
url : http://localhost:8080/ABC_BookBank/LoginCheckServlet - getting blank page from this url
if(!loginId.equals("") && !password.equals("")){
     result = dao.retrieveLogin(loginId,password);     
     if(true == result){
     System.out.println("Before dispatching to MenuServlet");
          rd = request.getRequestDispatcher("MenuServlet");
          System.out.println("After dispatching to MenuServlet");
          rd.forward(request,response);
     else{
          out.println("value not present in the db");
The values "Before dispatching to MenuServlet" and "After dispatching to menuservlet" both are getting printed but i am not able to go to the page displayed in MenuServlet.
I am using Eclipse Galileo Java EE IDE for Web Developers. Build id: 20090920-1017.
Can any one help me out with this
Thanks in Advance
Nazar

So basically there are no exceptions thrown by your code?? Try this modified code and see if "After dispatching to MenuServlet" is shown on the console or not.
rd = request.getRequestDispatcher("MenuServlet");
rd.forward(request,response);
System.out.println("After dispatching to MenuServlet");Also can you show us the code of MenuServlet...

Similar Messages

  • JPF not getting invoked when using PageURL

    Team Portal -
    I am having a problem with creating links to other portlets.
    I have one page flow portlet that checks for the "page" input parameter to redirect
    to different pages.
    Now, another portlet needs to have links to the different pages within the page
    flow portlet. I am using the PageURL to create the links -
    PageURL gotoPageLink1 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink1.addParameter("page", "page1");
    PageURL gotoPageLink2 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink2.addParameter("page", "page2");
    and so on.
    However, all these links go to Page1. It seems that the begin action in the linksPortlet
    does not get called.
    Help please.
    Thanks
    Fumi

    Team Portal -
    I am having a problem with creating links to other portlets.
    I have one page flow portlet that checks for the "page" input parameter to redirect
    to different pages.
    Now, another portlet needs to have links to the different pages within the page
    flow portlet. I am using the PageURL to create the links -
    PageURL gotoPageLink1 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink1.addParameter("page", "page1");
    PageURL gotoPageLink2 = PageURL.createPageURL(request, response, "linksPortetPage");
    gotoPageLink2.addParameter("page", "page2");
    and so on.
    However, all these links go to Page1. It seems that the begin action in the linksPortlet
    does not get called.
    Help please.
    Thanks
    Fumi

  • RBA GATP check is not getting invoked for Sales Order

    Hi Everyone,
    RBA GATP check is not getting invoked for Sales order.
    I maintained the configuration settings for 'Rules-Based Availability Check', APO general settings (check mode, check instruction), carried out integrated rule maintenance, Rule determination for the combination of order type & product, associated the check mode to product master. Also maintained all the settings in ECC towards Req class, Req type, checking control etc.
    However, sales order is not invoking RBA Check though it is showing up the 'Rule' icon in the screen. Also, in the APO Availability check in Sales order when I click onto 'check instruction', I get the checking mode that pertains to RBA for business event 'A' (Sales order). Though I have not maintained any stock for the main material for which I have the sales order, yet system is confirming any quantity that I put in.
    I would expect that system would propose the same material in an alternate location where we have stock through RBA.
    Request you to share ideas on this.
    Regards,
    Avijit Dutta

    Hi Avijit,
    You should used No Checking Horizon in Checking instructions and also Check your rule control settings.
    What you have defined in 1st and 2nd steps. Check whether product substitution is carried out or Location Substitution.
    Thanks,
    Bala.

  • Shell Script not getting invoked in File adapter

    Hi all,
    Requirement:
    PI need to pick the file from source directory and send it to target directory using SFTP.
    I'm using SCP command for this purpose.
    When I run the shell script (with simple SCP command) from command prompt, script is working fine.
    Same script is called from PI File adapter but script is not getting invoked.
    In the communication channel logs, "Executed OS command" is available. There are no Error/Warning messages in the log.
    NFS transport protocol is used in the File communication channel.
    Complete directory path of the shell script is mentioned in File channel -> Run Operating System command after message processing.
    Even the following simple command is not working from PI receiver file channel:
    echo "Test file" >> /data/test.txt
    Please let me know if I'm missing out something.
    Thanks,
    Geetha

    Hi Geetha,
    I think the syntax u are using is not correct. Please follow the below syntax:
    /path/<script_name> %F
    for ex: /staging/Interface/XI/Script/FTPData %F
    use the above in the communication channel.
    %F should be after a space.
    FTPData is the script name
    /staging/Interface/XI/Script/ is the location where the script is present
    Cheers,
    Souvik
    Edited by: Souvik Chatterjee on Apr 14, 2011 3:38 PM

  • Hostname verifier does not get invoked

    Hi All,
    I am new to weblogic and currently facing an issue with SSL. I checked this forum but none of the solutions really worked for me, so seeking advice starting a new thread. Kindly help.
    Problem 1
    I have a REST webservice running in one weblogic server and another weblogic server contains a client which is based on the code from the following link -
    http://wiki.open-esb.java.net/attach/RestBCEchoSSL/SslClient.java
    One way handshaking is enabled in both the weblogic and the KeyStore and Truststore are read from configurable directory in the client java code. I specify a directory which resides outside weblogic home.
    Even though there is an HostnameVerifier implemented in the code to return true always, it does not get invoked and I get a certificate exception as below -
    <Warning> <Security> <BEA-090542> <Certificate chain received from xx.yy.zz.rrr - xx.yy.zz.rrr was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.>
    But when I run the java client from Eclipse I am able to invoke the webservice methods using HTTPs.
    So is not it possible to add a default hostname verifier as in the java code when the application is deployed in weblogic?
    Problem 2
    I another attempt to solve the above issue I turned off the hostname verification from weblogic admin console in the client weblogic side. In the console for the server Configuration > SSL->Hostname Verification field is set to "None". But that did not help.
    Then I added the '-Dweblogic.security.SSL.ignoreHostnameVerification=true' flag into the <domain>/bin/startWebLogic.sh file and restarted the weblogic. No luck again.
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy -Dweblogic.security.SSL.ignoreHostnameVerification=true ${PROXY_SETTINGS} ${SERVER_CLASS}
    I tried recreating the certificate using the' hostname' instead of the ip address ( also added an entry into the /etc/hosts file putting the ip and hostname so that I can do ping <hostname> from the client and get response returned from the server side). Again no luck :(. I keep getting the same handshake failure as mentioned above.
    The weblogic version is 10.x.
    Thanks,
    Amrit

    I did some more research for the issue mentioned which I yet to get rid of.
    1) I wrote a REST web service which makes a call to another REST service deployed on another weblogic using HTTPs (same code as mentioned above is used). I delpoyed the war and made a http call to the first webservice, the other REST service was invoked successfully using HTTPs. So this confirmed that there is no problem with the certificates or keystore or hostname verifictaion.
    2) My actual application still throws the handshake exception as below -
    <Warning> <Security> <BEA-090542> <Certificate chain received from xx.yy.zz.rrr - xx.yy.zz.rrr was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.>
    So I think the problem is something else but weblogic is priniting the exception message wrong.
    The process hierarchy ( in UNIX ) is as shown below -
    bea 31914 31913 0 14:29 ? 00:00:00 /bin/sh <DOMAIN HOME>//bin/startWebLogic.sh
    bea 31989 31914 0 14:29 ? 00:01:25 /opt/bea/jdk160_24/bin/java <The weblogic start server process> started by startWebLogic.sh
    bea 32107 31989 0 14:29 ? 00:00:09 /opt/bea/jdk160_24/bin/java <One of custom process>
    bea 2038 32107 0 18:38 ? 00:00:15 /opt/bea/jdk160_24/bin/java <Another custom process which contains my java classes containing the REST client>
    The problem is there in both Weblogic 11 and 10.3 version.
    I will be grateful if someone gives any clue about the problem.

  • Javascript method for clientListener not getting invoked

    Hi, I am trying to use a clientListener to call a javascript method when an image that's linked gets clicked on, but the javascript method is not getting invoked. I'm using Jdev 11g. E.g.
    <af:resource type="javascript">
    function sayhello(event) {
      event.cancel();
      alert("hello");
    </af:resource>
    <af:goLink id="gl1"> 
      <af:clientListener type="click" method="sayhello"/>
      <af:image id="i1" source="/image/test.gif"/>
    </af:goLink>The sayhello javascript method does not get invoked when clicking the linked image. What I found though is that if I change the <af:goLink> to the following, then the javascript method gets invoked:
    <af:goLink id="gl1" text="click me"> 
      <af:clientListener type="click" method="sayhello"/>
    </af:goLink>I want to have a linked image though instead of linked text. Any suggestions to make this work? In Jdev 10g, the following worked fine for me:
    <af:goLink onclick="sayhello">
      <af:objectImage source="/image/test.gif">
    </af:goLink>I did try using <af:goImageLink> (with <af:clientListener>) and specify the image using the icon attribute. This worked fine in terms of being able to call the javascript method. However, the problem with using this is that it somehow shifts the image down and this doesn't look good in my UI because I basically have a row of <af:goLink> components that use images and using this <af:goImageLink> shows the image mis-aligned compared to the rest of the linked images.

    HI All,
    Iin my case, clientLinstene is not working if i use more than one goLink , any body can you help me.
    <af:goLink text="Forgot Password?" id="gl1">
                                                        <af:clientListener type="click" method="showPopupFromAction"/>
                                                    </af:goLink>
                                                </af:panelFormLayout>
                                            </af:panelGroupLayout>
                                            <af:panelGroupLayout id="pgl4">
                                                <af:spacer width="150" id="s3"/>
                                                <af:outputText value="Choose Language:     " id="ot2"/>
                                                <af:goLink text="Arabic" id="cl1">
                                          <af:clientListener type="click" method="testMethod"/>
                                                </af:goLink>
    one popup will call popup and anther will in call bean method that's my requirement. script is
    <af:resource type="javascript">
                                                       * Shows a popup from an "action" type event.
                                                       * @param {AdfActionEvent} actionEvent the event being handled
                                                      function showPopupFromAction(actionEvent) {
                                                          actionEvent.cancel();
                                                          var eventSource = actionEvent.getSource();
                                                          var popup = eventSource.findComponent("popupForgetPassword");
                                                          popup.show( {
                                                              align : AdfRichPopup.ALIGN_OVERLAP, alignId : eventSource.getClientId()
                                                    </af:resource>
    <af:resource type="javascript">
       function testMethod(actionEvent) {
    // my stuff here.... I will call server listener method.
    </af:resource>
    thanks
    Palanivel

  • ValueChangeListner not getting invoked.

    Hi
    I've implemented autoSuggestBehaviour on inputListOfValues but valueChangeListner is not getting invoked in case I select the first value from the auto suggested items.
    And valueChangeListner gets invoked if I select any other value apart from the first suggested value.
    Given below is code snippet
    <af:inputListOfValues id="useridId"
    required="true"
    binding="#{backingBeanScope.backing_quoteInfo.useridId}"
    popupTitle="Search and Select: #{bindings.Userid.hints.label}"
    value="#{bindings.Userid.inputValue}"
    label="#{bindings.Userid.hints.label}"
    model="#{bindings.Userid.listOfValuesModel}"
    columns="20"
    shortDesc="#{bindings.Userid.hints.tooltip}"
    valueChangeListener="#{backingBeanScope.backing_quoteInfo.customerLovChanged}"
    autoSubmit="true"
    partialTriggers="::it6"
    rendered="#{securityContext.userInRole['insuranceapprovers']}">
    <f:validator binding="#{bindings.Userid.validator}"/>
    <af:autoSuggestBehavior suggestedItems="#{backingBeanScope.backing_quoteInfo.getSuggestedCustomers}"/>
    </af:inputListOfValues>
    I'm using JDev 11.1.1.4.0 & IE8/Mozilla11 as the browser.
    Thanks,
    -Gaurav

    valuechangelistener is trigger only when the old value and new value is different .You can validate this scenario inside the value chage listener.
    like this
    customerLovChanged(ValueChangeListener  valu){
    System.out.println(""+valu.getOldValue());
    System.out.println(""+valu.getNewValue());
    }

  • J2EE adapter module not getting invoked by module processor

    Hi All,
    i have deployed my .ear file in SDM Repository successfully.
    but my J2EE adapter module is not getting invoked by module processor......this i can say because i have written code to audit log my message in the java class...but when i gave input an empty file, the audit log of that file in Message Audit Log showed only 3 Steps of file converted to XML format, no data found so not generating message, deletion of my empty file.
    Can anybody suggest how to enable my J2EE adapter module as i have created this module so that if i give empty file, then in the adapter i am creating a dummy XML for my message.
    Thanks and Regards,
    Rajeev Gupta

    Hi Stefan,
    1. JNDI name in visual admin is CustomerMeter
    2. the files in .ear file are:
    libraries,
    ejb project file,
    META-INF folder
    in ejb project file the following files are there:
    ejb-j2ee-engine.xml
    ejb-jar.xml
    CustomerMeter.class
    Please tell what to do now.
    Hi Amol,
    in audit log only 3 messages are coming: File converted to XML format, no data in document  so not sending message, deleting of empty file.
    i have given audit log statements in java class but my audit-log statements are not coming in the audit log
    this means my adapter module is not getting invoked.
    Please tell what to do to correct this error.
    Thanks and Regards,
    Rajeev Gupta

  • Concurrent timers are not getting invoked for same timer inf

    Do weblogic has some parameter in weblogic deployment descriptor like numAlarmThreads="5" minThreads="1" maxThreads="10" etc
    becoz I am facing one problem relating to timer service in EJB
    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • Concurrent timers are not getting invoked for same timer info (Serializable

    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • Concurrent timers are not getting invoked for same timer info

    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • WebLogic Handler Problem - Handler handleMessage is not getting invoked!

    Hi, I am using weblogic 11g and trying to register a handler to log my requests/responses to and from the service. I use Maven to build the project and register the handler as described in the Oracle documents. Here is the handler declaration in the server class that implements the port interface
    @HandlerChain(file="handlers.xml")Here is the declaration of the handler class in the handlers.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
      <handler-chain>
        <handler>
          <handler-class>com.mycompany.service.handlers.LogHandler</handler-class>
        </handler>
      </handler-chain>
    </handler-chains>handlers.xml has been put in a folder structure under resources so that when the war file is generated, it is placed in the same folder as the server class. LogHandler implements SOAPHandler<SOAPMessageContext>
    When I deploy the application, the handler gets invoked and the getHeaders method gets called multiple times. But when I call the service with any operation, the handleMessage method is not invoked and the service acts like it doesn't have any handler. Please note that there are other projects that exist in my workspace and use handlers with the same configuration without any issues. As the handler is required for this project and I am running out of options to fix this matter, I appreciate your feedback. Thanks in advance!

    Your web.xml file need a servlet-mapping section:<web-app>
    <servlet>
    <!-- Servlet alias -->
    <servlet-name>Registration</servlet-name>
    <!-- Fully qualified Servlet class -->
    <servlet-class>GreetingServlet</servlet-class>
    </servlet>
        <servlet-mapping>
            <servlet-name>GreetingServlet</servlet-name>
            <url-pattern>/servlet/GreetingServlet</url-pattern>
        </servlet-mapping>
    </web-app>Also, you probably need to put your servlet in a package.

  • Result handler not getting invoked on button click - URGENT

    Hi Folks,
    We are working on a form submit application where we populate the form and finally click on button to submit the completed form. We are using BlazeDs On button click I call java service and expect a response object back to flex UI. We are getting the java call invoked successfully and the log clearly shows that the appropriate objects are returned from java service, however, the result handler is not getting inviked to capture the result in flex mxml. I am in urgent need of your help on this
    Code snippet:
    <mx:Script>
    <![CDATA[
    protected  
    function Service_resultHandler(event:ResultEvent):void
    Alert.show(
    "event.result.troubleTicketId ::"+event.result.status); 
    var u:URLRequest = new URLRequest("http://www.adobe.com/flex");navigateToURL(u,
    "_blank"); 
    private function faultHandler_exitService(event:FaultEvent):void {Alert.show(event.fault.faultString +
    '\n' + event.fault.faultDetail); 
    var u:URLRequest = new URLRequest("http://www.google.com");navigateToURL(u,
    "_blank"); 
    protected  
    function submit_clickHandler():void
    //Alert.show("1");
    createTicketForm.setCallDetails_callRegion(FlexUI_callDetails_callRegion);
    //Alert.show("2"+FlexUI_callDetails_callRegion);
    createTicketForm.setCallDetails_callRegion2(FlexUI_callDetails_callRegion2);
    exitService.createTroubleTicket(createTicketForm);
    ]]>
     </mx:Script>  
    <mx:RemoteObject id="exitService" destination="ExitService" fault="faultHandler_exitService(event)">
    <mx:method name="createTroubleTicket" result="Service_resultHandler(event)"/>
    </mx:RemoteObject>
    <mx:Button 
    label="submit Ticket" width="65" height="22" textAlign="right" x="904" y="-10" click="submit_clickHandler()" />
    My Java service:
    public  
    class ExitService {  
    public CreateTmsTicketResponse createTroubleTicket(CreateTicketForm createTicketForm){
    return  
    createTmsTicketResponse;}
    remoting-config.xml:
     <destination id="ExitService">  
    <properties>  
    <source>com.qwest.qportal.flex.createTicket.ExitService</source>  
    </properties>
     </destination>

    Please refer to below link, hope it helps:
    http://forums.asp.net/t/1927214.aspx?The+IListSource+does+not+contain+any+data+sources+
    Please ensure that you mark a question as Answered once you receive a satisfactory response.

  • Job not getting invoked on a logical standby instance

    Hello,
    We have created a job(through dbms_scheduler API). The job is enabled and shows up in the SCHEDULERJOBS view also.
    However the job does not get executed. I looked into the following tables there was no relevant entry found for the aforesaid job:
    select * from all_scheduler_job_log
    select * from dba_scheduler_running_jobs
    select * from DBA_SCHEDULER_JOB_RUN_DETAILS order by log_date desc
    Is there any limitation that we cannot execute scheduled jobs on a logical standby database. If i execute the relevant program (that is configured to be run as job in this scenario) as an individual procedure from SQL plus, it gets executed successfully implying there is no errors/problem in the subprogram that the job is going to invoke.
    Appreciate your thoughts in this regard.
    Thanks.

    I think then we need to think about an alternate way to tackle the problem.
    Anyways thanks for your timely help Ravi.
    Just one query, can we invoke remote stored procedures(i.e. using datalinks) from dbms_scheduler jobs on another db.
    i.e. something like this:
    DB0(primary db instance); DB1(is a logical standby db); DB2(centralized repository db)
    DB1 contains certain packaged application procedures that need to be invoked as a scheduled activity.
    Previously we had the scheduled jobs residing on the logical standby db itself but because of this known issue we cannot proceed with that design.
    So can we have jobs,programs(mapping to DB1s stored procedure) scheduled on DB2?
    Thanks.

  • Callback activity not getting invoked in Async BPEL

    Hi
    I have an Async BPEL process which uses correlations.I have a receive activity in the middle using the correlation.
    When executed the BPEL gets invoked and waits during the receive activity and proceeds further when the service is hit with the required correlated data also but the problem is the process does not get into completed state.When viewed from the BPEL console it shows all the activites upto Call back client but not the call back activity.The other activities get executed properly without any error.
    One more point i would like to mention here is another Sync BPEL is invoking this process [The Sync BPEL just invokes and proceeds further without waiting for any result from the Async process.]
    Need Urgent help on this plss.
    Vamsi

    Hi Peter,
    Thanx for your reply. Actually i tried putting Java embedding activity [with checkpoint()] before and after the call back activity. When i execute the same it comes upto the java embedding which is before the call back and just hnags there. The status of the bpel is also shown as Active.
    Any more help pls..
    Vamsi

Maybe you are looking for

  • Open a PDF to a specific page from command line

    I want to open a locally stored PDF file to a specific page from the command line. I have seen examples of accessing web based files using http and the #page= parameter but this does not seem to work for a file stored on my local drive.  I want to be

  • Determining the number of elements defined in an enum

    Hello, I have an enum and I want to determine the number of elements (constants) defined in this enum by source code. I know I can use reflection but I just want to know if there's an easier way. Thank you very much.

  • OWSM: Where to put additional jars for a custom step

    I'm in the process of creating a custom step for OWSM. The step relies on some additional libraries that are not found on the server at the moment. Where do I put them so that my custom step will find them? I'd like to avoid packaging them into the s

  • How to enlarge the memory in Microblaze for software applications?

    Dear, I wrote a C program, which after compiled generates a ELF binary with around 85KB. However, it is known that the Microblaze by default uses only 64KB. So my question is how can I enlarge the memory in Microblaze for software applications? The a

  • FSCM-Massive syncronization "Customer-Business partner"

    Hi, I need to syncronise and create business partners for a large amount of selected customers. For this I use the transaction MDS_LOAD_COCKPIT. I can't use the possibility to insert the range (from...to), because I have to syncronize precisely the c