Multiple webapp timeout

I am working on a website using JSP and Servlets that contains multiple webapps. A user could potentially leave one webapp and spend a large amount of time in another before going back. We would like to find a way to prevent timeout from occurring if this happens. Does anyone have any ideas how we might prevent the timeout in a situation like this? We prefer not to increase the timeout of the webapps to accomodate this situation.
Any suggestions are appreciated. Thanks.

...prevent timeout from occurring... seems to be in contradiction with ...prefer not to increase the timeout...
However...
If all the webapps are running in the same domain, each webapp can see the sessionID related cookie(s) and send requests to other webapp(s) using java.net.URL with including the cookie value.
That way, the target webapp(the one that should not timeout on the end user) will be kept thinking that the end user is active.

Similar Messages

  • Deployment of multiple webapp's within an ear

    I am trying to deploy an ear file with multiple webapps in OC4J, but without success.
    I have build an ear file containing all the webapps of the UIX 2.0 Demo bundle, which I want to deploy as UIX development documentation. The ear and wars are extracted successfull and there is no single message which indicates a problem of the deployed ear.
    When accessing the webapps I get an HTTP 500 Internal Server Error. I always get this error when the http-web-site.xml is configured wrong, so I assume it is not configured in the rightway. Because of the multiple webapps within the ear.
    Here is some code from those files:
    server.xml
    <application name="uixdemobundle" path="../applications/uix20demobundle.ear" auto-start="true"/>
    http-web-site.xml
    <web-app application="uixdemobundle" name="uixdemobundle" root="/uixdemobundle"/>
    Normally this is enough to configure single webapp. Do I have to add more lines to http-web-site.xml for each webapp ? Something like the following for instance or does the above line work recursively.
    <web-app application="uixdemobundlehome" name="uixdemobundlehome" root="/uixdemobundle/home"/>
    <web-app application="uixdemobundledocs" name="uixdemobundledocs" root="/uixdemobundle/docs"/>
    Can somebody help me out on this issue ?
    Regards Michel

    Hi,
    I managed to fix this problem. For those who mite come across the same issue in the future, this is how i did it.
    I put the applets code in the war file under an applet dir. That the the index.html is in the root (of the war dir) and the applets code is in a /applet dir.
    Hence the codebase simply reads, codebase="applet/"
    Cheers
    EnterpriseJavaBones

  • Windows Server 2008 SP2 stops responding as multiple services timeout

    There is another thread open under the "General" section. I was asked to post it here. I have left the other thread open because I believe this is not just applicable to the Remote Desktop Services Role. (http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/94b0d7f7-6a26-4795-8c1f-ffee1ac309aa/)
    Hey everyone,
    I have now seen this issue happen on multiple Windows Server 2008 Terminal server setups. The services that time out are not exactly the same across all the servers, but a number of them are the same on all of them.
    Here are the lists of services that timed out on one of these servers, along with the time it happened.
    80237AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the AudioEndpointBuilder service.
    80307AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the BITS service.
    80237AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the CertPropSvc service.
    80407AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the CryptSvc service.
    80437AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the Netman service.
    80507AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the NlaSvc service.
    80537AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the RasMan service.
    80607AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the Schedule service.
    80637AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the seclogon service.
    80707AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the ShellHWDetection service.
    80737AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UmRdpService service.
    80807AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UxSms service.
    80837AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the WinVNC4 service.
    80851AM - The Terminal Server security layer detected an error in the protocol stream and has disconnected the client.
    80907AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the WPDBusEnum service.
    80938AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the wuauserv service.
    81008AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the ShellHWDetection service.
    In the end, the server has to be restarted for us to access it and for users to connect to it.
    Doing some research, I cam across this KB article (http://support.microsoft.com/kb/972596/), but not sure if it applies to this situation. I have seen
    other people post about this issue, but haven't come across anything that states the cause and resolution.
    Has anyone else faced this or is facing it at the moment?
    Any tips or suggestions would be great!
    Thanks a lot!
    Warm regards,
    Sri

    There is another thread open under the "General" section. I was asked to post it here. I have left the other thread open because I believe this is not just applicable to the Remote Desktop Services Role. (http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/94b0d7f7-6a26-4795-8c1f-ffee1ac309aa/)
    Hey everyone,
    I have now seen this issue happen on multiple Windows Server 2008 Terminal server setups. The services that time out are not exactly the same across all the servers, but a number of them are the same on all of them.
    Here are the lists of services that timed out on one of these servers, along with the time it happened.
    80237AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the AudioEndpointBuilder service.
    80307AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the BITS service.
    80237AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the CertPropSvc service.
    80407AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the CryptSvc service.
    80437AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the Netman service.
    80507AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the NlaSvc service.
    80537AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the RasMan service.
    80607AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the Schedule service.
    80637AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the seclogon service.
    80707AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the ShellHWDetection service.
    80737AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UmRdpService service.
    80807AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UxSms service.
    80837AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the WinVNC4 service.
    80851AM - The Terminal Server security layer detected an error in the protocol stream and has disconnected the client.
    80907AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the WPDBusEnum service.
    80938AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the wuauserv service.
    81008AM - A timeout (30000 milliseconds) was reached while waiting for a transaction response from the ShellHWDetection service.
    In the end, the server has to be restarted for us to access it and for users to connect to it.
    Doing some research, I cam across this KB article (http://support.microsoft.com/kb/972596/), but not sure if it applies to this situation. I have seen
    other people post about this issue, but haven't come across anything that states the cause and resolution.
    Has anyone else faced this or is facing it at the moment?
    Any tips or suggestions would be great!
    Thanks a lot!
    Warm regards,
    Sri
    I have exactly same problem with my two Terminal Servers (Windows 2008 SP2) and I dont find any resolution.Andre Fogaça

  • IIS plugin - please help - how to forward multiple webapps

    I have setup iisproxy and iisforward.dll, and they are working fine for one webapp.
    Now, I am trying to have requests for other webapps too to be forwarded to the weblogic server, but can't figure out a way to do it.
    I am using WL5.1SP8.
    WlForwardPath supports only one path (i.e, one webapp root).
    This seems like a basic requirement to me. If anyone has tackled this, could you please me.
    Thanx in advance,
    Anil

    try the dlls from 6.0sp1.
    thanks
    Jong
    Charles T Hurst <[email protected]> wrote:
    We are using WLS 6.0 and encountered this same "issue" with the distributed
    iisforward.dll. After many hours of searching for a
    work-around, your attachment worked great! How "official" is this DLL?
    Thanks,
    charles.
    Jong Lee wrote:
    "Anil" <[email protected]> wrote:
    I have setup iisproxy and iisforward.dll, and they are working fine
    for one webapp.
    Now, I am trying to have requests for other webapps too to be forwardedto the weblogic server, but can't figure out a way to do it.
    I am using WL5.1SP8.
    WlForwardPath supports only one path (i.e, one webapp root).
    This seems like a basic requirement to me. If anyone has tackled this,could you please me.
    Thanx in advance,
    AnilTry the new iisforward.dll that I attached with this reply.
    1) Stop "IIS Admin Service" from "Control Panel" --> "Services"
    2) copy the iisforward.dll to the appropriate directory.
    3) use "," to separate the wlforwardpaths and pathtrims in your iisproxy.ini
    i.e:
    WlForwardPath=/weblogic/,/webapp/,/console
    PathTrim=/weblogic,/webapp,/console
    thanks
    Jong

  • Multiple webapps under one menu

    I am trying to create a single entry point & login for a
    number of webapps. The front door webapp has a login
    procedure and a menu. The menu controller is a servlet
    which forwards to another webapp like this
    foreignContext = getServletContext().getContext( /foreignWebApp );
    foreignDispatcher = foreignContext.getNamedDispatcher( foreignEntryPoint );
    foreignDispatcher.forward( request, response );
    where foreignEntryPoint is a servlet-name in foreignWebApp's web.xml.
    This successfully loads the foreignEntryPoint and a call to getContextPath
    will return /foreignWebAppDirectory However getPathTranslated()
    returns /foreignWebApp/menu and
    <a href a.jsp> </a> will access /menu/a.jsp.
    Stranger still, if I have a servlet "/menu/control" the server will attempt
    to access
    /foreignWebApp/menu/control
    This is not what I want. I want to leave the /menu webapp's context entirely
    ( while keeping the session and principal ).
    The J2EE spec requires a server-scope login, but how to implement it across
    several webapps.
    Sorry if this is a no-brainer. I haven't seen it in any FAQ

    you could set up an output table which has these columns:
    address_text,
    ALLOWANCE
    DATE
    CERTIFIED
    The Address_text field can be populated from both the Name and the address columns of the original table so there are two output table entries per input table entry.
    Another approach would be to have two separate output tables, one for name and one for address, and use the the hierarchy version of alv to link them together and output them. Check out FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'.

  • Multiple Webapps Single Login  Problem

    Hi,
    I have several web apps that were all developed independently. The problem is whenever the end users go from one to the other they have to log in again. The security setting is set to custom as describe in the Oracle Jheadstart 10g foe ADF Developers Guide (release 10.1.3.2). I have also extended JhsModelService and overwritten the authenticate User to user our own tables for authentication. Is there away to get a signal sign on for all of the applications?
    Thanks
    Colum

    hi Colum
    Maybe this is something you could look at:
    "OC4J Java Single Sign-On"
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28957/javasso.htm
    "The OC4J 10.1.3.1 implementation packages an alternative Java single sign-on solution that does not rely on additional required infrastructure like other Oracle Application Server single sign-on products. This Java SSO, based on the OracleAS JAAS Provider identity management framework ... can be used across Web applications ..."
    success
    Jan Vervecken

  • JAAS Multiple Webapps Single Login

    Greetings
    I have a problem. I have several web apps that were all developed independently. The problem is whenever the end users go from one to the other they have to log in again. Can anyone tell me how to log them in one time and make them be logged in to all my web apps on a single given app server?
    Thanks
    Troy

    Troy,
    you have many options
    1. Use J2EE authentication and define all web applications to authenticate against the same realm (e.g. jazn.com). This way, if using BASIC authentication, all web applications share the same browser based sign-on
    2. Use Oracle Single Sign-On which is supported with the Oracle RealmLogin Module, which also is the default module used for J2EE authentication. This way you can authenticate users against LDAP even if applications don't share the same realm
    3. JAAS, assuming you really want to use pure JAAS for authentication, the most straight forward approach would be to write a LoginModule that works with client side certificates for authentication.
    Note that all single sign-on solutions are session based and require that the applications are called from the same browser session. If you want to have a single sign-on indepently of the browser session, have a look at client certificate based authentication with OracleAs or OC4J 10.1.3
    Frank

  • Is it possible to add a filter to a webapp without declaring it in web.xml

    Hello,
    I'd like to add a filter in my web.xml file, but without declaring it in my webapp.
    Indeed, I have multiple webapps, and I'd like to have a common web.xml file that should be directly included in all the webapps including this package ?
    Is it possible or not ?
    As for JSF, it is possible to add faces-config file by putting it in the META-INF of the package.
    Thanks in advance.
    bgOnline

    Your title and your question are opposites...
    A filter must be specified in a web.xml to be used. That doesn't mean the Filter's class HAS to be in your webapp, it just must be accessible to the Servlet container (you could place it in the common/classes directory or shared/classes directory or even the server/classes directory).
    I've not tried it, but I see no reason why you couldn't declare the filter and filter-mapping in the server's web.xml which would then filter all requests in all webapps.
    HTH.

  • Running multiple instances of same servlet

    I am trying to run multiple webapps off of the same weblogic5.1 instance.
              I have setup the webapps and they work individually, but I need one servlet
              to load at startup.
              I have only been able to do that by including it by name in
              weblogic.properties
              #webApp named
              weblogic.httpd.webApp.demand=d:/stat_forecast/
              #register servlet so it runs on startup
              weblogic.httpd.register.AppInitServlet=com.ai.servlets.AppInitServlet
              weblogic.httpd.initArgs.AppInitServlet=AppConfigFilename=d:/stat_forecast/pr
              operties/forecast.properties
              weblogic.system.startupClass.aiservlet=weblogic.servlet.utils.ServletStartup
              weblogic.system.startupArgs.aiservlet=servlet=AppInitServlet
              This works until I try to add another instance of AppInitServlet for a
              different webApp
              #webApp named
              weblogic.httpd.webApp.supply=d:/supply/
              #register servlet so it runs on startup
              weblogic.httpd.register.AppInitServletS=com.ai.servlets.AppInitServlet
              weblogic.httpd.initArgs.AppInitServletS=AppConfigFilename=d:/supply/supply.p
              roperties
              weblogic.system.startupClass.aiservletS=weblogic.servlet.utils.ServletStartu
              p
              weblogic.system.startupArgs.aiservletS=servlet=AppInitServletS
              The servlet does not run a second time.
              Is there a way to move the AppInitservlet to inside the webApp and maybe use
              the web.xml to start each one individually?
              Thank you for any insight
              John Norton
              Indent Inc
              John Norton
              Indent Inc.
              (Innovative decision technologies, inc.)
              [email protected]
              

    Replying to myself to try and clarify.
              We are trying to run 2 or more webapps, each webapp tryes to call the
              servlet AppInitServlet.
              The servlet will not allow more than one instance to be in a context.
              In tomcat the servlet works to give a separate instance for each app.
              "JohnNorton" <[email protected]> wrote in message
              news:[email protected]...
              > I have sp8 on one version and that does work for the load on startup. One
              > problem solved, thank you.
              > Second part of same problem
              > In tomcat where we were developing, we could have multiple instances
              of
              > the AppInitservlet (for different Apps) and it kept them all separate.
              > In WL51 it starts the first correctly, but does not keep them
              separate,
              > so the second instance does not happen. It is designed so that
              multiple
              > calls do not instantiate (this would normally be within one instance of
              one
              > App).
              > I had thought that if the servlet was load-on-startup from the webApp
              > web.xml file that they would be separate. Any more ideas or clues?
              >
              > Thank you
              >
              > John Norton
              >
              > "Dimitri Rakitine" <[email protected]> wrote in message
              > news:[email protected]...
              > > Try it with the latest service pack - load-on-startup in web.xml was not
              > > supported until sp8 or so.
              > >
              > > JohnNorton <[email protected]> wrote:
              > > > I am trying to run multiple webapps off of the same weblogic5.1
              > instance.
              > > > I have setup the webapps and they work individually, but I need one
              > servlet
              > > > to load at startup.
              > > > I have only been able to do that by including it by name in
              > > > weblogic.properties
              > >
              > > > --------------
              > > > #webApp named
              > > > weblogic.httpd.webApp.demand=d:/stat_forecast/
              > >
              > > > #register servlet so it runs on startup
              > > > weblogic.httpd.register.AppInitServlet=com.ai.servlets.AppInitServlet
              > > >
              >
              weblogic.httpd.initArgs.AppInitServlet=AppConfigFilename=d:/stat_forecast/pr
              > > > operties/forecast.properties
              > > >
              >
              weblogic.system.startupClass.aiservlet=weblogic.servlet.utils.ServletStartup
              > > > weblogic.system.startupArgs.aiservlet=servlet=AppInitServlet
              > > > ---------------
              > > > This works until I try to add another instance of AppInitServlet for a
              > > > different webApp
              > > > #webApp named
              > > > weblogic.httpd.webApp.supply=d:/supply/
              > >
              > > > #register servlet so it runs on startup
              > > > weblogic.httpd.register.AppInitServletS=com.ai.servlets.AppInitServlet
              > > >
              >
              weblogic.httpd.initArgs.AppInitServletS=AppConfigFilename=d:/supply/supply.p
              > > > roperties
              > > >
              >
              weblogic.system.startupClass.aiservletS=weblogic.servlet.utils.ServletStartu
              > > > p
              > > > weblogic.system.startupArgs.aiservletS=servlet=AppInitServletS
              > >
              > >
              > > > The servlet does not run a second time.
              > > > Is there a way to move the AppInitservlet to inside the webApp and
              maybe
              > use
              > > > the web.xml to start each one individually?
              > > > Thank you for any insight
              > >
              > > > John Norton
              > > > Indent Inc
              > > > --
              > > > *************************************************
              > > > John Norton
              > > > Indent Inc.
              > > > (Innovative decision technologies, inc.)
              > > > [email protected]
              > >
              > > > *************************************************
              > >
              > >
              > >
              > >
              > > --
              > > Dimitri
              >
              >
              >
              

  • Sharing portlets across multiple portal applications

    Hello all,
    I have a single enterprise application that consists of several portal web applications. Most of these portal web applications have common portlets within their codebase. Is it possible to share portlet code across multiple web applications?
    Thanks

    No, not possible, in the same way that sharing JSPs and Pageflows wouldn't be possible across multiple webapps. You can, however, have multiple portals within one Portal webapp, and then you could share portlets and portlet resources amongst those portals.
    George

  • RE : Webapps and libraries

    Hi all,
    I assume this is the best place to post this. This may be a silly question but
    a quick response is appreciated. I have an application under Weblogic Server v5.1
    (and the Weblogic Commerce Server v3.2), which has multiple webapps. One of the webapps
    has a number of classes in jar files (in it's WEB-INF lib directory) and a number
    of Tag Libraries in a tlds directory under WEB-INF.
    I wish another webapp to access these Tag libraries and have changed the web.xml
    for this second webapp to point to the tag libaries under the first web app. It is
    not picking them up. Is there anyway I can set up a common web.xml which Weblogic
    will pick up these libraries, so that any webapp in the weblogic instance can use
    them.
    Or do we just need to change our CLASS_PATHs for this?
    Matt.

    Normally you would bundle your taglibs into each WAR that needs it. While
    this may seem wasteful or difficult, it is neither. See ant.
    The only problem occurs if the taglibs are expecting some particular
    behavior, like the use of statics for singleton implementations.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    +1.617.623.5782
    WebLogic Consulting Available
    "Matthew Ryan" <[email protected]> wrote in message
    news:3a87afb9$[email protected]..
    >
    Hi all,
    I assume this is the best place to post this. This may be a sillyquestion but
    a quick response is appreciated. I have an application under WeblogicServer v5.1
    (and the Weblogic Commerce Server v3.2), which has multiple webapps. Oneof the webapps
    has a number of classes in jar files (in it's WEB-INF lib directory) and anumber
    of Tag Libraries in a tlds directory under WEB-INF.
    I wish another webapp to access these Tag libraries and have changedthe web.xml
    for this second webapp to point to the tag libaries under the first webapp. It is
    not picking them up. Is there anyway I can set up a common web.xml whichWeblogic
    will pick up these libraries, so that any webapp in the weblogic instancecan use
    them.
    Or do we just need to change our CLASS_PATHs for this?
    Matt.

  • Sharing static files across multiple WAR files in a single EAR

     

    Is there also a way to share the Session across multiple WARs in the
    same EAR ??
    TIA
    Nikhil.
    Vinod Mehra wrote:
    Yes, we have Virtual Directories for this in 7.0.
    http://edocs.bea.com/wls/docs70/webapp/weblogic_xml.html#1031951
    --Vinod.
    "Sam Smith" <[email protected]> wrote in message
    news:3d3f47cf$[email protected]..
    Hi,
    I have multiple web apps to be deployed to an intranet. I need to have acommon
    look and feel for these multiple webapps.
    I could place the webapps in a single ear file or deploy them without aear file.
    I wanted to know if there is any standard way to include static files likeimages,
    javascripts and css files (for a common look and feel) across multiple warfiles.
    Right now I am planning to keep a war file which just contains all thestatic
    files and point all the jsp pages in the other apps to the static files inthis
    common app. Is there a better way to go about this.
    Thanks,
    Sam

  • Communication between sibling webapps? ( also posted to the jsp forum )

    Hi Folks,
    I'm working with a web application ( with multiple webapps ) in which some requests to some of the webapps ( call them A, because they are all similar ( one for each of our clients ), but may have their own ( possible multiple )specific implementations of an interface that is available across the application ) are handled ( via a RequestDispatcher include( request, response ) ) by a servlet in another webapp ( I'll call it B ), that provides some specialized services ( and receives the Request it is working on ). The include is part of an custom jsp tag, which is used on some of an A's pages, and which always includes from B.
    B's service may need an instance of one of those A-specific implementations, but the service doesn't know whether that is the case, or which specific implementation class to use until it receives the request. The problem is that if the .class file is in A's WEB-INF ( classes or lib ), if B's code uses Class.forName ( or similar ) it can't see the class, because its ClassLoader is a sibling of A's, and not a parent.
    This has been dealt with so far dealt by putting ALL of the implementation classes in B's WEB-INF, but that is ugly, crowded, and confusing ( and possibly risky - a typo in a configuration file could have A1 using an A2 implementation ). So, it would be better to move the implementations to the appropriate A's WEB-INF.
    The question is, what is the best/recommended/cleanest/least-risky ( multiple answers accepted ) way of letting B's service get the specific implementation it needs.
    So far the possibilities that I've heard are ( in no particular order ):
    ---- 1 ----
    a. Have the tag instance get the ClassLoader of the page the tag was on, and add it as an attribute to the request.
    b. The service looks up ( from configuration ) the classname it has determined it needs, as it does currently.
    c. Have the service get the ClassLoader from the attribute, and use it with something like Class.forName( String, boolean, ClassLoader ) to instantiate the implementation it needs, and use it.
    ---- 2 ----
    a. Like 1, except that the tag passes an instance of some factory that was loaded by A's classloader, that will be able to load the implementation whose .class file is in A.
    ---- 3 ----
    a. Have the tag try to determine the implementation that will be needed, instantiate it, and pass it along as in 1 or 2. ( and WHEN it will be needed - the service isn't used on all paths through the tag, though that is also the case for 1 & 2, but there the attribute value can be the same instance each time, while in this case, we probably need a new instance of the implementation )
    ---- 4 ----
    a. Do something else ( please fill in the blank )
    Any suggestions will be greatly appreciated - as well as comments on the issues that might be involved with each possibility.
    ( I apologize for the over use of parentheses, but that's the way I think - early LISP influence )
    Thanks,
    George McKinney

    Most web application servers have a means of sharing common libraries between web applications. In Tomcat you can put the common libraries in the common or shared directory. In Weblogic you can bundle the war files in an ear file and put the APP_INF directory of the ear file. Consult the documentation for your web application server for how it's classloading works.

  • SharePoint Foundation 2013 Data Storage

    I want to install SharePoint Foundation in my company for SharePoint Collaboration purpose. I want to know is there any limitation to store data in SharePoint Foundation. If Yes then how much data (in GB) I can store in SharePoint Foundation 2013.
    Thanks.

    SharePoint use SqlServer for its database and all Sql limitation will apply on SharePoint like MaxFile size is 2GB, Max DB size etc. 
    Please refer Software boundaries and limits for SharePoint 2013 and check for content database section.
    One can create multiple WebApp, Site Collection to segrigate the content.
    please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!

  • Access denied. When trying to upload files into SharePoint with PowerShell

    AM trying to upload a bunch of files into SharePoint using PowerShell. I have a code that works on my local machine, but when I get on the server, it does not. Here is what my block of code looks like
    $webUrl = "http://SampleSite"
    $libraryName = "My Lib"
    $docLibraryUrlName = "My%20ContentType"
    $fileLocation = "C:\test\"
    $contentType = "My ContentType"
    #Open web and library
    $web = Get-SPWeb $webUrl
    $docLibrary = $web.Lists[$libraryName]
    $files = ([System.IO.DirectoryInfo] (Get-Item $fileLocation)).GetFiles()
    ForEach($file in $files)
    #Open file
    $fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
    # Gather the file name
    $FileName = $File.Name
    #remove file extension
    $NewName = [IO.Path]::GetFileNameWithoutExtension($FileName)
    #split the file name by the "-" character
    $FileNameArray = $NewName.split("_")
    #Add file
    #$folder = $web.getfolder($docLibraryUrlName)
    $folder = $web.getfolder($docLibrary)
    write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
    $spFile = $folder.Files.Add($folder.Url + "/" + $File.Name, $fileStream, $true)
    $spItem = $spFile.Item
    #populate metadata
    $spItem["First Column"] = $FileNameArray[0]
    $spItem["Second Column"] = $FileNameArray[1]
    $spItem.Update()
    $fileStream.Close();
    Again, this code works fine on my local machine but doesn't when I move this to the server. When I step through the code, I noticed that when I look at the data returned for my $folder variable in this snippet
    $folder = $web.getfolder($docLibrary)
    It shows the EffectiveRawPermissions to be "Open, BrowseUserInfo, UserClientIntegration" on the server...however, the EffectiveRawPermissions on my local machine is "FullMask". Does this have any effect on the ability of my code to be
    able to upload the files into SP on the server? I have never run into this issue, so am not sure how this makes sense...so I really appreciate any insight. Thanks
    I am getting this error when the code attempts to perform the "Add" function...
    Exception calling "Add" with "3" argument(s): "<nativehr>0x80070005</nativehr><nativestack></nativestack>Access denied."
    At C:\PowerShellScripts\tester.ps1:70 char:3
    +         $spFile = $folder.Files.Add($folder.Url + "/" + $File.Name, $fileStream, $true ...
    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : UnauthorizedAccessException
     ...Please help

    RunWithElevatedPriv basically impersonates the webapp's app pool account, which should have full control over the entire webapp... this would work, but is not recommended for several reasons:
    - first and foremost, you shouldn't NEED to bypass the SP security model
    - second and still important, the app pool may be hosting other webapps as well, so the risk of a bug causing security-related problems within the RunWithElev codeblock is no longer scoped to the current webapp, but also other webapps that share the same
    app pool account.
    - third, same as number two, but for service accounts, and possibly even the farm... not a good practice, but a lot of SP installs aren't configured correctly, so the entire farm may be using one account... now, the RunWithElev is not just a webapp admin,
    not just a multiple webapp admin, but may be able to affect service apps, or possibly the entire farm.
    - fourth, the audit info (created by, modified by) will reference the system account, instead of your account... not a very accurate audit trail in that case.
    If you have a legit need to add the files, you should be able to get the necessary permissions (which is basically just contribute within the library / folder) easily enough.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

Maybe you are looking for