Weblogic cache tag usage experience? issues?
I want to use weblogic custom tag "cache" in the jsp.
I was wondering if anybody used it in high volume internet production environment.
Experience/Issues with
- memory usage
- cache refresh issue while multiple threads accessing the jsp at the sam time
- any lessons learned that you can share.
Thanks.
I want to use weblogic custom tag "cache" in the jsp.
I was wondering if anybody used it in high volume internet production environment.
Experience/Issues with
- memory usage
- cache refresh issue while multiple threads accessing the jsp at the sam time
- any lessons learned that you can share.
Thanks.
Similar Messages
-
I've used the WebLogic cache tag libraries in a portal application - with success. But then I would like to use the cache API from Java code also, and I went looking for documentation. There weren't much documentation on these classes and after doing a grep on weblogic.jar I found a package named weblogic.cache. I tried to look at the API documentation, but these classes weren't inlcuded in the JavaDocs available on e-docs.
What's the reason for not exposing these libraries with API documentation and tutorials/articles on how to use them? Do BEA recommend using third party cache libraries instead? I know that tangsol have a product, but my needs are simple and I don't want to use a product for these simple needs, and I don't want to implement them myself either.
Trond Andersen, Invenia AS, +4798290811I have similar need to cache simple POJO objects in clustered environment. Does WebLogic 8.1 Server offers any caching feature similar to p13n cache in WebLogic Portal server?
Thank you
Vipul -
Synchronization bug in Cache Tag
We have encountered what we believe to be a serious synchronization bug in
the Cache Tag implementation of WL 5.1.0 SP6, under Windows NT 4, using
HotSpot Server VM 2.0. (It also happens when we use the classic VM with the
"-classic" option.) It seems like some kind of problem with a global lock
on the underlying cache. The problem manifests when two or more browser
clients attempt to access a JSP with a cache tag, where the cached value has
not yet been computed. If the system is busy computing the contents of the
tag when the second request arrives, no result is ever returned to either
client and no further cache tag values (even on unrelated pages) are
returned until the server is restarted.
Here is a very simple tag class that illustrates the problem. It simply
pauses five seconds and then prints the end time.
package com.splwg.web.services;
import java.io.IOException;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.TagSupport;
public class TestTag extends TagSupport {
public int doStartTag() throws JspException {
// Pause 5 seconds
long start = System.currentTimeMillis();
long end = start + 5000;
while (System.currentTimeMillis() < end) {
JspWriter out = pageContext.getOut();
try {
out.print("Done - " + end);
} catch (IOException e) {
return SKIP_BODY;
Here is a JSP page to drive it:
<%@ taglib uri="taglib.tld" prefix="wl"%>
<%@ taglib uri="test.tld" prefix="test"%>
<html><head><title>Test tag</title></head>
<body>
<wl:cache timeout="20s">
<test:test/>
</wl:cache>
</body>
</html>
And here is the test.tld file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>test</shortname>
<tag>
<name>test</name>
<tagclass>com.splwg.web.services.TestTag</tagclass>
</tag>
</taglib>
To manifest the problem, start a fresh instance of WebLogic and have two
browsers (nearly) simultaneously attempt to access the page. The server
never returns to either browser, and no other page that contains a cache tag
will return. However, WebLogic is not dead; static pages or JSP files
without cache tags still work.
The problem will not manifest once the cache is safely loaded, e.g. by
having only one client make the initial access (in this case the second
client cannot attempt to access the JSP for five seconds). Further, we
observe that once the cache value has gone stale, the first new request
forces a re-read, but other concurrent requests receive the previously
cached value. Clearly this technique doesn't work when the cached value has
not yet been populated, such as when the server has just been started.
Has anyone else seen this problem?
Felix Hack
[email protected]
Before you put in that effort...
This is experimental so do it with a copy of the project.
With the copy project closed, delete the eHlpDhtm.js and the
projectname.pss file.
Copy the eHlpDhtm.js from the new project you created. Open
the project the the pss will get rebuilt.
No scientific reason for doing that, just something that is
minimal effort and worth a try.
If it fails, go back to the recreation plan! Do let us know
if it does work. -
Cache tag exceptions and deadlocks
Weblogic 6.1 sp2 on W2K and Solaris
If an un-caught Exception is produced from code with-in a cache tag, then the
cache for that page will become locked until server restart
This can be tested by throwing an Execption and displaying (using a seperate page)
all objects in the application, the cache with the Exception will be displayed
as xxx.lock
This can be avioded by catching all Exceptions
Gareth
"Christian Corcino" <[email protected]> wrote in message
news:3b5e3776$[email protected]..
> I do not quite understand the purpose of the keys in the cache tag,
> what are they used for.
> These are the different keys :
> parameter.key | page.key | request.key | application.key | session.key
>
> Can any one give me an example of when and how to use these keys,
These are logical sub-keys you can use to distinguish two tags that would
otherwise resolve to the same cached value. It helps prevent "overloading"
the cache name with disjoint information needed to distinguish cache
entries.
For instance, our application supports multiple languages and uses a page
variable called "language". Assume we want to cache the computed contents
of a select element according to the user's language:
<wl:cache name="selectValues_foobar" key="page.language" timeout="30m">
[code to compute select values omitted]
</wl:cache>
This lets us use one name to describe the particular dataset while still
allowing for independently cached values for differents values of
"language".
Felix Hack
[email protected]
-
API to flush cache tags?
We plan to use the new cache tag supplied with 5.1 SP6. We've been asked
whether there is a programmatic way to flush the cache. Has anyone found a
way to do this? In lieu of such a facility we plan to set the cache to
timeout more often than we might otherwise.
Felix Hack
[email protected]
Did you try this:
<jsp:include page="a.jsp?_cache_refresh=true"/>
<jsp:include page="b.jsp"/>
w cheng <[email protected]> wrote:
> However is there a way to just force refresh an included
> JSP ? The following is sample:
> test.jsp
> --------
> .....
> <jsp:include page=a.jsp>
> .....
> <jsp:include page=b.jsp>
> .....
> Inside a.jsp and b.jsp, there are wl:cache tags. My question
> is how to force refresh the cache content of a.jsp but not
> affecting cache inside b.jsp ?
> Thanks!
> Dimitri Rakitine <[email protected]> wrote:
>>I think it works similarly to 'key' cachetag parameter - it searches
>>parameter,...,application,session for cacherefresh=true and invalidates
>>the
>>cache if it finds it, for example:
>>
>>test.jsp:
>>
>><%@ taglib uri="taglib.tld" prefix="wl" %>
>><HTML>
>><BODY>
>>Current time is:
>><wl:cache timeout="2h">
>><%= System.currentTimeMillis() %>
>></wl:cache>
>></BODY>
>></HTML>
>>
>>and http://localhost:7001/test.jsp will show cached time and you can
>>force refresh by calling it like:
>>http://localhost:7001/test.jsp?_cache_refresh=true
>>
>>I guess in a similar way you can put cacherefresh=true to the request
>>parameter, attribute, session or servlet context.
>>
>>Felix Hack <[email protected]> wrote:
>>> Could someone provide an example of flushing the cached data for a
>>cache tag
>>> for an entire application? I don't understand what kind of entity
>>> cacherefresh is (see below). Here is the relevant extract from the
>>WL
>>> 5.1documents:
>>
>>> "You can force the refresh of a cache by setting _cache_refresh to
>>true in
>>> the scope that you want affected. If you want all caches to always
>>refresh,
>>> put it in the application scope. If you want all the caches for a user
>>to be
>>> refreshed, set it in the session scope. If you want all the caches
>>in the
>>> current request to be refreshed set it as a parameter or in the request."
>>
>>> --
>>> Felix Hack
>>> [email protected]
>>
>>Dimitri
Dimitri
-
Hi,
it´d like to know how to use the ojsp-cache-Tags with Oracle Reports. These tags are mentioned in some documentations but there is nowhere an example how to use that tags.
thanks in advancehello,
they should be documented in the JSP area here on OTN. they are not directly related to Oracle Reports, but an extension that oracle provides to the JSP standard.
thanks,
ph. -
Object passing to weblogic JSP tags
Hello everyone
I was wondering if I can pass a java object to a weblogic jsp tag
for example if I select a content object with id "newsItem"
<cm:selectbyid contenthome="com.beasys.commerce.axiom.document.Document"
contentid="<%= contentId %>"
id="newsItem" />
can I pass newsItem as a variable to the next tag
i.e. instead of writing it
<cm:printdoc id="newsItem" />
I write it
<cm:printdoc Id="<%= newsItem %>" />
This results in an compiler error if the object is passed to Id that is
waiting for a content instance, while if it is passed to contentid (as in
the first
script) then it works fine, as this is waiting for a string.
Is it possible to pass an object to the "id" in the jsp script, and if not,
is there a work around it that enables the content selection logic to be
seperated from the display.
Thank you
May
Oh...i put quotes around the values and that fixed it.
<%@ page language="java" session="false" %>
Happy Holidays,
Brian
"Brian Williams" <[email protected]> wrote in message
news:[email protected]..
> Hello,
>
> I have a JSP that does something strange: When I look
> at it under Explorer it looks fine but under Netscape
> it has this at the top of the page:
>
> <%@ page language=java session=false %>
>
> Actually, with Explorer you can see it in the view
> source. What's up with Weblogic? It seems that
> it failed to parse this JSP tag.
>
> Thanks,
> Brian
>
>
>
-
Hi All
Please let me know how to clear the Weblogic cache folder (ie. <bea_home>/user_projects/domains/<app_domain>/servers/
<app_name>/tmp/_WL_user) upon each restart of the server?
I am using Weblogic 9.1 and application is deployed using
exploded mode
Thanks.We have seen that error as well. When using entity beans, we could do some creates, but then we would get the Cursor error. It would happen sporadically.
IBM now has better Type 4 drivers with version 8.2, we are having better luck with them then with the BEA drivers. -
Usage Experience based on Screen Size 13" versus 15" Macbook Pro
How has your usage experience been when using the 13" macbook pro?
Have you wanted a larger screen (whether temporarily or permanently) ?
None of the time
Some of the time
Most of the time
All of the time
I currently have a 13" mid-2010 apple macbook pro and while the portability is fantastic for me and I love having it around for entertainment and casual use, the usage for working on spreadsheets (i'm working on becoming a bean counter) and other apps like omnifocus and general usage feels less than what I wanted.
The apple experience I had and liked wanes quite a bit for me due to the strain of looking at a smaller screen (i compensate by using a notebook riser).
I wish for a 15" size with the weight of a 13" macbook pro OR macbook air for that matter. Meanwhile, I am going to have to tolerate this aspect of the experience. Thoughts, folks?Not exactly what you were asking but ...
My work PC (cheap people) is a 14 in. My personal MBP is a 15 in. I *NEED* a second external display to deal well with my work PC, and the 15 in MBP seems very large and very usable.
You asked 13 vs 15 ... I gave you "14 in is even too small".
As to weight, my 14 in HP laptop feels as heavy as my 15 in MBP.
Final verdict: 15 in MBP.
modified as eww has responded: If you use it as a portable system often with no access easy access to an external drive, 15 in. Else eww is correct and save the money for other purposes.
Final correction: I play with programming development IDEs. These have many subwindows so I much prefer screen space -- I am biased. -
WebLogic 10: Custom Tag type conversion issue
I have a tag file wherein I define an attribute to be of type "mypackage.SuperClass". At runtime this tag gets passed an instance of "mypackage.SubClass" where SubClass is a sub-class of SuperClass.
Now this should and does work fine in WebLogic 9.2 but in 10 it gives this error:
Cannot convert <toString output of SubClass> of type class mypackage.SubClass to class mypackage.SubClass I appreciate any help to resolve this issue.
Thanks,
KeyurThis table has about 2 million rows.There is a date field in the table which comes as a 'nvarchar' in sql .When i try to convert it to a 'datetime' , i get an error as operation timed out..
Refer below example.
declare @x datetime
set @x = '1/01/2006 12:00:00 a.m.'
-------BELOW ERROR WILL BE DISPLAYED
Msg 241, Level 16, State 1, Line 3
Conversion failed when converting date and/or time from character string.
Rather the format of datetime should be,
set @x = '1/01/2006 12:00:00 AM'
WORKAROUND,
declare @x datetime
set @x = REPLACE('1/01/2006 12:00:00 a.m.','.','')
Regards, RSingh -
Cache memory usage of Hyperion Planning, Workspace and Financial Reporting
We have installed Hyperion Planning, Workspace and Financial Reporting in one single server and we would like to know is there any cache memory setting can be fine tuned to improved the overall online performance of the system.
How can we control the memory usage of individual user logged into Workspace and Hyperion Planning? And if users generate a large size report in Financial Reporting, should more memory be allocated to the user so as to speed up the report generation speed?
Thanks in advance!Our onsite consultants told us that as we have many web forms and some web forms contains lot of cells, the compiled Hyperion Planning application is quite large (> 1GB) and sometimes may have "out of memory" problem. We just wonder we are using 64bit version of Windows 2003 we should have a much larger memory address space. How can we improve the "out of memory" issue?
Or Hyperion Planning is still a 32 bit application? -
Usage type issue with PI upgrade from 7.01 to 7.11
Hi guys,
We are currently performing an upgrade on our PI system.
We are upgrading from PI 7.01 to PI 7.11 and we've come cross an issue during the prepare phase of the install.
An error has occurred during the execution of the CHECK_SUPPORTED_SOURCE_USAGES phase.
This upgrade doesn't support upgrade of sap.com/MI usage detected on the source system.
You can find more information in the log file /usr/sap/PI3/upg/java/log/CHECK_SUPPORTED_SOURCE_USAGES_SSU_01.LOG.
Use the information provided to troubleshoot the problem. An SAP Note may provide a solution to this problem. Search for SAP Notes with the following key words: com.sap.sdt.j2ee.phases.PhaseTypeCheckSupportedSourceUsages com.sap.sdt.j2ee.tools.check.NegativeResultException This upgrade doesn't support upgrade of sap.com/MI usage detected on the source system. CHECK_SUPPORTED_SOURCE_USAGES INIT PREPARE NetWeaver Upgrade SAPJup Java Upgrade
When reporting problems to SAP Support, attach the trouble ticket file /usr/sap/PI3/upg/java/log/TroubleTicket_01.txt to your message.
We've looked through the main upgrade notes and they mention which usage types are supported, but they do not mention explicity what usage are not supported, and how to proceed with the upgrade if your system does have one of these non-supported usage types.
Considering our system does contain usage type MI, does this mean that we cannot upgrade our current PI system to 7.11?
Please help!
Thanks,
StephHello
Please see note #1247043 Release Restrictions for EHP 1 for SAP NetWeaver PI 7.1 - section "Upgrade: source system must be a dedicated PI system".
It is not possible to upgrade an existing system with the usage type MI. Even if you delete the usage type MI (if this is possible) the upgrade will not be possible.
Regards
Mark -
I have had some issues with importing tagged text. In my workflow i get some data converted to tagged text, no problems, special characters are also converted to ASCII entities.
Everything works on my machine, but as soon as it is imported on another machine, the special characters are gone.
I have located the issue, that my entities are lowercase (e.g. ë = <0x00eb>), and by making it uppercase (<0x00EB>) it works.
What can be the difference on the machines? Is it an InDesign thing, or is it a CPU thing? The only difference on the machines are that mine is a Mac with intel processor, and the other is a G5.Oops -- the smiley face in the code should be changed to semicolon close angle (greater than sign). Jim
-
JSF 1.2 and Weblogic 10.3.6 compatibility issue
Hi All,
Our application have been developed in JSF 1.2 and spring DAO. We have deployed it on Weblogic 10.3.6 X86 server.
We are facing an issue like on page load data are populated in the page. Say for example on page load company list getting populated and displayed in the drop down.
If we do any operation like select a company code or submit the page all the data are flushed out from the pages. After that navigation of pages also doesnot work.
We neither get any logs nor exception.
And i am not getting this issue in my local weblogic server - 10.3.5
We are struggling with this issue for more than 10 days now and its critical time for us to fix it ASAP.
Thanks,
SeethaHi kalyan,
We are not getting any logs. the control is going to javascript but the page get refreshed and all data are just vanishing.
We have tried to add below entries in weblogic-application.xml
<wls:prefer-application-packages>
<wls:package-name>com.sun.facelets.*</wls:package-name>
<wls:package-name>com.sun.faces.*</wls:package-name>
<wls:package-name>javax.faces.*</wls:package-name>
<wls:package-name>javax.servlet.*</wls:package-name>
</wls:prefer-application-packages>
No change.
Tried this
<wls:library-ref>
<wls:library-name>jsf</wls:library-name>
<wls:specification-version>1.2</wls:specification-version>
<wls:implementation-version>1.2</wls:implementation-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>
No Change.
tried this
<wls:prefer-application-resources>
<wls:resource-name>APP-INF/lib</wls:resource-name>
</wls:prefer-application-resources>
No Change
Anything we missing here. Why it is working in my local server and not in Integration server?
Kindly help us.
Thanks,
Seetha -
JSF 1.2 - Weblogic 10.3.6 compatibility issue
Hi,
Our application have been developed in JSF 1.2 and spring DAO. We have deployed it on Weblogic 10.3.6 X86 server.
We are facing an issue like on page load data are populated in the page. Say for example on page load company list getting populated and displayed in the drop down.
If we do any operation like select a company code or submit the page all the data are flushed out from the pages. After that navigation of pages also doesnot work.
We neither get any logs nor exception.
And i am not getting this issue in my local weblogic server - 10.3.5
We are struggling with this issue for more than 10 days now and its critical time for us t ofix it ASAP.
Please some one kindly help us hereHi,
I had the same problem with the migration from WLS 10.3.5 to WLS 10.3.6.
I did some testing with different jdevelopers in combination with WLS 10.3.5 and 10.3.6.
The jdeveloper 11.1.2.3.x is only using the JSF 2.0 library, which is backwards compatible with JSF 1.2.
After deploying with WLS 10.3.6 the ADF library 11.1.1.6.0 and the patches 13656274, 13656372.
With the following instructions
I was able to Run my application without the problems that I had with JSF 1.2 and the JDeveloper 11.1.1.6.0.
best regards,
Remco C.
Maybe you are looking for
-
How to get Subtotal text in ALV using OOPS
hi, Can any one pls help me out getting <b>subtotals text</b> in ALV using OOPS concepts....Pls provide me if any of u have sample code for that...... my code: data:gr_grid_d0100 type ref to cl_gui_alv_grid. data : gr_events_d0100 type ref to lcl
-
How do I set up starry night with MacBook pro on the USB port with a serial/USB adapter?
How do I set up a MacBook Pro running Lion to interface with Starry Night software? My telescope is a Meade LX200GPS with a serial input. I have tried using a Radio Shack USB/Serial adapter which worked when I used a Windows 7 laptop but does not wor
-
apple tv 2 - root password has been changed to non default. I need to access apple tv 2. how do i get access with a forgotten password
-
Hi Friends I am doing one scenario in XI and getting an error can anyone please help me The scenario which I am trying to achieve is this: A Web Client using SOAP protocol calls the BAPI "BAPI_USER_GET_DETAIL" in R/3. Conf
-
I just bought a phone from Verizon. To put music onto the phone, I am suppossed to have windows XP which will then allow me to run Windows Media Player 10. Can I do this?? I plug my phone into the computer with a usb cord that specially fits the phon