Precompilation of JSPs for default web application
Hello,
Once in a while I need to redeploy my "Default" web application. I would like to have its all JSPs precompiled, so that it was immediatly available after redeployment.
However, if I try to redeploy my web application (.war file) under, let's say, "DefaultWebApp" root context, using the administration console, with the "Precompile JSPs" option enabled, it does compile all JSPs, but ONLY those deployed under the "DefaultWebApp" root context.
However, If I access a url like "http://somehost/SomeResource.jsp" (a file that belongs to that default web application"), I can see (due to a pause) that my JSPs have not been compiled under the root context.
Is there any way to precompile JSPs for my default web applications?
Sincerely,
Sergei Batiuk.
Hello,
Once in a while I need to redeploy my "Default" web application. I would like to have its all JSPs precompiled, so that it was immediatly available after redeployment.
However, if I try to redeploy my web application (.war file) under, let's say, "DefaultWebApp" root context, using the administration console, with the "Precompile JSPs" option enabled, it does compile all JSPs, but ONLY those deployed under the "DefaultWebApp" root context.
However, If I access a url like "http://somehost/SomeResource.jsp" (a file that belongs to that default web application"), I can see (due to a pause) that my JSPs have not been compiled under the root context.
Is there any way to precompile JSPs for my default web applications?
Sincerely,
Sergei Batiuk.
Similar Messages
-
What's the available value for weblogic.jsp.encoding in web application.
Hi,
I'm using chinese windows nt 4.0 and weblogic 5.1 sp6.When I did not set
weblogic.jsp.encoding to GB2312 , when the jsp file contain's chinese , the
output will be error .And when I did not set it , the output is correct, but
when I use request.getParameter("SomeFormElement")(the element inputed
chinese), the return value is error.
How should I set weblogic.jsp.encoding value to satisfy all this problem?
When I set the value to ISO-8859, there is an exception:
java.io.UnsupportedEncodingException: Charset: 'ISO-8859' not recognized,
and there is no alias for it in the weblogic.httpd.charsets property. So
What's the available value for weblogic.jsp.encoding in web application?
Pan
hi ,
i think the best way is to create java beans ,in that bean call your EJB ,
and check the validation over there.
and make that bean scope to session.
in each and everypage try to check the session ,if it is not valid then forward to your login page...
otherwise continue to give access to him like guest
Regards,
AfTaB -
Default Web Application is not visible in Weblogic Console
We are using Weblogic 5.1.0 SP7
We moved our Application from the Implicitly Defined Default Web
Application which is configurated by the
weblogic properties to a Web Application. Because we don't want to
change any URL in our Application, we
decided to deploy it as Explicitly Defined Default Web Application.
By this we recordniced that the weblogic.httpd.defaultWebApp property
worked not that way descibed in the
Weblogic Documentation. You have to write the path to the WebApp not the
name!
So we have the following Entry in the weblogic.properties:
weblogic.httpd.defaultWebApp=i:/if_home2/web
This works fine. The Server starts and serves the WebApp the way we
expected. But wenn we start the Weblogic
Console the WebApp ist not visible in the "myserver/HTTP/Servlet web
applications" folder. This one is empty
now! Previously the "General" Entry for the Implicitly Defined Default
Web Application was shown here, which
showed our Servlets and JSP's and their hit count and parameters.
So there is no chance to monitor the Servlets and JSP's of the default
Web Application.
I tried to deploy our WebApp a secound time with
weblogic.httpd.webApp.OurApp=i:/if_home2/web
but this create a second independent WebApp. OurApp is shown in the
Weblogic Console but it does not monitor
the hits to the default WebApp. So this is not a solution!
Any idea to make the default Web Application visible in the Weblogic
Console?
in my development environment i checked in site collection feature, it isn't available in site collection feature but still i am getting those web parts in web part gallery while adding it on page.
Also, in Production environment, feature is available in /templates/features folder after deployment, but not available in web part gallery while adding it on page.
I tried with uploading .webpart file which is available in /templates/features production environment as i mentioned, is running for one web part. Not for second web part and giving me security error.
As, uploading .webpart file is not feasible solution, please tell me how could i do that with .wsp file?
please tell me what could be another workaround.
-
Unable to force logout of Default Web Application
Thi is a repost : still having the problem ... any ideas ?
Original Post ........................................
........................................................ I am having a problemlogging out....I can not log out. Using WLS 6.0sp1 using form based authentication
with a custom RDMBS Realm. I believe this functionality was working but now that
the application has been set up as the default web application logout no longer
works ?
In our application we have a logout link that points to a jsp page that does the
following:
<% if (session != null) session.invalidate(); session = null; %>
Note, this is the last jsp to be executed on the page. I looked at the compiled
servlet and it doesn not appear that anything is being done that would reinitialize
the session ...
Here is the try-catch of the compiled jsp servlet .. try { // error page try block
out.print("...");
if (session != null) session.invalidate();
session = null;
out.print("...."); .... }
catch (Exception __ee) {
while (out != null && out != originalOut) out = pageContext.popBody(); pageContext.handlePageException(_ee);
After this page is returned, the user can still access protected content, any
ideas ????
Is there a method in Weblogic security package to deauthenticate a user to force
re authentication ?
I just double checked it and lo and behold the session is actually being invalidated
because the users session data is gone, however they are still able to access
protected resources. Does this mean that weblogic is not using session to maintain
authenicated flag ? Or does this mean that the call to pageContext.popBody() is
creating a new session ? Or does this mean that weblogic has a bug ? Or does this
mean that I don't know what I'm doing ?
Bea, please provide a complete response, I have seen this type of post many times
on this board, can we solve this problem once and for all.
Thank you kindly,
Mark LeskI checked this angle. They are able to see protected content.
However, bea has finally acknowledged the problem. It exists when you are using
multiple web applications with single sign-on.
The problem has supposedly been fixed in a rolling patch available for SP2 of
WebLogic 6.0. Three new methods have been added that provide the ability to log
users out.
Hip Hip Hooray !!!!
See this link : http://commerce.bea.com/downloads/wls_patches.jsp
The new logout methods are described in the associated readme.
Thanks
- Mark
"mblumrich" <[email protected]> wrote:
potentially a silly question.... but are you sure the users are not simply
looking at pages that are in the web browser's cache? Are they able to
look
at privileged content that they haven't seen before?
cheers,
Markus
"Mark Lesk" <[email protected]> wrote in message
news:[email protected]...
Thi is a repost : still having the problem ... any ideas ?
Original Post ........................................
........................................................ I am having
a
problem
logging out....I can not log out. Using WLS 6.0sp1 using form basedauthentication
with a custom RDMBS Realm. I believe this functionality was workingbut
now that
the application has been set up as the default web application logoutno
longer
works ?
In our application we have a logout link that points to a jsp pagethat
does the
following:
<% if (session != null) session.invalidate(); session = null; %>
Note, this is the last jsp to be executed on the page. I looked atthe
compiled
servlet and it doesn not appear that anything is being done that wouldreinitialize
the session ...
Here is the try-catch of the compiled jsp servlet .. try { // errorpage
try block
out.print("...");
if (session != null) session.invalidate();
session = null;
out.print("...."); .... }
catch (Exception __ee)
while (out != null && out != _originalOut) out = pageContext.popBody();pageContext.handlePageException(__ee);
After this page is returned, the user can still access protected content,any
ideas ????
Is there a method in Weblogic security package to deauthenticate auser to
force
re authentication ?
I just double checked it and lo and behold the session is actuallybeing
invalidated
because the users session data is gone, however they are still ableto
access
protected resources. Does this mean that weblogic is not using sessionto
maintain
authenicated flag ? Or does this mean that the call topageContext.popBody() is
creating a new session ? Or does this mean that weblogic has a bug? Or
does this
mean that I don't know what I'm doing ?
Bea, please provide a complete response, I have seen this type of postmany times
on this board, can we solve this problem once and for all.
Thank you kindly,
Mark Lesk -
Unable to logout of Default Web Application
Thi is a repost : still having the problem ... any ideas ?
Original Post ........................................
........................................................I am having a problem logging out....I can not log out. Using WLS 6.0sp1 using
form based authentication with a custom RDMBS Realm. I believe this functionality
was working but now that the application has been set up as the default web application
logout no longer works ?
In our application we have a logout link that points to a jsp page that does the
following:
<% if (session != null) session.invalidate(); session = null; %>
Note, this is the last jsp to be executed on the page. I looked at the compiled
servlet and it doesn not appear that anything is being done that would reinitialize
the session ...
Here is the try-catch of the compiled jsp servlet .. try { // error page try block
out.print("...");
if (session != null) session.invalidate();
session = null;
out.print("...."); .... }
catch (Exception __ee) {
while (out != null && out != originalOut) out = pageContext.popBody(); pageContext.handlePageException(_ee);
After this page is returned, the user can still access protected content, any
ideas ????
Is there a method in Weblogic security package to deauthenticate a user to force
re authentication ?
I just double checked it and lo and behold the session is actually being invalidated
because the users session data is gone, however they are still able to access
protected resources. Does this mean that weblogic is not using session to maintain
authenicated flag ? Or does this mean that the call to pageContext.popBody() is
creating a new session ? Or does this mean that weblogic has a bug ? Or does this
mean that I don't know what I'm doing ?
Bea, please provide a complete response, I have seen this type of post many times
on this board, can we solve this problem once and for all.
Thank you kindly,
Mark LeskThi is a repost : still having the problem ... any ideas ?
Original Post ........................................
........................................................I am having a problem logging out....I can not log out. Using WLS 6.0sp1 using
form based authentication with a custom RDMBS Realm. I believe this functionality
was working but now that the application has been set up as the default web application
logout no longer works ?
In our application we have a logout link that points to a jsp page that does the
following:
<% if (session != null) session.invalidate(); session = null; %>
Note, this is the last jsp to be executed on the page. I looked at the compiled
servlet and it doesn not appear that anything is being done that would reinitialize
the session ...
Here is the try-catch of the compiled jsp servlet .. try { // error page try block
out.print("...");
if (session != null) session.invalidate();
session = null;
out.print("...."); .... }
catch (Exception __ee) {
while (out != null && out != originalOut) out = pageContext.popBody(); pageContext.handlePageException(_ee);
After this page is returned, the user can still access protected content, any
ideas ????
Is there a method in Weblogic security package to deauthenticate a user to force
re authentication ?
I just double checked it and lo and behold the session is actually being invalidated
because the users session data is gone, however they are still able to access
protected resources. Does this mean that weblogic is not using session to maintain
authenicated flag ? Or does this mean that the call to pageContext.popBody() is
creating a new session ? Or does this mean that weblogic has a bug ? Or does this
mean that I don't know what I'm doing ?
Bea, please provide a complete response, I have seen this type of post many times
on this board, can we solve this problem once and for all.
Thank you kindly,
Mark Lesk -
Default Web Application ist not visible in WebLogic Console
We are using Weblogic 5.1.0 SP7
We moved our Application from the Implicitly Defined Default Web
Application which is configurated by the weblogic properties to a Web
Application. Because we don't want to change any URL in our Application,
we decided to deploy it as Explicitly Defined Default Web Application.
By this we recordniced that the weblogic.httpd.defaultWebApp property
worked not that way descibed in the Weblogic Documentation. You have to
write the path to the WebApp not the name!
So we have the following Entry in the weblogic.properties:
weblogic.httpd.defaultWebApp=i:/if_home2/web
This works fine. The Server starts and serves the WebApp the way we
expected. But wenn we start the Weblogic Console the WebApp ist not
visible in the "myserver/HTTP/Servlet web applications" folder. This one
is empty now! Previously the "General" Entry for the Implicitly Defined
Default Web Application was shown here, which showed our Servlets and
JSP's and their hit count and parameters.
So there is no chance to monitor the Servlets and JSP's of the default
Web Application.
I tried to deploy our WebApp a secound time with
weblogic.httpd.webApp.OurApp=i:/if_home2/web
but this create a second independent WebApp. OurApp is shown in the
Weblogic Console but it does not monitor the hits to the default WebApp.
So this is not a solution!
Any idea to make the default Web Application visible in the Weblogic
Console?
Hello Nadar,
Tell me how are you starting server in the cluster, through nodemanager or commnadline.
Kuldeep -
Office Web Apps - how to disable office web apps features for one web application
ENV: Sharepoint 2010 farm with office web apps + fast search
I have the requirement for one web application to open all its documents in client applications - I can enable feature "OpenInClient". This web application uses team site template and other web application also uses team site template. ( feature
stapling ruled out) Now I can run powershell cmdlet to enable this feature on all the currently existing site collections. But the requirement is to enable this feature for all the future site collections. This web applications has 60 k site collections
and atleast more than 10 site collections get created each day and they dont like the option to run a powershell script each day to activate this solution.
Is there any other way to by default activate new site collections on this WA to open in client applications by default (can we disable this office webapps features only on one web app)?
VMI have learnt from this forum that it is not possible to turn off Office web apps on single web application. The line of control lies at farm level and then at site collection.
Disable
Office Web Apps on web application
VM -
Default Web Application - new bug in SP1?
Just rebuilding everything from scratch to test out SP1. Have noticed
that the admin console now always seems to report only "(none)" in the
Default Web Application drop-down, even if other web apps are deployed
to the server. Editing the config.xml directly detours the problem, in
that the default app can be set and used, but the admin console still
says "(none)".
Lots of other good things fixed in SP1 though!
ChrisWhat you can do if you may shutdown the server is to replace the
console.war from WLS6.0SP1 with that from WLS6.0, do the mods and put
the new back in place. If you may stop the server, this is I think the
easiest sollution.
Regards,
Merg
"Rich " <[email protected]> wrote in message
news:3ad33260$[email protected]..
>
Is there a fix for this issue, or a work around? I am having adifficult time
getting the web application to show up...and be accessible in abrowser.
>
Thanks.
Chris Palmer <[email protected]> wrote:
Just rebuilding everything from scratch to test out SP1. Have noticed
that the admin console now always seems to report only "(none)" in
the
Default Web Application drop-down, even if other web apps aredeployed
to the server. Editing the config.xml directly detours the problem,in
that the default app can be set and used, but the admin console still
says "(none)".
Lots of other good things fixed in SP1 though!
Chris -
Hello,
I have three web applications on a SharePoint 2013 servers. In Central Administrators on the Application Management page where it lists all of the web applications, it shows Port 80 being used 2 3 sites. When I go to IIS, 2 of the 3 are using
different ports, 81 and 82. So, only one site IIS says is using port 80. Why is this? The host file has no entries in it. Where these web applications extended?
Thanks,
Paul
PaulHi Paul,
From the URL of the web application in Central Administration in the image, you have configured the Alternate Access Mapping for the web applications.
And the URL configured is by default using port 80 if you don’t
assign other ports for the web application, so the port is changed to 80 in Central Administration.
To be able to access the web application, you need to add binging for the web application in IIS(please make sure that you have added the host name in DNS).
For example, SharePoint – 32298, you need to create the binding for the web application in IIS as the image below:
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Console.war as default web application...
Hi,
I tried to add the console.war as my default web application for my Admin
server, but when restarting the server it complained with the following
error:
The WebLogic Server did not start up properly.
"Exception raised: weblogic.management.configuration.ConfigurationException:
undefined mbean reference:
mydomain:Name=console,Server=myserver,Type=WebAppComponent"
And the server does not start at all - I had to manually update the
config.xml to remove the console.war as a default web application...
Does anybody knows if this is a bug? Does it happens only with the
console.war? or there are any other scenarios that it can happen as well?
Thanks,
Marcelo.It's 6.1 - I want to set up it as default on my Admin server instance, which
is running as a Admin server only... Not critical, but...
Thanks,
Marcelo
"Kumar Allamraju" <[email protected]> wrote in message
news:[email protected]..
Is this problem with 6.0 or 6.1?
BTW, why do you want configure console.war as default webapp?
Marcelo Caldas wrote:
Hi,
I tried to add the console.war as my default web application for my
Admin
server, but when restarting the server it complained with the following
error:
The WebLogic Server did not start up properly.
"Exception raised:weblogic.management.configuration.ConfigurationException:
undefined mbean reference:
mydomain:Name=console,Server=myserver,Type=WebAppComponent"
And the server does not start at all - I had to manually update the
config.xml to remove the console.war as a default web application...
Does anybody knows if this is a bug? Does it happens only with the
console.war? or there are any other scenarios that it can happen aswell?
>>
Thanks,
Marcelo. -
ISA apps in CRM 2007 still JSP Struct based Web application OR BSP Web UI
Hi, SDN Experts.
Is the ISA (Internet Sales) appications in CRM 2007 stil runs in JSP Struct based Web application framework OR now it has switch to the BSP Web UI based web applications?
I know that the previous PCUI based applications have been switched to BSP Web UI based applications, but I am not sure about the ISA.
Can anyone also point me to some resources/materials to identify what changes CRM 2007 compare to CRM 2005 /6.0 in details?
Thanks for advise,
KCKC,
ISA in CRM 2007 is in JSP still..
www.help.sap.com would be the best option to start
Regards,
Vinay -
Associating Default Web Application with Virtual Host
Hi
We are trying to run several virtual hosts on the same managed server. However, each of those virtual hosts (e.g. bob.mydomain.com, john.mydomain.com) will need to have a different default web application (the rest of the deployed web applications will be the same between hosts). We tried to create default web applications with <context-root> in weblogic.xml set to / (also tried "") - however when attempting to deploy 2nd default web app an error message comes up:
Context path '/""' is already in use
So, it appears that we can't associate a default web application with a virtual host. Any ideas on how to solve it?
Our Environment:
Weblogic version: 10.3 TP, Windows
Many thanks
JasonIs your webapp targetted to the correct virtual-host during deployment?It could be possible that your webapp is targetted to the default web-server instead of the virtual-host causing this error. Can you validate this from your config file?
You can also configure default webapps for virtual hosts by setting the default-web-app-context-root element of virtual-host element in your config file -
Configuring the authentication scheme for a web application
Hi all,
We have a requirement to configure the authentication scheme for a web application where some set of users should access the application using basic LDAP (userid/password) authentication and some using digital certificate authentication.
Since the deployment descriptor (web.xml) allows only one directive for auth-method in logic-config, we want to know if there is any other way to achieve this requirement. We are thinking of a custom login module approach. But we are not able to figure out how to configure the auth-method at runtime from the login servlet.
Please let us know if there is any other approach to achieve this.
I will be thankful if any body shares any specific solution to this issue.This forum is probably not the correct one to ask in. It's more related to the web container than Java Programming.
Kaj -
One Search service application for multiple web applications in a single server
We are planning to host 17 Web applications in a single Server. Do I need to create search service application for each web application or I need to create one Search service application , create a Content source for each web
application and create a Result source for filtering. Which is the best approach. And which approach takes more RAM memory.
In my application I am using Search web part, "Recently Changed Items", "Popular Items" web parts. when I created only one one Search Service application for all web applications and using Result sources ,
I am not getting the results. What could be the problem.Hi,
One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
Multiple SSA's will eat up RAM/CPU like a mother :)
As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
Thanks,
Mikael
Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of Working with FAST Search Server 2010 for SharePoint -
Configuring Default Web Application w/ WLS6.0 SP2
I have 2 Machines with no shared file system.
I have identical directory structures on both:
/usr/local/weblogic/config/qadomain/applications/DefaultWebApp
I have 2 Servers within the cluster:
ServerA and ServerB within ClusterA
I have 1 DefaultWebApp that I have Chosen ClusterA
When starting ServerA I receive and error:
<Error deploying application DefaultWebApp: ServerB not deployed on ServerA>
Can someone tell me the what's missing in this configuration?
You should add it to config.xml by yourself, should be something like:
<Server AdministrationPort="0"
ListenPort="8001" Name="testServer">
<Log FileName="config/mydomain/logs/weblogic-testServer.log"
Name="testServer"/>
<WebServer DefaultWebApp="WebApp_testServer"
LogFileName="config/mydomain/logs/access-testServer.log"
Name="testServer"/>
<KernelDebug Name="testServer"/>
<SSL Name="testServer"/>
<ServerDebug Name="testServer"/>
</Server>
Good luck.
"Ton Bode" <[email protected]> wrote in message
news:[email protected]..
Sorry, wrong group, and it seems to be a bug in the WLS 6.0 sp1 and sp2
versions
"Ton Bode" <[email protected]> wrote in message
news:3b5ec3e3$[email protected]..
I am running WLS6.0 sp2 on Win2K.
When I try to select a Default Web Application (selecting myserver,
Configuration, HTTP, Default Web Application) there is no Application
that
I
can select. I suppose at least the DefaultWebApp_myserver should be
available. This WebApp is deployed and targeted to myserver. But also
Console and Certificate should be available. What do I need to do inorder
to select a Web Application as default?
Ton Bode
Maybe you are looking for
-
Tempo change delay! Why is Logic changing the tempo too late?
Anyone a solution for this? My tempo change is set at e.g. 10.1.1.1 from 60 to 30 bpm. But logic is changing the tempo slightly delayed (about half a second too late.) It looks like logic is to slow to handle the tempo change on time: When I restart
-
Import opening stock on opening balance account in G/L
Hi, Which template do i use to import the opening stock of the items. The items are already imported with oitems & oitems prices ! Now i need the opening stock level booked in SAP on my opening stock account in the G/L. Thanks Mark
-
hi sap gurus can anybody tell me about how to run a report in sap (ABAP). what is the TCode for that one.while i am trying to post asset master it is asking to start a report first and then post. kindly reply me soon thanx in advance
-
Our source and target databases are RAC servers. Is it possible to have OWB installed as single node and still use RAC capabilities of source and target database ? Basically we are hoping to install OWB as single node and define source/target locatio
-
Good morning, I just bought the new IMAC with the Fusion drive 3T. Can I use it with bootcamp beacuse I need for Quicken?If not any suugestion?