Weblogic wants me to disable cookies to run struts?!

          Hi,
          I woudl like to deploy a web application that use struts 1.1
          in Weblogic 8.1 sp2 (windows)
          The probelm is when I view a page that has struts code
          it works fine for first time, but when I try to browse the same
          or any other struts page again, it gives me this error:
          java.lang.ClassCastException
          at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
          Furthermore, I notced that when I disable cookies,
          (<session-param>
          <param-name>CookiesEnabled</param-name>
          <param-value>false</param-value>
          </session-param>
          strust work fine, it seems it like to use URLRewriting instead, But if i disable
          cookies, I have other JSP pages which uses normal "<jsp:useBean ..."
          and now these pages are suffering becouse all of there session data are lost.
          Also, I have been running this web application on weblogic 6.1 are it was working
          fine.
          any help please?
          thanks in advance
          Ahmed
          

"Ahmed" <[email protected]> wrote in message news:[email protected]...
          > you are right, I did some mistake in class decleration
          > which I think weblogic 6.1 was forgative enough and allow it
          > but weblogic 8.1 didn't.
          Glad to help.
          Regards,
          Slava Imeshev
          >
          > AHmed
          >
          >
          >
          >
          > "Ahmed" <[email protected]> wrote:
          > >
          > >Slava,
          > >
          > >I didn't specify a cookie path, also this calls works for first
          > >time, but it fails in the second time,
          > >Futhermore, the error happned before it enter the perform action
          > >method in my struts framework, so i didn't fail in the code I wrote.
          > >(RequestUtils.java is - i think - is one of libraries that comes with
          > >struts)
          > >also, this web application has been working in weblogic 6.1
          > >
          > >I found a link in struts website which is mentioening
          > >this class cast problem, but it refering to weblogic 5.1 not 8.1
          > >http://www.mail-archive.com/[email protected]/msg00284.html
          > >
          > >Ahmed
          > >
          > >
          > >
          > >"Slava Imeshev" <[email protected]> wrote:
          > >>Ahmed,
          > >>
          > >>
          > >>I don't think it has anything to do with weblogic. It's likely you have
          > >>code path that
          > >>handles cookies and this path fails at RequestUtils.java:777
          > >>
          > >>Print a class name at line before 777 to see what is actually passed.
          > >>
          > >>Regards,
          > >>
          > >>Slava Imeshev
          > >>
          > >>"Ahmed" <[email protected]> wrote in message news:[email protected]...
          > >>>
          > >>> Hi,
          > >>>
          > >>> I woudl like to deploy a web application that use struts 1.1
          > >>> in Weblogic 8.1 sp2 (windows)
          > >>> The probelm is when I view a page that has struts code
          > >>> it works fine for first time, but when I try to browse the same
          > >>> or any other struts page again, it gives me this error:
          > >>>
          > >>> java.lang.ClassCastException
          > >>> at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
          > >>>
          > >>> Furthermore, I notced that when I disable cookies,
          > >>> (<session-param>
          > >>> <param-name>CookiesEnabled</param-name>
          > >>> <param-value>false</param-value>
          > >>> </session-param>
          > >>>
          > >>> strust work fine, it seems it like to use URLRewriting instead, But
          > >>if i disable
          > >>> cookies, I have other JSP pages which uses normal "<jsp:useBean ..."
          > >>> and now these pages are suffering becouse all of there session data
          > >>are lost.
          > >>> Also, I have been running this web application on weblogic 6.1 are
          > >>it was working
          > >>>
          > >>> fine.
          > >>>
          > >>> any help please?
          > >>>
          > >>> thanks in advance
          > >>>
          > >>> Ahmed
          > >>>
          > >>>
          > >>
          > >>
          > >
          >
          

Similar Messages

  • I want to use HTTP Cookies but it is disable,what should I do?

    I want to login in a university site but when I enter the ID and PIN ,this massage has been shown: "This system requires the use of HTTP cookies to verify authorization information. Our system has detected that your browser has disabled HTTP cookies, or does not support them."
    I dnt know what to do please help me.

    See:
    * [[Cookies]]
    * [[Enabling and disabling cookies]]

  • Disabling cookies is not 100% working

    Hi!
    I'm trying to force clients using urlrewriting from the server, so in the
    session descriptor, I set the 'URLRewriting Enabled' to true and 'Cookies
    Enabled' to false. Then I test it by setting cookies enabled in browser.
    Seems this way can't guarantee using urlrewriting instead of cookies, cos
    sometimes sessions do get from cookies except that I disable cookies from
    browser. Is it possible to force using urlrewriting from the server? I met
    this problem with Weblogic 6.1, and it seems OK with 5.1.
    Thanks a lot.
    Hattie

    How are you blocking Google from settings cookies?
    Try opening the Permissions manager by typing or pasting '''about:permissions''' in the address bar and pressing Enter. Then type ''goog'' in the search box above the site list. What do you have set for google.com? See the attached screen shot for an example.

  • How to permanently disable click-to-run "feature" on all plug-ins

    How can I permanently disable the click-to-run "feature" for all plug-ins *including* ones that are unsafe, exploitable, etc.?
    I know that this is "unsafe", "inadvisable", a "security risk", etc. however this question has been asked many times and I have not yet found an answer. My reason for wanting to do so is not important and there is no point in questioning it; this is a simple question with what should be a simple answer, and does not require the bickering and arguing that always ensues when someone asks this extraordinarily basic question.
    I want to permanently disable any and all forms of click-to-run for any and all plugins, so that all plugins run without having to be clicked first and show absolutely no warnings whatsoever of any kind. If I don't want to run a plug-in I will disable it.
    How can I do this very simply thing?

    Some outdated plugins (e.g. Flash plugins) are blocked via click-to-play and can be enabled when required.<br />
    It is best to update such a plugin to the latest version to be protected against security vulnerabilities.
    You would have to disable blocklisting to circumvent this and that is not recommended.

  • Disabled Cookies on Browser, BUT How do you tell?

              I know that you can't save a permanent cookie to the user's computer when cookies
              are disabled in a browser. You can set a temporary cookie that will last for the
              session. An example is Weglobic's JSESSIONID cookie.
              First. I was hoping that when I tried to set a permanent cookie, that at least the
              cookie would last for the session so that it gets sent back to Weblogic like JSESSIONID.
              That doesn't seem to be the case. Doh! Any comments?
              Second. Is there a way I can tell if a browser has disabled cookies so that I can
              set my cookie as a temporary cookie instead of a permanent cookie so that it gets
              passed back to Weblogic in subsequent request? I looked at the header information
              and I didnt' see anything.
              BTW. I'm developing on Windows 2000 and deploy to Unix. Using iPlanet 4.1 as the
              WebServer and Weblogic 6.1 SP2.
              Thanks!!! Later...
              - Wayne
              

              Thanks for the Info guys!.
              I got a work around. I have client side JavaScript that checks to see if Permanent
              Cookies are disabled. I then pass the flag to the destination URL. If cookies are
              disabled, then I just set it to a temporary cookie and it's find.
              Got some tips from groups.googles.com. This side use to be the Deja Newsgroups.
              Later...
              - Wayne
              "Vyas" <[email protected]> wrote:
              >
              >If you use encodeurl to encode all your links (in the HTML you throw back
              >to browser)
              >then weblogic is supposed to detect if a browser is able to accept cookies
              >or not
              >(if not then uses URLencoding to put the cookies in the URL).
              >By default URLencoding is enabled in weblogic if cookies are turned off
              >on the browser
              >side.
              >
              >As usual there are a few caveats though
              >1. WL documentation states the because for the first communication, since
              >weblogic
              >does not know that a cookie is being accepted or not , it always encodes
              >the uRL.
              >I don't how this is supposed to be really true or not, because if true the
              >first
              >URL should always have JSESSIONID, I did not find it to be the case.
              >2. Even though cookies are turned off on the browser, I did not see URL
              >encoding
              >happening all the time.
              > There is an explicit option in weblogic to turn off cookies completely
              >(irrespective
              >of what the browser is doing).
              >
              >The bottomline is that your app has to code for urlencoding.
              >
              >Vyas
              >
              >"Wayne Lau" <[email protected]> wrote:
              >>
              >>I know that you can't save a permanent cookie to the user's computer when
              >>cookies
              >>are disabled in a browser. You can set a temporary cookie that will last
              >>for the
              >>session. An example is Weglobic's JSESSIONID cookie.
              >>
              >>First. I was hoping that when I tried to set a permanent cookie, that at
              >>least the
              >>cookie would last for the session so that it gets sent back to Weblogic
              >>like JSESSIONID.
              >> That doesn't seem to be the case. Doh! Any comments?
              >>
              >>Second. Is there a way I can tell if a browser has disabled cookies so
              >>that I can
              >>set my cookie as a temporary cookie instead of a permanent cookie so that
              >>it gets
              >>passed back to Weblogic in subsequent request? I looked at the header
              >information
              >>and I didnt' see anything.
              >>
              >>BTW. I'm developing on Windows 2000 and deploy to Unix. Using iPlanet
              >>4.1 as the
              >>WebServer and Weblogic 6.1 SP2.
              >>
              >>
              >>Thanks!!! Later...
              >>
              >>
              >>- Wayne
              >>
              >
              

  • Disable Cookies in HTTP Destination

    Hi,
    Is there a possibility to disable cookies for the visual admin? Because we want to disable this for the HTTP destination service in the visual admin.
    br
    Steven

    Hi,
    that is a strange error message.
    I don't know how siteminder works but I guess your are using siteminder as SAML identity provider and configured the SAML Login Module in SAP to achieve SSO correct?
    For this purpose you need to define a HTTP Destination which is than used as SAML Receiver.
    What I do not get is the Cookie Problem.
    I don't know exactly how your process flow is but it should be something like
    - Your Client authenticates to your identity provider (let's say siteminder)
    - Any time later you try to access any resource that is configured to support SAML using SAML Assertions (e.g. SAP J2EE)
    - Your identitiy provider will generate an SAML Artifact an redirect you to the destination application (in your case some J2EE Application on SAP that is configured to validate your SAML Artifact (using the SAML Login Module)
    => This initial client request to your identity provider can contain cookies and you cannot avoid this since they are carried and sent by the client (Browser) => I hope this does not cause any problems because it really shouldn't
    Nevertheless:
    Your client request containing the SAML Articat (something like http://<j2eehost>:<j2eeport>/YourApp?TARGET=<YourApp>&SAMLArt=<Artifcat created by IDP>
    reaches the engine:
    Now the Engine creates an HTTP Post Request to your IDP that contains the SAML Assertion (SAML Assertion Request). This Assertion request also contains the Artifact and it does not contain any cookies!!! Your IDP now validates the Requests and sends an SAML Assertion Response to your engine (The SAML Login Module extracts the User from the Response (This one is carried in the NameIdentifier of the SOAP Message) and authenticates the user if it exists on the J2EE Engine
    You finally receive the response of your Destination Application.
    I don't really understand the cookie issue:
    Maybe it really helps if you allow unsecure connections for SAML in SAP J2EE  (You can enable this under Visual Admin > Configuration Adapter > saml > Settings > AllowUnsecureConnections > true)
    so you can use http instead of https. Now use Wireshark or tcpdump or something similar to create a dump of your traffic and analyze it to check where the problem is or maybe send it to me so I can have a look at it.
    Hope this helps
    Let me know if you need further assistance on this (Reward points for helpful answers are always appreciated )
    Cheers

  • Can't sign in to adsense, no enable/disable cookies option in tools

    I can't sign in to adsense, and one troubleshooting suggestion was to make sure cookies are enabled. Went too tools-options-privacy and the cookie section has no option to enable or disable cookies. Cookies seem to be enabled, but how do I know? I could sign in to adsense fine before this last update.

    Seems to be an issue with AAM. You might try uninstalling AAM and re-installing the most updated version. Lets try the below suggestions:
    > Download and install the Adobe Creative Suite Cleaner Tool: http://www.adobe.com/support/contact/cscleanertool.html
    > Extract and run it.
    > Select "e" for English.
    > Hit "Y" for Yes if asked.
    > Select Option 3 for Creative Cloud.
    > Then select Option 1 for Creative Cloud Installer.
    > Download and Install the latest version of Adobe Application Manager from the below link :
    Windows: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4773
    Mac: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4774
    > Try to install the update now and check.
    >If error still persists, Rename the OOBE folder to OOBE OLD from
    Mac: MAC HD/Library/Application Support/Adobe
    Win: C:\Program Files (x86)\Common Files\Adobe\
    > Install AAM again and try to launch.

  • HT201251 I want to use 30  ipads to run kiosk software in my restaurant. Can I use one Apple ID (and one credit card) for all devices

    I want to use 30  ipads to run kiosk software in my restaurant. Can I use one Apple ID (and one credit card) for all devices?

    Alternatively you can always manage your iPads (does not matter how many) with a single apple id and all reporting to your account under "find my device" service. Keeping an eye on all your units. Additionally as you mentioned these are for your Restaurant you may find the solutions offered by this company who creates apps and hardware for this purpose: http://www.spartakioskpro.com
    Additionally if you expand beyond those 30 iPads to say 300 you will want to enable or plan on MDM as your best option to automate every ipad to use the same profile and app and ios configuration while also keeping a close eye on all of them via online MDM services like: https://meraki.cisco.com/products/systems-manager
    Here is a pic

  • HT201250 I run time machine on my iMac using an external hard drive.  I just bought a MacBook Pro and want to know if i can run time machine on it using my wireless network on to the iMac external hard drive

    I run time machine on my iMac using an external hard drive.  I just bought a MacBook Pro and want to know if i can run time machine on it using my wireless network on to the iMac external hard drive

    How do I set up Time Machine to a shared drive on another Mac?

  • Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • I have tried all the steps you listed in your FAQ sextion on enabling and disabling cookies but I am still getting the error message "cookies not enabled" on certain websites. Now what do I do?

    I have tried every step you have listed in your FAQ section for enabling and disabling cookies but I am still getting error messages "cookies not enabled" on certain websites? Why is this and what do I need to do to fix this?

    I have STILL NOT received an answer to my question as of this date. I am VERY disappointed in Firefox support.

  • Browser is not allowing sign in to excite web page. it says my settings are configured to disable cookies and/or javascript. please help

    i just got firefox 4.0, and i tried to simply sign in to myexcite.com, but instead the message "the browser you're using is not allowing you to sign in to Excite. Right now , your browser's settings are configured to disable cookies and/or javascript..."
    Please Help. I am new to Firefox 4.0

    First, create a specific [[Managing profiles|profile]] for Firefox 4.0b8 to prevent interferences between current (Firefox 3.6) and beta (Firefox 4.0b8) versions.
    Then, see [[Cannot log in to websites]].

  • Unable to disable cookies in FF 3.6.10 in some web sites

    Both cookies boxes are unchecked in FF 3.6.8.
    Enter some web sites which over-ride my [no cookies allowed] settings and write unlimited cookies to my hard disk.
    What is procedure to block and avoid these unwanted cookies ?
    In the past my system has received viruses, worms, trojan horses through spam EMail cookies.
    As a result, it is necessary for me to avoid un-necessary cookies, and select only those limited cookies that have come from safe sources.
    Do not have this security difficulty with FF 3.0.10.
    System is using WIN XP, Trend AntiVirus, ZoneAlarm firewall.
    Thank you for your help.

    To see all the History and Cookie options, select: Tools > Options > Privacy > History: Firefox will: "Use custom settings for history"<br />
    See [[Options window - Privacy panel]]
    See:
    * http://kb.mozillazine.org/Cookies
    * [[Cookies]]
    * [[Enabling and disabling cookies]]

  • Why is there no option to "ask me" when a site wants to place a cookie? That is, instead of ALLOWING all cookies unless I have preemptively blocked the site, why doesn't it ask me for permission like older versions?

    I seem to recall, in older versions of FF, I could allow cookies, block cookies or have FF ask me if I wanted to allow a cookie each time a site tried to place one. This meant that I could allow certain cookies from, let's say Yahoo!, while disallowing other cookies from Yahoo!. I found this to be a very useful feature, and I would like to have it back.

    See:
    *Tools > Options > Privacy > Cookies: "Keep until": "ask me every time"
    Be aware that you may need to confirm each cookie if a website wants to store more.
    *CookieSafe: https://addons.mozilla.org/en-US/firefox/addon/cookiesafe/
    *Extended Cookie Manager: https://addons.mozilla.org/firefox/addon/extended-cookie-manager/

  • I want to save one cookie when exiting FF. I want to delete all other cookies.

    I want to save one cookie when exiting FF. I want to delete all other cookies. I have researched all related questions and answers but fail to see an answer to my question. Can "delete all cookies when exiting FF" have an exception?

    Here's some info that may be helpful.
    Installing Snow Leopard: What you need to know
    http://www.macworld.com/article/1142454/install_snow_leopard.html.
    You should get a Firewire connected hard drive and backup your MB's HD to it. That way, if something goes wrong during the installation, you can recover your current sytem, apps and files. After the SL install, you can use the external HD for frequent backups.
     Cheers, Tom

Maybe you are looking for