Serve up Static Content - configuration?

Hello!
How can I configure WEB AS to serve up static files from an external folder? Is there a configuration in WEB AS to map a context to an external folder with static files?
Thanks
/Ray

Hi Ray,
Eddy's reply refers to setting the option on the ICM. In case you don't use the ICM, but just the Web AS Java, you can do that using the HTTP Provide Service. You can either create a virtual host (this is the term on Web AS Java for virtual directory ) and set your external directory with static content as its root directory. You can refer to the <a href="http://help.sap.com/saphelp_nw04/helpdata/en/0b/fbf5a47928f84e8d0beba8371508e6/frameset.htm">documentation</a> for details about the configuration procedure.
Regards,
Ivo

Similar Messages

  • How to configure Apache to serve static content? Please Help

    Hi Guys,
    I have a set of servers that are:
    - Apache acting as a Load Balance;
    - Admin Server;
    - A cluster with 2 managed servers.
    I have a web application deployed on my cluster, but I would like that the static content would be delivered by the Apache.
    How should I do it?
    Thanks in Advance

    Hi Daniel,
    A Reverse Proxy could do this but keep in mind that the primary goal of the RP is to shield your back channel infrastructure IP/access from either Internet or your private network e.g. secure your back channel infrastructure with a Firewall and expose it only to your Reverse Proxy infrastructure; quite effective for DoS type of attack.
    Apache can be configured to do both static content as well as Reverse Proxy.
    Regards,
    P-H
    http://javaeesupportpatterns.blogspot.com/

  • Serving static content from a directory

    Is it possible to configure WebLogic to serve static content (files) from a directory via an HTTP GET?
    What I need is similar to the Apache functionality of publishing a directory by mapping a URL (http://weblogic.server.xx/somePrefix) to a directory on the file-system (e.g. /path/to/some/dir) and allow one to:
    - list the directory content by visiting the URL
    - fetch files by doing an HTTP GET (this would be by clicking on a file in the listing)
    Can one do this without adding a separate HTTP server on the same machine as WebLogic?

    I believe if you created a WEB-INF directory at that location and added a skeleton web.xml file, you could specify that location when you deployed a new application from the admin console. I believe there should be an option to allow listing the directory contents, perhaps somewhere in the server definition tabs.

  • Two SharePoint server Farms using different configuration databases with same content DB's

    Hi everyone,
    I am having strange problem while cloning the environments for SharePoint 2007 farm. We cloned the WFE and DB servers with different names. When the configuration wizard has run pointing to the new DB server for complete the new FARM, The config is pointed
    to the new Database server but the content databases remains same as old. This makes the production and cloned sites pointed to the same content.
    How can this be possible to have a SharePoint farms with separate config DB's and same content DB's. Please advise and now the search service in the production is also broken.
    Thanks keshav,Share point Developer

    Hi,
    This is one reason  why you should always use SQL Aliases when configuring SharePoint 
    Stop the SharePoint Services, you can use Server Manager on the WFE
    From the command line
    Enter CLICONFG
    Highlight TCPIP, Click Enable
    Click on the Alias Tab, and Click Add
    Click the TCPIP Radio Button
    Enter the (Old Database Server Name) in the Server Alias Box
    Enter the (Cloned Database Server Name) Server Name in the Server Name Box
    Uncheck, Dynamically Assign
    Enter Port 1433, and Click OK. Make sure on your new SQL Server that you don't have an inbound rule blocking Port 1433.
    On the new Cloned Server WFE start the SharePoint Services
    Run IISReset
    On The WFE and the App Server. Start the SharePoint Services, you can use Server Manager
    I would normally test this by stopping the SQL Service on the Old Server and login to SharePoint on the Cloned Server...
    Cheers,
    -Ivan

  • Sepration of static content to seprate serve

    I am planning to move all my static content to different server since we have 4 different webserver serving the website on different sub-domain name.
    webfarm web1,web2,web3, web4
    Wat i need is all the page which uses static contents should have the complete address from static.yyyyyy.com. I dont want to hard code this in the jsp file, since in future if we planned to change means it will be great difficuilty to change all the 2k files. Can anyone tell me wat is the good design logic for this. In which layer i can perform this?
    i dont know whether to post in jsp forum or servlet. If i did wrongly , sorry..
    Edited by: arvindwill on Sep 28, 2009 2:21 AM

    Define it somewhere at 1 location (properties file? web.xml file? database?), load it during startup (ServletContextListener) and use it everywhere (using EL).

  • Using GZIP Compressed Static Content

    I would like to have all of the Static Content (HTML, JS, CSS) compressed in advance to improve performance. I already have a compression filter for use on Dynamic Content.
    We have managed to compress all of the static stuff using the GZIP format. Currently we have the files following the naming convention of appending ".gz" to the end of each file as in "MyPage.html" becomes "MyPage.html.gz" in the WAR file.
    I was expecting that WebLogic would recognize this convention and automatically serve the appropriate file when the request came in. This doesn't seem to be happening:(
    Is there a configuration mechanism to make this work, or a different convention for handling this problem?

    Your idea should work, so let's walk through it:
    1. Create a new Cocoa Application project
    2. Create a new Objective-C class called "AppController"
    3. Place the following code in the header file:
    #import <Cocoa/Cocoa.h>
    @interface AppController : NSObject {
    IBOutlet NSPopUpButton *popupButton;
    @end
    4.Place the following code in the implementation file (beware of curly quotes if you cut and paste):
    #import "AppController.h"
    @implementation AppController
    - (void)awakeFromNib
    [popupButton removeAllItems];// necessary to remove "Item 1", etc
    [popupButton addItemWithTitle:@"Test 1"];
    [popupButton addItemWithTitle:@"Test 2"];
    [popupButton addItemWithTitle:@"Test 3"];
    [popupButton addItemWithTitle:@"Test 4"];
    @end
    4. Save, and open the nib file in Interface Builder
    5. Drag an "Object" blue cube into the little Finder window, click on it, navigate to its Identity panel on the inspector, and set its class to "AppController"
    6. Open the Window, which should be blank, and drag in an instance of "Pop Up Button"
    7. To make the menu items from the AppController class appear in the popup menu, do the following:
    Control-click on the AppController object and drag a blue line up to the Pop Up Button in the Window.
    8. Save, build, and run.
    That should be enough to at least get the menu items to appear in the popup menu.

  • Static contents

    A weblogic domain with at least 2 managed servers on it and configured a web
    application to serve
    static contents and it works great.
    When I add more images or htmls or any resources, then only the admin server
    picks it but not the
    managed servers. I have to redeploy the web application for the managed
    servers to see it.
    Does anybody know how setup the web application/managed servers pick up the
    new static resources
    without having to redeploy the web application? I can always use different
    web server for it but it
    increases the complexcity of the configuration for weblogic and apache/iis
    Please provide some idea.
    Thanks
    /selvan

    Selvan,
    Here's the info on how to refresh data files without redeploying. In
    6.1, this functionality is included in the release. For 6.0, I believe
    this tool was added in 6.0 sp2 rp2, but I'm not certain. If the tool
    doesn't exist in the version you have, contact support to get the
    correct service pack.
         -- Jim
    WebAppComponents can be refreshed without having to redeploy the whole
    application. any file that doesn't have classloading implications can be
    refreshed. (also known as static data). Examples of files that can be
    refreshed are: .jsp , .html, .gif, .jpg, .xml, .txt etc. Files that
    cannot be refreshed are class files, like ejb's, or other java classes.
    Data refresh in 6.0:
    In 6.0, there is a separate command line tool:
    weblogic.management.tools.WebAppComponentRefreshTool
    that can be invoked either on the command line, or can be constructed
    from within another java application. For information on how to run the
    tool from the command line, run 'java
    weblogic.management.tools.WebAppComponentRefreshTool' with no arguments.
    public WebAppComponentRefreshTool(String adminServerUrl,
    String username,
    String password,
    String appName,
    String compName,
    String[] jsps)
    username - the authenticated user...typically system
    password - the authenticated user's password
    appName - the name of the application (the mbean name)
    compName - the name of the component (the mbean name)
    jsps - an array of files to refresh.
    the appName, and compName are taken from the entries in config.xml. here
    is an example:
    <Application
         Deployed="true" Name="MyApp"
         Path=".\config\mydomain\myapps\MyApp">
         <WebAppComponent
              Name="MyWebAppComponent"
              Targets="managedServer,myserver"
              URI="MyWebAppComponent"/>
    </Application>
    in this case:
    appName would be MyApp
    compName would be MyWebAppComponent
    Data refresh in 6.1:
    refresh in 6.1 works the same way as it does in 6.0, but it has been
    folded into the weblogic.deploy command. you can still do refresh from
    either the command line, or from within a java application, but you can
    use weblogic.deploy to do it.
    Selvan Ramasamy wrote:
    >
    A weblogic domain with at least 2 managed servers on it and configured a web
    application to serve
    static contents and it works great.
    When I add more images or htmls or any resources, then only the admin server
    picks it but not the
    managed servers. I have to redeploy the web application for the managed
    servers to see it.
    Does anybody know how setup the web application/managed servers pick up the
    new static resources
    without having to redeploy the web application? I can always use different
    web server for it but it
    increases the complexcity of the configuration for weblogic and apache/iis
    Please provide some idea.
    Thanks
    /selvan

  • Anonymous vs session-based static content

    I am running the 7.0 Portal and I am running into a problem where all my static content is being served from within a session context, or not anonymously. This is causing MAJOR performance hits. Eventually, when this app hits production, all static content will be served off of an Apache box, but is there not a setting somehwere that will allow the BEA web server to serve this content anonymously?
    Thanks,
    Justin

    A recent blog on this subject: http://www.extended-content.com/logged-out-of-ucmwebcenter-content-after-opening-an-adf-page/

  • The report server has encountered a configuration error. (rsServerConfigurationError)

    Hi,
        One of the server in my organization running SQL server 2008 reporting services.
    Users are complaining that they are not able to fetch reports, after going through logs its been found that following three errors are coming although reporting services are running & both report DBs are online :-
    Report Server (MSSQLSERVER) cannot load the Windows extension.
    Report Server (MSSQLSERVER) cannot connect to the report server database.
    Report Server Windows Service (MSSQLSERVER) has not been granted access to the catalog content.
    Following is the error when we click on reporting link :-
    The report server has encountered a configuration error. (rsServerConfigurationError)
    We tried restarting Reporting services but still its not working, reporting services & DBs are on same machine.
    Same server was rebooted 4 days ago.
    Can anyone please help here.

    Hi Abhishek,
    According to the error message, it seems that the issue is caused by the account used to connect catalog database does not have permissions to access the catalog content.
    To fix this issue, please refer to the following steps:
    Open Reporting Services Configuration Manager.
    Go to "Encryption Keys" to backup the Encryption Key.
    Go to "Database" tab to click "Change Credentials" to reset the connections.
    If everything is configured correctly but still it didn't work, try to delete encrypted content. Please note that once we delete encrypted content, we cannot recover it. We must re-specify connection strings and stored credentials, and we must activate subscriptions.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Service cannot be started. Microsoft.VirtualManager.DB.CarmineSqlException: Unable to connect to the VMM database. Ensure that the SQL Server is running and configured correctly

    Hi All,
    I am setting up SCVMM 2012 R2 in a production environment. Whenever I restart the SCVMM virtual machine the VMM service doesn't start automatically, I have to manually start it. I checked the VMM logs and in the event viewer i find the below error,
    Service cannot be started. Microsoft.VirtualManager.DB.CarmineSqlException: Unable to connect to the VMM database. Ensure that the SQL Server is running and configured correctly. ---> System.Data.SqlClient.SqlException: Cannot open database "VirtualManagerDB"
    requested by the login. The login failed. Login failed for user 'NXTRA\VMMSVC'. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
    stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean&
    dataReady) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.Sq...
    I added the 'VMMSVC' account as db_owner and sysadmin and also NT_Authority\System with same permissions still the service doesn't start on the start up.
    I googled a lot and I find the threads with the error containing "General failure" but not with the above. Can someone please help me to find out why this error is occuring.
    Thanks,
    Ravi

    It's often only a problem of the service dependencies. SCVMM starts to fast, SQL server on the same machine in not initialized yet. Here are working service dependencies to ensure SQL server is initializes before SCVMM starts.
    You can set the service dependencies directly in regedit (as always: be careful modifying the registry ...)
    Here is the content of a reg file setting the dependency.
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SCVMMService]
    "DependOnService"=hex(7):53,00,51,00,4c,00,53,00,45,00,52,00,56,00,45,00,52,00,\
      41,00,47,00,45,00,4e,00,54,00,00,00,53,00,51,00,4c,00,42,00,72,00,6f,00,77,\
      00,73,00,65,00,72,00,00,00,53,00,51,00,4c,00,57,00,72,00,69,00,74,00,65,00,\
      72,00,00,00,4d,00,53,00,53,00,51,00,4c,00,46,00,44,00,4c,00,61,00,75,00,6e,\
      00,63,00,68,00,65,00,72,00,00,00,00,00

  • Apply Filter to static content

    Hi,
    I am writing a filter very similar to the one outlined in http://developer.java.sun.com/developer/JDCTechTips/2001/tt0626.html#tip2.
    I would like this filter to be applied to all static content on the web server.
    I have found a problem that the filter only gets applied to content stored under the context root of the web module that it is defined in.
    Does anyone know of a work-around to allow a filter to be applied to content outside of its web-module?
    Alternatively does anyone know of a way to store the content which appears at the root of a web module in a location other than its web-module? This is currently unacceptable as the physical path changes every time the module is deployed and graphic designers will expect to be able to upload new content without packaging it in a web-module!
    I have considered adding the filter to the /config/web.xml file however I am reliably informed that this will not be applied to any web-modules and will not be able to share session or context state with other servlets and filters in its own web-modeule.
    I am using SunOne Application Server 7.
    Thanks in advance for any help.

    I don't think filters are really the way to go about this, rather, create a servlet that handles requests something along these lines:
    void service(HTTPServletRequest request, HTTPServletResponse response) {
      // get document root, base directory for all the xml files
      String docRoot = request.getServletConfig().getParameter("docroot");
      // get the document name
      String path = request.getPathInfo();
      // do some checking on path to make sure it doesn't contain
      // '..' or anything like that, throw an exception if it does.
      // create a java.io.File object representing the file:
      File file = new File(docRoot, path);
      if (/*browser is IE6*/) {
        // open the file (using FileInputStream) and copy it to
        // request.getOutputStream()
      else {
        // pass the file through an xslt transformation that outputs
        // to request.getOutputStream()
    }If this servlet is bound to a context called "context1", and the servlet is bound to "xml", requests for eg. /context1/xml/dira/dirb/doc1.xml will result in request.getPathInfo() returning "/dira/dirb/doc1.xml", given that the servlet-mapping element in web.xml is specified correctly (use a wild card: /xml/*).
    And be warned, I just typed this in without trying to compile it, so it probably contains bugs!

  • Wls 9.1 doesn't pick up changes to static content in production mode

    Hi Everybody,
              I'm running wls 9.1 on XP in production mode as a stand-alone server. My web app is deployed in exploded format in an external directory.
              I'm trying to force the server to pick up the changes to static content like JSPs automatically and it's not working.
              1. I've set pageCheckSeconds = 1 in weblogic.xml and even though server picks this setting up it does nothing about it.
              2. I tried weblogic.Deployer utitlity to redeploy just one jsp file and it's not working because it's unable to get the full path to a source file. Can this happen due to application Context Path not being set properly?
              Does anybody come across issues like this?
              Thanks.
              Paul.

    Hi Everybody,
              I'm running wls 9.1 on XP in production mode as a stand-alone server. My web app is deployed in exploded format in an external directory.
              I'm trying to force the server to pick up the changes to static content like JSPs automatically and it's not working.
              1. I've set pageCheckSeconds = 1 in weblogic.xml and even though server picks this setting up it does nothing about it.
              2. I tried weblogic.Deployer utitlity to redeploy just one jsp file and it's not working because it's unable to get the full path to a source file. Can this happen due to application Context Path not being set properly?
              Does anybody come across issues like this?
              Thanks.
              Paul.

  • Static content in iAS 6.5 (for JavaWebstart)

    Hello,
    I'm using iAS 6.5.
    I want to serve a jar file for JavaWebstart in a J2EE App (including a war file)
    That works, but it tooks a very long time before Webstart is loading this Jar and it is fully reloaded every time i access that App from Webstart.
    When I put this jar file into the iPlanet Webserver it is loaded much faster and will not be reloaded every time i access this jar file with Webstart.
    1. Is it possible to serve static content in iAS that Webstart is not fully reloading every time, instead of only checking the header informations for a newer version?
    2. Can you give me a link to an iPlanet documentation about how to handle static content iAS/iWS !
    3. Will be the iPlanet Webserver Settings (e.g. KeepAlive) ignored, when i run Webcontent from the Applicationserver (../NASApp/...)?
    Kinds
    Regards

    JAX-RPC, JAX-M and other JAX-x are tested with JDK 1.3.x and higher. Since iAS 6.5 uses jdk 1.3.1, I think JAX-RPC, JAX-M can be used in iAS 6.5. -Officially, as far as I know, iAS 6.5 does not provide any support for JAX-pack.
    Sun ONE AS 7 fully supports JAX-pack, and it has a tool, XRPCC, (now wscompile and wsdeploy) which generates stubs, ties and WSDLs for the services. Also the same tool can be used to generate the stubs, client side artifacts, from any WSDL file.
    And also JAX-run time provides SOAP 1.1, UDDI v2 Registry access and WSDL support. Interoparability between JAX-Run time and other SOAP 1.1 implementations is also tested successfully.
    There are several third partly tools available from different vendors (around 10-12), you may wish to search for them in google. And with that you may generate WSDL for your Apache SOAP services.
    If you are planning to have a standalone web services client, then you can directly use JWSDP at the client side to communicate with the Apache SOAP services on the iPlanet Application Server 6.5.
    Please get back for any further assistance.

  • DefaultServlet bug? forwarding to static content under WEB-INF

    I've encountered what seems to be a bug in the DefaultServlet in WebServer 7.0u2, when trying to do a requestDispatch->forward to static content (e.g., a .png file) under WEB-INF. In general, I can forward into content under WEB-INF, and my servlet works fine when forwarding to dynamic content under WEB-INF (e.g., a .jsp file), but when I try to forward to static content, a 404 error is sent. The same servlet also works fine if I put the static content outside of WEB-INF. In summary:
    forwarding to /WEB-INF/foo.png responds with error 404 (even though the content exists)
    forwarding to /WEB-INF/foo.jsp works fine
    forwarding to /other-dir/foo.png works fine
    I'm baffled as to why I can't forward to static content under WEB-INF. I have a very simple web.xml file, and no suffix-based mappings, so the only servlet that should be responding to the forward is the servlet container's DefaultServlet. Is there some bug in DefaultServlet? Am I misunderstanding something?

    pl. upgrade to latest update (web server 7 u5 as of now) and see if your problem is still reproduced.

  • Caching static content in ADF

    Helllo ,
    I'm using Jdeveloper 10g ,
    I hope If any one can help me in caching static content in my page " Images and CSS and JS libraries "
    I use The AFC library and the page cach the static content for the same window , but if I open new window the page will load the static content another time is that " browser caching "
    I want to cache this content in the client PC not in page Scope only .
    and If I have miss understanding for caching concept I will be owe to you if you give me the correct concept
    rgds

    Hi,
    the AFC provides server side caching in that the dynamic parts are not re-build if not required. On the client side its the browser that usually takes care of the content caching
    Frank

Maybe you are looking for

  • Letter of credit reports

    Hi, Is there any standard report which gives me the details of LC value,  assigned balance and open value. who is the ship to party and valid from and valid to. Thanks in Advance, Raghava

  • VA03 Services for Object

    Hi Friends, In a transaction ME21N. Goto System->services for Object. If i click on this we will get one menu. But if do same thing in VA03 i am not getting. Please tell me how can i achieve this. I would definitely reward you. Regards Dinesh

  • Photosho filter issues

    I take my raw images into photoshop for enhancing or to creation of a new image. Lately I have been using adjustment layer and filters on my images. The final image are saved or imported into Aperture. Some filters like High Pass aren't displayed cor

  • Can,t quit mail in iMac.?

    I tried to shut down mail and would not ,had to force quit,

  • Address Book Automatic Fill as you type

    A ver versions of the Mac OS X ago, I remember that when I typed a name, address, zip code, etc. into a field in a new contact within Address Book it would automatically begin to pre-populate the field based on data already within Address Book. In ot