init-param with &

          hy,
          can anybody help me with a problem?
          Got following init-param in web.xml with <?xml version="1.0" encoding="ISO-8859-1"?>
          set at the beginning.
          <init-param>
          <param-name>removeTemplateCache</param-name>
          <param-value>/content/admin/remove?cache=templates&id=</param-value>
          </init-param>
          Deploying fails with SAXException saying:
          Deployment descriptor "web.xml" is malformed, check against the DTD: The reference
          to entity "id" must end with the ';' delimiter. (line 218, column 56)
          What do I need to do to handle "special characters" in the Deployment Descriptors
          ?? Only Escaping doesn´t really work ..
          Thanks for input.
          Greetings
          

          Seems to be a problem nobody want to answer to ..
          Tried a little and found something that worked:
          <?xml version="1.0" encoding="UTF-8"?>
          <init-param>
          <param-name>removePageCache</param-name>
          <param-value>/content/admin/remove&#x3F;cache=pages&#x26;id=</param-value>
          </init-param>
          The wonder ist called unicode and can be found in more details at: www.unicode.org
          "Markus Eisele" <[email protected]> wrote:
          >
          >hy,
          >
          >can anybody help me with a problem?
          >Got following init-param in web.xml with <?xml version="1.0" encoding="ISO-8859-1"?>
          >set at the beginning.
          >
          ><init-param>
          > <param-name>removeTemplateCache</param-name>
          > <param-value>/content/admin/remove?cache=templates&id=</param-value>
          > </init-param>
          >
          >Deploying fails with SAXException saying:
          >
          >Deployment descriptor "web.xml" is malformed, check against the DTD:
          >The reference
          >to entity "id" must end with the ';' delimiter. (line 218, column 56)
          >
          >What do I need to do to handle "special characters" in the Deployment
          >Descriptors
          >?? Only Escaping doesn´t really work ..
          >
          >Thanks for input.
          >
          >Greetings
          

Similar Messages

  • Init-params in web.xml are not loaded (Tomcat 4)

    Hello all...
    I register a servlet in webapps/<my-servlet>/WEB-INF/web.xml file, and pass 1 <init-param> tag. The file gets parsed (I know because when I made errors tomcat complained during initialization). However, when in the init method of the servlet I try to access this parameter, its not there. In fact, the servlet has NO init params at all.
    =================================================
    I have the following web.xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>XServlet</servlet-name>
    <servlet-class>com.fxcm.xml.xengine.xdas.XServlet</servlet-class>
    <init-param>
    <param-name>xengine.configFile</param-name>
    <param-value>c:/projects/re/das.config/config.xng</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
         <servlet-name>XServlet</servlet-name>
         <url-pattern>/xservlet</url-pattern>
    </servlet-mapping>
    </web-app>
    =======================================================
    I have the following servlet
    * XServlet.java
    * Created on May 6, 2002, 1:17 PM
    package com.fxcm.xml.xengine.xdas;
    import javax.servlet.*;
    import javax.servlet.http.HttpServlet;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletConfig;
    import java.util.Enumeration;
    import com.fxcm.xml.xengine.XEngine;
    public class XServlet extends HttpServlet{
    /** Initiates new XServlet */
    public void init(ServletConfig config)
    throws ServletException
              for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();){
    //This statement never gets printed because the loop never enters here since there are no init parameters
                   System.out.println(e.nextElement());
    super.init(config);
    String str = config.getInitParameter("xengine.configFile");
    System.out.println(str);
    XEngine.init(str.trim()); //This line throws NullPointer, because str is null since there are no initParameters.
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException{
    // res.setContentType( );
              System.out.println("Got post request in XServlet");
    PrintWriter out = res.getWriter();
    out.println(XEngine.process(req.getInputStream()));
    out.flush();
    out.close();
    ================================================================
    I get the follwoing error in the browser:
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         at com.fxcm.xml.xengine.xdas.XServlet.init(Unknown Source)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:400)
    Please help.
    Thank you,
    Elana

    I know what the problem is. If you call servlet with the default URL (http://host/app/servlet/package.Servlet) than Servlet DOES NOT read init parameters. I don't know why it was designed this way.
    To make servlet read init parameters, you have to assign it a name and then call it with that name, like this:
    <servlet>
    <servlet-name>ServletName</servlet-name>
    <servlet-class>package.ServletClass</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServletName</servlet-name>
    <url-pattern>/app/path/ServletName</url-pattern>
    </servlet-mapping>
    You can then call servlet using path specified in url-pattern and read init parameters in the normal way.

  • How to set the init-param debug_mode to "true"

    Hi All,
    I wrote a custome application that will get invoked when I click the link in the SES search result page.
    I could invoke the application. However, getting the following exception when I click one button in my application:
    500 Internal Server Error
    OracleJSP: An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param debug_mode to "true" to see the complete exception message.
    How can see the exceptions I am getting. I mean how can I set the init-param debug_mode to "true".
    Thanks
    Krrish

    Normally application.log is where I look for problems. However this time there's nothing in the application.log file.
    I 'm trying a little experiment with how I build my .ear file. Usually I keep all the dependent jars of my webapp under WEB-INF/lib and then include the .war inside a .ear for command line deployment to Oracle application server (not OC4J standalone). Now I 'm trying place all my dependent library .jar files in the top directory of the .ear and then have a CLASSPATH entry in the .war's META-INF/MANIFEST.MF file to reference those jar files. This way multiple .war files inside my .ear then can reference a common set of jars without having to duplicate then under WEB-INF/lib of each war. Maven2 supports this type of packaging. In some forums this is called "skinny war" packaging.
    With this "skinny war" packaging, my .ear file deploys without errors using admin_client.jar (command line deployment) to the Oracle app server. However when I access the JSF page in one of my apps from the browser, I see this OracleJSP error asking me to set the debug parameter. NOTHING in the application.log file.
    On the application server host I don't have write permissions to all the application server directories (so I can set this debug param in soe global file) . I prefer being able to set this debug flag via my application's deployment plan file or web.xml.
    I have a workaround by making all the .wars inside my .ear "fat" i.e. they will have their own copies of the jars instead of sharing. I guess I can try to setup a OAS shared library and accomplish this too but with the "skinny" war approach the .ear is self contained.

  • Init-param tags and related settings?

    Hello all,
    I am completely new to all this and just recently started training for a product called ServiceCenter and was wondering how the servlet technology works in conjunction with the product.
    There are servlet tags available in the web.xml for servlet names AttachmentDownload, FileDownload, FileUpload, ImageUpload, AttachmentUpload, UniqueUpload, Attachment, Image, Messages, HtmlViewer, SCLink, NavMenu, and ThemeServlet.
    At this time I can find no documentation available for all the init-param tags and related settings along with explanations. If I can understand how this works, I'm sure I can get the appropriate info from the SC engineers.
    And when I say I'm new to this, even that is an understatement but I look forward to a looong career and learning every bit of information passed my way.
    Thanks,
    Andrew

    Sounds like 3rd party API.
    First find out the package names for all of that stuff and then google on that to find the manfacturer's website.

  • XSQL Using bind params with sql LIKE clause

    I am unable to use a bind-param with the LIKE clause in a SELECT statement.
    eg call .../temp.xsql?name=N
    XSQL query is this:
    <xsql:query max-rows="-1" bind-params="name">
    SELECT last_name
    FROM emp
    WHERE last_name LIKE '?%'
    </xsql:query>
    I have tried a few combinations so far with no success eg:
    WHERE last_name LIKE '{@name}%'
    WHERE last_name LIKE ?||%
    Any ideas?

    I highly recommend using XSQL's real bind variable feature wherever you can. You can read about it in the XSQL Online Documentation (Search for the "Using Bind Variables" section).
    Using this feature is more performant and more secure than using textual substitution variables.
    Here's what your page looks like using textual substitution:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" >
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE '{@code}%'
      </xsql:query>
    </page> .
    And here's what it would look like using real bind variables:
    <page connection="UTD4" xmlns:xsql="urn:oracle-xsql">
      <xsql:query null-indicator="yes" bind-params="code">
        SELECT * FROM TC_HL7_SEG WHERE SEGMENT_CODE LIKE ?||'%'
      </xsql:query>
    </page> .
    Using real bind variables allows the database to avoid reparsing the SQL statement everytime, which improves performance.
    Steve Muench
    JDeveloper/BC4J Development Team
    Author, Building Oracle XML Applications

  • Modifying the init-params for third-party handler without redployment?

    Hello,
    I have a custom handler used for authentication as a third-party jar file. This handler has some of the init-params which are configured in web-services.xml deployment descriptor. Typically these init-params change from one test environment to another. So user can change these parameters, but for every change I would need to redploy the application in each environement.
    Is it possible to change these init-params dynamically once application is deployed? I would like to change it after my EAR file containing webservice is deployed and before a webservice invocation is made by the client.
    Any help/guidance will be much appriciated...
    Thanks.

    Duplicate post please do not respond to it. thanks.

  • Problem in retrieving init-param

    Hi,
    I am having some problem while trying to access the initial parameters throught a jsp page.
    Instead of getting the avalues, i am getting null values.
    Here is the web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
    2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <display-name>First Project</display-name>
         <description>A Virtual Shopping Mall</description>
         <!-- Input for ConfigDemoServlet.java -->
         <servlet>
              <servlet-name>ConfigDemoServlet</servlet-name>
              <servlet-class>ConfigDemoServlet</servlet-class>
              <!--Initial parameters -->
              <init-param>
                   <param-name>AdminEmail</param-name>
                   <param-value>[email protected]</param-value>
              </init-param>
              <init-param>
                   <param-name>ContactNo</param-name>
                   <param-value>9886424818</param-value>
              </init-param>
         </servlet>
         <servlet-mapping>
              <servlet-name>ConfigDemoServlet</servlet-name>
              <url-pattern>/servlet/ConfigDemoServlet</url-pattern>
         </servlet-mapping>
    </web-app>And here is my test.jsp
    <%
         String AdminEmail = application.getInitParameter("AdminEmail");
         String ContactNo = application.getInitParameter("ContactNo");
         System.out.println("++++++++++++++++++++++++++++++++++");
         System.out.println(AdminEmail); //Output is null
         System.out.println(ContactNo);  //Output is null
    %>Thanks for your help.

    Haii
    The initParam that u have given has the scope inside the servlet ConfigDemoServlet. So u cant get the initparameter value for the jsp
    if u rite config.getInitParameter("") inside ConfigDemoServlet u willl get teh value..
    regards
    Shanu

  • Changing init-param value for servlet filter after deployment

    Is it possible to change the <param-value> of a servlet filter's <init-param> for a deployed app through Weblogic Console? Can't seem to find a place in the console where this is exposed.
    The <init-param> of course is specified in web.xml as:
    <filter>
    <filter-name>foo</filter-name>
    <filter-class>bar</filter-class>
    <init-param>
    <param-name>name</param-name>
    <param-value>value</param-value>
    </init-param>
    </filter>

    Hi,
    U can use "Plan.xml" feature provided by WLS to change the Deployment Descriptor values without Editing Physically inside your WAR or EAR or JAR application.
    Please refer to:
    http://forums.oracle.com/forums/thread.jspa?threadID=1107834
    http://weblogic-wonders.com/weblogic/2009/12/16/updating-cookiename-using-plan-xml/
    http://weblogic-wonders.com/weblogic/2010/03/14/adding-workmanager-using-plan-xml-to-a-war-file/
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com (Middleware Wonders Are Here)

  • Initi Param prerequisite failure in RCU for Webcenter schemas

    am geting this error
    he following error:
    RCU-6107:DB Init Param Prerequisite failure for: open_cursors. Current value is 300, it should be greater than or equal to 500.
    i did the folowing
    SQL> ALTER SYSTEM SET PROCESSES=1000 SCOPE=SPFILE;
    System altered.
    SQL> commit;
    Commit complete.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> connect /as sysdba
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  535662592 bytes
    Fixed Size                  1375792 bytes
    Variable Size             373293520 bytes
    Database Buffers          155189248 bytes
    Redo Buffers                5804032 bytes
    Database mounted.
    Database opened.
    SQL> show parameters processes;
    NAME                                 TYPE        VALUE
    aq_tm_processes                      integer     0
    db_writer_processes                  integer     1
    gcs_server_processes                 integer     0
    global_txn_processes                 integer     1
    job_queue_processes                  integer     0
    log_archive_max_processes            integer     4
    processes                            integer     1000
    SQL>
    STILL geting error
    RCU-6083:Failed - Check prerequisites requirement for selected component:OID Please refer to RCU log at C:\oracle\Middleware\rcuHome\rcu\log\logdir.2013-11-07_21-47\rcu.log for details. RCU-6107:DB Init Param Prerequisite failure for: open_cursors Current Value is 300. It should be greater than or equal to 500. RCU-6092:Component Selection validation failed. Please refer to log at C:\oracle\Middleware\rcuHome\rcu\log\logdir.2013-11-07_21-47\rcu.log for details.

    i did that ,i even switch off the pc,the error stl the same
    SQL> connect /as sysdba
    Connected.
    SQL> show parameters processes;
    NAME                                 TYPE        VALUE
    aq_tm_processes                      integer     0
    db_writer_processes                  integer     1
    gcs_server_processes                 integer     0
    global_txn_processes                 integer     1
    job_queue_processes                  integer     0
    log_archive_max_processes            integer     4
    processes                            integer     500
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    RCU-6083:Failed - Check prerequisites requirement for selected component:OID Please refer to RCU log at C:\oracle\Middleware\rcuHome\rcu\log\logdir.2013-11-07_22-21\rcu.log for details. RCU-6107:DB Init Param Prerequisite failure for: open_cursors Current Value is 300. It should be greater than or equal to 500. RCU-6092:Component Selection validation failed. Please refer to log at C:\oracle\Middleware\rcuHome\rcu\log\logdir.2013-11-07_22-21\rcu.log for details.

  • f:param with commandlink

    Is it possible to use a param with a commandLink?

    hi! i am quite new to JSF and to JSP for that matter, I do have a question though with the posted reply in using <f:param> with the commandlink.
    Let's say I have included that statement and what I need to do when the user clicks on the link is to continue onto the next JSP page. Now, I intend to use the value of the parameter and set it to a bean.
    Can you or anyone enlighten me on how I can manage to do this? Thanks a bunch!

  • Init-params and jsp

    I'm using Tomcat. Is there a way to specify an init-param for a) a JSP program, and/or b) any servlet in the context?
    As far as I can figure out, the only way to set init-params in Tomcat is to put them inside a <servlet> tag. But then they are only accessible by that one servlet. What if I want the same init-param to be used by many servlets? Similarly, there is no <servlet> tag for a JSP, so is there some place to put init-param's for JSP's?

    you can define application level init params
    <web-app>
    <context-param>
         <param-name>...</param-name>
         <param-value>...</param-value>
    </context-param>
    </web-app>
    And you use ServletContext.getInitParameter() to get the values (aka application.getInitParameter())

  • Init yellow with 0 records

    Dear All,
    After restoring source sytem , when  i m trying to run init for masterdata my request is yellow with zero  0 0 records..
    Please advise
    Regards
    Shweta

    Hi,
    In monotoring screen select 0 From 0 and in the main menu Enivironment--> Job overview --> In the source system then It will go to ECC side there check ur job status in R/3. If the job is continuing then check SM58 in R/3 is there any IDOC's strucked.
    Regards,
    Sharma. IVN

  • Ip_arp_done: init failed with iprb device

    Hi all,
    Solaris x86 3/05 (FCS) unpatched: After a reboot, my iprb0 network interface ends up with the same IP as the loopback interface, is marked down, has no route, and doesn't work until I manually ifconfig it. It seems to work fine after the manual ifconfig, though. The "ip_arp_done: init failed" message appears in the system log, which implies to me that iprb isn't getting going like it should at boot. This machine suffered a disk failure, Solaris was reinstalled, and I'm afraid I missed some step required to get iprb going at boot though I don't recall this problem (nor the "ip_arp_done" message) immediately following the reinstallation and subsequent reboots.
    The /etc/hostname.iprb0 file and the driver's announcement in the system log all seem fine.
    Does anyone have any insight into this problem?
    Thanks very much,
    Dave

    Hello, all!
    Just to share my experience with my Solaris 10:
    -bash-3.00# cat /etc/dhcp.iprb0
    wait 60After that, the message ip_arp_done: init failed disappear!

  • Is 2 INIT possible with selective data

    Hi
    I m havg around 50000 consumer data, and in cube it's not uploading the whole data in one go, can i do 2 INIT with SELECTIVE UPLOADING means 25000 consumer first time and 25000 consumer 2nd time only through INIT.
    Gaurav

    Hi,
    You can not do 2 init's.
    Instead of that You do the following steps.
    1. Init without data transfer.> In the init info package> in the update tab , select the check box , "Initialize without data transfer".
    The system will update 1 record, to the data target.(Its just a pointer).
    2. Repair full request.(Create another info package and select the update type as "Full" and in the Menu>"Scheduler">Select the Repair Full request.
    The data will be loaded to the cube in full mode without disturbing the Init pointer.
    3. Delta.-->Next time onwards you can schedule the delta.
    Hope it helps...

  • Using Template Params with links

    Hi all, I was wondering how I could use a template parameters
    to change all links' prefix. For example all pages on my site will
    use relative paths to pages within the site. A few pages in the
    site are secure and therefore get directed to a "secure" server so
    the URL becomes different. Those pages cannot use relative URL's to
    get back to the 'normal', unsecured, site so they must use complete
    path "
    http://www.whatever.com/" in
    front of the links. I'm thinking I can make two template params
    like so:
    <!-- TemplateParam name="rootSite" type="text" value="
    http://www.whatever.com" -->
    <!-- TemplateParam name="pageSecure" type="boolean"
    value="true" -->
    but I some how need it to search through the document for all
    links and put the 'rootSite' inserted before whats already there.
    Can this be done??? If so, how?
    Thanks in advance!
    Buddy

    I would make this -
    <!-- TemplateParam name="rootSite" type="text"
    value="
    http://www.whatever.com"
    be this -
    <!-- TemplateParam name="rootSite" type="text"
    value="
    http://www.whatever.com/"
    Find (in current document) -
    <a href="
    Replace with -
    <a href="@@(rootSite)@@
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "buddyq" <[email protected]> wrote in
    message
    news:elp9s5$7k1$[email protected]..
    > Hi all, I was wondering how I could use a template
    parameters to change
    > all
    > links' prefix. For example all pages on my site will use
    relative paths to
    > pages within the site. A few pages in the site are
    secure and therefore
    > get
    > directed to a "secure" server so the URL becomes
    different. Those pages
    > cannot
    > use relative URL's to get back to the 'normal',
    unsecured, site so they
    > must
    > use complete path "
    http://www.whatever.com/" in
    front of the links. I'm
    > thinking I can make two template params like so:
    >
    > <!-- TemplateParam name="rootSite" type="text"
    > value="
    http://www.whatever.com"
    > -->
    > <!-- TemplateParam name="pageSecure" type="boolean"
    value="true" -->
    >
    > but I some how need it to search through the document
    for all links and
    > put
    > the 'rootSite' inserted before whats already there. Can
    this be done??? If
    > so,
    > how?
    >
    > Thanks in advance!
    >
    > Buddy
    >

Maybe you are looking for

  • Mail synch

    When I read and/or dispose of an email on one device it continues to appear as unread in others,.  Devices in question are iMac, MacBook Air, iPad mini and iPhone

  • Low battery life, heat or noise with Macbook pro? SOLUTION HERE

    Low Battery? Warm unit on Idle? Loud fan? Likely solution is here.. I have a new 15" and had these issues, found the only working solution in the thread below, safe and easy to use. If you are worried do a time machine backup before doing this. Go he

  • Calender function on new BB10 not working

    when I now go to add a new event it kicks me out

  • IPhoto is on my dock, but won't open

    iPhoto is on my MacBook Pro's dock, but it will not open. When I click it a "?" appears on it, but that's it. Also the iPhoto icon is no longer in the Apps folder. I didn't, at least not knowingly, delete the app. I don't have the disk needed to rein

  • Online storage fs but with offline support?

    Hi Guys, I need to install something on our company laptops which means that everything they write in particular folders are sync to cloud storage (preferrably S3, so we can use it with our other infrastructure), but it also needs to be locally avail