Classloader/Servlet engine problems

I am running across a problem that I believe is related to the Classloaders being used.
If a class in the application server classpath references classes that are loaded by an individual web application, I get a ClassNotFoundException. From what I understand, the application server uses a separate Classloader for each web application.
Let's say I have 2 classes. Class A which references Class B. If I instantiate a classloader and load Class A then later instantiate another classloader and load class B (assume Class A's classloader doesn't have class B in it's classpath), should Class A be able to see Class B at runtime?

A ClassLoader can load any class that it can resolve, regardless of the behavior of other ClassLoaders. So, if your ClassLoader can not load a particular class that is being loaded by the web application, then either a) there is a class path issue or b) the web application is using a specialized method for loading classes which is not visible to your ClassLoader, thus preventing you from loading the classes.
Logic within a subclass of ClassLoader is only executed after the parent class fails to load a particular class. So, the ClassLoader for the web application might implement findClass(String) in a way that allows it to find classes that your ClassLoader will never find. Look at the javadoc comments on ClassLoader, espically load(String, boolean) which explains the process for how each class is loaded... .... hopefully this information helps. Take care.

Similar Messages

  • Problem in servlet engine (WLS 7.0) with the chunked transfer

    Hi,
              While using jakarta-slide on weblogic 7.0, I encountered the following
              problem while uploading files using WebDAV servlet deployed on WLS:
              "**** This file has a corrupted %%EOF marker, or garbage after the
              %%EOF."
              Is this is a problem with the way that WLS servlet engine is handling
              chunked transfers ?
              According to the change request 084847, "For chunked
              transfer, WebLogic Server was including a hexadecimal number which
              other
              servlet engines used to ignore. This has been fixed WLS 6.1 sp 4."
              Is this fixed in WLS 7.0 ? I could not find this in the resolved bugs
              list for WLS 7 SP1. If this has not been fixed in 7.0, any idea when
              this fix would make it to WLS 7.0 ?
              Any pointers would be of great help.
              Thanks,
              Jeeji.
              

    Hi,
              While using jakarta-slide on weblogic 7.0, I encountered the following
              problem while uploading files using WebDAV servlet deployed on WLS:
              "**** This file has a corrupted %%EOF marker, or garbage after the
              %%EOF."
              Is this is a problem with the way that WLS servlet engine is handling
              chunked transfers ?
              According to the change request 084847, "For chunked
              transfer, WebLogic Server was including a hexadecimal number which
              other
              servlet engines used to ignore. This has been fixed WLS 6.1 sp 4."
              Is this fixed in WLS 7.0 ? I could not find this in the resolved bugs
              list for WLS 7 SP1. If this has not been fixed in 7.0, any idea when
              this fix would make it to WLS 7.0 ?
              Any pointers would be of great help.
              Thanks,
              Jeeji.
              

  • CiscoWorks Tomcat Servlet Engine service does not start

    Hello!
    CiscoWorks  Tomcat Servlet Engine service does not start.
    Events in the Windows Event Viewer:
    The CiscoWorks Tomcat Servlet Engine service terminated unexpectedly. It has done this 1 time(s).
    output pdshow and file stderr.log,  hs_err_pid2128.log attached.
    Do  you have an idea how to resolve this?
    Thanks!

    The only things which I see are wrong are the start types for the IPM NG database engine and HUM database engine services.  They must be set to Manual, not Automatic.  However, that would not account for the Tomcat crash.  The crash points to an error in the code which processes regdaemon.xml, but I see no reason why that should be failing.  As I said before, I think it would be best to open a Service Request.  Remote access would be helpful to dig into this problem in more detail.
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com

  • Servlet/JSP problems with WL 4.51

    Hi all
              I have a set of Servlets and JSPs running on NewAtlanta's ServletExec
              servlet engine. I am currently porting them to WebLogic. I am facing a
              few problems. I do not want to change any of my HTML/JSP/Java files
              immediately. I want the same files to work in WL as it is. Pl help.
              1. The servlets in ServletExec used to be invoked as
              http://host/servlet/servletName. But in weblogic they are invoked
              as http://host/servletName. I tried registering the servlet names
              in weblogic.properties as
              weblogic.httpd.register.servlet/XServlet=com.foo.XServlet
              weblogic.httpd.initArgs.servlet/XServlet=param=value
              Now I can call this servlet as http://host/servlet/XServlet and so
              I dont have to change any html/JSP files. Will this cause any
              problems in the future?
              2. Since we used to run ServletExec on IIS, we created a virtual
              directory called /jsp in IIS under which we had all the html and
              JSP files. Our servlets will get the http requests, get data from
              database, put the results in session/request variables and dispatch
              it to appropriate JSP page. So, all our servlet code looks like
              this:
              RequestDispatcher dispatcher =
              getServletContext().getRequestDispatcher("/jsp/test.jsp");
              dispatcher.forward(request, response);
              How do I make this code work with WebLogic? Is there any way to
              create virtual directory and make it work like in IIS?
              Thanks for any help.
              shiv
              [email protected]
              

    You might try
              weblogic.httpd.register.jsp/*.jsp=weblogic.servlet.JSPServlet
              but a better/ easier way would be to just move all of your jsp files to a 'jsp'
              subdirectory beneath public_html
              -rrc
              Shiv Kumar wrote:
              > Hi all
              >
              > I have a set of Servlets and JSPs running on NewAtlanta's ServletExec
              > servlet engine. I am currently porting them to WebLogic. I am facing a
              > few problems. I do not want to change any of my HTML/JSP/Java files
              > immediately. I want the same files to work in WL as it is. Pl help.
              >
              > 1. The servlets in ServletExec used to be invoked as
              > http://host/servlet/servletName. But in weblogic they are invoked
              > as http://host/servletName. I tried registering the servlet names
              > in weblogic.properties as
              >
              > weblogic.httpd.register.servlet/XServlet=com.foo.XServlet
              > weblogic.httpd.initArgs.servlet/XServlet=param=value
              >
              > Now I can call this servlet as http://host/servlet/XServlet and so
              > I dont have to change any html/JSP files. Will this cause any
              > problems in the future?
              >
              > 2. Since we used to run ServletExec on IIS, we created a virtual
              > directory called /jsp in IIS under which we had all the html and
              > JSP files. Our servlets will get the http requests, get data from
              > database, put the results in session/request variables and dispatch
              > it to appropriate JSP page. So, all our servlet code looks like
              > this:
              >
              > RequestDispatcher dispatcher =
              > getServletContext().getRequestDispatcher("/jsp/test.jsp");
              > dispatcher.forward(request, response);
              >
              > How do I make this code work with WebLogic? Is there any way to
              > create virtual directory and make it work like in IIS?
              >
              > Thanks for any help.
              > --
              > shiv
              > [email protected]
              Russell Castagnaro
              Chief Mentor
              SyncTank Solutions
              http://www.synctank.com
              Earth is the cradle of mankind; one does not remain in the cradle forever
              -Tsiolkovsky
              

  • Servlet engine invoked FROM CGI script?

    Yes this is a backwards request, but I need a simple servlet engine that can be invoked through a CGI script. I perfectly realize the problems associated with this like session management, benefits in threading, etc not to mention the overhead of JVM startup on each request...
    Anything with which anyone's familiar? Searching returns (of course) how to invoke CGI from Servlet containers which is obviously not what I need.
    Thanks!

    Hi Michael,
    I am running 7.0 on Win NT while its the same case its displaying the whole content
    as it is setted the weblogic.servlet.CGIServlet in the web.xml file and providing
    the compiler for perl also .
    Looking for a quick reply
    Thanks
    Shivani
    Michael Young <[email protected]> wrote:
    Hi.
    What platform/OS version are you running WLS on?
    Thanks,
    Michael
    Suren Jain wrote:
    Hi,
    We are having problems invoking cgi scripts from the browser.
    When we try to access it, it is not executed, instead the script is displayed
    in the browser.
    We are using weblogic 5.1 and sp9.
    In the properties file we have specified
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/opt/equitydev/geo/cgi-bin,\
    *.pl=/usr/local/bin/perl5,\
    *.sh=/bin/ksh
    Appreciate your help.
    Thanks
    Suren.--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Should I install Apache Web server to use Jakarta Tomcat Servlet engine?

    Hello,
    I have some problems and now have a question:
    Should I install Apache Web server to use Jakarta Tomcat Servlet engine?
    JTK home page is available via http://localhost:8080
    Tomcat ver 3.1.3
    Thanks.

    No, you don't need to run Apache webserver (httpd) to run Tomcat. Tomcat by default runs on port 8080, but you can set it to any port, including 80, if you have permission to do so (on *nix systems, you need root permissions to run services on any port below 1024).
    Tomcat is a webserver as well, just one that includes a servlet container and JSP processor. So it will serve your html files, images, etc (aka static content), just as well as Apache httpd, in addition to being able to run servlets and JSPs.
    Apache httpd has more options for serving static content than Tomcat, so many people prefer to use it as their main webserver and only use Tomcat as a sort of "plugin" to handle servlets and JSPs. This can be achieved through a connector. Instructions on how to set this up are on the Jakarta website.
    So you could use Apache and Tomcat combined, next to each other, or totally separated. In many cases, just Tomcat will do.

  • BI Launch Pad Home page error - Servlet Engine Exception: Index: 0, Size: 0

    Hi,
    I am encountering below error when I click on 'Home' button under BI launch Pad in BO BI 4.1 (Operating system - Linux, SP2) but able to log in successfully and can able to run the reports successfully. But the same when I tried with 'Administrator' account I am not seeing any issues and when I tries to login with User Account below error is throwing.
    Please find the attachment.
    I tried to restart the Tomcat but no luck.
    Need your help in order to trouble shoot the issue.
    =======================================================================================================
    Servlet Engine Exception: Index: 0, Size: 0
    URL: /BOE/portal/1405150358/PerformanceManagement/scripts/tools/err_page.jsp?cafWebSesInit=true&bttoken=MDAwRG5GSzldTDA8YVVVaGVgWjFIPE5aXz8ybEhUOzAEQ&bttoken=MDAwRG5GSzldTDA8YVVVaGVgWjFIPE5aXz8ybEhUOzAEQ&actId=3241&pvl=en_US&service=%2FInfoView%2Fcommon%2FappService.do&loc=en&objIds=0&appKind=InfoView&pref=pref%3DmaxOpageUt%253D200%253BmaxOpageC%253D10%253Btz%253DUS%252FPacific-New%253BmUnit%253Dinch%253BshowFilters%253Dtrue%253BsmtpFrom%253Dtrue%253BpromptForUnsavedData%253Dtrue%253B&homeDashboard=true
    StackTrace:
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at com.crystaldecisions.sdk.occa.infostore.internal.InfoObjects.get(InfoObjects.java:754)
        at com.bo.aa.storefile.FileUtility.getApplicationBackgroundData(FileUtility.java:201)
        at org.apache.jsp.jsp.dmdashboard_jsp._jspService(dmdashboard_jsp.java:890)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:121)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at com.businessobjects.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:110)
        at com.businessobjects.http.servlet.internal.ServletLastFilterChainElement.service(ServletLastFilterChainElement.java:30)
        at com.businessobjects.http.servlet.internal.filter.FilterChainImpl.doFilter(FilterChainImpl.java:46)
        at com.businessobjects.http.servlet.internal.BundlePathAwareServiceHandler.serviceHelper(BundlePathAwareServiceHandler.java:235)
        at com.businessobjects.http.servlet.internal.BundlePathAwareServiceHandler.service(BundlePathAwareServiceHandler.java:197)
        at com.businessobjects.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:248)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:220)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
        at com.businessobjects.http.servlet.internal.servlet.RequestDispatcherAdaptor.forward(RequestDispatcherAdaptor.java:31)
        at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
        at com.businessobjects.webutil.struts.CrystalUTF8InputActionServlet.process(CrystalUTF8InputActionServlet.java:21)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at com.businessobjects.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:110)
        at com.businessobjects.http.servlet.internal.ServletLastFilterChainElement.service(ServletLastFilterChainElement.java:30)
        at com.businessobjects.http.servlet.internal.filter.FilterChainImpl.doFilter(FilterChainImpl.java:46)
        at com.businessobjects.bip.core.web.boetrustguard.BOETrustPrepareFilter.doFilter(BOETrustPrepareFilter.java:35)
        at com.businessobjects.http.servlet.internal.FilterRegistration.doFilter(FilterRegistration.java:72)
        at com.businessobjects.http.servlet.internal.filter.FilterChainImpl.doFilter(FilterChainImpl.java:43)
        at com.businessobjects.bip.core.web.supportabilty.TraceLogScopeFilter.doFilter(TraceLogScopeFilter.java:38)
        at com.businessobjects.http.servlet.internal.FilterRegistration.doFilter(FilterRegistration.java:72)
        at com.businessobjects.http.servlet.internal.filter.FilterChainImpl.doFilter(FilterChainImpl.java:43)
        at com.businessobjects.sdk.actionfilter.WorkflowFilter.doFilter(WorkflowFilter.java:45)
        at com.businessobjects.http.servlet.internal.FilterRegistration.doFilter(FilterRegistration.java:72)
        at com.businessobjects.http.servlet.internal.filter.FilterChainImpl.doFilter(FilterChainImpl.java:43)
        at com.businessobjects.bip.core.web.appcontext.RequestInitFilter.doFilter(RequestInitFilter.java:26)
        at com.businessobjects.http.servlet.internal.FilterRegistration.doFilter(FilterRegistration.java:72)
        at com.businessobjects.http.servlet.internal.filter.FilterChainImpl.doFilter(FilterChainImpl.java:43)
        at com.businessobjects.http.servlet.internal.BundlePathAwareServiceHandler.serviceHelper(BundlePathAwareServiceHandler.java:235)
        at com.businessobjects.http.servlet.internal.BundlePathAwareServiceHandler.service(BundlePathAwareServiceHandler.java:197)
        at com.businessobjects.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:248)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:220)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at com.businessobjects.pinger.TimeoutManagerFilter.doFilter(TimeoutManagerFilter.java:168)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:743)

    Hi Ganesh,
    The issue seems to be related to user security in BI 4.1. It looks like a known bug in some scenarios and has been resolved in BI 4.1 SP03
    Please refer below SAP KBA and confirm the workflow as well as BI 4.1 product version.
    1931237 - StackTrace displayed on BI Launchpad home page
    Regards,
    Hrishikesh

  • Servlet Compilation Problem !

    Hi,
    I am just starting to learn servlets and I got problem in compiling them. I got compilation error in
    import javax.servlet.*;statement. Seems that the compiler cannot find the servlet package. I got J2EE 1.4 beta installed on my machine but there is no servlet.jar package. I am using J2SDK 1.4.1_02, J2EE 1.4 beta and Tomcat 4.1.24.
    Can anyone help me with my servlet compilation problem?
    Thanks in advance!
    Josh

    servlet.jar is here :
    <tomcatdir>\common\lib
    add it to your compiler classpath

  • WebLogic Server vs Embedded Servlet Engine

    We have licensing for WebLogic Server, and I was wondering if there were any benefits to using it over the embedded servlet engine for hosting Collaboration 4.5 or Publisher 6.4?

    hi.
    WebLogic Express supports the following:
    Servlets, JSP, JDBC, JNDI, JTA, JAAS, JAXP, RMI, and clustering. You
    can build a cluster of WLExpress instances.
    Hope this helps,
    Michael
    Laurent PAILLARD wrote:
    What are the differences between Server and Express. I've read that
    Express does not implement EJB, JMS and two-phase commit protocol for
    transaction. Nothing is said about clustering. As Servlet session can
    be clustered, I wish to know if I can build a cluster with 2 Weblogic
    Express instances.--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How to restart the Servlet Engine?

    Hi
    I am configurating a WebDAV repository in KM
    I am required to restart the Servlet Engine.
    Can anyone please explain me how to restart the servlet engine.
    Thanks in advance
    -madhu

    Basically it means to restart the Java engine!
    On way to do this is to use the NetWeaver Administrator tool (http://portal:port/nwa) and navigate to Administration -> Systems -> <Your SID> and then you will see your dispatcher and server nodes. Just restart the server0..n nodes.
    Cheers

  • Servlet chaining problem..

    import java.io.*;
        import javax.servlet.*;
        import javax.servlet.http.*;
        public class Deblink extends HttpServlet {
          public void doGet(HttpServletRequest req, HttpServletResponse res)
                                       throws ServletException, IOException {
            String contentType = req.getContentType();  // get the incoming type
            if (contentType == null) return;  // nothing incoming, nothing to do
            res.setContentType(contentType);  // set outgoing type to be incoming type
            PrintWriter out = res.getWriter();
            BufferedReader in = req.getReader();
            String line = null;
            while ((line = in.readLine()) != null) {
              line = replace(line, "<BLINK>", "");
              line = replace(line, "</BLINK>", "");
              out.println(line);
          public void doPost(HttpServletRequest req, HttpServletResponse res)
                                        throws ServletException, IOException {
            doGet(req, res);
          private String replace(String line, String oldString, String newString) {
            int index = 0;
            while ((index = line.indexOf(oldString, index)) >= 0) {
              // Replace the old string with the new string (inefficiently)
              line = line.substring(0, index) +
                     newString +
                     line.substring(index + oldString.length());
              index += newString.length();
            return line;
    What is pre request fo above code to work.
    I had tried this many time but it is not working, what will be calling servlet look like

    And can you explain why your title is "Servlet chaining problem"?

  • Security & Servlet engine and ejb container on different servers

              When you have the servlet container and the ejb container on different physical servers,
              how is the rmi connection meant to to be done while still maintaining the seucrity
              propagation from servlet to ejb tier?
              Assume that my user is already authenticated (forms) on the servlet tier. Do we then
              create a dedicated connection (InitialContext + url/username/password properties)
              to the ejb tier and store this connection in the HttpSession? (basically authenticating
              a 2nd time)
              OR,
              can the servlet container make a generic connection to the ejb container, and pass
              the users security context to the ejb tier transparantly?
              -Sam
              

    Nick Minutello <[email protected]> wrote:
              > Assuming that web container security is being employed, I guess the fundamental question
              > is: Is it necessary to create a "connection" (ie. an InitialConext) per user, or
              > can a "global" initial context be shared (in the end, the TCP connection is shared
              > anyway)?
              It doesn't create a 'connection' per user - when you use JNDI authentication (specifying
              principal and credentials when constructing InitialContext) it associates security info
              with the current thread for the duration of the request. If you cache InitialContext and
              use it later on some other thread it will not do anything.
              > Does it really matter?
              No ;-)
              > Thanks,
              > Nick
              > "Dimitri I. Rakitine" <[email protected]> wrote:
              >>Nick Minutello <[email protected]> wrote:
              >>
              >>
              >>> OK, so when I create the InitialContext, I just specify the URL (to call
              >>the remote
              >>> EJB container). The user ID and credentials are mapped automatically.
              >>
              >>> I obviously also need to cache the initialContext variable in my HTTPSession
              >>object?
              >>
              >>> What would happen if I had one InitialContext for the whole servlet engine
              >>- and
              >>> each thread used that. Would the thread (security) context still get passed
              >>- or
              >>> would the credentials for the original connection get used?
              >>
              >>If you use web-app security, container will associate security info with
              >>the current
              >>thread before invoking your servlet. If you do not use it and cache InitialContext,
              >>
              >>then the current user will always be 'guest' (except for the very first
              >>time when
              >>application calls 'new InitialContext()' with username/password.
              >>
              >>
              >>> Thankyou.
              >>> -Sam
              >>
              >>
              >>> "Vinod Mehra" <[email protected]> wrote:
              >>>>
              >>>>"Sam the bad cat" <[email protected]> wrote in message
              >>>>news:[email protected]...
              >>>>>
              >>>>>
              >>>>> When you have the servlet container and the ejb container on different
              >>>>physical servers,
              >>>>> how is the rmi connection meant to to be done while still maintaining
              >>>>the
              >>>>seucrity
              >>>>> propagation from servlet to ejb tier?
              >>>>>
              >>>>> Assume that my user is already authenticated (forms) on the servlet
              >>tier.
              >>>>Do we then
              >>>>> create a dedicated connection (InitialContext + url/username/password
              >>>>properties)
              >>>>> to the ejb tier and store this connection in the HttpSession? (basically
              >>>>authenticating
              >>>>> a 2nd time)
              >>>>>
              >>>>> OR,
              >>>>> can the servlet container make a generic connection to the ejb container,
              >>>>and pass
              >>>>> the users security context to the ejb tier transparantly?
              >>>>
              >>>>If the user has logged in already, ie the authenticated user is already
              >>>>in
              >>>>the execute
              >>>>thread, the identity should be propgated to the ejb tier transparantly,
              >>>>when
              >>>>you create the
              >>>>new initial context.
              >>>>
              >>>>--Vinod.
              >>>>
              >>>>
              >>>>>
              >>>>> -Sam
              >>>>>
              >>>>>
              >>>>
              >>>>
              >>
              >>--
              >>Dimitri
              >>
              Dimitri
              

  • Servlet Engine for IIS

    Hi!
    I wanna ask if somebody knows a servlet engine for the IIS, which is free for commercial use & which is certificated by Microsoft.
    Hope somebody can help me!
    Thanks

    thanks for your advice.
    i m currently trying to set up the ISAP redirector for tomcat.
    one more question: IMHO there are 2 posibilities
    1) to install tomcat as standalone server and a different port the IIS
    2) to install IIS with the ISAPI redirector to tomcat
    please correct me if that's wrong. what's the difference?
    And what`s the better solution??

  • How can the servlet engine create objects of interfaces?help

    hello,
    I have this basic fundamental query...when using servlets i noticed that so many methods in the HttpServlet class take as arguments objects of the type "Interface"..where as basic principle in java is u cant instantiate interfaces...interfaces r mere templates which u implement by ur own custom classes.
    For example the doGet method recieves from the servlet engine(servlet container) two arguments which r HttpServletResponse object and HttpServletRequest object..and u use these further to make use of the methods of the inmterfaces..which again is a mystery to me...why?
    here is why:-
    since HttpServletResponse and HttpServletRequest r interfaces..they cant be instantiated...and now that the sevlet engine provides objects of these interfaces...how come u r able to to use the methods of these interfaces...for r they not empty methods?..
    example how r u able to make the sendRedirect() method of HttpServletResponse interface work...is this method not an empty method?
    there r several interfaces...whose objects r being used and passed in this similar fashion....(for example there r many methods that return an enumeration...which is used as if it were an ordinary class that can be instantiated..and whose methods r non empty emthods)
    please help me resolve this mystery
    sheeba

    Don't call me "u". The word is "you". Likewise "are" and not "r".
    The servlet engine creates objects of concrete classes that implement those interfaces. If you want to find the names of those classes in your particular server, you could use for examplereq.getClass().getName()

  • About servlet engines

    Hi All
    I came across 3 new terms the other day, I was just wondering what they actually are.
    Standalone servlet engines, add-on servlet engines and embeddable servlet engines. Base on the description that I have, standalone sevrvlet engines seem to be the kind of server that can do it all. Add-on servlet engines are the likes of Apache-Tomcat combination (am I right?) and the embeddable servlet engines are ....... something that I have never heard of, would anyone like to share with their experience???
    Thx.
    Foreverjava

    Hello
    Please check http://www.servlets.com/engines/

Maybe you are looking for

  • Opening multiple files with a single click?

    I have searched this topic here and online elsewhere, but haven't gotten an answer. I teach English, and I download multiple student documents to grade. I want to just open all of them and go through one at a time quickly... like a stack of papers on

  • ICal 2.0.2 doesn't display week view

    so i've been running ical fine for a while, but lately whenever i click on the week view it minimizes ical the day and month views both work fine does anyone know how to solve this problem? it's getting frustrating since i use the week view almost al

  • Thank youbfor optimizing the touch input for scrolling on my HP Slate 500, why wont the others do the horizontal scrolling feature enables?

    After testing all other available browsers the past month I have arrived at the conclusion that the Firefox browser is the only one that enables touch input for scrolling. Trying to navigate pages without this function using IE, Opera, Safari & Chrom

  • Supplier share in IPI

    Hi. Supplier share captures Supplier share percentage of inventory balance per product group. it is required to input supplying conolidation unit and Inventory-managing Consolidation unit. This AFD seems to be used for calculating inventory balance s

  • Mapping AD users in BOE XI 3.0

    Hi, I have a requirement where i need to add the AD group in the following format. 1) Basically Group A has two sub groups -> B and C where Group A should be local and sub groups B & C Global. --> Group X has two sub groups -> Y and Z where Group X s