Info on JSP caching in WebLogic 5.1
Hi,
I found your name in the Weblogic newsgroup and hence decided to post this
question to you. Hope you do'nt mind my asking it.
I would like to know something about caching of Java Server Pages in WebLogic
5.1. How effective is it for developing and deploying applications on WebLogic
Server ? Has caching in WebLogic been tried out extensively in deploying applications
before ? How successful have they been ?
In particular, I would like to know if any deadlock occurrs in Java Server
Page caching in WebLogic.
Also can I force a cache to refresh within the timeout period (i.e., before
the elapse of the timeout for the particular cache) ?
Also, how is the async attribute used in <wl:cache> tag ? Is there any performance
bottleneck occurring due to its usage ?
I would love to have answers to all my questions. However even if I get some
answers it will be highly appreciated.
Regards,
Sumantu
In WebLogic 6.0 register each jsp in the web.xml with a <servlet-name>, <jsp-file>
and <load-on-startup>. For example:
<web-app>
<servlet>
<servlet-name></servlet-name>
<jsp-file></jsp-file>
<load-on-startup></load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name></servlet-name>
<url-pattern></url-pattern>
</servlet-mapping>
</web-app>
The optional value of load-on-startup element must be a positive integer indicating
the order in which the servlet should be loaded.
In WebLogic 6.1 set the precompile parameter in weblogic.xml.
<jsp-descriptor>
<jsp-param>
<param-name>
precompile
</param-name>
<param-value>
true
</param-value>
</jsp-param>
</jsp-descriptor>
Vaibhav wrote:
> This solution is with web.xml, if I am
> using weblogic.properties only and no web.xml, How do I specify precompile=true ?
Similar Messages
-
Hi,
I have several questions regarding this topic:
1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any known
problems ?
2) Does Weblogic come with any tag libraries (for loops, if, etc) and where
can I get them ?
3) Are there any tag libraries out there (JRun, for example) that have been
successfully run on Weblogic ?
Any help would be much appreciated.
Thanks,
Jamie
As there seems to be general interest, a link would probably be a great
help.
Regards
Daniel Hoppe
-----Original Message-----
From: Michael Girdley [mailto:[email protected]]
Posted At: Friday, August 25, 2000 8:03 AM
Posted To: jsp
Conversation: Custom JSP Tags for Weblogic
Subject: Re: Custom JSP Tags for Weblogic
Please see the documentation:
http://www.weblogic.com/docs51/resources.html
Michael Girdley
BEA Systems Inc
"Jamie" <[email protected]> wrote in message
news:[email protected]...
> Update
> =======
>
> Weblogic Portal has some Tag libraries. I've downloaded the trial
version
> of
> the Weblogic Commerce Server. How do I get the tag libraries and use
them
> on WL 5.1 ?
>
> Answers to original post still wanted
>
> Thanks,
>
> Jamie
>
> Jamie <[email protected]> wrote in message
> news:[email protected]...
> > Hi,
> >
> > I have several questions regarding this topic:
> >
> > 1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any
known
> > problems ?
> >
> > 2) Does Weblogic come with any tag libraries (for loops, if, etc)
and
> where
> > can I get them ?
> >
> > 3) Are there any tag libraries out there (JRun, for example) that
have
> been
> > successfully run on Weblogic ?
> >
> >
> > Any help would be much appreciated.
> >
> > Thanks,
> >
> > Jamie
> >
> >
>
>
-
Hi,
is it possible to enable JSP caching on the server side?
with this I mean, let's say that an user make a jsp request to the server,
the server invoke the requested jsp/servlet by the user, the JSP/servlet
then connect to a database (via EJB) and get the requested data.
Finally the server send then the response back to the client. (everybody
happy :-) )
The second time, the same user make another JSP request to server
containing the same "get" or "post" data as in the first time in the http
request.
Ok here is when my question comes: does the application server notice this
similarity in the http request header? or does the server just make another
request to the
JSP/servlet?
Thank you,
Rob
There is a new caching feature in the next SP.
No, servers don't assume that an identical request gets an identical
response, although more and more app servers are building in caching
support. Silverstream for example has pretty good caching support, and WL
should soon.
Cameron Purdy
[email protected]
http://www.tangosol.com
WebLogic Consulting Available
"Rob" <[email protected]> wrote in message
news:[email protected]..
> Hi,
>
> is it possible to enable JSP caching on the server side?
>
> with this I mean, let's say that an user make a jsp request to the server,
> the server invoke the requested jsp/servlet by the user, the JSP/servlet
> then connect to a database (via EJB) and get the requested data.
> Finally the server send then the response back to the client. (everybody
> happy :-) )
>
> The second time, the same user make another JSP request to server
> containing the same "get" or "post" data as in the first time in the http
> request.
> Ok here is when my question comes: does the application server notice this
> similarity in the http request header? or does the server just make
another
> request to the
> JSP/servlet?
>
> Thank you,
>
> Rob
>
>
>
-
How To Deploy Jsp project in Weblogic 8.1
Plz help me
How To Deploy Jsp project in Weblogic 8.1
Give me steps.Plz help me
How To Deploy Jsp project in Weblogic 8.1
Give me steps.(1) Create a standard WAR file that contains your JSPs.
(2) Deploy to WebLogic by any number of means (e.g., Ant tasks, putting WAR file in application directory for your WL domain, etc.)
% -
How to run JSP pages in weblogic 8.1 sp2
hi frnzs,
plese give me some idea about how to run JSP pages in weblogic server.enen i dont know hw to fly palne otherwise i can definitely give u sm guides abt that......
-
How to clear cache in weblogic server 10.3
Hi,
I am using web logic to handle cache ? How can i clear cache using web logic Mbeans?which cache are you talking about? Coherence cache?
Or maybe you are talking about code cache, as explained here http://wlatricksntips.blogspot.com/2010/07/clearing-cache-for-weblogic-instance.html ? -
Configuring JSP's in Weblogic server 7.0
Hi,
I'm trying to port my web application from weblogic server 6.1 to weblogic
7.0. I'm having a little problem with jsp pages in weblogic 7.0. Some of the text
box controls which are populated dynamically in my jsp pages are getting populated
with
"null" value in WL 7.0 e.g. in the following case
<%
String claim_id=null;
%>
<input type=text value=<%= claim_id %> >
on weblogic 6.1 an empty string is printed but in wl 7.0 null is printed as the
value for the text field.
I used the domain configuration wizard in wl 7.0 to make a WLS Domain and then
deployed my application. If I deploy the same application in one of the examples
domain which is installed with Weblogic 7.0 then everything works fine. So its
definity a configuration issue.
Could someone please help me with this.
Thanks,
-Taqdees.As per the j2ee 1.2, jsp 1.2 specification mandates that the expressions
default must be "null".
We have introduced a new flag in weblogic.xml called printNulls which is
true by default meaning that "null" will be the default.
Setting this to false makes sure that expressions(<%=expr%> ) with "null"
results are printed as "" (earlier behavior)
Here is how to configure the printNulls from weblogic.xml :
<weblogic-web-app>
<jsp-param>
<param-name>printNulls</param-name>
<param-value>false</param-value>
</jsp-param>
</weblogic-web-app>
Regards,
Eric
"taqdees malik" <[email protected]> wrote in message
news:3daaff99$[email protected]..
>
Hi,
I'm trying to port my web application from weblogic server 6.1 toweblogic
7.0. I'm having a little problem with jsp pages in weblogic 7.0. Some ofthe text
box controls which are populated dynamically in my jsp pages are gettingpopulated
with
"null" value in WL 7.0 e.g. in the following case
<%
String claim_id=null;
%>
<input type=text value=<%= claim_id %> >
on weblogic 6.1 an empty string is printed but in wl 7.0 null is printedas the
value for the text field.
I used the domain configuration wizard in wl 7.0 to make a WLS Domain andthen
deployed my application. If I deploy the same application in one of theexamples
domain which is installed with Weblogic 7.0 then everything works fine. Soits
definity a configuration issue.
Could someone please help me with this.
Thanks,
-Taqdees. -
Hello, I'm using Tomcat 5.0 and I'm having problems with JSP caching.
My webapp is hosted in a remote server on which I telnet into to do my development work. At first, everything was fine, i.e. I didn't face any JSP caching problem.
However, when another developer decided to telnet into the same server to do his development work on the same webapp, we started to experience JSP caching problem.
We had to delete the content of the "work" folder and restart the server for any changes to take effect.
Does anyone know how to sort out this problem?OK, I've found out the way to resolve this.
Basically, each developer will need to "touch" all his JSPs to make sure their JSPs get compiled. -
Help in executing jsp files using weblogic server 6.0.
I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
I have a file called hello.jsp.
Where do i have to save hello.jsp file in weblogic server 6.0.
How do i execute hello.jsp through browser using weblogic server6.0.
As there is no properties file in weblogic server6.0.
TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
Where do i have to save it and how do i open it in the browser.
Any help will be greatly appreciated.
Thanks,
I started the Start default Server and opened the http://localhost:7001/ in the bowser and by default
this loaded the index.html file
and when i tried to change index.html to hello.jsp i got the same error message as before
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
"mils" <[email protected]> wrote:
>
>There are quite a few reasons it couldn't be working, and things you can try...
>
>Ensure there are no errors on startup of the server in the console, especially that there is not an error about another web listener running on the same port.
>
>Try just http://localhost:7001 by default this should load the index.html file that comes with the WebLogic installation.
>
>If you are running on a corporate LAN, your browser settings may not be set correctly to find "localhost", ensure that your browser is not using a proxy server for local addresses, or put localhost:7001 in the list of exceptions for which the browser should not look at the proxy server.
>
>Hope this helps!
>
>"Red" <[email protected]> wrote:
>>
>>I created hello.jsp file under E:\weblogic\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\hello.jsp
>>and i started the Start Default Server and when i try to open
>>http://localhost:7001/hello.jsp in the browser
>>getting an error message as
>>
>>Error 404--Not Found
>>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
>>10.4.5 404 Not Found
>>The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
>>
>>If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
>>
>>Any help?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>"Mils" <[email protected]> wrote:
>>>
>>>In WebLogic 6.0, to run simple JSP pages with the default installation, the JSP files should be put in....
>>>
>>>C:\bea\wlserver6.0\config\DefaultWebApp_myserver
>>>
>>>...assuming you installation was on the C: drive.
>>>
>>>To access a file bar.jsp in this directory, go to http://localhost:7001/bar.jsp
>>>
>>>"Red" <[email protected]> wrote:
>>>>
>>>>I have an operating system Windows2000, i have downloaded 30 day trial version of weblogic server 6.0.
>>>>I have a file called hello.jsp.
>>>>Where do i have to save hello.jsp file in weblogic server 6.0.
>>>>How do i execute hello.jsp through browser using weblogic server6.0.
>>>>As there is no properties file in weblogic server6.0.
>>>>
>>>>TO run it i started default server and when i started default console it got opened in the browser as http://127.0.0.1:7001/console/index.jsp
>>>>
>>>>Where do i have to save it and how do i open it in the browser.
>>>>
>>>>Any help will be greatly appreciated.
>>>>Thanks,
>>>>
>>>>
>>>>
>>>>
>>>
>>
>
-
Hi there ,
please suggest me the significance of Info Cubes & live Cache ?
My understanding after going through the material in help.sap is that we store planning data in both ......
Regards
KaushikHi Kaushik,
INFOCUBE
please read the help for this:http://help.sap.com/saphelp_nw70/helpdata/en/de/113037530b7774e10000009b38f839/frameset.htm
info cube: is an info provider, which contains data in it. (techniacallyAn InfoCube describes (from an analysis point of view) a self-contained dataset, for example, for a business-orientated area. You analyze this dataset in a BEx query.
An InfoCube is a set of relational tables arranged according to the star schema: A large fact table in the middle surrounded by several dimension tables.) Infocube is to store data from R/3 r from other source, used for reporting.
Livecache:
http://help.sap.com/saphelp_nw04s/helpdata/en/42/db70ae3f382cede10000000a1553f7/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm
Hope this helps a bit
Reward if useful
Cheers
Kripa Rangachari. -
Need info regarding static file cache in weblogic
Hi,
I want to cache the static files at weblogic side
I am using Apache plugin provided by weblogic
I have gone through the e-docs about FileCache ON which is needs to be set in httpd.conf
I want to know is there any settings which is set at weblogic to cache static files
As i am using apache plug in provided by weblogic i want to know if there is any setting at weblogic side
Thanks in advanceHello,
Normally the statis contents are served from web servers, in your case this may be from Apache. So what statis files are you referring to in weblogic, is that a part of HTML and images from WAR / EAR ?
In general weblogic has its own cache temp location as runtime to keep the classfiles and other resources unpacked from WAR / EAR.
-AJ -
Big jsp Bug in Weblogic! UnNoticed by weblogic!
<%@ page language="java" contentType="text/html" %> <%! public void jspInit() { System.out.println("Hello"); } %> <% out.println("jsp executed"); %>
The above code displays "Hello" on the command line or Dos and "jsp executed" on the browser!
When this jsp is loaded first time it executes correctly. when it is again loaded then jsp init method is not executed. This is also fine.
But the problem is when I restart my weblogic server and clear the browser cache and then load the jsp file then the init method is called TWO times! "Hello" is displayed two times!
why this is so? Is there any bug in weblogic5.1? Or am I doing something wrong? please tell
You hit the JSP and the .class file gets loaded into memory and jspInit() executes. Fine.
Once loaded into memory, the next thing the JSP does is check if it 'isStale()' -
this compares the date-stamp that was on the .jsp file when the jsp was compiled
with the date-stamp on the .jsp file on disk. This is in the code of the JSP itself, it
does not compare the date of the .class file with the date of the .jsp file - so it was
necessary to load the JSP in memory (an call jspInit()) simply to check the if it was
up-to-date. In your case, it is not up-to-date. The JSP is compiled, loaded into
memory and jspInit() executes - again.
Mike Reiche
Robert Patrick <[email protected]> wrote:
>Hi,
>
>Please realize that this is NOT an official BEA support forum. All BEA personnel that monitor this newsgroup and answer questions do it on their own time because we (yes, I work for
>BEA) want to help people be successful with our products. If you want an official response from BEA to your problem, then I suggest that you send mail to [email protected], call our toll
>free support number (888)232-7878 and/or talk with your BEA Account Representative.
>
>As for your problem, I am not sure what is happening but this may be a simple matter of not understanding how JSP reloading works. I am more than willing to help you but you need to
>provide me with a more detailed description of exactly what it is that you are doing, what service pack level are you using, etc.
>
>Thanks,
>Robert
>
>gopal wrote:
>
>> <%@ page language="java" contentType="text/html" %> <%! public void jspInit() { System.out.println("Hello"); } %> <% out.println("jsp executed"); %>
>>
>> The above code displays "Hello" on the command line or Dos and "jsp executed" on the browser!
>>
>> When this jsp is loaded first time it executes correctly. when it is again loaded then jsp init method is not executed. This is also fine.
>>
>> But the problem is when I restart my weblogic server and clear the browser cache and then load the jsp file then the init method is called TWO times! "Hello" is displayed two times!
>>
>> why this is so? Is there any bug in weblogic5.1? Or am I doing something wrong? please tell
>
-
Is it possible to find readable info in safari cache
We are using Safari the OS is Leopard.
I wondered if it is possible to view a web page off line from the Safari Cache in a readable form for non techies. We know the date & time we visited the page
The information we want is the kind of info we can view in the activity window of Safari after we have visited a web page. I have tried cachediskinspector but it doesn't work in Leopard although it seems that it would give the info I am looking for
Thanks for your helpthank you both for taking the trouble to reply
I had already tried filejuicer without any success - I need to be able to open something for a certain time & date. I emailed the person who developed the programme & he said that filejuicer wouldn't be able to do what I needed although he thought there should be a way of finding what I need
Tried the history hound & that doesn't seem to give what I need either - I need to know what was on the webpage when I visited rather than a list of sites I visited have tried cachediskinspector using tiger & that would give me exactly what I need but it hasn't been updated for use on Leopard
If anyone else has any ideas I would be REALLY grateful
thanks again -
JSP on BEA Weblogic: random error when loading a jsp page that uses a Bean
Hi!
I wrote a simple jsp page that stores a String in a JavaBean, and then forwards to another jsp page to display that String. The jsp pages are deployed on a BEA Weblogic 6 Server, but I get a weird behaviour when loading the page into my browser. Usually I get an error message:
/Response.jsp(9): class 'query.jsp.QueryBean' could not be loaded
probably occurred due to an error in /Query.jsp line 9:
<jsp:useBean id = "queryBean" scope = "request" class = "query.jsp.QueryBean" />
But the funny thing is that after reloading the page a few times it eventually works. The bahaviour seems to be totally random - sometimes it works, sometimes it claims not finding the JavaBean class.
Anyone experienced something similar?
Thank you very much,
CharlieIs QueryBean.class located under '<appname>/Web_inf/query/jsp/'?
If it is please try changing the package name to something else like com.myclass or something like that. -
Deploying a .jsp file in weblogic
How can we deploy a .jsp file in obiee or weblogic ? Is there anyway we just put the .jsp in some path and then restart the admin and managed server and then use the URL in browser as http://ipaddress:7001/default.jsp or http://ipaddress:9704/default.jsp
any inputs as how to deploy the jsp
Thanks,
RMYou need to go for virtual directory or deploy it (you and I need to refer doc to know how) :)
Since you are using BI and analytics is pointing to web\res folder
create a new folder under res and place it the jsp file
you may have to call that jsp file something like
localhost:port/analytics/FolderName/name.jsp
you might have to restart services to reflect folder and its contents in analytics (ie. localhost:port/analytics/).
Let me know updates.
If helps mark
Maybe you are looking for
-
Exported iMovie in 16:9, but video is 4:3-can I switch back in iDVD?
I created a project in iMovie '11. I had inadvertantly kept it at a 16:9 ratio even though the file/video was 4:3. I then sent it to iDVD. There, I have the option of making the project 4:3 or 16:9. If I put the project at 4:3, will it basically p
-
Preview loading slow - solution
SOLVED FOR ME: I was having this issue with OS X Lion 10.7.3 2GB ram MBP. I tried the above terminal steps but couldn't find anything there. I was reading through my code and noticed that it named "font" early on in the terminal output. I recall h
-
I have the iphone 5 my lock button is broken my screen is off set and i cannot type in my password to get into the phone and reset the phone how or what do i have to do to fix this? and im at work so i cant get the serial number to you
-
Sold-to Block as Ship-To in VA01
Hi All, We have situation where we have a sold-to created with multiple ship-to's. Our issue is, the users can enter the sold-to as a ship-to in the sales order which we do not want them to do. In our system the sold-to automatically gets created a
-
Direct Traffic to one node in Cloud Service
Is there a way to make a cloud service (web role) always use one of the nodes, there are two in this scenario, and only direct to the other one if the first one gets shut down. We have a piece of legacy software we use in our Cloud Service and we are