Caching static resources of Webapp on WLS8.1?

Hi,
Are there any possibility to cache static resources of Webapp on WLS8.1? Or is the only possibility to use Squid?
BR Mervi

Can you show me the error you receive?
Another simple test would be to deploy your application to a new, empty
server.
You can create a new domain as easy as this:
mkdir testDomain;
cd testDomain;
java weblogic.Server
Type in the username/password that you want and answer 'Yes' when it
asks if you want to create a new domain.
Try deploying your jar to this new domain, and let me know if it still
fails.
-- Rob
Jeff Dooley wrote:
Hi,
I have an jar file under applications which I have deployed fine on WLS 8.1 in the past. I changed the method signature on one of the EJB classes in the jar. One of the parameters now takes a different Java class type. I have recompiled everyone and repackaged the jar but when I try to deploy the jar it gives me an error because the the local interface of the EJB does not have the old Java class parameter type.
I have checked the jar, classes in the jar, and the ejb-jar.xml and weblogic-ejb-jar.xml in the jar and it is looks fine. I have cleaned out my server deployment directories and verified the classpath in case the older jar was in there and everything looks OK. It seems for some reason 8.1 is caching the old ejb-jar.xml or somehow is remembering the old method signature and will not process the updated jar. Has anyone seen anything like this?
Thanks for any help or recommendations

Similar Messages

  • Authorisation of the static resources OAS10g R2

    Hi,
    I have some static resources (folders with html and image files) referenced in the web server of my OAS 10g release 2.
    The alias ‘myalias’ is defined in the oas10gr2/Apache/Apache/conf/httpd.conf
    <IfModule mod_alias.c>
    /myAlias/ “/folder_root/folder_web_ressources/”
    And this alias is secured (SSO – OID – LDAP) in oas10gr2/Apache/Apache/conf/mod_osso.conf
    <IfModule mod_osso.c>
    <Location /myAlias >
    require valid-user
    AuthType Basic
    </Location>
    When I access a file by his URL, the authentification page is display and having a user and a password I can display my page, which is ok.
    Now I need to restrict the access of certain folders to a given role.
    For eg the user accessing www.domain.com/myAlias/customer/c.html must have the CUSTOMER_ROLE and the user accessing www.domain.com/myAlias/owner/c.html must have the OWNER_ROLE.
    All my roles are defined in LDAP, but I don’t know how I can modify my configuration files to make this role verification.
    It is possible to have something like that ?
    <Location /myAlias/customer >
    require valid-user
    AuthType Basic
    PRIVILEGE CUSTOMER_ROLE
    </Location>
    <Location /myAlias/owner >
    require valid-user
    AuthType Basic
    PRIVILEGE OWNER_ROLE
    </Location>
    Thanks for any suggestion,
    Ivat

    Hi again,
    I do it differently:
    In my web application I have created a virtual directory to my static content (which is dynamically updated by another application).
    1. In WEB-INF\orion-web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
    <orion-web-app servlet-webdir="/servlet/" directory-browsing="deny" autoreload-jsp-beans="true" autoreload-jsp-pages="true" persistence-path="./persistence">
    <web-app-class-loader search-local-classes-first="true"/>
    <virtual-directory real-path="/server/folder_root/folder_web_ressources" virtual-path="/resources" />
    </orion-web-app>
    2. This alias is secured (SSO – OID – LDAP) in oas10gr2/Apache/Apache/conf/mod_osso.conf
    <IfModule mod_osso.c>
    <Location MyAppRoot/resources >
    require valid-user
    AuthType Basic
    </Location>
    3. I use a servlet filter where, after the authorisation, I do my ROLE check.
    Web.xml
    <filter>
    <filter-name>Filter_VIRTUAL_DIR</filter-name>
    <filter-class>mydomain.servlet.RoleCheckFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>Filter_VIRTUAL_DIR</filter-name>
    <url-pattern>/ resources/*</url-pattern>
    </filter-mapping>
    This “workaround” do my job. I hope that this can help someone.
    Thanks,
    Ivat

  • Using static resources

    PortalWebAssets is the default static application resources project, which can include static resources like HTML and images.
    At the moment I'm able to use an image defined under PortalWebAssets using something like this
    <af:image shortDesc="my image" id="img1" source="#{preferenceBean.baseResourceURL}/myImage.png"/>
    Now I need to include a html page in a jspx file.
    How can I do it?
    I already tried to use jsp:include but without success.

    Hi.
    You can achieve it using *<af:inlineFrame>*
    For example if you have a sample.html stored in Web Content folder of PortalWebAssers.jpr you can reference it with:
    *<af:inlineFrame source="#{preferenceBean.baseResourceURL}/sample.html"/>*
    Regards.

  • Serve static resources

    Can somebody share their experience of serving static resources lke mpg, avi, swf, pdf, gif resources? how do I configure a static folder within my application context to render all these different resources rather than dropping all these files in the JCOO deployment folder?
    Please share your experience.
    Thanks

    Hi,
    I've found a little method and it work fine.
    Don't forget to reward points
    <u>The method is:</u>
    Create an HTTP aliases in the J2EE AS JAVA.
    1. Create a folder where you want to put your static files :
    ex: c:/folder1
    put your index.html file and other ressources
    2. Create an aliases in the http provider
    Go to Visual Admin Tool.
    Go to your server node -> services -> HTTP PROVIDER
    In Virtual Host tab
    click on default
    then on the right, go to Aliases tab
    in field Alias put the name you want: ex=test
    in field path put the path you have created: ex=c:/folder1
    click on Add button
    click on save properties
    Don't forget to clear cash, some time you have to restart the server.
    Go to :
    http://<your host>:<your port>/test
    It's working !
    I hope it can help a lot of people.
    Don't forget to reward points
    Thanks
    Regards
    Gregory

  • 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

  • Thread with static resources fails in Sun JVM. Why?

    Hi All,
    My applet uses threads to put locks on 2 static resources (a Hashtable and a Vector). It works smoothly in browsers with Microsoft JVM. When i changed browser plugin to Sun's JVM 1.3, the applet failed to run and following exceptions thrown to Java Console continuously:
    java.lang.NullPointerException
    at sun.awt.SunToolkit.postEvent(Unknown Source)
    at sun.awt.windows.WComponentPeer.postEvent(Unknown Source)
    at sun.awt.windows.WToolkit.eventLoop(Native Method)
    at sun.awt.windows.WToolkit.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source) Here is the code:
    Resource declaration:
    public static Hashtable stateTable = new Hashtable();
    public static Vector vtElementOrder = new Vector(); 2 methods to add/remove resource elements
    private static void addElementHashTable(String ObjectName, ViewPanel viewPanel)
            try
                stateTable.put(ObjectName, viewPanel);
                vtElementOrder.addElement(ObjectName);
            catch(Exception _ex) { }
    private static void removeElementHashTable(String s)
            try
                for(; stateTable.containsKey(s); stateTable.remove(s));
                for(; vtElementOrder.contains(s); vtElementOrder.removeElement(s));
            catch(Exception _ex) { }
        }Main method for manipulation
    private static synchronized void performHashTable(boolean flagInOut, String ObjectName, ViewPanel viewPanel)
            if(flagInOut)
                addElementHashTable(ObjectName, viewPanel);
            else
                removeElementHashTable(ObjectName);
        }The performHashTable() method is called at init() and stop() events of the Applet.
    Please note that if I remove "static" from all resources and methods above, the applet works smoothly.
    Please let me know the reason and how to fix it?
    Thanks in advance.
    Chinh

    egads!
    for(; stateTable.containsKey(s); stateTable.remove(s));
    time for thedailywtf.com !

  • Dynamic reload of JSPs, static resources

    Not sure if I have the right forum, but here goes.
    I am migrating from our existing production environment of Oracle iAS 10g to Oracle Fusion Middleware 11g using WebLogic 10.3.5. In the old environment we would deploy a WAR or an EAR and the app server would create an exploded directory for the deployment. It was then possible to update single JSPs or static HTML pages within the WAR by replacing the file in the exploded directory. It was not necessary to redeploy the WAR/EAR or restart the server for the changes to be recognized.
    Is it possible to configure WebLogic 10.3.5 to behave in the same manner?

    Without reading the documentation of that XML format (something which you ought to consider doing), I'm going to guess that a value of zero is a special value meaning "Don't ever reload the resources". So if I weren't allowed to read the documentation and I had to do something, I would change the zero to some positive number.
    I'm allowed to make half-assed guesses here because this isn't a Struts forum (something which you ought to consider finding). So don't be surprised if I'm wrong.

  • Caching / Static Variables

    Can anyone suggest a strategy for caching the results of an expensive operation, and making them available from one invocation of a bpel process to the next?
    I have a Java Embedding Task running custom code to do proprietary authentication, and I'd like to cache the results.
    Any mechanism for getting a handle to something static? Any way to cache something in memory, and access it across bpel processes invocations?
    thanks!
    Mike

    Here's one solution. Clearly a hack, but seems to work for now.
    1- Create a java class to be your static cache:
    package com.uglyhack.Cache;
    import java.util.*;
    public class Cache{
    private static HashMap map = new HashMap();
    public static synchronized void put (String key, Object val){
    map.put(key, val);
    public static Object get(String key){
    return map.get(key);
    2- Compile it, and package it up in a jar file
    2a. Add jar to JDev by putting a reference to it in ProjectProperties/libraries
    2b. Add class to server with Copy/Paste to OracleAS_1/bpel/system/classes/com/uglyhack/Cache.class
    3- Create a Java Embedding task to store or retrieve your static vars:
    String myKey=(String)getVariableData("myBpelVar1");
    String myVal=(String)getVariableData("myBpelVar2");
    com.uglyhack.Cache.put(myKey, myVal);
    and later
    String myKey=(String)getVariableData("myBpelVar1");
    String cachedVal = (String)com.uglyhack.Cache.get(myKey);
    setVariableData("myBpelVar2", cachedVal);
    Message was edited by:
    Mike_(523682)

  • How to cache external resource bundles?

    Hi,
    I am using Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 on Windows 7.
    We have used external resource bundle for our ADF application using loadbundle which extends java.util.ListResourceBundle.
    Is there any way to cache these external resource bundles? and If yes when/how it will get cached?
    We have found following link:
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/appendixa.htm (Section: A.11 adf-config.xml)
    But not sure if it will help for external resource bundles.
    Any pointers will be highly appreciated.
    Thanks
    Vishal

    Hi again.
    To achieve your requeriment you can try next solutions:
    - Add a external path where you are going to let your Resource Bundle in your Manage Server Classpath. For example: /language (into this folder put your baseName folder's and properties file).
    - Build your custom Java Class to load Resource Bundle in a configured classpath or path.
    - Try to do a similar solution like WebCenter Spaces copying your resource bundle in MDS path and updating/getting it with WSLT scripts.
    Regards.

  • Caching "static" Regions - documentation?

    I can seem to location any documentation about the Caching functionality of regions. I have experimented with the settings and noticed if I turn on Caching (to Cached) for regions that are just static HTML or lists things load faster.
    I am wondering if anyone can clarify a few things:
    For region in the caching section there are the following form items:
    Caching (Not Cached, Cached, Cached By User)
    Timeout Cache After (a bunch of times)
    Cache Condition Type (list of conditionals).
    I assume the first one (Caching) is the type of caching that can be done for the region, based on the forums it looks like cached by user is not based on session but rather user id.
    Timeout seems easy.
    But the last choice has me very confused. I assume it means "when should the region be cached" but if that is the case I don't understand how the timeout impacts the caching process.
    I also don't understand what happens if you make choices like:
    Caching: Not Cached
    Timeout Cache After (12 hours)
    Cache Condition Type: Never
    It seems for most of my static regions I am using this:
    Caching: Cached
    Timeout: 12 hours
    Cache Condition: always.
    Thanks.

    Hello,
    Here is the information on caching from the documentation -
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/bldr_pgs.htm#BGBGFJBF
    Basically, the condition determines whether the region should be cached or not (based upon the return result from the condition - true/false). The timeout determines how long that cached page/region should be deemed "current", in other words once the timeout period has elapsed, then the region needs to be dynamically rendered again rather than the cached version being used.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Static resource is not available

    Hi,
    i want to show a static html page as a portal component.
    My html page "my.html" is in a folder "PORTAL-INF/html/".
    I have a AbstractPortalComponent "MyPortalComponent" with following code:
    public void doContent(IPortalComponentRequest request,
           IPortalComponentResponse response) {
        IResource myHtml = request.getResource(
            IResource.STATIC_PAGE, "html/my.html");
        if (myHtml.isAvailable()) {
            response.include(request, myHtml);
         return;
        String url = myHtml.getResourceInformation().
            getURL(request);
        response.write("Resource is not available: <a href='"
            + url + "'>" + url + "</a><br>");
    My html page is not available. What is wrong with my code. Can you help me?
    Regards,
    Matthias

    I solved the problem. The folder "html" has to be under "dist" and not under "PORTAL-INF".
    Regards, Matthias

  • How to add static resource file into the NetBean project

    I have several static data files(such as icons, images and etc.) need to be loaded by the program. How to add them into the NetBean project?
    Thanks

    Try a NetBeans forum. This is the Java Compiler forum.

  • HELP!  Getting static resource path.

    I have a Web Module (aka Web Application, aka WAR file). In the web app, there is an image file, let's call it image.gif. It is at the root directory of the web app. The same directory as the WEB-INF folder.
    Here is my problem. I need to include the full relative URL path of the image file when my Servlet writes it to HTML output. The reason, the servlet may be called from another context, therefore a path relative to the application context would break.
    So, somehow I need to programatically get something like --
    /myApp/image.gif OR
    http://www.xyz.com/myApp/image.gif
    Can anyone please help!!! FYI, I don't know if getRealPath() is the right thing, but if anyone knows better, please help....
    Thanks a lot....

    I created the following utility class to handle this with a few more options. It will let you get either the URI or URL provided that you know the relative path. The protocol (currently only HTTP & HTTPS work), server hostname, port, and context path are all found automatically. Here is... feel free to use it (Sun, this should be in javax.servlet.http.HttpUtils!):
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ContextMapper
    private static final int HTTP_PORT = 80;
    private static final int HTTPS_PORT = 443;
    public static String getUri (HttpServletRequest request, HttpServletResponse response, String relativePath)
    return request.getContextPath() + relativePath;
    public static String getUrl (HttpServletRequest request, HttpServletResponse response, String relativePath)
    if (request.getProtocol().startsWith("HTTP/") == true)
    if (request.getServerPort() != HTTP_PORT)
    return "http://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + relativePath;
    else
    return "http://" + request.getServerName() + request.getContextPath() + relativePath;
    else if (request.getProtocol().startsWith("HTTPS/") == true)
    if (request.getServerPort() != HTTPS_PORT)
    return "https://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + relativePath;
    else
    return "https://" + request.getServerName() + request.getContextPath() + relativePath;
    else
    return relativePath;
    That's it... you can use it from your Servlet or JSP like this:
    ContextMapper.getUri(request, response, "/image.gif");
    ContextMapper.getUrl(request, response, "/image.gif");
    ContextMapper.getUri(request, response, "/jsp/HelloWorld.jsp");
    ContextMapper.getUrl(request, response, "/jsp/HelloWorld.jsp");
    ContextMapper.getUri(request, response, "/servlet/HelloWorld");
    ContextMapper.getUrl(request, response, "/servlet/HelloWorld");

  • How to access static resources in ear without specifing context-root

    Hello, i have a problem with my ear.
    The war's structure is like this:
    ---/jsp
    ---/css
    ---/images/ViewRisposte.gif
    ---/xsl/Request.xsl
    ---/Common/data.xsl
    /error.xsl
    /input.xsl
    xsl files reference css and images files that are contained in css and images dir.
    I can't use the "../" to specify css and images path into xsl and jsp due to security policy setting on the Http server (and I can't change this policy).
    In the ear's application.xml is specified the context root of the module web with the name SABEARWeb
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <application>
    <display-name>SABEARWeb module</display-name>
    <module>
    <web>
              <web-uri>SABEARWeb.war</web-uri>
              <context-root>SABEARWeb</context-root>
         </web>
    </module>
    </application>
    For example with this following code (Request.xsl), how can i replace the "../" notation to access xsl and image resouces without write the context root? How i can insert the images and css references into xsl and jsp files?
    <xsl:import href="../Common/data.xsl" />
    <img align="center" width="20" src="../images/ViewRisposte.gif" id="viewXslRisp" title="Visualizza Risposta">...</img>
    Thanks a lot

    >>As I understand I should change View1 by handling command of button “Edit”, and then View 2 should be displayed, then I change data and then View1 should be updated. How to do it?
    For information about how to handle a command, please refer to my blog post:
    http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/
    You could bind the Command property of the edit button to an ICommand property of VMMain. When this command is executed you could then send a message using an event aggregator or some kind of messenger. Please refer to my blog post for more information about
    how to for example use Prism's event aggregator class to pass events between view model classes:
    http://blog.magnusmontin.net/2014/02/28/using-the-event-aggregator-pattern-to-communicate-between-view-models/
    Andy has written an example of how to use MvvmLight's Messenger class:
    http://social.technet.microsoft.com/wiki/contents/articles/26070.communicating-between-classes.aspx
    The concepts are the same but you will have to download and reference either Prism:
    https://www.nuget.org/packages/Prism/
    ...or MvvmLight: https://www.nuget.org/packages/MvvmLight/
    You then subcribe to this event or message in the main view model and change the value of the CurrentPageViewModel property whenever you recieve an event. Note that the class must implement the INotifyPropertyChanged interface and raise its PropertyChanged
    interface for this to work:
    https://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    This is how you are supposed to communicate between different view model classes.
    Hope that helps.
    Please remember to close your threads by marking helpful as answer and then start a new thread if you have a new question.

  • Static resources outside a WAR file

    Hi, we have packeged our application/components as a WAR file, but due to the nature of our application we continuously get new images (related to news articles). We want to keep these images outside the WAR file. Does anyone have any suggestions to how we can do that?Eirik
              

    Usually "./" at the beginning of a path is unnecessary, since "." means "current directory". Did you mean "../images/update_button.gif" instead?

Maybe you are looking for

  • How to check whether an invoice has been paid or not?

    Hi,     In FI, how should I check whether an invoice is paid fully and also whether it has any residual item? And how should I pay an invoice with some residue? Which transaction I should use and what are the steps to do that? Since I'm new to FI, an

  • How to get PA30/0024 event inform. on the Attendee Training Hist. Report

    In Training and Event management is the standard report S_PH9_46000431 "Attendees Training History available for getting an overview of the eventtypes and events followed or to be followed by an employee. This reports shows only events en eventtypes

  • Install Windows 7 with Bootcamp 2HD setup in a MBP

    Hello Everyone, I have a 2010 MBP with an SSD for my main drive and a rotational 750gig for my secondary "storage" drive. I have windows installed via parallels on the second drive for games. But I have realized that when I play games windows taxes m

  • JCAPS 5.1.3, JMS wrong JMSTimestamp!

    I have a business process with a Java Collaboration Definition, that sends a JMS message through JMS OTD to a queue. External Java Application is the consumer(receiver) of this queue. The JCD sends one message at the beginnig, then it waits for a whi

  • Sorting the content of table at first showing of the table

    Hi WD Experts, I can't find the solution of this very important case Suppose this very simple scenario: I have master-detail relation between two tables and I try to show the content of detail table in some order (ascending order of first column) Als