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())

Similar Messages

  • Problem with accessing init parameters from JSP file

    Hi,
    I have my init parameters and Jsp configured in web.xml
    <servlet>
              <servlet-name>TestJsp</servlet-name>
              <jsp-file>/Test.jsp</jsp-file>
              <init-param>
                   <param-name>username</param-name>
                   <param-value>Balboa</param-value>
              </init-param>
    </servlet> How do I access 'username' field from JSP file.
    Kindly help.
    Thanks.

    you can do this in the jsp
    <%=config.getInitParameter("username")%>or do it in the jspInit method in the jsp:
    <%!  String userName = null; 
      public void jspInit() {   
        ServletConfig config = getServletConfig();   
        userName   = config.getInitParameter("userName ");  
    %>
    Hello <%=userName%>

  • Jsp include and jsp param

    Hi All,
    I have the following:
    <jsp:include page="anotherPage.jsp">
            <jsp:param name="testing" value="sdfasdfsd"/>
    </jsp:include> And in anotherPage.jsp I have:
    <%@ taglib uri="/WEB-INF/tld/commons-log.tld" prefix="log" %>
    <log:dump scope="request"/>
    <log:dump scope="session"/>
    <log:dump scope="page"/>
    <log:dump scope="application"/>
    <h3>
    Test: <%= request.getParameter("testing") %>
    </h3>Not only does this output:
    Test: null
    but I don't see 'testing' anywhere in the dumps! What is going wrong?
    Have I badly misunderstood parameter sending? :-/
    Actually, my assumption was that the include code puts the "testing" variable
    into the request.. 1) where does jsp:param put the data items it
    passes through and 2) if the data item didn't previously exist as a
    request parameter, does it ignore it?
    Any assistance would be most appreciated!
    Rob
    :)

    Depends on the server version you are using. If you are using a JSP 2.0 server like Tomcat 5, then you should be able to do that, as long as you set up the container correctly (to use servlet 2.4 and JSP 2.0 specs rather than 2.3 and 1.2...)
    Is you are using a JSP 1.2 container (less then TC5) then you will not be able to use EL anyware except in JSTL tags. The fix is to use the JSTL tags to do the include:
    <c:import url="thepage.jsp">
      <c:param name="param1" value="${attr}"/>
    </c:import>

  • 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.

  • Get init parameter from JSP

    Hello folks
    First of all, I want to say sorry for my English.
    Well, I have one jsp file and I want to pass one value from web.xml file to it but I don't know how
    I also did the same thing with servlet and it's OK, I used function getInitParameter in ServletConfig and modified file web.xml in Tomcat 3.2.
    Please help me
    Thanks in advance.

    Hi,
    For example, if your web.xml has something like:
    <context-param>
    <param-name>testParam</param-name>
    <param-value>[email protected]</param-value>
    </context-param>
    You can access the "testParam" init param from within your JSP scriptlet as:
    String value = getServletContext().getInitParameter("testParam");
    where "testParam" matches the <param-name> element of one of these initialization parameters.
    Hope that helps.
    Regards,
    Senthil Babu
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Help With Integrating Servlet and JSP Page?

    Hello There
    --i made jsp page that contain name and description fields and add button
    --and i made servlet that contain the code to insert name and description in the database
    --and i want to make that when the user hit the add button
    -->the entered name and description is sent to the servlet
    and the servlet sent them to database?
    here's what i 've done:
    the jsp code:
    <html:html locale="true">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>
            Categories Page
           </title>
            <html:base/>
        </head>
        <body style="background-color: white">
        <form action="jpage.jsp" method="get">
            <h1>
                <center>
    categories Operations
                </center>
            </h1>
            <h3>
                 <label>Name</label>
            <input type="text" name="name" value="" size="10" />
                 <label>Description</label>
             <input type="text" name="description" value="" size="10" />
             <input type="submit" value="Add" name="button" />
           </h3>
       </form>
        </body>
    </html:html>the servlet code:
    import java.io.*;
    import java.util.Enumeration;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.net.*;
    class NewServlet1 extends HttpServlet{
         Connection conn;
         private ServletConfig config;
    public void init(ServletConfig config)
      throws ServletException{
         this.config=config;
    public void service (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
       HttpSession session = req.getSession(true);
       res.setContentType("text/html");
    try{
         Class.forName("com.mysql.jdbc.Driver");
       conn = DriverManager.getConnection("jdbc:mysql://localhost/struts", "root", "");
         PreparedStatement ps;
       ps = conn.prepareStatement ("INSERT INTO categories (Name, Description) VALUES(?,?)");
          ps.setString (1, "aa");
          ps.setString (3, "bb");
          ps.executeUpdate();
          ps.close();
          conn.close();
      }catch(Exception e){ e.getMessage();}
      public void destroy(){}
    }

    The JSP Code:
    <html:html locale="true">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>
            Categories Page
           </title>
            <html:base/>
        </head>
        <body style="background-color: white">
        <form action="actionServlet.do?action=Additem" method="*post*">
            <h1>
                <center>
    categories Operations
                </center>
            </h1>
            <h3>
                 <label>Name</label>
            <input type="text" name="name" value="" size="10" />
                 <label>Description</label>
             <input type="text" name="description" value="" size="10" />
             <input type="button" value="Submit">
           </h3>
       </form>
        </body>
    </html:html>The Servlet Code:
    import java.io.*;
    import java.util.Enumeration;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.net.*;
    public class NewServlet1 extends HttpServlet implements SingleThreadModel {
        public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException {
            doPost(request,response);
        public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException,IOException {
              String action = request.getParameter("action"); // action = "Additem"
              if (action.equals("Additem")) {
                   String name = request.getParameter("name");
                   String description = request.getParameter("description");
                         RequestDispatcher reqDisp = null;
                   try{
                  Connection conn;
                  PreparedStatement ps;
         Class.forName("com.mysql.jdbc.Driver");
       conn = DriverManager.getConnection("jdbc:mysql://localhost/struts", "root", "");
       ps = conn.prepareStatement ("INSERT INTO categories (Name, Description) VALUES(?,?)");
          ps.setString (1, name);
          ps.setString (3, description);
          ps.executeUpdate();
          ps.close();
          conn.close();
          reqDisp= request.getRequestDispatcher("./index.jsp");
          reqDisp.forward(request, response);
                   catch (Exception ex){
                        System.out.println("Error: "+ ex);
    }The web.xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" 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">
        <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
            <init-param>
                <param-name>debug</param-name>
                <param-value>2</param-value>
            </init-param>
            <init-param>
                <param-name>detail</param-name>
                <param-value>2</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
            </servlet>
        <servlet>
            <servlet-name>NewServlet1</servlet-name>
            <servlet-class>NewServlet1</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>action</servlet-name>
            <url-pattern>*.do</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>NewServlet1</servlet-name>
            <url-pattern>/NewServlet1</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
            </welcome-file-list>
            <servlet>
         <servlet-name>actionServlet</servlet-name>
         <servlet-class>com.test.servlet.NewServlet1</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>actionServlet</servlet-name>
         <url-pattern>*.do</url-pattern>
    </servlet-mapping>
        </web-app>

  • Weblogic webservices and JSP

    Hi Folks,
    I have been stuck with this issue for quite sometime now. I have developed a simple webservice using a java class. It looks something like this..
    public class ReceiveMessageClass{
       public void receiveMessage(String msg){
          logIt(msg);
          //Store 'msg' in a memory variable so that the JSP can ping it every 10 sec and read it..
    }Now, I need a webpage to look at all the messages I recieve at this webservice. Sounds pretty easy? I have done this with Axis. I can create a WAR and my webservice and my JSP can co-exist and share a variable in memory. But with weblogic, a EAR is created and I am not sure how to get my JSP into the EAR. I am not sure how I can store this 'msg' into memory(some static vbl) and then have my JSP read it and display it.
    Any suggestions?

    I do not see any weblogic classes in the stack trace. So could this
    be something to do with tomcat?
    If you are just using the client side of the web services stack, you
    only need the Client.jar and webserviceclient.jar file in your war.
    Regards,
    -manoj.
    http://manojc.com
    "Stephen Zeng" <[email protected]> wrote in message
    news:3ef1d72c$[email protected]..
    >
    I have packed Client.jar, weblogic.jar, webservices.jar and jsp as aseperated
    war to call web sevice and run sucessfully in WLS7.0. But when I ran inTomcat
    4.0.1, I got the following error. I try set javax.xml.rpc.ServiceFactoryas context
    param in web.xml, but no use. <p>
    java.lang.ClassCastException <br>
    atjavax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
    java:93)<br>
    atorg.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)<
    br>
    atorg.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
    che.java:165)<br>
    atorg.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
    atorg.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
    at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
    atorg.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
    atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
    va:214)
    atorg.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
    66)
    atorg.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    Stephen

  • 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

  • Taglib and JSP problem

    Hi!
    I cannot determine why I'm getting the following error:
    I've installed Apache Tomcat/4.0.6
    "PARSE error at line 6 column 19
    org.xml.sax.SAXParseException: Element type "taglib" must be declared."
    Can you tell why the parser does not recognize it?
    Appreciate any help.
    ele
    [my JSP]
    <%@ page language="java" import="java.lang.*,java.util.*,javax.servlet.jsp.*,java.io.PrintWriter,javax.servlet.http.HttpServletResponse,javax.servlet.jsp.JspWriter" %>
    <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
    [my web.xml]
    <?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>
    <display-name>SegDis</display-name>
    <description></description>
    <servlet>
    <servlet-name>ScriviPunto</servlet-name>
    <servlet-class>ScriviPunto</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>lanciaScriviPunto</servlet-name>
    <jsp-file>/lanciaScriviPunto.jsp</jsp-file>
    </servlet>
    <servlet>
    <servlet-name>segnalazione</servlet-name>
    <jsp-file>/segnalazione.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>ScriviPunto</servlet-name>
    <url-pattern>/scriviPunto</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>lanciaScriviPunto</servlet-name>
    <url-pattern>/lanciaScriviPunto.jsp</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>segnalazione</servlet-name>
    <url-pattern>/segnalazione.jsp</url-pattern>
    </servlet-mapping>
    <taglib>
         <taglib-uri>/WEB-INF/c.tld</taglib-uri>
         <taglib-location>/WEB-INF/c.tld</taglib-location>
    </taglib>
    </web-app>
    [the .tld file (downloaded from Sun)]
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>c</short-name>
    <uri>http://java.sun.com/jstl/core</uri>
    <display-name>JSTL core</display-name>
    <description>JSTL 1.0 core library</description>
    <validator>
    <validator-class>
         org.apache.taglibs.standard.tlv.JstlCoreTLV
    </validator-class>
    <init-param>
         <param-name>expressionAttributes</param-name>
         <param-value>
         out:value
         out:default
         out:escapeXml
         if:test
         import:url
         import:context
         import:charEncoding
         forEach:items
         forEach:begin
         forEach:end
         forEach:step
         forTokens:items
         forTokens:begin
         forTokens:end
         forTokens:step
         param:encode
         param:name
         param:value
    redirect:context
    redirect:url
         set:property
         set:target
         set:value
         url:context
         url:value
         when:test
         </param-value>
         <description>
         Whitespace-separated list of colon-separated token pairs
         describing tag:attribute combinations that accept expressions.
         The validator uses this information to determine which
         attributes need their syntax validated.
         </description>
    </init-param>
    </validator>
    <tag>
    <name>catch</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Catches any Throwable that occurs in its body and optionally
    exposes it.
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>choose</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Simple conditional tag that establishes a context for
    mutually exclusive conditional operations, marked by
    <when> and <otherwise>
    </description>
    </tag>
    <tag>
    <name>out</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.OutTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Like <%= ... >, but for expressions.
    </description>
    <attribute>
    <name>value</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>default</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>escapeXml</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>if</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.IfTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Simple conditional tag, which evalutes its body if the
    supplied condition is true and optionally exposes a Boolean
    scripting variable representing the evaluation of this condition
    </description>
    <attribute>
    <name>test</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>import</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ImportTag</tag-class>
    <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
    <body-content>JSP</body-content>
    <description>
         Retrieves an absolute or relative URL and exposes its contents
         to either the page, a String in 'var', or a Reader in 'varReader'.
    </description>
    <attribute>
    <name>url</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>varReader</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>context</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>charEncoding</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>forEach</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ForEachTag</tag-class>
    <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
    <body-content>JSP</body-content>
    <description>
         The basic iteration tag, accepting many different
    collection types and supporting subsetting and other
    functionality
    </description>
    <attribute>
         <name>items</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>begin</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>end</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>step</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>var</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>varStatus</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>forTokens</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ForTokensTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Iterates over tokens, separated by the supplied delimeters
    </description>
    <attribute>
         <name>items</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>delims</name>
         <required>true</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>begin</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>end</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>step</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>var</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
         <name>varStatus</name>
         <required>false</required>
         <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>otherwise</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Subtag of <choose> that follows <when> tags
         and runs only if all of the prior conditions evaluated to
         'false'
    </description>
    </tag>
    <tag>
    <name>param</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.ParamTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Adds a parameter to a containing 'import' tag's URL.
    </description>
    <attribute>
    <name>name</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>redirect</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.RedirectTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Redirects to a new URL.
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>url</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>context</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>remove</name>
    <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
    <body-content>empty</body-content>
    <description>
         Removes a scoped variable (from a particular scope, if specified).
    </description>
    <attribute>
    <name>var</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>set</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.SetTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Sets the result of an expression evaluation in a 'scope'
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>target</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>property</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>url</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.UrlTag</tag-class>
    <body-content>JSP</body-content>
    <description>
         Prints or exposes a URL with optional query parameters
    (via the c:param tag).
    </description>
    <attribute>
    <name>var</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>scope</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>value</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
    <name>context</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    <tag>
    <name>when</name>
    <tag-class>org.apache.taglibs.standard.tag.el.core.WhenTag</tag-class>
    <body-content>JSP</body-content>
    <description>
    Subtag of <choose> that includes its body if its
    condition evalutes to 'true'
    </description>
    <attribute>
    <name>test</name>
    <required>true</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    </taglib>

    this is a wild guess, but make sure the taglib text you added to your web.xml doens't contain funky characters you may have copied from some web page. i.e. retype it by hand if you copied it.
    If that isn't it.. sorry i don't see a problem.

  • Ejb3 app functions only when both .jsf and .jsp is present

    Hi All,
    I have the following problem: when I try to remove either of booking.jsp and booking.jsf (having same contents) from the directory tree of app.war (following), I get the message HTTP status 404 The requested resource (/s_ejb3_jb421_tobbfele/pages/booking.jsp) is not available.
    Thank you in advance: Balazs Bamer
    JBoss 4.2.1 output:
    16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
    16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
    16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
    16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
    16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
    16:23:21,101 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
    16:23:21,121 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
    app.war (inside s_ejb3_jb421_tobbfele.ear) contents, with only the booking.jsf:
    META-INF/
    META-INF/MANIFEST.MF
    WEB-INF/
    WEB-INF/web.xml
    WEB-INF/lib/
    WEB-INF/lib/com-sun-rave-designtime.jar
    WEB-INF/lib/commons-beanutils.jar
    WEB-INF/lib/commons-chain.jar
    WEB-INF/lib/commons-codec.jar
    WEB-INF/lib/commons-collections.jar
    WEB-INF/lib/commons-digester.jar
    WEB-INF/lib/commons-el.jar
    WEB-INF/lib/commons-fileupload.jar
    WEB-INF/lib/commons-lang.jar
    WEB-INF/lib/commons-logging.jar
    WEB-INF/lib/commons-validator.jar
    WEB-INF/lib/jakarta-oro.jar
    WEB-INF/lib/jsfcl-dt.jar
    WEB-INF/lib/jsfcl.jar
    WEB-INF/lib/jstl-api.jar
    WEB-INF/lib/jstl-impl.jar
    WEB-INF/lib/openide.jar
    WEB-INF/lib/propertyeditors.jar
    WEB-INF/lib/shale-clay.jar
    WEB-INF/lib/shale-core.jar
    WEB-INF/lib/shale-remoting.jar
    WEB-INF/lib/shale-tiger.jar
    WEB-INF/lib/shale-tiles.jar
    WEB-INF/lib/shale-view-1.0.4.jar
    WEB-INF/lib/tiles-core.jar
    WEB-INF/lib/tomahawk-1.1.2-SNAPSHOT.jar
    WEB-INF/classes/
    WEB-INF/classes/com/
    WEB-INF/classes/com/loxon/
    WEB-INF/classes/com/loxon/shaleproba/
    WEB-INF/classes/com/loxon/shaleproba/FlightServlet.class
    booking_messages.properties
    booking_messages_en.properties
    booking_messages_es.properties
    booking_messages_fr.properties
    images/
    pages/
    theme/
    index.html
    pages/booking.jsf
    theme/style.css
    WEB-INF/faces-config.xml
    index.html:
    <html>
    <head>
      <meta http-equiv="Refresh" content="0; URL=pages/booking.jsf">
    </head>
    </html>faces-config.xml:
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
            <managed-bean>
                    <managed-bean-name>flightServlet</managed-bean-name>
                    <managed-bean-class>com.loxon.shaleproba.FlightServlet</managed-bean-class>
                    <managed-bean-scope>request</managed-bean-scope>
            </managed-bean>
    </faces-config>web.xml:
    <?xml version="1.0"?>
    <web-app   xmlns="http://java.sun.com/xml/ns/j2ee"
                       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">
        <description>debug web.xml</description>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
            <description>
                State saving method: "client" or "server" (= default)
                See JSF Specification 2.5.2
            </description>
        </context-param>
        <context-param>
            <param-name>javax.faces.ALLOW_JAVASCRIPT</param-name>
            <param-value>true</param-value>
            <description>
                This parameter tells MyFaces if javascript code should be allowed in the
            </description>
        </context-param>
        <context-param>
            <param-name>javax.faces.DETECT_JAVASCRIPT</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.PRETTY_HTML</param-name>
            <param-value>true</param-value>
            <description>
                If true, rendered HTML code will be formatted, so that it is "human readable".
                i.e. additional line separators and whitespace will be written, that do not
                influence the HTML code.
                Default: "true"
            </description>
        </context-param>
        <context-param>
            <param-name>javax.faces.AUTO_SCROLL</param-name>
            <param-value>true</param-value>
            <description>
                If true, a javascript function will be rendered that is able to restore the
                former vertical scroll on every request. Convenient feature if you have pages
                with long lists and you do not want the browser page to always jump to the top
                if you trigger a link or button action that stays on the same page.
                Default: "false"
            </description>
        </context-param>
        <filter>
            <filter-name>extensionsFilter</filter-name>
            <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
            <init-param>
                <param-name>maxFileSize</param-name>
                <param-value>20m</param-value>
                <description>Set the size limit for uploaded files.
                    Format: 10 - 10 bytes
                            10k - 10 KB
                            10m - 10 MB
                            1g - 1 GB
                </description>
            </init-param>
            <init-param>
                <param-name>uploadThresholdSize</param-name>
                <param-value>100k</param-value>
                <description>Set the threshold size - files
                        below this limit are stored in memory, files above
                        this limit are stored on disk.
                    Format: 10 - 10 bytes
                            10k - 10 KB
                            10m - 10 MB
                            1g - 1 GB
                </description>
            </init-param>
        </filter>
        <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
        </filter-mapping>
        <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
         </filter-mapping>
      <filter>
        <filter-name>shale</filter-name>
        <filter-class>
          org.apache.shale.faces.ShaleApplicationFilter
        </filter-class>
      </filter>
      <filter-mapping>
        <filter-name>shale</filter-name>
        <url-pattern>/*</url-pattern>
        <dispatcher>REQUEST</dispatcher>
        <dispatcher>FORWARD</dispatcher>
      </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <welcome-file-list>
            <welcome-file>index.html</welcome-file>
        </welcome-file-list>
    </web-app>booking.jsf:
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://struts.apache.org/shale/core" prefix="s" %>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <html>
    <head>
      <title>Metro Systems </title>
      <link href="../theme/style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="container">
    <f:loadBundle basename="booking_messages" var="booking_messages"/>
      <f:view>
          <h3> <h:outputText value="#{booking_messages['welcome']}"/>  </h3>
       <h:form onsubmit="return validateForm(this);">
         <table align="center" cellpadding="5" cellspacing="5">
           <tr>
             <td>Email</td>
             <td><h:inputText id="email" value="#{flightServlet.flight.email}">
                        <s:commonsValidator type="required"
                              arg="Email"
                              server="true"
                              client="true"/>
                        <s:commonsValidator type="email"
                                 arg="#{flightServlet.flight.email}"
                              server="true"
                              client="true"/>
                 </h:inputText>
             </td>
           </tr>
           <tr>
             <td><h:outputText id="departure" value="#{booking_messages['date']}"/></td>
             <td>
                <t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
                    currentDayCellClass="currentDayCell" value="#{flightServlet.flight.departure}" renderAsPopup="true"
                    popupTodayString="#{booking_messages['popup_today_string']}" popupWeekString="#{booking_messages['popup_week_string']}">
                        <s:commonsValidator type="required"
                              arg="Departure date"
                              server="true"
                              client="true"/>
                 </t:inputCalendar>
            </td>
           </tr>
           <tr>
             <td><h:outputText value="#{booking_messages['city']}"/> </td>
             <td> <h:selectOneMenu value="#{flightServlet.flight.city}" required="true">
                                 <f:selectItem itemLabel="Los Angeles" itemValue="Los Angeles"/>
                                 <f:selectItem itemLabel="Madrid" itemValue="Madrid"/>
                                 <f:selectItem itemLabel="Mexico City" itemValue="Mexico City"/>
                                 <f:selectItem itemLabel="New York" itemValue="New York"/>
                                 <f:selectItem itemLabel="Paris" itemValue="Paris"/>
                </h:selectOneMenu></td>
           </tr>
         </table>
         <h:message for="email" styleClass="errors"/>
         <h:message for="departure" styleClass="errors"/>
         <s:validatorScript functionName="validateForm"/>
         <h:commandButton type="submit" value="#{booking_messages['reserve']}" action="#{flightServlet.reserve}"/>
        <h:messages/>
      </h:form>
      </f:view>
        </div>
    </body>
    </html>ear application.xml:
    <application>
      <display-name>JSF Shale EJB3 JBoss 4.2.1</display-name>
      <module>
        <web>
          <web-uri>app.war</web-uri>
          <context-root>/s_ejb3_jb421_tobbfele</context-root>
        </web>
      </module>
      <module>
        <ejb>app.jar</ejb>
      </module>
    </application>ear jboss-ap.xml:
    <jboss-app>
      <loader-repository>
        s_ejb3_jb421_tobbfele:archive=s_ejb3_jb421_tobbfele.ear
      </loader-repository>
    </jboss-app>

    <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>tells JSF, that it will get accessed via urls which end in jsf. So it's just a logical name
    e.g. index.jsf
    <context-param>
         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
         <param-value>.jsp</param-value>
    </context-param>Tells JSF that the content filename will end in .jsp
    Default is jsp anyway, so this param is optional.
    Edit:
    http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html
    Chapter "Creating the index.jsp File" might help you with the question about processing "jsp only" pages
    Edited by: dube on Oct 26, 2007 2:11 AM

  • 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.

  • 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.

  • Urgent: mwrchading  workbench and jsp ref in not up: says connection  reset

    Hi all,
    Urgent advise for the same, application is down as merchanding and jsp ref is no wroking.. here is log i found from /app/endeca/Workbench/workspace/logs..
    i have tried to restart the tools and endeca http serverics however no go, please advise, urgent:
    [endeca@ukrlpend004 logs]$ vi catalina.2012-11-19.log
    19-Nov-2012 07:46:04 org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.
    19-Nov-2012 07:46:04 org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.
    19-Nov-2012 07:46:04 org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.
    19-Nov-2012 07:46:04 org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use<null>:8006
    at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:509)
    at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    19-Nov-2012 07:46:04 org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use<null>:8006
    at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
    at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
    at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
    at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    19-Nov-2012 07:46:04 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 171 ms
    19-Nov-2012 07:46:04 org.apache.catalina.core.StandardService start
    INFO: Starting service Standalone
    Regards,
    Diwaker

    Actually, tools services are not getting started even after running the command for toold services.
    Below are i the commanf i have ran..
    $ENDECA_ROOT/tools/server/bin/shutdown.sh
    $ENDECA_ROOT/tools/server/bin/startup.sh
    [endeca@server bin]$ ps -ef | grep Endeca
    endeca 16776 21961 0 11:54 pts/2 00:00:00 grep Endeca
    Please advise, there are no process for the endeca ending with bootstarp start.

  • 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 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
              

Maybe you are looking for

  • Blank Page after login

    Hello Experts, I have installed Cisco Security Manger with  RME 4.2 and Comman Services 3.2. RME database was consuming extra ordinary space in C: Drive, which make C Drive full. so the solution i went is: I have reinitialize the RME database success

  • POSTING INVOICE AFTER MIRO

    Hi experts Some body can explain me , how to do the payment to vendor after invoice posting in MIRO transaction. How to complete the procurement cycle. Thanks

  • Troble to renew my account

    I had Unlimited World Coverage account for over 10 years. One week ago i cancelled my credit card that the Skype account was attached to. I received a massage from Skype that my payment was rejected, therefore i put a new valid credit card on my acco

  • CRM 7.0 Portal Integration

    Hello All, I need to integrate CRM 7.0 <-> Portal. Read this article - http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/206cd953-41cf-2b10-7dbc-8a4d36664de5?QuickLink=index&overridelayout=true and the pre-requisites section says tha

  • Uniqueness constraint violation: service

    Hi; I upgrade to bpel 3.1.3.5.0; and after i cannot create a web service proxy from bpel process ! i always had this error "uniqueness constraint violation: service " Any ideas