Cookie ain't set on Linux Tomcat 5.5

I'm mnigrating from j2sdk 1.4 to jdk1.5 and found following problem using Tomcat 5.5 on linux (gentoo). ON windows machines probem doesn't occur.
I'm using following code to set cookie with specified lifetime
Cookie cookie = new Cookie("name", "value");
cookie.setMaxAge(3600);
response.addCookie(cookie);Using this - cookie is not stoted to client. When i remove setting of life time - cooke is set OK.
On windows cooke are set wihtout any problems with lifetime.
On linux i am unalbe to set cooke with specifie lifetime.

user11951485 wrote:
Hi, I'm trying to install 12c (GI & RDBMS) on a Oracle Linux 6.5 (virtual host from OVMM), but when I ran the "/sbin/scsi_id -g -u -d /dev/xvdd" I don't have any result or error...
[root@myhost ~]# cd /dev
[root@myhost dev]# ll xvd*
brw-rw----. 1 root disk 202,  0 Nov  7 02:20 xvda
brw-rw----. 1 root disk 202,  1 Nov  7 02:20 xvda1
brw-rw----. 1 root disk 202,  2 Nov  7 02:20 xvda2
brw-rw----. 1 root disk 202, 32 Nov  7 02:20 xvdc
brw-rw----. 1 root disk 202, 33 Nov  7 02:20 xvdc1
brw-rw----. 1 root disk 202, 34 Nov  7 02:20 xvdc2
brw-rw----. 1 root disk 202, 48 Nov  7 02:20 xvdd
brw-rw----. 1 root disk 202, 49 Nov  7 02:20 xvdd1
[root@myhost dev]# /sbin/scsi_id -g -u -d /dev/xvdd
[root@myhost dev]#
anyone knows how to solve this issue?
thnks
I wrote a script to handle that a few years back, and now looking at it I'd have to spend half a day figuring out exactly how it works.
That said, looking at a key point in my script, what do you get from
/sbin/scsi_id -g -u -s /block/xvdd

Similar Messages

  • Forcing a cookie to be set

    Is it possible to force a cookie to be set if the privacy setting on ie is set high?

    Don't know if this will solve your problem, but maybe you can use HttpSession. It will set a cookie, and if cookies are disabled it will use URLRewriting.

  • If user disable cookie how to set and use session with URL Rewritting

    if user disable cookie how to set and use session with URL Rewritting by append session ID in url

    If cookies are disabled, then app server will automatically try to use URL rewriting for session control. Programmer's responsibility is to encode any links or redirects using
    response.encodeURL("/yourPage.jsp")
    and
    response.encodeRedirectURL("/yourPage.jsp")
    See API for details
    http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletResponse.html#encodeURL(java.lang.String))

  • I would like to accept cookies from pre-set websites only

    I would like to accept cookies from pre-set websites only. In the other cases ask me. How can I do it?

    Hi twozok,
    see if this is helpful : [https://addons.mozilla.org/en-us/firefox/addon/cookie-controller/?src=search Cookie Controller add-on]
    thank you

  • Safari 5.0.5 in Snow Leopard allows cookies to be set despite preferences set to NEVER.  How do I correct this glitch?

    Safari 5.0.5 in Snow Leopard allows cookies to be set despite preferences set to NEVER.  How do I correct this glitch?

    I just upgraded Safari to 5.1.5 and I'm having the same problem.  Despite the settings to BLOCK all cookies, cookies pile up like snow in a blizzard.  Ironically, the only site I've encountered whose cookies are actually blocked by Safari's preference setting is Apple's.
    I couldn't log in because my preferences were set to BLOCK.  Doesn't stop any other site from setting cookies, only Apple's so far.
    As for Lion - I've been told it's unstable.  I have already lost half my music files upgrading to Snow Leopard and
    would rather avoid going through that again after spending a great deal of time retreiving the loss.  I've decided to wait until all of Lion's glitches are resolved.
    Here is a link to the many pages discussing this cookie problem, and no solution in sight.  https://discussions.apple.com/thread/3140339?start=150&tstart=0
    I assume you are on Lion.  And Safari's cookies preferences work as expected for you?

  • JDBC DRIVER LINUX TOMCAT APACHE

    Hello all
    I am woking on APACHE + TOMCAT + RH LINUX
    enviorment . I have a main page which calls another JSP on clicking to a button . That JSP makes connection with oracle 7.3.4 which is running on another machine whose enviorment is AIX 4.2 .
    whenever I clicked on button it access the JSP but it could nt find the driver which is classes12.zip in
    TOMCAT_HOME/lib directory and classpath is already set
    Error I am getting is driver not found in case the statement is
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    and error is Document contain no data in case I change the above statement to
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Please help ?
    Thanks in Advance
    Avi

    Thanks for yor reply beattris
    Still it didbnt work Please have a look at the code
    <%
    System.out.println("1");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("2");
    conn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@blackadder:1521:ORCL","driver","norman");
    stmt = conn.createStatement();
    rs = stmt.executeQuery("SELECT FILE_STATUS FROM GOLFFILES WHERE GOLFFILE_ID = (SELECT MAX(GOLFFILE_ID) FROM GOLFFILES)");
    while (rs.next()) {
    varIsUpdated = rs.getString(1);
    rs.close();
    stmt.close();
    if (varIsUpdated.equals("START") && !(varIsUpdated.equals("LOADED"))) {
    conn.close();
    %>
    Above is the code it comes to JSP and it prints 1 which is above the class.forName statement but after that it wont print 2 .. which means it is able execute this statement
    One more thing do .zip files work on linux
    Please see if u can help ?
    Thanks
    KS

  • I want third party cookies enabled in firefox for linux !! when it will happen ?

    Hello. I have Firefox 24,i'm on linux64,and i understood that default block of 3rd party cookies,is postponed (again). I don't need cookies,as they're possible security risks and tracking,as i'm sure many of the linux users don't want aswell.
    Why Mozilla postponed that ? Maybe some good 'advice' from the big brother Google ?
    I used Firefox since the 2.0 releases,and despite all, i don't want to change the browser. Please some in charge keep it safe,and keep us safer.

    This isn't an answer to your question, only a note.
    <b>Google doesn't run or fund Firefox!</b><br>
    Google only pays Mozilla to be set as the default search engine<sup>[http://en.wikipedia.org/wiki/Mozilla_Foundation#Financing [1]] </sup>.
    Anything else that you may hear about Google funding its competition is only rumors.
    As for your question, are you asking how to disable only third party cookies? This can be done, via Firefox options. <i>(See attached screenshot)</i>

  • Character Setting Problem ( mysql + tomcat )

    Hi all;
    I am using mysql dbms and tomcat web server(servlet). But in my web page, the characters are shown broken. I set the character set of the mysql database. They are shown well in the dbms console. And also I set the html code with appropriate character set in the meta tags. Do I need to make any extra setting? Perhaps in the tomcat or anywhere else? What is the problem here?

    assumes:
    1. using jsp to display the db data
    2. db encoding is ISO-8859-1
    3. jsp encoding is utf-8
    for the very first line of the jsp file:
    <%@ page pageEncoding="utf-8" %>before displaying the data:
    String str = <data from db>
    str = new String(str.getBytes("ISO-8859-1"), "UTF-8");

  • Default Japanese font setting in Linux

    Hi,
    I'm using flashplayer in Debian/Ubuntu, and default Japanese font setting in flash is kind of crap...
      It seems that Kochi font should be installed.  Kochi (東風) font is very old and it is not used so much
    as 10 years ago Now Linux users use VLGothic or IPAGothic as Japanese font by default.
    My question is,
      - How users can change default font setting?
      - Where/who is the contact address for this issiue?
    #I'm also maintainer for most of Japanese font packages in Debian/Ubuntu. In my opinion, Kochi
       should be dropped in near future (see package description)

    If you don't hear anything about this issue within a few days, please send a PM to http://forums.adobe.com/people/libflashplayer.so and/or http://forums.adobe.com/people/chris.campbell with a link to this topic.
    P.S. Hello from another Tokyo resident

  • Firefox won't delete cookies even after set to clear cookies on firefox exit

    I have use custom settings for remembering history in firefox.
    I set to clear history on firefox close. Under this settings, I set to clear cookies, active login and cache. But whenever firefox exits it doesn't remove cookies.
    Also, I set to keep cookies till firefox closes. Still the cookies appears.
    This is a big security issue for me..When I click restore previous session, firefox restores the login into sites also which I don't want

    Got It!!!
    Go To: Firefox/Tools/Options/Privacy/Tracking Checked box/Tell websites I do not want to be tracked/ History Firefox will: Never Remember History/ You may also want to: clear all current history/ Clear now/ click OK, ---> got it, that is your answer.<-- (Right click the left image below to open in a new tab)
    And it is my answer as well, as I was confounded with this problem for some time. Now after you do this close your Firefox browser, and open back up Firefox browser, and there will be maybe only one or two cookies, depending on your browsers' home page.
    I tried other methods to get rid of persistent cookies that would not delete by, CookieKiller, and TACO Targeted Advertising Cookie Opt-Out, those did not help, and I tried the methods listed on these links but they did not work:http://webdevwonders.com/clear-dom-storage/
    Also this method did not work:http://justplainobvious.blogspot.com/2009/03/firefox-wont-delete-cookies.html
    Next to make your Firefox browsing possible, go to/Firefox/Tools/Options/Privacy/,Tracking Checked box/Tell websites I do not want to be tracked, History Firefox will: Use custom settings for history, unchecked box Always use private browsing mode, unchecked box Remember my browsing history, unchecked box Remember download history, unchecked box Remember search and form history, checked box Accept cookies from sites, checked box Accept third party cookies, Keep until: I close Firefox, checked box clear history when Firefox closes, /settings all nine boxes checked/ click --->OK! (Right click the right image below to open in a new tab)
    All Cookies are gone/history/deleted.

  • OamAuthn cookies are not set with encrypted value in https login with FFbro

    we have developed a custom login page which is deployed on oam server itself .
    In custom login page we are passing 3 userinfo like username ,passowrd and request id as part of authentication parameter .
    We have developed our own javascript to pass all these information using ajax call .
    Below are the snippet of ajax method which is posting the data to oam server .
    var uname = $("#username").val();
    var pwd = $("#password").val();
    pwd = pwd.replace( /&/g, '%26' );
    var requestId = $("#request_id").val();
    var oamAuthenticationUrl=$("#oamAuthUrl").val()+'/oam/server/auth_cred_submit';
    var postdata = "username=" + uname + "&password=" + pwd + "&request_id=" + requestId;
    $.ajax( {
    type :'POST', url : oamAuthenticationUrl, data :postdata,
    complete : function (xmlHttp, statusCode) {
    // some code if user login is done successfully ......
    Here we are making login page call using ssl port Like our login page is https://oamserver:14101/.....
    This code is working perfectly fine in internet explorer but in firefox oracle access manager is not setting any value to oamAuthnCookeis.
    I mean before logging and after logging value of oamAuthnCookies remains same like
    LoggedoutContinue .
    Thanks,
    Arun

    This is a known issue of CEP (Common Extensibility Platform, a DLL that supports displaying extensions). Code like “document.cookie” in HTML extension is invalid because CEF (CEP integrated CEF3 to display HTML Extensions) intentionally disables cookies on "file://..." for a variety of reasons.
    However, CEP stores cookies at:
    Windows: "C:\Users\yourusername\AppData\Local\Temp\cep_cookies"
    Mac: "/Users/yourusername/Library/Logs/CSXS/cep_cookies"
    Please let me know if more information is needed, thanks

  • How to set InitParameters in Tomcat??

    I'd like to do the following in my servlet init
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    databaseURL = config.getInitParameter("database");
    how to set the
    InitParameter in Tomcat??

    Add them to the WEB-INF/web.xml
        <servlet>
            <servlet-name>
                KioskServlet
            </servlet-name>
            <servlet-class>
                KioskServlet
            </servlet-class>
            <init-param>
                <!-- number of seconds of inactivity until timing out -->
                <!-- 300 = 5 minutes -->
                <param-name>timeoutValue</param-name>
                <param-value>300</param-value>
            </init-param>
        </servlet>

  • Setting classpath in Tomcat on AIX

    Hi All
    Can any one know how to set classpath for jsf application in tomcat on AIX.

    Refer to the Tomcat's documentation regarding classpaths and classloading. The underlying operating system doesn't really matter.

  • URL Provider set up in Tomcat (vs its setup in Websphere).

    I am using the APi that requires the URL provider to be set up in my Websphere to specify the location of the config files. I am using Tomcat to test the application and I don't know how to set up those kinds of providers in Tomcat. Anyone has any idea how to do it in Tomcat? Here is how I set it up in Websphere:
    URL Providers
    Default URL Provider
    URLs (in Additional Properties)
    New
    Property Value
    Name ConfigRoot
    JNDI Name url/URLProviderName
    Specification file:///C:/config
    Category CONFIG_ROOT

    Hi RESIDENT2,
    First of all, please let me apologise for the delay in response time to your message! Unfortunately it seems as though we missed this one.
    Can I suggest to you that the best place to get help with ArjunaMS is from:
    http://www.arjuna.com/forum/
    As far as your problem is concerned it appears as though you have performed the correct procedures to setup ArjunaMS, if your problem still exists can I ask you to post a complete description of the system as it stands.
    NOTE: To check the WebConnect servlet is running you should be able to connect to http://localhost:8090/WebConnect, which should display a welcome page for the servlet. If this welcome screen cannot be seen then the servlet failed to deploy.
    Once again, sorry for the delayed response!
    Cheers,
    Tom
    Arjuna Technologies Limited

  • Set JAVA_OPTS for Tomcat in unix

    Hi all,
    I've faced a problem on setting multiple system properties in the JAVA_OPTS for Tomcat in Unix.
    Example:
    JAVA_OPTS=-Dmypath="/home/" -Dmypath2="/home2/"
    I've tried in Windows and it works fine but not sure why in Unix it can't be done. Will be very appreciate if someone can help.

    Nope. If your application requires more than one retrieval from System Property, it will require more than one -D in the startup. However, it only works for Windows environment not unix.

Maybe you are looking for