Web-inf\web.xml init parameters

Hi,
I use several servlets/JSPs which are using common init parameter, is there a way to specify that some init parameters are common or must I write all the parameters for all of my servlets/JPSs ?
Thanks

yah that's what I mean, have your parameters in your web.xml file and have a Servlet read them when the application starts up (using ServletConfig). Then you put the values into the application scope where all the JSPs and Servlets can read them. So lets say you specify a parameter called "html-path" with a value of "/www/html/" you could read this in your JSPs like this:
String htmlPath = application.getAttribute("html-path");I can't remember how to do his off-hand but I know it works.

Similar Messages

  • How to modify web.xml init parameters?

    Hi all!
    I need to modify my application's init parameters on the fly.
    I think that if i can get those parameter through FacesContext, then i should can set them too.
    Anybody knows if it is possible ou how to do it?
    Thanks,
    Cezar

    Hi all!
    I need to modify my application's init parameters on the fly.
    I think that if i can get those parameter through FacesContext, then i should can set them too.
    Anybody knows if it is possible ou how to do it?
    Thanks,
    Cezar

  • JSF 1.2 web.xml configuration parameters

    Actually, I know these JSF 1.2 web.xml configuration parameters:
    javax.faces.CONFIG_FILES
    javax.faces.DEFAULT_SUFFIX
    javax.faces.LIFECYCLE_ID
    javax.faces.STATE_SAVING_METHOD
    Are there any more available?
    (I have to study its performance implications in conjunction with RichFaces ones).

    The JSF 1.2 specification document would contain the information you're looking for.

  • What's this mean in web.xml?

    As part of assigning portal desktops, we've altered the web.xml file to add an additional portal alias - the portal system was, at that time, a 6.40 system.  The additional portal alias worked great.  However, I was comparing web.xml files from the deployed portal application (now at 7.0 SP10) and the web.xml that we currently use, and I found these new bits in the new web.xml:
    <init-param>
      <param-name>
        wsrp_producer_service
      </param-name>
      <param-value>
        ProducerImpl
      </param-value>
    </init-param>
    and
    <servlet-mapping>
      <servlet-name>gateway</servlet-name>
      <url-pattern>/wsrp/producer/resource/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
      <servlet-name>gateway</servlet-name>
      <url-pattern>/wsrp/consumer/resource/*</url-pattern>
    </servlet-mapping>
    I can only assume that these entries have something to do with the Federated portal (and perhaps the producer part) since WSRP is the protocol used to access remote portlets (iViews).
    Can someone verify?

    Hi Ken,
    These entries are dedicated to WSRP usage either as consumer or as producer and have no role in the FPN (remote role assignment and remote deltalinks).
    Thes entries map the urls dedicated for fetching of static resources from the remote system.
    Avi.

  • Init parameters in web.xml file

    Hi,
    I have a query related to the init parameters defined in web.xml file.
    When does a servlet read these parameters?
    Also, how does servlet use these parameters while processing the client's request?
    Thanks in advance......

    hai,
    In order to make servlet flexible we must avoid hard-coding(writing-directly).so there are two ways in that one one way is init param's.
    create ServletConfig object as show below
    ServletConfig config=getServletConfig();then retrieve the init param value in to your servlet us getInitParameter(..) method as show below
    String something=config.getInitParameter("init param name");

  • Realising global Parameters like init-param in web.xml

    Hallo,
    I have a question:
    How can I implement own parameters in a StudioCreator-application.
    I have tried to edit the web.xml, first time it works.
    (I read the parameters with ExternalContext.getInitParameter)
    But later the web.xml was rewrited by the IDE and my parameters are gone.
    Thanks for your help!
    Regards
    Wolfgang

    Hallo,
    I tried both. First the one in build. An than the one in src.
    If I change the name or the Page (with rename)
    my entries in the web.xml disappear.
    My entries are:
    <context-param>
    <param-name>ldap_url_primary</param-name>
    <param-value>ldap://WW004.SIEMENS.NET:389</param-value>
    </context-param>
    <context-param>
    <param-name>domaene</param-name>
    <param-value>WW004.SIEMENS.NET</param-value>
    </context-param>
    <!-- Faces Servlet -->
    Thanks,
    Wolfgang

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

  • Init parameter in web.xml throwing an error..?

    OK.. this is probably going to sound strange, but here goes:
    Here is my entry in the web.xml:
    <servlet>
              <servlet-name>ServletTestRunner</servlet-name>
              <servlet-class>
                   org.apache.cactus.server.runner.ServletTestRunner
              </servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>ServletTestRunner</servlet-name>
              <url-pattern>/ServletTestRunner</url-pattern>
         </servlet-mapping>Everything works fine - I pull up the servlet with the following URL (http://localhost:7001/CDCAppWeb/ServletTestRunner?suite=com.testcases.decision.service.SendCreditRequestBeanTest)
    , and receive the results in XML format. However, if I change the web.xml to have the following:
         <servlet>
              <servlet-name>ServletTestRunner</servlet-name>
              <servlet-class>
                   org.apache.cactus.server.runner.ServletTestRunner
              </servlet-class>
              <init-param>
                   <param-name>xsl-stylesheet</param-name>
                   <param-value>cactus-report.xsl</param-value>
              </init-param>
         </servlet>(notice the cactus-report.xsl init-param entry) - the servlet does not work. Actually, NONE of the other servlets in my application work when I put in this init-param for the ServletTestRunner. I have verified that the xsl is in the classpath (WEB-INF/classes).
    What I am missing... any ideas?

    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.

  • Using a Variable from web-inf/web.xml in java code?

    I would like to create a read-only variable with a value in the /web-inf/web.xml file and then access that value within a java service method within the Application Module.
    Where / how do I read the value from the web.xml file and make it accessible within my java code?
    thanks

    Hi,
    you can define context parameters in web.xml that you can access from Java in the web application
    The following is a JSF examle that checks a context parameter in a PhaseListener, where the string is stored ina Java constant (could be "myParam")
    ExternalContext exctx = FacesContext.getCurrentInstance().getExternalContext();
    useSessionPageCache = exctx.getInitParameter(Constants.USE_PAGE_CACHE) == null ? false :
    (exctx.getInitParameter(Constants.USE_PAGE_CACHE)).equalsIgnoreCase("TRUE") ? true : false;
    From here you can call a method on the AM to set the value or look for another option.
    Frank

  • WEB-INF/web.xml not found exception for deployed war on server startup

    Weblogic server is throwing an exception indicating that it can't find
              web.xml on startup when a particular war file is deployed. The exception
              and my web.xml follow below.
              There are some other strange elements to this:
              1) The deployed war in the application directory has a valid web.xml in the
              web-inf folder.
              2) The war in the servers temp directory corresponding to my war contains
              only the files found in WEB-INF in the deployed jar, but not those found in
              web-inf (case matters). These files are in the root of the war, not in a
              WEB-INF folder!
              3) The servlets in the war do load and are invokable.
              4) If I redeploy the jar while the server is still running, I get no
              exception, and the temp war then has the correct structure (with a WEB-INF
              folder and contains web.xml).
              The exception:
              <Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
              Could not find Web application
              "D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
              local_comp2079.war"
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
              file
              at
              weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
              r.java:207)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
              78)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:133)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:327)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:143)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
              76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy32.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
              t(WebServerMBean_CachingStub.java:1012)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:313)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
              Target.java:277)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
              eploymentTarget.java:232)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
              entTarget.java:192)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy29.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
              ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
              icationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
              r.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy23.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
              ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1033)
              at weblogic.management.Admin.finish(Admin.java:494)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              web.xml:
              <!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>Controller Unit Tests</display-name>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>false</param-value>
              </context-param>
              <context-param>
              <param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
              e>
              <param-value>ConductEntityAccessTest</param-value>
              </context-param>
              <servlet>
              <servlet-name>unitTestRunner</servlet-name>
              <servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>unitTestRunner</servlet-name>
              <url-pattern>unitTestRunner.srv</url-pattern>
              </servlet-mapping>
              <resource-ref>
              <res-ref-name>PPSDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </web-app>
              

    Kumar,
              Here it is.
              Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
              I have a webapp with the following entries in my web.xml and i can't seem to duplicate your problem.
              Can you send us your webapp? I will try to duplicate it in my environment.
              Kumar
              Steve Demuth wrote:
              Already tried that. No difference. Kumar Allamraju <[email protected]> wrote in message news:[email protected]...
              Interesting.
              This shouldn't happen though.
              Can you stop the server delete the .wl_temp_do_not_delete
              dir? Let's see if that makes any difference.
              Kumar
              Steve Demuth wrote:
              Weblogic server is throwing an exception indicating that it can't find
              web.xml on startup when a particular war file is deployed. The exception
              and my web.xml follow below.
              There are some other strange elements to this:
              1) The deployed war in the application directory has a valid web.xml in the
              web-inf folder.
              2) The war in the servers temp directory corresponding to my war contains
              only the files found in WEB-INF in the deployed jar, but not those found in
              web-inf (case matters). These files are in the root of the war, not in a
              WEB-INF folder!
              3) The servlets in the war do load and are invokable.
              4) If I redeploy the jar while the server is still running, I get no
              exception, and the temp war then has the correct structure (with a WEB-INF
              folder and contains web.xml).
              The exception:
              <Oct 14, 2001 8:15:46 PM CDT> <Error> <HTTP> <[HTTP PPSserver]
              Could not find Web application
              "D:\Dev\bea\wlserver6.0\.\config\PPS\applications\.wl_temp_do_not_delete\wl_
              local_comp2079.war"
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar
              file
              at
              weblogic.servlet.internal.dd.DescriptorLoader.getInputSource(DescriptorLoade
              r.java:207)
              at
              weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:1
              78)
              at
              weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:446)
              at
              weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:133)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:327)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:143)
              at
              weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:
              76)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy32.addWebDeployment(Unknown Source)
              at
              weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeploymen
              t(WebServerMBean_CachingStub.java:1012)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentT
              arget.java:313)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Deployment
              Target.java:277)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(D
              eploymentTarget.java:232)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(Deploym
              entTarget.java:192)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy29.updateDeployments(Unknown Source)
              at
              weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(
              ServerMBean_CachingStub.java:2299)
              at
              weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(Appl
              icationManager.java:240)
              at
              weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManage
              r.java:122)
              at java.lang.reflect.Method.invoke(Native Method)
              at
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl
              .java:562)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:5
              48)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBea
              nImpl.java:285)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439)
              at
              weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180)
              at $Proxy23.start(Unknown Source)
              at
              weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(
              ApplicationManagerMBean_CachingStub.java:435)
              at
              weblogic.management.Admin.startApplicationManager(Admin.java:1033)
              at weblogic.management.Admin.finish(Admin.java:494)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:431)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              at weblogic.Server.main(Server.java:35)
              web.xml:
              <!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>Controller Unit Tests</display-name>
              <context-param>
              <param-name>weblogic.jsp.precompile</param-name>
              <param-value>false</param-value>
              </context-param>
              <context-param>
              <param-name>package_com.cinfin.cld.controller.conduct.access.test</param-nam
              e>
              <param-value>ConductEntityAccessTest</param-value>
              </context-param>
              <servlet>
              <servlet-name>unitTestRunner</servlet-name>
              <servlet-class>com.cinfin.cld.test.unit.UnitTestRunner</servlet-class>
              </servlet>
              <servlet-mapping>
              <servlet-name>unitTestRunner</servlet-name>
              <url-pattern>unitTestRunner.srv</url-pattern>
              </servlet-mapping>
              <resource-ref>
              <res-ref-name>PPSDS</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
              </web-app>
              [att1.html]
              [controllerUnitTests.war]
              

  • Servlet parameters in web.xml file

    Hi Guys
    What is ctx:dynamo: in web.xml why we have to use this one in servlet parameters
    Please give me a clear picture on this
    <init-param>
        <param-name>jumpServlet</param-name>
        <param-value>
          ctx:dynamo:/atg/dynamo/servlet/dafpipeline/JumpServlet
        </param-value>
      </init-param>

    Hi Guys
    What is ctx:dynamo: in web.xml why we have to use this one in servlet parameters
    Please give me a clear picture on this
    <init-param>
        <param-name>jumpServlet</param-name>
        <param-value>
          ctx:dynamo:/atg/dynamo/servlet/dafpipeline/JumpServlet
        </param-value>
      </init-param>

  • WAR Deployment Problem (WEB-INF/web.xml not found)

              I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy it
              when it start up. Here is what I did,
              1. I jared all necessary files including WEB-INF\web.xml in the myapp.war file;
              here I used all uppercase for WEB-INF directory, but after I jared it, it shew
              up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file. I think
              this is the behavior of jar program.
              2. I appended the myapp.war to the weblogicclasspath in the start script;
              3. In weblogic.properties file, I specified two lines:
              weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
              weblogic.httpd.defaultWebApp=myapp
              4. Then I start up the WebLogic server named "default". It shew the following
              error messages:
              java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
              ml
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:177)
              at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp' as d
              efault servlet context
              java.lang.NullPointerException
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application 'c:/weblo
              gic/default/myapp.war'
              java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in jar file
              at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
              at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              .java:134)
              at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
              at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
              at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.Server.startServerDynamically(Server.java:99)
              at weblogic.Server.main(Server.java:65)
              at weblogic.Server.main(Server.java:55)
              Please help me find out what is wrong with this. Greatly Appreciated.
              Thanks in advance,
              Donald
              

              If it is still not working, try to set the weblogic.httpd.documentRoot =c:/weblogic/default
              in the weblogic.properties & try.
              "Donald Ye" <[email protected]> wrote:
              >
              >
              >I have a war application and WebLogic 5.1 with Svr Pack 8 failed to deploy
              >it
              >when it start up. Here is what I did,
              >
              >1. I jared all necessary files including WEB-INF\web.xml in the myapp.war
              >file;
              >here I used all uppercase for WEB-INF directory, but after I jared it,
              >it shew
              >up web-inf\web.xml but WEB-INF\lib\pushlet.jar in the myapp.war file.
              >I think
              >this is the behavior of jar program.
              >
              >2. I appended the myapp.war to the weblogicclasspath in the start script;
              >
              >3. In weblogic.properties file, I specified two lines:
              >weblogic.httpd.webApp.myapp=c:/weblogic/default/myapp.war
              >weblogic.httpd.defaultWebApp=myapp
              >
              >4. Then I start up the WebLogic server named "default". It shew the following
              >error messages:
              >
              >java.io.FileNotFoundException: Directory myapp\ does not contain WEB-INF/web.x
              >ml
              > at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              >.java:177)
              > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:630)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:558)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >Thu Mar 29 17:24:16 EST 2001:<E> <HTTP> FATAL: could not load WAR 'myapp'
              >as d
              >efault servlet context
              >java.lang.NullPointerException
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:560)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >Thu Mar 29 17:24:17 EST 2001:<E> <HTTP> Could not find Web application
              >'c:/weblo
              >gic/default/myapp.war'
              >java.io.FileNotFoundException: WEB-INF/web.xml XML file not found in
              >jar file
              > at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:93)
              > at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
              >.java:134)
              > at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:627)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:602)
              > at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java:570)
              > at weblogic.t3.srvr.HttpServer.start(HttpServer.java:418)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1312)
              > at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.Server.startServerDynamically(Server.java:99)
              > at weblogic.Server.main(Server.java:65)
              > at weblogic.Server.main(Server.java:55)
              >
              >
              >Please help me find out what is wrong with this. Greatly Appreciated.
              >
              >Thanks in advance,
              >
              >Donald
              

  • Reload web-inf/web.xml file without restarting tomcat

    Please help me if any one have a solution .
    I am doing development in jsp, servlet. I am using tomcat5 as a webserver.
    i want to reload web-inf/web.xml file without restarting tomcat.

    From the tomcat admin page you can stop/start and refresh individual applications. See the tomcat documentation. Which, when you have a question about tomcat, you should always do first.

  • J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml"

    Hi ,
    When I try to deploy using admin console i get the following error msg.
    J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml"
    The war file has web.xml.
    Can some give me the reason for the above error.
    LOG content:
    weblogic.management.ApplicationException: [J2EE:160043]Missing deployment descriptor
    "WEB-INF/web.xml" at "C:\bea8\user_projects\domains\eConnect\applications\myEconnect.war"
         at weblogic.j2ee.J2EEApplicationContainerFactory.handleError(J2EEApplicationContainerFactory.java:729)
         at weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(J2EEApplicationContainerFactory.java:470)
         at weblogic.management.deploy.DeployerRuntime.unprotectedActivate(DeployerRuntime.java:833)
         at weblogic.management.deploy.DeployerRuntime.access$000(DeployerRuntime.java:63)
         at weblogic.management.deploy.DeployerRuntime$1.run(DeployerRuntime.java:1499)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(DeployerRuntime.java:1490)
         at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:186)
         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:324)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
         at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
         at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
         at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
         at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(DeployerRuntimeMBean_Stub.java:1064)
         at weblogic.management.console.actions.mbean.WebAppComponentDeployAction.prePerform(WebAppComponentDeployAction.java:141)
         at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform(DoMBeanWizardAction.java:215)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:173)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    You'll have to at least show me the out contents of that WAR file.
    -- Rob
    Sowjanya wrote:
    Suppose the directory structure of the appl is c:\myroot\webapp\...
    then we need to go to webapp and then build the war file.
    C:\myroot\webapp>jar -cvf abc.war *
    then copy the war file and paste it in applicaitons folder.
    "sowjanya" <[email protected]> wrote:
    Hi ,
    When I try to deploy using admin console i get the following error msg.
    J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml"
    The war file has web.xml.
    Can some give me the reason for the above error.
    LOG content:
    weblogic.management.ApplicationException: [J2EE:160043]Missing deployment
    descriptor
    "WEB-INF/web.xml" at "C:\bea8\user_projects\domains\eConnect\applications\myEconnect.war"
         at weblogic.j2ee.J2EEApplicationContainerFactory.handleError(J2EEApplicationContainerFactory.java:729)
         at weblogic.j2ee.J2EEApplicationContainerFactory.initializeDeployment(J2EEApplicationContainerFactory.java:470)
         at weblogic.management.deploy.DeployerRuntime.unprotectedActivate(DeployerRuntime.java:833)
         at weblogic.management.deploy.DeployerRuntime.access$000(DeployerRuntime.java:63)
         at weblogic.management.deploy.DeployerRuntime$1.run(DeployerRuntime.java:1499)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.management.deploy.DeployerRuntime.checkAndPerformDeployerActions(DeployerRuntime.java:1490)
         at weblogic.management.deploy.DeployerRuntime.activate(DeployerRuntime.java:186)
         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:324)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
         at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
         at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)
         at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
         at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
         at weblogic.management.runtime.DeployerRuntimeMBean_Stub.activate(DeployerRuntimeMBean_Stub.java:1064)
         at weblogic.management.console.actions.mbean.WebAppComponentDeployAction.prePerform(WebAppComponentDeployAction.java:141)
         at weblogic.management.console.actions.mbean.DoMBeanWizardAction.perform(DoMBeanWizardAction.java:215)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:173)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

  • Making sure setting ojsp-init tags-reuse from orion-web.xml is used

    I'm facing a problem with the following setting in my application's orion-web.xml:
    <ojsp-init tags-reuse="compiletime-with-release"/>
    previously, we had this setting in global-web-application.xml, but we would like to specify it per application, to get rid of the OC4J post-installation step to manually add the following lines:
    <init-param>
    <param-name>tags_reuse_default</param-name>
    <param-value>compiletime_with_release</param-value>
    </init-param>
    However, the latter works, and the former doesn't seem to have any effect whatsoever. But as far as I can see, the orion-web.xml is correctly following the XSD:
    <?xml version="1.0"?>
    <orion-web-app
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"      deployment-version="10.1.3.3.0"
         deployment-time="1198148775354"
         jsp-cache-directory="./persistence"
         jsp-cache-tlds="standard"
         jsp-taglib-locations=""
         temporary-directory="./temp"
         servlet-webdir="/servlet/"
         context-root="/messagecontrol"
    schema-major-version="10" schema-minor-version="0" >
         <!-- Uncomment this element to control web application class loader behavior.
              <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
         -->
         <ojsp-init tags-reuse="compiletime-with-release"/>
    </orion-web-app>
    http://www.oracle.com/technology/oracleas/schema/orion-web-10_0.xsd
    Am I missing something here? Do we need to do something specific to make sure the ojsp-init values are actually used? The documentation seems to indicate that the two settings are equivalent:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28961/devconfig.htm#BHCFICDA
    Any help would be appreciated.
    Jaap

    Update:
    In the meantime I've logged a SR for this. The settings "none" and "compiletime" do work and behave the same as their global-web-application.xml counterparts. It's just the "compiletime-with-release" that does not work as expected.

Maybe you are looking for

  • Not able to post material

    Hi, I am not able to post material in  MB1C.I am getting error,"posting only possible in periods 2002/11 and 2002/10 in company code ZVAN".  I have already done,OMS2 and OMS2.

  • Trying to update OS 5

    Hi, I am trying to update my OS from 4.6.1286 to version 5. I was unable to locate a proper OS for my country. I hold a Vodafone connection and from India. Please let me know how to choose the OS. Also, i tried using "Vodafone Essar" for update but i

  • AP XML Payments Feature

    Hi, We are trying to implement the AP XML Payments feature to format and send payment instructions to bank in the Payment Batch generation. For our requirement, we cannot use this feature without doing a customization. We need to introduce few more n

  • Pixelated Adobe Acrobat 9.5

    Computer TouchSmart 610-1280, 64 bit, Windows 7 Home Premium. Loaded Adobe Acrobat 9.5 on computer. The toolbar area is pixelated (subdued colorization and patterned). I initiated a repair for the install, still didn't correct the problem. Program ap

  • Protection Domains with static permissions are improperly constructed

    I'm pretty new to the java security model, but this doesn't look right. It seems as though ProtectionDomains with static permissions have symantically different functionality than those that are constructed with the "variant" constructor(CodeSource,