• RELEVANCY SCORE 6.16

    DB:6.16:Re: Plgn0021e: Servlet Request Processor Exception: Virtual Host/Webgroup Not am




    any solutions for this problem ??

  • RELEVANCY SCORE 5.55

    DB:5.55:Re: Plgn0021e: Servlet Request Processor Exception: Virtual Host/Webgroup Not 8a




    Did you find any solutions to that error? I am getting the same problem....

  • RELEVANCY SCORE 4.55

    DB:4.55:Execution Order In Async Servlet sm





    I wrote a very simple asynchronous Servlet:

    @WebServlet(name = "MyServlet", urlPatterns = "/myServlet", asyncSupported = true)
    public class MyServlet extends HttpServlet {

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    System.out.println("Start Servlet");

    final AsyncContext asyncContext = request.startAsync(request, response);
    asyncContext.setTimeout(10000);
    asyncContext.start(new Runnable() {
    @Override
    public void run() {
    System.out.println("Start Task");

    try {
    Thread.sleep(3000);
    asyncContext.getResponse().getWriter().println("Task done");
    } catch (Exception e) {
    e.printStackTrace();
    }
    asyncContext.complete();

    System.out.println("Stop Task");
    }
    });
    response.getWriter().println("Servlet done");

    System.out.println("Stop Servlet");
    }
    }

    DB:4.55:Execution Order In Async Servlet sm


    If you want AS 7 style behaviour, it's not too difficult to replicate it via:

    final Object lock = new Object();

    synchronized {

    asyncContext.start(new Runnable() {

    synchronized (lock) {

    ...

    } }

    // rest of servlet code

    ...

    }

  • RELEVANCY SCORE 4.24

    DB:4.24:Servlet Configuration Problems .. zx


    Hi

    I am a new member starting with Java Servlets:

    I have a problem with Configuring the Servlet on the J2EE Application server.

    Here is the Servlet code ...

    package mypackage;

    public class ShowParameters extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { .... }And this is the web.xml file

    servlet
    servlet-nameShowParameters/servlet-name
    servlet-classmypackage.ShowParameters/servlet-class
    /servlet

    servlet-mapping
    servlet-nameShowParameters/servlet-name
    url-pattern/ShowParameters/url-pattern
    /servlet-mappingAnd the HTML file is ....

    FORM ACTION="ShowParameters"
    First Parameter: INPUT TYPE="TEXT" NAME="param1"BR
    Second Parameter: INPUT TYPE="TEXT" NAME="param2"BR
    Third Parameter: INPUT TYPE="TEXT" NAME="param3"BR

    CENTER
    INPUT TYPE="SUBMIT"
    /CENTER
    /FORMI have set the CLASSPATH variable t /build/mypackage/

    I get two erros:

    Wrapper cannot find servlet class ..
    ClassNotFound exception ...

    Also, how do I compile " the servlet class file with the line; package hello; " with the package name

    I would appreciate any help ..

    Thanks
    N

    DB:4.24:Servlet Configuration Problems .. zx

    You have to include the http server URL along with the parameter in method 2.

    The URL displayed in your browser navigation field when you use method 1 should have given you a clue on what to do...

  • RELEVANCY SCORE 3.52

    DB:3.52:Classes12.Jar File s1


    Where can get this file from. I am trying to run servlet accessing oracle database over tomcat. I am getting lots of error when i run the servlet i get the following message

    Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error

    --------------------------------------------------------------------------------

    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

    javax.servlet.ServletException: Servlet execution threw an exception

    Please help

    Thanks

    vineet

    DB:3.52:Classes12.Jar File s1

    classes12.jar contains the Oracle JDBC driver. You can download it from oracle.com.

  • RELEVANCY SCORE 3.20

    DB:3.20:Forward To A Htmlfile pc


    We have static html-files on a hd-drive and want to show (forward or include) them from a jsp or servlet

    Simple example from inside a servlet:
    ...

    getServletContext().getRequestDispatcher("d:\\hello.html").forward(request,response);
    ....

    But we always (of course) get a "not found" exception!

    Does anyone have a working simple solution on this problem?

    DB:3.20:Forward To A Htmlfile pc

    So, simply configure your web-server to serve HTML files from your D: drive.

  • RELEVANCY SCORE 2.81

    DB:2.81:Adf + Faces Portlet Bridge + Webcenter Interaction: How To jx


    Have somebody worked with this technology stack?

    jdveleper Studio Edition Version 11.1.1.1.0
    WebCenter Interaction 10g

    I am trying to integrate my ADF Application with WCI through Oracle Faces Portlet Bridge but unsuccessfully, actually i am getting this error:
    javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:502)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    ... 23 more

    Nested Exception is javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)and these are my config files:
    web.xml
    ?xml version = '1.0' encoding = 'UTF-8'?
    web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    description/home/sergio/jdeveloper/mywork/Pollster/Pollster.jws/description
    display-namePollster.jws/display-name
    context-param
    param-namejavax.faces.STATE_SAVING_METHOD/param-name
    param-valueclient/param-value
    /context-param
    context-param
    descriptionIf this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed./description
    param-nameorg.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION/param-name
    param-valuefalse/param-value
    /context-param
    context-param
    descriptionWhether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information./description
    param-nameoracle.adf.view.rich.versionString.HIDDEN/param-name
    param-valuefalse/param-value
    /context-param
    filter
    filter-nameJpsFilter/filter-name
    filter-classoracle.security.jps.ee.http.JpsFilter/filter-class
    init-param
    param-nameenable.anonymous/param-name
    param-valuetrue/param-value
    /init-param
    /filter
    filter
    filter-nametrinidad/filter-name
    filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class
    /filter
    filter
    filter-nameServletADFFilter/filter-name
    filter-classoracle.adf.share.http.ServletADFFilter/filter-class
    /filter
    filter
    display-nameadfBindings/display-name
    filter-nameadfBindings/filter-name
    filter-classoracle.adf.model.servlet.ADFBindingFilter/filter-class
    /filter
    filter-mapping
    filter-nameJpsFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    dispatcherINCLUDE/dispatcher
    /filter-mapping
    filter-mapping
    filter-nametrinidad/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    filter-mapping
    filter-nameServletADFFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    filter-mapping
    filter-nameadfBindings/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    listener
    listener-classcom.axtel.survey.util.SurveyApplicationListener/listener-class
    /listener
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet
    servlet
    servlet-nameresources/servlet-name
    servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class
    /servlet
    servlet
    servlet-nameSurveyPort/servlet-name
    servlet-classcom.axtel.survey.webservice.SurveyWS/servlet-class
    load-on-startup1/load-on-startup
    /servlet
    servlet
    display-nameHome/display-name
    servlet-nameHome/servlet-name
    servlet-classcom.plumtree.portlet.servlet.PortletServlet/servlet-class
    init-param
    descriptionPagina principal/description
    param-nameportlet-name/param-name
    param-valueHome/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet
    servlet
    servlet-nameWCIActionServlet/servlet-name
    servlet-classcom.plumtree.portlet.servlet.ActionServlet/servlet-class
    /servlet
    servlet
    servlet-nameWCIErrorServlet/servlet-name
    servlet-classcom.plumtree.portlet.servlet.ErrorServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/adf/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/afr/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSurveyPort/servlet-name
    url-pattern/SurveyPort/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/webcenter-framework-resources/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameHome/servlet-name
    url-pattern/portlet/Home/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameWCIActionServlet/servlet-name
    url-pattern/pt_render/*/url-pattern
    url-pattern/pt_action/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameWCIErrorServlet/servlet-name
    url-pattern/pt_error/*/url-pattern
    /servlet-mapping
    /web-apppotlet.xml
    ?xml version="1.0" encoding="UTF-8" standalone="yes"?
    portlet-app version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    portlet id="adf_jsf__Home_jspx"
    descriptionInicio del sistema de encuestas./description
    portlet-nameHome/portlet-name
    display-nameHome/display-name
    portlet-classoracle.portlet.bridge.adf.application.ADFBridgePortlet/portlet-class
    init-param
    namejavax.portlet.faces.defaultViewId.view/name
    value/Home.jspx/value
    /init-param
    init-param
    nameBridgeLifecycleListeners/name
    value
    oracle.portlet.server.bridges.jsf.adf.ADFFacesBridgeLifecycleListener,
    oracle.portlet.server.bridges.jsf.adf.BindingFacesBridgeLifecycleListener
    /value
    /init-param
    supports
    mime-typetext/html/mime-type
    portlet-modeVIEW/portlet-mode
    /supports
    supported-localeen/supported-locale
    portlet-info
    titleHome/title
    short-titleHome/short-title
    /portlet-info
    /portlet
    custom-portlet-mode
    portlet-modeabout/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modeconfig/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modeedit_defaults/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modepreview/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modeprint/portlet-mode
    /custom-portlet-mode
    /portlet-appAs always any idea is welcome!

    Thanks Regards,
    Sergio Valdez

    DB:2.81:Adf + Faces Portlet Bridge + Webcenter Interaction: How To jx

    Ok, Thanks for your suggestion this is the complete trace:

    7/05/2010 11:47:29 AM org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit createResponseWriter
    GRAVE: No RenderingContext has been created.

    javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:502)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    ... 23 more
    Nested Exception is
    javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    202807 [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.plumtree.portlet.servlet.BaseServlet - doBridgeDispatch failed: error from Bridge in executing the request
    javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:502)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    ... 23 more
    Nested Exception is
    javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • RELEVANCY SCORE 2.76

    DB:2.76:400: Bad Request k8


    I am trying to get an inputStream to another servlet from a servlet. I am using standard well documented techniques for opening the connection. The getInputStream() call throws an exception as below:

    java.io.FileNotFoundException: Response: '400: Bad Request' for url: 'http://localhost:7001/shoppingCart/SOAPServlet'
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:367)
    at SendServlet.doGet(SendServlet.java:40)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)

    Here is the code snippet:

    String payload = "THE PAYLOAD WILL BE HERE";

    URL url = new URL("http://Localhost:7001/shoppingCart/SOAPServlet");
    HttpURLConnection conn = (HttpURLConnection)url.openConnection();

    conn.setRequestProperty("SOAPMethodName","http://www.nicholaschase.com/soap/#InventorySold");
    conn.setDoOutput(true);
    conn.setRequestMethod("POST");
    conn.setDoInput(true);

    conn.connect();

    OutputStream toSOAP = conn.getOutputStream();
    toSOAP.write(payload.getBytes());
    toSOAP.close();

    InputStream fromSOAP = conn.getInputStream();

    The last line throws the exception. The servlet is a part of the web application and I am able to access the servlet if a type the URL in the browser window. The web.xml which deploys the servlet is as below:

    servlet
    servlet-nameSOAPServlet/servlet-name
    display-nameSOAPServlet/display-name
    servlet-classSOAPServlet/servlet-class
    descriptionSends SOAP Information back/description
    load-on-startup1/load-on-startup
    /servlet

    servlet-mapping
    servlet-nameSOAPServlet/servlet-name
    url-pattern/SOAPServlet/*/url-pattern
    /servlet-mapping

    Could anybody let me know why the above exception will occur

    DB:2.76:400: Bad Request k8

    This was posted back in 2002, but can someone tell me the solution for it. I am up against the wall with a very familier situation.

    Thanks

  • RELEVANCY SCORE 2.59

    DB:2.59:Exception Handling kd


    Hi,
    I have question regarding ExceptionHandling in Servlet..

    I am having a servlet class say ClassA.
    This ClassA for every request calls another classes Mehtod say ClassB.

    The Method in ClassB can throw sevral kinds of Exceptions.I want to get informed if n Number of Request fails.The Method in classB (Returns String) doesnt throw any Exception. But inturn returns some message to user for different kinds of Exceptions.

    My Question How to keep track the Exception count between the Servlet class (ClassA) and ClassB.

    Thanks in Advance
    Srividya

    DB:2.59:Exception Handling kd

    Thanks Rob,

    I have Implemented it and its working now.

  • RELEVANCY SCORE 2.55

    DB:2.55:One Solution To Exception Java.Net.Protocolexception: Malformed Http Headers ac


    Some I can help me with this problem? I have this exception when I call servlet on browser IE6.0:
    ********************************
    Wed May 15 12:07:45 GMT-05:00 2002:E HTTP Servlet request terminated with IO
    Exception:
    java.net.ProtocolException: malformed HTTP headers
    at weblogic.socket.MuxableSocketHTTP.parseHttpHeaders(MuxableSocketHTTP.
    java:526)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:157)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:380)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    ***********************************

    Help Me!!!!!!!

    DB:2.55:One Solution To Exception Java.Net.Protocolexception: Malformed Http Headers ac

    Oh your previous post says WLS 5.1. Can you check the incoming headers.

    --Vinod.

    "Vinod Mehra" vmehra@bea.com wrote in message
    news:3ce2d5aa@newsgroups2.bea.com...
    Which WLS version?

    Can you put a sniffer/proxy in between and check the headers going into
    weblogic.
    There could be some non standard header which that particular WLS version
    doesn't support. 6.1 and 7.0 versions are more forgiving about that. Let
    me
    know
    which WLS version.

    --Vinod.

    "Ing. Jose Antonio" saturno2@hotmail.com wrote in message
    news:3ce2a67c$1@newsgroups2.bea.com...
    Some I can help me with this problem? I have this exception when I call
    servlet on browser IE6.0:
    ********************************
    Wed May 15 12:07:45 GMT-05:00 2002:E HTTP Servlet request terminated
    with IO
    Exception:
    java.net.ProtocolException: malformed HTTP headers
    at
    weblogic.socket.MuxableSocketHTTP.parseHttpHeaders(MuxableSocketHTTP.
    java:526)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:157)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:380)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
    ***********************************

    Help Me!!!!!!!

  • RELEVANCY SCORE 2.51

    DB:2.51:Java.Lang.Illegalstateexception: Cannot Forward Because The m1



    Hi,java.lang.IllegalStateException: Cannot forward because the response has already been committedthis exception is thrown in the servlet when a request is forwarded. Can anyone please let me know Why this exception is thrown and how can it be handled.I am using JBOss/Tomcat Server, the exception is thrown in the servlet when a request is forwarded with large size of data. This exception is not thrown always.

    DB:2.51:Java.Lang.Illegalstateexception: Cannot Forward Because The m1


    This is a servlet issue, not a JBoss issue. You cannot forward after you have started writing a response.

  • RELEVANCY SCORE 2.50

    DB:2.50:Url-Pattern Rules jp


    Hello everyone,

    I have a question concerning url-pattern servlet mappings which have the same url-pattern. Which gets executed? Is it specified in the servlet documentation or somewhere that, in this example, the first or the second one listed in the deployment descriptor gets the client request that satisfies *.do? Thanks.

    servlet
    servlet-nameSomeServlet/servlet-name
    servlet-classmiscell/SomeServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameSomeServlet/servlet-name
    url-pattern*.do/url-pattern
    /servlet-mapping

    servlet
    servlet-nameSomeOtherServlet/servlet-name
    servlet-classmiscell/SomeOtherServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameSomeOtherServlet/servlet-name
    url-pattern*.do/url-pattern
    /servlet-mapping--Gregory

    DB:2.50:Url-Pattern Rules jp

    Hi there,

    I don't know much about deployment descriptors.

    This Servlet 2.4 spec http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html has more details on them.

    It's a PDF document, first click on Download to see the PDF document

    then look for: servlet-2_4-fr-spec.pdf

    If no one replies here try the Servlet forum here:
    http://forum.java.sun.com/forum.jspa?forumID=33

  • RELEVANCY SCORE 2.50

    DB:2.50:Server Crashing When Trying Req.Getrequestdispatcher("/Jsp/Invaliduser.Jsp" x7


    Hi,

    My server is server crashing when trying to use the dispatcher to forward to a jsp .

    req.getRequestDispatcher("/jsp/invalidUser.jsp").forward(request, response).

    The exception dumo is as below.

    Any help is greatly appreciated

    Thx.
    weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:3151)
    at weblogic/security/acl/internal/AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
    at weblogic/security/service/SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
    at weblogic/servlet/internal/WebAppServletContext.securedExecute(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V(WebAppServletContext.java:1973)
    at weblogic/servlet/internal/WebAppServletContext.execute(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:1880)
    at weblogic/servlet/internal/ServletRequestImpl.run()V(ServletRequestImpl.java:1310)
    at weblogic/work/ExecuteThread.execute(Ljava/lang/Runnable;)V(ExecuteThread.java:207)
    at weblogic/work/ExecuteThread.run()V(ExecuteThread.java:179)
    at jrockit/vm/RNI.c2java(IIII)V(Native Method)
    -- end of trace

    Additional information is available in:
    /usr2/wls_domain/wholeloan/jrockit.27891.dump
    No snapshot file (core dump) will be created because core dumps have been
    disabled. To enable core dumping, try "ulimit -c unlimited"
    before starting JRockit again.
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Extended, platform specific info:
    libc release: 2.3.2-stable
    Elf headers:
    libc ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 00015870 PHOFF: 00000034 SHOFF: 0017f268 EF: 0x0 HS: 52 PS: 32 PHN; 9 SS: 40 SHN: 61 STIDX: 60
    libpthread ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 00004710 PHOFF: 00000034 SHOFF: 00017860 EF: 0x0 HS: 52 PS: 32 PHN; 8 SS: 40 SHN: 34 STIDX: 33
    libjvm ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 0004dd60 PHOFF: 00000034 SHOFF: 00280c74 EF: 0x0 HS: 52 PS: 32 PHN; 3 SS: 40 SHN: 20 STIDX: 17

    DB:2.50:Server Crashing When Trying Req.Getrequestdispatcher("/Jsp/Invaliduser.Jsp" x7

    Hi,

    My server is server crashing when trying to use the dispatcher to forward to a jsp .

    req.getRequestDispatcher("/jsp/invalidUser.jsp").forward(request, response).

    The exception dumo is as below.

    Any help is greatly appreciated

    Thx.
    weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/RequestDispatcherImpl.invokeServlet(ZLjavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Lweblogic/servlet/internal/ServletResponseImpl;I)V(RequestDispatcherImpl.java:494)
    at weblogic/servlet/internal/RequestDispatcherImpl.forward(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(RequestDispatcherImpl.java:245) at com/bac/wlm/web/SsoFilter.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljavax/servlet/FilterChain;)V(SsoFilter.java:165)
    at weblogic/servlet/internal/FilterChainImpl.doFilter(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V(FilterChainImpl.java:42)
    at weblogic/servlet/internal/WebAppServletContext$ServletInvocationAction.run()Ljava/lang/Object;(WebAppServletContext.java:3151)
    at weblogic/security/acl/internal/AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)
    at weblogic/security/service/SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)
    at weblogic/servlet/internal/WebAppServletContext.securedExecute(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Z)V(WebAppServletContext.java:1973)
    at weblogic/servlet/internal/WebAppServletContext.execute(Lweblogic/servlet/internal/ServletRequestImpl;Lweblogic/servlet/internal/ServletResponseImpl;)V(WebAppServletContext.java:1880)
    at weblogic/servlet/internal/ServletRequestImpl.run()V(ServletRequestImpl.java:1310)
    at weblogic/work/ExecuteThread.execute(Ljava/lang/Runnable;)V(ExecuteThread.java:207)
    at weblogic/work/ExecuteThread.run()V(ExecuteThread.java:179)
    at jrockit/vm/RNI.c2java(IIII)V(Native Method)
    -- end of trace

    Additional information is available in:
    /usr2/wls_domain/wholeloan/jrockit.27891.dump
    No snapshot file (core dump) will be created because core dumps have been
    disabled. To enable core dumping, try "ulimit -c unlimited"
    before starting JRockit again.
    If you see this dump, please open a support case with BEA and
    supply as much information as you can on your system setup and
    the program you were running. You can also search for solutions
    to your problem at http://forums.bea.com in
    the forum jrockit.developer.interest.general.
    Extended, platform specific info:
    libc release: 2.3.2-stable
    Elf headers:
    libc ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 00015870 PHOFF: 00000034 SHOFF: 0017f268 EF: 0x0 HS: 52 PS: 32 PHN; 9 SS: 40 SHN: 61 STIDX: 60
    libpthread ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 00004710 PHOFF: 00000034 SHOFF: 00017860 EF: 0x0 HS: 52 PS: 32 PHN; 8 SS: 40 SHN: 34 STIDX: 33
    libjvm ehdrs: EI: 7f454c46010101000000000000000000 ET: 3 EM: 3 V: 1 ENTRY: 0004dd60 PHOFF: 00000034 SHOFF: 00280c74 EF: 0x0 HS: 52 PS: 32 PHN; 3 SS: 40 SHN: 20 STIDX: 17

  • RELEVANCY SCORE 2.49

    DB:2.49:Communication Applet - Servlet za


    Hello,

    I'm trying to do a communication Applet - Servlet.
    When i'm typing in my browser internet explorer
    http://pcsm1:8080/servlet/MyServlet
    My servlet is invoqued perfectly and i see the good message in the prompt ms-dos (cf MS-DOS PROMPT : MESSAGE OF THE SERVLET!)
    But when i'm trying with my applet, i have a security exception : cannot access "pcsm1":8080

    ******************************************
    SERVLET :

    public class MyServlet extends HttpServlet
    {

    public void init(ServletConfig config)
    {
    System.out.println("Servlet Init");
    }

    public void doGet(HttpServletRequest request,HttpServletResponse response)
    {
    ObjectOutputStream outputToApplet;
    long data=69;
    try
    {
    outputToApplet = new ObjectOutputStream (response.getOutputStream());System.out.println("Sending data to applet...");
    outputToApplet.writeLong(data);
    outputToApplet.flush();
    outputToApplet.close();
    System.out.println("Data transmission complete.");
    }
    catch (IOException e)
    {
    }

    }

    public void doPost(HttpServletRequest request,HttpServletResponse response)
    {
    }

    }

    *****************************************
    APPLET :

    public class MyApplet extends Applet
    {

    public void init()
    {
    try
    {
    URL url = new URL("http://pcsm1:8080/servlet/MyServlet");
    or
    URL url = new URL(getCodeBase(),"http://pcsm1:8080/servlet/MyServlet");

    URLConnection servletConnection = url.openConnection();
    servletConnection.setDoInput(true);
    servletConnection.setDoOutput(true);
    servletConnection.setUseCaches (false);
    servletConnection.setDefaultUseCaches (false);
    servletConnection.setRequestProperty("Content-type","application/octet-stream");
    ObjectInputStream inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
    data = inputFromServlet.readLong();
    inputFromServlet.close();
    }
    catch (Exception e)
    {
    }
    }

    }

    *****************************************
    MS-DOS PROMPT : MESSAGE OF THE SERVLET
    when caller is internet explorer

    C:\Servlet\binservletrunner -d "c:\servlet\bin"
    servletrunner starting with settings:
    port = 8080
    backlog = 50
    max handlers = 100
    timeout = 5000
    servlet dir = c:\servlet\bin
    document dir = .\examples
    servlet propfile = c:\servlet\bin\servlet.properties
    Servlet Init
    Sending data to applet...
    Data transmission complete.
    *****************************************

    What can i do to avoid my security exception problem?

    Very thanks...

    DB:2.49:Communication Applet - Servlet za

    yeah i know you're right. But nobody knows ...
    Maybe you have one of these source codes, haven't you ?

  • RELEVANCY SCORE 2.46

    DB:2.46:Httpunit Servlet Debugging Issue.. 3j


    Hello, I'm debugging a problem related to HTTPUNIT and Servlets. If I'm not in the right forum, I apologize and ask for guidance on where I should ask this question.

    This is my error:


    Testcase: testBlankVariablesCheckDBValidation(com..controller.test.TestValidationController): FAILED
    Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation]
    junit.framework.AssertionFailedError: Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation]

    Testcase: testBlankVariablesCheckDBValidation(com.controller.test.TestValidationController): FAILED Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation] junit.framework.AssertionFailedError: Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation] Here is my servlet code


    1. package com.servlets;
    2.
    3. import com..logging.AppLogging;
    4. import com.controllers.ValidationController;
    5. import java.io.IOException;
    6. import javax.servlet.ServletContext;
    7. import javax.servlet.ServletException;
    8. import javax.servlet.http.HttpServlet;
    9. import javax.servlet.http.HttpServletRequest;
    10. import javax.servlet.http.HttpServletResponse;
    11.
    12.
    13.
    14. public class FormValidation extends HttpServlet
    15. {
    16.
    17.
    18. @Override
    19. public void init() throws ServletException
    20. {
    21. ServletContext sc = getServletContext();
    22.
    23. //Configure and initialize the log4j logger.
    24. AppLogging al = new AppLogging();
    25. al.Log4jInit(sc);
    26.
    27. }
    28.
    29.
    30. @Override
    31. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    32. {
    33. if(request.getParameter("function").equals("V"))
    34. {
    35. ValidationController vc = new ValidationController();
    36. vc.validateUser(request, response);
    37. }
    38. }
    39.
    40.
    41. @Override
    42. protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
    43. {
    44.
    45. doPost(req,resp);
    46.
    47. }
    48.
    49.
    50. @Override
    51. public String getServletInfo()
    52. {
    53. return "Validate the user information..";
    54. }
    55.
    56.
    57.
    58.
    59. }
    60.
    61. And here is my web.xml in case it's a mapping issue....

    1.
    2.
    3. ?xml version="1.0" encoding="UTF-8"?
    4. 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"
    5. servlet
    6. servlet-nameFormValidation/servlet-name
    7. servlet-classcom.servlets.FormValidation/servlet-class
    8. /servlet
    9. servlet-mapping
    10. servlet-nameFormValidation/servlet-name
    11. url-pattern/FormValidation/url-pattern
    12. /servlet-mapping
    13. session-config
    14. session-timeout
    15. 30
    16. /session-timeout
    17. /session-config
    18. /web-app I'm I being dense? I can't see any reason why this isn't working. I know there error is saying something about mapping. How is this mapping incorrect?

    Any help is greatly appreciated!!

    Regards,
    bw

    DB:2.46:Httpunit Servlet Debugging Issue.. 3j

    Hello, I'm debugging a problem related to HTTPUNIT and Servlets. If I'm not in the right forum, I apologize and ask for guidance on where I should ask this question.

    This is my error:


    Testcase: testBlankVariablesCheckDBValidation(com..controller.test.TestValidationController): FAILED
    Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation]
    junit.framework.AssertionFailedError: Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation]

    Testcase: testBlankVariablesCheckDBValidation(com.controller.test.TestValidationController): FAILED Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation] junit.framework.AssertionFailedError: Error testing Exception is com.meterware.httpunit.HttpNotFoundException: Error on HTTP request: 404 No servlet mapping defined [http://localhost:8080/BooksSite/FormValidation] Here is my servlet code


    1. package com.servlets;
    2.
    3. import com..logging.AppLogging;
    4. import com.controllers.ValidationController;
    5. import java.io.IOException;
    6. import javax.servlet.ServletContext;
    7. import javax.servlet.ServletException;
    8. import javax.servlet.http.HttpServlet;
    9. import javax.servlet.http.HttpServletRequest;
    10. import javax.servlet.http.HttpServletResponse;
    11.
    12.
    13.
    14. public class FormValidation extends HttpServlet
    15. {
    16.
    17.
    18. @Override
    19. public void init() throws ServletException
    20. {
    21. ServletContext sc = getServletContext();
    22.
    23. //Configure and initialize the log4j logger.
    24. AppLogging al = new AppLogging();
    25. al.Log4jInit(sc);
    26.
    27. }
    28.
    29.
    30. @Override
    31. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    32. {
    33. if(request.getParameter("function").equals("V"))
    34. {
    35. ValidationController vc = new ValidationController();
    36. vc.validateUser(request, response);
    37. }
    38. }
    39.
    40.
    41. @Override
    42. protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
    43. {
    44.
    45. doPost(req,resp);
    46.
    47. }
    48.
    49.
    50. @Override
    51. public String getServletInfo()
    52. {
    53. return "Validate the user information..";
    54. }
    55.
    56.
    57.
    58.
    59. }
    60.
    61. And here is my web.xml in case it's a mapping issue....

    1.
    2.
    3. ?xml version="1.0" encoding="UTF-8"?
    4. 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"
    5. servlet
    6. servlet-nameFormValidation/servlet-name
    7. servlet-classcom.servlets.FormValidation/servlet-class
    8. /servlet
    9. servlet-mapping
    10. servlet-nameFormValidation/servlet-name
    11. url-pattern/FormValidation/url-pattern
    12. /servlet-mapping
    13. session-config
    14. session-timeout
    15. 30
    16. /session-timeout
    17. /session-config
    18. /web-app I'm I being dense? I can't see any reason why this isn't working. I know there error is saying something about mapping. How is this mapping incorrect?

    Any help is greatly appreciated!!

    Regards,
    bw

  • RELEVANCY SCORE 2.46

    DB:2.46:Stackoverflowerror When Trying To Access Non Existing Page/Servlet In Wildfly 8.0.0 x8



    Hi,

    I am using WildFly 8.0.0 (Final).

    When sending Post request to non existing page/servlet I get StackOverflowError exception.

    Looks like there is infinit loop in method calls when processing the request.

    Yaniv Peleg

  • RELEVANCY SCORE 2.46

    DB:2.46:While Calling Method Exception:-Com.Ibm.Ejs.Container.Uncheckedexception: ; 1d


    frnds!
    while calling a method from statelesssession bean the exception is thrown:--

    Error 500
    An error has occured while processing request:http://192.168.1.61/MyApp/TradeSession/TradeClient.jsp
    Message: Server caught unhandled exception from servlet [JSP 1.1 Processor]: RemoteException occurred in server thread; nested exception is: com.ibm.ejs.container.UncheckedException: ; nested exception is: java.lang.NullPointerException

    Target Servlet: JSP 1.1 Processor
    StackTrace:
    --------------------------------------------------------------------------------
    Root Error-1: RemoteException occurred in server thread; nested exception is: com.ibm.ejs.container.UncheckedException: ; nested exception is: java.lang.NullPointerException---------------------------------

    can anybody tell the cause and the way out!!

    paw

    DB:2.46:While Calling Method Exception:-Com.Ibm.Ejs.Container.Uncheckedexception: ; 1d

    Paw,

    Did you already find a solution for this ?
    I am facing exactly the same problem ...

    Gert C.

  • RELEVANCY SCORE 2.46

    DB:2.46:Servlet Error dz


    I am getting the below error while trying to run a servlet in Apache tomcat.

    HTTP Status 500 -

    --------------------------------------------------------------------------------

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    java.lang.NullPointerException
    tools.HTMLServlet.getHTMLTable(HTMLServlet.java:39)
    gui.ReportServlet.doPost(ReportServlet.java:113)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    DB:2.46:Servlet Error dz

    I find that hard to believe. More likely, this line is the culprit:

    TreeSet v = db.getTable(obj);and getDb is returning null.

  • RELEVANCY SCORE 2.44

    DB:2.44:Moving From Jsf 1.1 To Richfaces 3.2.0.Ga dx



    I currently have an application implemented in jsf 1.1. I started porting to richfaces 3.2.0.GA with jsf 1.2_04-b16-p02 version jar files. My aim is to have some pages of the application still run as *.faces and some with *.xhtml extension (e.g. treeView.xhtml)pages with .faces extension work fine, but pages with .xhtml extension throw exception. when i do a http query for treeView.xhtml, it throws an 404 exception for treeView.jsp.My web.xml?xml version="1.0"?web-app version="2.4" 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" context-param param-namecom.sun.faces.expressionFactory/param-name param-valueorg.apache.el.ExpressionFactoryImpl/param-value /context-param context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueserver/param-value /context-param servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup servlet-nameAJAXServlet/servlet-name servlet-classnet.em.servlets.AJAXServlet/servlet-class load-on-startup1/load-on-startup servlet-nameInitialLizeApplicationbeansServlet/servlet-name servlet-classnet.em.servlets.InitialLizeApplicationBeanServlet/servlet-class load-on-startup1/load-on-startup servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern*.faces/url-pattern /servlet-mapping servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/treeView.xhtml/url-pattern /servlet-mapping servlet-mapping servlet-nameAJAXServlet/servlet-name url-pattern/abc.ajax/url-pattern /servlet-mapping filter-nameExtensionsFilter/filter-name filter-class net.em.emrp.filters.EMExtensionsFilter /filter-class init-param param-nameuploadMaxFileSize/param-name param-value10m/param-value /init-param init-param param-nameuploadThresholdSize/param-name param-value100k/param-value /init-param filter-nameResponseOverrideFilter/filter-name filter-classorg.displaytag.filter.ResponseOverrideFilter/filter-class session-config session-timeout 720 !-- minutes -- /session-timeout /session-config filter-mapping filter-nameExtensionsFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.do/url-pattern /filter-mapping filter-mapping filter-nameResponseOverrideFilter/filter-name url-pattern*.jsp/url-pattern /filter-mapping display-nameAjax4jsf Filter/display-name filter-nameajax4jsf/filter-name filter-classorg.ajax4jsf.Filter/filter-class filter-mapping filter-nameajax4jsf/filter-name servlet-nameFaces Servlet/servlet-name REQUEST FORWARD INCLUDE /filter-mapping welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list taglib-urihttp://ajaxtags.org/tags/ajax/taglib-uri taglib-location/WEB-INF/ajaxtags.tld/taglib-location/web-app

    DB:2.44:Moving From Jsf 1.1 To Richfaces 3.2.0.Ga dx


    Your treeView.xhtml presumes you use Facelets view handlers. However, as you mentioned previously, you do not use facelets. So, you have no any chance to have it working.Why do you want to have xhtml pages if you have existing application what use the standard JSP view handler? RichFaces does not require it.

  • RELEVANCY SCORE 2.44

    DB:2.44:Pdfdocument Processor Failed To Process Inputpdf Request. 7c



    Hi Experts,

    My Adobe Forms application has been running without a hitch for some time already but suddenly this exception came up out of the blue.

    PDFDocument Processor failed to process InputPDF Request.

    DB:2.44:Pdfdocument Processor Failed To Process Inputpdf Request. 7c


    Hi I am having exactly the same message. The question seems to be answered ?

    BUT WHAY WAS THE ANSWER ?

    Help needed on 'PDFDocument Processor failed to process InputPDF Request'and.or Exception in method createNoneInteractivePDF

  • RELEVANCY SCORE 2.44

    DB:2.44:Nullpointer Exception Ivoking Servlet m7


    Happens somewhat randomly:

    Tue Sep 19 22:05:27 GMT+00:00 2000:E ServletContextManager Servlet request terminiated with RuntimeException
    java.lang.NullPointerException
    at weblogic.socket.TunnelContext.getServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)

    --
    Dimitri
    http://dima.dhs.org

    DB:2.44:Nullpointer Exception Ivoking Servlet m7

    Hi,Jong.

    This Problem occurs Ocasionally.
    The following lines are part of my weblogic.log.

    ---------------------------------------------
    Mon Sep 25 10:19:47 JST 2000:I WebLogicServer WebLogic Server started
    Mon Sep 25 12:05:53 JST 2000:E ServletContextManager Servlet request
    termini
    ated with RuntimeException
    java.lang.NullPointerException
    at weblogic.socket.TunnelContext.getServlet(TunnelContext.java:24)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
    ContextManager.java:240)
    at
    weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
    a:369)
    at
    weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:269)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)

    Mon Sep 25 17:43:13 JST 2000:I ServletContext-General helloWorld: init
    ---------------------------------------------

    The line before an error occurred is the start message of WebLogicServer.
    And the last line is the message we access to the HelloWorld(included as
    examples).
    For This time, Server has been started up but no action occured until
    HelloWorld servlet is called.

    Are there any ways of solving this problem from the contents of this error?.

    Please give me an example that will fail constantly so that I can look
    deep into it.
    Thanks.
    But Source Code(.java) that is cause of the problem has not been Traced yet.

    I assume that you did not unjar the jar file and copied the classes to the
    /classes directory
    manually. If you did, this is not a good practice.
    No.

    PlatForm etc.
    WLS5.1+SP5
    Java : JDK1.2.2_005 for solaris.
    OS:Solaris7
    Third Party: Oracle8i

    THANKS.

    --
    Shoji

    "Jong Lee" jlee@bea.com wrote in message
    news:39d23053$1@newsgroups.bea.com...

    Does this problem occur ocasionally or very frequently?
    I ran some quick tests and did not see the problem.
    Please give me an example that will fail constantly so that I can look
    deep into it.
    I assume that you did not unjar the jar file and copied the classes to the
    /classes directory
    manually. If you did, this is not a good practice.

    thanks

    Jong

    "Shoji" tunefuji@iida.sse.co.jp wrote:

    Hi,Jong.
    We?are using WL5.1+SP5 on Solaris7.
    THANKS.

    "Jong Lee" jlee@bea.com wrote in message
    news:39d151a0$1@newsgroups.bea.com...

    Are you running 4.5 or 5.1? any sp?

    Jong

    "Shoji" tunefuji@iida.sse.co.jp wrote:
    We can see the same exception randomly.
    Any suggestions please.
    Thanks.

    --
    Shoji

    "Dimitri Rakitine" dr@dima.dhs.org wrote in message
    news:39c7e6e1@newsgroups.bea.com...
    Happens somewhat randomly:

    Tue Sep 19 22:05:27 GMT+00:00 2000:E ServletContextManager
    Servlet
    request terminiated with RuntimeException
    java.lang.NullPointerException
    at weblogic.socket.TunnelContext.getServlet(Compiled Code)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled
    Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)


    --
    Dimitri
    http://dima.dhs.org


  • RELEVANCY SCORE 2.44

    DB:2.44:Problem Calling Class From Servlet d7


    I need this program which calls a class that implments JMF to do server side processes so i cant use an applet.but i dont need the gui so i have removed the gui. im using a servlet to call the class and i have this error. Any ideas?

    Below is the vid2jpg code minus the gui.

    import java.io.*;
    import java.awt.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import java.awt.image.*;
    import javax.imageio.*;

    public class vid2jpg implements ControllerListener
    {
    Processor p;
    Object waitObj = new Object();
    boolean stateOK = true;
    DataSourceHandler handler;

    int imgWidth;int imgHeight;

    Image outputImage;
    String sep = System.getProperty("file.separator");

    int[] outvid;
    int startFr = 1;int endFr = 1000;int countFr = 0;
    boolean sunjava=true;

    /**
    * Static main method
    */
    public static void main(String[] args)
    {
    if(args.length == 0)
    {
    System.out.println("No media address.");
    new vid2jpg("file:///C:/Video/applications2/sun.mpg"); // or alternative "vfw://0" if webcam
    }
    else
    {
    String path = args[0].trim();
    System.out.println(path);
    new vid2jpg(path);
    }
    }

    /**
    * Constructor
    */
    public vid2jpg(String path)
    {
    MediaLocator ml;String args = path;

    if((ml = new MediaLocator(args)) == null)
    {
    System.out.println("Cannot build media locator from: " + args);
    }

    if(!open(ml))
    {
    System.out.println("Failed to open media source");
    }
    }

    /**
    * Given a MediaLocator, create a processor and start
    */
    private boolean open(MediaLocator ml)
    {
    System.out.println("Create processor for: " + ml);

    try
    {
    p = Manager.createProcessor(ml);
    }
    catch (Exception e)
    {
    System.out.println("Failed to create a processor from the given media source: " + e);
    return false;
    }

    p.addControllerListener(this);

    // Put the Processor into configured state.
    p.configure();
    if(!waitForState(p.Configured))
    {
    System.out.println("Failed to configure the processor.");
    return false;
    }

    // Get the raw output from the Processor.
    p.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));

    TrackControl tc[] = p.getTrackControls();
    if(tc == null)
    {
    System.out.println("Failed to obtain track controls from the processor.");
    return false;
    }

    TrackControl videoTrack = null;
    for(int i = 0; i tc.length; i++)
    {
    if(tc.getFormat() instanceof VideoFormat)
    {
    tc.setFormat(new RGBFormat(null, -1, Format.byteArray, -1.0F, 24, 3, 2, 1));
    videoTrack = tc;
    }
    else
    tc.setEnabled(false);
    }
    if(videoTrack == null)
    {
    System.out.println("The input media does not contain a video track.");
    return false;
    }
    System.out.println("Video format: " + videoTrack.getFormat());

    p.realize();
    if(!waitForState(p.Realized))
    {
    System.out.println("Failed to realize the processor.");
    return false;
    }

    // Get the output DataSource from the processor and set it to the DataSourceHandler.
    DataSource ods = p.getDataOutput();
    handler = new DataSourceHandler();
    try
    {
    handler.setSource(ods); // also determines image size
    }
    catch(IncompatibleSourceException e)
    {
    System.out.println("Cannot handle the output DataSource from the processor: " + ods);
    return false;
    }

    // setLayout(new FlowLayout(FlowLayout.LEFT));
    // currPanel = new imgPanel(new Dimension(imgWidth,imgHeight));
    // add(currPanel);
    // pack();
    //setLocation(100,100);
    // setVisible(true);

    handler.start();

    // Prefetch the processor.
    p.prefetch();

    if(!waitForState(p.Prefetched))
    {
    System.out.println("Failed to prefetch the processor.");
    return false;
    }

    // Start the processor
    //p.setStopTime(new Time(20.00));
    p.start();

    return true;
    }

    /**
    * Sets image size
    */
    private void imageProfile(VideoFormat vidFormat)
    {
    System.out.println("Push Format "+vidFormat);
    Dimension d = (vidFormat).getSize();
    System.out.println("Video frame size: "+ d.width+"x"+d.height);
    imgWidth=d.width;
    imgHeight=d.height;
    }

    /**
    * Called on each new frame buffer
    */
    int nextframetime = 0;
    private void useFrameData(Buffer inBuffer)
    {

    try
    {

    if(inBuffer.getData()!=null) // vfw://0 can deliver nulls
    {

    if(sunjava) // and with import javax.imageio.*;
    {
    int frametimesecs = (int)(inBuffer.getTimeStamp()/1000000000);

    if(frametimesecs%10 == 0 frametimesecs==nextframetime)
    {
    nextframetime+=10;

    BufferedImage bi = new BufferedImage(outputImage.getWidth(null), outputImage.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics g = bi.getGraphics();

    ImageIO.write(bi, "png", new File("images"+sep+"image_"+(inBuffer.getTimeStamp()/1000000000)+".png"));
    }
    }
    }
    }
    catch(Exception e){}
    }

    /**
    * Tidy on finish
    */
    public void tidyClose()
    {
    handler.close();
    p.close();

    }

    /**
    * Block until the processor has transitioned to the given state
    */
    private boolean waitForState(int state)
    {
    synchronized(waitObj)
    {
    try
    {
    while(p.getState() state stateOK)
    waitObj.wait();
    }
    catch (Exception e)
    {
    }
    }
    return stateOK;
    }

    /**
    * Controller Listener.
    */
    public void controllerUpdate(ControllerEvent evt)
    {
    if(evt instanceof ConfigureCompleteEvent || evt instanceof RealizeCompleteEvent || evt instanceof PrefetchCompleteEvent)
    {
    synchronized(waitObj)
    {
    stateOK = true;
    waitObj.notifyAll();
    }
    }
    else
    if(evt instanceof ResourceUnavailableEvent)
    {
    synchronized(waitObj)
    {
    stateOK = false;
    waitObj.notifyAll();
    }
    }
    else
    if(evt instanceof EndOfMediaEvent || evt instanceof StopAtTimeEvent)
    {
    tidyClose();
    }
    }

    /***************************************************
    * Inner classes
    ***************************************************/

    /**
    * A DataSourceHandler class to read from a DataSource and displays
    * information of each frame of data received.
    */
    class DataSourceHandler implements BufferTransferHandler
    {
    DataSource source;
    PullBufferStream pullStrms[] = null;
    PushBufferStream pushStrms[] = null;
    Buffer readBuffer;

    /**
    * Sets the media source this MediaHandler should use to obtain content.
    */
    private void setSource(DataSource source) throws IncompatibleSourceException
    {
    // Different types of DataSources need to handled differently.
    if(source instanceof PushBufferDataSource)
    {
    pushStrms = ((PushBufferDataSource) source).getStreams();

    // Set the transfer handler to receive pushed data from the push DataSource.
    pushStrms[0].setTransferHandler(this);

    // Set image size
    imageProfile((VideoFormat)pushStrms[0].getFormat());
    }
    else
    if(source instanceof PullBufferDataSource)
    {
    System.out.println("PullBufferDataSource!");

    // This handler only handles push buffer datasource.
    throw new IncompatibleSourceException();
    }

    this.source = source;
    readBuffer = new Buffer();
    }

    /**
    * This will get called when there's data pushed from the PushBufferDataSource.
    */
    public void transferData(PushBufferStream stream)
    {
    try
    {
    stream.read(readBuffer);
    }
    catch(Exception e)
    {
    System.out.println(e);
    return;
    }

    // Just in case contents of data object changed by some other thread
    Buffer inBuffer = (Buffer)(readBuffer.clone());

    // Check for end of stream
    if(readBuffer.isEOM())
    {
    System.out.println("End of stream");
    return;
    }

    // Do useful stuff or wait
    useFrameData(inBuffer);
    }

    public void start()
    {
    try{source.start();}catch(Exception e){System.out.println(e);}
    }

    public void stop()
    {
    try{source.stop();}catch(Exception e){System.out.println(e);}
    }

    public void close(){stop();}

    public Object[] getControls()
    {
    return new Object[0];
    }

    public Object getControl(String name)
    {
    return null;
    }
    }

    }
    below is the servlet code.

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;

    public class ShowMovie extends HttpServlet {

    String rootURL="http://127.0.0.1:8080/Video/";

    public void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    //String movie=request.getParameter("movie");
    String movie ="son";
    getStart(movie);
    response.sendRedirect(rootURL+"View.jsp");

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    public void getStart(String url){
    new vid2jpg(url);
    }
    }

    this is the error from the server. Im using tomkat 5

    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknown Source)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ShowMovie.getStart(ShowMovie.java:31)
    ShowMovie.processRequest(ShowMovie.java:14)
    ShowMovie.doGet(ShowMovie.java:22)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

    and also, the class files as well as the source files of the servlet and vid2jpg are in the WEB-INF/classes/ folder.

    DB:2.44:Problem Calling Class From Servlet d7

    thanks shanu, i put the jmf.jar into the lib and it seemed to have curbed the problem. however, i'm having trouble refreshing the page every 5 seconds to show me a new image.

  • RELEVANCY SCORE 2.43

    DB:2.43:If I Click The Login Button The Resource Not Found Error Page Is Displaeyd f1


    This is my login page

    package com.LMS.form;

    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;

    /**
    * Servlet implementation class for Servlet: loginPage
    *
    */
    public class loginPage extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
    /* (non-Java-doc)
    * @see javax.servlet.http.HttpServlet#HttpServlet()
    */
    public loginPage() {
    super();
    }

    /* (non-Java-doc)
    * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
    */
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    StringBuffer contents = new StringBuffer("");
    contents.append("HTMLBODY");
    contents.append("FORM name='frm1' method=POST action=/LMS/createALogin");
    contents.append("Username : ");
    contents.append("INPUT TYPE=TEXT NAME='USERNAME'/ br");
    contents.append("Password : ");
    contents.append("INPUT TYPE=TEXT NAME='PASSWORD'/ br");
    contents.append("INPUT TYPE=SUBMIT name='sub' value = 'login'/");
    contents.append("/FORM");
    contents.append("/BODY/HTML");

    response.getWriter().write(contents.toString());
    }

    /* (non-Java-doc)
    * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
    */
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.getWriter().write("DoPost1");
    }
    }

    ============================================================
    This is my Web.xml

    ?xml version="1.0" encoding="UTF-8"?
    web-app id="WebApp_ID" version="2.4"
    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"
    context-param
    param-nameadminusername/param-name
    param-valueadmin/param-value
    param-nameadminpassword/param-name
    param-valueadmin/param-value
    /context-param
    display-nameLMS/display-name
    servlet
    descriptionUser login page for LMS module/description
    display-nameloginPage/display-name
    servlet-nameloginPage/servlet-name
    servlet-classcom.LMS.form.loginPage/servlet-class
    /servlet
    servlet
    description/description
    display-nameexceptionservlet/display-name
    servlet-nameexceptionservlet/servlet-name
    servlet-classcom.LMS.form.exceptionservlet/servlet-class
    /servlet
    servlet
    description/description
    display-nameInFoServlet/display-name
    servlet-nameInFoServlet/servlet-name
    servlet-classcom.LMS.form.InFoServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameloginPage/servlet-name
    url-pattern/LMS/loginPage/url-pattern
    /servlet-mapping
    servlet
    description/description
    display-nameCreate a login/display-name
    servlet-namecreateALogin/servlet-name
    servlet-class
    com.LMS.form.controller.createALogin
    /servlet-class
    /servlet
    servlet-mapping
    servlet-namecreateALogin/servlet-name
    url-pattern/LMS/createALogin/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameloginPage/servlet-name
    url-pattern/LMS/Welcome/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameloginPage/servlet-name
    url-pattern/LMS/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameexceptionservlet/servlet-name
    url-pattern/LMS/exceptionservlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameInFoServlet/servlet-name
    url-pattern/LMS/InFoServlet/url-pattern
    /servlet-mapping
    welcome-file-list
    welcome-fileLMS/welcome-file
    welcome-fileindex.html/welcome-file
    welcome-fileindex.htm/welcome-file
    welcome-fileindex.jsp/welcome-file
    welcome-filedefault.html/welcome-file
    welcome-filedefault.htm/welcome-file
    welcome-filedefault.jsp/welcome-file
    /welcome-file-list
    error-page
    exception-typejava.lang.Throwable/exception-type
    location/LMS/exceptionservlet/location
    /error-page
    /web-app
    =================================================================
    package com.LMS.form.controller;

    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;

    import com.LMS.form.inter.UserList;

    /**
    * Servlet implementation class for Servlet: createALogin
    *
    */
    public class createALogin extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
    /* (non-Java-doc)
    * @see javax.servlet.http.HttpServlet#HttpServlet()
    */
    public createALogin() {
    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
    }

    /* (non-Java-doc)
    * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
    */
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    String username = request.getParameter("USERNAME");
    String password = request.getParameter("PASSWORD");

    if(username.equals(getServletContext().getInitParameter("adminusername"))){
    if(password.equals(getServletContext().getInitParameter("adminpassword"))){
    //continue
    }
    //wrong password
    }
    else{
    //check for correct username
    boolean isExist = UserList.isUserExist(username);
    if(isExist){

    }
    else{
    request.setAttribute("LMSLINK", "Click a href='/LMS'here/a to try once more");
    request.setAttribute("LMSINFO", "User does not exist");
    getServletContext().getRequestDispatcher("/LMS/InFoServlet").forward(request, response);
    }
    //right - continue
    //wrong - display to continue
    }
    }
    }

    If i click the submit button in loginPage.java, resource not found error is thrown

    DB:2.43:If I Click The Login Button The Resource Not Found Error Page Is Displaeyd f1

    Yes thanks boss.

    Now it is working. I have also tested by changing the web.xml to /createAlogin and action in servlet as createALogin. Now the url displayed as i expected

    But I dont understand the url pattern will work relative OR

    as of the above example it works for the string that comes after localhost:8080/LMS

  • RELEVANCY SCORE 2.43

    DB:2.43:Problem With Web.Xml (Weblogic Server 8.1 Sp2) ? pp


    I am using WebLogic Server 8.1 SP2
    on starting the server i am getting following error
    please help, where i have done mistake.
    -------------------------------
    Jan 13, 2005 5:24:50 PM GMT+05:30 Warning HTTP BEA-101248 [Application:
    'D:\domains\rmmdomain\applications', Module: 'rmmweb']: Deployment descriptor "
    web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The
    content of element type "web-app" must match "(icon?,display-name?,description?
    ,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servle
    t-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*)". (line 27, column 11).
    -------------------------------------------------

    source code of my web.xml
    ---------------------------------------------?xml version="1.0" ?
    !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-nameReportControllerServlet/servlet-name
    servlet-classcom.sski.web.statements.servlets.ReportControllerServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameReportControllerServlet/servlet-name
    url-pattern/rcs.sk/url-pattern
    /servlet-mapping

    servlet
    servlet-nameFNOReportControllerServlet/servlet-name
    servlet-classcom.sski.web.statements.servlets.FNOReportControllerServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameFNOReportControllerServlet/servlet-name
    url-pattern/frcs.sk/url-pattern
    /servlet-mapping

    servlet
    servlet-nameLoginServlet/servlet-name
    servlet-classcom.sski.web.login.servlets.LoginServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameLoginServlet/servlet-name
    url-pattern/BRLoginServlet.sk/url-pattern
    /servlet-mapping

    servlet
    servlet-nameOrderControllerServlet/servlet-name
    servlet-classcom.sski.web.order.servlets.OrderControllerServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameOrderControllerServlet/servlet-name
    url-pattern/ocs.sk/url-pattern
    /servlet-mapping

    servlet
    servlet-nameFNOOrderControllerServlet/servlet-name
    servlet-classcom.sski.web.order.servlets.FNOOrderControllerServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameFNOOrderControllerServlet/servlet-name
    url-pattern/focs.sk/url-pattern
    /servlet-mapping

    servlet
    servlet-nameMessageServlet/servlet-name
    servlet-classcom.sski.web.login.servlets.MessageServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameMessageServlet/servlet-name
    url-pattern/MessageServlet.sk/url-pattern
    /servlet-mapping

    servlet
    servlet-nameProfileControllerServlet/servlet-name
    servlet-classcom.sski.web.profile.servlets.ProfileControllerServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameProfileControllerServlet/servlet-name
    url-pattern/pcs.sk/url-pattern
    /servlet-mapping

    servlet
    servlet-nameIPOSKServlet/servlet-name
    servlet-classcom.sharekhan.ipo.servlets.IPOSKServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameIPOSKServlet/servlet-name
    url-pattern/ipo.sk/url-pattern
    /servlet-mapping

    error-page
    exception-typejava.lang.Throwable/exception-type
    location/error.jsp/location
    /error-page

    session-config
    session-timeout30/session-timeout
    /session-config

    listener
    listener-classcom.sski.web.common.utils.SessionAdmin/listener-class
    /listener

    /web-app

    DB:2.43:Problem With Web.Xml (Weblogic Server 8.1 Sp2) ? pp

    Hi ...

    I have a doubt w.r.t web.xml

    I have the web.xml as per the dtd, but I am getting a similar error !!!
    WebLogic 8.1. I had this application (FileHandle) deployed fine on Tomcat and when I created the war and deployed on Weblogic, still it works fine. But, when I deploy it from eclipse's weblogic plug-in, I get this error !!

    Please help ...

    Regards,
    Vijay.

    Reference:

    Error:

    Aug 23, 2006 9:54:21 AM CDT Warning HTTP BEA-101248 [Application: 'C:\Documents and Settings\eomna8p\Desktop', Module: 'FileHandle']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: 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*)". (line 80, column 11).

    and web.xml says:

    ?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"
    !--http://java.sun.com/j2ee/dtds/web-app_2_2.dtd--

    web-app
    display-nameStruts Upload/display-name

    !-- Action Servlet Configuration --
    servlet
    servlet-nameaction/servlet-name
    servlet-classorg.apache.struts.action.ActionServlet/servlet-class
    init-param
    param-nameconfig/param-name
    param-value/WEB-INF/struts-config.xml/param-value
    /init-param
    init-param
    param-namedebug/param-name
    param-value2/param-value
    /init-param
    init-param
    param-namedetail/param-name
    param-value2/param-value
    /init-param
    init-param
    param-nameapplication/param-name
    param-valuecom.mySource.resources.AppResources/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet

    servlet
    servlet-nameHelloServlet/servlet-name
    servlet-classcom.mySource.test.HelloWorldServlet/servlet-class
    /servlet

    !-- Action Servlet Mapping --
    servlet-mapping
    servlet-nameaction/servlet-name
    url-pattern*.do/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameHelloServlet/servlet-name
    url-pattern/hello/url-pattern
    /servlet-mapping

    !-- The Welcome File List --
    welcome-file-list
    welcome-fileupload.jsp/welcome-file
    /welcome-file-list

    taglib
    taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
    taglib-location/WEB-INF/struts-bean.tld/taglib-location
    /taglib
    taglib
    taglib-uri/WEB-INF/struts-html.tld/taglib-uri
    taglib-location/WEB-INF/struts-html.tld/taglib-location
    /taglib
    taglib
    taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
    taglib-location/WEB-INF/struts-logic.tld/taglib-location
    /taglib
    taglib
    taglib-uri/WEB-INF/struts-nested.tld/taglib-uri
    taglib-location/WEB-INF/struts-nested.tld/taglib-location
    /taglib
    taglib
    taglib-uri/WEB-INF/struts-template.tld/taglib-uri
    taglib-location/WEB-INF/struts-template.tld/taglib-location
    /taglib
    taglib
    taglib-uri/WEB-INF/struts-tiles.tld/taglib-uri
    taglib-location/WEB-INF/struts-tiles.tld/taglib-location
    /taglib
    /web-app

  • RELEVANCY SCORE 2.43

    DB:2.43:Error In Incorporating Jsf 1.0.1 3a


    I get the following error when i incorporate jsf_1.0.1 with IBM's JSF implementation and apache faces 1.3.

    [7/12/07 20:13:00:188 IST] 6a841920 WebContainer W SRVE0017W: Web Group not found: default_host/ProjectOne
    [7/12/07 20:13:00:188 IST] 6a841920 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group default_host/ProjectOne has not been definedMy web.xml looks like this,

    ?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 id="WebApp_ID"
    display-nameProjectOne/display-name
    context-param
    param-namecom.ibm.ws.jsf.JSP_UPDATE_CHECK/param-name
    param-valuetrue/param-value
    descriptionMonitors Faces JSP files for modifications and synchronizes a running server with
    the changes without restarting the server. If this parameter is set to false or
    removed from the deployment descriptor, any changes made to Faces JSP files may
    not be seen by the server until it is restarted. This parameter is usually set
    to true while the Faces JSP files are being developed and debugged in order to
    improve the performance of the development environment./description
    /context-param
    context-param
    param-namecom.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP/param-name
    param-valuetrue/param-value
    description/description
    /context-param
    context-param
    param-namejavax.faces.STATE_SAVING_METHOD/param-name
    param-valueclient/param-value
    /context-param
    !-- Filter for myfaces --
    filter
    filter-nameMyFacesExtensionsFilter/filter-name
    filter-class
    org.apache.myfaces.webapp.filter.ExtensionsFilter
    /filter-class
    init-param
    param-namemaxFileSize/param-name
    param-value20m/param-value
    /init-param
    /filter
    filter-mapping
    filter-nameMyFacesExtensionsFilter/filter-name
    url-pattern/faces/*/url-pattern
    /filter-mapping
    filter-mapping
    filter-nameMyFacesExtensionsFilter/filter-name
    url-pattern*.faces/url-pattern
    /filter-mapping
    filter-mapping
    filter-nameMyFacesExtensionsFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    /filter-mapping
    !-- Filter for myfaces --
    listener
    listener-classcom.sun.faces.config.ConfigureListener/listener-class
    /listener
    servlet id="Servlet_1116522893310"
    servlet-nameJS Resource Servlet/servlet-name
    servlet-class
    com.ibm.faces.webapp.JSResourceServlet/servlet-class
    load-on-startup-1/load-on-startup
    /servlet
    servlet id="Servlet_1116522893510"
    servlet-nameFaces Servlet/servlet-name
    servlet-class
    javax.faces.webapp.FacesServlet/servlet-class
    load-on-startup-1/load-on-startup
    /servlet
    servlet
    servlet-nameProjectOne/servlet-name
    display-nameProjectOne/display-name
    description/description
    servlet-class
    com.package.servlets.ProjectOne/servlet-class
    /servlet
    servlet-mapping
    servlet-nameJS Resource Servlet/servlet-name
    url-pattern/.ibmjsfres/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameProjectOne/servlet-name
    url-pattern/ProjectOne/url-pattern
    /servlet-mapping
    welcome-file-list
    welcome-fileindex.html/welcome-file
    welcome-fileindex.htm/welcome-file
    welcome-fileindex.jsp/welcome-file
    welcome-filedefault.html/welcome-file
    welcome-filedefault.htm/welcome-file
    welcome-filedefault.jsp/welcome-file
    /welcome-file-list
    resource-ref id="ResourceRef_1117563615686"
    description/description
    res-ref-namejdbc/ProjectOne/res-ref-name
    res-typejava.lang.Object/res-type
    res-authContainer/res-auth
    res-sharing-scopeShareable/res-sharing-scope
    /resource-ref
    /web-appYes, i use RAD 6.0 for development. I would request someone to respond. I have posted the same problem in the IBM developer forum and havent got a reply for a while.

    thanks,
    Dilip

    DB:2.43:Error In Incorporating Jsf 1.0.1 3a

    Yes, i had changed my project name to projectOne for anonymity reasons. I guess it may not be a big issue if i do post my actual web.xml.
    My previous experience with IDE's has been with eclipse where i used JSF_1.0.1 and for myfaces support i just added the tomahawk_1.1.3.jar in the web-apps lib. I never added any filters to my web.xml and it worked just fine.
    This is the first time that i am working on RAD (or IBM related IDE) and i see that they use 3 jsf jars namely jsf-api.jar, jsf-impl.jar and jsf-ibm.jar. What i want to know is what version of JSF(RI implementation) is jsf-ibm.jar based on?

    One another problem that i had was that h:commandLink wasnt working inside a h:dataTable so i replaced the two jsf jars (api and impl) with the 1.0.1 version and it worked fine. This had to be done also to enable using myfaces (as myfaces tomahawk1.1.3 is compatible with jsf1.0.1).

    I am quite confused and would want a proper way to install the latest myfaces component in my RAD.

    Here's my original web.xml,

    ?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 id="WebApp_ID"
    display-nameTECC_ExpenseReports/display-name
    context-param
    param-namecom.ibm.ws.jsf.JSP_UPDATE_CHECK/param-name
    param-valuetrue/param-value
    descriptionMonitors Faces JSP files for modifications and synchronizes a running server with
    the changes without restarting the server. If this parameter is set to false or
    removed from the deployment descriptor, any changes made to Faces JSP files may
    not be seen by the server until it is restarted. This parameter is usually set
    to true while the Faces JSP files are being developed and debugged in order to
    improve the performance of the development environment./description
    /context-param
    context-param
    param-namecom.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP/param-name
    param-valuetrue/param-value
    description/description
    /context-param
    context-param
    param-namejavax.faces.STATE_SAVING_METHOD/param-name
    param-valueclient/param-value
    /context-param
    !-- Filter for myfaces --
    filter
    filter-nameMyFacesExtensionsFilter/filter-name
    filter-class
    org.apache.myfaces.webapp.filter.ExtensionsFilter
    /filter-class
    init-param
    param-namemaxFileSize/param-name
    param-value20m/param-value
    /init-param
    /filter
    filter-mapping
    filter-nameMyFacesExtensionsFilter/filter-name
    url-pattern/faces/*/url-pattern
    /filter-mapping
    filter-mapping
    filter-nameMyFacesExtensionsFilter/filter-name
    url-pattern*.faces/url-pattern
    /filter-mapping
    filter-mapping
    filter-nameMyFacesExtensionsFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    /filter-mapping
    !-- Filter for myfaces --
    listener
    listener-classcom.sun.faces.config.ConfigureListener/listener-class
    /listener
    servlet id="Servlet_1116522893310"
    servlet-nameJS Resource Servlet/servlet-name
    servlet-class
    com.ibm.faces.webapp.JSResourceServlet/servlet-class
    load-on-startup-1/load-on-startup
    /servlet
    servlet id="Servlet_1116522893510"
    servlet-nameFaces Servlet/servlet-name
    servlet-class
    javax.faces.webapp.FacesServlet/servlet-class
    load-on-startup-1/load-on-startup
    /servlet
    servlet
    servlet-nameTECC/servlet-name
    display-nameTECC/display-name
    description/description
    servlet-class
    com.pkg.tecc.servlets.TECC/servlet-class
    /servlet
    servlet-mapping
    servlet-nameJS Resource Servlet/servlet-name
    url-pattern/.ibmjsfres/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTECC/servlet-name
    url-pattern/TECC/url-pattern
    /servlet-mapping
    welcome-file-list
    welcome-fileindex.html/welcome-file
    welcome-fileindex.htm/welcome-file
    welcome-fileindex.jsp/welcome-file
    welcome-filedefault.html/welcome-file
    welcome-filedefault.htm/welcome-file
    welcome-filedefault.jsp/welcome-file
    /welcome-file-list
    resource-ref id="ResourceRef_1117563615686"
    description/description
    res-ref-namejdbc/TECC/res-ref-name
    res-typejava.lang.Object/res-type
    res-authContainer/res-auth
    res-sharing-scopeShareable/res-sharing-scope
    /resource-ref
    /web-apphope i have made myself clear.
    Dilip

  • RELEVANCY SCORE 2.42

    DB:2.42:Jsf Portlet Using Ibm Rad 6.0 And Tomahawk.Jar zf


    I am trying to use the tomahawk Date tag in a JSR 168 Portlet using IBM's RAD 6.0 but am unable to make the date's calendar button show. Has anyone been able to successfully make this work? I have the filter
    defined and tag mported.

    I get the following messages in my server
    9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
    [9/29/05 16:53:52:921 CDT] 298629dd OSEListenerDi E PLGN0021E: Servlet Request Processor E

    DB:2.42:Jsf Portlet Using Ibm Rad 6.0 And Tomahawk.Jar zf

    I am trying to use the tomahawk Date tag in a JSR 168 Portlet using IBM's RAD 6.0 but am unable to make the date's calendar button show. Has anyone been able to successfully make this work? I have the filter
    defined and tag mported.

    I get the following messages in my server
    9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
    [9/29/05 16:53:52:881 CDT] 298629dd MyfacesConfig I org.apache.myfaces.config.MyfacesConfig No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
    [9/29/05 16:53:52:921 CDT] 298629dd OSEListenerDi E PLGN0021E: Servlet Request Processor E

  • RELEVANCY SCORE 2.42

    DB:2.42:How To Make A Servlet Return Only A String??? s7


    Hi, i have a problem.
    I'm actually working on a midlet that connects to a servlet in tomcat.
    The conecction works fine, but i want the servlet to return a string and it keeps returning the code of the jsp index.jsp that NB creates when you create a new web project.

    Here's the code:

    import java.io.*;

    import javax.servlet.*;
    import javax.servlet.http.*;

    /**
    *
    * @author CarlosdC
    */
    public class NewServlet extends HttpServlet {

    String saludo = "Hola, soy el servlet";

    /**
    * Processes requests for both HTTP codeGET/code and codePOST/code methods.
    * @param request servlet request
    * @param response servlet response
    */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/plain;charset=UTF-8");
    PrintWriter out = response.getWriter();

    try {
    out.println(saludo);
    out.flush();
    } catch (Exception e) {
    System.out.println(e);
    }
    }

    // editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."
    /**
    * Handles the HTTP codeGET/code method.
    * @param request servlet request
    * @param response servlet response
    */
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);

    }

    /**
    * Handles the HTTP codePOST/code method.
    * @param request servlet request
    * @param response servlet response
    */
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    /**
    * Returns a short description of the servlet.
    */
    public String getServletInfo() {
    return "Short description";
    }
    // /editor-fold
    }Anyway, i'd like to send the data in a DataOutputStream.writeUTF(), but first i must find a way to send the CORRECT data.

    Hope someone can help me.
    Thank you!!!

    DB:2.42:How To Make A Servlet Return Only A String??? s7

    The context root is not per definition the project name. It is indeed defaulted to the project name. In case of a WAR, you can change it in the server configuration (in case of Tomcat it is located in the server.xml). In case of an EAR, you can define it in the application.xml.

    And no, the context root is not the path to the servlet, it is the path to the root of the web application.

  • RELEVANCY SCORE 2.42

    DB:2.42:Tomcat Http 500 Error k1


    I've just started using Tomcat and servlet.

    I've installed Tomcat in E:\Program Files\Apache Group\Tomcat 5.0
    Default Java is J2SDK1.4.2_05
    I copied servlet-api.jar from Tomcat's library and put it into J2SDK1.4.2_05's library

    Here's my java file
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;

    public class Dispatcher
    {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();

    out.println(ServletUtilities.getHTMLHead("Web Application") +
    "BODY\n" +
    "b" + ServletUtilities.getFont() +
    "You've entered:" + request.getParameter("integer") +
    "/b/span\n" +
    ServletUtilities.getTail());
    }

    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    {
    doGet(request, response);
    }
    }Here's my 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
    servlet
    servlet-nameDispatcher/servlet-name
    servlet-classDispatcer/servlet-class
    /servlet
    servlet-mapping
    servlet-nameDispatcher/servlet-name
    url-pattern/Dispatcher/*/url-pattern
    /servlet-mapping
    /web-appI've added the following to server.xml in the conf folder
    Context path="E:/Program Files/Apache Group/Tomcat 5.0/webapp docBase="/webapp" debug="0" reloadable="true"
    /ContextAnd when the form passes the param to the Java file, it either post a 404 error or a 500 error. The 500 error posted by Tomcat states that there was an exception regarding invokers

    DB:2.42:Tomcat Http 500 Error k1

    Ok, I looked detail by detail and turns out that I also forgot to extend the class to HttpServlet.

    Thanks to all for your help

  • RELEVANCY SCORE 2.42

    DB:2.42:Problem With Web.Xml mp


    hi all
    i am havining problem with web.xml fine
    i want to initialise few parameters with init-param tag for a servlet but it don't work ,if i set load-on-startup tag then it returns the value otherwise null .
    web.xml -
    ?xml version="1.0" encoding="ISO-8859-1"?

    !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
    error-page
    exception-typejava.lang.NullPointerException/exception-type
    location/404.html/location
    /error-page

    context-param
    param-namewebmaster/param-name
    param-valuehelp@help.com.au/param-value
    description
    The EMAIL address of the help desk to whom problems and
    questions about this application should be addressed.
    /description
    /context-param

    servlet
    servlet-nameLoanDispatcher/servlet-name
    servlet-classservlets.loan.LoanDispatcher/servlet-class
    init-param
    param-nameservername/param-name
    param-valueweb/param-value
    /init-param

    load-on-startup1/load-on-startup
    /servlet
    servlet-mapping
    servlet-nameLoanDispatcher/servlet-name
    url-pattern/LoanDispatcher/*/url-pattern
    /servlet-mapping
    /web-app

    and my servlet is

    public void init(ServletConfig config) throws ServletException {

    super.init(config);
    try {
    sTemp= config.getInitParameter("servername");
    System.out.println("Server name: " + sTemp);
    } catch (Exception e) {System.out.println("error: " + e.toString());}

    }

    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException , IOException {

    System.out.println("*********************"+getServletContext().getInitParameter("webmaster")+"*********************");

    processRequest(request, response);
    }

    and i am calling url like this

    http://localhost:8582/test/servlet/servlets.loan.LoanDispatcher

    can anybody tell me wats wrong why the config.getinitparameter is returning null.

    Thanks in advance.

    DB:2.42:Problem With Web.Xml mp

    thanks alot you made my day.
    another problem is regarding printing with applet, can u help in this matter.

  • RELEVANCY SCORE 2.42

    DB:2.42:Servlet Testtrail Is Not Available fj


    Hi
    iam getting an error like "Servlet TestTrail is not available".it is also giving

    The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Error instantiating servlet class com.iton.uima.TestTrail
    can any one help me here

    DB:2.42:Servlet Testtrail Is Not Available fj

    Hi
    i am not able to solve my self here i will ask help from my colleague. thank y u for ur help.if u can help me on POI can u?

  • RELEVANCY SCORE 2.41

    DB:2.41:Iterator() Exception k1


    Hi,

    I am using IBM WSAD v 5.0 to develope a Action class which call a Session bean. One of the method of this Session bean returns Collection. When I try to call iterator() on this Collection I am getting exception. The code is shown below

    public ActionForward execute(
    ActionMapping mapping,
    ActionForm form,
    HttpServletRequest request,
    HttpServletResponse response)
    throws Exception {

    Collection availVehColl = null ;
    Collection vehidColl = new Vector();
    Iterator availVehCollIter = null;
    VehicleLocal vehicleLocal = null;
    java.math.BigDecimal vehicleid = BigDecimal.valueOf(0L);
    ManageVehicleHelperLocal manageVehHelperLocal ;
    ManageVehicleHelperLocalHome vehHelperLocalHome;
    ActionErrors errors = new ActionErrors();
    ActionForward forward = new ActionForward();
    // return value

    try {

    System.out.println("1");
    vehHelperLocalHome =
    (ManageVehicleHelperLocalHome) HomeFactory.singleton().getHome(
    "ejb/VehicleLocalHelper");

    System.out.println("2");
    manageVehHelperLocal = vehHelperLocalHome.create();
    System.out.println("3");

    availVehColl = manageVehHelperLocal.getAllAvailableVehicle() ;
    System.out.println("4");
    System.out.println("size:" + availVehColl.size());

    ------- availVehCollIter = availVehColl.iterator(); ------------ getting exception here

    System.out.println("5");

    while (availVehCollIter.hasNext()) {
    vehicleLocal =
    (VehicleLocal) availVehCollIter.next();

    vehicleid = vehicleLocal.getVehicleid();

    vehidColl.add(vehicleid.toString() );
    }
    System.out.println("6");

    } catch (Exception e) {

    // Report the error using the appropriate name and ID.
    e.printStackTrace();
    errors.add("name", new ActionError("id"));

    }

    and the error is shown below

    [2/14/04 10:32:59:188 PST] 24ae1b82 SystemErr R com.ibm.ejs.container.finder.CollectionCannotBeFurtherAccessedException
    [2/14/04 10:32:59:188 PST] 24ae1b82 SystemErr R at com.ibm.ejs.container.finder.FinderResultClientCollection_Local.iterator(FinderResultClientCollection_Local.java:104)
    [2/14/04 10:32:59:188 PST] 24ae1b82 SystemErr R at managevehicle.actions.FindVehicleAction.execute(FindVehicleAction.java:69)
    [2/14/04 10:32:59:203 PST] 24ae1b82 SystemErr R at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
    [2/14/04 10:32:59:203 PST] 24ae1b82 SystemErr R at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
    [2/14/04 10:32:59:203 PST] 24ae1b82 SystemErr R at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
    [2/14/04 10:32:59:219 PST] 24ae1b82 SystemErr R at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
    [2/14/04 10:32:59:219 PST] 24ae1b82 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    [2/14/04 10:32:59:219 PST] 24ae1b82 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    [2/14/04 10:32:59:219 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    [2/14/04 10:32:59:234 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    [2/14/04 10:32:59:234 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    [2/14/04 10:32:59:234 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    [2/14/04 10:32:59:234 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
    [2/14/04 10:32:59:250 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    [2/14/04 10:32:59:266 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    [2/14/04 10:32:59:266 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
    [2/14/04 10:32:59:297 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
    [2/14/04 10:32:59:312 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
    [2/14/04 10:32:59:312 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    [2/14/04 10:32:59:312 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
    [2/14/04 10:32:59:312 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    [2/14/04 10:32:59:328 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    [2/14/04 10:32:59:328 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
    [2/14/04 10:32:59:328 PST] 24ae1b82 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    [2/14/04 10:32:59:328 PST] 24ae1b82 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
    [2/14/04 10:32:59:344 PST] 24ae1b82 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
    [2/14/04 10:32:59:344 PST] 24ae1b82 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
    [2/14/04 10:32:59:406 PST] ff09b9e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /theme/Master.css has not been defined

    thanks advance for your help.

    Regards

    Rezaul

    DB:2.41:Iterator() Exception k1

    That's more of a J2EE problem than a Collections problem. (The exception is related to J2EE). Try to post it in that forum.

    /Kaj

  • RELEVANCY SCORE 2.41

    DB:2.41:Adf + Faces Portlet Bridge + Webcenter Interaction: How To j9


    Have somebody worked with this technology stack?

    jdveleper Studio Edition Version 11.1.1.1.0
    WebCenter Interaction 10g

    I am trying to integrate my ADF Application with WCI through Oracle Faces Portlet Bridge but unsuccessfully, actually i am getting this error:
    javax.portlet.PortletException: doBridgeDispatch failed: error from Bridge in executing the request
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:502)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    ... 23 more

    Nested Exception is javax.portlet.faces.BridgeException: Ningn RenderingContext
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:582)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)and these are my config files:
    web.xml
    ?xml version = '1.0' encoding = 'UTF-8'?
    web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
    description/home/sergio/jdeveloper/mywork/Pollster/Pollster.jws/description
    display-namePollster.jws/display-name
    context-param
    param-namejavax.faces.STATE_SAVING_METHOD/param-name
    param-valueclient/param-value
    /context-param
    context-param
    descriptionIf this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed./description
    param-nameorg.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION/param-name
    param-valuefalse/param-value
    /context-param
    context-param
    descriptionWhether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information./description
    param-nameoracle.adf.view.rich.versionString.HIDDEN/param-name
    param-valuefalse/param-value
    /context-param
    filter
    filter-nameJpsFilter/filter-name
    filter-classoracle.security.jps.ee.http.JpsFilter/filter-class
    init-param
    param-nameenable.anonymous/param-name
    param-valuetrue/param-value
    /init-param
    /filter
    filter
    filter-nametrinidad/filter-name
    filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class
    /filter
    filter
    filter-nameServletADFFilter/filter-name
    filter-classoracle.adf.share.http.ServletADFFilter/filter-class
    /filter
    filter
    display-nameadfBindings/display-name
    filter-nameadfBindings/filter-name
    filter-classoracle.adf.model.servlet.ADFBindingFilter/filter-class
    /filter
    filter-mapping
    filter-nameJpsFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    dispatcherINCLUDE/dispatcher
    /filter-mapping
    filter-mapping
    filter-nametrinidad/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    filter-mapping
    filter-nameServletADFFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    filter-mapping
    filter-nameadfBindings/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    listener
    listener-classcom.axtel.survey.util.SurveyApplicationListener/listener-class
    /listener
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet
    servlet
    servlet-nameresources/servlet-name
    servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class
    /servlet
    servlet
    servlet-nameSurveyPort/servlet-name
    servlet-classcom.axtel.survey.webservice.SurveyWS/servlet-class
    load-on-startup1/load-on-startup
    /servlet
    servlet
    display-nameHome/display-name
    servlet-nameHome/servlet-name
    servlet-classcom.plumtree.portlet.servlet.PortletServlet/servlet-class
    init-param
    descriptionPagina principal/description
    param-nameportlet-name/param-name
    param-valueHome/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet
    servlet
    servlet-nameWCIActionServlet/servlet-name
    servlet-classcom.plumtree.portlet.servlet.ActionServlet/servlet-class
    /servlet
    servlet
    servlet-nameWCIErrorServlet/servlet-name
    servlet-classcom.plumtree.portlet.servlet.ErrorServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/adf/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/afr/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSurveyPort/servlet-name
    url-pattern/SurveyPort/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/webcenter-framework-resources/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameHome/servlet-name
    url-pattern/portlet/Home/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameWCIActionServlet/servlet-name
    url-pattern/pt_render/*/url-pattern
    url-pattern/pt_action/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameWCIErrorServlet/servlet-name
    url-pattern/pt_error/*/url-pattern
    /servlet-mapping
    /web-apppotlet.xml
    ?xml version="1.0" encoding="UTF-8" standalone="yes"?
    portlet-app version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    portlet id="adf_jsf__Home_jspx"
    descriptionInicio del sistema de encuestas./description
    portlet-nameHome/portlet-name
    display-nameHome/display-name
    portlet-classoracle.portlet.bridge.adf.application.ADFBridgePortlet/portlet-class
    init-param
    namejavax.portlet.faces.defaultViewId.view/name
    value/Home.jspx/value
    /init-param
    init-param
    nameBridgeLifecycleListeners/name
    value
    oracle.portlet.server.bridges.jsf.adf.ADFFacesBridgeLifecycleListener,
    oracle.portlet.server.bridges.jsf.adf.BindingFacesBridgeLifecycleListener
    /value
    /init-param
    supports
    mime-typetext/html/mime-type
    portlet-modeVIEW/portlet-mode
    /supports
    supported-localeen/supported-locale
    portlet-info
    titleHome/title
    short-titleHome/short-title
    /portlet-info
    /portlet
    custom-portlet-mode
    portlet-modeabout/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modeconfig/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modeedit_defaults/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modepreview/portlet-mode
    /custom-portlet-mode
    custom-portlet-mode
    portlet-modeprint/portlet-mode
    /custom-portlet-mode
    /portlet-appAs always any idea is welcome!

    Thanks Regards,
    Sergio Valdez

    DB:2.41:Adf + Faces Portlet Bridge + Webcenter Interaction: How To j9

    I was having nearly the exact same error working with the same technologies. I'm not sure what I changed but now I'm getting a different error. It seems to be getting a bit farther along, but still failing:

    92673 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.plumtree.portlet.servlet.BaseServlet - Only supported in a portlet environment
    java.lang.IllegalArgumentException: Only supported in a portlet environment
    at org.apache.myfaces.portlet.faces.util.map.PortletRequestMap.init(PortletRequestMap.java:42)
    at org.apache.myfaces.portlet.faces.context.PortletExternalContextImpl.getRequestMap(PortletExternalContextImpl.java:642)
    at oracle.portlet.bridge.adf.context.ADFPortletExternalContextImpl.getRequestMap(ADFPortletExternalContextImpl.java:724)
    at oracle.portlet.bridge.adf.context.ADFPortletExternalContextTimerImpl.getRequestMap(ADFPortletExternalContextTimerImpl.java:147)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.getRequestMap(ExternalContextDecorator.java:247)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.getRequestMap(ExternalContextDecorator.java:247)
    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.release(FacesContextFactoryImpl.java:228)
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:599)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    92673 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.plumtree.portlet.servlet.BaseServlet - Only supported in a portlet environment
    java.lang.IllegalArgumentException: Only supported in a portlet environment
    at org.apache.myfaces.portlet.faces.util.map.PortletRequestMap.init(PortletRequestMap.java:42)
    at org.apache.myfaces.portlet.faces.context.PortletExternalContextImpl.getRequestMap(PortletExternalContextImpl.java:642)
    at oracle.portlet.bridge.adf.context.ADFPortletExternalContextImpl.getRequestMap(ADFPortletExternalContextImpl.java:724)
    at oracle.portlet.bridge.adf.context.ADFPortletExternalContextTimerImpl.getRequestMap(ADFPortletExternalContextTimerImpl.java:147)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.getRequestMap(ExternalContextDecorator.java:247)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.getRequestMap(ExternalContextDecorator.java:247)
    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.release(FacesContextFactoryImpl.java:228)
    at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:599)
    at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:498)
    at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:449)
    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:214)
    at javax.portlet.GenericPortlet.render(GenericPortlet.java:163)
    at oracle.portlet.bridge.adf.application.ADFBridgePortlet.render(ADFBridgePortlet.java:287)
    at com.plumtree.portlet.servlet.PortletServlet.service(PortletServlet.java:323)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    92673 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.plumtree.portlet.servlet.PortletServlet - Only supported in a portlet environment
    92673 [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.plumtree.portlet.servlet.PortletServlet - Only supported in a portlet environment

    I suspect the Oracle Portlet Bridge and the WCI JSR-168 container are providing conflicting versions of javax.portlet.GenericPortlet, so it may not be possible to use them in conjunction with one another.

    But any help would be appreciated.

  • RELEVANCY SCORE 2.41

    DB:2.41:Problem With File Upload: File To Big... jf


    Hi,

    when I try to upload a file of 6MB I get an error that the file is to big. I changed the web.xml but maybe I forgot something?

    I use Jdeveloper 11.1.1.2.0

    This is in my web.xml:
    context-param
    param-nameoracle.adf.view.faces.UPLOAD_MAX_MEMORY/param-name
    param-value51200000/param-value
    /context-param
    context-param
    !-- Maximum disk space per request (in bytes) - Uploadfiles larger than this will force an Exception --
    param-nameoracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE/param-name
    !-- Use 500M --
    param-value512000000/param-value
    /context-param The total web.xml:
    ?xml version = '1.0' encoding = 'windows-1252'?
    web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"

    context-param
    param-nameoracle.adf.view.faces.UPLOAD_MAX_MEMORY/param-name
    param-value51200000/param-value
    /context-param
    context-param
    !-- Maximum disk space per request (in bytes) - Uploadfiles larger than this will force an Exception --
    param-nameoracle.adf.view.faces.UPLOAD_MAX_DISK_SPACE/param-name
    !-- Use 500M --
    param-value512000000/param-value
    /context-param

    context-param
    param-namejavax.faces.STATE_SAVING_METHOD/param-name
    param-valueclient/param-value
    /context-param
    context-param
    descriptionIf this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed./description
    param-nameorg.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION/param-name
    param-valuefalse/param-value
    /context-param
    context-param
    descriptionWhether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information./description
    param-nameoracle.adf.view.rich.versionString.HIDDEN/param-name
    param-valuefalse/param-value
    /context-param
    filter
    filter-nameJpsFilter/filter-name
    filter-classoracle.security.jps.ee.http.JpsFilter/filter-class
    init-param
    param-nameenable.anonymous/param-name
    param-valuetrue/param-value
    /init-param
    init-param
    param-nameremove.anonymous.role/param-name
    param-valuefalse/param-value
    /init-param
    /filter
    filter
    filter-nametrinidad/filter-name
    filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class
    /filter
    filter
    filter-nameADFLibraryFilter/filter-name
    filter-classoracle.adf.library.webapp.LibraryFilter/filter-class
    /filter
    filter
    filter-nameadfBindings/filter-name
    filter-classoracle.adf.model.servlet.ADFBindingFilter/filter-class

    /filter
    filter-mapping
    filter-nameJpsFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    dispatcherINCLUDE/dispatcher
    /filter-mapping
    filter-mapping
    filter-nametrinidad/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    filter-mapping
    filter-nameADFLibraryFilter/filter-name
    url-pattern/*/url-pattern
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    filter-mapping
    filter-nameadfBindings/filter-name
    servlet-nameFaces Servlet/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    filter-mapping
    filter-nameadfBindings/filter-name
    servlet-nameadfAuthentication/servlet-name
    dispatcherFORWARD/dispatcher
    dispatcherREQUEST/dispatcher
    /filter-mapping
    listener
    listener-classoracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack/listener-class
    /listener
    listener
    listener-classoracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack/listener-class
    /listener
    listener
    listener-classoracle.bc4j.mbean.BC4JConfigLifeCycleCallBack/listener-class
    /listener
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet
    servlet
    servlet-nameresources/servlet-name
    servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class
    /servlet
    servlet
    servlet-nameBIGRAPHSERVLET/servlet-name
    servlet-classoracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet/servlet-class
    /servlet
    servlet
    servlet-nameBIGAUGESERVLET/servlet-name
    servlet-classoracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet/servlet-class
    /servlet
    servlet
    servlet-nameMapProxyServlet/servlet-name
    servlet-classoracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet/servlet-class
    /servlet
    servlet
    servlet-nameGatewayServlet/servlet-name
    servlet-classoracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet/servlet-class
    /servlet
    servlet
    servlet-nameadflibResources/servlet-name
    servlet-classoracle.adf.library.webapp.ResourceServlet/servlet-class
    /servlet
    servlet
    servlet-nameadfAuthentication/servlet-name
    servlet-classoracle.adf.share.security.authentication.AuthenticationServlet/servlet-class
    init-param
    param-namesuccess_url/param-name
    param-value/pages/Tickets.jspx /param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/adf/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/afr/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameBIGRAPHSERVLET/servlet-name
    url-pattern/servlet/GraphServlet/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameBIGAUGESERVLET/servlet-name
    url-pattern/servlet/GaugeServlet/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameMapProxyServlet/servlet-name
    url-pattern/mapproxy/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameresources/servlet-name
    url-pattern/bi/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGatewayServlet/servlet-name
    url-pattern/flashbridge/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameadflibResources/servlet-name
    url-pattern/adflib/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameadfAuthentication/servlet-name
    url-pattern/adfAuthentication/url-pattern
    /servlet-mapping
    security-constraint
    web-resource-collection
    web-resource-nameadfAuthentication/web-resource-name
    url-pattern/adfAuthentication/url-pattern
    /web-resource-collection
    auth-constraint
    role-namevalid-users/role-name
    /auth-constraint
    /security-constraint
    login-config
    auth-methodFORM/auth-method
    form-login-config
    form-login-page/faces/LoginPage.jspx/form-login-page
    form-error-page/error.html/form-error-page
    /form-login-config
    /login-config
    security-role
    role-namevalid-users/role-name
    /security-role
    /web-app

    DB:2.41:Problem With File Upload: File To Big... jf

    Hi Pedja

    Thank you very much! Problem solved :D

    Regards,

    Klaas

  • RELEVANCY SCORE 2.41

    DB:2.41:≪Error-Page≫ Does Not Work For Servlet In Tomcat 4 And Up? fx


    Hi, Everyone:

    My servlet will throw an exception which I perfer to use error-page to handle it. But so far it does not work for me in either tomcat 4 or 4.1.

    Here is my web.xml
    web-app
    display-nameTest/display-name
    descriptionTest Application/description
    servlet
    servlet-nameExceptionServlet/servlet-name
    display-nameExceptionServlet/display-name
    descriptionException Test Servlet/description
    servlet-classcom.erong.servlet.ExceptionServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameExceptionServlet/servlet-name
    url-pattern/exceptionServlet/url-pattern
    /servlet-mapping

    error-page
    exception-typejava.lang.Throwable/exception-type
    location/errorPage.jsp/location
    /error-page
    /web-app

    When my servlet throws exception tomcat always show me the default error page. However the error-page does work for JSP though. And another interesting thing I found was that if I use a static html(errorPage.html) instead jsp it works for servlet as well.I think it has something to do with the different way the exception are handled in JSP and Servlet.Also I found that tomcat does compiled my errorPage.jsp and processed it since I see the log4j message, but just go straight to the default error page after that.

    Any clue? Thanks in advance for any suggestion. Below is my ExceptionServlet and errorPage.jsp.

    ExceptionServlet:
    package com.erong.servlet;

    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;

    public class ExceptionServlet extends HttpServlet {
    private static Log log = LogFactory.getLog(ExceptionServlet.class);

    public void init(ServletConfig config) throws ServletException {
    super.init(config);

    }

    public void destroy() {

    }

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
    log.debug("Throw a Exception!");
    throw new ServletException("Here is the Big ServletException you want.");
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
    processRequest(request, response);
    }

    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {
    processRequest(request, response);
    }

    public String getServletInfo() {
    return "Exception testing servlet.";
    }

    }

    ==================================================================================
    errorPage.jsp:
    %@page contentType="text/html" language="java" isErrorPage="true"%
    %@page import="org.apache.commons.logging.*"%
    %
    Log log = LogFactory.getLog("errorPage.jsp");
    log.debug("Here comes the erroPage JSP log.");
    %
    html
    head
    titleWebTest Error Page/title
    /head
    body

    h1WebTest Error Page/h1hr

    h3Exception Type: %= exception.getClass().getName()%/h3
    h3Exception Message: %= exception.getMessage()%/h3hr

    /body
    /html

    BTW, I'm using tomcat4.0.6 and tomcat4.1.24 with JDK1.4.0_03 on liunx.

    Eric

    DB:2.41:≪Error-Page≫ Does Not Work For Servlet In Tomcat 4 And Up? fx

    Error-Page tags work best with an error.html pages. If you have an error.jsp page what I would do, and I have, is wrap my classes and jsp pages in a try catch block where you forward to the error jsp page and display anything you want. YOu can also do this with if else statements. I have used the tomcat error pages before but when I've implemented them I used java.lang.Exception as the error to catch not Throwable. I don't know if this would make a difference or have anything to do with your problem.

  • RELEVANCY SCORE 2.41

    DB:2.41:Problem Running A Simple Jsp 1s


    i have simple jsp connected to a servlet ...

    The jsp is in project webproject called " EnityPersitenceWeb "

    the jsp has a form button ...

    the error im getting when , i run on the server is

    Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /EnityPersitenceWeb/lsp.jsp has not been defined

    Can some one help me ...

    DB:2.41:Problem Running A Simple Jsp 1s

    i have simple jsp connected to a servlet ...

    The jsp is in project webproject called " EnityPersitenceWeb "

    the jsp has a form button ...

    the error im getting when , i run on the server is

    Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /EnityPersitenceWeb/lsp.jsp has not been defined

    Can some one help me ...

  • RELEVANCY SCORE 2.40

    DB:2.40:Sun Ri 1.2 With Jboss 4.2 Throwing Exception, Unsupportedoperationexception zd


    Hi All,

    I am using SunRI 1.2 with woodstock libs
    While running the application in Jboss 4.2.0 GA( in Apache 5.5 also) I am getting exceptions as follows

    18:51:39,275 INFO [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)] Started in 35s:3ms
    18:51:40,259 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
    java.lang.UnsupportedOperationException
    at javax.faces.context.FacesContext.getELContext(FacesContext.java:137)
    at javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:888)
    ..............................................

    18:51:40,275 ERROR [[JSF]] Exception sending request destroyed lifecycle event to listener instance of class com.sun.faces.application.WebappLifecycleListener
    java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate
    at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
    at com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289)..................
    ..................................
    18:51:40,275 ERROR [[JSF]] Exception thrown by attributes event listener
    java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate
    at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
    at com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289).................................................

    The web.xml I am using is as follows

    web---------.............................
    display-nameJSF_RI/display-name

    context-param
    param-namejavax.faces.STATE_SAVING_METHOD/param-name
    param-valueserver/param-value
    /context-param

    filter
    filter-nameUploadFilter/filter-name
    filter-classcom.sun.webui.jsf.util.UploadFilter/filter-class
    init-param
    param-namemaxSize/param-name
    param-value1000000/param-value
    /init-param
    init-param
    param-namesizeThreshold/param-name
    param-value4096/param-value
    /init-param
    /filter
    filter-mapping
    filter-nameUploadFilter/filter-name
    servlet-nameFaces Servlet/servlet-name
    /filter-mapping
    servlet
    servlet-nameTheme Servlet/servlet-name
    servlet-classcom.sun.webui.theme.ThemeServlet/servlet-class
    load-on-startup2/load-on-startup
    /servlet
    servlet-mapping
    servlet-nameTheme Servlet/servlet-name
    url-pattern/theme/*/url-pattern
    /servlet-mapping

    !-- --
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping

    context-param
    param-namejavax.faces.CONFIG_FILES/param-name
    param-value/WEB-INF/faces-config.xml/param-value
    /context-param
    !-- Welcome files --
    welcome-file-list
    welcome-filefaces/login.jsp/welcome-file
    /welcome-file-list
    !-- Starting of AJAX Configuration--

    !-- End of AJAX Configuration --
    listener
    listener-class
    com.sun.faces.config.ConfigureListener
    /listener-class
    /listener

    /web-app

    Please give ur suggestions to solve this issue
    Thanks in advance,
    Renju Thomas.

    DB:2.40:Sun Ri 1.2 With Jboss 4.2 Throwing Exception, Unsupportedoperationexception zd

    Thanks rlubke for the reply
    My project is moving from JSF to Spring Web MVC
    So for some period of time I am safe from that exception.

    Cheers,
    Renju Thomas

  • RELEVANCY SCORE 2.40

    DB:2.40:Topic: Illegalstateexception When Httpservletrequestwrapper mm



    Topic: IllegalStateException when HttpServletRequestWrapper

    WLS 6.1 sp1
    WLP 4.0

    I want to use a filter to override the getCookie() method of the HttpServletRequest
    interface, and "filter" out some unwanted cookies, before forwarding the request
    to a third party servlet (The servlet is BEA WLP 4.0 webFlowServlet).

    As a first step, I created a simple filter and wrapper class, that basically creates
    and wraps the incoming request without overloading any HttpRequest methods:

    public class SimpleRequestWrapper extends HttpServletRequestWrapper
    {

    public SimpleRequestWrapper(HttpServletRequest req)
    {
    super(req);
    }

    }

    The request gets forwarded to the destination servlet through the following filter
    method:

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
    FilterChain filterChain)
    throws ServletException, IOException
    {

    HttpServletRequest req = (HttpServletRequest) servletRequest;
    HttpServletResponse res = (HttpServletResponse) servletResponse;

    SimpleRequestWrapper plrw= new SimpleRequestWrapper((HttpServletRequest)
    req);

    filterChain.doFilter(plrw, servletResponse);

    }

    The servlet throws the following error:

    Mar 11, 2002 1:15:00 PM EST Error HTTP [WebAppServletContext(8165644,mypo
    rtal,/myportal)] Servlet failed with Exception
    java.lang.IllegalStateException: Unable to extract ServletContext from Request.
    at com.bea.p13n.management.ApplicationHelper.getServletContext(Applicati
    onHelper.java:273)

    If I forward the wrapped request to a servlet that I wrote instead of the BEA
    webFlowServlet, I am able to get the Servlet context in my servlet.

    Also, if I remove the filter from the above scenario, the above error does not
    get thrown.

    Does anybody know why this error would get thrown simply by wrapping the request
    object and forwarding the wrapped request to one servlet (and not another)?

    Any info would be greatly appreciated...

    DB:2.40:Topic: Illegalstateexception When Httpservletrequestwrapper mm


    Topic: IllegalStateException when HttpServletRequestWrapper

    WLS 6.1 sp1
    WLP 4.0

    I want to use a filter to override the getCookie() method of the HttpServletRequest
    interface, and "filter" out some unwanted cookies, before forwarding the request
    to a third party servlet (The servlet is BEA WLP 4.0 webFlowServlet).

    As a first step, I created a simple filter and wrapper class, that basically creates
    and wraps the incoming request without overloading any HttpRequest methods:

    public class SimpleRequestWrapper extends HttpServletRequestWrapper
    {

    public SimpleRequestWrapper(HttpServletRequest req)
    {
    super(req);
    }

    }

    The request gets forwarded to the destination servlet through the following filter
    method:

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
    FilterChain filterChain)
    throws ServletException, IOException
    {

    HttpServletRequest req = (HttpServletRequest) servletRequest;
    HttpServletResponse res = (HttpServletResponse) servletResponse;

    SimpleRequestWrapper plrw= new SimpleRequestWrapper((HttpServletRequest)
    req);

    filterChain.doFilter(plrw, servletResponse);

    }

    The servlet throws the following error:

    Mar 11, 2002 1:15:00 PM EST Error HTTP [WebAppServletContext(8165644,mypo
    rtal,/myportal)] Servlet failed with Exception
    java.lang.IllegalStateException: Unable to extract ServletContext from Request.
    at com.bea.p13n.management.ApplicationHelper.getServletContext(Applicati
    onHelper.java:273)

    If I forward the wrapped request to a servlet that I wrote instead of the BEA
    webFlowServlet, I am able to get the Servlet context in my servlet.

    Also, if I remove the filter from the above scenario, the above error does not
    get thrown.

    Does anybody know why this error would get thrown simply by wrapping the request
    object and forwarding the wrapped request to one servlet (and not another)?

    Any info would be greatly appreciated...

  • RELEVANCY SCORE 2.39

    DB:2.39:Mapping The Servlet Request 93


    Dear Sir,
    I have two queries.
    First question is:
    I have a Html page. On which Have two buttons Submit and Issue.
    I want when I click on Sumit button request should be go to submit.jsp. and When I click on Issue button then request should be go to Issue.jsp.But When I click on submit button request do to Issue.jsp.
    Second Question is How I reterive the input parameter of html page to submit.jsp.
    Please review..

    My files are:
    login.html:
    html
    head
    titleA simple JSP application/title
    head
    body
    form method="get" action="tmp"
    Nameinput type="text" name="user"
    br
    Passwordinput type="password" name="pass"
    input type="Submit" value="Submit"
    input type="Submit" value="Issue"
    /form
    /body
    /html

    LoginServlet.java:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException,IOException{
    try
    {
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    out.println("Hello: "+user);
    out.println("Hello: "+pass);

    RequestDispatcher dispatcher1 =
    request.getRequestDispatcher("/Issue.jsp");
    dispatcher1.forward(request,response);

    RequestDispatcher dispatcher =
    request.getRequestDispatcher("/submit.jsp");
    dispatcher.forward(request,response);
    }
    catch(Exception e)
    {
    e.printStackTrace();
    }
    }
    }

    web.xml:
    web-app

    servlet
    servlet-nameone/servlet-name
    servlet-classLoginServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameone/servlet-name
    url-pattern/tmp/url-pattern
    /servlet-mapping

    jsp-filesubmit.jsp/jsp-file
    jsp-fileIssue.jsp/jsp-file
    url-pattern*.do/url-pattern

    welcome-file-list
    welcome-fileLogin.html/welcome-file
    /welcome-file-list

    /web-app

    DB:2.39:Mapping The Servlet Request 93

    Dear Sir,
    Can U give me some details How I can use that.

  • RELEVANCY SCORE 2.39

    DB:2.39:Midlet To Servlet 9c


    i am trying to connect my midlet to servlet where the servlet wil process request from midlet. however, when i compile n run my servlet, this error " javax.servlet.ServletException: Servlet execution threw an exception" occurs..wat does it means and where went wrong?

    DB:2.39:Midlet To Servlet 9c

    do u want to fetch certain data from a servlet and display/process in the midlet??

  • RELEVANCY SCORE 2.39

    DB:2.39:Request Wrapper Is Not Of Type Httpservletrequestwrapper 38


    In Servlet when using the forward with RequestDispatcher, I get the foll error.

    Exception: Request wrapper is not of type HttpServletRequestWrapper.

    Below is the foll. code.

    ServletContext sc = getServletContext();
    RequestDispatcher rd = sc.getRequestDispatcher ("/initech/plugin/icard/example.jsp");
    rd.forward(request, response); Help me on this.

    DB:2.39:Request Wrapper Is Not Of Type Httpservletrequestwrapper 38

    In Servlet when using the forward with RequestDispatcher, I get the foll error.

    Exception: Request wrapper is not of type HttpServletRequestWrapper.

    Below is the foll. code.

    ServletContext sc = getServletContext();
    RequestDispatcher rd = sc.getRequestDispatcher ("/initech/plugin/icard/example.jsp");
    rd.forward(request, response); Help me on this.

  • RELEVANCY SCORE 2.39

    DB:2.39:Configuring Exception Pages Thru Servlets For Tomcat5 8a


    Hi,

    I am trying to configure exception pages for servlets. But cannot get it done. I have one servlet ServletMapping.java. I am defining in web.xml, that any error should go to the servlet ErrorDisplay.java, which in turn handles the error. I have written for javax.servlet.ServletException.

    But the control does not go to the error page servlet ErrorDisplay.java

    thanx in advance
    -biyat

    Here is my 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/j2ee/dtds/web-app_2_3.dtd"

    web-app

    display-nameBiyat Testing System for web development/display-name
    description
    Used to write Jsp/ Servlets
    /description

    servlet
    servlet-nameServletMapping/servlet-name
    servlet-classcode.ServletMapping/servlet-class
    /servlet

    servlet-mapping
    servlet-nameServletMapping/servlet-name
    url-pattern/code/ServletMapping/url-pattern
    /servlet-mapping
    servlet
    servlet-nameErrorDisplay/servlet-name
    servlet-classcode.ErrorDisplay/servlet-class
    /servlet

    servlet-mapping
    servlet-nameErrorDisplay/servlet-name
    url-pattern/code/ErrorDisplay/url-pattern
    /servlet-mapping

    error-page
    exception-typejavax.servlet.ServletException/exception-type
    location/code/ErrorDisplay/location
    /error-page
    /web-app

    Here is my servlets

    in webexp/WEB-INF/classes

    code/ErrorDisplay.java
    ---------------------------------

    package code;

    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;

    public class ErrorDisplay extends HttpServlet
    {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();

    String code=null, message=null, type=null;
    Object codeObj, messageObj, typeObj;

    codeObj = request.getAttribute("javax.servlet.error.status_code");
    messageObj = request.getAttribute("javax.servlet.error.message");
    typeObj = request.getAttribute("javax.servlet.error.exception_type");

    if(codeObj != null)
    code = codeObj.toString();
    if(messageObj!=null)
    message = messageObj.toString();
    if(typeObj != null)
    type = typeObj.toString();

    String reason = (code!=null ? code : type);

    out.println("html");
    out.println("headtitle"+reason+":- "+message+"/title/head");
    out.println("body");
    out.println("h1"+reason+"/h1");
    out.println("h1"+message+"/h1");
    out.println("hr");
    out.println("iError accessing "+request.getRequestURI()+"/i");
    out.println("/body/html");
    }
    }

    Here is the page where there is error.
    in webexp/WEB-INF/classes

    code/ServletMapping.java

    package code;

    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;

    public class ServletMapping extends HttpServlet
    {
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    {
    String var1 = "logging starts";
    String str = request.getParameter("hello");
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    FileInputStream fis = new FileInputStream("hello.gif");
    out.println("htmlbodyfont color=redbHello Biyat/b/font/body/html");
    }
    }

    DB:2.39:Configuring Exception Pages Thru Servlets For Tomcat5 8a

    I prefer to use error-code instead of exception-type, this way all the exceptions triggered by the service() methods of any servlet will be routed to the error servlet.

    error-code500/error-code

    Regards,
    Martin
    ------
    Dinamica - Lightweight open source framework for J2EE
    Easy and powerful - http://www.martincordova.com

  • RELEVANCY SCORE 2.39

    DB:2.39:Checking If A Servlet Exists 8x


    Hi,

    I am trying to see if a servlet exists before I forward to it with a request dispatcher. I know it throws a ServletException if the servlet doesn't exist but that exception doesn't seem to be too specific, other problems could throw that servlet.
    Does anybody know how to accomplish this?

    Thank you,
    Dan

    DB:2.39:Checking If A Servlet Exists 8x

    I think you should create a servlet inside the server to get your request and check if the servlet you want exists. If so, it calls it. Other way, sends a message back to the client or redirect somewhere else.

  • RELEVANCY SCORE 2.39

    DB:2.39:Access Denied (Java.Util.Propertypermission * Read,Write) jf


    I am getting a access denied (java.util.PropertyPermission * read,write) exception when I try to write to a file... I am using websphere application server and the server log shows that error.

    There is also another error after this error (not sure if they are related) ..
    Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /favicon.ico has not been defined

    DB:2.39:Access Denied (Java.Util.Propertypermission * Read,Write) jf

    And also

    http://groups.google.no/group/ibm.software.websphere.application-server/browse_thread/thread/8693d78895b67a16/0f6fda010ffd90e6?lnk=stq=%22The+web+group+%2Ffavicon.ico+has+not%22rnum=5hl=no#0f6fda010ffd90e6

    R.

  • RELEVANCY SCORE 2.38

    DB:2.38:Error 500: Server Caught Unhandled Exception From Servlet 91


    Hi,

    I call a JavaBean from a JSP. When I want to open the JSP file, the browser shows the following error message:

    Error 500: Server caught unhandled exception from servlet [JSP 1.2 Processor]: access denied (java.util.PropertyPermission * read,write)

    I am using WebSphere as an application server. Do I need to have a special policy file or something else?

    Many thanks in advance

    Simone

    DB:2.38:Error 500: Server Caught Unhandled Exception From Servlet 91

    Thanks. I had a look at the log file but it doesn't tell me much really.
    The ServiceDiscoveryAgent is my JavaBean.
    Does it say anything to you?

    Thanks

    Simone

    Websphere Activity Log:

    * : access denied (java.util.PropertyPermission * read,write)

    ServiceDiscoveryAgent in {file:/C:/WSDK_v5/appserver/installedApps/DefaultNode/ServiceOne.ear/ServiceOne.war/}

    java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled Code))
    at java.security.AccessController.checkPermission(AccessController.java(Compiled Code))
    at java.lang.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
    at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java(Compiled Code))
    at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1266)
    at java.lang.System.getProperties(System.java:522)
    at org.uddi4j.transport.TransportFactory.newInstance(TransportFactory.java:76)
    at org.uddi4j.client.UDDIProxy.init(UDDIProxy.java:113)
    at ServiceDiscoveryAgent.init(ServiceDiscoveryAgent.java:83)
    at org.apache.jsp._ServiceDiscoveryList._jspService(_ServiceDiscoveryList.java:74)
    at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598)
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:187)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)

  • RELEVANCY SCORE 2.38

    DB:2.38:Multipartrequest Object And Httpservletrequest Object af


    Hi,

    In a Servlet Class Can we use both the MultipartRequest object and HttpServletRequest object in a single method like this.

    public String Method1(ServletMain servlet, HttpServletRequest request, MultipartRequest mprequest, HttpServletResponse response) throws Exception {

    Thanks,
    Madhavi.

    DB:2.38:Multipartrequest Object And Httpservletrequest Object af

    I would be surprised if that were in fact the behavior. The JSP has no idea what you did to the request itself by wrapping it in a MultiPart request. Indeed if you wanted to use the Multipart request, you would have to in your Servlet call setAttribute() to make it available for the JSP.

    You do not need to use pageContext.getRequest().getParameter(x)

    Simply use ${x}

    (Note: those are curly braces above, not parenthesis, take a look at JSTL, it will make your life a lot easier and is part of J2EE and JEE5).

    - Saish

  • RELEVANCY SCORE 2.38

    DB:2.38:Failed To Parse pj


    Hi i am getting error
    1)yment.DeploymentException: Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml)
    2)resource-ref jdbc/BookDB found in jboss-web.xml but not in web.xml
    contents of file are as follows
    1)jboss-web
    resource-ref
    res-ref-namejdbc/BookDB/res-ref-name
    res-typejavax.sql.DataSource/res-type
    jndi-namejava:/jdbc/BookDB/jndi-name
    /resource-ref
    /jboss-web
    2)?xml version="1.0" encoding="UTF-8"?
    !--
    Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    --
    web-app version="2.4" 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"
    display-nameBookstoreWAR/display-name
    filter
    filter-nameHitCounterFilter/filter-name
    filter-classsamples.webapps.bookstore.filters.HitCounterFilter/filter-class
    /filter
    filter
    filter-nameOrderFilter/filter-name
    filter-classsamples.webapps.bookstore.filters.OrderFilter/filter-class
    /filter
    filter-mapping
    filter-nameHitCounterFilter/filter-name
    servlet-nameBookStoreServlet/servlet-name
    /filter-mapping
    filter-mapping
    filter-nameOrderFilter/filter-name
    servlet-nameReceiptServlet/servlet-name
    /filter-mapping
    listener
    listener-classsamples.webapps.bookstore.listeners.ContextListener/listener-class
    /listener
    servlet
    display-nameBannerServlet/display-name
    servlet-nameBannerServlet/servlet-name
    servlet-classsamples.webapps.bookstore.BannerServlet/servlet-class
    /servlet
    servlet
    display-nameShowCartServlet/display-name
    servlet-nameShowCartServlet/servlet-name
    servlet-classsamples.webapps.bookstore.ShowCartServlet/servlet-class
    /servlet
    servlet
    display-nameCashierServlet/display-name
    servlet-nameCashierServlet/servlet-name
    servlet-classsamples.webapps.bookstore.CashierServlet/servlet-class
    /servlet
    servlet
    display-nameCatalogServlet/display-name
    servlet-nameCatalogServlet/servlet-name
    servlet-classsamples.webapps.bookstore.CatalogServlet/servlet-class
    /servlet
    servlet
    display-nameReceiptServlet/display-name
    servlet-nameReceiptServlet/servlet-name
    servlet-classsamples.webapps.bookstore.ReceiptServlet/servlet-class
    /servlet
    servlet
    display-nameBookStoreServlet/display-name
    servlet-nameBookStoreServlet/servlet-name
    servlet-classsamples.webapps.bookstore.BookStoreServlet/servlet-class
    /servlet
    servlet
    display-nameBookDetailsServlet/display-name
    servlet-nameBookDetailsServlet/servlet-name
    servlet-classsamples.webapps.bookstore.BookDetailsServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameBannerServlet/servlet-name
    url-pattern/banner/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameShowCartServlet/servlet-name
    url-pattern/showcart/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameCashierServlet/servlet-name
    url-pattern/cashier/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameCatalogServlet/servlet-name
    url-pattern/catalog/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameReceiptServlet/servlet-name
    url-pattern/receipt/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameBookStoreServlet/servlet-name
    url-pattern/enter/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameBookDetailsServlet/servlet-name
    url-pattern/bookdetails/url-pattern
    /servlet-mapping
    session-config
    session-timeout30/session-timeout
    /session-config
    error-page
    exception-typesamples.webapps.bookstore.exception.BooksNotFoundException/exception-type
    location/errorpage.html/location
    /error-page
    error-page
    exception-typejavax.servlet.UnavailableException/exception-type
    location/errorpage.html/location
    /error-page
    error-page
    exception-typesamples.webapps.bookstore.exception.BookNotFoundException/exception-type
    location/errorpage.html/location
    /error-page
    resource-ref
    res-ref-namejdbc/BookDB/res-ref-name
    res-typejavax.sql.DataSource/res-type
    res-authContainer/res-auth
    res-sharing-scopeShareable/res-sharing-scope
    /resource-ref
    /web-app
    thanxs in adv.

    DB:2.38:Failed To Parse pj

    Hi,

    Wat i think abt this problme is u didnt specify Resource name in your JBoss-web.xml for the specific context do one thing just define Resource name with its parameter say Resource-Parameter after that just change your web.xml file with the Resource-Reference element and map it with the resource name it wil definately work for you.

    Regards
    Sanket Dave

  • RELEVANCY SCORE 2.38

    DB:2.38:Servlet Exception 8d


    hi,
    I am using WSAD for some smaple examples
    when i start the server i am getting the following exception when trying to access the http://localhost:9080/ url..

    6e9782b1 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group / has not been defined

    i am not sure as what i am missing?
    any help would be appreciated.
    thanks

    DB:2.38:Servlet Exception 8d

    hi,
    I am using WSAD for some smaple examples
    when i start the server i am getting the following exception when trying to access the http://localhost:9080/ url..

    6e9782b1 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group / has not been defined

    i am not sure as what i am missing?
    any help would be appreciated.
    thanks

  • RELEVANCY SCORE 2.38

    DB:2.38:Applet Communicate Servlet Problem fd


    Hi all, I wrote an application which is Applet communicates to Servlet with HttpURLConnection)url.openConnection() method, but sometime I get SocketException because "No processor available" on the server, this happens when two user do the same thing at the exactly time, and one of the application crashed, because on the server side there is not thread(processor) available to process the request. I am using JBoss application server and Tomcat servlet engine to handle my server side processes, I am wondering "Applet communicates to Servlet " is good for the Enterprise Application or not. Does this architect is scalable? Is there any way to configure the Sockets on the Tomcat to handle more request? or is depending on the server power?
    Please someone help and I really appreciate your help

    Billsend

    DB:2.38:Applet Communicate Servlet Problem fd

    how we can send the applet data to servlet and
    vice-versahttp://www.unix.org.ua/orelly/java-ent/servlet/ch10_01.htm

  • RELEVANCY SCORE 2.38

    DB:2.38:Servlet Mapping Wild Card Problem d9


    I'm trying to set up a servlet that can be accessed from a wild card mapping. Please see my code snippets below.

    It displays correctly if I hit: http://localhost:8080/servletBase/doc?id=56
    The jsp displays the properly coded error with: http://localhost:8080/servletBase/doc
    Many, many doGet exceptions, to the point of stack overflow with :http://localhost:8080/servletBase/doc/
    Same as above, but this is my desired url structure (where 'item' can be anything): http://localhost:8080/servletBase/doc/item?id=65

    web.xml
    servlet
    servlet-nameServlet One/servlet-name
    servlet-classcom.web.servlet.Servlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameServlet One/servlet-name
    url-pattern/doc/*/url-pattern
    /servlet-mappingservlet code
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws IOException, ServletException {

    String id = request.getParameter("id");

    request.setAttribute("queryResult", id);
    RequestDispatcher view = request.getRequestDispatcher("result.jsp");
    view.forward(request, response);

    }jsp code
    %
    out.println("The id passed was: " + request.getAttribute("queryResult"));
    %ERROR
    javax.servlet.ServletException: Servlet execution threw an exception
    com.web.servlet.Servlet.doGet(Servlet.java:24)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    com.web.servlet.Servlet.doGet(Servlet.java:24)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    com.web.servlet.Servlet.doGet(Servlet.java:24)
    ...
    ...
    ...
    java.lang.StackOverflowError
    org.apache.catalina.connector.Request.setAttribute(Request.java:1414)
    org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:503)
    com.web.servlet.Servlet.doGet(Servlet.java:22)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    com.web.servlet.Servlet.doGet(Servlet.java:24)
    ...
    ...
    ...

    DB:2.38:Servlet Mapping Wild Card Problem d9

    AWESOME! Thank you!

    Amazing what one character can do. Thanks so much!

  • RELEVANCY SCORE 2.38

    DB:2.38:Applet-≫Servlet Communiocation 1s


    Hi All.

    here In Applet Servlet communication .

    is it possible for applet to communicate with servlet using only one stream .

    like applet open only outputstream and servlet open only input stream .

    as in my applet here is the code which i m implementing .....

    private void sendData(){

    try{
    URL url = new URL("http://jeetu/servlet/ch.startGame");

    URLConnection servletConnection=url.openConnection();
    servletConnection.setDoOutput(true);
    servletConnection.setDoInput(true);
    ObjectOutputStream oos = new ObjectOutputStream(servletConnection.getOutputStream());

    oos.writeObject(sendObject ITS A SERIALIZED OBJECT );
    oos.close();

    }
    catch(Exception e){

    }
    }

    and in Servlet here is the code ...................

    public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException{

    try{
    log("Here connection Occured");
    String contentType = "application/x-java-serialized-object";
    response.setContentType(contentType);
    ServletContext context=this.getServletContext();
    ObjectInputStream ois= new ObjectInputStream(request.getInputStream());
    transferObject objectReceived=(transferObject)ois.readObject();
    RequestDispatcher rd=context.getRequestDispatcher("/StartGame.jsp");
    rd.forward(request,response);
    }
    catch(Exception e){
    log("here in start Game "+e.toString());
    }

    }

    Here in Servlet after receiving SERIALIZED OBJECT i m transfering control to StartGame.jsp page . but the problem is that servlet is not receiving the object until both streams are open . and i can't do it . because it woluld be Exception in the servlet code .because servlet can only respond to only one request and give only one response. as we are transfering control to other page and also opening other stream .

    for any informatin plz mail at jeetenderbatra@gmail.com

    DB:2.38:Applet-≫Servlet Communiocation 1s

    Hi All.

    here In Applet Servlet communication .

    is it possible for applet to communicate with servlet using only one stream .

    like applet open only outputstream and servlet open only input stream .

    as in my applet here is the code which i m implementing .....

    private void sendData(){

    try{
    URL url = new URL("http://jeetu/servlet/ch.startGame");

    URLConnection servletConnection=url.openConnection();
    servletConnection.setDoOutput(true);
    servletConnection.setDoInput(true);
    ObjectOutputStream oos = new ObjectOutputStream(servletConnection.getOutputStream());

    oos.writeObject(sendObject ITS A SERIALIZED OBJECT );
    oos.close();

    }
    catch(Exception e){

    }
    }

    and in Servlet here is the code ...................

    public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException{

    try{
    log("Here connection Occured");
    String contentType = "application/x-java-serialized-object";
    response.setContentType(contentType);
    ServletContext context=this.getServletContext();
    ObjectInputStream ois= new ObjectInputStream(request.getInputStream());
    transferObject objectReceived=(transferObject)ois.readObject();
    RequestDispatcher rd=context.getRequestDispatcher("/StartGame.jsp");
    rd.forward(request,response);
    }
    catch(Exception e){
    log("here in start Game "+e.toString());
    }

    }

    Here in Servlet after receiving SERIALIZED OBJECT i m transfering control to StartGame.jsp page . but the problem is that servlet is not receiving the object until both streams are open . and i can't do it . because it woluld be Exception in the servlet code .because servlet can only respond to only one request and give only one response. as we are transfering control to other page and also opening other stream .

    for any informatin plz mail at jeetenderbatra@gmail.com

  • RELEVANCY SCORE 2.38

    DB:2.38:Weblogic Proxy Servlet aj


    I need some help with what I am doing , I want Weblogic server to

    Send a request to apache web server. By using the

    Inbuild Weblogic proxy servlet. The redirectURL is pointed

    To the Apache webserver like this:

    servlet-nameProxyServlet/servlet-name

    servlet-classweblogic.servlet.proxy.HttpProxyServlet/servlet-class

    init-param

    param-nameredirectURL/param-name

    param-valuehttp://localhost:8080/EStubs/param-value // (Intended target)

    /init-param

    /servlet

    servlet-mapping

    servlet-nameProxyServlet/servlet-name

    url-pattern/securelogin/url-pattern

    /servlet-mapping

    Now , my jsp page running in a web App on Weblogic has a form with action /securelogin , and this
    Action will trigger the ProxyServlet when the submit is clicked.

    But Instead , Weblogic passes the [ context-root/ securelogin ] to the
    Remote Apache webserver. Here is the response from the remote machine:

    [6/21/06 12:09:24:217 EDT] 20e2ec7e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /EstubProxy/securelogin has not been defined

    Why is Weblogic passing /EstubProxy/securelogin ? over ?
    Why is ProxyServlet not getting called ?

    Regards
    -Isaac

    DB:2.38:Weblogic Proxy Servlet aj

    HttpProxyServlet is being called, but it doesn't do what you think it does. Only the host and port are used from the URL provided in redirectURL. It ignores anything else. It uses the host and port to construct a new URL from any request that is mapped to the proxy.

    In your case, the form will ask for /EstubProxy/securelogin since EstubProxy is your application's context root. HttpProxyServlet will then request this from the web server available on the host/port specified in redirectURL.

    This actually makes sense, though it isn't what you want. Think about the case where you want all *.asp files served up by an IIS server. If the redirectURL was the only URL to which HttpProxyServlet redirected, you'd have to set up mappings for each and every ASP file.

    To do what you want, you've got three options that I see. First, you can set up apache to redirect /EstubProxy/securelogin to /securelogin internally. Can't remember the Apache syntax, but I know it can do this without sending a redirect back to the client. Your second option is to write a Servlet or ServletFilter mapped to /securelogin that does the proxying itself. Your third option is to use / as the context root in weblogic.xml. You can have one app that does this. Usually, this is the "DefaultWebApp" but it can be any application.

  • RELEVANCY SCORE 2.38

    DB:2.38:Java.Lang.Runtimeexception: Cannot Find Facescontext aj


    Hi all,

    I am getting an exception when I am trying to delegate the FacesServlet. When I run my jsf page with default FacesServlet it runs fine but when I try to run with RmsFacesServlet it throws me the exception java.lang.RuntimeException: Cannot find FacesContextservlet
    servlet-nameFaces Servlet/servlet-name
    !-- servlet-classjavax.faces.webapp.FacesServlet/servlet-class --
    servlet-classcom.myCompany.faces.RmsFacesServlet/servlet-class
    init-param
    param-nameerrorPage/param-name
    param-value/error.jsp/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.jsf/url-pattern
    /servlet-mappingpublic class RmsFacesServlet extends HttpServlet{

    private static final long serialVersionUID = 7431577269396095686L;

    private static final Logger LOG = Logger.getLogger(RmsFacesServlet.class);

    private static final String INIT_PARAM_ERROR_PAGE = "errorPage";

    private transient FacesServlet delegate;

    private String errorPage;

    /*
    * (non-Javadoc)
    * @see javax.servlet.GenericServlet#init(javax.servlet.ServletConfig)
    */
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
    delegate = new FacesServlet();
    delegate.init(servletConfig);
    errorPage = servletConfig.getInitParameter(INIT_PARAM_ERROR_PAGE);
    LOG.debug("ERROR PAGE: "+errorPage);
    }

    /*
    * (non-Javadoc)
    * @see javax.servlet.GenericServlet#destroy()
    */
    @Override
    public void destroy() {
    delegate.destroy();
    }

    /*
    * (non-Javadoc)
    * @see javax.servlet.GenericServlet#getServletConfig()
    */
    @Override
    public ServletConfig getServletConfig() {
    return delegate.getServletConfig();
    }

    /*
    * (non-Javadoc)
    * @see javax.servlet.GenericServlet#getServletInfo()
    */
    @Override
    public String getServletInfo() {
    return delegate.getServletInfo();
    }

    /*
    * (non-Javadoc)
    * @see javax.servlet.http.HttpServlet#service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
    */
    @Override
    public void service(ServletRequest request, ServletResponse response)
    throws ServletException, IOException {
    try {
    delegate.service(request, response);
    } catch (Throwable e) {
    LOG.warn(e);
    redirectToErrorPage((HttpServletRequest) request,
    (HttpServletResponse) response);
    }
    }

    /**
    * Redirect to generic error page
    *
    * @param request
    * @param response
    * @throws IOException
    */
    private void redirectToErrorPage(HttpServletRequest request,
    HttpServletResponse response) throws IOException {

    if (!"".equals(errorPage)) {
    long timeStamp = System.currentTimeMillis();
    String errorCode = Integer.toHexString((int)timeStamp);
    LOG.error("Error Code: " + errorCode);
    response.sendRedirect(request.getContextPath() + errorPage + "?errorCode="+errorCode);
    HttpSession sess = request.getSession(false);
    if (null != sess)
    sess.invalidate();
    }
    }
    }I dont know why it is unable to find FacesContext.
    Can some one help me what am I missing?

    Thanks!!

    DB:2.38:Java.Lang.Runtimeexception: Cannot Find Facescontext aj

    FacesServlet class ought to be extended for this particular purpose, but it's been marked final. That should have made you to realize that delegation ain't going to work as well. It's just by design.

  • RELEVANCY SCORE 2.38

    DB:2.38:Exception Occured While Trying To Forward The Request From Jsp To Servlet a8


    Hi,

    The following exception occured when the request has been forwarded to servlet from JSP using
    jsp:forward page = "/servlet/ToJSPServlet" /.

    In the servlet am redirecting to a different url, as
    'response.sendRedirect("https://www.yahoo.com");'

    Any idea why?

    Exception:
    javax.servlet.ServletException: Forward /servlet/ToJSPServlet failed: can only forward to a JSP page.
    at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java)
    at oa_html.tcscustom.tcs_mis_dashboard._jspService(tcs_mis_dashboard.java:75)
    at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
    at oracle.jsp.JspServlet.service(JspServlet.java)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:402)
    at org.apache.jserv.JServConnection.run(JServConnection.java:260)
    at java.lang.Thread.run(Unknown Source)

    Thanks in advance.

    Sadguru

    DB:2.38:Exception Occured While Trying To Forward The Request From Jsp To Servlet a8

    I had tried with different URLs, but still got the same exception.

    Any other alternative?

    Thanks
    Sadguru

  • RELEVANCY SCORE 2.38

    DB:2.38:Client And Server Versions Are Incompatible Oedq Home Page 89


    Hi All,

    I installed OEDQ on a tomcat7 server.
    running JDK 1.7.

    But once I try to load the Director, I get this error.
    Any Idea why?
    Client and server versions are incompatible. Client:9.0.4(694), Server: UNKNOWN (Code 238,502)
    Please see below the contents of web.xml file.

    ?xml version="1.0" encoding="UTF-8"?
    web-app id="WebApp_ID" version="2.4"
    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"
    display-namedndirector/display-name

    welcome-file-list
    welcome-fileindex.html/welcome-file
    welcome-fileindex.htm/welcome-file
    welcome-fileindex.jsp/welcome-file
    welcome-filedefault.html/welcome-file
    welcome-filedefault.htm/welcome-file
    welcome-filedefault.jsp/welcome-file
    /welcome-file-list

    security-constraint
    web-resource-collection
    web-resource-nameeverything/web-resource-name
    url-pattern*.do/url-pattern
    url-pattern*.dn/url-pattern
    url-pattern*.dnhtml/url-pattern
    url-pattern/webservices/url-pattern
    url-pattern/webservices//url-pattern
    url-pattern/webservices/status.jsp/url-pattern
    url-pattern/ws/*/url-pattern
    /web-resource-collection

    user-data-constraint
    transport-guaranteeNONE/transport-guarantee
    /user-data-constraint
    /security-constraint

    !-- Struts Tag Library Descriptors --

    jsp-config

    taglib
    taglib-uri/tags/datanomic/taglib-uri
    taglib-location/WEB-INF/datanomic.tld/taglib-location
    /taglib

    taglib
    taglib-uri/tags/struts-bean/taglib-uri
    taglib-location/WEB-INF/struts-bean.tld/taglib-location
    /taglib

    taglib
    taglib-uri/tags/struts-html/taglib-uri
    taglib-location/WEB-INF/struts-html.tld/taglib-location
    /taglib

    taglib
    taglib-uri/tags/struts-logic/taglib-uri
    taglib-location/WEB-INF/struts-logic.tld/taglib-location
    /taglib

    taglib
    taglib-uri/tags/struts-nested/taglib-uri
    taglib-location/WEB-INF/struts-nested.tld/taglib-location
    /taglib

    taglib
    taglib-uri/tags/struts-tiles/taglib-uri
    taglib-location/WEB-INF/struts-tiles.tld/taglib-location
    /taglib

    taglib
    taglib-urihttp://com.datanomic/web/taglib-uri
    taglib-location/WEB-INF/dn.tld/taglib-location
    /taglib
    /jsp-config

    context-param
    param-namecontextConfigLocation/param-name

    !-- logging config first, then other beans then local config --

    param-value
    classpath:conf/dashboard.xml
    classpath:conf/dashboardexport.xml
    classpath:conf/datasource.xml
    classpath:conf/datauploader.xml
    classpath:conf/dbsupport.xml
    classpath:conf/eventlogger.xml
    classpath:conf/externalresources.xml
    classpath:conf/guihelper.xml
    classpath:conf/housekeeper.xml
    classpath:conf/imagesupport.xml
    classpath:conf/instrumentation.xml
    classpath:conf/missionlieutenant.xml
    classpath:conf/missionmanager.xml
    classpath:conf/datanexus.xml
    classpath:conf/processengine.xml
    classpath:conf/promulgator.xml
    classpath:conf/realtime.xml
    classpath:conf/resultscomparison.xml
    classpath:conf/resultsdatabase.xml
    classpath:conf/resultsetexportmanager.xml
    classpath:conf/bpresultsretrieval.xml
    classpath:conf/resultsetmanager.xml
    classpath:conf/sccs.xml
    classpath:conf/autorun.xml
    classpath:conf/datainterfaces.xml
    classpath:conf/export.xml
    classpath:conf/externalisedproperties.xml
    classpath:conf/issues.xml
    classpath:conf/locks.xml
    classpath:conf/lookup.xml
    classpath:conf/ofBrowsing.xml
    classpath:conf/permissions.xml
    classpath:conf/processmodel.xml
    classpath:conf/projectmodel.xml
    classpath:conf/resource.xml
    classpath:conf/resultsprovider.xml
    classpath:conf/resultspublish.xml
    classpath:conf/resultsretrievalcore.xml
    classpath:conf/runmanager.xml
    classpath:conf/transfer.xml
    classpath:conf/userdata.xml
    classpath:conf/widgetstore.xml
    classpath:conf/snapshot.xml
    classpath:conf/stageddata.xml
    classpath:conf/testsupport.xml
    classpath:conf/triggers.xml
    classpath:conf/valueselection.xml
    classpath:conf/webservices.xml
    classpath:conf/zipserver.xml
    classpath:conf/blueprints.xml
    classpath:conf/daoconf.xml
    classpath:conf/databasespecies.xml
    classpath:conf/debuglogging.xml
    classpath:conf/logging.xml
    classpath:conf/management.xml
    classpath:conf/omnibus.xml
    classpath:conf/userauth.xml
    WEB-INF/configuration.xml
    /param-value
    /context-param

    !-- Additional resource search entries --

    context-param
    param-nameassetTreeResourceList/param-name

    !-- logging config first, then other beans then local config --

    param-value
    classpath:com/datanomic/director/datasource/assettree/assettree.xml
    classpath:com/datanomic/director/resources/dynamic/assettree.xml
    classpath:com/datanomic/director/resources/external/assettree/assettree.xml
    classpath:com/datanomic/director/imagesupport/server/assettree/assettree.xml
    classpath:com/datanomic/director/externaltasks/assettree/assettree.xml
    classpath:com/datanomic/director/missionmanager/assettree/assettree.xml
    classpath:com/datanomic/director/runtime/data/assettree/assettree.xml
    classpath:com/datanomic/director/resultsetexport/assettree/assettree.xml
    classpath:com/datanomic/director/results/assettree/assettree.xml
    classpath:com/datanomic/director/datainterfaces/assettree/assettree.xml
    classpath:com/datanomic/director/exports/assettree/assettree.xml
    classpath:com/datanomic/director/lookupmanager/assettree/assettree.xml
    classpath:com/datanomic/director/project/server/assettree/assettree.xml
    classpath:com/datanomic/director/userdata/assettree/assettree.xml
    classpath:com/datanomic/director/snapshot/assettree/assettree.xml
    classpath:com/datanomic/director/stageddata/assettree/assettree.xml
    classpath:com/datanomic/director/webservices/assettree/assettree.xml
    /param-value
    /context-param

    listener
    listener-class
    org.springframework.web.context.ContextLoaderListener
    /listener-class
    /listener
    context-param
    param-namecontextClass/param-name
    param-value
    com.datanomic.director.startup.WebApplicationContext
    /param-value
    /context-param

    !--
    User Authentication filter
    This filter passes on a request if a valid session exists, otherwise returns
    HTTP status 403 (forbidden).
    --
    filter
    filter-nameauthFilter/filter-name
    filter-class
    com.datanomic.userauth.server.http.AuthFilter
    /filter-class
    /filter

    !-- User Authentication filter mapping --

    !-- Original authenticated transport --

    filter-mapping
    filter-nameauthFilter/filter-name
    url-pattern/main/url-pattern
    /filter-mapping

    !-- New transport, authenticated or not authenticated --

    filter-mapping
    filter-nameauthFilter/filter-name
    url-pattern/trans/url-pattern
    /filter-mapping

    filter-mapping
    filter-nameauthFilter/filter-name
    url-pattern/transx/url-pattern
    /filter-mapping

    !-- Standard Action Servlet Configuration (with debugging) --
    servlet
    servlet-nameaction/servlet-name
    servlet-classcom.datanomic.director.struts.FixupUnhelpfulActionServlet/servlet-class
    init-param
    param-nameconfig/param-name
    param-value/WEB-INF/struts-config.xml/param-value
    /init-param
    init-param
    param-namedebug/param-name
    param-value2/param-value
    /init-param
    init-param
    param-namedetail/param-name
    param-value2/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet

    !-- Standard Action Servlet Mapping --
    servlet-mapping
    servlet-nameaction/servlet-name
    url-pattern*.dn/url-pattern
    /servlet-mapping

    servlet
    servlet-nameaction2/servlet-name
    servlet-classcom.datanomic.director.struts.FixupUnhelpfulActionServlet/servlet-class
    init-param
    param-nameconfig/param-name
    param-value/WEB-INF/struts-config.xml/param-value
    /init-param
    init-param
    param-namedebug/param-name
    param-value2/param-value
    /init-param
    init-param
    param-namedetail/param-name
    param-value2/param-value
    /init-param
    init-param
    param-namefixupmapping/param-name
    param-value*.do/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet

    !-- Standard Action Servlet Mapping --
    servlet-mapping
    servlet-nameaction2/servlet-name
    url-pattern*.do/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameaction2/servlet-name
    url-pattern*.dx/url-pattern
    /servlet-mapping

    servlet
    servlet-nametest/servlet-name
    servlet-class
    com.datanomic.director.TestDirectorServlet
    /servlet-class
    /servlet

    !-- Test Servlet Mapping --
    servlet-mapping
    servlet-nametest/servlet-name
    url-pattern/test/url-pattern
    /servlet-mapping

    !-- Stuff transport --

    servlet
    servlet-nametrans/servlet-name
    servlet-classcom.datanomic.utils.transport.http.server.TransportServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nametrans/servlet-name
    url-pattern/trans/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nametrans/servlet-name
    url-pattern/transx/url-pattern
    /servlet-mapping

    !--
    Zip Server servlet
    This servlet is used to server help pages from zip files in the database. Yes, I know.
    --
    servlet
    servlet-namezip/servlet-name
    servlet-class
    com.datanomic.director.zipserver.manager.ZipServerServlet
    /servlet-class
    load-on-startup1/load-on-startup
    /servlet

    !-- Configuration properties servlet mapping --
    servlet-mapping
    servlet-namezip/servlet-name
    url-pattern/zip/*/url-pattern
    /servlet-mapping

    !-- ========================= --
    !-- jaxws webservices servlet --
    !-- ========================= --

    servlet
    servlet-namewebservices/servlet-name
    servlet-classcom.datanomic.director.webservices.http.ServiceServlet/servlet-class

    init-param
    param-namestatuspage/param-name
    param-value/ws/status.jsp/param-value
    /init-param
    load-on-startup1/load-on-startup
    /servlet

    servlet-mapping
    servlet-namewebservices/servlet-name
    url-pattern/webservices/*/url-pattern
    /servlet-mapping

    !-- ========================================== --
    !-- Simple login servlet for use in forms, etc --
    !-- ========================================== --

    servlet
    servlet-namelogin/servlet-name
    servlet-classcom.datanomic.director.webapp.login.LoginServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-namelogin/servlet-name
    url-pattern/loginservlet/*/url-pattern
    /servlet-mapping

    !-- ============================== --
    !-- Form interface to web services --
    !-- ============================== --

    context-param
    param-nameformwsbasedir/param-name
    param-value/ws/param-value
    /context-param

    servlet
    servlet-nameformwebservices/servlet-name
    servlet-classcom.datanomic.director.webservices.http.forms.FormServiceServlet/servlet-class

    !-- Default results page: not relative to base dir --

    init-param
    param-namedefaultresults/param-name
    param-value/ws/wsresults.jsp/param-value
    /init-param

    !-- Default error page: not relative to base dir --

    init-param
    param-namedefaulterror/param-name
    param-value/ws/wserror.jsp/param-value
    /init-param
    /servlet

    servlet-mapping
    servlet-nameformwebservices/servlet-name
    url-pattern/formws/*/url-pattern
    /servlet-mapping

    !-- =================================== --
    !-- Security filter for form HTML pages --
    !-- =================================== --

    filter
    filter-nameFormWSFilter/filter-name
    filter-classcom.datanomic.director.webservices.http.forms.FormSecurityFilter/filter-class

    !-- Regex selection items to filter: matches against entire URI with context prefix, in case insensitive mode --

    init-param
    param-nameselector/param-name
    param-value.*(/|(\.(jsp|htm|html)))/param-value
    /init-param
    /filter

    !-- Pattern must match formwsbasedir context parameter set above.

    We could match everything and check for a base dir prefix, but this would catch all transport
    calls, etc which seems inefficient.
    --

    filter-mapping
    filter-nameFormWSFilter/filter-name
    url-pattern/ws/*/url-pattern
    /filter-mapping

    !-- Image Servlet --
    servlet
    servlet-namegraph/servlet-name
    servlet-classcom.datanomic.dashboard.servlets.DQGraph/servlet-class
    /servlet

    !-- Image Servlet Mapping --
    servlet-mapping
    servlet-namegraph/servlet-name
    url-pattern/dashboard/graph.png/url-pattern
    /servlet-mapping

    !-- Admin UI Servlet --
    servlet
    servlet-nameadminui/servlet-name
    servlet-classcom.datanomic.dashboard.servlets.DQAdminUI/servlet-class
    /servlet

    !-- Admin UI Servlet Mapping --
    servlet-mapping
    servlet-nameadminui/servlet-name
    url-pattern/dashboard/AdminUI/url-pattern
    /servlet-mapping

    !-- Error Pages --
    error-page
    error-code404/error-code
    location/dashboard/error/404.jsp/location
    /error-page
    error-page
    exception-typecom.datanomic.dashboard.zerrors.DashboardRuntimeException/exception-type
    location/dashboard/error/500.jsp/location
    /error-page

    filter
    filter-nameSecurityFilter/filter-name
    filter-classcom.datanomic.director.launchpad.security.SecurityFilter/filter-class
    /filter

    filter-mapping
    filter-nameSecurityFilter/filter-name
    url-pattern*.dnhtml/url-pattern
    /filter-mapping

    servlet
    servlet-namelaunchpad/servlet-name
    servlet-classcom.datanomic.utils.web.WebDispatcherServlet/servlet-class
    init-param
    param-namecontrollerRegisterFactory/param-name
    param-valuecom.datanomic.director.launchpad.web.LaunchpadRegisterFactory/param-value
    /init-param
    /servlet

    servlet-mapping
    servlet-namelaunchpad/servlet-name
    url-pattern*.dnhtml/url-pattern
    /servlet-mapping

    servlet
    servlet-namelaunchpad-unsecured/servlet-name
    servlet-classcom.datanomic.utils.web.WebDispatcherServlet/servlet-class
    init-param
    param-namecontrollerRegisterFactory/param-name
    param-valuecom.datanomic.director.launchpad.web.LaunchpadUnsecuredRegisterFactory/param-value
    /init-param
    /servlet

    servlet-mapping
    servlet-namelaunchpad-unsecured/servlet-name
    url-pattern*.dnhtm/url-pattern
    /servlet-mapping

    servlet
    servlet-nameblueprintimages/servlet-name
    servlet-classcom.datanomic.director.launchpad.web.BlueprintImageServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameblueprintimages/servlet-name
    url-pattern/blueprints/*/url-pattern
    /servlet-mapping

    /web-app

    What might be going wrong? Please help.. :(

    DB:2.38:Client And Server Versions Are Incompatible Oedq Home Page 89

    Definite reason..
    And a definite Solution..

    Thanks Mike.. :)

  • RELEVANCY SCORE 2.38

    DB:2.38:The Server Encountered An Internal Error () as


    hello

    i m using tomcat 4.1.18 my problem is that from html page through action attribute of form
    tag fetching my servlet as

    form name="newvoucher" action="http://localhost:8080/ERP/servlet/NewVoucher" onSubmit="validate(); return false"

    and as i m clicking on submit button i m getting following error

    HTTP Status 500 -
    --------------------------------------------------------------------------------
    type Exception report

    message
    description :The server encountered an internal error () that prevented it from fulfilling this request.

    javax.servlet.ServletException: Wrapper cannot find servlet class NewVoucher or a class it depends on
    ..
    ..
    etc.

    root cause :

    java.lang.ClassNotFoundException: NewVoucher
    ..
    ..
    etc

    even though i have compiled servlet (erp/servlet/NewVoucher.java) added into a jar file (servlet.jar) entered the details of NewVoucher in xml file

    contents of my xml file are:

    ?xml version="1.0" encoding="ISO-8859-1"?

    !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
    servlet
    servlet-nameNewAccount/servlet-name
    servlet-classNewAccount/servlet-class
    /servlet

    servlet
    servlet-nameNewVoucher/servlet-name
    servlet-classNewVoucher/servlet-class
    /servlet

    servlet-mapping
    servlet-nameNewAccount/servlet-name
    url-pattern/servlet/*/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameNewVoucher/servlet-name
    url-pattern/servlet/*/url-pattern
    /servlet-mapping
    /web-app

    which is stored in erp/web-inf directory

    previously my NewAccount servlet was working properly but as i added NewVoucher
    class with jar file and fetching Newvoucher servlet from another html form this problem starts(now NewAccount servlet also creates same prblem)

    thanks neha

    DB:2.38:The Server Encountered An Internal Error () as

    i m using tomcat 4.1.18 That's pretty outdated. If it isnt a specific requirement, you should consider shifting to a 5.x version.

    even though i have compiled servlet (erp/servlet/NewVoucher.java) added into a jar file (servlet.jar) entered the details of NewVoucher in xml fileWhat is servlet.jar? Your own jar file?
    Placing the .class file in the APP_ROOT/WEB-INF/classes directory is sufficient.

    ram.

  • RELEVANCY SCORE 2.38

    DB:2.38:Mapping The Servlet Request 88


    Dear Sir,
    I have two queries.
    First question is:
    I have a Html page. On which Have two buttons Submit and Issue.
    I want when I click on Sumit button request should be go to submit.jsp. and When I click on Issue button then request should be go to Issue.jsp.But When I click on submit button request do to Issue.jsp.
    Second Question is How I reterive the input parameter of html page to submit.jsp.
    Please review..

    My files are:
    login.html:
    html
    head
    titleA simple JSP application/title
    head
    body
    form method="get" action="tmp"
    Nameinput type="text" name="user"
    br
    Passwordinput type="password" name="pass"
    input type="Submit" value="Submit"
    input type="Submit" value="Issue"
    /form
    /body
    /html

    LoginServlet.java:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class LoginServlet extends HttpServlet{
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException,IOException{
    try
    {
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    String user=request.getParameter("user");
    String pass=request.getParameter("pass");
    out.println("Hello: "+user);
    out.println("Hello: "+pass);

    RequestDispatcher dispatcher1 =
    request.getRequestDispatcher("/Issue.jsp");
    dispatcher1.forward(request,response);

    RequestDispatcher dispatcher =
    request.getRequestDispatcher("/submit.jsp");
    dispatcher.forward(request,response);
    }
    catch(Exception e)
    {
    e.printStackTrace();
    }
    }
    }

    web.xml:

    web-app
    servlet
    servlet-nameone/servlet-name
    servlet-classLoginServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameone/servlet-name
    url-pattern/tmp/url-pattern
    /servlet-mapping

    jsp-filesubmit.jsp/jsp-file
    jsp-fileIssue.jsp/jsp-file
    url-pattern*.do/url-pattern

    welcome-file-list
    welcome-fileLogin.html/welcome-file
    /welcome-file-list
    /web-app

    DB:2.38:Mapping The Servlet Request 88

    Thank You Sir.
    probelm has been solved.

  • RELEVANCY SCORE 2.37

    DB:2.37:Why No Calss Def Error In Tomcat? 11


    hello guys, i am writting some code that uses oreilly servlet upload package and namely the multipart request class..
    the code compiles fine but when called by the container during execution, the following message is outputted:

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.NoClassDefFoundError: com/oreilly/servlet/MultipartRequest
    NewPicServlet.doPost(NewPicServlet.java:62)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

    why??

    DB:2.37:Why No Calss Def Error In Tomcat? 11

    its ok.. i have solved it...forgot to copy the jar file in tomcat lib directory.....

  • RELEVANCY SCORE 2.37

    DB:2.37:Jsp-Problem ck


    Hi, I am starting to write a prog in JSP, but i got onley Error. My tools are:Eclips, Tomcat. The problem is: i am not sure that the description of JSP file in the web.xml is correct. i don't know what is correct to write in the web.xml. My declaration of JSP file(name= tidspunkt) in web.xml was:

    servlet

    servlet-nametidspunkt/servlet-name

    servlet-classtidspunkt/servlet-class

    /servlet
    servlet-mapping

    servlet-nametidspunkt/servlet-name

    url-pattern/tidspunkt/url-pattern

    /servlet-mapping
    -----------------------------------------------------------------------
    Error:----

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Wrapper cannot find servlet class tidspunkt or a class it depends on
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
    java.lang.Thread.run(Unknown Source)

    DB:2.37:Jsp-Problem ck

    this is the code:
    html
    head
    titleTime on the server/title
    /head
    ?
    body
    The time is %= new java.util.Date() %
    /body
    /html
    -------------
    i dont have problem to run the servlet, but compilator culdnot find the jsp file. please tell me how i can run this code. Thanks

  • RELEVANCY SCORE 2.37

    DB:2.37:How To Interrupt A Multipart Request 9x


    Hi,

    I am writing a servlet to receive the uploading file from client.
    I use the MultipartPart sample in Java Servlet Programming.
    I set the upload size limitation as 5Mb.
    In MultipartPartRequest, when the content size is larger than 5Mb. It will throw the exception.

    In my Servlet, I catch this exception than display error message.

    The question is , the uploading will keep going until the all file is uploaded. After the uloading is finished, my reponse just work.It wastes much time. Is there any approach to interrupt the multipart request when the size is too large?

    Roger Lo

    DB:2.37:How To Interrupt A Multipart Request 9x

    The whole request body has to arrive before your servlet sees it, so if you get contentLength() 5M, you have already wasted the bandwidth. :-(

    You can configure Apache as a reverse proxy in front of your servlet engine and set LimitRequestBody to 5M*3/2 = 7.5M (this roughly allows for the additional space for base64 encoding overhead, HTTP headers and other data). That way, Apache will automatically reject the request when the request exceeds 7.5M (the request won't get through to your servlet) and you've wasted only 7.5M worth of bandwidth.

  • RELEVANCY SCORE 2.37

    DB:2.37:"Catch All" Exception In A Servlet jc


    I have a servlet that is deployed on WebLogic 8.1. At one point I am initializing a XSLT processor that is throwing an error.

    I don't know what error as the Servlet implementation (AIX machine, JDK 1.4) is catching it and showing me "Page cannot be displayed"

    Is there any configuration that tells a web application to catch all the errors?

    DB:2.37:"Catch All" Exception In A Servlet jc

    Thanks, the problem was that it was not throwing and Exception that why it was not picked by a try{...} catch(Exception e).

    It was throwing an java.lang.Error (java.lang.VerifyError) so I was able to pick it up with
    try{...} catch(Throwable e).

  • RELEVANCY SCORE 2.37

    DB:2.37:Classnotfoundexception m7


    Hi

    I am trying to execute a servlet using Apache Tomcat.

    Classpath is set as D:\Tomcat5.0_eprofiler\common\lib\servlet-api.jar;.;

    Servlet code is

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;

    public class Ch1Servlet extends HttpServlet
    {
    public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException
    {
    PrintWriter out=response.getWriter();
    java.util.Date today=new java.util.Date();
    out.println("html " + "body " + "h1 align=centerHF\'s Chapter 1 Servlet/h1" + "br"+today + "/body" + "/html");

    }
    }

    Servlet file path is D:\kb\project1\WEB-INF\src\Ch1Servlet.java

    Tomcat is stored as D:\Tomcat5.0_eprofiler

    Web application containing servlet is stored as D:\Tomcat5.0_eprofiler\webapps\ch1

    web.xml is stored in ch1/WEB-INF as

    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
    web-app_2_4.xsd"
    version="2.4"
    servlet
    servlet-nameChapter 1 Servlet/servlet-name
    servlet-classCh1Servlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameChapter 1 Servlet/servlet-name
    url-pattern/Serv1/url-pattern
    /servlet-mapping
    /web-app

    Servlet compiles on setting the classpath.

    But on starting the Tomcat server then typing http://localhost:8080/ch1/Serv1 i get this error

    Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class Ch1Servlet or a class it depends on
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:534)

    root cause
    java.lang.ClassNotFoundException: Ch1Servlet
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:534)

    What is the cause of this error can anyone plz let me know?

    Regards,
    kb

    DB:2.37:Classnotfoundexception m7

    Are you sure the servlet is compiled and in the correct location?

  • RELEVANCY SCORE 2.37

    DB:2.37:Re: How To Construct A Faces Request From A Http Request? xp


    !-- Faces Servlet --
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup 1 /load-on-startup
    /servlet

    !-- Faces Servlet Mapping --
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping

    thanks for your help!

    DB:2.37:Re: How To Construct A Faces Request From A Http Request? xp

    Hello,
    I have a similar requirement.
    How do i get HttpServletRequest in a Managed Bean ?

  • RELEVANCY SCORE 2.36

    DB:2.36:Html Page Call Servlet Getting 404 Error kx


    I am new to Java and trying to code a simple html page to call a servlet. I am getting a 404 error when I hit submit on the html page. Code is below. I am not sure what I am doing wrong.

    web.xml

    web-app version="2.4" 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"
    display-nameFirst Tomcat site/display-name
    descriptionFirst Tomcat site/description
    !-- JSPC servlet mappings start --
    servlet
    servlet-nameFormProcessor/servlet-name
    servlet-classFormProcessor/servlet-class
    /servlet
    servlet-mapping
    servlet-nameFormProcessor/servlet-name
    url-pattern/LJ908/*/url-pattern
    /servlet-mapping
    !-- JSPC servlet mappings end --
    welcome-file-list
    welcome-fileformExample.htm/welcome-file
    /welcome-file-list
    /web-app

    formExample.htm

    body
    pForm Example Page/p
    form action="http://localhost:8080/LJ908/FormProcessor" method="get" name="frmExample" id="frmExample"
    p
    input name="txtName" type="text" id="txtName"
    /p
    p
    input type="submit" name="Submit" value="Submit"
    /p
    /form
    p/p
    /body

    FormProcessor.java

    public class FormProcessor extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{

    response.setContentType("text/html");

    PrintWriter out = response.getWriter();

    String dt = request.getParameter("txtName");
    out.println("html");
    out.println("titleForm Processor Result Servlet/title");
    out.println("head/head");
    out.println("body");
    out.println("pForm Processor Results/p");
    out.println("pValue from previous form: " + dt + "/p");
    out.println("/body");
    out.println("/html");
    } //end doGet
    } // end FormProcessor

    DB:2.36:Html Page Call Servlet Getting 404 Error kx

    I am new to Java and trying to code a simple html page to call a servlet. I am getting a 404 error when I hit submit on the html page. Code is below. I am not sure what I am doing wrong.

    web.xml

    web-app version="2.4" 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"
    display-nameFirst Tomcat site/display-name
    descriptionFirst Tomcat site/description
    !-- JSPC servlet mappings start --
    servlet
    servlet-nameFormProcessor/servlet-name
    servlet-classFormProcessor/servlet-class
    /servlet
    servlet-mapping
    servlet-nameFormProcessor/servlet-name
    url-pattern/LJ908/*/url-pattern
    /servlet-mapping
    !-- JSPC servlet mappings end --
    welcome-file-list
    welcome-fileformExample.htm/welcome-file
    /welcome-file-list
    /web-app

    formExample.htm

    body
    pForm Example Page/p
    form action="http://localhost:8080/LJ908/FormProcessor" method="get" name="frmExample" id="frmExample"
    p
    input name="txtName" type="text" id="txtName"
    /p
    p
    input type="submit" name="Submit" value="Submit"
    /p
    /form
    p/p
    /body

    FormProcessor.java

    public class FormProcessor extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{

    response.setContentType("text/html");

    PrintWriter out = response.getWriter();

    String dt = request.getParameter("txtName");
    out.println("html");
    out.println("titleForm Processor Result Servlet/title");
    out.println("head/head");
    out.println("body");
    out.println("pForm Processor Results/p");
    out.println("pValue from previous form: " + dt + "/p");
    out.println("/body");
    out.println("/html");
    } //end doGet
    } // end FormProcessor

  • RELEVANCY SCORE 2.36

    DB:2.36:Mapping Exceptions Help ( Newbie ) aj


    Hi,
    I cant seem to find out whats wrong with my code...
    what I need to happen is that the NumberTooLargeException error, which I created, when invoked make the errorpage.html appear.
    What is happening right now is that the default error page from the app server is appearing.

    the code is supposed to invoke the errorpage.html if the user inputs a number less than 1 or greater than 10.

    all the files are in the same package.

    listed below are my codes:
    --------------------------------------------
    LuckyGreeting.java (servlet )
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;

    public class LuckyGreeting extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    HttpSession session = request.getSession(true);
    ServletContext context = getServletContext();

    response.setContentType("text/html;charset=UTF-8");
    response.setBufferSize(8192);
    PrintWriter out = response.getWriter();
    out.println("html" + "headtitleLucky Numbers/title/head");
    out.println("body bgcolor=\"#ffffff\"" +
    "h2What is your lucky number??!! /h2" +
    "form method=\"get\"" +
    "input type=\"text\" name=\"luckynumber\" size=\"3\"" + "p/p" +
    "input type=\"submit\" value=\"submit\" name=\"submit\"" +
    "input type=\"reset\" value=\"reset\" name=\"reset\"" + "/form");

    String operation = request.getParameter("submit");
    String operations = request.getParameter("reset");

    int luckynumber=0;
    Counter count = new Counter();

    if("submit".equals(operation))
    {
    try{
    luckynumber = Integer.parseInt(request.getParameter("luckynumber"));

    } catch (NumberFormatException e)
    {

    }

    try{
    if((luckynumber 1) || (luckynumber 10))
    {
    throw new NumberTooLargeException();
    }
    else
    {

    if( session.getAttribute("c") == null )
    {
    count.setCounter(luckynumber);
    session.setAttribute("c", count);
    out.println("h2 First Session /h2");
    if(context.getAttribute("d") == null )
    {
    context.setAttribute("d", count);
    }
    }
    else
    {
    Counter c = (Counter)session.getAttribute("c");
    Counter d = (Counter)context.getAttribute("d");
    c.add(luckynumber);
    d.add(luckynumber);
    session.setAttribute("c", c);
    context.setAttribute("d", d);
    out.println("h2 Numbers Added /h2");
    }
    out.println("h2 Dispatcher is going out /h2");
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/LuckyResponse");

    if (dispatcher != null)
    dispatcher.include(request, response);
    }
    }catch(NumberTooLargeException n)
    {
    out.println("h2 NumberTooLargeException Caught /h2");
    throw new ServletException(n);
    // this should be invoking the errorpage.html
    }
    }

    if ("reset".equals(operations))
    {
    session.invalidate();
    out.println("h2 Session Invalidated /h2");
    }

    out.println("/body/html");
    out.close();

    }

    }---------------------
    NumberTooLargeException.java

    public class NumberTooLargeException extends Exception {
    public NumberTooLargeException() {
    }

    public NumberTooLargeException(String msg) {
    super(msg);
    }
    }------------------------
    errorpage.html

    html
    head
    titleServer Error/title
    /head
    body bgcolor="white"
    h2The number you entered is too big. Accepted range is from 1-10 only./h2
    /body
    /html-----------------------
    web.xml

    ?xml version="1.0" encoding="UTF-8"?
    web-app version="2.4" 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"
    servlet
    servlet-nameGreetingServlet/servlet-name
    servlet-classservlets.GreetingServlet/servlet-class
    /servlet
    servlet
    servlet-nameResponseServlet/servlet-name
    servlet-classservlets.ResponseServlet/servlet-class
    /servlet
    servlet
    servlet-nameLuckyGreeting/servlet-name
    servlet-classservlets.LuckyGreeting/servlet-class
    /servlet
    servlet
    servlet-nameLuckyResponse/servlet-name
    servlet-classservlets.LuckyResponse/servlet-class
    /servlet
    servlet-mapping
    servlet-nameGreetingServlet/servlet-name
    url-pattern/greeting/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameResponseServlet/servlet-name
    url-pattern/response/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameLuckyGreeting/servlet-name
    url-pattern/LuckyGreeting/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameLuckyResponse/servlet-name
    url-pattern/LuckyResponse/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
    error-page
    exception-typeservlets.NumberTooLargeException/exception-type
    location/errorpage.html/location
    /error-page
    /web-app

    DB:2.36:Mapping Exceptions Help ( Newbie ) aj

    Hi,
    I cant seem to find out whats wrong with my code...
    what I need to happen is that the NumberTooLargeException error, which I created, when invoked make the errorpage.html appear.
    What is happening right now is that the default error page from the app server is appearing.

    the code is supposed to invoke the errorpage.html if the user inputs a number less than 1 or greater than 10.

    all the files are in the same package.

    listed below are my codes:
    --------------------------------------------
    LuckyGreeting.java (servlet )
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;

    public class LuckyGreeting extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    HttpSession session = request.getSession(true);
    ServletContext context = getServletContext();

    response.setContentType("text/html;charset=UTF-8");
    response.setBufferSize(8192);
    PrintWriter out = response.getWriter();
    out.println("html" + "headtitleLucky Numbers/title/head");
    out.println("body bgcolor=\"#ffffff\"" +
    "h2What is your lucky number??!! /h2" +
    "form method=\"get\"" +
    "input type=\"text\" name=\"luckynumber\" size=\"3\"" + "p/p" +
    "input type=\"submit\" value=\"submit\" name=\"submit\"" +
    "input type=\"reset\" value=\"reset\" name=\"reset\"" + "/form");

    String operation = request.getParameter("submit");
    String operations = request.getParameter("reset");

    int luckynumber=0;
    Counter count = new Counter();

    if("submit".equals(operation))
    {
    try{
    luckynumber = Integer.parseInt(request.getParameter("luckynumber"));

    } catch (NumberFormatException e)
    {

    }

    try{
    if((luckynumber 1) || (luckynumber 10))
    {
    throw new NumberTooLargeException();
    }
    else
    {

    if( session.getAttribute("c") == null )
    {
    count.setCounter(luckynumber);
    session.setAttribute("c", count);
    out.println("h2 First Session /h2");
    if(context.getAttribute("d") == null )
    {
    context.setAttribute("d", count);
    }
    }
    else
    {
    Counter c = (Counter)session.getAttribute("c");
    Counter d = (Counter)context.getAttribute("d");
    c.add(luckynumber);
    d.add(luckynumber);
    session.setAttribute("c", c);
    context.setAttribute("d", d);
    out.println("h2 Numbers Added /h2");
    }
    out.println("h2 Dispatcher is going out /h2");
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/LuckyResponse");

    if (dispatcher != null)
    dispatcher.include(request, response);
    }
    }catch(NumberTooLargeException n)
    {
    out.println("h2 NumberTooLargeException Caught /h2");
    throw new ServletException(n);
    // this should be invoking the errorpage.html
    }
    }

    if ("reset".equals(operations))
    {
    session.invalidate();
    out.println("h2 Session Invalidated /h2");
    }

    out.println("/body/html");
    out.close();

    }

    }---------------------
    NumberTooLargeException.java

    public class NumberTooLargeException extends Exception {
    public NumberTooLargeException() {
    }

    public NumberTooLargeException(String msg) {
    super(msg);
    }
    }------------------------
    errorpage.html

    html
    head
    titleServer Error/title
    /head
    body bgcolor="white"
    h2The number you entered is too big. Accepted range is from 1-10 only./h2
    /body
    /html-----------------------
    web.xml

    ?xml version="1.0" encoding="UTF-8"?
    web-app version="2.4" 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"
    servlet
    servlet-nameGreetingServlet/servlet-name
    servlet-classservlets.GreetingServlet/servlet-class
    /servlet
    servlet
    servlet-nameResponseServlet/servlet-name
    servlet-classservlets.ResponseServlet/servlet-class
    /servlet
    servlet
    servlet-nameLuckyGreeting/servlet-name
    servlet-classservlets.LuckyGreeting/servlet-class
    /servlet
    servlet
    servlet-nameLuckyResponse/servlet-name
    servlet-classservlets.LuckyResponse/servlet-class
    /servlet
    servlet-mapping
    servlet-nameGreetingServlet/servlet-name
    url-pattern/greeting/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameResponseServlet/servlet-name
    url-pattern/response/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameLuckyGreeting/servlet-name
    url-pattern/LuckyGreeting/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameLuckyResponse/servlet-name
    url-pattern/LuckyResponse/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
    error-page
    exception-typeservlets.NumberTooLargeException/exception-type
    location/errorpage.html/location
    /error-page
    /web-app

  • RELEVANCY SCORE 2.36

    DB:2.36:Creating New Project Error 9c


    When attempting to create a new project, I receive "Exception occurred in Request Processor". Any ideas?

    DB:2.36:Creating New Project Error 9c

    I had NB 3.6 RC 2 installed and everything went fine.
    Maybe NB 3.6 beta has some bugs in the library, but I don't think that should affect Creator, since Creator has a completely separate set of modules. Therefore, I don't think (1) NB should be the problem and (2) updating to NB 3.6 RC 2 or RC 3 would solve the problem. I'm not an expert on these kinds of things, but I think the problem was caused elsewhere.

    Regards,
    - D.t.O

  • RELEVANCY SCORE 2.36

    DB:2.36:Ipayment Scheduler Close Error jf


    Oracle Apps dbas,

    We suddenly got the following error from our ipayment system batch job

    [022807_083745962][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
    exception occured for (payee id=110485,account id=110485,batch id=2363) Communication error. The payment system, the processor, or iPayment electronic commerce servlet is not available/accessible. Please make sure you have the correct system set up and resubmit the request at a later time.

    The Stack Trace is -
    oracle.apps.iby.exception.PSException: Communication error. The payment system, the processor, or iPayment electronic commerce servlet is not available/accessible. Please make sure you have the correct system set up and resubmit the request at a later time.
    at oracle.apps.iby.net.DeliveryEnvelopeFunction.parseResp(DeliveryEnvelopeFunction.java:357)

    It happened after I made some changes in jserv.properites based on the
    Oracle Support solution plan to troubleshoot another workflow diagram issue.
    I commented out the three in jserv.properities:

    $IAS_ORACLE_HOME/lib/http_client.jar
    $IAS_ORACLE_HOME/lib/jssl-1_1.jar
    $IAS_ORACLE_HOME/lib/javax-ssl-1_1.jar

    Is it any relationship between the two events?

    Thanks,

    Lily

    DB:2.36:Ipayment Scheduler Close Error jf

    Interesting. Some nights the payment scheduler works some nights it doesnt work with the same communication error.
    All the real-time CC authorization work fine.

    Is it possible that the paymentech server is too busy to handle this?
    But the verified that they received the files.

    Lily

  • RELEVANCY SCORE 2.36

    DB:2.36:Java.Net.Protocolexception: Server Redirected Too Many Time d7



    Hi All,please help mei am getting server redirect too many times(20) when i give wrong password. i am using client program to connect to servlet and then servlet to invoke bean.our archicture is swing client sends xml request to servlet and servlet invokes beans. the client sends request to servlet as URLConnection and gets reply by URLConnection.getInputStream(). i am using JAAS login module with J2EE security. please help me as i am facing this problem since long time.The exception i am getting is as followsjava.net.ProtocolException: Server redirected too many times (20)at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:581)Thanks in AdvanceLakshmi

    DB:2.36:Java.Net.Protocolexception: Server Redirected Too Many Time d7


    Hi All,please help mei am getting server redirect too many times(20) when i give wrong password. i am using client program to connect to servlet and then servlet to invoke bean.our archicture is swing client sends xml request to servlet and servlet invokes beans. the client sends request to servlet as URLConnection and gets reply by URLConnection.getInputStream(). i am using JAAS login module with J2EE security. please help me as i am facing this problem since long time.The exception i am getting is as followsjava.net.ProtocolException: Server redirected too many times (20)at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:581)Thanks in AdvanceLakshmi

  • RELEVANCY SCORE 2.36

    DB:2.36:Servlet Exception Propogation ap


    I have written a servlet that is invoked from a JSP. This servlet opens a database, reads in some data based on the users request, and closes the database. All this happens in the doPost method. I have added the ClassNotFoundException and SQLException declaratives to the list of throwable exceptions. When I compile this servlet, I get a message that the 'overridden method does not throw java.lang.ClassNotFoundException'. It appears that, since my doPost code can throw this error, the caller also needs to declare this exception. How can I do this?

    DB:2.36:Servlet Exception Propogation ap

    java.lang.ClassNotFoundException'. It appears that,
    since my doPost code can throw this error, the caller
    also needs to declare this exception. How can I do
    this?Because you extended HttpServlet you must override the doPost method exactly as it is in HttpServlet which means only throwing an IOException and a ServletException. To get around the fact that your code might throw exceptions other than those, you can do something like the following:
    public static void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
    try {
    // Your db code goes here
    }
    catch (ClassNotFoundException cnfe) {
    throw new ServletException(cnfe.getMessage());
    }
    catch (SQLException sqle) {
    throw new ServletException(sqle.getMessage());
    }
    }Hope that helps,
    --Bill

  • RELEVANCY SCORE 2.36

    DB:2.36:Problem Calling Class From Servlet 7x


    I need this program which calls a class that implments JMF to do server side processes so i cant use an applet.but i dont need the gui so i have removed the gui. im using a servlet to call the class and i have this error. Any ideas?

    Below is the vid2jpg code minus the gui.

    import java.io.*;
    import java.awt.*;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import java.awt.image.*;
    import javax.imageio.*;

    public class vid2jpg implements ControllerListener
    {
    Processor p;
    Object waitObj = new Object();
    boolean stateOK = true;
    DataSourceHandler handler;

    int imgWidth;int imgHeight;

    Image outputImage;
    String sep = System.getProperty("file.separator");

    int[] outvid;
    int startFr = 1;int endFr = 1000;int countFr = 0;
    boolean sunjava=true;

    /**
    * Static main method
    */
    public static void main(String[] args)
    {
    if(args.length == 0)
    {
    System.out.println("No media address.");
    new vid2jpg("file:///C:/Video/applications2/sun.mpg"); // or alternative "vfw://0" if webcam
    }
    else
    {
    String path = args[0].trim();
    System.out.println(path);
    new vid2jpg(path);
    }
    }

    /**
    * Constructor
    */
    public vid2jpg(String path)
    {
    MediaLocator ml;String args = path;

    if((ml = new MediaLocator(args)) == null)
    {
    System.out.println("Cannot build media locator from: " + args);
    }

    if(!open(ml))
    {
    System.out.println("Failed to open media source");
    }
    }

    /**
    * Given a MediaLocator, create a processor and start
    */
    private boolean open(MediaLocator ml)
    {
    System.out.println("Create processor for: " + ml);

    try
    {
    p = Manager.createProcessor(ml);
    }
    catch (Exception e)
    {
    System.out.println("Failed to create a processor from the given media source: " + e);
    return false;
    }

    p.addControllerListener(this);

    // Put the Processor into configured state.
    p.configure();
    if(!waitForState(p.Configured))
    {
    System.out.println("Failed to configure the processor.");
    return false;
    }

    // Get the raw output from the Processor.
    p.setContentDescriptor(new ContentDescriptor(ContentDescriptor.RAW));

    TrackControl tc[] = p.getTrackControls();
    if(tc == null)
    {
    System.out.println("Failed to obtain track controls from the processor.");
    return false;
    }

    TrackControl videoTrack = null;
    for(int i = 0; i tc.length; i++)
    {
    if(tc.getFormat() instanceof VideoFormat)
    {
    tc.setFormat(new RGBFormat(null, -1, Format.byteArray, -1.0F, 24, 3, 2, 1));
    videoTrack = tc;
    }
    else
    tc.setEnabled(false);
    }
    if(videoTrack == null)
    {
    System.out.println("The input media does not contain a video track.");
    return false;
    }
    System.out.println("Video format: " + videoTrack.getFormat());

    p.realize();
    if(!waitForState(p.Realized))
    {
    System.out.println("Failed to realize the processor.");
    return false;
    }

    // Get the output DataSource from the processor and set it to the DataSourceHandler.
    DataSource ods = p.getDataOutput();
    handler = new DataSourceHandler();
    try
    {
    handler.setSource(ods); // also determines image size
    }
    catch(IncompatibleSourceException e)
    {
    System.out.println("Cannot handle the output DataSource from the processor: " + ods);
    return false;
    }

    // setLayout(new FlowLayout(FlowLayout.LEFT));
    // currPanel = new imgPanel(new Dimension(imgWidth,imgHeight));
    // add(currPanel);
    // pack();
    //setLocation(100,100);
    // setVisible(true);

    handler.start();

    // Prefetch the processor.
    p.prefetch();

    if(!waitForState(p.Prefetched))
    {
    System.out.println("Failed to prefetch the processor.");
    return false;
    }

    // Start the processor
    //p.setStopTime(new Time(20.00));
    p.start();

    return true;
    }

    /**
    * Sets image size
    */
    private void imageProfile(VideoFormat vidFormat)
    {
    System.out.println("Push Format "+vidFormat);
    Dimension d = (vidFormat).getSize();
    System.out.println("Video frame size: "+ d.width+"x"+d.height);
    imgWidth=d.width;
    imgHeight=d.height;
    }

    /**
    * Called on each new frame buffer
    */
    int nextframetime = 0;
    private void useFrameData(Buffer inBuffer)
    {

    try
    {

    if(inBuffer.getData()!=null) // vfw://0 can deliver nulls
    {

    if(sunjava) // and with import javax.imageio.*;
    {
    int frametimesecs = (int)(inBuffer.getTimeStamp()/1000000000);

    if(frametimesecs%10 == 0 frametimesecs==nextframetime)
    {
    nextframetime+=10;

    BufferedImage bi = new BufferedImage(outputImage.getWidth(null), outputImage.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics g = bi.getGraphics();

    ImageIO.write(bi, "png", new File("images"+sep+"image_"+(inBuffer.getTimeStamp()/1000000000)+".png"));
    }
    }
    }
    }
    catch(Exception e){}
    }

    /**
    * Tidy on finish
    */
    public void tidyClose()
    {
    handler.close();
    p.close();

    }

    /**
    * Block until the processor has transitioned to the given state
    */
    private boolean waitForState(int state)
    {
    synchronized(waitObj)
    {
    try
    {
    while(p.getState() state stateOK)
    waitObj.wait();
    }
    catch (Exception e)
    {
    }
    }
    return stateOK;
    }

    /**
    * Controller Listener.
    */
    public void controllerUpdate(ControllerEvent evt)
    {
    if(evt instanceof ConfigureCompleteEvent || evt instanceof RealizeCompleteEvent || evt instanceof PrefetchCompleteEvent)
    {
    synchronized(waitObj)
    {
    stateOK = true;
    waitObj.notifyAll();
    }
    }
    else
    if(evt instanceof ResourceUnavailableEvent)
    {
    synchronized(waitObj)
    {
    stateOK = false;
    waitObj.notifyAll();
    }
    }
    else
    if(evt instanceof EndOfMediaEvent || evt instanceof StopAtTimeEvent)
    {
    tidyClose();
    }
    }

    /***************************************************
    * Inner classes
    ***************************************************/

    /**
    * A DataSourceHandler class to read from a DataSource and displays
    * information of each frame of data received.
    */
    class DataSourceHandler implements BufferTransferHandler
    {
    DataSource source;
    PullBufferStream pullStrms[] = null;
    PushBufferStream pushStrms[] = null;
    Buffer readBuffer;

    /**
    * Sets the media source this MediaHandler should use to obtain content.
    */
    private void setSource(DataSource source) throws IncompatibleSourceException
    {
    // Different types of DataSources need to handled differently.
    if(source instanceof PushBufferDataSource)
    {
    pushStrms = ((PushBufferDataSource) source).getStreams();

    // Set the transfer handler to receive pushed data from the push DataSource.
    pushStrms[0].setTransferHandler(this);

    // Set image size
    imageProfile((VideoFormat)pushStrms[0].getFormat());
    }
    else
    if(source instanceof PullBufferDataSource)
    {
    System.out.println("PullBufferDataSource!");

    // This handler only handles push buffer datasource.
    throw new IncompatibleSourceException();
    }

    this.source = source;
    readBuffer = new Buffer();
    }

    /**
    * This will get called when there's data pushed from the PushBufferDataSource.
    */
    public void transferData(PushBufferStream stream)
    {
    try
    {
    stream.read(readBuffer);
    }
    catch(Exception e)
    {
    System.out.println(e);
    return;
    }

    // Just in case contents of data object changed by some other thread
    Buffer inBuffer = (Buffer)(readBuffer.clone());

    // Check for end of stream
    if(readBuffer.isEOM())
    {
    System.out.println("End of stream");
    return;
    }

    // Do useful stuff or wait
    useFrameData(inBuffer);
    }

    public void start()
    {
    try{source.start();}catch(Exception e){System.out.println(e);}
    }

    public void stop()
    {
    try{source.stop();}catch(Exception e){System.out.println(e);}
    }

    public void close(){stop();}

    public Object[] getControls()
    {
    return new Object[0];
    }

    public Object getControl(String name)
    {
    return null;
    }
    }

    }
    below is the servlet code.

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;

    public class ShowMovie extends HttpServlet {

    String rootURL="http://127.0.0.1:8080/Video/";

    public void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    //String movie=request.getParameter("movie");
    String movie ="son";
    getStart(movie);
    response.sendRedirect(rootURL+"View.jsp");

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    public void getStart(String url){
    new vid2jpg(url);
    }
    }

    this is the error from the server. Im using tomkat 5

    exception

    javax.servlet.ServletException: Servlet execution threw an exception

    root cause

    java.lang.NoClassDefFoundError: javax/media/ControllerListener
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknown Source)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
    java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ShowMovie.getStart(ShowMovie.java:31)
    ShowMovie.processRequest(ShowMovie.java:14)
    ShowMovie.doGet(ShowMovie.java:22)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

    and also, the class files as well as the source files of the servlet and vid2jpg are in the WEB-INF/classes/ folder.

    DB:2.36:Problem Calling Class From Servlet 7x

    Ok andrew, well the situation is this. there's this device called the cisco ip phone that doesnt have video api. The developers wanted it to be cheap so they left out the video api.

    But now my client wants to be able view feed from a cam ultimately.Since it doesnt have video api, i had previously needed to grab one frame every 10 seconds from a clip although eventually from testing with a file i would have to capture the stream. SO in order for the display to mimic a video at least, i now need to automatically update the pictures i have grabbed from the video. so i start by displaying one image and code it so it automatically refreshed in 2 secs
    to the next image. until each of the 10th second image is shown.This quick refreshing makes it seem like its actually a live stream. but this ip phone device can only recognise jsp files. Hence the use of the servlet .

    And thats the whole story.

  • RELEVANCY SCORE 2.36

    DB:2.36:Httpclusterservlet Proxy Plugin Problem - Weblogic Express 10 87


    Hi,

    I am using Weblogic Express 10 version. I am trying to configure HttpClusterServelet in one of my test machine.

    I have a Admin server and 3 Managed servers which are part of clusters. I have a test war file which is deployed on to the cluster.

    I am able to open the test war file application by hitting Managed servers URL's Port no's

    for eg: http://hostname:portno/testapp

    Now I have created a war file with httpclusterserver features and deployed it to Admin server. (created web.xml weblogic.xml inside WEB-INF directory and built it as war file and deployed it to Admin server)

    so practically whenever I hit the Admin server URL my request should be proxied to one of the three Managed server which are part of the cluster

    But when I try to open the application through admin server hostname and port no, I get below 403 exception on browser

    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden

    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

    Below is the content of my web.xml weblogic.xml war file

    web.xml

    -bash-3.00$ more web.xml
    !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-nameHttpClusterServlet/servlet-name
    servlet-class
    weblogic.servlet.proxy.HttpClusterServlet
    /servlet-class

    init-param
    param-nameWebLogicCluster/param-name
    param-value
    ManagedSrv1_Hostname:PortNo|ManagedSrv2_Hostname:PortNo|ManagedSrv3_Hostname:PortNo
    /param-value
    /init-param

    /servlet

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern//url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern*.jsp/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern*.htm/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern*.html/url-pattern
    /servlet-mapping

    /web-app

    weblogic.xml

    !DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/
    weblogic 810-web-jar.dtd"
    weblogic-web-app
    context-root//context-root
    /weblogic-web-app

    Kindly advise on this problem.

    - - Weblogic Consultant

    DB:2.36:Httpclusterservlet Proxy Plugin Problem - Weblogic Express 10 87

    Hi,

    I am using Weblogic Express 10 version. I am trying to configure HttpClusterServelet in one of my test machine.

    I have a Admin server and 3 Managed servers which are part of clusters. I have a test war file which is deployed on to the cluster.

    I am able to open the test war file application by hitting Managed servers URL's Port no's

    for eg: http://hostname:portno/testapp

    Now I have created a war file with httpclusterserver features and deployed it to Admin server. (created web.xml weblogic.xml inside WEB-INF directory and built it as war file and deployed it to Admin server)

    so practically whenever I hit the Admin server URL my request should be proxied to one of the three Managed server which are part of the cluster

    But when I try to open the application through admin server hostname and port no, I get below 403 exception on browser

    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden

    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

    Below is the content of my web.xml weblogic.xml war file

    web.xml

    -bash-3.00$ more web.xml
    !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-nameHttpClusterServlet/servlet-name
    servlet-class
    weblogic.servlet.proxy.HttpClusterServlet
    /servlet-class

    init-param
    param-nameWebLogicCluster/param-name
    param-value
    ManagedSrv1_Hostname:PortNo|ManagedSrv2_Hostname:PortNo|ManagedSrv3_Hostname:PortNo
    /param-value
    /init-param

    /servlet

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern//url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern*.jsp/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern*.htm/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameHttpClusterServlet/servlet-name
    url-pattern*.html/url-pattern
    /servlet-mapping

    /web-app

    weblogic.xml

    !DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/
    weblogic 810-web-jar.dtd"
    weblogic-web-app
    context-root//context-root
    /weblogic-web-app

    Kindly advise on this problem.

    - - Weblogic Consultant

  • RELEVANCY SCORE 2.35

    DB:2.35:Crystal Report Display Problem--Urgent 8x


    i am trying to display to display crystal report in jsp page..
    i have mentioned the entries in web.xml as below
    env-entry
    env-entry-nameclientSDKOptions/env-entry-name
    env-entry-valueC:\ProgramFiles\Common Files\Crystal Decisions\2.0\jars\clientSDKOptions.xml/env-entry-value
    env-entry-typejava.lang.String/env-entry-type
    /env-entry
    env-entry
    env-entry-namecrystal_image_uri/env-entry-name
    env-entry-value/crystalWeb/crystalreportviewers//env-entry-value
    env-entry-typejava.lang.String/env-entry-type
    /env-entry

    crystalWeb is webproject folder.

    waiting for an earlier response.

    thanks to all
    krish..

    [11/05/04 11:01:33:164 GMT+08:00] 41c3089e WebGroup I SRVE0180I: [crystalWeb] [crystalWeb] [Servlet.LOG]: /CrystalReportsInteractiveViewer.jsp: init
    [11/05/04 11:01:40:404 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/css/default.css has not been defined
    [11/05/04 11:01:40:444 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/js/search.js has not been defined
    [11/05/04 11:01:40:515 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/js/fw_menu.js has not been defined
    [11/05/04 11:01:40:525 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mlogo.gif has not been defined
    [11/05/04 11:01:40:555 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mviewlist.gif has not been defined
    [11/05/04 11:01:40:575 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mfirstgrey.gif has not been defined
    [11/05/04 11:01:40:585 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprevgrey.gif has not been defined
    [11/05/04 11:01:40:595 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mnextgrey.gif has not been defined
    [11/05/04 11:01:40:655 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprevgrey.gif has not been defined
    [11/05/04 11:01:40:675 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mgotopage.gif has not been defined
    [11/05/04 11:01:40:685 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mexport.gif has not been defined
    [11/05/04 11:01:40:655 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mfirstgrey.gif has not been defined
    [11/05/04 11:01:41:015 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/msearch.gif has not been defined
    [11/05/04 11:01:41:045 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprint.gif has not been defined
    [11/05/04 11:01:41:055 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mzoom.gif has not been defined
    [11/05/04 11:01:41:065 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelp.gif has not been defined
    [11/05/04 11:01:41:015 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mlastgrey.gif has not been defined
    [11/05/04 11:02:21:463 GMT+08:00] 20668882 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelpover.gif has not been defined
    [11/05/04 11:02:25:940 GMT+08:00] 20668882 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelp.gif has not been defined

    DB:2.35:Crystal Report Display Problem--Urgent 8x

    Possibly it's a path problem try to rewrite env-entry-value for clientSDKOptions with either double backslashes or simple slashe.

    Furthermore the blanks in the path migth be a reason for your problem.

    David

  • RELEVANCY SCORE 2.35

    DB:2.35:Regarding A Jsf Application 17


    hi

    I have downloaded a sample JSF application from the net.
    I wanted to run it on WSAD.
    The version of WSAD is 5.1.2
    If i am trying to run that JSF application on WSAD.
    But as i start that application on server, the server is shwing the following error.
    "Servlet Request Processor Exception: Virtual Host/WebGroup Not Found"
    Please let me know if the WSAD 5.1.2 supports a JSF application.

    I have all the jars required for that application.

    DB:2.35:Regarding A Jsf Application 17

    Of course it supports the app. But you need to configure WSAD so that it knows where things are, etc. Unfortunately, this forum isn't the best place for questions like this.

  • RELEVANCY SCORE 2.35

    DB:2.35:Javaxfaces Exception During Deploy Of A Simple App da


    Hi guys I've a problem during the deploy of a simple webapp on weblogic server 10.3.5.
    The application is a simple HelloWorld example and works fine on GlassFish. Below i describe the following informations:
    - maven pom descriptor;
    - web xml descriptor;
    - the exception that I receive during the deploy.

    Please help me Thanks a lots...

    -----

    web.xml

    ?xml version="1.0" encoding="UTF-8"?
    web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5"

    display-nameJavaServerFaces/display-name

    context-param
    param-namejavax.faces.PROJECT_STAGE/param-name
    param-valueDevelopment/param-value
    /context-param

    welcome-file-list
    welcome-filefaces/index.xhtml/welcome-file
    /welcome-file-list

    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet

    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.jsf/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.xhtml/url-pattern
    /servlet-mapping

    /web-app

    -----

    pom.xml

    project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"

    modelVersion4.0.0/modelVersion
    groupIdit.example/groupId
    artifactIdSayHelloWorld/artifactId
    packagingwar/packaging
    version0.0.1-SNAPSHOT/version
    nameSayHelloWorld Maven Webapp/name
    urlhttp://maven.apache.org/url

    dependencies

    dependency
    groupIdjavax.faces/groupId
    artifactIdjsf-api/artifactId
    version2.1/version
    /dependency

    dependency
    groupIdjavax.el/groupId
    artifactIdel-api/artifactId
    version2.2/version
    /dependency

    /dependencies

    build
    finalNameSayHelloWorld/finalName
    /build

    /project

    -----

    May 15, 2012 11:24:27 AM CEST Error HTTP BEA-101371 There was a failure when processing annotations for application /oracle/user_projects/domains/lab_domain/servers/lab_server_2/stage/SayHelloWorld/SayHelloWorld.war. Please make sure that the annotations are valid. The error is Class bytes found but defineClass()failed for: 'javax.faces.webapp.FacesServlet'
    May 15, 2012 11:24:27 AM CEST Error Deployer BEA-149265 Failure occurred in the execution of deployment request with ID '1336756555720' for task '13'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'SayHelloWorld.war''
    weblogic.application.ModuleException: Failed to load webapp: 'SayHelloWorld.war'
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:518)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassFormatError: javax/faces/webapp/FacesServlet : Missing Code attribute
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
    Truncated. see log file for complete stacktrace

    DB:2.35:Javaxfaces Exception During Deploy Of A Simple App da

    Hi guys I've a problem during the deploy of a simple webapp on weblogic server 10.3.5.
    The application is a simple HelloWorld example and works fine on GlassFish. Below i describe the following informations:
    - maven pom descriptor;
    - web xml descriptor;
    - the exception that I receive during the deploy.

    Please help me Thanks a lots...

    -----

    web.xml

    ?xml version="1.0" encoding="UTF-8"?
    web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5"

    display-nameJavaServerFaces/display-name

    context-param
    param-namejavax.faces.PROJECT_STAGE/param-name
    param-valueDevelopment/param-value
    /context-param

    welcome-file-list
    welcome-filefaces/index.xhtml/welcome-file
    /welcome-file-list

    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet

    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.jsf/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.faces/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern*.xhtml/url-pattern
    /servlet-mapping

    /web-app

    -----

    pom.xml

    project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"

    modelVersion4.0.0/modelVersion
    groupIdit.example/groupId
    artifactIdSayHelloWorld/artifactId
    packagingwar/packaging
    version0.0.1-SNAPSHOT/version
    nameSayHelloWorld Maven Webapp/name
    urlhttp://maven.apache.org/url

    dependencies

    dependency
    groupIdjavax.faces/groupId
    artifactIdjsf-api/artifactId
    version2.1/version
    /dependency

    dependency
    groupIdjavax.el/groupId
    artifactIdel-api/artifactId
    version2.2/version
    /dependency

    /dependencies

    build
    finalNameSayHelloWorld/finalName
    /build

    /project

    -----

    May 15, 2012 11:24:27 AM CEST Error HTTP BEA-101371 There was a failure when processing annotations for application /oracle/user_projects/domains/lab_domain/servers/lab_server_2/stage/SayHelloWorld/SayHelloWorld.war. Please make sure that the annotations are valid. The error is Class bytes found but defineClass()failed for: 'javax.faces.webapp.FacesServlet'
    May 15, 2012 11:24:27 AM CEST Error Deployer BEA-149265 Failure occurred in the execution of deployment request with ID '1336756555720' for task '13'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'SayHelloWorld.war''
    weblogic.application.ModuleException: Failed to load webapp: 'SayHelloWorld.war'
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:393)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:518)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassFormatError: javax/faces/webapp/FacesServlet : Missing Code attribute
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:343)
    Truncated. see log file for complete stacktrace

  • RELEVANCY SCORE 2.35

    DB:2.35:Migration Wsad To Jboss But Cannot Find Facescontext,Please Help cd


    this is my error
    avax.servlet.ServletException: Cannot find FacesContext
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    org.apache.jsp.Agenda.AgensaMain_jsp._jspService(org.apache.jsp.Agenda.AgensaMain_jsp:387)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:320)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

    root cause

    javax.servlet.jsp.JspException: Cannot find FacesContext
    javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:399)
    org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71)
    org.apache.jsp.Agenda.AgensaMain_jsp._jspService(org.apache.jsp.Agenda.AgensaMain_jsp:222)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:320)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
    com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)this is my web.xml:
    ?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 id="WebApp"
    display-nameClientWeb/display-name

    filter
    filter-namesitemesh/filter-name
    filter-classcom.opensymphony.module.sitemesh.filter.PageFilter/filter-class
    init-param
    param-namedebug.pagewriter/param-name
    param-valuetrue/param-value
    /init-param
    /filter
    !--
    filter
    filter-nameFiltroAccessi/filter-name
    display-nameFiltroAccessi/display-name
    filter-classfiltriPackage.FiltroAccessi/filter-class
    init-param
    param-namelogin_page/param-name
    param-value/LoginLegale.html/param-value
    /init-param
    init-param
    param-namedatabase/param-name
    param-value//localhost/Davide1/param-value
    /init-param
    init-param
    param-namedriver/param-name
    param-valuecom.sap.dbtech.jdbc.DriverSapDB/param-value
    /init-param
    init-param
    param-nameurl/param-name
    param-valuejdbc:sapdb:/param-value
    /init-param
    init-param
    param-nameuser/param-name
    param-valuedba/param-value
    /init-param
    init-param
    param-namepassword/param-name
    param-valuedba/param-value
    /init-param
    /filter
    --
    filter-mapping
    filter-namesitemesh/filter-name
    url-pattern/*/url-pattern
    /filter-mapping
    !--
    filter-mapping
    filter-nameFiltroAccessi/filter-name
    url-pattern/*/url-pattern
    /filter-mapping
    --
    listener
    listener-classcom.sun.faces.config.ConfigureListener/listener-class
    /listener

    servlet
    servlet-nameLoginServlet/servlet-name
    display-nameLoginServlet/display-name
    servlet-classinitPackage.LoginServlet/servlet-class
    init-param
    param-namedatabase/param-name
    param-value//localhost/Davide1/param-value
    /init-param
    init-param
    param-namedriver/param-name
    param-valuecom.sap.dbtech.jdbc.DriverSapDB/param-value
    /init-param
    init-param
    param-nameurl/param-name
    param-valuejdbc:sapdb:/param-value
    /init-param
    init-param
    param-nameuser/param-name
    param-valuedba/param-value
    /init-param
    init-param
    param-namepassword/param-name
    param-valuedba/param-value
    /init-param
    /servlet
    servlet
    servlet-nameElencoPraticheServlet/servlet-name
    display-nameElencoPraticheServlet/display-name
    servlet-classinitPackage.ElencoPraticheServlet/servlet-class
    /servlet
    servlet
    servlet-nameElencoAnagrafeServlet/servlet-name
    display-nameElencoAnagrafeServlet/display-name
    servlet-classinitPackage.ElencoAnagrafeServlet/servlet-class
    /servlet
    servlet
    servlet-namePraticaSceltaServlet/servlet-name
    display-namePraticaSceltaServlet/display-name
    servlet-classinitPackage.PraticaSceltaServlet/servlet-class
    /servlet
    servlet
    servlet-nameResetDatiServlet/servlet-name
    display-nameResetDatiServlet/display-name
    servlet-classinitPackage.ResetDatiServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestionePartiServlet/servlet-name
    display-nameGestionePartiServlet/display-name
    servlet-classgestioneSezioniServlet.GestionePartiServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneAnagrafeServlet/servlet-name
    display-nameGestioneAnagrafeServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneAnagrafeServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneGeneraleServlet/servlet-name
    display-nameGestioneGeneraleServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneGeneraleServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneImpegniServlet/servlet-name
    display-nameGestioneImpegniServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneImpegniServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneEconomicoServlet/servlet-name
    display-nameGestioneEconomicoServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneEconomicoServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneParcelleServlet/servlet-name
    display-nameGestioneParcelleServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneParcelleServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneRivalutazioniServlet/servlet-name
    display-nameGestioneRivalutazioniServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneRivalutazioniServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneAttiServlet/servlet-name
    display-nameGestioneAttiServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneAttiServlet/servlet-class
    /servlet
    servlet
    servlet-nameGestioneAgendaServlet/servlet-name
    display-nameGestioneAgendaServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneAgendaServlet/servlet-class
    /servlet
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    /servlet
    servlet
    servlet-nameJS Resource Servlet/servlet-name
    servlet-classcom.ibm.faces.webapp.JSResourceServlet/servlet-class
    load-on-startup-1/load-on-startup
    /servlet
    servlet
    servlet-nameFiltroAccessi/servlet-name
    display-nameFiltroAccessi/display-name
    servlet-classfiltriPackage.FiltroAccessi/servlet-class
    /servlet

    servlet
    servlet-nameUtil.AnalProduttivita/servlet-name
    display-nameUtil.AnalProduttivita/display-name
    jsp-file/Utilita/Util.AnalProduttivita.jsp/jsp-file
    /servlet
    servlet
    servlet-nameUtil.Anag_StudioTableADD/servlet-name
    display-nameUtil.Anag_StudioTableADD/display-name
    jsp-file/Utilita/Util.Anag_StudioTableADD.jsp/jsp-file
    /servlet

    servlet
    servlet-nameUtil.Anag_InvioMsg/servlet-name
    display-nameUtil.Anag_InvioMsg/display-name
    jsp-file/Utilita/Util.Anag_InvioMsg.jsp/jsp-file
    /servlet

    servlet
    servlet-nameUtil.Anag_InvioMsgTABLE/servlet-name
    display-nameUtil.Anag_InvioMsgTABLE/display-name
    jsp-file/Utilita/Util.Anag_InvioMsgTABLE.jsp/jsp-file
    /servlet
    servlet
    servlet-nameUtil.Anag_InvioMsgRIF/servlet-name
    display-nameUtil.Anag_InvioMsgRIF/display-name
    jsp-file/Utilita/Util.Anag_InvioMsgRIF.jsp/jsp-file
    /servlet
    servlet
    servlet-nameUtil.Anag_InvioMsgRIFADD/servlet-name
    display-nameUtil.Anag_InvioMsgRIFADD/display-name
    jsp-file/Utilita/Util.Anag_InvioMsgRIFADD.jsp/jsp-file
    /servlet
    servlet
    servlet-nameUtil.Anag_InvioMsgTABLEADD/servlet-name
    display-nameUtil.Anag_InvioMsgTABLEADD/display-name
    jsp-file/Utilita/Util.Anag_InvioMsgTABLEADD.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.CatImpegni/servlet-name
    display-nameTabelle.CatImpegni/display-name
    jsp-file/Tabelle/Tabelle.CatImpegni.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.AutoMessaggi/servlet-name
    display-nameTabelle.AutoMessaggi/display-name
    jsp-file/Tabelle/Tabelle.AutoMessaggi.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.AutoMessaggiADD/servlet-name
    display-nameTabelle.AutoMessaggiADD/display-name
    jsp-file/Tabelle/Tabelle.AutoMessaggiADD.jsp/jsp-file
    /servlet

    servlet
    servlet-nameTabelle.CatImpegniADD/servlet-name
    display-nameTabelle.CatImpegniADD/display-name
    jsp-file/Tabelle/Tabelle.CatImpegniADD.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.Autorita/servlet-name
    display-nameTabelle.Autorita/display-name
    jsp-file/Tabelle/Tabelle.Autorita.jsp/jsp-file
    /servlet
    servlet
    servlet-nameSmistaCatImp/servlet-name
    display-nameSmistaCatImp/display-name
    servlet-classsmista.SmistaCatImp/servlet-class
    /servlet
    servlet
    servlet-nameSmistaRiferimento/servlet-name
    display-nameSmistaRiferimento/display-name
    servlet-classsmista.SmistaRiferimento/servlet-class
    /servlet
    servlet
    servlet-nameSmistaAnagStudio/servlet-name
    display-nameSmistaAnagStudio/display-name
    servlet-classsmista.SmistaAnagStudio/servlet-class
    /servlet
    servlet
    servlet-nameSmistaAnagrafe/servlet-name
    display-nameSmistaAnagrafe/display-name
    servlet-classsmista.SmistaAnagrafe/servlet-class
    /servlet
    servlet
    servlet-nameSmistaAutorita/servlet-name
    display-nameSmistaAutorita/display-name
    servlet-classsmista.SmistaAutorita/servlet-class
    /servlet
    servlet
    servlet-nameTabelle.Onorari/servlet-name
    display-nameTabelle.Onorari/display-name
    jsp-file/Tabelle/Tabelle.Onorari.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.Diritti/servlet-name
    display-nameTabelle.Diritti/display-name
    jsp-file/Tabelle/Tabelle.Diritti.jsp/jsp-file
    /servlet
    servlet
    servlet-nameSmistaOnorari/servlet-name
    display-nameSmistaOnorari/display-name
    servlet-classsmista.SmistaOnorari/servlet-class
    /servlet
    servlet
    servlet-nameSmistaDiritti/servlet-name
    display-nameSmistaDiritti/display-name
    servlet-classsmista.SmistaDiritti/servlet-class
    /servlet
    servlet
    servlet-nameAnagStudioDaCercare/servlet-name
    display-nameAnagStudioDaCercare/display-name
    jsp-file/Utilita/AnagStudioDaCercare.jsp/jsp-file
    /servlet
    servlet
    servlet-nameAnagStudioResult/servlet-name
    display-nameAnagStudioResult/display-name
    jsp-file/Utilita/AnagStudioResult.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.AutoritaADD/servlet-name
    display-nameTabelle.AutoritaADD/display-name
    jsp-file/Tabelle/Tabelle.AutoritaADD.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.Tariffe/servlet-name
    display-nameTabelle.Tariffe/display-name
    jsp-file/Tabelle/Tabelle.Tariffe.jsp/jsp-file
    /servlet
    servlet
    servlet-nameSmistaTariffe/servlet-name
    display-nameSmistaTariffe/display-name
    servlet-classsmista.SmistaTariffe/servlet-class
    /servlet
    servlet
    servlet-nameTabelle.CatImpegniDaCercare/servlet-name
    display-nameTabelle.CatImpegniDaCercare/display-name
    jsp-file/Tabelle/Tabelle.CatImpegniDaCercare.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.CatImpegniResult/servlet-name
    display-nameTabelle.CatImpegniResult/display-name
    jsp-file/Tabelle/Tabelle.CatImpegniResult.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.ScadDer/servlet-name
    display-nameTabelle.ScadDer/display-name
    jsp-file/Tabelle/Tabelle.ScadDer.jsp/jsp-file
    /servlet
    servlet
    servlet-nameSmistaScadDer/servlet-name
    display-nameSmistaScadDer/display-name
    servlet-classsmista.SmistaScadDer/servlet-class
    /servlet
    servlet
    servlet-nameTabelle.ScadDerADD/servlet-name
    display-nameTabelle.ScadDerADD/display-name
    jsp-file/Tabelle/Tabelle.ScadDerADD.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.ScadDerDaCercare/servlet-name
    display-nameTabelle.ScadDerDaCercare/display-name
    jsp-file/Tabelle/Tabelle.ScadDerDaCercare.jsp/jsp-file
    /servlet
    servlet
    servlet-nameTabelle.ScadDerResult/servlet-name
    display-nameTabelle.ScadDerResult/display-name
    jsp-file/Tabelle/Tabelle.ScadDerResult.jsp/jsp-file
    /servlet
    servlet
    servlet-nameSmistaAutoMessaggi/servlet-name
    display-nameSmistaAutoMessaggi/display-name
    servlet-classsmista.SmistaAutoMessaggi/servlet-class
    /servlet
    servlet
    servlet-nameSmistaActionTable/servlet-name
    display-nameSmistaActionTable/display-name
    servlet-classsmista.SmistaActionTable/servlet-class
    /servlet
    servlet
    servlet-nameJFreeReportPDFServlet/servlet-name
    display-nameJFreeReportPDFServlet/display-name
    servlet-classutility.JFreeReportPDFServlet/servlet-class
    /servlet
    servlet
    servlet-nameSmistaAgenda/servlet-name
    display-nameSmistaAgenda/display-name
    servlet-classsmista.SmistaAgenda/servlet-class
    /servlet
    servlet
    servlet-nameSmistaPratiche/servlet-name
    display-nameSmistaPratiche/display-name
    servlet-classsmista.SmistaPratiche/servlet-class
    /servlet
    servlet
    servlet-nameGestioneRivDettServlet/servlet-name
    display-nameGestioneRivDettServlet/display-name
    servlet-classgestioneSezioniServlet.GestioneRivDettServlet/servlet-class
    /servlet
    servlet
    servlet-nameSmistaDominus/servlet-name
    display-nameSmistaDominus/display-name
    servlet-classsmista.SmistaDominus/servlet-class
    /servlet
    servlet
    servlet-nameSmistaOggettiPratiche/servlet-name
    display-nameSmistaOggettiPratiche/display-name
    servlet-classsmista.SmistaOggettiPratiche/servlet-class
    /servlet
    servlet
    servlet-nameStampaRivalutazioni/servlet-name
    display-nameStampaRivalutazioni/display-name
    servlet-classgestioneSezioniServlet.StampaRivalutazioni/servlet-class
    /servlet
    servlet
    servlet-nameSmistaAtti/servlet-name
    display-nameSmistaAtti/display-name
    servlet-classsmista.SmistaAtti/servlet-class
    /servlet
    servlet
    servlet-nameCSVServlet/servlet-name
    display-nameCSVServlet/display-name
    servlet-classutility.CSVServlet/servlet-class
    /servlet
    servlet
    servlet-nameSmistaLegali/servlet-name
    display-nameSmistaLegali/display-name
    servlet-classsmista.SmistaLegali/servlet-class
    /servlet

    servlet-mapping
    servlet-nameLoginServlet/servlet-name
    url-pattern/LoginServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameElencoPraticheServlet/servlet-name
    url-pattern/ElencoPraticheServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameElencoAnagrafeServlet/servlet-name
    url-pattern/ElencoAnagrafeServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-namePraticaSceltaServlet/servlet-name
    url-pattern/PraticaSceltaServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameResetDatiServlet/servlet-name
    url-pattern/ResetDatiServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestionePartiServlet/servlet-name
    url-pattern/GestionePartiServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneAnagrafeServlet/servlet-name
    url-pattern/GestioneAnagrafeServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneGeneraleServlet/servlet-name
    url-pattern/GestioneGeneraleServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneImpegniServlet/servlet-name
    url-pattern/GestioneImpegniServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneEconomicoServlet/servlet-name
    url-pattern/GestioneEconomicoServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneParcelleServlet/servlet-name
    url-pattern/GestioneParcelleServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneRivalutazioniServlet/servlet-name
    url-pattern/GestioneRivalutazioniServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneAttiServlet/servlet-name
    url-pattern/GestioneAttiServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneAgendaServlet/servlet-name
    url-pattern/GestioneAgendaServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameUtil.Anag_StudioTableADD/servlet-name
    url-pattern/Util.Anag_StudioTableADD/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameJS Resource Servlet/servlet-name
    url-pattern/.ibmjsfres/*/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameUtil.Anag_InvioMsg/servlet-name
    url-pattern/Util.Anag_InvioMsg/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameUtil.Anag_InvioMsgTABLE/servlet-name
    url-pattern/Util.Anag_InvioMsgTABLE/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameUtil.Anag_InvioMsgRIF/servlet-name
    url-pattern/Util.Anag_InvioMsgRIF/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameUtil.Anag_InvioMsgRIFADD/servlet-name
    url-pattern/Util.Anag_InvioMsgRIFADD/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameUtil.Anag_InvioMsgTABLEADD/servlet-name
    url-pattern/Util.Anag_InvioMsgTABLEADD/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.CatImpegni/servlet-name
    url-pattern/Tabelle.CatImpegni/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.CatImpegniADD/servlet-name
    url-pattern/Tabelle.CatImpegniADD/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.Autorita/servlet-name
    url-pattern/Tabelle.Autorita/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaCatImp/servlet-name
    url-pattern/SmistaCatImp/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaRiferimento/servlet-name
    url-pattern/SmistaRiferimento/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaAnagStudio/servlet-name
    url-pattern/SmistaAnagStudio/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaAnagrafe/servlet-name
    url-pattern/SmistaAnagrafe/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaAutorita/servlet-name
    url-pattern/SmistaAutorita/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.Onorari/servlet-name
    url-pattern/Tabelle.Onorari/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.Diritti/servlet-name
    url-pattern/Tabelle.Diritti/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaOnorari/servlet-name
    url-pattern/SmistaOnorari/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaDiritti/servlet-name
    url-pattern/SmistaDiritti/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameAnagStudioDaCercare/servlet-name
    url-pattern/AnagStudioDaCercare/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameAnagStudioResult/servlet-name
    url-pattern/AnagStudioResult/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.AutoritaADD/servlet-name
    url-pattern/Tabelle/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.Tariffe/servlet-name
    url-pattern/Tabelle.Tariffe/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaTariffe/servlet-name
    url-pattern/SmistaTariffe/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.CatImpegniDaCercare/servlet-name
    url-pattern/Tabelle.CatImpegniDaCercare/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.CatImpegniResult/servlet-name
    url-pattern/Tabelle.CatImpegniResult/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.ScadDer/servlet-name
    url-pattern/Tabelle.ScadDer/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaScadDer/servlet-name
    url-pattern/SmistaScadDer/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.ScadDerADD/servlet-name
    url-pattern/Tabelle.ScadDerADD/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.ScadDerDaCercare/servlet-name
    url-pattern/Tabelle.ScadDerDaCercare/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameTabelle.ScadDerResult/servlet-name
    url-pattern/Tabelle.ScadDerResult/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameFiltroAccessi/servlet-name
    url-pattern/FiltroAccessi/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaAutoMessaggi/servlet-name
    url-pattern/SmistaAutoMessaggi/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaActionTable/servlet-name
    url-pattern/SmistaActionTable/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameJFreeReportPDFServlet/servlet-name
    url-pattern/PDF/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaAgenda/servlet-name
    url-pattern/SmistaAgenda/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaPratiche/servlet-name
    url-pattern/SmistaPratiche/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameGestioneRivDettServlet/servlet-name
    url-pattern/GestioneRivDettServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaDominus/servlet-name
    url-pattern/SmistaDominus/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaOggettiPratiche/servlet-name
    url-pattern/SmistaOggettiPratiche/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameStampaRivalutazioni/servlet-name
    url-pattern/StampaRivalutazioni/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaAtti/servlet-name
    url-pattern/SmistaAtti/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameCSVServlet/servlet-name
    url-pattern/CSVServlet/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameSmistaLegali/servlet-name
    url-pattern/SmistaLegali/url-pattern
    /servlet-mapping

    session-config
    session-timeout60/session-timeout
    /session-config

    welcome-file-list
    welcome-fileLoginLegale.jsp/welcome-file
    welcome-fileindex.html/welcome-file
    welcome-fileindex.htm/welcome-file
    welcome-fileindex.jsp/welcome-file
    welcome-filedefault.html/welcome-file
    welcome-filedefault.htm/welcome-file
    welcome-filedefault.jsp/welcome-file
    /welcome-file-list
    error-page
    error-code500/error-code
    location/faces/Errori/errorPage.jsp/location
    /error-page
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/application-1.0/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-application.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/page-1.0/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-page.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/request-1.0/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-request.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/response-1.0/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-response.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/session-1.0/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-session.jar/taglib-location
    /taglib
    taglib
    taglib-urijspsql/taglib-uri
    taglib-location/WEB-INF/lib/jspsql.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/i18n-1.0/taglib-uri
    taglib-location/WEB-INF/lib/i18n.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/datetime-1.0/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-datetime.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/string-1.0.1/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-string.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/utility/taglib-uri
    taglib-location/WEB-INF/lib/utility.jar/taglib-location
    /taglib
    taglib
    taglib-urihttp://jakarta.apache.org/taglibs/mailer-1.1/taglib-uri
    taglib-location/WEB-INF/lib/taglibs-mailer.jar/taglib-location
    /taglib

    /web-appi can put also faces-config.xml,but for me are been web.xml.
    my web-inf\lib is all in lib of server in jboss.

    where is my mistakes??

    please help me.

    DB:2.35:Migration Wsad To Jboss But Cannot Find Facescontext,Please Help cd

    THX at all.
    now i try.But i don't use myFaces,i has developer all my application with websphere application Developer 5.1.2 and in this app Server all work fine. now i will migrate to jboss,but it's shot this error. So i think that i have much glue with ibm,so i think that is a problem with lib o web.xml. My step are:
    1:create war with WSAD 5.1.2
    2:deploy all in jboss 4.04(also i check in this step WARN in navigation rule,but this is another discussion)
    3:now with a browser enter in my application,is enter in jsp is all ok,but if i entry in page that are faces ,i see the error)

    the extension of my faces is .jsp and i use in web.xml /faces/*

    i need the help please...

  • RELEVANCY SCORE 2.35

    DB:2.35:Session Is Expired Before The Session Timeout In Web.Xml as


    I have a strange problem that my session is getting expired before the session time out set in web.xml.In application module--configuration--AM local--pooling and scalablity---Idle instance timeout--10800 sec is set.When i searched the blog ,i read always web.xml takes the precedence over other time out settings.Still how come the session is getting broken before the session timeout of (3 hrs).We kept our application idle for one hour and tested.We are getting null pointer exception infilterChain.doFilter(request, response); of doFilter() insessionExpiryFilter.java method.public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException,ServletException {if (request instanceof HttpServletRequest) {HttpServletRequest httpServletRequest = (HttpServletRequest)request;HttpServletResponse httpServletResponse = (HttpServletResponse)response;HttpSession session = httpServletRequest.getSession(false);if (session == null) {URL requestUrl = new URL(httpServletRequest.getRequestURL().toString());String targetUrl = URLHelper.getApplicationPart(requestUrl) + "faces/login.jsp";session = httpServletRequest.getSession(true);httpServletResponse.sendRedirect(targetUrl);}}filterChain.doFilter(request, response); ----NPE exception after one hour}web.xml?xml version = '1.0' encoding = 'windows-1252'?web-app 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" version="2.5" context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueclient/param-value /context-param context-param param-namejavax.faces.PARTIAL_STATE_SAVING/param-name param-valuefalse/param-value /context-param context-param descriptionIf this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed./description param-nameorg.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION/param-name param-valuefalse/param-value /context-param context-param descriptionWhether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information./description param-nameoracle.adf.view.rich.versionString.HIDDEN/param-name param-valuefalse/param-value /context-param context-param descriptionSecurity precaution to prevent clickjacking: bust frames if the ancestor window domain(protocol, host, and port) and the frame domain are different. Another options for this parameter are always and never./description param-nameorg.apache.myfaces.trinidad.security.FRAME_BUSTING/param-name param-valuedifferentOrigin/param-value /context-param context-param param-nameorg.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE/param-name param-value20971520/param-value /context-param !--Added for session expiry -- context-param param-nameoracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT/param-name param-value120/param-value /context-param !--Ends--- context-param param-nameoracle.adf.view.rich.HIDE_UNSUPPORTED_BROWSER_ALERTS/param-name param-valueIECompatibilityModes/param-value /context-param context-param param-namejavax.faces.FACELETS_VIEW_MAPPINGS/param-name param-value*.jsf;*.xhtml/param-value /context-param context-param param-namejavax.faces.FACELETS_SKIP_XML_INSTRUCTIONS/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.FACELETS_SKIP_COMMENTS/param-name param-valuetrue/param-value /context-param context-param param-namejavax.faces.FACELETS_DECORATORS/param-name param-valueoracle.adfinternal.view.faces.facelets.rich.AdfTagDecorator/param-value /context-param context-param param-namejavax.faces.FACELETS_RESOURCE_RESOLVER/param-name param-valueoracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver/param-value /context-param filter filter-nameJpsFilter/filter-name filter-classoracle.security.jps.ee.http.JpsFilter/filter-class init-param param-nameenable.anonymous/param-name param-valuetrue/param-value /init-param /filter filter filter-nametrinidad/filter-name filter-classorg.apache.myfaces.trinidad.webapp.TrinidadFilter/filter-class /filter filter filter-nameadfBindings/filter-name filter-classoracle.adf.model.servlet.ADFBindingFilter/filter-class /filter !--Added for session expiry-- filter filter-nameAppSessionExpiryFilter/filter-name filter-classcom.bean.common.SessionExpiryFilter/filter-class !-- init-param param-nameAppSessionTimeoutRedirect/param-name param-value/faces/login.jsp/param-value /init-param-- /filter filter-mapping filter-nameAppSessionExpiryFilter/filter-name servlet-nameFaces Servlet/servlet-name /filter-mapping !--Ends--- filter-mapping filter-nameJpsFilter/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping filter-mapping filter-nametrinidad/filter-name servlet-nameFaces Servlet/servlet-name dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher dispatcherERROR/dispatcher /filter-mapping filter-mapping filter-nameadfBindings/filter-name servlet-nameFaces Servlet/servlet-name dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping filter-mapping filter-nameadfBindings/filter-name servlet-nameHelpManagementPdfServlet/servlet-name dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping listener listener-classoracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack/listener-class /listener listener listener-classoracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack/listener-class /listener listener listener-classoracle.bc4j.mbean.BC4JConfigLifeCycleCallBack/listener-class /listener servlet servlet-nameAutoLogin/servlet-name servlet-classcom.bean.common.AutoLogin/servlet-class load-on-startup0/load-on-startup /servlet servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameresources/servlet-name servlet-classorg.apache.myfaces.trinidad.webapp.ResourceServlet/servlet-class /servlet servlet servlet-nameBIGRAPHSERVLET/servlet-name servlet-classoracle.adf.view.faces.bi.webapp.GraphServlet/servlet-class /servlet servlet servlet-nameBIGAUGESERVLET/servlet-name servlet-classoracle.adf.view.faces.bi.webapp.GaugeServlet/servlet-class /servlet servlet servlet-nameMapProxyServlet/servlet-name servlet-classoracle.adf.view.faces.bi.webapp.MapProxyServlet/servlet-class /servlet servlet servlet-nameHelpManagementPdfServlet/servlet-name servlet-classcom.bean.common.HelpManagementPdfServlet/servlet-class /servlet servlet servlet-nameLogoutServlet/servlet-name servlet-classcom.bean.common.LogoutServlet/servlet-class /servlet servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/adf/*/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/afr/*/url-pattern /servlet-mapping servlet-mapping servlet-nameBIGRAPHSERVLET/servlet-name url-pattern/servlet/GraphServlet/*/url-pattern /servlet-mapping servlet-mapping servlet-nameBIGAUGESERVLET/servlet-name url-pattern/servlet/GaugeServlet/*/url-pattern /servlet-mapping servlet-mapping servlet-nameMapProxyServlet/servlet-name url-pattern/mapproxy/*/url-pattern /servlet-mapping servlet-mapping servlet-nameresources/servlet-name url-pattern/bi/*/url-pattern /servlet-mapping servlet-mapping servlet-nameAutoLogin/servlet-name url-pattern/autoLogin/url-pattern url-pattern/faces/autoLogin/url-pattern /servlet-mapping servlet-mapping servlet-nameHelpManagementPdfServlet/servlet-name url-pattern/mainPage/pdf/url-pattern /servlet-mapping servlet-mapping servlet-nameLogoutServlet/servlet-name url-pattern/logoutservlet/url-pattern /servlet-mapping session-config session-timeout180/session-timeout /session-config mime-mapping extensionswf/extension mime-typeapplication/x-shockwave-flash/mime-type /mime-mapping mime-mapping extensionamf/extension mime-typeapplication/x-amf/mime-type /mime-mapping jsp-config jsp-property-group url-pattern*.jsff/url-pattern is-xmltrue/is-xml /jsp-property-group /jsp-config/web-appPlease let me any settings needs to be changed?Kindly help

    DB:2.35:Session Is Expired Before The Session Timeout In Web.Xml as

    it could be Oracle Access Manager session timeout under common settings...if you use OAM..orWL console application deployment...configuration tab Session Invalidation Interval (in seconds):

  • RELEVANCY SCORE 2.35

    DB:2.35:Thread Destroy sc


    I made a servlet implements runnable interface, and let a new thread constructed by the servlet instance run when the servlet init() was invoked when server started up and the servlet was loaded, my question is when the servlet was
    unloaded from server, how can I stop the thread? Or will the thread be stopped automatically when the servlet is unloaded? If so, will I get an interrupted exception or somethifn like that in run() method?

    Code likes below:

    * * * * * * * * * * * * * *

    public class SampleServlet extends HttpServlet implements Runnable {

    private Thread processor;

    public void init(ServletConfig config) throws ServletException {
    super.init(config);

    processor = new Thread(this);
    processor.start();
    }

    public void run() {

    }

    public void destroy() {

    }

    * * * * * * * * * *

  • RELEVANCY SCORE 2.35

    DB:2.35:If There Is A Problem Starting A Servlet.... xa


    I'm currently writting an exception handler for my servlet's init() method.

    My question is, if there is a problem initialising the servlet (i.e. config files won't load etc) what's the best way to put the servlet out of action?

    I'm thinking maybe call the destroy() method within the catch block of init(). Would this be right?

    If so what happens if the servlet is shutdown and then there is another request? Will the container (Tomcat) attempt to start the servlet again?

    Thanks,

    DB:2.35:If There Is A Problem Starting A Servlet.... xa

    Thanks for all the help. I can use UnavailableException if I know it's permanetly unavailable and ServletException if not.

    One last thing. What's the best way to output error messages?

  • RELEVANCY SCORE 2.35

    DB:2.35:Conversation Between Web-Apps 8s


    Hi,

    Suppose there are 2 web-apps. Project1, Project2. Project1 has 2 servlets ServletA, ServletC and Project2 has ServletB. the following is the code for all the 3 servlets, and web.xmls for Project1 and Project2. However, it doesn't work. I wouldn't want to use this scenario, but just want to know why won't it work.

    ServletA: in Project1

    import java.io.*;*
    *import java.net.*;

    import javax.servlet.*;*
    *import javax.servlet.http.*;

    public class ServletA extends HttpServlet {

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    out.println("html");
    out.println("head");
    out.println("titleServlet ServletA/title");
    out.println("/head");
    out.println("body");
    out.println("h1Servlet ServletA at " + request.getContextPath () + "/h1");
    out.println("form name=\"form1\" method=\"get\" action=\"/Project2/ServletB\"");
    out.println("input type=\"submit\" value=\"go\"/");
    out.println("/form");
    out.println("/body");
    out.println("/html");

    } catch(Exception _ex){
    _ex.printStackTrace();
    }
    finally {
    out.close();
    }
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    }

    }similar code for ServletC in Project1 and the processRequest is as follows:

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {
    out.println("html");
    out.println("head");
    out.println("titleServlet ServletC/title");
    out.println("/head");
    out.println("body");
    out.println("h1Servlet ServletC at " + request.getContextPath () + "/h1");
    out.println("/body");
    out.println("/html");

    } catch(Exception _ex){
    _ex.printStackTrace();
    }
    finally {
    out.close();
    }
    } Project2's ServletB's processRequest is like this: the doGet() method calls processRequest() like above cases.

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    try {

    HttpSession session = request.getSession();
    RequestDispatcher rd = session.getServletContext().getRequestDispatcher("/ServletC"); ///

    -----
    LINE 1 ---------------------
    rd.forward(request, response);

    } catch(Exception _ex){
    _ex.printStackTrace();
    }
    finally {
    out.close();
    }
    } Project1's web.xml:
    ?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-nameServletA/servlet-name
    servlet-classServletA/servlet-class
    /servlet
    servlet
    servlet-nameServletC/servlet-name
    servlet-classServletC/servlet-class
    /servlet
    servlet-mapping
    servlet-nameServletA/servlet-name
    url-pattern/ServletA/url-pattern
    /servlet-mapping
    servlet-mapping
    servlet-nameServletC/servlet-name
    url-pattern/ServletC/url-pattern
    /servlet-mapping
    session-config
    session-timeout
    30
    /session-timeout
    /session-config
    welcome-file-list
    welcome-fileindex.jsp/welcome-file
    /welcome-file-list
    /web-appProject2's web.xml:
    ?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-nameServletB/servlet-name
    servlet-classServletB/servlet-class
    /servlet
    servlet-mapping
    servlet-nameServletB/servlet-name
    url-pattern/ServletB/url-pattern
    /servlet-mapping
    session-config
    session-timeout
    30
    /session-timeout
    /session-config
    welcome-file-list
    welcome-fileindex.jsp/welcome-file
    /welcome-file-list
    /web-appWhen I access ServletA, and hit go button, I get resource not found page. I would like to know why this type of intercommunication between web-apps wont work.
    I change "LINE 1" in the above ServletB's code like this too
    RequestDispatcher rd = session.getServletContext().getRequestDispatcher("http://localhost:8080/Project1/ServletC");and also
    RequestDispatcher rd = session.getServletContext().getRequestDispatcher("/Project1/ServletC");just to make sure I tried everything. But still I get the resource not found page in the browser.

    Also I have another question. When we say a "session" is it something client-specific or server-specific? I mean when a session is created is it created from the perspective of a client or from the perspective of a server?

    DB:2.35:Conversation Between Web-Apps 8s

    Thanks for the clarification BalusC. Understood now. Since session is a server-side object and resides within a ServletContext with in a web-app, session.getServletContext() returns the ServletContext object of the current web-app but not of the web-app from where the request originated.

    Thanks once again.. 4 stars as promised

  • RELEVANCY SCORE 2.35

    DB:2.35:Applet--Servlet Communication j3


    Hi All.

    here In Applet Servlet communication .

    is it possible for applet to communicate with servlet using only one stream .

    like applet open only outputstream and servlet open only input stream .

    as in my applet here is the code which i m implementing .....

    private void sendData(){

    try{
    URL url = new URL("http://jeetu/servlet/ch.startGame");

    URLConnection servletConnection=url.openConnection();
    servletConnection.setDoOutput(true);
    servletConnection.setDoInput(true);
    ObjectOutputStream oos = new ObjectOutputStream(servletConnection.getOutputStream());

    oos.writeObject(sendObject ITS A SERIALIZED OBJECT );
    oos.close();

    }
    catch(Exception e){

    }
    }

    and in Servlet here is the code ...................

    public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException{

    try{
    log("Here connection Occured");
    String contentType = "application/x-java-serialized-object";
    response.setContentType(contentType);
    ServletContext context=this.getServletContext();
    ObjectInputStream ois= new ObjectInputStream(request.getInputStream());
    transferObject objectReceived=(transferObject)ois.readObject();
    RequestDispatcher rd=context.getRequestDispatcher("/StartGame.jsp");
    rd.forward(request,response);
    }
    catch(Exception e){
    log("here in start Game "+e.toString());
    }

    }

    Here in Servlet after receiving SERIALIZED OBJECT i m transfering control to StartGame.jsp page . but the problem is that servlet is not receiving the object until both streams are open . and i can't do it . because it woluld be Exception in the servlet code .because servlet can only respond to only one request and give only one response. as we are transfering control to other page and also opening other stream .

    for any information plz mail at jeetenderbatra@gmail.com

    DB:2.35:Applet--Servlet Communication j3

    Hi All.

    here In Applet Servlet communication .

    is it possible for applet to communicate with servlet using only one stream .

    like applet open only outputstream and servlet open only input stream .

    as in my applet here is the code which i m implementing .....

    private void sendData(){

    try{
    URL url = new URL("http://jeetu/servlet/ch.startGame");

    URLConnection servletConnection=url.openConnection();
    servletConnection.setDoOutput(true);
    servletConnection.setDoInput(true);
    ObjectOutputStream oos = new ObjectOutputStream(servletConnection.getOutputStream());

    oos.writeObject(sendObject ITS A SERIALIZED OBJECT );
    oos.close();

    }
    catch(Exception e){

    }
    }

    and in Servlet here is the code ...................

    public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException{

    try{
    log("Here connection Occured");
    String contentType = "application/x-java-serialized-object";
    response.setContentType(contentType);
    ServletContext context=this.getServletContext();
    ObjectInputStream ois= new ObjectInputStream(request.getInputStream());
    transferObject objectReceived=(transferObject)ois.readObject();
    RequestDispatcher rd=context.getRequestDispatcher("/StartGame.jsp");
    rd.forward(request,response);
    }
    catch(Exception e){
    log("here in start Game "+e.toString());
    }

    }

    Here in Servlet after receiving SERIALIZED OBJECT i m transfering control to StartGame.jsp page . but the problem is that servlet is not receiving the object until both streams are open . and i can't do it . because it woluld be Exception in the servlet code .because servlet can only respond to only one request and give only one response. as we are transfering control to other page and also opening other stream .

    for any information plz mail at jeetenderbatra@gmail.com

  • RELEVANCY SCORE 2.35

    DB:2.35:Accessing Facescontext From Other Servlets 83


    How can I access the FacesContext from a servlet different from the faces servlet?

    The following code throws a null pointer exception for instance.

    public class ChartServlet extends HttpServlet {
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    FacesContext.getCurrentInstance().getExternalContext().log(errMsg);
    }
    }

    DB:2.35:Accessing Facescontext From Other Servlets 83

    I think that FacesContext is something that basically "lives" only for the duration of a request. And it seems that it would be the faces servlet that establishes the FacesContext for any particular request. Therefore, FacesContext won't exist (or be available) to any particular request unless that request has been routed through the faces servlet. With that in mind, there might be a way you could "include" a call to the faces servlet inside of your servlet and then the context would be established. I did not work on the JSF implementation or anything like that so what I am saying is largely deduction and speculation. Hopefully one of the JSF "authors" can shed more light on the subject.

  • RELEVANCY SCORE 2.35

    DB:2.35:Error : Content Type Isn't Multipart/Form-Data jx


    Hello, Im using (http://servlets.com/cos/) and
    in my web xml i got

    servlet
    servlet-nameUploadTransferServlet/servlet-name
    servlet-classcom.waterfind.admin.transferform.UploadTransferServlet/servlet-class
    /servlet

    servlet-mapping
    servlet-nameUploadTransferServlet/servlet-name
    url-pattern/UploadServlet/url-pattern
    /servlet-mappingand

    servlet class :

    public class UploadTransferServlet extends HttpServlet {

    private static Logger logger = Logger.getLogger(UploadTransferServlet.class);

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    AuthorityApprovalList aa = AuthorityApprovalList.getAAListById(new Long(request.getParameter("formId")));

    Session sess = null;

    AuthorityApprovalForms af = new AuthorityApprovalForms();

    try {
    int maxFileSize = 20 * 1024 * 1024; // 20MB max
    MultipartParser parserFormData = new MultipartParser(request, maxFileSize);
    Part p = null;
    long numBytes = 0;
    byte[] fileDataArray = null;

    try{
    while((p = parserFormData.readNextPart()) != null) {
    if(p.isFile()) {
    FilePart fp = (FilePart)p;
    InputStream fip = fp.getInputStream();
    ByteArrayOutputStream bias = new ByteArrayOutputStream();

    if(fp.getFileName() != null) {
    int intSize = 0;
    while((intSize = fip.read()) != -1) {
    bias.write((byte)intSize);
    }

    if (!fp.getFileName().equals("")) {
    fileDataArray = bias.toByteArray();
    }
    }
    }
    }
    if(fileDataArray != null fileDataArray.length 0) {
    af.setImg(fileDataArray);
    af.setName(request.getParameter("name"));
    af.setType(request.getParameter("type"));
    af.setApprovalForm(aa);
    sess.save(af);
    sess.flush();
    }
    }
    catch (Exception e) {
    logger.error("Error adding image to the database", e);
    }

    } catch (Exception e) {
    ..
    }

    }and in JSP

    form METHOD="GET" enctype="multipart/form-data" name="form1" action="/UploadServlet"
    input type="file" name="file"/br
    input type="submit" value="Upload"/
    input type="hidden" name="name" value="%= String.valueOf(pages + 1) %"
    input type="hidden" name="type" value="%= request.getParameter("type") %"
    input type="hidden" name="formId" value="%= formId %"
    A href="javascript:submitClick()"Send/A
    /formand im getting content type isn't multipart/form-data, how can i fix that?

    DB:2.35:Error : Content Type Isn't Multipart/Form-Data jx

    The method must be post not get...
    form METHOD="POST" enctype="multipart/form-data" name="form1" action="/UploadServlet"

  • RELEVANCY SCORE 2.35

    DB:2.35:Filter Problem sx


    i have used filters for the servlets ...i am getting nullpointer exception..since i kept filter and filter is getting servletcontext object..but before servlet is initialized the filter class's doFilter method is called where it is getting servletcontext object which has to be produced only after servlet get initiated. Thats the problem with this filter!! could anyone guide me to solve this problem?

    this is my filter class

    The Logging Filter
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;

    public class LoggingFilter implements Filter {
    private FilterConfig filterConfig = null;
    public void destroy() {
    System.out.println("Filter destroyed");
    this.filterConfig = null;
    }

    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain)
    throws IOException, ServletException {
    System.out.println("doFilter");

    // Log user's IP address.
    ServletContext servletContext = filterConfig.getServletContext();
    servletContext.log(request.getRemoteHost());
    chain.doFilter(request, response);
    }
    public void init(FilterConfig filterConfig) throws ServletException {
    System.out.println("Filter initialized");
    this.filterConfig = filterConfig;
    }
    }here is the servlet class

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;

    public class FilteredServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("HTML");
    out.println("HEAD");
    out.println("TITLEUser Counter/TITLE");
    out.println("/HEAD");
    out.println("BODY");
    out.println("IP:" + request.getRemoteHost());
    out.println("/BODY");
    out.println("/HTML");
    }
    }and the xml file

    filter
    filter-namelogging filter/filter-name
    filter-classLoggingFilter /filter-class
    /filter

    filter-mapping
    filter-namelogging filter/filter-name
    servlet-nameFilteredServlet1/servlet-name
    /filter-mapping

    servlet
    servlet-name FilteredServlet1/servlet-name
    servlet-classFilteredServlet1/servlet-class
    /servlet

    servlet-mapping
    servlet-nameFilteredServlet1 /servlet-name
    url-pattern/FilteredServlet1/url-pattern
    /servlet-mapping

    DB:2.35:Filter Problem sx

    i have used filters for the servlets ...i am getting nullpointer exception..since i kept filter and filter is getting servletcontext object..but before servlet is initialized the filter class's doFilter method is called where it is getting servletcontext object which has to be produced only after servlet get initiated. Thats the problem with this filter!! could anyone guide me to solve this problem?

    this is my filter class

    The Logging Filter
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;

    public class LoggingFilter implements Filter {
    private FilterConfig filterConfig = null;
    public void destroy() {
    System.out.println("Filter destroyed");
    this.filterConfig = null;
    }

    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain)
    throws IOException, ServletException {
    System.out.println("doFilter");

    // Log user's IP address.
    ServletContext servletContext = filterConfig.getServletContext();
    servletContext.log(request.getRemoteHost());
    chain.doFilter(request, response);
    }
    public void init(FilterConfig filterConfig) throws ServletException {
    System.out.println("Filter initialized");
    this.filterConfig = filterConfig;
    }
    }here is the servlet class

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;

    public class FilteredServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("HTML");
    out.println("HEAD");
    out.println("TITLEUser Counter/TITLE");
    out.println("/HEAD");
    out.println("BODY");
    out.println("IP:" + request.getRemoteHost());
    out.println("/BODY");
    out.println("/HTML");
    }
    }and the xml file

    filter
    filter-namelogging filter/filter-name
    filter-classLoggingFilter /filter-class
    /filter

    filter-mapping
    filter-namelogging filter/filter-name
    servlet-nameFilteredServlet1/servlet-name
    /filter-mapping

    servlet
    servlet-name FilteredServlet1/servlet-name
    servlet-classFilteredServlet1/servlet-class
    /servlet

    servlet-mapping
    servlet-nameFilteredServlet1 /servlet-name
    url-pattern/FilteredServlet1/url-pattern
    /servlet-mapping

  • RELEVANCY SCORE 2.35

    DB:2.35:Communicating W/ Server Problem m1


    I'm using URLConnection to communicate with a Servlet from an application. I get no Exceptions during the process, but nothing happens. The Servlet does not register a request even though the app ran through fine. If however, I stick in a call to getContent() on the URLConnection, it throws an Exception on the application side but the Servlet receives the request! Very weird...

    URLConnection connection = servletURL.openConnection();
    connection.setUseCaches(false);
    connection.setDoOutput(true);

    ByteArrayOutputStream baos = new ByteArrayOutputStream(4096);

    String sPost = "";

    sPost = info.getUrlEncodedString();

    PrintWriter out = new PrintWriter(baos,false);
    out.print(sPost);
    out.flush();

    connection.setRequestProperty("Content-Length","" +baos.size());
    connection.setRequestProperty("Content-Type","application/x-www-form-urlencoded");

    baos.writeTo(connection.getOutputStream());
    System.out.println(connection.getContent());
    out.close();
    baos.close();

    System.out.println("Information sent to server");If I take away that System.out which mkes a call to getContent(), the servlet never gets called. If it stays,the application gets an exception but the servlet gets called. What's going on here!? The exception is throws is "java.net.UnknownServiceException: no content-type"

    DB:2.35:Communicating W/ Server Problem m1

    it seems no matter what else I try It always fails unless I make that call to URLConnection.getContent()! Is there some necessary step which I skipped?

  • RELEVANCY SCORE 2.35

    DB:2.35:The Value For The Usebean Class Attribute Is Invalid 1m


    html
    head
    titlePie Chart Demo/title
    /head

    jsp:useBean id="myChart" class="classes.beans.votepie" scope="session" /

    body
    h2Vote Results Pie-chart/h2

    %String chartViewer = myChart.getvoteserve(request, response);%

    img src="%=chartViewer%" border=0 usemap="#imageMap"

    /body
    /html accessing this viewrst.jsp file shows the following error:

    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: /viewrst.jsp(6,0) The value for the useBean class attribute classes.beans.votepie is invalid.
    org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
    org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
    org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
    org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1200)
    org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1155)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
    org.apache.jasper.compiler.Generator.generate(Generator.java:3394)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    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) lastly this is the web.xml file
    ?xml version="1.0" encoding="UTF-8"?
    !DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

    web-app
    servlet
    servlet-namevoteserve/servlet-name
    servlet-classclasses.servlets.voteserve/servlet-class
    /servlet
    servlet-mapping
    servlet-namevoteserve/servlet-name
    url-pattern/servlet/voteserve/url-pattern
    /servlet-mapping
    /web-app its my project work plzzzzz plz guyz help me out to complete my work....thankz

    Message was edited by:
    apontutul

    Message was edited by:
    apontutul

    DB:2.35:The Value For The Usebean Class Attribute Is Invalid 1m

    ya 2nd case is mine as the class file is under web-inf/classes/beans
    so I did as u said. but its showing another error:

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: beans/votepie (wrong name: classes/beans/votepie)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

    root cause

    java.lang.NoClassDefFoundError: beans/votepie (wrong name: classes/beans/votepie)
    java.lang.ClassLoader.defineClass1(Native Method)
    java.lang.ClassLoader.defineClass(Unknown Source)
    java.security.SecureClassLoader.defineClass(Unknown Source)
    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1175)
    org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1155)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
    org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
    org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
    org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
    org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
    org.apache.jasper.compiler.Generator.generate(Generator.java:3394)
    org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    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)

  • RELEVANCY SCORE 2.35

    DB:2.35:Getservletcontext() jx


    I would like to call getServletContext() from my JSP.
    It wont allow this, this is my exception:

    Generated servlet error:
    C:\Program Files\Apache Group\Apache Tomcat 4.0\work\localhost\_\SubmissionConfirmation$jsp.java:74: Method getServletRequest() not found in class org.apache.jsp.SubmissionConfirmation$jsp.
    getServletRequest().getRequestDispatcher("/DisplayError.jsp").forward(request, response);
    ^

    I looked at the servlet code, and the servlet generated extends HttpJspBase

    Can anyone help me please?

    Thanks

    DB:2.35:Getservletcontext() jx

    Thanks a lot jp, it worked.

    Onto the next problem ;)

  • RELEVANCY SCORE 2.35

    DB:2.35:500 Servlet Exception 93


    Whenever I click on something in comcast newsroom, I get this "500 servlet exception".

    DB:2.35:500 Servlet Exception 93

    Don't click on comcast newsroom.
    http://www.cnn.com

    That's a server not a browser error.

  • RELEVANCY SCORE 2.35

    DB:2.35:Tomcat "Resource Protector" Servlet dj


    I am trying to make servlet that will act as site shield ,all user requests will pass through this servlet (I am aware of the disadvantage's of such servlet )

    to make my servlet be the first to answer to any request
    I changed my web.xml file as directed in :

    http://www.andrewhoog.com/archives/000049.html

    it works fine .

    my problem occurs when I send a dispatch to other JSP file
    the servlet is "answering the call" and a infinite loop Exception is thrown.

    any ideas ??

    thanks .

    DB:2.35:Tomcat "Resource Protector" Servlet dj

    it's ok I found what I was looking for :
    front controller ( part of the mvc framework )

    http://java.sun.com/blueprints/patterns/FrontController.html

    thank's anyway !

    Sharon

  • RELEVANCY SCORE 2.34

    DB:2.34:Status 500 When Delivering Php Pages With Jsr 223 Reference Implementation 1m


    My situation is that my web host processes php files using a cgi-bin/php
    mechanism, which incurs a php startup cost on each php page served. I don't have the option of getting mod_php turned on.

    I do have pretty complete control over my Tomcat situation though. Thus, I
    want to try to use the JSR 223 reference implementation to deliver my php
    pages from a servlet, which in theory, will keep a php processor
    (libphp.so?) in memory and deliver php generated content faster than the apache/cgi-bin situation I am hindered with. I would have to rename all my php pages to something like .phpx, or .phpj, or .phptc, or .sphp to prevent the cgi-bin situation.

    info.phpx is a one liner:
    -----------------------
    ? phpinfo() ?
    -----------------------

    When info.phpx is browsed the error appears
    ------
    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it
    from fulfilling this request.

    exception

    java.lang.NullPointerException
    com.sun.script.util.ScriptEnginePool.init(ScriptEnginePool.java:28)
    com.sun.script.util.ScriptEnginePool.init(ScriptEnginePool.java:39)
    com.sun.script.http.ScriptServlet$EngineRepository.checkOut(ScriptServlet.ja
    va:117)
    com.sun.script.http.ScriptServlet.getEngine(ScriptServlet.java:85)
    javax.script.http.HttpScriptServlet.service(HttpScriptServlet.java:115)

    note The full stack trace of the root cause is available in the Apache
    Tomcat/5.5.9 logs.
    Apache Tomcat/5.5.9
    ------

    $ cat /proc/version
    Linux version 2.6.8.1-25mdk (qateam@mercury.mandriva.com) (gcc version 3.4.1
    (Mandrakelinux 10.1 3.4.1-4mdk)) #1 Tue May 31 12:00:26 MDT 2005

    $ uname -a
    Linux ----.--.------------.com 2.6.8.1-25mdk #1 Tue May 31 12:00:26 MDT 2005
    i686 Intel(R) Pentium(R) 4 CPU 1.70GHz unknown GNU/Linux

    jsr223 installed at:
    /www/mysite.com/opt/jsr223

    /www/mysite.com/conf/web.xml contains:
    ---------------------------------
    servlet
    servlet-nameJSR223Script/servlet-name
    servlet-classcom.sun.script.http.ScriptServlet/servlet-class
    init-param
    param-namescript-blocks/param-name
    param-valuejs,groovy/param-value
    /init-param
    /servlet
    and
    servlet-mapping
    servlet-nameJSR223Script/servlet-name
    url-pattern*.phpx/url-pattern
    /servlet-mapping
    ---------------------------------

    The web hoster has a browser based Control Panel (CP) for restarting Tomcat. Some
    logging indicates the tomcat process has these env vars available (as setup by
    startupjsr.sh)

    JAVA_OPTS=-Djava.library.path=/www/mysite.com/opt/jsr223/php5/lib

    LD_LIBRARY_PATH=/usr/postgresql/7.3/lib:/usr/j2sdk/1.4.2_04/jre/lib/i386/cli
    ent:/usr/j2sdk/1.4.2_04/jre/lib/i386:/usr/j2sdk/1.4.2_04/jre/../lib/i386:/us
    r/postgresql/7.3/lib:/usr/postgresql/7.3/lib::/www/mysite.com/opt/jsr223/
    php5/lib/dummylib

    PHPRC=/www/mysite.com/opt/jsr223/php5/lib

    I have to guess that com.sun.script.http.ScriptServlet utilizes env.var PHPRC to locate the php .so library.

    Any ideas on what is needed for getting 223 reference implementation working?
    Is the source code of the ref. imp. available ?

    Thanks,

    Richard

    DB:2.34:Status 500 When Delivering Php Pages With Jsr 223 Reference Implementation 1m

    My situation is that my web host processes php files using a cgi-bin/php
    mechanism, which incurs a php startup cost on each php page served. I don't have the option of getting mod_php turned on.

    I do have pretty complete control over my Tomcat situation though. Thus, I
    want to try to use the JSR 223 reference implementation to deliver my php
    pages from a servlet, which in theory, will keep a php processor
    (libphp.so?) in memory and deliver php generated content faster than the apache/cgi-bin situation I am hindered with. I would have to rename all my php pages to something like .phpx, or .phpj, or .phptc, or .sphp to prevent the cgi-bin situation.

    info.phpx is a one liner:
    -----------------------
    ? phpinfo() ?
    -----------------------

    When info.phpx is browsed the error appears
    ------
    HTTP Status 500 -

    type Exception report

    message

    description The server encountered an internal error () that prevented it
    from fulfilling this request.

    exception

    java.lang.NullPointerException
    com.sun.script.util.ScriptEnginePool.init(ScriptEnginePool.java:28)
    com.sun.script.util.ScriptEnginePool.init(ScriptEnginePool.java:39)
    com.sun.script.http.ScriptServlet$EngineRepository.checkOut(ScriptServlet.ja
    va:117)
    com.sun.script.http.ScriptServlet.getEngine(ScriptServlet.java:85)
    javax.script.http.HttpScriptServlet.service(HttpScriptServlet.java:115)

    note The full stack trace of the root cause is available in the Apache
    Tomcat/5.5.9 logs.
    Apache Tomcat/5.5.9
    ------

    $ cat /proc/version
    Linux version 2.6.8.1-25mdk (qateam@mercury.mandriva.com) (gcc version 3.4.1
    (Mandrakelinux 10.1 3.4.1-4mdk)) #1 Tue May 31 12:00:26 MDT 2005

    $ uname -a
    Linux ----.--.------------.com 2.6.8.1-25mdk #1 Tue May 31 12:00:26 MDT 2005
    i686 Intel(R) Pentium(R) 4 CPU 1.70GHz unknown GNU/Linux

    jsr223 installed at:
    /www/mysite.com/opt/jsr223

    /www/mysite.com/conf/web.xml contains:
    ---------------------------------
    servlet
    servlet-nameJSR223Script/servlet-name
    servlet-classcom.sun.script.http.ScriptServlet/servlet-class
    init-param
    param-namescript-blocks/param-name
    param-valuejs,groovy/param-value
    /init-param
    /servlet
    and
    servlet-mapping
    servlet-nameJSR223Script/servlet-name
    url-pattern*.phpx/url-pattern
    /servlet-mapping
    ---------------------------------

    The web hoster has a browser based Control Panel (CP) for restarting Tomcat. Some
    logging indicates the tomcat process has these env vars available (as setup by
    startupjsr.sh)

    JAVA_OPTS=-Djava.library.path=/www/mysite.com/opt/jsr223/php5/lib

    LD_LIBRARY_PATH=/usr/postgresql/7.3/lib:/usr/j2sdk/1.4.2_04/jre/lib/i386/cli
    ent:/usr/j2sdk/1.4.2_04/jre/lib/i386:/usr/j2sdk/1.4.2_04/jre/../lib/i386:/us
    r/postgresql/7.3/lib:/usr/postgresql/7.3/lib::/www/mysite.com/opt/jsr223/
    php5/lib/dummylib

    PHPRC=/www/mysite.com/opt/jsr223/php5/lib

    I have to guess that com.sun.script.http.ScriptServlet utilizes env.var PHPRC to locate the php .so library.

    Any ideas on what is needed for getting 223 reference implementation working?
    Is the source code of the ref. imp. available ?

    Thanks,

    Richard

  • RELEVANCY SCORE 2.34

    DB:2.34:Error In Accessing Portal Through Netscape 18



    Hi all,
    I am testing my portal application in Netscape6.2, in which i have 3 login required
    portlets.
    But when i access the portal i get the following exception.

    Mar 14, 2002 3:17:09 PM EST Info Webflow Processor: [loginProcessor.inputprocessor]
    node-processor-info: [class-name:c
    om.bea.portal.appflow.processor.security.LoginProcessor ] threw an exception:
    [Request forward failed].
    Mar 14, 2002 3:17:09 PM EST Error HTTP [WebAppServletContext(5491926,stockportal,/stockportal)]
    Servlet failed with Ex
    ception
    java.lang.IllegalStateException: Cannot forward a response that is already committed
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:131)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowServlet.java:168)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWebflowServlet.java:172)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doPost(WebflowServlet.java:213)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    Does anybody had the same problem?How can i get rid of this?

    thanks

    Vijay

    DB:2.34:Error In Accessing Portal Through Netscape 18


    Hello,

    I think the problem is that you already sent some code to the client before doing
    the RequestDispatcher.forward.

    Reorder your code so RequestDispatcher.forward is done before.

    Hope this helps.

    Francisco

    "Vijay Bujula" vbujula@k2w.com wrote:

    Hi all,
    I am testing my portal application in Netscape6.2, in which i have 3
    login required
    portlets.
    But when i access the portal i get the following exception.

    Mar 14, 2002 3:17:09 PM EST Info Webflow Processor: [loginProcessor.inputprocessor]
    node-processor-info: [class-name:c
    om.bea.portal.appflow.processor.security.LoginProcessor ] threw an exception:
    [Request forward failed].
    Mar 14, 2002 3:17:09 PM EST Error HTTP [WebAppServletContext(5491926,stockportal,/stockportal)]
    Servlet failed with Ex
    ception
    java.lang.IllegalStateException: Cannot forward a response that is already
    committed
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:131)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowServlet.java:168)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWebflowServlet.java:172)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doPost(WebflowServlet.java:213)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    Does anybody had the same problem?How can i get rid of this?

    thanks

    Vijay

  • RELEVANCY SCORE 2.34

    DB:2.34:Connectexception From Servlet pf



    HI,i have a http servlet which gets a request and puts a message in the queue. when the queue has around 5000 messages my http servlet refuses connection. (gives a Connect Exception)can any one interpret this??I use file persistance managerTIA-- nagi

    DB:2.34:Connectexception From Servlet pf


    are you closing your JMS connection(s) properly?Regards,StephanePS : what says the JBoss's log file

  • RELEVANCY SCORE 2.34

    DB:2.34:Java.Lang.Outofmemoryerror a7


    hi everyone

    i am uploading large file

    file can be upto 100mb
    File is uploading but i am getting the following error while opening it

    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    javax.servlet.ServletException: Servlet execution threw an exception
    org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

    root cause

    java.lang.OutOfMemoryError

    thanks in advance

    DB:2.34:Java.Lang.Outofmemoryerror a7

    It's happening in the servlet, not the client.

    I think in the nature of things the servlet container
    buffers all the input before delivering it to the
    servlet input stream. Most sites have much lower
    upload limits for that reason.:-( Silly Billy! I missed that!

  • RELEVANCY SCORE 2.34

    DB:2.34:Sap Portal Log Shows - Pagebuilder Sap Web Dispatcher Errors. k1



    SAP Portal 7.31 SP09 shows below errors -

    Dispatcher Error

    Cannot process an HTTP request to servlet [forwardServlet] in [webdynpro/dispatcher] web application.

    For more details on the problem please check traces searching by logId: C0000A5A370E9C9F000000050000457

    PageBuilder Error.

    An exception "com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to retrieve client for current request. Causing exception is nested." has occured during application processing. During exception handling, an additional exception "com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to retrieve client for current request. Causing exception is nested." was thrown. Both exception has been written to the logfile

    Please advise how to fix this ASAP.

    Thanks,

    Ravi

    DB:2.34:Sap Portal Log Shows - Pagebuilder Sap Web Dispatcher Errors. k1


    Hi,

    This is SAP business one administration forum. Please find correct forum and repost your discussion to get quick assistance.

    Please close this thread here with helpful answer.

    Thanks Regards,

    Nagarajan

  • RELEVANCY SCORE 2.34

    DB:2.34:Wrapper Cannot Find Servlet Class Error 7p


    Hi all!

    I'm receiving a mysterious error when I try to run my web ap. "Wrapper cannot find servlet class com.ruffalocody.report.ReportServlet or a class it depends on"

    I'm running it on JBoss 3.2.7, and I have another web ap, made almost identical to this one which does not display the same error/exception.

    If anyone could give me advice on what I should do to fix this, I'd very much appreciate it. :)

    Full exception message:
    javax.servlet.ServletException: Wrapper cannot find servlet class com.ruffalocody.report.ReportServlet or a class it depends on
    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:534)

    root cause

    java.lang.ClassNotFoundException: com.ruffalocody.report.ReportServlet
    java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:534)the servlet class file ReportServlet.class is located in:
    WEB-INF\classes\com\ruffalocody\report

    web.xml file:
    ?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-nameRprtSrvlt/servlet-name
    servlet-classcom.ruffalocody.report.ReportServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameRprtSrvlt/servlet-name
    url-pattern/reports/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

    !-- Context Param --

    context-param

    param-namecrystal_image_uri/param-name

    param-valuecrystalreportviewers10/param-value

    /context-param

    !-- Context Param End --
    /web-appIt's called from the index.jsp page w/ ulr: "reports?goTo=view"

    Servlet code (not sure if it's useful, but including just in case):

    /*
    * ReportServlet.java
    *
    * Created on February 1, 2007, 11:04 AM
    */

    package com.ruffalocody.report;

    import java.io.*;

    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
    import com.crystaldecisions.report.web.viewer.CrystalReportViewer;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase;

    /**
    *
    * @author aerohner
    * @version
    */
    public class ReportServlet extends HttpServlet
    {
    String rptLoc = "CR10_JRC_BeginHere.rpt";

    /** Processes requests for both HTTP codeGET/code and codePOST/code methods.
    * @param request servlet request
    * @param response servlet response
    */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
    response.setContentType("text/html;charset=UTF-8");

    String goTo = request.getParameter("goTo");

    if(goTo != null goTo.equals("view"))
    {
    viewReport(request, response);

    }// end goTo view
    else if(goTo != null goTo.equals("export"))
    {
    exportReport(request, response);

    }// end go to export
    else
    {
    RequestDispatcher view = request.getRequestDispatcher("index.jsp");
    view.forward(request,response);
    }
    }

    private void viewReport(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException
    {
    IReportSource rptSrc = setUpReportSource(request);

    if (rptSrc != null)
    {
    // create viewer
    CrystalReportViewer viewer = new CrystalReportViewer();

    try
    {
    viewer.setReportSource(rptSrc);
    forward(request, response, viewer);
    }
    catch(ReportSDKExceptionBase e)
    {
    e.printStackTrace();
    }

    }// if rptsrc not null
    else
    {
    log("rptSrc is null");

    }// end else not null

    }// end viewReport(.)

    private void exportReport(HttpServletRequest request, HttpServletResponse response)
    {

    }// end exportReport(.)

    private IReportSource setUpReportSource(HttpServletRequest request)
    {
    IReportSourceFactory2 rptFact = new JPEReportSourceFactory();
    IReportSource rptSrc = null;
    try
    {
    rptSrc = (IReportSource)
    rptFact.createReportSource(rptLoc, request.getLocale());
    }// end try
    catch (Exception e)
    {}

    return rptSrc;
    }// end setUpReportSource()

    private void forward(HttpServletRequest request,
    HttpServletResponse response, Object viewer)
    throws ServletException, IOException
    {
    request.setAttribute("viewer", viewer);
    RequestDispatcher view = request.getRequestDispatcher("viewer.jsp");
    view.forward(request,response);

    }// end forward(...)

    // editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."
    /** Handles the HTTP codeGET/code method.
    * @param request servlet request
    * @param response servlet response
    */
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
    processRequest(request, response);
    }

    /** Handles the HTTP codePOST/code method.
    * @param request servlet request
    * @param response servlet response
    */
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
    processRequest(request, response);
    }

    /** Returns a short description of the servlet.
    */
    public String getServletInfo()
    {
    return "Short description";
    }
    // /editor-fold
    }Thanks :)

    DB:2.34:Wrapper Cannot Find Servlet Class Error 7p

    Hi all!

    I'm receiving a mysterious error when I try to run my web ap. "Wrapper cannot find servlet class com.ruffalocody.report.ReportServlet or a class it depends on"

    I'm running it on JBoss 3.2.7, and I have another web ap, made almost identical to this one which does not display the same error/exception.

    If anyone could give me advice on what I should do to fix this, I'd very much appreciate it. :)

    Full exception message:
    javax.servlet.ServletException: Wrapper cannot find servlet class com.ruffalocody.report.ReportServlet or a class it depends on
    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:534)

    root cause

    java.lang.ClassNotFoundException: com.ruffalocody.report.ReportServlet
    java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    java.security.AccessController.doPrivileged(Native Method)
    java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66)
    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    java.lang.Thread.run(Thread.java:534)the servlet class file ReportServlet.class is located in:
    WEB-INF\classes\com\ruffalocody\report

    web.xml file:
    ?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-nameRprtSrvlt/servlet-name
    servlet-classcom.ruffalocody.report.ReportServlet/servlet-class
    /servlet
    servlet-mapping
    servlet-nameRprtSrvlt/servlet-name
    url-pattern/reports/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

    !-- Context Param --

    context-param

    param-namecrystal_image_uri/param-name

    param-valuecrystalreportviewers10/param-value

    /context-param

    !-- Context Param End --
    /web-appIt's called from the index.jsp page w/ ulr: "reports?goTo=view"

    Servlet code (not sure if it's useful, but including just in case):

    /*
    * ReportServlet.java
    *
    * Created on February 1, 2007, 11:04 AM
    */

    package com.ruffalocody.report;

    import java.io.*;

    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSourceFactory2;
    import com.crystaldecisions.sdk.occa.report.reportsource.IReportSource;
    import com.crystaldecisions.report.web.viewer.CrystalReportViewer;
    import com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase;

    /**
    *
    * @author aerohner
    * @version
    */
    public class ReportServlet extends HttpServlet
    {
    String rptLoc = "CR10_JRC_BeginHere.rpt";

    /** Processes requests for both HTTP codeGET/code and codePOST/code methods.
    * @param request servlet request
    * @param response servlet response
    */
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
    response.setContentType("text/html;charset=UTF-8");

    String goTo = request.getParameter("goTo");

    if(goTo != null goTo.equals("view"))
    {
    viewReport(request, response);

    }// end goTo view
    else if(goTo != null goTo.equals("export"))
    {
    exportReport(request, response);

    }// end go to export
    else
    {
    RequestDispatcher view = request.getRequestDispatcher("index.jsp");
    view.forward(request,response);
    }
    }

    private void viewReport(HttpServletRequest request,
    HttpServletResponse response) throws ServletException, IOException
    {
    IReportSource rptSrc = setUpReportSource(request);

    if (rptSrc != null)
    {
    // create viewer
    CrystalReportViewer viewer = new CrystalReportViewer();

    try
    {
    viewer.setReportSource(rptSrc);
    forward(request, response, viewer);
    }
    catch(ReportSDKExceptionBase e)
    {
    e.printStackTrace();
    }

    }// if rptsrc not null
    else
    {
    log("rptSrc is null");

    }// end else not null

    }// end viewReport(.)

    private void exportReport(HttpServletRequest request, HttpServletResponse response)
    {

    }// end exportReport(.)

    private IReportSource setUpReportSource(HttpServletRequest request)
    {
    IReportSourceFactory2 rptFact = new JPEReportSourceFactory();
    IReportSource rptSrc = null;
    try
    {
    rptSrc = (IReportSource)
    rptFact.createReportSource(rptLoc, request.getLocale());
    }// end try
    catch (Exception e)
    {}

    return rptSrc;
    }// end setUpReportSource()

    private void forward(HttpServletRequest request,
    HttpServletResponse response, Object viewer)
    throws ServletException, IOException
    {
    request.setAttribute("viewer", viewer);
    RequestDispatcher view = request.getRequestDispatcher("viewer.jsp");
    view.forward(request,response);

    }// end forward(...)

    // editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."
    /** Handles the HTTP codeGET/code method.
    * @param request servlet request
    * @param response servlet response
    */
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
    processRequest(request, response);
    }

    /** Handles the HTTP codePOST/code method.
    * @param request servlet request
    * @param response servlet response
    */
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    {
    processRequest(request, response);
    }

    /** Returns a short description of the servlet.
    */
    public String getServletInfo()
    {
    return "Short description";
    }
    // /editor-fold
    }Thanks :)

  • RELEVANCY SCORE 2.34

    DB:2.34:Failure To Start Xml Db Servlet On First Http Request ds


    With 9.2.0.5 and XDB, we are experiencing a problem whereby our XML servlet is not being invoked with the first HTTP request. It does respond to subsequent calls.

    Please find fragment of our xmlconfig.xml file below.

    httpconfig
    http-port8080/http-port
    http-listenerlocal_listener/http-listener
    http-protocoltcp/http-protocol
    session-timeout6000/session-timeout
    server-nameXDB HTTP Server/server-name
    max-header-size16384/max-header-size
    max-request-body2000000000/max-request-body
    servlet-realmBasic realm="XDB"/servlet-realm
    -
    webappconfig
    -
    welcome-file-list
    welcome-fileindex.html/welcome-file
    welcome-fileindex.htm/welcome-file
    /welcome-file-list
    error-pages/
    -
    servletconfig
    -
    servlet-mappings
    -
    servlet-mapping
    servlet-pattern/TGServlet/servlet-pattern
    servlet-nameTGServlet/servlet-name
    /servlet-mapping
    -
    servlet-mapping
    servlet-pattern/ContentProvisioner/servlet-pattern
    servlet-nameContentProvisioner/servlet-name
    /servlet-mapping
    -
    servlet-mapping
    servlet-pattern/Hello/servlet-pattern
    servlet-nameHelloServlet/servlet-name
    /servlet-mapping
    -
    servlet-mapping
    servlet-pattern/Test/servlet-pattern
    servlet-nameTestServlet/servlet-name
    /servlet-mapping
    -
    servlet-mapping
    servlet-pattern/oradb/*/servlet-pattern
    servlet-nameDBURIServlet/servlet-name
    /servlet-mapping
    /servlet-mappings
    -
    servlet-list
    -
    servlet
    servlet-nameTGServlet/servlet-name
    servlet-languageJava/servlet-language
    display-nameTGServlet/display-name
    servlet-classTGServlet/servlet-class
    servlet-schemaandy_tg/servlet-schema
    -
    init-param
    param-nameschemaUrl/param-name
    param-valuefile://logdata.xsd/param-value
    /init-param
    /servlet
    -
    servlet
    servlet-nameContentProvisioner/servlet-name
    servlet-languageJava/servlet-language
    display-nameContentProvisioner/display-name
    servlet-classContentProvisioner/servlet-class
    servlet-schemaandy_dm/servlet-schema
    -
    init-param
    param-nameversion/param-name
    param-value1.1/param-value
    /init-param
    /servlet
    -
    servlet
    servlet-nameHelloServlet/servlet-name
    servlet-languageJava/servlet-language
    display-nameHelloServlet/display-name
    servlet-classHello/servlet-class
    servlet-schemacdg_dm1/servlet-schema
    /servlet
    -
    servlet
    servlet-nameTestServlet/servlet-name
    servlet-languageJava/servlet-language
    display-nameXML DB Test Servlet/display-name
    servlet-classtest/servlet-class
    servlet-schemascott/servlet-schema
    /servlet
    -
    servlet
    servlet-nameDBURIServlet/servlet-name
    display-nameDBURI/display-name
    servlet-languageC/servlet-language
    descriptionServlet for accessing DBURIs/description
    /servlet
    /servlet-list
    /servletconfig
    /webappconfig
    /httpconfig

  • RELEVANCY SCORE 2.34

    DB:2.34:When Should I Add Servletexception In The Servlet? m9


    Sometimes, I see servlet codes are programed like this:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
    {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("html");
    ....
    }
    however it can be correctly execute without ServletException in the servlet code, who can tell me what effect can the ServletException have on servlet code? and what program try and catch this exception?
    Thank you

    DB:2.34:When Should I Add Servletexception In The Servlet? m9

    Those throws clauses are implictly inherited from HttpServlet class [1] (your code extends HttpServlet, doesn't it?). You can specify them once again in the overridden methods or leave them away. The inheritance stays. That is all just basic Java OO knowlege tho. Have you ever learnt Java?

    Anyway, it roughly means that you are only allowed to throw IOException or ServletException in your servlet code and no other exception types. Those are been catched by the webcontainer and would result in a default HTTP 500 error page, unless defined other in the web.xml (read on about error-page directives in web.xml).

    [1] http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServlet.html

  • RELEVANCY SCORE 2.34

    DB:2.34:Problem In Servlet!! kz


    hai everybody,
    I tried compile a servlet ,I am getting errors as shown below so please help me out.
    errors:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NumberFormatException: null
    java.lang.Integer.parseInt(Integer.java:394)
    java.lang.Integer.(Integer.java:567)
    BonusCalculationServlet.doGet(BonusCalculationServlet.java:64)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    filters.ExampleFilter.doFilter(ExampleFilter.java:149)

    DB:2.34:Problem In Servlet!! kz

    I appreciate u r response.
    reg ing, number it is valid number I gave ex:47;

  • RELEVANCY SCORE 2.34

    DB:2.34:Incorrect Ava Format dz


    We are posting a request from a servlet to another servlet through HTTPS using JSSE in the same machine.We have used IAIK for Signing the Message.The servlet works fine if they are executed seperately i.e (Seperate Version for HTTPS and IAIK).But when both(IAIK HTTPS) are
    put together it gives the following exception while posting the Request.

    https :java.io.IOException: Incorrect AVA format.

    DB:2.34:Incorrect Ava Format dz

    Guys,

    The issue got solved by reinstalling the Ceritficate.

  • RELEVANCY SCORE 2.34

    DB:2.34:Java.Lang.Runtimeexception: Cannot Find Facescontext 89


    hi,

    I just did a little changes, later back, and now my application don't want to work:/

    error:

    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

    exception

    org.apache.jasper.JasperException: java.lang.RuntimeException: Cannot find FacesContext

    root cause

    java.lang.RuntimeException: Cannot find FacesContext

    note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs.and this is my web.xml (is this correct?):

    ?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"
    context-param
    param-namecom.sun.faces.verifyObjects/param-name
    param-valuefalse/param-value
    /context-param
    context-param
    param-namecom.sun.faces.validateXml/param-name
    param-valuetrue/param-value
    /context-param
    context-param
    param-namejavax.faces.STATE_SAVING_METHOD/param-name
    param-valueclient/param-value
    /context-param
    servlet
    servlet-nameFaces Servlet/servlet-name
    servlet-classjavax.faces.webapp.FacesServlet/servlet-class
    load-on-startup1/load-on-startup
    /servlet
    servlet-mapping
    servlet-nameFaces Servlet/servlet-name
    url-pattern/faces/*/url-pattern
    /servlet-mapping
    servlet
    servlet-nameAgentBean/servlet-name
    servlet-classlogic.AgentBean/servlet-class
    /servlet
    servlet-mapping
    servlet-nameAgentBean/servlet-name
    url-pattern/AgentBean/url-pattern
    /servlet-mapping
    servlet
    servlet-nameController/servlet-name
    servlet-classlogic.Controller/servlet-class
    /servlet
    servlet-mapping
    servlet-nameController/servlet-name
    url-pattern/Controller/url-pattern
    /servlet-mapping
    servlet
    servlet-namePassword/servlet-name
    servlet-classlogic.Password/servlet-class
    /servlet
    servlet-mapping
    servlet-namePassword/servlet-name
    url-pattern/Password/url-pattern
    /servlet-mapping
    session-config
    session-timeout
    30
    /session-timeout
    /session-config
    welcome-file-list
    welcome-filewelcomeJSF.jsp/welcome-file
    /welcome-file-list
    login-config
    auth-methodFORM/auth-method
    realm-namelogin/realm-name
    form-login-config
    form-login-page/welcomeJSF.jsp/form-login-page
    form-error-page/welcomeJSF.jsp/form-error-page
    /form-login-config
    /login-config
    /web-appEdited by: pawelwtorek on 2009-07-22 08:52

    DB:2.34:Java.Lang.Runtimeexception: Cannot Find Facescontext 89

    I had same message and finally I just need to

    set the relative URL to run to "/faces/my start page.jsp" in Project Properties (NetBeans 6.8).

    Hope this helps somebody, 4 months later.

  • RELEVANCY SCORE 2.34

    DB:2.34:Filter Problem 99


    i have used filters for the servlets ...i am getting nullpointer exception..since i kept filter and filter is getting servletcontext object..but before servlet is initialized ,the filter class's doFilter method is called where it is getting servletcontext object which has to be produced only after servlet get initiated. Thats the problem with this filter!! could anyone guide me to solve this problem?

    this is my filter class

    The Logging Filter
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;

    public class LoggingFilter implements Filter {
    private FilterConfig filterConfig = null;
    public void destroy() {
    System.out.println("Filter destroyed");
    this.filterConfig = null;
    }

    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain)
    throws IOException, ServletException {
    System.out.println("doFilter");

    // Log user's IP address.
    ServletContext servletContext = filterConfig.getServletContext();
    servletContext.log(request.getRemoteHost());
    chain.doFilter(request, response);
    }
    public void init(FilterConfig filterConfig) throws ServletException {
    System.out.println("Filter initialized");
    this.filterConfig = filterConfig;
    }
    }

    here is the servlet class

    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;

    public class FilteredServlet extends HttpServlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {

    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("HTML");
    out.println("HEAD");
    out.println("TITLEUser Counter/TITLE");
    out.println("/HEAD");
    out.println("BODY");
    out.println("IP:" + request.getRemoteHost());
    out.println("/BODY");
    out.println("/HTML");
    }
    }

    and the xml file

    filter
    filter-namelogging filter/filter-name
    filter-classLoggingFilter /filter-class
    /filter

    filter-mapping
    filter-namelogging filter/filter-name
    servlet-nameFilteredServlet1/servlet-name
    /filter-mapping

    servlet
    servlet-name FilteredServlet1/servlet-name
    servlet-classFilteredServlet1/servlet-class
    /servlet

    servlet-mapping
    servlet-nameFilteredServlet1 /servlet-name
    url-pattern/FilteredServlet1/url-pattern
    /servlet-mapping

    DB:2.34:Filter Problem 99

    ServletContext should have been initialized before your filter is reached. ServletContext is the context for the entire web app and not just for one particular servlet. The container will initialize the ServletContext before it instantiates any servlet. Something else is going on with your application.

  • RELEVANCY SCORE 2.34

    DB:2.34:Credit Card Processor Down 9x


    Getting this error
    Request URI:/OA_HTML/xxcybs/cysRequest.jsp
    Exception:
    java.lang.OutOfMemoryError

    EBS 11.5.10.2

    DB:2.34:Credit Card Processor Down 9x

    iAppsDBA wrote:
    The apache processes were going junk. Killed all junk apache processes and started it....issue resolved.Thanks for the update!

  • RELEVANCY SCORE 2.33

    DB:2.33:Need Database Help With Servlets a1


    Hi everyone

    I worked through an example in one of our programming text books (Java How To Program). Following the exact instructions in the book, I couldn't get the servlet to connect to a database.

    When I execute the example, I am able to select a value but once it is submitted Apache Tomcat gives me the following error:

    HTTP Status 404 - Servlet animalsurvey is not available

    type Status report

    message Servlet animalsurvey is not available

    description The requested resource (Servlet animalsurvey is not available) is not available.
    Apache Tomcat/6.0.20

    It is hard to believe that the exception message given is accurate, because I think the servlet is accurately defined in the web.xml file.

    Here is a copy of the web.xml file:

    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"

    !-- General description of your Web application --
    display-name
    Java How to Program JSP
    and Servlet Chapter Examples
    /display-name

    description
    This is the Web application in which we
    demonstrate our JSP and Servlet examples.
    /description

    !-- Servlet definitions --
    servlet
    servlet-namewelcome1/servlet-name

    description
    A simple servlet that handles an HTTP get request.
    /description

    servlet-class
    WelcomeServlet
    /servlet-class
    /servlet

    servlet
    servlet-namewelcome2/servlet-name

    description
    Handling HTTP get requests with data
    /description

    servlet-class
    WelcomeServlet2
    /servlet-class
    /servlet

    servlet
    servlet-namewelcome3/servlet-name

    descriptionHandling HTTP post requests with data/description

    servlet-classWelcomeServlet3/servlet-class
    /servlet

    servlet
    servlet-nameredirect/servlet-name

    descriptionRedirect to static Web pages and other servlets./description

    servlet-classRedirectServlet/servlet-class
    /servlet

    servlet
    servlet-nameanimalsurvey/servlet-name

    descriptionConnecting to a database froma servlet/description

    servlet-classSurveyServlet/servlet-class

    init-param
    param-namedatabaseDriver/param-name
    param-valuecom.mysql.jdbc.Driver/param-value
    /init-param

    init-param
    param-namedatabaseName/param-name
    param-valuejdbc:mysql://localhost/animalsurvey/param-value
    /init-param

    init-param
    param-nameusername/param-name
    param-valueroot/param-value
    /init-param

    init-param
    param-namepassword/param-name
    param-value123456/param-value
    /init-param
    /servlet

    !-- Servlet mappings --
    servlet-mapping
    servlet-namewelcome1/servlet-name
    url-pattern/welcome1/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-namewelcome2/servlet-name
    url-pattern/welcome2/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-namewelcome3/servlet-name
    url-pattern/welcome3/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameredirect/servlet-name
    url-pattern/redirect/url-pattern
    /servlet-mapping

    servlet-mapping
    servlet-nameanimalsurvey/servlet-name
    url-pattern/animalsurvey/url-pattern
    /servlet-mapping

    /web-appAll the servlets work, except the servlet called: animalsurvey

    The servlet java class (which uses servlets) connects to a database and submits a user's selection. The class compiled with no errors.

    I think that the problem might be with a configuration or setting on the Apache Tomcat server, because nothing looks wrong with the code to me. I have been struggling with this for almost 2 days now. Any help would be appreciated.

    Thank you

    Edited by: HugoBr on Oct 24, 2009 8:25 AM

    DB:2.33:Need Database Help With Servlets a1

    Hi everyone

    I have found a solution to the problem.

    First of all I had problems debugging my web project using Netbeans. Missing catalina.bat problem.

    Please refer to this thread, to find out what I did in order to fix most of the problems:
    http://www.j2meforums.com/forum/index.php?topic=22348.0

    After I was able to debug the program, it went much easier. It was possible to see if the database could throw an exception, which was certainly one of the problems.

    The problem was mostly with a "a href=/a" tag that didn't use the method="post" method correctly to link to the servlet (which I think is the HTTP error code 405). The last thing was to make some minor changes in the source code.

    Thank you anyway for the support! I really appreciate it. :)

    Edited by: HugoBr on Oct 24, 2009 2:45 PM