Java displays not being redirected to the DISPLAY environment variable

I am running Solaris 8 and am using java se 1.4.1.
I have a java application that is running in the background on BOX 1. It needs to use the JOptionPane.showmessage() function.
When I remote onto Box 1 from Box 2, and run the java application, the message boxes from the JOptionPane.showmessage() are displayed on Box 1 instead of getting redirected to box 2. I know that the display setting are ok, since I can start other applications and get the displays sent to box 2.
Is this a java bug?
thanks
Ben

Hi Balus,
Thank you for your reply, yes the response is absolutely empty just an empty page like:
<html><body></body></html>In the logs I can see the normal trace about the error but nothing else.
I found a "solution" that is working fine but I'm not sure if is the best to do, basically
I'm throwing again the ServletException generated in the JSP an then is working:
void autoForward(String forwardTo, HttpServletRequest request,
            HttpServletResponse response, ServletContext servContext,int errorCode)
            throws ServletException {
        try {
            addErrors(request,errorCode);
            RequestDispatcher dispatcher = servContext.getRequestDispatcher(forwardTo);
            dispatcher.forward(request, response);
        } catch (ServletException ex) {
            throw new ServletException(ExceptionUtils.getRootCause(ex));

Similar Messages

  • Big authentication problem: not being redirected to the login page

    Hello, everybody!
    I've just noticed a big problem in the web application I'm developing. In this
    application I'm using the FORM authentication method as you can see below in the
    web.xml file:
      <security-constraint>
         <web-resource-collection>
                <web-resource-name>permitido</web-resource-name>
                <url-pattern>/*</url-pattern>
           </web-resource-collection>
           <user-data-constraint>
                <transport-guarantee>NONE</transport-guarantee>
           </user-data-constraint>
      </security-constraint>
      <security-constraint>
           <web-resource-collection>
                <web-resource-name>restrito</web-resource-name>
                <url-pattern>/confirmacaoreserva.jsp</url-pattern>
                <url-pattern>/confirmacaoreserva.faces</url-pattern>
                <url-pattern>/reservaconfirmada.jsp</url-pattern>
                <url-pattern>/reservaconfirmada.faces</url-pattern>
           </web-resource-collection>
           <auth-constraint>
                <role-name>ADMINISTRADOR</role-name>
                <role-name>USUARIO</role-name>
           </auth-constraint>
           <user-data-constraint>
                <transport-guarantee>NONE</transport-guarantee>
           </user-data-constraint>
      </security-constraint>
      <login-config>
           <auth-method>FORM</auth-method>
           <form-login-config>
              <form-login-page>/login.jsp</form-login-page>
                <form-error-page>/errologin.jsp</form-error-page>
           </form-login-config>
      </login-config>
      <security-role>
           <role-name>ADMINISTRADOR</role-name>
      </security-role>
      <security-role>
           <role-name>USUARIO</role-name>
      </security-role>If I type in the browser's address field any of the protected pages,
    confirmacaoreserva.faces or reservaconfirmada.faces, the web container redirects
    me to the login page as expected, as I was'n authenticated yet. Until till
    this point everything is working without problem. But I noticed, to my surprise,
    that when I click on a link in a web page like this:
    <h:commandLink value="#{msg.reservar}" action="#{materiais.reservarMaterial}">
        <f:setPropertyActionListener target="#{materiais.codigoMaterial}" value="#{material.codigo}" />
    </h:commandLink>
    // in the backing bean
    public String reservarMaterial()
        // some processing...
        return "confirmacaoReserva";
    // in faces-config.xml
    <navigation-rule>
        <navigation-case>
            <from-outcome>confirmacaoReserva</from-outcome>
            <to-view-id>/confirmacaoreserva.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>it completely by-passes the web container authentication and redirects me to the
    protected page (+confirmacaoreserva+) without asking me first to authenticate in
    the login page. Of course this is unacceptable.
    So, how can I solve this? How do I fix this problem?
    Thank you.
    Marcos

    Marcos_AntonioPS wrote:
    BalusC wrote:
    Which appserver implementation/version are you using?JBoss 4.2.3.GAOK.
    Which JSF implementation/version are you using?The default JSF implementation that comes with JBoss 4.2.3.GAWhich one? Read the manifest file of the JSF implementation JAR.
    Does it work if you redirect instead of forward in the navigation case (just add <redirect />) ?I haven't tested yetAnd?

  • Set DISPLAY environment variable -- in DBCA not working at AIX OS

    Hi,
    I want to create new database in AIX OS and database is oracle 10g:-
    When i say DBCA it is giving below error, what should i do?
    $ dbca
    DISPLAY not set.
    Set DISPLAY environment variable, then re-run.
    Please help...

    Pravin wrote:
    How to set the DISPLAY environment variable in AIX?Usual format is:
    +<host>:<display-number>+
    E.g.
    export DISPLAY=192.168.0.235:1
    Where the host is the hostname or IP address of the client platform running a X-Server. If the X-Server is running locally, then this entry can be omitted.
    The display-number is the display number of the X-Server to use. A single X-Server can have multiple displays. E.g. Unix server running a X-Server can have 10 users connected via X-Terminals and will this have 10 displays.
    Judging from X-Windows questions asked on OTN, it seems to be a tad complex to grasp for some - especially those from a MS Windows background as X-Windows is very different and also reverses the client-server concept, requiring the X-Server component to be running on the client platform (where the server platform runs the program that is the X-client).
    So it is a lot easier to rather use something like VNC instead - supported on most Unix platforms, Linux, Windows and Apple's OS/X.
    Simply run the VNC server on the server platform to create a virtual container for running the X-server display. Connect from a client using a VNC client.
    As it uses the RFB (Remote Frame Buffer) protocol, it is a lot faster than running the slower and larger X11 protocol required for X-Windows connectivity over TCP/IP.

  • Ipod not being recognized on the system, not getting reset,retry,restore,..

    hi all
    my ipod is not being recognized on the system..
    i dont know wat is the problem
    i tried the 5 Rs thing and i didn't get any king of result..
    i dont know wat to do
    please someone who could find a solution for this please reply and send me the solutions
    thanks..
    bye.

    See this...
    Windows Does Not Recognize iPod
    btabz

  • Stoarage location is not being reflected in the outbound delivery

    Hi
    I have a scenario of creating outbound delivery with respect to sales order, But when i am creating outbound delivery vai  tranaction Vl10H , The system creates outbuond delivery but the stoarge location is not being reflected in the outbound delivery  . Since this storage location is WM managed  hence the WM  status shows that the transfer order is not required .
    When i tried to put manually the storage location  the system  throws an error that this storage location in not maintained in plant R001 .
    Althoght the stoack has been there in the stoarage location with resepct to plant ans also  the matrerial master is also been extended for  this storage  laocation and all the respective views such as WM and Sales hasbeen maintianed .
    Could any one guide me what correction is to be done to incorporate the Storage location in Delivery ?
    Thnaks and Regards
    RAJ K

    Hi,
    did you check if there is a storage location determination maintained for the relevant combination of shipping point, plant and
    stor.conditions (table TVKOL)?
    Please also check if the storage location determination is activated for the relevant delivery item type in customizing (transaction 0vlp - field "Determine storage location" (V_TVLP-BELGO)).
    Regards,
    Ely

  • Product hierarchy  is not being maintained in the sales order material

    Hi,
    I have an issue where the product hier is not being maintained in the sales order for some of the materials although the material master has the prod hier maintained.. The main program is SAPMV45A and I have checked all the exits in MV45AFZZ. In none of these exits the PRODH field in XVBAP is being populated. I would like top know if anyone has faced a problem like this.
    cheers
    Aveek

    Hi,
    Thanks for your suggestion. The poduct hierarchy is maintained in the material master but not being picked up at the time of creating the sales order. I have found the solution and coding has to be done in the MV45AFZZ.
    cheers
    Aveek

  • My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    Solved the problem. I had to allow cookies for safari and it run - as here: Re: itunes keeps asking for my apple id password. it's NOT entered incorrectly.

  • Materialized view not being used in the report

    I have had a materialized view (MV) for a particular report. Recently, the report definition has changed little bit, so the existing MV is not being used by the report anymore. I copied the code Discoverer's SQL Inspection and recreated the materialized view. But still it is not working. Obviously, I am missing something at the database level. Does anyone have any idea? The database is 9i and Discoverer is 9.0.2. Thank you!

    The SQL that you see from the Inspect SQL option will provide you with the SQL that Discoverer sends to the database. The database then may do a query rewrite to point to an available materialized view if available. This rewrite won't be seen from the inspect sql option. You need to check at the database level to verify if a query rewrite did in fact take place.
    You may want to check the section titled "Query Rewrite with Materialized Views" from Ch1 - "Introduction to the Optimizer" in the Oracle9i Database Performance Tuning Guide and Reference, Release 2 (9.2), Part Number A96533-02, available at http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96533/optimops.htm#37287
    Regards
    Abhinav Agarwal
    Oracle Business Intelligence Product Management
    http://www.oracle.com/bi
    http://www.oracle.com/technology/documentation/bi_ee.html
    http://www.oracle.com/technology/software/products/ias/htdocs/101320bi.html
    http://oraclebi.blogspot.com/

  • Where clause is not being passed to the report

    I just upgraded my crystal reports from 10.0 to 11 R2. Reports were working fine in 10.0 version,
    Reports are called from vb.net (vissual studio 2005). When I was running this reports using crystal 10.0 and visual studio 2005, it was working fine, After the upgrade report runs but I am noticing that where clause is not being passed to the reports.It generates report as there is no where clause and produces multiple pages report.

    I believe you are encountering an issue documented in [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Ludek

  • My ipad is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini about a month ago

    My ipad mini is not being recognized by the new iTunes update that just came  out about a week ago it worked fine till the update I have windows 8.1 does anyone know how to fix this problem and I just bought my ipad mini

    I found this is another thread - same issue.
    Re: iTunes has stopped working. Why? 
    Sep 11, 2013 6:07 AM (in response to thurdy)
    Resolved!
    After contacting Apple, I received a reply from their engineers:
    Copy QTMovieWin.dll from:  C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    to: C:\Program Files (x86)\iTunes
    And that did the trick.
    Message was edited by: Stryder777

  • I have an iphone 5s and it is synced to itunes and works fine. previously I have downloaded audiobooks to my wifes 6th gen nano using this account - now I tunes does not recognize the device and also it seems that it is not being read by the computer?

    I have an iphone 5s and it is synced to itunes and works fine. previously I have downloaded audiobooks to my wifes 6th gen nano using this account - now I tunes does not recognize the device and also it seems that it is not being read by the computer?

    Hey Stan1958,
    Thanks for the question. I understand you are experiencing issues with your iPod nano and iTunes. Based on your symptoms, you may find the following resources helpful in resolving this issue:
    Windows
    iPod appears in Windows but not in iTunes
    iPod not recognized in 'My Computer' and in iTunes for Windows
    iTunes reports that "iTunes cannot recognize this iPod at this time"
    Thanks,
    Matt M.

  • After updating ios my ipad is stuck in recovery mode and is not being recognised by the computer in windows or itunes.  Help!

    Help - I am stuck in Afghanistan on operations and my iPad mini has died.
    I tried to update the IOS as directed, there were a few error messages and I cancelled the process.
    The ipad now only shows the connect to itunes screen and is not being recognised by the computer in either windows or itunes.
    I have tried several resets and restarted the computer and reinstalled itunes.
    Is there anything else I can do.
    This is my only method of talking back to my family at the moment and is really quite important.
    JS

    Thanks, I will give it a go. Will it work on my computer after I do that?
    Jez

  • My external HD of 1TB is not being recognized by the iMac and when after a long waiting period it does, the whole computer becomes extremely slow. Do I need any particular add-on to make it workable?

    My external HD of 1TB is not being recognized by the iMac and when after a long waiting period it does, the whole computer becomes extremely slow. Do I need any particular add-on to make it workable?
    Before I updated to OS X Mavericks I was using another external disk that was getting disconnected ocasionally so I bought a new ADATA HD710 portable 1TB Drive and moved the files to it. This new drive which is supposed to be OS X Mavericks compatible takes minutes to show the files especially when opening second and third level folders which has made mu iMac unusable
    What should I do?

    Your Mac should be able to recognize many different types of drives (including Windows-formatted drives) immediately for Reading, provided they are in good working condition and not damaged. There should be no need to transfer to a different type of drive.
    If there is no recognition of this drive, see if it can be seen in Disk Utility.
    If your aim is to transfer the data on it DO NOT use ERASE or PARTITION as these will completely erase all the information on the Drive.
    If the drive is present while the Mac sleeps, it is likely to drop out and not be seen any longer, especially if it is a USB-powered drive.

  • My iPad is not being recognized by the computer, therefore, cannot sync.  It charges when plugged to the wall, but not when pugged to iMac.

    My iPad is not being recognized by the computer, therefore, cannot sync.  It charges when plugged to the wall, but not when pugged to iMac.

    Most common culprits include the cable. Try swapping it out for a different one.. or not having the most recent version of itunes. I once even solved this problem by shutting down the computer for 2 minutes. (the longer the better), with the ipad plugged in. starting it up... then itunes recognizes it, launches, and syncs.
    Apple has a troubleshooting assistant on this topic:
    http://www.apple.com/support/ipad/assistant/itunes/
    It will advise you to reboot. I recommend shutting down instead.
    --Sam
    P.S The ipad should charge when asleep and plugged into your Mac. The charging behavior is normal. There isn't enough power out the USB ports to charge the ipad while it is on on some older Macs and nearly all PCs.

  • I have a 2006 ipod not being recognized by the latest version of itunes. Any solutions?

    I have a 2006 ipod not being recognized by the latest version of itunes. Any solutions?
    I can see and listen to all of my music from the ipod on my stereo or thru headphones but for some reason, itunes doesn't see this device.

    Hi sunsets123,
    Thanks for using Apple Support Communities.  This article has some troubleshooting steps that may help if iTunes is not recognizing your iPod classic:
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/TS1369
    Cheers,
    - Ari

Maybe you are looking for