Weblogic.servlet.reloadCheckSecs in web.xml not working
Given the following web.xml file:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<context-param>
<param-name>weblogic.servlet.reloadCheckSecs</param-name>
<param-value>100</param-value>
</context-param>
<servlet>
<servlet-name>CookieCounter</servlet-name>
<servlet-class>servlets.CookieCounter</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CookieCounter</servlet-name>
<url-pattern>monster</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>hello.html</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
</web-app>
It seems the weblogic.servlet.reloadCheckSecs property is not taking effect.
The
default value of -1 is always used. I did stop and restart weblogic.
I also trid to set the servlet classpath in the web.xml file with
weblogic.servlet.classpath
property and it did not change the classpath for the servlet. It seems that
other
items are working such as adding new servletrs to the web application. Note
that
this is the cookie sample application that installes with the beta 2
download.
Thanks,
Dan.
Hi All:
Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
Could you please help and can you point me to any specific link.
Thanks & Regards
Sridhar Doki
Similar Messages
-
error-page in web.xml not working
In my web.xml I have
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error.jsp</location>
</error-page>
I checked the page works by doing a /context/error.jsp and
the page displays fine (it is a simple jsp page).
I hit a struts action that gives me this in the std output.
06/29 10:48:24 error
[1]java.lang.NullPointerException
at
com.pearson.gs.cms.business.LoginService.verifyPassword(LoginService.java:232)
at
com.pearson.gs.cms.action.LoginAction.performCMSAction(LoginAction.java:92)
at
com.pearson.gs.cms.action.BaseCMSAction.execute(BaseCMSAction.java:48)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
[0]javax.servlet.ServletException
at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at
jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
I get a 500 error page instead of my /error.jsp page.
I tried adding
<error-page>
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
but that doesn't work either.
JRun 4.0
Updater 6
JDK 1.4.2
Struts 1.2.8
Any ideas what to try?a. Override your skeletons error.jsp to forward/redirect to your page.
or
b. If you primarily use pageflow portlets Define a shared flow which has an exception handling method and direct it to your page. Reference the shared flow in each of your controllers (i think global.app is deprecated in 10 otherwise you could do this there). this lets you log some additional information, plus gives you the added flexibility of dealing with different exception types
or
c. Override the path to error.jsp in your portlets properties (havent tested)
Note if you are using servlets etc you still need your web.xml java.lang.Exception entry. The reason it doesnt get picked up is because the portal framework is handling the exception
Edited by: deepshet on Dec 22, 2008 8:12 PM -
Mime mapping in web.xml not working for csv/excel
I am using the weblogic 8.1 app server. I want to serve up some static content
from an "exploded" web application (dir structure instead of a war file). This
static content includes html files and csv files that cause the browser to give
an option to the user to open the file in excel or download to disk. I have inserted
the following mapping inside web.xml in the exploded directory structure...
<web-app>
<mime-mapping>
<extension>csv</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
</web-app>
I redeployed the "web application". When I try to access a csv file, instead of
giving me the save/open dialog, the browser displays the ASCII contents of the
csv in the browser like an HTML file. Am I missing a step? Is the xml above not
for the functionality that I am trying to implement here?
Thanks.Hi All:
Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
Could you please help and can you point me to any specific link.
Thanks & Regards
Sridhar Doki -
Success_URL in web.xml not working - Need help
Hi:
I developed my whole application in Jdeveloper 10.1.3.2 and all the security are done through custom module. Everything is working fine except one of the part that is success_url in web.xml.
1. There are total 10 pages in my application independent of each other.
2. I configured the custom login procedure and it is working fine.
3. From Jdeveloper if I run any page (i.e. one of 10 pages) it is prompting me to login and after login it is redirecting to the page I ran.
My issue is that after the login is completed as in step 3, I want the page to be redirected to predefined page called UserResp.jspx. I don't want to redirect to the page from where the login page was called. As per the notes in the ADF document, I configured the success_url in the adfAuthentication servlet as below. But after login it is not redirecting to the success_url but it is redirecting to the page from where the login was prompted.
Do I need to perform any other step for this success_url to work. Could you please guide.
Below is the details of my web.xml.
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
<description>Empty web.xml file for Web Application</description>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/efile-faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<context-param>
<param-name>CpxFileName</param-name>
<param-value>userinterface.DataBindings</param-value>
</context-param>
<context-param>
<param-name>oracle.adf.view.faces.CHECK_FILE_MODIFICATION</param-name>
<param-value>false</param-value>
</context-param>
<filter>
<filter-name>adfFaces</filter-name>
<filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
</filter>
<filter>
<filter-name>adfBindings</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>adfFaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>adfBindings</filter-name>
<url-pattern>*.jspx</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>adfAuthentication</servlet-name>
<servlet-class>oracle.adf.share.security.authentication.AuthenticationServlet</servlet-class>
<init-param>
<param-name>success_url</param-name>
<param-value>faces/app/user/UserResp.jspx</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>resources</servlet-name>
<servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>UploadMultiFileServlet</servlet-name>
<servlet-class>oracle.apps.xxcust.servlet.UploadMultiFileServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>UploadMultiFileServlet</servlet-name>
<url-pattern>/UploadMultiFileServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>adfAuthentication</servlet-name>
<url-pattern>/adfAuthentication/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>35</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<jsp-config/>
<security-constraint>
<web-resource-collection>
<web-resource-name>All Pages</web-resource-name>
<url-pattern>faces/app/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>ADMIN</role-name>
<role-name>MANAGER</role-name>
<role-name>USER</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/Login.jsp</form-login-page>
<form-error-page>/Login.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>ADMIN</role-name>
</security-role>
<security-role>
<role-name>MANAGER</role-name>
</security-role>
<security-role>
<role-name>USER</role-name>
</security-role>
</web-app>Hi All:
Thanks for all your help regarding the adfAuthentication success_url. Now I am able to configure to make this work. But now I am facing another issue i.e. I am getting 401 Not authorized message when the success_url is pointed to the jspx page.
Note: I am using custom login module similar to DBProcOraDataSourceLoginModule so my roles are stored in the custom Role class. So I am not sure how to pass this role info to the security in ADF in order to authorize the page to be viewed.
Could you please help and can you point me to any specific link.
Thanks & Regards
Sridhar Doki -
Hi
I have created one application using
GWT-Ext with RPC call but its working fine in tomcat.
but in Apache/1.3.39 server
its not running.I think in web.xml file only i made mistakes.This is my web.xml file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app id="WebApp_ID">
<display-name>MyRpc</display-name>
<servlet>
<servlet-name>/MyRpc/MyService</servlet-name>
<servlet-class>com.ikkoTech.myRpc.server.MyServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>/MyRpc/MyService</servlet-name>
<url-pattern>/MyRpc/MyService</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
Got 404 error with this message
The requested URL /myrpc//MyRpc/MyService was not found on this
server.
Saw this using Firebug
Please suggest me about this.
Thanks in AdvanceNo, the port is okay, because in fact jboss is running, but the servlet is not loaded the mesasge on the web page is a message of the jboss. About the code give some time to post it.
-
Web.xml not working? help!
Hi, I am able de deply correctly on tomcat, but on jboss 4 I have this problem:
When I run my servlet from the browser it says that the resource is not avaible, without any exceptions on the console, it means that couldnt find the servlet to display. But the web.xml is inside the WEB-INF folder and is correctly done, I have reviewed and remaked it several times.
Any idea of the problem, I am using windows XP.No, the port is okay, because in fact jboss is running, but the servlet is not loaded the mesasge on the web page is a message of the jboss. About the code give some time to post it.
-
Servlet mappings in web.xml is not picking up propelry
Hi,
I am developing on java web application in Jdeveloper and trying to deploy in integrated wls.
i have one jsp page, and one java servlet. and added url-pattern and servlet mappings in web.xml, but when running the jsp, it is not picking up the servelt . I am getting the error saying 'The server has not found anything matching the Request-URI.'
Can you help me in fixing this issue.
Thanks in advance.Hi,
I have one Test.html file under public_html folder, and in that html form action url is as below:
<form action="/servlet/testServlet" method="post">
.</form>
and my web.xml content is:
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<servlet>
<display-name>TestServlet</display-name>
<servlet-name>TestServlet</servlet-name>
<servlet-class>oracle.apps.servlet.TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/servlet/testServlet</url-pattern>
</servlet-mapping>
</web-app>
When i run the HTML page, the URL is : http://local:7101/Application1-Test-context-root/Test.html
and when click on button, its redirecting to http://local:7101/servlet/testServlet and getting the error saying that 'The server has not found anything matching the Request-URI' ideally it shuld redirect to http://local:7101/Application1-Test-context-root/servlet/testServlet.
let me know what could be the problem? -
Is there any alternative for adding servlet name in Web.xml?
Hi,
I am new to Weblogic and I have an application(Ear file) which was developed
in Websphere and I am trying to install in weblogic 8.1. I have installed my application
in Websphere without adding servlet entries in Web.xml and it was working fine.
I have installed the same Ear file in Tomcat and added the
following to make all my all servlets work.
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
Is there any alternative of doing like that in WebLogic instead of adding each
and every servlet entry in web.xml because my application has around 200 servlets
Thanks&Regards,
Gopi.Is Servlet servlet same as weblogic.servlet.ServletServlet?
Deepak
Rob Woollen <[email protected]> wrote:
Yes, you could register weblogic.servlet.ServletServlet.
-- Rob
Gopi Krishna wrote:
Hi,
I am new to Weblogic and I have an application(Ear file) whichwas developed
in Websphere and I am trying to install in weblogic 8.1. I have installedmy application
in Websphere without adding servlet entries in Web.xml and it was workingfine.
I have installed the same Ear file in Tomcat and added the
following to make all my all servlets work.
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
Is there any alternative of doing like that in WebLogic instead ofadding each
and every servlet entry in web.xml because my application has around200 servlets
Thanks&Regards,
Gopi. -
Content Search Web Part not work for Office Web Apps
Hi ,
In Content Search Web Part word documents are not able to open in browser,but in document library its working.
Office Web Apps not work in Content search web part
Please help me
Regards
SachinBelow is the display template to open the document in OWA.
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>AdSpace Picture on top, 3 lines on bottom</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:ManagedPropertyMapping msdt:dt="string">'Picture URL'{Picture URL}:'PublishingImage;PictureURL;PictureThumbnailURL','Link URL'{Link URL}:'Path','Line 1'{Line
1}:'Title','Line 2'{Line 2}:'Description','Line 3'{Line 3}:'','FileExtension','SecondaryFileExtension','ContentTypeId','ServerRedirectedURL'</mso:ManagedPropertyMapping>
<mso:MasterPageDescription msdt:dt="string">This Item Display Template will show a 304x100 picture of the item on top. The title and the default item description will display to the bottom of the picture with an additional line that is available
for a custom managed property.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
<mso:TargetControlType msdt:dt="string">;#Content Web Parts;#</mso:TargetControlType>
<mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
<mso:_dlc_DocId msdt:dt="string">ZRMVMDDDEAE7-1-215</mso:_dlc_DocId>
<mso:_dlc_DocIdItemGuid msdt:dt="string">583b0835-32ff-4d1c-983f-b6ff4a0ef956</mso:_dlc_DocIdItemGuid>
<mso:_dlc_DocIdUrl msdt:dt="string">http://sp2013-dev-6:7000/sites/adspace/_layouts/15/DocIdRedir.aspx?ID=ZRMVMDDDEAE7-1-215, ZRMVMDDDEAE7-1-215</mso:_dlc_DocIdUrl>
<mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
<mso:HtmlDesignStatusAndPreview msdt:dt="string">http://sp2013-dev-6:7000/sites/adspace/_catalogs/masterpage/Display Templates/Content Web Parts/Item_PictureOnTop.html, Conversion successful.</mso:HtmlDesignStatusAndPreview>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>
<body>
<!--
Warning: Do not try to add HTML to this section. Only the contents of the first <div>
inside the <body> tag will be used while executing Display Template code. Any HTML that
you add to this section will NOT become part of your Display Template.
-->
<script>
$includeLanguageScript(this.url, "~sitecollection/_catalogs/masterpage/Display Templates/Language Files/{Locale}/CustomStrings.js");
</script>
<!--
Use the div below to author your Display Template. Here are some things to keep in mind:
* Surround any JavaScript logic as shown below using a "pound underscore" (#_ ... _#) token
inside a comment.
* Use the values assigned to your variables using an "underscore pound equals"
(_#= ... =#_) token.
-->
<div id="Item_PictureOnTop">
<!--#_
var useWACUrl = !$isEmptyString(ctx.CurrentItem.ServerRedirectedURL);
if(ctx.ScriptApplicationManager && ctx.ScriptApplicationManager.states){
useWACUrl = (useWACUrl && !ctx.ScriptApplicationManager.states.openDocumentsInClient);
var appAttribs = "";
if(!useWACUrl)
if (!$isEmptyString(ctx.CurrentItem.csr_OpenApp)) { appAttribs += "openApp=\"" + $htmlEncode(ctx.CurrentItem.csr_OpenApp) + "\"" };
if (!$isEmptyString(ctx.CurrentItem.csr_OpenControl)) { appAttribs += " openControl=\"" + $htmlEncode(ctx.CurrentItem.csr_OpenControl) + "\"" };
var url = ctx.CurrentItem.csr_Path;
if($isEmptyString(url)){
if(useWACUrl)
url = ctx.CurrentItem.ServerRedirectedURL;
} else {
url = ctx.CurrentItem.Path;
var encodedId = $htmlEncode(ctx.ClientControl.get_nextUniqueId() + "_pictureOnTop_");
var linkURL = $getItemValue(ctx, "Link URL");
linkURL.overrideValueRenderer($urlHtmlEncode);
var iconURL = Srch.ContentBySearch.getIconSourceFromItem(ctx.CurrentItem);
var line1 = $getItemValue(ctx, "Line 1");
var setLineHeightRenderer = function(valueInfoObj)
if(!$isNull(valueInfoObj) && !valueInfoObj.isEmpty)
if(!$isNull(valueInfoObj.defaultValueRenderer))
return valueInfoObj.defaultValueRenderer(valueInfoObj);
else
return valueInfoObj.toString();
else
return " ";
var line2 = $getItemValue(ctx, "Line 2");
line2.overrideValueRenderer(setLineHeightRenderer);
var line3 = $getItemValue(ctx, "Line 3");
line3.overrideValueRenderer(setLineHeightRenderer);
var pictureURL = $getItemValue(ctx, "Picture URL");
var pictureId = encodedId + "picture";
var pictureMarkup = Srch.ContentBySearch.getPictureMarkup(pictureURL, 304, 100, ctx.CurrentItem, "cbs-pictureOnTopImg", line1, pictureId);
var containerId = encodedId + "container";
var pictureLinkId = encodedId + "pictureLink";
var pictureContainerId = encodedId + "pictureContainer";
var dataContainerId = encodedId + "dataContainer";
var line1LinkId = encodedId + "line1Link";
var line1Id = encodedId + "line1";
var line2Id = encodedId + "line2";
var line3Id = encodedId + "line3";
_#-->
<div class="top-content-box" id="_#= containerId =#_" data-displaytemplate="ItemPictureOnTop">
<div class="top-content-img" id="_#= pictureContainerId =#_">
<a class="cbs-pictureImgLink" href="_#= $urlHtmlEncode(url) =#_" title="_#= $htmlEncode(line1) =#_" target="_blank" id="_#= pictureLinkId =#_">
_#= pictureMarkup =#_
</a>
</div>
<h3 id="_#= line1Id =#_"><a class="cbs-pictureOnTopLine1Link" target="_blank" href="_#= $urlHtmlEncode(url) =#_" title="_#= $htmlEncode(line1) =#_"
id="_#= line1LinkId =#_"> _#= line1 =#_ </a></h3>
<span class="content-date" title="_#= $htmlEncode(line2) =#_" id="_#= line2Id =#_"><img class="cbs-Thumbnail" src="_#= $urlHtmlEncode(iconURL) =#_"
alt="_#= $htmlEncode(line1.defaultValueRenderer(line1)) =#_" id="_#= pictureId =#_" />_#=line2=#_</span>
</div>
</div>
</body>
</html>
Basically,ctx.CurrentItem.ServerRedirectedURL is calculated by a managed property ServerRedirectedURL which needs to be included in the display template.
Problem solved.
Nehal Bhandari,ATL, Nagarro Softwares -
Order of servlet mapping in web.xml
Hello,
is the order of multiple <servlet-mapping> in web.xml important? Or it doesn't matter in which order they are declared?
For example, if i have two controllers, one is
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
and the second:
<servlet>
<servlet-name>FrontController</servlet-name>
<servlet-class>servlets.FrontController</servlet-class>
</servlet>
and the mapping are:
<servlet-mapping>
<servlet-name>FrontController</servlet-name>
<url-pattern>/jsf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>where /jsf/ contains jsp pages containing jsf components.
is the order important?
And may second question is:
if i call the jsp page test.jsf in /jsf/test.jsp , which controller is responseble? Faces servlet or Frontcontroller?Here is what the 2.4 specification says on the matter (section SRV.11.1):
>
The path used for mapping to a servlet is the request URL from the request
object minus the context path and the path parameters. The URL path mapping rules below are used in order. The first successful match is used with no further matches attempted:
1. The container will try to find an exact match of the path of the request to the
path of the servlet. A successful match selects the servlet.
2. The container will recursively try to match the longest path-prefix. This is done by stepping down the path tree a directory at a time, using the �/� character as a path separator. The longest match determines the servlet selected.
3. If the last segment in the URL path contains an extension (e.g. .jsp), the servlet container will try to match a servlet that handles requests for the extension. An extension is defined as the part of the last segment after the last �.� character.
4. If neither of the previous three rules result in a servlet match, the container will attempt to serve content appropriate for the resource requested. If a "default" servlet is defined for the application, it will be used.
The container must use case-sensitive string comparisons for matching.
It also notes that in prior versions of the specification these were only a suggestion so if you are on servlet 2.3 or prior, you need to consult the documentation for your container.
So, to answer your questions, no, order in the descriptor is not important.
Also, based on the rules above, using your mappings, any URL starting with /jsf will be handled by FrontController including /jsf/test.jsp and /jsf/test.jsf. -
How to run java servlet without using Web.xml?
How to run servlet without using Web.xml? From a book, I know that web.xml descriptor is optional, but the book doesn't tell us how to run java servelet without web.xm descriptor. So how to do that? Thanks a lot.
How to run servlet without using Web.xml?But Tomcat now uses a web.xml for its global server-wide configuration.
If you'd like to invoke a servlet with:
http://host/servlet/ServletName
you have to enable the invoker servlet.
[from an HTML]
<FORM METHOD="POST" ACTION="/servlet/HGrepSearchSJ">
[from resin.conf of Resin Web Server 2.1.12]
<!--
- The "invoker" servlet invokes servlet classes from the URL.
- /examples/basic/servlet/HelloServlet will start the HelloServlet
- class. In general, the invoker should only be used
- for development, not on a deployment server, because it might
- leave open security holes.
-->
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
[from TOMCAT5.0.19/conf/web.xml, a global server-wide web.xml file]
<!-- The "invoker" servlet, which executes anonymous servlet classes -->
<!-- that have not been defined in a web.xml file. Traditionally, this -->
<!-- servlet is mapped to URL pattern "/servlet/*", but you can map it -->
<!-- to other patterns as well. The extra path info portion of such a -->
<!-- request must be the fully qualified class name of a Java class that -->
<!-- implements Servlet (or extends HttpServlet), or the servlet name -->
<!-- of an existing servlet definition. This servlet supports the -->
<!-- following initialization parameters (default values are in square -->
<!-- brackets): -->
<!-- -->
<!-- debug Debugging detail level for messages logged -->
<!-- by this servlet. [0] -->
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
---comment out below----------------------------------------------------------
<!-- The mapping for the invoker servlet -->
<!--
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
--> -
Web links not working in iPhone calendar notes. Used to work. Ideas?
Web links not working in iPhone calendar notes. Used to work. Ideas?
Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new). Has any of this been tried?
-
Some web sites not working in FF but they are OK in Safari.
A couple of times lately I have had web sites not work correctly with Firefox. I need to switch to Safari to complete the tasks I needed to do. My FF is running on Mountain Lion and is up to date.
Thanks,
MJTHello michaeljt, the sites you have problem, is it with a lot of flash content ?
Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
Note: ''This will temporarily log you out of all sites you're logged in to.''
To clear cache and cookies do the following:
#Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
#Under "Time range to clear", select "Everything".
#Now, click the arrow next to Details to toggle the Details list active.
#From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
#Now click the ''Clear now'' button.
Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
Please reload the webpage while bypassing the cache using '''one''' of the following steps:
*Hold down the ''Shift'' key and click the ''Reload'' button with the left mouse key.
OR
*Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
*Press ''Command'' + ''Shift'' + ''R'' (Mac)
See if this helps solve the issues you had and please report back to us!
thank you -
Sidecar.xml not working with smoothScrolling
Hi everybody!
I am struggling with a big problem with the sidecar.xml file because it does not load the <smoothScrolling>always</smooothScolling> instruction.
I have created a very simple "test" folio with only two articles each made of two pages either in horizontal and vertical, so I have the followinf structure:
<FOLIO> (main folder)
sidecar.xml
<001> (first stack)
001_v.indd (an indesign file with 1 page 768x1024)
001_h.indd (an indesign file with 1 page 1024x768)
<002> (second stack)
002_v.indd (an indesign file with 2 pages 768x1024)
002_h.indd (an indesign file with 2 pages 1024x768)
I have created the sidecar using the utility of Johannes Henseler so I am sure it is correct and here it is (I have just removed the link section which was very long):
<?xml version="1.0" encoding="UTF-8" standalone="true" ?>
<sidecar>
<!--
sidecar.xml generator by Johannes Henseler
http://projects.nordsueddesign.de/sidecarxml
-->
<!-- article #0 -->
<entry>
<folderName>001</folderName>
<articleTitle>Test</articleTitle>
<author>Puzzle</author>
<kicker>Pilly</kicker>
<description>Cover</description>
<tags></tags>
<isAd>false</isAd>
<smoothScrolling>never</smoothScrolling>
<isFlattenedStack>false</isFlattenedStack>
</entry>
<!-- article #1 -->
<entry>
<folderName>002</folderName>
<articleTitle>Test</articleTitle>
<author>Puzzle</author>
<kicker>Pilly</kicker>
<description>First Article</description>
<tags></tags>
<isAd>false</isAd>
<smoothScrolling>always</smoothScrolling>
<isFlattenedStack>false</isFlattenedStack>
</entry>
</sidecar>
Well.. what it happens now is that I create a new folio with the Folio Builder Panel and then I import using the multiple article option. Everything seems ok (the two articles are imported and the description, article title, author, kicker are correct) but the "smoothScrolling" results to be deactivated! (in my Italian version I have the following text "Scorrimento uniforme: disattivato (allinea a pagina)" (that I translate as "never") instead I was expecting to have "Scorrimento uniforme: entrambe le direzioni" (that I translate as "always").
And what is worse is that if I try to modify the property in Indesign using the Folio Builder Panel I get this error message:
Errore di generazione contenuto.
[Errore: Gli articoli con scorrimento uniforme devono contenere almeno una pagina singola. Aprite la finestra di dialogo Proprietà per modificare le opzioni di scorrimento uniforme.]
I try to translate:
Generating content error.
Error: the articles with smoothScrolling must contains at least a single page. Open the dialogue window Property to modify the options for the smoothScrolling.
Actually the Indesign source files 002_v.indd and 002_h.indd have already two pages so I do not understand what the error means. It just says to modify the property, but this means I can not have the smoothScrolling on "always" and I do not understand why!
I just would like to have a "smoothScrolling" effect between two pages of various articles using the sidecar.xml file!
Please someone can help me?Smooth scrolling and flattenig does not work in combination. I think there
is no way to enable that.
—Johannes
(mobil gesendet)
Am 01.03.2012 17:19 schrieb "Bob Levine" <[email protected]>:
Re: Sidecar.xml not working with smoothScrolling created by Bob Levine<http://forums.adobe.com/people/BobLevine>in
Digital Publishing Suite - View the full discussion<http://forums.adobe.com/message/4239654#4239654> -
"no serializer is registered..." error with a web service not working
I'm using JDeveloper 10.1.3
EJB 3.0
I'm having issues with the web service not working after I create a client for it. The web service works fine up until I generate the proxy on the other side.
ERROR An error occurred for port: {http://buslogic/}MyWebService1SoapHttpPort: no serializer is registered for (class buslogic.runtime.....
I saved the file before I added the proxy and the wsdl looks the same between the working one and the non working one. I can not pin point the when the change to the web service is occuring. It seemed to work once all the way up until I had a ADF page trying to retrieve data, another time it failed when the proxy was created.
I can get the version that I saved to work immediately after the version that does not fails.
Any help would be greatly appreciated,
DanI'm using JDeveloper 10.1.3
EJB 3.0
I'm having issues with the web service not working after I create a client for it. The web service works fine up until I generate the proxy on the other side.
ERROR An error occurred for port: {http://buslogic/}MyWebService1SoapHttpPort: no serializer is registered for (class buslogic.runtime.....
I saved the file before I added the proxy and the wsdl looks the same between the working one and the non working one. I can not pin point the when the change to the web service is occuring. It seemed to work once all the way up until I had a ADF page trying to retrieve data, another time it failed when the proxy was created.
I can get the version that I saved to work immediately after the version that does not fails.
Any help would be greatly appreciated,
Dan
Maybe you are looking for
-
Real Instruments Feedback Garageband 08
I bought ilife 08. I usually use Protools to record with my Mbox but I wanted to screw around with Garageband. I can not for the life of me get real instruments to work. When it records all i get is a feedback loop from the moment I hit the record bu
-
My experience with Satellite X200
Hi everybody, For those of you who are planning on upgrading your X200 laptops, here's an advice from own experience. 1 - Upgrade your RAM from the stock 2GB to 4Gb. I bought my 4Gb on Ebay for 57 euros. You'll notice a REAL increase on your system's
-
When I open a check picture from my bank register it opens in a new window and I cannot print from that window. I want to be able to print to the pdf printer so that I can save a copy of my check to the hard drive. I do not have any access to any pri
-
Does anyone know how to add Audio to iBooks Author and Loop it continuously
I need to Loop a 2 second piece of audio in iBooks Author. When I Preview it on my iPad it doesn't Loop correctly. Can anyone please help me with this strange problem. Thanks in advance. David
-
Moving Layers in a Composition for Better Arrangement
I can't move one layer' image to be under/over another one in the final arrangement space because when I do, they lose all the adjustments I had previously made. Background: I didn't move the adjusted photos into the final space in the right way in t