Dreaded redirect loop with tomcat hot deploy

I have an OpenSSO 8.0 installation on a glassfish server, and a Tomcat 6.0.20.1 client installation. I have set Configuration > Servers and Sites > Server > Security > Encode Cookie Value to true. For normal use, it works just fine. However, if I place a war file in the webapps directory, which tomcat recognizes and automatically explodes and deploys, from this point on all of my protected apps give me the redirect loop until I restart tomcat. Has anyone else ever seen this, or know how to fix it? We regularly use tomcat's hot deploy capabilities, and it is a major drawback if we have to cycle tomcat every time we deploy an app.
Thanks.

As an independent test, are you able to deploy and run the ADF Toy Store demo application on the same tomcat with no problems as documented in the ADF Toy Store Demo whitepaper's section on running on tomcat?
http://www.oracle.com/technology/products/jdev/tips/muench/adftoystore1012/readme.html#tomcatsetup
Might help us narrow down the problem.

Similar Messages

  • Problems with a hot deploy

    Hi there,
    I have a problem. I've created a domain called "prueba". Then I start the server
    and everything is O.K. Then I go to EBCC and I create a new portal. The problem
    appears when the hot deploy is running. It appears the following message: Unable
    to add module:prueba to application descriptor for:portalApp. Also, EBCC says
    the problem exists in the file pruebaPortal.portal.
    What's wrong? Anyone can help me? Thanks.

    Hi Pepe,
    This problem has been fixed in SP2. So make sure to get the latest Webogic Portal
    7.0 SP2. The workaround is to copy http://java.sun.com/j2ee/dtds/application_1_2.dtd
    file to c:\ drive and modify application.xml file of PortalApp to refer it, something
    like,
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE
    Application 1.3//EN' 'file:///application_1_3.dtd'>
    Cheers
    Zulfi
    "Pepe" <[email protected]> wrote:
    >
    Hi there,
    I have a problem. I've created a domain called "prueba". Then I start
    the server
    and everything is O.K. Then I go to EBCC and I create a new portal. The
    problem
    appears when the hot deploy is running. It appears the following message:
    Unable
    to add module:prueba to application descriptor for:portalApp. Also, EBCC
    says
    the problem exists in the file pruebaPortal.portal.
    What's wrong? Anyone can help me? Thanks.

  • Muse mobile site has a redirect loop in my subdomain

    I have an existing site which I am working on redoing in Muse, but I wanted to get a mobile version up immediately. I got it working, tests out fine in preview and BC, but after uploading it to a subdomain (m.junebugjam.com) I keep getting a redirect loop with smartphone and tablets. Desktop views it fine, so I know it's something in whatever Adobe uses to detect mobile users. Currently, I just have .htaccess redirecting to BC, but I would prefer to be using my own domain (not too fond of the "Report Abuse" button.)
    Site is: www.junebugjam.com
    Sub is: m.junebugjam.com
    Thanks in advance for the assistance.
    -Scott

    So your desktop and mobile versions are on different hosts? If so you need to add the redirect script to your desktop page if on mobile and you need to direct it to the mobile domain. It looks to me like you have also created the mobile layout in the desktop view in Muse?

  • Cookieless session causes redirect loop when deployed to Azure Website

    I have a website that needs to use cookieless session. The website works fine locally and the session key gets passed into each request url as expected. However, when deployed to an Azure website, the website requests cause a redirect loop by reloading the
    url over and over again with new session keys each time. I've tried setting regenerateExpiredSessionId to false but that does not have any effect. The Azure Website works okay with UseCookies, but I need to use cookieless session for other technical reasons.
    What can be done to resolve this issue or get more insight into why it is happening?

    Hi,
    Disabling the affinity can be done in two ways:
    In your application
    In a site configuration
    Which one did you tried.
    Regards,
    Azam khan
    I'm unmarking this as an answer. In no way does this answer the original question. In my previous reply I stated that I used web.config setting to disable ARR Infinity cookie. This did not resolve my problem. Also, could you please take a minute to describe
    why you think disabling this feature would solve the problem? The original link you posted does not mention cookieless session or give any description of why that would be related to my problem.
    Thanks for trying to help, but unfortunately this has not solved the problem. If you have more details, please provide them.

  • Having issues hot deploying with ebcc in Solaris environment.

    I keep getting an error message when hot deploying a new webapp portal using ebcc.
    The error message reads" Unable to add module. appname to application descriptor for portal app. I check the portalapptools and i see the webapp in the portal management.. I also see that it added this to the database under the Portal table.. It never actually added the webapplication under in the console.. This is where it gets stuck... Basicly the steps that are missing are adding a deployment descriptor and then the webapp.. I manually did it and it works.. the problem after that is that i need to execute sync.sh after i bounce the manage server or else i dont see the webapps under portal management..
    So basicly the 2 questions are:
    1..Why doesnt hot deploying work in unix using X11?
    2.. Why do i need to execute sync.sh everytime after every bounce?
    Thanks,
    Oscar

    Oscar,
    Are you running the EBCC on the same machine as your server? The hot
    deploy mechanism of the EBCC forces you to have the server and the EBCC
    on the same machine. While the files are sync'd to the database, the
    web app files never get transfered. The deployer then is syncing to
    nothing.
    Try running it all on one machine, locally or with a remote display.
    Depending on your window manager some Java Swing applications like the
    EBCC do not always display fonts well remotely but it should still work.
    oscar sumano wrote:
    I keep getting an error message when hot deploying a new webapp portal using ebcc.
    The error message reads" Unable to add module. appname to application descriptor for portal app. I check the portalapptools and i see the webapp in the portal management.. I also see that it added this to the database under the Portal table.. It never actually added the webapplication under in the console.. This is where it gets stuck... Basicly the steps that are missing are adding a deployment descriptor and then the webapp.. I manually did it and it works.. the problem after that is that i need to execute sync.sh after i bounce the manage server or else i dont see the webapps under portal management..
    So basicly the 2 questions are:
    1..Why doesnt hot deploying work in unix using X11?
    2.. Why do i need to execute sync.sh everytime after every bounce?
    Thanks,
    Oscar--
    scott dunbar
    bea systems, inc.
    boulder, co, usa

  • Develope complex WebService with JDeveloper and deploy to tomcat

    Hello,
    I am thinking of developing a complex WebService with JDeveloper and deploy it to tomcat.
    The WebService should retrieve a few "normal" datatypes and a pdf and a few images. I try to store the pdf and the image in an Oracle DB as BLOB.
    My idea ist to create a Package which selects the values, pdf and the image and retrieve them as the output paramter.
    Then I want to create a WebService with the JDeveloper which calls this Package. This WebService should be published on a Tomcat.
    My first question is if that is possible?
    I think there are few problems.
    I searched the forum about deploying a JDeveloper WebService to Tomcat, but I can not find a whole solution which is going to work. I read something about JAX-RPC, but I am new to this topic. So it would be very nice, if anyone could tell me where I can find the solution or post a quick guide to solve that.
    Another question is how I have to decode the images and the pdf to provide those files in a WebService?
    I would be very glad if anyone can help me or tell me where I can find information about that, becaus I am new to this topic!
    Thank you,
    Tim

    Hi,
    does anybody have an idea about that?
    Thanks,
    Tim

  • Hot deployment not playing along with coherence-tx.rar

    I would like to setup my application so that the coherence and tangosol jars are owned by the application. Under this setup it will aid in hot deployment so that the coherence classloader is destroyed along with the application. Using the transaction services requires that I put the tangosol and coherence jars on the boot classpath of weblogic. I could live with this if there is an easy way to tell coherence to clear all caches that I can call from a startup servlet when my application redeploys.
         Is there some other way of setting this up so that hot deployments destroy all caches and coherence-tx.rar can still be utilized?

    In a development environment where classes can change structure it is more semantically correct to destroy all references to the old class structure otherwise you get IncompatibleClassChangeErrors.
         It is also more convenient for us to deploy the application without any external references. It makes setting up a QA server much easier, for example, if we don't have to install coherence and modify classpaths to get it up.
         There is nothing special about the architecture just a standard EAR deployment with all 3rdparty classes packaged into the EAR.

  • Hot deployment problems with weblogic 7.0 sp2

    Hi Guys
    I am trying out hot deplyment of a j2ee application on WebLogic Server 7.0 SP2
    Approach 1
    The application is deployed in exploded ear format from the folder
    d:/work/testbed/ear. The appropriate entry in config.xml looks like this.
    <Application Deployed="true" Name="Testbed"
    Path="D:\tools\bea702\projects\testbed\applications\testbed"
    StagedTargets="" TwoPhase="false">
    <EJBComponent Name="SessionBeans" Targets="myserver" URI="SessionBeans.jar"/>
    </Application>
    Creating or touching the REDEPLOY file in META-INF folder doesnt cause hot
    deployment to occur
    Approach 2
    Copied the ear file to the applications folder. Creating or touching the
    REDEPLOY file in META-INF file caused the application to be redeployed.
    However the weblogic console is constantly spitting out this message.
    Undeploying EJB Component SessionBeans
    <Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
    <Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
    Undeploying EJB Component SessionBeans
    <Sep 29, 2003 9:53:51 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
    <Sep 29, 2003 9:53:52 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
    Undeploying EJB Component SessionBeans
    <Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
    <Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
    It seems that the application is getting undeployed and reactivated every 5
    seconds.
    Questions
    1) Any reasons why approach 1 didnt work
    2) What could be causing this constant undeployment and reactivation
    Thanks for your time
    anand

    I think I figured out what is causing the application to be redployed every 5
    seconds. It seems that if the application is deployed in the weblogic domains
    applications folder you should NOT create a <Application element. Weblogic
    automatically recognizes all applications in this folder and deploys them.
    Removing the application entry (as shown in Approach 1) from the config.xml
    and hot deploying by touching the REDEPLOY file did the trick.
    One question still remains. Is hot deployment only possible when I copy the
    exploded ear to the domain "applications" folder
    Thanks for your time
    anand
    ps : The idea of trying it without the <Application element came from trying
    out hot deployment in Weblogic 8. WLS8 first deploys the application in the
    applications folder, followed by the application configured in the
    <Application element. Since both the applications were essentially the same it
    gave me a JNDIException saying that some entity is already bound with the same
    name. Weblogic 7 however doesnt complain at this point.
    - anand
    In article <[email protected]>, Anand Raman wrote:
    Hi Guys
    I am trying out hot deplyment of a j2ee application on WebLogic Server 7.0 SP2
    Approach 1
    The application is deployed in exploded ear format from the folder
    d:/work/testbed/ear. The appropriate entry in config.xml looks like this.
    <Application Deployed="true" Name="Testbed"
    Path="D:\tools\bea702\projects\testbed\applications\testbed"
    StagedTargets="" TwoPhase="false">
    <EJBComponent Name="SessionBeans" Targets="myserver" URI="SessionBeans.jar"/>
    </Application>
    Creating or touching the REDEPLOY file in META-INF folder doesnt cause hot
    deployment to occur
    Approach 2
    Copied the ear file to the applications folder. Creating or touching the
    REDEPLOY file in META-INF file caused the application to be redeployed.
    However the weblogic console is constantly spitting out this message.
    Undeploying EJB Component SessionBeans
    <Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
    <Sep 29, 2003 9:53:46 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
    Undeploying EJB Component SessionBeans
    <Sep 29, 2003 9:53:51 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
    <Sep 29, 2003 9:53:52 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
    Undeploying EJB Component SessionBeans
    <Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149400> <Activating application: Testbed>
    <Sep 29, 2003 9:53:57 PM IST> <Notice> <Application Poller> <149404> <Activate application Testbed on myserver - Completed>
    It seems that the application is getting undeployed and reactivated every 5
    seconds.
    Questions
    1) Any reasons why approach 1 didnt work
    2) What could be causing this constant undeployment and reactivation
    Thanks for your time
    anand

  • Servlet hot deployment with a webApp

    Hi everybody,
    Does anybody know something about hot deployment of servlets in a web
    application (.war) ?
    I tried many things (setting reloadCheckSecs in properties, in web.xml,
    hot-deploy from console...) but nothing really worked.
    So I have to register a servlet for hot deployment in the properties, but
    then it doesn't belong to the application.
    Thanx,
    Markus.

    I presume you are on 51.
    we do not support hot deployment of webapps in 51. We support this in 6.0
    Kumar
    "M. Hammer" wrote:
    Hi everybody,
    Does anybody know something about hot deployment of servlets in a web
    application (.war) ?
    I tried many things (setting reloadCheckSecs in properties, in web.xml,
    hot-deploy from console...) but nothing really worked.
    So I have to register a servlet for hot deployment in the properties, but
    then it doesn't belong to the application.
    Thanx,
    Markus.

  • Servlet Hot-Deploy with a WebApp

    Hi everybody,
    Does anybody know something about hot deployment of servlets in a web
    application (.war) ?
    I tried many things (setting reloadCheckSecs in properties, in web.xml,
    hot-deploy from console...) but nothing really worked.
    So I have to register a servlet for hot deployment in the properties, but
    then it doesn't belong to the application.
    Thanx,
    Markus.

    Are u saying that WARs are redeployed automatically but not individual servlets,
    or neither?
    Thanks.
    Viresh Garg wrote:
    Currently the automatic hot deployment of a servlet/JSP from exploaded WAR is
    broken. We are in the process of fixing it for next release. You have to
    redeploy your web application right now, for the change to take place.
    Viresh Garg
    Principal Developer Relations Engineer
    BEA Systems
    "M. Hammer" wrote:
    Hi everybody,
    Does anybody know something about hot deployment of servlets in a web
    application (.war) ?
    I tried many things (setting reloadCheckSecs in properties, in web.xml,
    hot-deploy from console...) but nothing really worked.
    So I have to register a servlet for hot deployment in the properties, but
    then it doesn't belong to the application.
    Thanx,
    Markus.

  • Hot deployment of servlet

    hi
    i have compiled the servlet in jdeveloper and set the path to oc4j../../web-inf/classes path;after compiling the class Is it neccassary to shutdown the oc4j container;
    after shutdown the container only i am seeing the effect;without shutdown the container can we see the effect;we can do it Tomcat ;Is there any facility in OC4J ;
    bye
    chaitanya

              Hi, suppose you have the servlet called JoeServlet and registered as joeservlet with an argument, say, a file joe.txt. If you want to 'hot' deploy the JoeServlet you should make sure that a) the servlet's name must be unique b) the servlet's class must be in your servlet classpath (see the properties sheet aside) c) the initial argument, say: joeargument=./joe.txt, must match the the name expected by your servlet (eg. getInitParameter("joeargument")). If you have done correctly WLS must work.
              Joe
              "Jayesh Patel" <[email protected]> wrote:
              >
              >I am trying to hot deploy a simple servlet using weblogic console.
              >
              >I am getting error saying that
              >
              >"Property change error for property "RegisterNewServlet".
              >Servlet could not be loaded or instantiated"
              >
              >I am sure that servlet class I am trying to load is in servlet
              >class path.
              >
              >Any idea what is going wrong here.
              >
              >Thanks.
              >
              >
              >
              

  • Redirection loop detected while opening Exchange 2007 mailboxes through Exchange 2013 OWA page

    Team, in our infra Exchange 2013 CU8 & Exchange 2007 SP3 RU15 running. Exchange 2013 recently deployed but while opening exchange 2007 users mailbox through 2013 OWA getting error "Redirection loop detected". Want to update you few things :
    Public DNS record created as mail.myinfra.in with x.x.x.2 IP and legacy.myinfra.in with x.x.x.3 IP.
    Virtual directory modified mail.myinfra.in for 2013 & legacy.myinfra.in for 2007.
    All the OWA request need to pass through public DNS only no internal DNS record for OWA.
    Through ISA already rule created and tested also like https://mail.myinfra.in/owa giving me 2013 OWA page & https://legacy.myinfra.in/owa giving 2007 owa page. Only problem while opening https://mail.myinfra.in/owa with 2013 mailbox id/pwd working fine
    but with 2007 mailbox id/pwd giving error "Redirection loop detected".
    Appreciate if you can help quickly.

    Hello
    tip: check iis log on both of exch servers and check  owa  application haven't got "HTTP redirect" enabled.
    sorry my english

  • Hot deployment of class files (non-EJB)

     

    Also posting to the servlet newsgroup.
    "Craig Ambrose" <[email protected]> wrote in message
    news:[email protected]..
    >
    I am using WebLogic 6.1 and am interested in using auto-deployment indevelopment
    mode of JSPs and class files that those JSPs rely on. I have a simpleWebLogic
    application that gets deployed using the exploded directory format andwhen I
    modify the JSPs or the class files that they use everything reloadsproperly and
    a newly modified class file will be reloaded the next time the pageutilizing
    the Java class is requested.
    I have a much more complicated application (the one I am really doing workon)
    and I can't get the hot deploy of the class files to take effect. The JSPswill
    reload but I can't seem to cause the class loader to reload any changedclass
    files. If I use the WebLogic Console and un-deploy and then re-deploy theapplication
    then the class files will be reloaded, but I thought that wasn't necessaryfor
    hot deployment. This complex application stores many things in the HTTPsession
    context. I am wondering if that has an effect on the class loader fordependant
    class files.
    I'm pretty sure it is not a configuration issue as I have it working forthe simple
    application. I have the application deployed under the.\config\<domainname>\applications
    directory and am using the exploded directory format with the class filesalso
    exploded in the WEB-INF\classes directory.
    Any insights on dependancies of the hot depployment would be helpful.

  • Hot deployment while running...

    Hi there!
    Does any body have experience HotDeployment while end user are using the application?
    For my self I got a real problem with HttpSession. After hot deployment all
    sessions are invalidate!! I mean "request.getSession(false)" return false. I
    have already carefully read documentation and pointed out that object store in
    session must be serializable. OK it's done. Now what else should I check?
    Thanks!

    redeploying will invalidate a servlet session. this is not a bug, but rather the intended
    behavior.
    if all you want to do is update content (jsp's, html, gif, jpeg, etc) you can use the
    refresh tool.
    it is a light-weight operation, instead of the heavyweight redeploy.
    to use it, please run the command:
    java weblogic.management.tools.WebAppComponentRefreshTool
    (this tool is compatible with 6.0 and 6.1)
    tracey
    "Thierry Giguère" wrote:
    Hi there!
    Does any body have experience HotDeployment while end user are using the application?
    For my self I got a real problem with HttpSession. After hot deployment all
    sessions are invalidate!! I mean "request.getSession(false)" return false. I
    have already carefully read documentation and pointed out that object store in
    session must be serializable. OK it's done. Now what else should I check?
    Thanks!

  • Hot Deploying Servlets from the command line

    Is it possible to hot deploy a servlet from the command line?
              

    Use the mbocutil command line tool located in:
    server root/bin/msg/admin/bin
    You can create a folder with spaces by using quotes like thus:
    ./mboxutil -c "user/Tuser/Test Folder"
    -Chris

Maybe you are looking for

  • TS3276 Trouble with mail running slow

    My mail is running very slowly and it looks as if I have more messages saved and coming in that I believe I actually have.  I also have a message that reads "connection logging enabled" at the top that seemed to appear about a month ago and I don't k

  • WebDynpro configuration steps for E-Recruiting

    Hi, I'm implementing SAP E-Recruiting 6.04. My systems include ECC600, Portal 701, and I already setup TREX 700 and connected to SAP sucessfully. What are steps I should follow to configure WebDynpro ABAP for my E-Recruiting? Also, how would I config

  • TREX 7.0 System AIX 5.3 DB2 Error FCO-00011  The step extractTrexBinaries

    Hi Colleagues, In the process 6 of 12 the installation the trex stopped with this error, FCO-00011  The step extractTrexBinaries with step key |TREX_NW_CI_MAIN|ind|ind|TREX|ind|0|0|TREX_MAIN|ind|ind|TREX|ind|0|0|TREX_BINARY_INST|ind|ind|TREX|ind|4|0

  • BI 4.1 monitoring service disabled

    Hello, An error occurs when I want to go to monitoring part of the CMC : "monitoring service is disabled. Only tests are available". I stop and restart monitoring service without success. We have a BI 4.1 SP04. Do you have an idea to solve this issue

  • Downgrade from Elements 11 to Elements 10

    How do you downgrade from Elements 11 to Elements 10. I have new staff working on a project that was created in Elements 10 and I purchased Elements 11 believing that I would be able to downgrade to Elements 10, before downgrading was just a matter o