SO_REUSEADDR doesn't work in Solaris?

Hi, I have a socket problem with Solaris (5.10). I develop a network testing system in C/C++ which listens on some selected TCP ports and the requirement is to be able to send TCP messages from the very same ports on which the program is already listenig. The obvious solution seemed to be to use the SO_REUSEADDR property of the socket:
sock1 = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP);
sock2 = socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP);
setsockopt(sock1, SOL_SOCKET, SO_REUSEADDR, &ONE, sizeof(ONE));
setsockopt(sock2, SOL_SOCKET, SO_REUSEADDR, &ONE, sizeof(ONE));
bind(sock1, (const struct sockaddr *) &addr, sizeof(addr));
bind(sock2, (const struct sockaddr *) &addr, sizeof(addr));
and the first socket use for listening and the second one use for sending.
On Linux this solution works perfectly, but on Solaris SO_REUSEADDR doesn't seem to have any effect as the second bind still returns EADDRINUSE. How to solve this problem? Thanks.

aaaaaaaaaannnnnnnnnnnndddddddddd....it now works

Similar Messages

  • View works in Solaris in 1 minute but doesn't work in WIn2003

    We have a view is badly written. Other than the non-searchable conditions like '%*%'. What else is wrong:
    CREATE OR REPLACE FUNCTION anycon_p(neid NUMBER, joinaid VARCHAR2, sdf NUMBER, nodetype NUMBER ) RETURN N
    UMBER IS
    fromid NUMBER :=0;
    BEGIN
    if (nodeType=302 or nodetype = 303 )then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid) and (tp.tp_sdf = sdf) and (tp.crs_emlkey is not null);
    elsif (nodeType=307)then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid)and (tp.tp_sdf <= sdf)
    and (tp.tp_sdf+2 >= sdf)and(tp.crs_emlkey is not null);
    elsif (nodeType=308)then
    select count(1) into fromid from JS_CM_TP tp where (tp.ne_id=neid)
    and (tp.tp_joinaid = joinaid) and (tp.tp_sdf <= sdf)
    and (tp.tp_sdf+11 >= sdf)and(tp.crs_emlkey is not null);
    end if;
    RETURN fromid;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    RETURN 0;
    END;
    CREATE OR REPLACE VIEW JS_QUERY_FAC_AVAIL_VW AS
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND (tp.TP_DV_NODETYPE='300')
    AND (tp.TP_TPTYPE ='DGR')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR tp.CRS_EMLKEY is null)
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND ((tp.TP_DV_NODETYPE='302' AND tp.tp_tptype='DGR'
    AND((tp.tp_rawpst NOT LIKE '%UAS%') OR(tp.tp_joinaid NOT LIKE 'EPMX24%')))
    OR(tp.TP_DV_NODETYPE='303' AND((tp.tp_rawpst NOT LIKE '%UAS%') OR
    (NOT EXISTS ( select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_sdf = tp.tp_sdf)
    and (tp1.tp_dv_nodetype = '302')
    and (tp1.tp_rawpst not like '%UAS') )))))
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS ( select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf = tp.tp_sdf)
    and (tp1.crs_emlkey is not null) ) ) )
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid,
    c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND tp.TP_DV_NODETYPE IN ('307')
    AND (tp.tp_aid not like '%-P-%')
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS (select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.NE_ID)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf <= tp.tp_sdf)
    and (tp1.tp_sdf >= tp.tp_sdf-2)
    and (tp1.crs_emlkey is not null) ) ) )
    UNION ALL
    SELECT
    tp.NE_ID NE_ID,
    ne.NE_NAME NE_NAME,
    tp.SHELFAID shelfaid, c.CARD_TYPE cardtype,
    tp.TP_AID tpaid,
    tp.TP_TPTYPE tptype,
    tp.TP_RAWPST tppst,
    tp.TP_JOINAID pmaid,
    c.CARD_RAWPST cardpst,
    tp.TP_TACCID tacc,
    CASE
    WHEN c.CARD_RAWPST LIKE '%OOS%' THEN 'PM-OOS'
    WHEN tp.TP_RAWPST LIKE '%OOS%' THEN 'FAC-OOS'
    WHEN (tp.TP_LPBKCMD IS NOT NULL) AND (tp.TP_LPBKCMD NOT LIKE '%NONE%') THEN 'FAC-LPBK'
    ELSE 'IS-NOT CONNECTED'
    END AS reason,
    tp.TP_FACTYPE AS factype
    FROM
    JS_NM_NE ne,
    JS_CM_CARD c,
    JS_CM_TP tp
    WHERE
    ne.NE_ID = c.NE_ID
    AND c.NE_ID = tp.NE_ID
    AND tp.TP_JOINAID = c.CARD_AID
    AND c.CARD_RAWPST NOT LIKE '%UEQ%'
    AND tp.TP_DV_NODETYPE = '308'
    AND (tp.tp_aid not like '%-P-%')
    AND (tp.TP_TACCID IS NULL OR tp.TP_TACCID LIKE '%0%')
    AND (tp.TP_RAWPST LIKE '%OOS%'
    OR c.CARD_RAWPST LIKE '%OOS%'
    OR (tp.TP_LPBKCMD IS NOT NULL AND tp.TP_LPBKCMD NOT LIKE '%NONE%')
    OR (NOT EXISTS (select null from JS_CM_TP tp1
    where (tp1.ne_id = tp.ne_id)
    and (tp1.tp_joinaid = tp.tp_joinaid)
    and (tp1.tp_sdf <= tp.tp_sdf)
    and (tp1.tp_sdf >= tp.tp_sdf-11)
    and (tp1.crs_emlkey is not null) ) ) )
    WITH READ ONLY;

    If you think anybody's going to be able to point out flaws in that code you're mistaken. Well, maybe somebody with time on their hands will go through it but I doubt it.
    But given your subject the real point of enquiry ought to be, what is the difference between your Solaris set up and your Windows environment? And what do you mean by
    doesn't work in WIn2003please describe observed behaviour, including error messages if appropriate.
    Cheers, APC

  • FileLock doesn't work in UNIX (solaris)

    Hi all,
    I have a piece of code which writes to xml file and before that locks the file to prevent two users writing in same file in same time.
    This code works perfectly on my windows environment (Eclipse and windows 2000) but as soon as I put jar file in UNIX (SOLARIS) it doesn�t work and two clients can change at same time!
    Anyone has an idea what is going on?
    Note: I put sleep just to be able to make a delay so I can try to have access from second client session to test my lock
    Following is my code:
      public synchronized void commitConfiguration() throws ConfigurationDataException
          try {     
              // Get a file channel for the file
              File file = new File(uri);
              FileOutputStream outputStream = new FileOutputStream(file);
              FileChannel  channel = outputStream.getChannel();
              FileLock lock = fileLock(channel);
              if(lock != null) {
                  try {
                      processCommit(outputStream);
                      Thread.sleep(8000);
                  }finally {
                      Thread.sleep(8000);
                      lock.release();
                      channel.close();
              //reload the configuration
              refreshConfiguration();                            
        } catch (Exception e1) {       
            throw new ConfigurationDataException("Cannot commit file, because: " + e1.getMessage());
      private static FileLock fileLock( FileChannel  channel) throws IOException {
          // Use the file channel to create a lock on the file. This is a share lock not exclusive so
          // other users can still read but not set
          // This method blocks until it can retrieve the lock.
          //FileLock lock = channel.lock(0L, Long.MAX_VALUE, true);
          // Try acquiring the lock without blocking. This method returns
          // null or throws an exception if the file is already locked.
          FileLock lock =null;
          try {
              lock = channel.tryLock();
          } catch (OverlappingFileLockException e) {
              // File is already locked in this thread or virtual machine
          if(lock == null) {
              lock = channel.lock();
          return lock;     
      }Thanks,

    So what should we do to have the file locked?
    The Issue is I have one shared file system which all
    of my servers (it is a HA system which there are two
    from each server) having access to same file and I
    want them to be in synch, so I am trying to lock the
    file so no body even from other JVM (second server)
    cannot edit the file at the same time.
    Is there any way to handle this issue with this
    feature of java I mean FileLock and Channel API?Do the Java programs in the other servers also have the code to try and lock the file? Although unix has advisory locks, from what I have read, they should still work as long as you make sure all the Java programs that access the file attempt to get the lock. If any non-Java programs are using the file then they to would need to try and lock the file (not sure if they would play nice with the Java programs).

  • SMC doesn't work in any solaris 10 whole-root zones

    All
    Are you aware of SUN not designing whole-root zones to work with Solaris Management Console?
    None of my solaris 10 whole-root zones/containers will run Solaris Management Console. Very, very frustrating!
    Anyone have a trick to get around this crazy design??
    Thank you!
    SB

    Thanks for your help!
    Yes, i see all font types.
    But maybe i havn't explained my problem good enough:
    I have a FLA-File which works great in Flash CS3: everything – even on different computers – is okay!
    The same FLA-File on the same computer in Flash CS6: the font-rendering is broken!
    In CS6 there seems to be a difference between textfields made via ActionScript and textfields on the stage: see the attached file in my first post.

  • Direct Rendering doesn't works with radeon

    Hi everybody,
    I have a Radeon 7000. Then, I want to use the open-source driver.
    But it doesn't works...
    [nicolas@SonyVaio ~]$ glxinfo
    name of display: :0.0
    display: :0 screen: 0
    direct rendering: No
    server glx vendor string: SGI
    server glx version string: 1.2
    server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
    client glx vendor string: SGI
    client glx version string: 1.4
    client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,
    GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
    GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap
    GLX version: 1.2
    GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig, GLX_EXT_texture_from_pixmap
    OpenGL vendor string: Mesa project: www.mesa3d.org
    OpenGL renderer string: Mesa GLX Indirect
    OpenGL version string: 1.2 (1.5 Mesa 6.5.1)
    OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multitexture,
    GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
    GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
    GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
    GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
    GL_ARB_texture_non_power_of_two, GL_ARB_texture_rectangle,
    GL_ARB_transpose_matrix, GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra,
    GL_EXT_blend_color, GL_EXT_blend_func_separate, GL_EXT_blend_logic_op,
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_clip_volume_hint,
    GL_EXT_copy_texture, GL_EXT_draw_range_elements, GL_EXT_fog_coord,
    GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays, GL_EXT_packed_pixels,
    GL_EXT_point_parameters, GL_EXT_polygon_offset, GL_EXT_rescale_normal,
    GL_EXT_secondary_color, GL_EXT_separate_specular_color,
    GL_EXT_shadow_funcs, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
    GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
    GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
    GL_ATIX_texture_env_combine3, GL_IBM_texture_mirrored_repeat,
    GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
    GL_NV_blend_square, GL_NV_point_sprite, GL_NV_texgen_reflection,
    GL_NV_texture_rectangle, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod, GL_SGIX_depth_texture, GL_SGIX_shadow,
    GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays
    glu version: 1.3
    glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
    visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
    id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
    0x23 24 tc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
    0x24 24 tc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
    0x25 24 tc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
    0x26 24 tc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
    0x27 24 dc 0 24 0 r y . 8 8 8 0 0 16 0 0 0 0 0 0 0 None
    0x28 24 dc 0 24 0 r y . 8 8 8 0 0 16 8 16 16 16 0 0 0 None
    0x29 24 dc 0 32 0 r y . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
    0x2a 24 dc 0 32 0 r . . 8 8 8 8 0 16 8 16 16 16 16 0 0 None
    See my /etc/X11/xorg.conf :
    # Copyright 2004 The X.Org Foundation
    # Permission is hereby granted, free of charge, to any person obtaining a
    # copy of this software and associated documentation files (the "Software"),
    # to deal in the Software without restriction, including without limitation
    # the rights to use, copy, modify, merge, publish, distribute, sublicense,
    # and/or sell copies of the Software, and to permit persons to whom the
    # Software is furnished to do so, subject to the following conditions:
    # The above copyright notice and this permission notice shall be included in
    # all copies or substantial portions of the Software.
    # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    # The X.Org Foundation BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
    # OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    # SOFTWARE.
    # Except as contained in this notice, the name of The X.Org Foundation shall
    # not be used in advertising or otherwise to promote the sale, use or other
    # dealings in this Software without prior written authorization from
    # The X.Org Foundation.
    # Refer to the xorg.conf(5x) man page for details about the format of
    # this file.
    # Module section -- this section is used to specify
    # which dynamically loadable modules to load.
    Section "Module"
    # This loads the DBE extension module.
    Load "dbe" # Double buffer extension
    # This loads the miscellaneous extensions module, and disables
    # initialisation of the XFree86-DGA extension within that module.
    SubSection "extmod"
    Option "omit xfree86-dga" # don't initialise the DGA extension
    EndSubSection
    # This loads the font modules
    # Load "type1"
    # Load "speedo"
    Load "freetype"
    # Load "xtt"
    # This loads the GLX module
    Load "glx"
    # This loads the DRI module
    Load "dri"
    EndSection
    # Files section. This allows default font and rgb paths to be set
    Section "Files"
    # The location of the RGB database. Note, this is the name of the
    # file minus the extension (like ".txt" or ".db"). There is normally
    # no need to change the default.
    # RgbPath "/usr/share/X11/rgb"
    # Multiple FontPath entries are allowed (which are concatenated together),
    # as well as specifying multiple comma-separated entries in one FontPath
    # command (or a combination of both methods)
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/TTF"
    FontPath "/usr/share/fonts/Type1"
    # FontPath "/usr/lib/X11/fonts/local/"
    # FontPath "/usr/lib/X11/fonts/misc/"
    # FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
    # FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
    # FontPath "/usr/lib/X11/fonts/Speedo/"
    # FontPath "/usr/lib/X11/fonts/Type1/"
    # FontPath "/usr/lib/X11/fonts/TrueType/"
    # FontPath "/usr/lib/X11/fonts/freefont/"
    # FontPath "/usr/lib/X11/fonts/75dpi/"
    # FontPath "/usr/lib/X11/fonts/100dpi/"
    # The module search path. The default path is shown here.
    # ModulePath "/usr/lib/modules"
    EndSection
    # Server flags section.
    Section "ServerFlags"
    # Uncomment this to cause a core dump at the spot where a signal is
    # received. This may leave the console in an unusable state, but may
    # provide a better stack trace in the core dump to aid in debugging
    # Option "NoTrapSignals"
    # Uncomment this to disable the <Ctrl><Alt><Fn> VT switch sequence
    # (where n is 1 through 12). This allows clients to receive these key
    # events.
    # Option "DontVTSwitch"
    # Uncomment this to disable the <Ctrl><Alt><BS> server abort sequence
    # This allows clients to receive this key event.
    # Option "DontZap"
    # Uncomment this to disable the <Ctrl><Alt><KP_>/<KP_> mode switching
    # sequences. This allows clients to receive these key events.
    # Option "Dont Zoom"
    # Uncomment this to disable tuning with the xvidtune client. With
    # it the client can still run and fetch card and monitor attributes,
    # but it will not be allowed to change them. If it tries it will
    # receive a protocol error.
    # Option "DisableVidModeExtension"
    # Uncomment this to enable the use of a non-local xvidtune client.
    # Option "AllowNonLocalXvidtune"
    # Uncomment this to disable dynamically modifying the input device
    # (mouse and keyboard) settings.
    # Option "DisableModInDev"
    # Uncomment this to enable the use of a non-local client to
    # change the keyboard or mouse settings (currently only xset).
    # Option "AllowNonLocalModInDev"
    EndSection
    # Input devices
    # Core keyboard's InputDevice section
    Section "InputDevice"
    Identifier "Keyboard1"
    Driver "kbd"
    # For most OSs the protocol can be omitted (it defaults to "Standard").
    # When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
    # uncomment the following line.
    # Option "Protocol" "Xqueue"
    Option "AutoRepeat" "500 30"
    # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
    # Option "Xleds" "1 2 3"
    # Option "LeftAlt" "Meta"
    # Option "RightAlt" "ModeShift"
    # To customise the XKB settings to suit your keyboard, modify the
    # lines below (which are the defaults). For example, for a non-U.S.
    # keyboard, you will probably want to use:
    # Option "XkbModel" "pc105"
    # If you have a US Microsoft Natural keyboard, you can use:
    # Option "XkbModel" "microsoft"
    # Then to change the language, change the Layout setting.
    # For example, a german layout can be obtained with:
    # Option "XkbLayout" "de"
    # or:
    # Option "XkbLayout" "de"
    # Option "XkbVariant" "nodeadkeys"
    # If you'd like to switch the positions of your capslock and
    # control keys, use:
    # Option "XkbOptions" "ctrl:swapcaps"
    # These are the default XKB settings for Xorg
    # Option "XkbRules" "xorg"
    # Option "XkbModel" "pc105"
    # Option "XkbLayout" "us"
    # Option "XkbVariant" ""
    # Option "XkbOptions" ""
    # Option "XkbDisable"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "fr"
    # Option "XkbVariant" "fr"
    EndSection
    # Core Pointer's InputDevice section
    Section "InputDevice"
    # Identifier and driver
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "Auto"
    Option "Device" "/dev/input/mice"
    # When using XQUEUE, comment out the above two lines, and uncomment
    # the following line.
    # Option "Protocol" "Xqueue"
    # Mouse-speed setting for PS/2 mouse.
    # Option "Resolution" "256"
    # Baudrate and SampleRate are only for some Logitech mice. In
    # almost every case these lines should be omitted.
    # Option "BaudRate" "9600"
    # Option "SampleRate" "150"
    # Mouse wheel mapping. Default is to map vertical wheel to buttons 4 & 5,
    # horizontal wheel to buttons 6 & 7. Change if your mouse has more than
    # 3 buttons and you need to map the wheel to different button ids to avoid
    # conflicts.
    Option "ZAxisMapping" "4 5"
    # Emulate3Buttons is an option for 2-button mice
    # Emulate3Timeout is the timeout in milliseconds (default is 50ms)
    # Option "Emulate3Buttons"
    # Option "Emulate3Timeout" "50"
    # ChordMiddle is an option for some 3-button Logitech mice
    # Option "ChordMiddle"
    EndSection
    # Other input device sections
    # this is optional and is required only if you
    # are using extended input devices. This is for example only. Refer
    # to the xorg.conf man page for a description of the options.
    # Section "InputDevice"
    # Identifier "Mouse2"
    # Driver "mouse"
    # Option "Protocol" "MouseMan"
    # Option "Device" "/dev/mouse2"
    # EndSection
    # Section "InputDevice"
    # Identifier "spaceball"
    # Driver "magellan"
    # Option "Device" "/dev/cua0"
    # EndSection
    # Section "InputDevice"
    # Identifier "spaceball2"
    # Driver "spaceorb"
    # Option "Device" "/dev/cua0"
    # EndSection
    # Section "InputDevice"
    # Identifier "touchscreen0"
    # Driver "microtouch"
    # Option "Device" "/dev/ttyS0"
    # Option "MinX" "1412"
    # Option "MaxX" "15184"
    # Option "MinY" "15372"
    # Option "MaxY" "1230"
    # Option "ScreenNumber" "0"
    # Option "ReportingMode" "Scaled"
    # Option "ButtonNumber" "1"
    # Option "SendCoreEvents"
    # EndSection
    # Section "InputDevice"
    # Identifier "touchscreen1"
    # Driver "elo2300"
    # Option "Device" "/dev/ttyS0"
    # Option "MinX" "231"
    # Option "MaxX" "3868"
    # Option "MinY" "3858"
    # Option "MaxY" "272"
    # Option "ScreenNumber" "0"
    # Option "ReportingMode" "Scaled"
    # Option "ButtonThreshold" "17"
    # Option "ButtonNumber" "1"
    # Option "SendCoreEvents"
    # EndSection
    # Monitor section
    # Any number of monitor sections may be present
    Section "Monitor"
    Identifier "My Monitor"
    # HorizSync is in kHz unless units are specified.
    # HorizSync may be a comma separated list of discrete values, or a
    # comma separated list of ranges of values.
    # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
    # USER MANUAL FOR THE CORRECT NUMBERS.
    HorizSync 31.0 - 50.0
    # HorizSync 30-64 # multisync
    # HorizSync 31.5, 35.2 # multiple fixed sync frequencies
    # HorizSync 15-25, 30-50 # multiple ranges of sync frequencies
    # VertRefresh is in Hz unless units are specified.
    # VertRefresh may be a comma separated list of discrete values, or a
    # comma separated list of ranges of values.
    # NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
    # USER MANUAL FOR THE CORRECT NUMBERS.
    VertRefresh 43-75
    EndSection
    # Graphics device section
    # Any number of graphics device sections may be present
    # Standard VGA Device:
    Section "Device"
    Identifier "Standard VGA"
    VendorName "Unknown"
    BoardName "Unknown"
    # The chipset line is optional in most cases. It can be used to override
    # the driver's chipset detection, and should not normally be specified.
    # Chipset "generic"
    # The Driver line must be present. When using run-time loadable driver
    # modules, this line instructs the server to load the specified driver
    # module. Even when not using loadable driver modules, this line
    # indicates which driver should interpret the information in this section.
    Driver "vga"
    # The BusID line is used to specify which of possibly multiple devices
    # this section is intended for. When this line isn't present, a device
    # section can only match up with the primary video device. For PCI
    # devices a line like the following could be used. This line should not
    # normally be included unless there is more than one video device
    # intalled.
    # BusID "PCI:0:10:0"
    # VideoRam 256
    # Clocks 25.2 28.3
    EndSection
    # Device configured by xorgconfig:
    Section "Device"
    Identifier "** ATI Radeon (generic) [radeon]"
    Driver "radeon"
    #VideoRam 8192
    # Insert Clocks lines here if appropriate
    EndSection
    # Screen sections
    # Any number of screen sections may be present. Each describes
    # the configuration of a single screen. A single specific screen section
    # may be specified from the X server command line with the "-screen"
    # option.
    Section "Screen"
    Identifier "Screen 1"
    Device "** ATI Radeon (generic) [radeon]"
    Monitor "My Monitor"
    DefaultDepth 24
    Subsection "Display"
    Depth 8
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection
    Subsection "Display"
    Depth 16
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection
    Subsection "Display"
    Depth 24
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    ViewPort 0 0
    EndSubsection
    EndSection
    # ServerLayout sections.
    # Any number of ServerLayout sections may be present. Each describes
    # the way multiple screens are organised. A specific ServerLayout
    # section may be specified from the X server command line with the
    # "-layout" option. In the absence of this, the first section is used.
    # When now ServerLayout section is present, the first Screen section
    # is used alone.
    Section "ServerLayout"
    # The Identifier line must be present
    Identifier "Simple Layout"
    # Each Screen line specifies a Screen section name, and optionally
    # the relative position of other screens. The four names after
    # primary screen name are the screens to the top, bottom, left and right
    # of the primary screen. In this example, screen 2 is located to the
    # right of screen 1.
    Screen "Screen 1"
    # Each InputDevice line specifies an InputDevice section name and
    # optionally some options to specify the way the device is to be
    # used. Those options include "CorePointer", "CoreKeyboard" and
    # "SendCoreEvents".
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
    EndSection
    Section "DRI"
    Group "video"
    Mode 0666
    EndSection
    I precise I loaded my modules : dri, radeon, ati_agp and intel_agp.
    Any ideas ?
    Thanks

    For Radeon 7000, you need to:
    pacman -S xf86-video-ati
    You need to load those modules in /etc/rc.conf:
    MODULES=(agpgart via-agp)
    And in xorg.conf:
    Driver      "radeon"

  • Plymouth doesn't work [SOLVED]

    Hello!
    Plymouth doesn't work.
    I installed plymouth, added plymouth to HOOKS array in /etc/mkinitcpio.conf file, added "quiet splash" to /etc/default/grub file and ran "sudo grub-mkconfig -o /boot/grub/grub.cfg" followed by "sudo plymouth-set-default-theme -R solar".
    File /etc/mkinitcpio.conf
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run last, so it may be used to
    # override the actual binaries included by a given hook
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect block filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev block filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev block mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev block lvm2 filesystems"
    ## NOTE: If you have /usr on a separate partition, you MUST include the
    # usr, fsck and shutdown hooks.
    HOOKS="base udev plymouth autodetect modconf block filesystems keyboard fsck nvidia"
    # COMPRESSION
    # Use this to compress the initramfs image. By default, gzip compression
    # is used. Use 'cat' to create an uncompressed image.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    #COMPRESSION="lz4"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    File /etc/default/grub
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Arch"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    #GRUB_THEME="/path/to/gfxtheme"
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    #GRUB_SAVEDEFAULT="true"
    No sucess. Any help?
    Last edited by joseribeiro (2014-06-11 12:15:30)

    I disagree.
    I don't need to run mkinitcpio -p linux if I ran plymouth-set-default-theme -R solar.
    See the following terminal output:
    # mkinitcpio -p linux
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    # plymouth-set-default-theme -R solar
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    ==> Starting build: 3.14.6-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [plymouth]
    -> Running build hook: [modconf]
    -> Running build hook: [block]
    ==> WARNING: Possibly missing firmware for module: aic94xx
    ==> WARNING: Possibly missing firmware for module: smsmdtv
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    -> Running build hook: [nvidia]
    Building nvidia modules for 3.14.6-1-ARCH kernel...
    Module nvidia/337.25 already installed on kernel 3.14.6-1-ARCH/x86_64
    Ok.
    ==> Generating module dependencies
    ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    ==> Image generation successful
    They are equivalents.
    Last edited by joseribeiro (2014-06-10 18:37:29)

  • Apache Plug-In: PathPrepend doesn't work?

    Hello All,
    I've run into a problem at a customer site with the WLS 5.1 Apache Plug-In
    with Apache 1.3.12 on Solaris 6: the PathTrim parameter does not work.
    Could somebody look at my httpd.conf file and tell me what I'm doing wrong:
    <Location /weblogic>
    SetHandler weblogic-handler
    </Location>
    WebLogicHost ism-app
    WebLogicPort 7010
    PathTrim weblogic
    DebugConfigInfo ON
    That's as basic as it gets, but it doesn't work! The url
    /weblogic/index.html should get sent to wls as /index.html; instead, it's
    sent verbatim.
    I've tried the plug-in from service pack versions 3, 4, 6, and 8, and tried
    the PathPrepend parameter inside the Location tag as well as outside. I
    can't imagine that this does not work for any plug-in in any service pack;
    if this is a bug in all these service packs, we really need to take a
    serious look at QA.
    Vijay Garla
    Consultant, BEA Systems
    [httpd.conf]

    Hi,
    the "apex.widget.initPageItem" will not help you in your case, it's used to register callbacks for $s, $v, show, hide, ... if you have a more advanced item type. You can have a look at the "Star Rating" plug-in which implements several of these callbacks.
    For adding cascading LOV support, please have a look at our own select list implementation in /i/javascript/uncompressed/apex_widget_4_0.js
    Search for
    apex.widget.selectList = function(pSelector, pOptions) {to get a blue print implementation for all the steps you have to add to your widget to add cascading LOV support.
    If you need further help, please let me know.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • KEYBOARD DOESN'T WORK IN ALL JAVA APPS

    I think there are a bug with Java,
    but some keys of my French keyboard doesn't work with ALL Java APPS (Solaris Management console...), but work fine with all other apps.
    When I use Xsun, there are no problem, all keys work, but with Xorg, some keys doesn't work. (Only in Java Apps).
    I had got this bug with Sun Solaris 10 and Sun Solaris 11 (6/05 Express)
    This is a very nasty bug, I have got a PS/2 keyboard.
    Willits

    Enable multilib repo in /etc/pacman.conf , pacman -Syy and pacman -S flashplugin
    Last edited by Halcyon22 (2010-09-14 13:34:53)

  • XMLType setNull(nnn, Types.NULL) doesn't work in a ps.executeBatch()

    All,
    Sorry below was originally posted in another OTN forum ( XMLType setNull(nnn, Types.NULL) doesn't work in a ps.batchUpdate() ) and I feel that it maybe more relevant here, so if you have already read it... my apologies:
    A little background: Java version 1.5.0.08 on Solaris 10 with Oracle 10g R2. The XMLDB is using the Object Relational setup with a large XSD being shredded, the schema in question has three XMLType columns two of which are nullable, but all reference the same XSD. Everything i reference below will be in Java code that compiles(all of the time) and runs (most of time depending on which code is implemented). To my knowledge no patches were applied to the DB server when it suddenly stopped working.
    Until recently the setNull (using java.sql.Types.NULL for the data type) was working in a batch update (ps.updateBatch()) . Now we get the following stack trace:
    java.lang.NullPointerException
    at oracle.jdbc.driver.T4CTTIoac.init(T4CTTIoac.java:354)
    at oracle.jdbc.driver.T4C8Oall.initBindsDefinition(T4C8Oall.java:1217)
    at oracle.jdbc.driver.T4C8Oall.marshal(T4C8Oall.java:372)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:202)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10620)
    Interestingly enough we can execute the same code but only changing the executeBatch to be ps.executeUpdate(). I know that executeBatch() works as we have other tables being inserted into using XMLTypes with no problem, however none of the columns are nullable. I'm not sure if this is a configuration issue that has been introduced while trying to increase/tweak insert performance (on the DB server), or if something else altogether. Does anyone have any insight into this?
    Regards,
    Stefan

    Does something like this help
         while (resultSet.next())
            xml = (XMLType) resultSet.getObject(1);
            Reader reader = new InputStreamReader(xml.getInputStream());
            FileOutputStream fos = new FileOutputStream("c:\\temp\\output.xml");
            Writer writer = new OutputStreamWriter(fos);
            int n;
            char[] buffer = new char[CLOB.MAX_CHUNK_SIZE];
            while (-1 != (n = reader.read(buffer)))
              writer.write(buffer,0,n);
            writer.flush();
            fos.close();
            xml.close();
           resultSet.close();
           statement.close();
           getConnection().close();
          

  • NameTrans doesn't work in Sun One 7

    hi,
    OS Solaris 10
    Web: Sun One 7u1
    this line in obj.conf doesn't work anymore in Sun Web 7, but worked in 6.xx
    NameTrans fn="pfx2dir" from="/rabota/css" dir="/opt/semen/secure/rabota-css" name="es-internal"
    What changes should be applied for Web 7???
    --mpech                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    hi,
    yes.
    # 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">
    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="pfx2dir" from="/aaa/images" dir="/sun/webserver7/https-mir/docs/img" name="es-internal"
    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"
    </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>

  • Italian keyboard doesn't work under the gui

    I have an italian keyboard on a x86 Solaris 10 installation.
    All the patch available using Sun Update applied but the keyboard doesn't work, it still works only as a USA keyboard.
    Forcing it as a Italian layout at startup (pressing esc and using the boot utility) make the keyboard work in the consolle with the correct layout but under the gui, after the dtlogin startup, the key doesn't work correctly. Every key is "shifted" of one position, so inserting "root" result in "eiir"
    Even applyng the 118966-08 patch as suggested doesn't work.
    Obiouvsly I used the gnome panel to set the correct keyboard under gnome but with no result
    Both the two type of italian keyboards don't work, the standard one and the 104 "ibm" italian layout.
    All this keyboards work fine on the same PC with both WindowsXP and Linux Ubuntu.
    Any suggestion to fix this ?

    The solution was to reconfigure the X-Server: In a console-window I called kdmconfig and corrected the keyboard settings: it was a US-Keyboard. Nobody knows ... At installation time I configured a german keyboard.
    A remaining problem is that my mouse and keyboard are connected via USB and they are frozzen after boot. First when I physicaly detach both and reconnect them they start working in an ordinary manner. I saw a forum entry which talked about BIOS-settings.

  • Sunplex Manager Cluster GUI Tool doesn't work

    The Sun Cluster management tool doesn't work, I keep getting the following error on my browser:
    "System Error, An Error was encountered by the system. If you were performing an action when this occurred, review the current system state prior to proceeding"
    The GUI shows Nodes, Resouce Groups, Shared Storage etc in the left hand frame and the error in the right hand frame.
    The command line interface works fine so does the cluster.
    Solaris 8 07/03 SPARC
    Sun cluster 3.1
    Relevant patches loaded: 117950-25, 118626-09, 118671-03
    java -version: 1.4.1_01-b01

    This is now resolved - The machine was set up to use a DNS, the DNS resolved the name correctly but the hosts file did not have the full canonical name of the host.
    I added the full cname of the node to the /etc/hosts file and all is well now.

  • Does "top" command work in Solaris?

    Does "top" command work in solaris?
    # uname -a
    SunOS rac1 5.10 Generic_120012-14 i86pc i386 i86pc
    # top
    top: not found
    Edited by: user11936985 on Aug 29, 2011 8:44 AM

    Top has two sections, the summary information at the top of the screen which gives load averages, process counts, etc. and a bottom section which lists the "top processes". The prstat command standard report is similar to the bottom section of top. So if that is what you need, then prstat is an adequate substitute. It doesn't report the information in top's summary section. On the other hand, prstat is actually a much more powerful tool than top, especially is you use some of the other options. For example, "prstat -a" gives you the "top process" report plus a summary report of usage by user. If you use "prstat -J" you get a top process report with a summary by project and "prstat -Z" gives a top process report with a summary by zone. You can use options like -v or -m to get more information on each process in the "top process" section. There are other options mentioned in the manual page.
    Top works and works well on Solaris. You can get a copy form sunfreeware and probably other sources as well. It doesn't come from Oracle with Solaris 10 (but does come with Solaris 11). If you're a Linux shop you might want it because it is familiar. However, you may want to look at prstat as well because it can provide some useful information that top does not.

  • Filter doesn't work for filter-servlet name mapping

              Filter doesn't work for filter-servlet name mapping.
              it only works for filtering url-pattern.
              Does anybody has some idea?
              BTW, does anybody know if filter will be invoked when
              call RequestDispatcher.include/forward?
              Version: WLS6.1 SP1 on solaris.
              Thanks a lot.
              Heng
              

    The Filter defined will only be run in the context that it is defined in. Since you are creating a new context, you will have to assign a new Filter. BTW, why not include the static content in the WAR with the dynamic stuff?

  • Does Proliant ML 370 G5 work with Solaris 10 64-bits?

    Does this server work with Solaris 10 in 64 bit mode?
    http://www.sun.com/bigadmin/hcl/data/systems/details/1891.html doesn't indicate if it is certified for 64 bits.
    and http://h71028.www7.hp.com/enterprise/cache/493913-0-0-0-121.html indicates only 32 bits.
    Message was edited by:
    Jose_Luis_Rodriguez

    Does this server work with Solaris 10 in 64 bit mode?
    http://www.sun.com/bigadmin/hcl/data/systems/details/1891.html doesn't indicate if it is certified for 64 bits.
    and http://h71028.www7.hp.com/enterprise/cache/493913-0-0-0-121.html indicates only 32 bits.
    Message was edited by:
    Jose_Luis_Rodriguez

Maybe you are looking for

  • Getting white screen when booting with alt key

    Hi, I've installed windows 7 with boot camp on my brand new iMac 27" on OS X Lion. Everything works fine when I configure boot camp to start as mac, or as windows. However If I press the alt key when booting, as per this tutorial http://labnol.blogsp

  • 2 user accounts using 1 iCloud drive account, different folders and files for each user.

    I have two user accounts on my Mac. One for work and one for personal use. They both share my iCloud and iCloud drive account. My issue is that when I update the files in my work account the changes do not take place when I log into my personal accou

  • How to include shell script in java

    how to include a ".sh" file in a java code and then use it

  • Tree View with BLOB

    Ive displayed some workers with their departments in a tree view, but does somebody now how to put in their BLOB picture instead of their name into the tree view. i thougt that i just rewrite the tree views "Node Text Template" but therefore i will n

  • No fund derived for stadistical commitment item: error F6804

    Hello, While posting a payment I face an exchange difference. The exchance difference account has an "stadistical commitment item" related in the GL master data. While posting and following the fmderiver tracking I see that the account tries to get t