Context parameter

Hi,
Currently I am migrating my tomcat application to sun java web server 7.1.
I am getting annoyed due to failed set context parameter, How to set servlet context paramerer outside web.xml. Currently I use separate xml file or add it in tomcat server.xml like
<?xml version="1.0" encoding="utf-8"?>
<Context>
     <!-- #Internal API -->
       <Parameter name="login_uri" value="http://127.0.0.1/cgi-bin/login.fcgi"  override="false"/>
</Context>This parameter shared by all wars. How do I set this in sun one web server, if is there way to set it via admingui it will me much better.
Thanks

you might want to use 7.0 update 4 (http://www.sun.com/webserver) . there is no 7.1 yet .
you should be able to do this within <https-<hostname>/config/default-web.xml (append it at the end just before the last line..)
<context>
</context>
</web-app>
finally, if every thing is working out for you, then you need to do the following command so that admin gui is aware of your manual changes
bin/wadm pull-config user=admin config=<hostname.domainname> <hostname.domainname>

Similar Messages

  • Doubt in locating a file in context parameter

    I have got a file named mylibrary.txt in WEB-INF/data directory.
    I wish to map the file in context Parameter.
    While trying this,
    <context-param>
         <param-name>library-file</param-name>
         <param-value>/WEB-INF/data/my-library.txt</param-value>
    </context-param>     
    I got a null pointerException while reading the file in my servlet. I am using Eclipse.

    The code as follows
    public class ListLibraryServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
        /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public ListLibraryServlet() {
              super();
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              response.setContentType("text/html");
              PrintWriter out=response.getWriter();
              ServletContext context=getServletContext();
              List dvd=(List)context.getAttribute("dvdlist");
              out.println("<head><title>ListLibraryServlet</title></head>");
              out.println("<body bgcolor='D2B48C'>");
              out.println("You currently have <b>3</b> DVDs in your collection<br>");
              out.println("<table>");
              out.println("<tr>");
              out.println("<th>Title</th>");
              out.println("<th>Year</th>");
              out.println("<th>Genre</th>");
              out.println("</tr>");
            Iterator it=dvd.iterator();
            while(it.hasNext())
              DVDItem item=(DVDItem)it.next();
              out.println("<tr>");
              out.println("<td>");
            out.println(item.getTitle());
            out.println("</td>");
              out.println("<td>"+item.getYear()+"</td>");
              out.println("<td>"+item.getGenre()+"</td>");
              out.println("</tr>");
              out.println("<tr>");
            out.println("</table>");
            out.println("</body>");
            out.println("</html>");
         /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
         }                   I am retrieving the file as
    public class InitializeLibrary extends javax.servlet.http.HttpServlet implements javax.servlet.ServletContextListener {
        /* (non-Java-doc)
          * @see javax.servlet.http.HttpServlet#HttpServlet()
         public InitializeLibrary() {
              super();
         public void contextInitialized(ServletContextEvent event)
         {   InputStream is=null;
             BufferedReader reader=null;
              List dvdlist=new ArrayList();
              ServletContext context=event.getServletContext();
              String libraryfile=context.getInitParameter("library-file");
              try
              is=context.getResourceAsStream("libraryfile");
              reader=new BufferedReader(new InputStreamReader(is));
              String record;
              while((record=reader.readLine())!=null)
                 String[] fields=record.split("\\|");
                 String title=fields[0];
                 String year=fields[1];
                 String genre=fields[2];
                 DVDItem item=new DVDItem(title,year,genre);
                 dvdlist.add(item);
              context.setAttribute("dvdlist",dvdlist);
              catch(IOException e)
                   e.printStackTrace();
              catch(Exception e)
                   e.printStackTrace();
         public void contextDestroyed(ServletContextEvent event)
    }

  • Access Context Parameter in Java Bean.

    Hi,
    I want to access the Context parameter set by the web.xml from a java bean or simple java class. For example, If I have database connection details in my web.xml and I want to get these in a Java Bean of a class which will pick up the values and create a Connection object and return to the guy calling it, either JSP or servlet.
    I have a idea of using InitialContext class. But I doubt it works for
    Context parameter defined in the web.xml.
    It worked if I use like this for DataSource object which is created in my application server.
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("OMSDataSource");
    return ds.DatabaseConnection.getConnection();
    So how can I access a parameter like this..
    <context-param>
    <param-name>Webmaster</param-name>
    <param-value>[email protected]</param-value>
    </context-param>
    Cheers.
    L G Goundalkar

    Greetings,
    Hi,
    I want to access the Context parameter set by the web.xml from a java bean or simple java class.The bean doesn't have direct access to the context object so that access must to supplied to it - i.e by calling getServletContext() and passing the resulting reference to the bean.
    For example, If I have database connection details in my web.xml and I want to get these in a Java
    Bean of a class which will pick up the values and create a Connection object and return to the guy
    calling it, either JSP or servlet.Why not write a DAO to handle the JSP or servlet's access needs? The DAO can be initialized at application start with a context listener and the initialized instance placed in the context where the JSP or servlet can get it directly. ;)
    I have a idea of using InitialContext class. But I doubt it works for Context parameter defined in the
    web.xml.Not for context parameters (a different "space" from the JNDI namespace ;). But, of course, it does work for "environment entries" which may also be placed in the web.xml DD (er, presuming your web container supports JNDI, of course).
    Cheers.
    L G GoundalkarRegards,
    Tony "Vee Schade" Cook

  • Passing context parameter as Subject to GP Mail template

    Hi ,
    I am using NW 7.0 SP14. I am using GP mail notifications to send out mails and I am successful sending context parameter values in the  body of mail template. Is there any way I can change the mail subject line dynamically by passing context parameter to the mail template.
    Thanks.
    Madhan

    Hi Madhan
    Unfortunately, using the standard mail templates in GP, it is not possible to add context variables for the mail Subject. These can be only added to the mail content.
    Best regards
    Armando

  • Context parameter com.sun.faces.DEFAULT_SUFFIX

    Hi All
    I was wondering about the context parameter com.sun.faces.DEFAULT_SUFFIX. Back when I learned JSF for the first time, together with learning Facelet, we use javax.faces.DEFAULT_SUFFIX context parameter to set to xhtml, as such:
    <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.xhtml</param-value>
    </context-param>
    Now, I noticed that almost all javax.faces context parameter has been refactored to com.faces.* context parameter, and all have been documented in the wiki here:
    http://wiki.glassfish.java.net/Wiki.jsp?page=JavaServerFacesRI#section-JavaServerFacesRI-WhatContextParametersAreAvailableAndWhatDoTheyDo
    well, all context parameter but DEFAULT_SUFFIX. since all our code in my company uses this. If we omit this context parameter, the code wouldnt work.
    Question:
    1. Why there is no documentation about this context parameter in wiki?
    2 If this context param has been refactored to com.faces.DEFAULT_SUFFIX, why is it when we use com.faces.DEFAULT_SUFFIX, the code would not work, but when we changed back to javax.faces.DEFAULT_SUFFIX it would work.?

    Well, I am using apache tomcat 6.26, below is what I got when starting the app server (I commented out javax.faces.DEFAULT_SUFFIX in web.xml when I started this).
    INFO: JSF1026: [xray] Configuration option 'com.sun.faces.managedBeanFactoryDecoratorClass' not configured
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [xray] Configuration option 'com.sun.faces.STATE_SAVING_METHOD' set to 'server'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    *INFO: JSF1018: [xray] Configuration option 'com.sun.faces.DEFAULT_SUFFIX' set to '.jsp'*
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1026: [xray] Configuration option 'com.sun.faces.CONFIG_FILES' not configured
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1026: [xray] Configuration option 'com.sun.faces.LIFECYCLE_ID' not configured
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [xray] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1018: [xray] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.validateXml' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.verifyObjects' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.disableVersionTracking' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.preferXHTML' - DISABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.WebConfiguration <init>
    INFO: JSF1021: [xray] Configuration option 'com.sun.faces.compressViewState' - ENABLED
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/xray'
    Jul 3, 2010 12:31:24 PM com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Completed initializing Sun's JavaServer Faces implementation (1.2-NIGHTLY_20060407) for context '/xray'
    Jul 3, 2010 12:31:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory docs
    Jul 3, 2010 12:31:24 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory examples
    Jul 3, 2010 12:31:25 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory ROOT
    Jul 3, 2010 12:31:25 PM org.apache.coyote.http11.Http11AprProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    Jul 3, 2010 12:31:25 PM org.apache.coyote.ajp.AjpAprProtocol start
    INFO: Starting Coyote AJP/1.3 on ajp-8009
    Jul 3, 2010 12:31:25 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1789 ms
    Edited by: niner on Jul 2, 2010 11:07 PM

  • Context Parameter PlugIn

    Hi...
    Thanks for your time....
    I am doing performance test and I want if response containing a specific value then test will abort. As performance test check URL request and response, my all test getting 200 OK status.  I attach a plugin and override PostRequest() and check existence
    of response and StatusCode value >200.
    Here is the code
    public override void PostRequest(object sender, PostRequestEventArgs e)
                if(!e.ResponseExists||((int)e.Response.StatusCode>200))
                    e.WebTest.Stop();
    Here is my response data: {"StatusCode":200,"Data":{"Status":"N","ErrorMessages":null,"ErrorResults":null}}
    [Data containing JSON data generated in server side.]
    As you can see response is coming and response status code is 200 so plugin not aborting test.
    I am passing wrong input and so response is coming with Status="N" in Data. I want to abort if Status ="N" is present in response.
    How can i do that??
    What I try...
    I create a validation rule where I set searching text and in success test get fail. But it allowing to execute next request.
    I add a context parameter and extract value of Status. Based on that context parameter value  I try to stop test in plugin. But I am not getting that value in Plugin.  So plugin not working.
    Thanks...
    R

    Hi SCRana,
    I am glad that you have solved the problem and thanks for your share us the solution here, so it would be
    helpful for other members who get the same issue and we will close this case.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Access context parameter in web.xml

    Hi, all. I add a entry into Context Initialization parameter at tab Application in file web.xml with name: path and value img/product. I don't know how to get the context parameter. I want access the context by EL in file .jspx or .jsf, as #{path} but error. Can anyone help me.Thanks.

    Hi,
    have a go with
    #{initParam['param_name_here']}"
    alternatively
    #{facesContext.externalContext.initParameterMap['param_name_here']}
    Frank

  • Define a context parameter not using web.xml

    Dears,
    With a web.xml file, it is possible to define a context parameter available in the web app via de ServetContext.getInitParameters method.
    Is it possible to define a context parameter not using the web.xml file ? Can I, in a java Class, init a custom context parameter ? (for exampel, init as a context param a key/value pair read from a property file).
    PS: the need is that the value (hmac key) currently define in the web.xml needs to be updated monthly. Apparently, under WebSphere (the app server we are using) changing the web.xml of the deployed app it not enought for it to be taken into account.
    Sincerely,
    Beno�t Bertrand

    Is it possible to define a context parameter not
    using the web.xml file ? Can I, in a java Class, init
    a custom context parameter ? (for exampel, init as a
    context param a key/value pair read from a property
    file).Does it necessarily have to be a value retrieved through the context param ? AFAIK, there's no way you could programatically 'set' an init param, which going by the name, 'init param' is quite understandable.
    You could define this value in a property file and read it in, in the init method. You should provide a mechanism to reload the new value after 'x' days. One approach is a Timer that does the job, do have a look at SteveJLuke's recommendations on the same in this thread
    http://forum.java.sun.com/thread.jspa?threadID=637355&tstart=0cheers,
    ram.

  • Error while using date as a context parameter

    Hello,
    I am using webdynpro component(GP Interface) Callable Object in which i have added date as one of the parameters to be entered by the initiator.....but it gives me a Runtime Exception as:
    when i remove the date parameter keeping just integers and strings it works fine....please help as i need to use the date parameter..
    Unable to create web dynpro callable object implementation.
    java.lang.NullPointerException
    at com.sfwmd.GpInterface.execute(GpInterface.java:248)
    at com.sfwmd.wdp.InternalGpInterface.execute(InternalGpInterface.java:137)
    at com.sfwmd.wdp.InternalGpInterface$External.execute(InternalGpInterface.java:192)
    at com.sap.caf.eu.gp.ui.co.exec.wd.COExecWD.execute(COExecWD.java:303)
    at com.sap.caf.eu.gp.ui.co.exec.wd.wdp.InternalCOExecWD.execute(InternalCOExecWD.java:171)
    at com.sap.caf.eu.gp.ui.co.exec.wd.COExecWDInterface.execute(COExecWDInterface.java:122)
    at com.sap.caf.eu.gp.ui.co.exec.wd.wdp.InternalCOExecWDInterface.execute(InternalCOExecWDInterface.java:134)
    at com.sap.caf.eu.gp.ui.co.exec.wd.wdp.InternalCOExecWDInterface$External.execute(InternalCOExecWDInterface.java:249)
    at com.sap.caf.eu.gp.ui.act.container.VContainer.onPlugFromDispatcher(VContainer.java:391)
    at com.sap.caf.eu.gp.ui.act.container.wdp.InternalVContainer.wdInvokeEventHandler(InternalVContainer.java:167)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
    at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
    at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1299)
    at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:326)
    at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:868)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Any help would be highy appreciated
    Regards,
    Anil
    Edited by: Anil Kumar on Feb 4, 2009 8:19 PM

    Resolved the issue by setting System date where expected

  • How to set up context parameter of a web application

    Hi,
    I am tring to deploy a ear file to J2EE Engine 7.1
    with the help of import feature of NWDS.
    Is there any option to set the value of the context parameters defined in web.xml inside the ear.
    Regards,
    Chitra

    Thanks for your response.
    Th e version no. of IE Tab is 4.0.20130422 and it is from https://addons.mozilla.org/en-US/firefox/addon/ie-tab/
    Look forward your reply.Thank you in advance.

  • Add Context/Parameter Elements to UWL

    Hi, as you know, when you connect the UWL with CAF-Guided Procedures, it shows to the user as subject for the UWL Task the name of the GP Action that is related in a GP Process.
    I need to add a context element (ctx.variable) to the text that is shown to the user in the UWL, 'cause the same user can have several time the same Action on his UWL Inbox with the same name and he needs to be able to identify between them.
    Thanks for your help.

    Weird piece of code and no question. I assume you can't figure out have to add a row to your other table?
            DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            OperationBinding operBind = bindings.getOperationBinding("CreateInsert");
            operBind.execute();
            DCIteratorBinding dcItteratorBinding = bindings.findIteratorBinding("UserDetailsViewVO1Iterator");     
            RowSetIterator customRSIter = dcItteratorBinding.getRowSetIterator();
            Row currentRow = customRSIter.getCurrentRow();
            currentRow.setAttribute("Username", (String)requestMap.get("pusername"););
            currentRow.setAttribute("Firstaname", (String)requestMap.get("pfirstname"););
    ...And so on...Assuming you have an CreateInsert binding on your Iterator.

  • Taw web xml file ADMINREADCC8 context parameter

    when I run the scipt for CCA the Useme.sql I only see the ADMINCC8 user I don't see the ADMINREADCC8 so I'm not sure what to put on the following context for web.xml
    <!-- Needs to be removed for MSSQL-->
    <!--<context-param>-->
    <!--<param-name>databaseSchemaReadOnly</param-name>-->
    <!--<param-value>ADMINCCREAD813</param-value>-->
    <!--</context-param>-->

    This is the eclipse error
    The content of element type "web-app" must match "(icon?,display-
    name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-
    mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-
    ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-
    ref*)".
    Web.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>tapestryHiber Tapestry 5 Application</display-name>
         <context-param>
              <!-- The only significant configuration for Tapestry 5, this informs Tapestry
                   of where to look for pages, components and mixins. -->
              <param-name>tapestry.app-package</param-name>
              <param-value>com.kids.crm</param-value>
         </context-param>
         <filter>
              <filter-name>app</filter-name>
              <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
         </filter>
         <filter-mapping>
              <filter-name>app</filter-name>
              <url-pattern>/*</url-pattern>
         </filter-mapping>
         <context-param>
              <param-name>contextConfigLocation</param-name>
              <param-value>/WEB-INF/spring/spring-servlet.xml</param-value>
         </context-param>
         <listener>
              <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
         </listener>
    </web-app>
          Edited by: csckid on Aug 29, 2011 5:51 AM

  • Assignment using context parameter

    Hi all,
    Does anybody know how to set more than one user to a GP Role using context attribute?
    I've tried set the attribute with users delimited by comman, semicolon, but it doesn't work.
    Best regards

    Hi Isaias,
    You have to give the user logon Ids separated by comma. And your attribute should be a list in that case.
    Regards,
    Srinivasan Subbiah

  • Could not find Factory: javax.faces.context.FacesContextFactory

    I'm trying to start a new JSF with facelets app from scratch using JSF 1.2.06 on Tomcat 6.0.10 but I can't even get the app to start.
    I get this when I try to start the app:
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
         javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263)
         javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
         org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:699)
         org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    I've seen a few contradictory pieces of advice on how to resolve but none seem very promising.
    What are the basic requirements for a JSF 1.2 application, especially regarding entries required in web.xml and faces-config.xml? I don't see this clearly documented anywhere on Sun's JSF site.
    Thanks!

    I think I found the reason for this problem.
    I should have also mentioned that my app contained a welcome page (index.jsp) that contained only a forward to my Facelet-based home page via:
    <jsp:forward page="pages/stm/StmHome.jsf" />
    My home page was named: StmHome.xhtml
    I mapped the FacesServlet to handle all requests with a *.jsf extension
    But I set the javax.faces.DEFAULT_SUFFIX context parameter to: .xhtml
    When I changed the value for the forward tag in the index.jsp to "StmHome.xhtml" the app started ok and the home page displayed without error.
    So it looks like this problem was caused by a mismatch between the value I set for the javax.faces.DEFAULT_SUFFIX context parameter and the value I set for the URL pattern in the FacesServlet mapping, correct ?
    Which brings me to my next question: should the values for the javax.faces.DEFAULT_SUFFIX and the FacesServlet URL pattern always match?
    Thanks!

  • Why does the new CVI adapter not put the contextCVI parameter?

    Hi,
    With good old 2.0 prototype you could not specify arguments and you always used the parameters tTestData and tTestError. Now, with the TS3.x the recommended prototype is the new one.
    If I specify the standard prototype it puts some arguments which the sequence context is not one of them.
    The question is why?
    1) Don't you always need it? Is there a way to get the context from within the CVI code? Isn't the idea of the context argument is to be able to get/set information from the TS variables?
    2) I read the manuals but didn't see exact instructions how to specify the context as an argument. Can anybody show me how to do it? Do I need to specify it by value or by reference?
    3) Isn't there a check box to include the context in the same fashion as it was in TS2.x?
    4) I specify the context parameter with every TS step. Is that the proper way? Can I modify the standard prototype so it will automatically be inserted along with the other argument?
    Thanks
    Rafi

    Hello Rafi -
    I think the Action steptype will always give you a seqContextCVI pointer, but I agree that the default templates for the other steps don't. Certainly you don't 'always' need it. Especially if all you're doing is talking to hardware, doing some calculation and returning a measurement value, but it's very nice to have for various chores in TestStand.
    I think in TS 3.0 rather expect you to specify it manually.It's not too hard to do once you see the trick. I looked at the Action step's default arguements before I saw how it was done, but here's the simple breakdown.
    (1) create new arguement, on the right-hand side of the screen name it whatever you like.
    (2) The category is 'Object, the Type is 'CVI ActiveX Automation Handle' and the Pass is 'By Value'.
    (3) on the left-hand side of the screen, assign it the value 'ThisContext' as usual, and you're all set.
    If you build your functions manually in CVI you'll just include the parameter "CAObjHandle seqContextCVI" and use it just like you used to.
    Other options might be... I know there's still a button on the Module tab of CVI steps to allow you to create a TS 2.0 style prototype with TestData and TestError...
    Or, Yes, you can also modify the default template that comes with TestStand, but the software will likely complain at you for changing the settings on a NI steptype. If you want to explore this route, you need to add your seqContextCVI parameter in two places. Once to the actual template file at (TestStand Root dir)\CodeTemplates\User\NumericLimitCVI, and once to the type definition of the step you want to change. For example, use the Type Palette to find the Numeric Limit type and right click on it to alter it's properties. The tab you'll want to investigate is 'Code Templates'and then the template for CVI.
    I hope this helps!
    Cheers,
    Elaine R.
    www.bloomy.com
    Cheers,
    Elaine R.
    www.bloomy.com

Maybe you are looking for

  • Does the new mac mini server do lights out management?

    can't see it in the tech specs anywhere...

  • Is there any way to find out where a standard text is used?

    Is there any way to find out where a standard text is used? We can see the text from SO10, but i want to find out where it is used.

  • Cannot run form

    Hi everybody I have windows XP installed on my pc. I have installed oracle 11g database and oracle developer suite 10g. I also have installed latest version of JRE. I started services oracleTNSlistener & oracleserviceORCL. I also started the OC4J ins

  • How to make accounts display only via authorizations?

    Has anyone setup CRM 2007 to get the account page to be display only? We don't want to allow certain users to manage accounts directly in CRM and would like to lock this down via authorization objects. We can't seem to figure out what authorization o

  • How to Process "Being Created" Sessions

    Dear Experts, Program created sessions are tagged to be "Being Created". Can any one of you explain me how to process these sessions through a program again.? It would be of great help and useful answers are rewarded. Best Regards, Arunkumar S