Configuration of sessions for deployed servlet, jsp, wdp

Hello,
I wonder how to configure session for a specific servlet. As there are several locations where to deal with session management.
I have found the Security Provider->SessionExpirationPeriod property which is fixed to ~27 hours, this is a general parameter for all security providers.
I need to do it per application, I have then tried to set the session in the servlet descriptor it is not taken into account.
     <session-config>
          <session-timeout>10000</session-timeout>
     </session-config>
The security provider of the servlet is set to SAML authentication.
Thanks for your input on this topic,
Tanguy Mezzano

Finally, it was that parameter.

Similar Messages

  • Wat are all needed to be impoted to run ,deploy servlet,jsp in eclipse

    i want to know what are all needed to be impoted
    to run ,deploy servlet,jsp in eclipse
    reply me
    regards
    saravanakumar

    http://www.eclipse.org/webtools/

  • No SOA configured servers found for deploying

    Hi
    I am very much novice in BPEL. I have created a very small BPEL process and tried to deploy it in Weblogic Server.I get this message in the deployement log:
    [11:55:13 AM] #### Deployment incomplete. ####
    [11:55:13 AM] No SOA configured servers found for deploying the archive file:/D:/JDeveloper/mywork/chapter2/EchoComposite/deploy/sca_EchoComposite_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer
    I checked the entreprise manager (EM) & I discovered that I have no SOA folder ,no soa_infra and no managed server called soa_server1 in my managed servers list!!
    can you help me to fiw this please?
    regards!
    Edited by: 867232 on 7 juil. 2011 05:55

    Login to weblogic admin console and go to section "Deployments". Make sure that application SOA-INFRA is in active state. If it is not then check SOA server startup log to find out any errors which could not let SOA-INFRA deploy. You may refer -
    No SOA configured servers found for deploying
    Regards,
    Anuj
    Edited by: Anuj Dwivedi on Jul 8, 2011 9:41 AM

  • Searching for javax.servlet.jsp.tagext.*

    Hi,
    I am looking for the library which contains javax.servlet.jsp.tagext.*.
    Does anyone know what to download to get this library.
    Thanks,

    hi,
    You can get the javax.servlet.jsp.tagext.*. in servlet.jar.
    To unjar it in linux use the following command
    jar -xvf servlet.jar
    You will get the tagext folder in : /javax/servlet/jsp/
    ullas

  • Retrieve a session outside the servlet/JSP

    Hi,
    I know that we usually use the following code to retrieve the session:
    HttpSession session = request.getSession();
    but what if we don't have the request.
    In my case I want to access the session to save some information before going to my tierP (JSPs + Action beans, ...) to be able to retrieve them after.
    Is the only way to do so would be to pass the session in param to my TierB ?
    Thanks for your help!

    I guess I also have to mention that I don't have access to a database... our databases are on our old mainframe (Cobol), then we are only connecting to the mainframe to get all the info we need, but once on the Java side I need to keep some information in my TierB if possible.
    For more details, I receive 1-9 questions from the mainframe everytime I link to it, but I don't want the TierP to deal with all those questions, then I would like to save them in the session in the TierB and always pass only 1 question to the TierP. When I get back to the TierB, I have to check if there are questions left, if not, link back to the Cobol side, if so, just pass the next question.
    This is a very small summary, but I think that you should have the main idea.
    Thanks again!

  • We want to deploy Servlet/JSP in JServ and call the EJB's deployed in iPlanet App Server 6.0 SP2. How do we make the getInitialContext Call be able to access the EJB's.

    Additionally what configurations do we need to make sure we have on JServ (Third party Servlet container) to make sure that the iPlanet EJB's can be accessed.

    Let me preface my instructions with the comment that this isn't a good idea. Although the J2EE specification allows you seperate your web container from your EJB container, in practical deployments it is a bad idea. The overhead of doing RMI/IIOP calls to an external container as opposed to making inter-JVM calls means that you can expect roughly an order of magnitude less performance than if you colocate your web and EJB containers. (This is why all EJB containers are also web containers, or at least have the provision to install themselves in the same JVM as a web container.)
    That said, if you do not have the option to move the servlets to iAS, you can access EJB's in iAS from JServ the same way that you would from any remote client. Take a look at the following information for more detail:
    Chapter 9 of the developer's guide ( this shows you what changes you need to make to the remote JVM (at JServ) and in the EJB's that you are exposing).
    The RMI/IIOP sample application. This gives you an example of how to access EJB's from outside the container.
    (To answer your direct question, the following code will get the initial context. But if you don't take all of the other configuration steps, this code won't work:
    env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://" + host + ":"+port);
    Context initial = new InitialContext(env);
    I'd also suggest that you approach the task with the following approach. (Assuming that I haven't managed to convince you that this is a really bad idea.)
    1. Get your EJB's working on iAS. Test them with servlet harnesses running on iAS.
    2. Get your servlets working on JServ, if they aren't already.
    3. Create a simple standalone Java application as a test harness for EJB's. Follow the RMI/IIOP instructions until you get this test harness working.
    4. Create a simple servlet test harness in JServ to access your EJb's. Follow the JVM setup instrucitons until you get this working.
    5. Actually integrate the EJB's with your production application.
    I say this because there are about five trillion things that can go wrong in this process. Although the troubleshooting steps in the docs are helpful, I find that it helps to get one thing working at a time. It's very frustrating to spend a day trying to resolve JNDI issues only to find out that you have your CXS configured improperly.

  • Configuring TopLink Session for Logging in JDeveloper 10.1.3.1.0

    Hi,
    I'm using JDeveloper 10.1.3.1.0 to develop a TopLink application. The TopLink Sessions editor in JDeveloper lets you configure a few basic logging options such as "enable logging" and the type of events that are logged (connection information, exceptions, etc.). However it will not let you configure whether you want to log to a file, use the Java logging API, etc. The Oracle TopLink Workbench 10.1.3.0.0 lets you do this.
    When I looked in the session.xml file generated by JDeveloper 10.1.3.1.0 I noticed that the "old" sessions_9_0_4.dtd is referenced. This seems like an old DTD which does not allow more elaborate logging configuration. The Oracle TopLink Workbench 10.1.3.0.0 generates session.xml files referencing a newer DTD or XSD ?!
    I prefer using JDeveloper and not another product besides JDeveloper (TopLink Workbench) and I need to log to custom appenders. Is this possible in JDeveloper?
    Ronald

    Ronald,
    The 10.1.3 JDeveloper only supports the 9.0.4/10.1.2 version of the sessions configuration XML. We have this available in the next major release or preview.
    To access additional configurations I would recommend configuring a SessionEventListener and use the preLogin event to setup these options in code.
    Doug

  • WebSecurity!!  - Checklist for coding servlets,jsp etc.

    HI Friends,
    I need a checklist which can give me detials where I have to concentrate on security related issues like login, cookies, request from user, sessions, .. database sql injection topics ...
    Please give me the checklist related info for websecurity.
    regs
    Kiran

    I think i m using my hands to type..
    kiranand you're apparently not using your brain to think (note, I do still have the hope that you are in posession of one).

  • Maintaining Sessions through Multiple Servlets and Contexts

    Hi,
    I have a webapplication that works like this:
    * User connects to a login servlet on HTTPS
    * Users information is authenticated on HTTPS
    * An object is stored in the session for other servlets to validate the users access
    * Authenticated users are forwarded to an HTTP page where the session is used to make sure they were granted access
    My problem is this....Since I create the session in an HTTPS context, when I am in the HTTP context, I am unable to access the session and constantly get NULL. Is there any way that I can access the session from an HTTP context?

    What you can do is, just login using HTTPS and switch over to HTTP
    and then store data in session.That is true, but what I want in the session is basically a flag on whether or not the user was granted access. I would much rather set all that up on the secure line, and then just access it from the unsecure ones...
    For example, you are creating session using the
    http://testdev:port/index.jsp page.
    If access the same page(with hostname)
    http://10.300.20.18:8080/index.jsp, you can't get the session even
    though both are same web server and same web application. Because the
    browser treats it different sessionI think if you use my above solution with the explicit passing of the jsessionid, you can move from one domain to another and still maintain session. Not positive on that though...

  • Deploying Servlets

    JDeveloper 3.2 Documentation for deploying servlets says the generated files should be placed in webserver and the classpath is to be set.
    I am using Apache HTTP web server. In which folder should I place the generated files and what should be the class path?
    Later what should be the URL to access the servlet from the browser?
    How can access this deployed Servlet from a JSP?
    Thanks in advance,
    Regards.
    Kavita.
    null

    Kavita,
    You should first check the Apache documentation for specific information about Apache.
    In general, you should place the servlet in a directory that is under the root directory for the server. For Apache, I believe it is htdocs under the installation directory (usually Apache/Apache/).
    You would then add this directory to the jserv.properties file as a wrapper.classpath entry. This will then point Apache to that directory.
    To access the servlet from a browser the general format is htttp://webserver:port/YourDirectoryName/servletName
    This should get you started.

  • Deploy servlet with WAR file

    Has anyone successfully deployed servlets using WAR file?I think I did everything right. The WAR file was deployed. But I can't accesss it.
              

    I use .war files for deploying servlets in WLS 6.0 - they are much easier
              than exploded dirs...
              Usually, when I have a problem accessing the servlet once deployed, it's
              almost always the deployment descriptor.
              "Randy" <[email protected]> wrote in message
              news:3b311258$[email protected]..
              > Has anyone successfully deployed servlets using WAR file?I think I did
              everything right. The WAR file was deployed. But I can't accesss it.
              

  • Deploying servlets on the J2EE platform.

    Hello all,
    I have a pretty simple question. Does the J2EE platform have a web server for deploying servlets or do I need to download something to add to the platform to be able to run servlets? I have completed going through the tutorial for developing Dukes Bookstore Servlet. I got it to run and everything is fine. I have developed an HTTP Servlet that I need to run for an application to communicate with. I went through the steps I needed to be able to deploy this servlet through deploytool but I am getting an HTTP 404 error telling me the servlet is not available. Am I getting this error because the J2EE platform is only designed to run it's own example programs, meaning that I need to add a web server to the platform to get non J2EE examples to run through deploytool? Or is there some other reason for this error? If you need to see my HTTP servlet source code let me know and I will post it? Thanks, in advance, for any information you can give me concerning this issue.
    Sincerely,
    Michael Sucena

    Sorry, I should have said "shell variables". They set a number of them in that catalina.bat file. The actual call to java has a line:
    %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy=="%SECURITY_POLICY_FILE%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
    Comment this out. And place an "echo" command in front of %_EXEC_JAVA%. That should output the command the script is trying to run instead of running it (you may have to enclose or escape some of the above in quotes, my DOS scripting has been unused for a while). You should be able to see a typo in the command line being executed.
    Other than that, I am not sure what the problem might be. There is no reason to load a file starting with "-D", as this is a command-line argument for the java executable.
    - Saish
    "My karma ran over your dogma." - Anon

  • Make some functionality at the time of deploying application(jsp/servlet)

    Hi Experts,
    I want to know that, Suppose when ever I am deploying my application or initlizing jsp/servlet page. That time I want to do some operation take example : "At the time of deploying application I want to delete .temp files".
    So what ane where I want to write some functionality.
    If I have to write in xml then in wich tag..?
    And if in servlet/jsp page then where..?
    Thanks in Advance

    You don't program such things. You could use a tool like ANT to do the deployment for you and at the same time you can configure a cleanup task.

  • Deploying the JSPs, Servlets and Java class files

    Hello All,
    I'm very new to the Oracle 9i AS. We are using Version 1.0.2.2.
    How do we deploy the JSPs, Servlets, and Java class files (simple class files, not EJBs)?
    plese give us the procedure and stpes how to deply or the links for the same.
    Thanks,
    Santhosh.

    Hi
    I guess u r running apache-jserv as servlet engine for your jsp and servlets. If its so, jsp files can be run without any additonal configuration by putting the jsp file under document root or any subdirectory and for running servlets u have to add classpath entries for your servlet in jserv.properties file.
    To make sure that your servlet engine is working, try
    http://servername:port/servlet/IsItWorking, if u get success msg that means servlet engine is working fine.
    Hope this will help
    Regards
    Kumaran

  • Deployment error - Missing class: javax.servlet.jsp.jstl.core.Config

    Hi,
    We are using JDeveloper 10.1.3.0.4(SU5) on windows for development of ADF application. We need to deploy the developed application onto Oracle Application Server 10g (10.1.3) which is running on Solaris. We are using BC4J, WAR and EAR deployment profiles in jdeveloper to create the .war and .ear files.
    If I deploy the generated ear on a standalone OC4J server install on my windows PC, it works fine.
    Now when I deploy the generated .ear file onto the Oracle Application Server 10.1.3 through Application Server Control interface and then try to access the jspx pages under our application we are getting following error:
    oracle.classloader.util.AnnotatedNoClassDefFoundError:      Missing class: javax.servlet.jsp.jstl.core.Config     Dependent class: com.sun.faces.application.ViewHandlerImpl     Loader: accaweb.web.accaweb:0.0.0     Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/jsf-impl.jar     Configuration: WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/libThe missing class is available from the following locations:     1. Code-Source: /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar (from WEB-INF/lib/ directory in /oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib)      This code-source is available in loader default.web.defaultWebApp:0.0.0.      at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2051) [oracle/app/oracle/product/10gas3/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@1482257]
    I have confirmed that the .war file inside the .ear file does contain the jstl.jar file under WEB-INF/lib folder. And the jar file does contain the class 'javax.servlet.jsp.jstl.core.Config'
    As a workaround, I found that if I copy the jstl.jar file from default-web-app to my application web-inf/lib folder, things start to work fine. ie copy from: '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar'
    to: '/oracle/app/oracle/product/10gas3/j2ee/home/applications/accaweb/accaweb/WEB-INF/lib/'
    – or –
    Another workaround is to add the '/oracle/app/oracle/product/10gas3/j2ee/home/default-web-app/WEB-INF/lib/jstl.jar' file in the classpath for my web application through Application Server Control setting page.
    Now both of these workaround needs us to perform additional post deployment steps which should really not be required since the jar files is included in the project.
    Has anyone faced this issue? Any pointers in this respect will be a great help.
    regards - rutwik

    Surprise Surprise !
    I just tried deploying the file via uploading it from the Application Server Control UI and it worked fine.
    Till now, I was ftp'ing the ear file from my PC to the server on which Oracle AS is running and was telling Application Server Control to pick form that uploaded location.
    I am still not clear on why it works with HTTP upload and not via the FTP upload?
    cheers - rutwik

Maybe you are looking for