WebLogic cant execute a servlet

Hi!
Does anybody know how to debug or get more information about such a situation?
There are some servlets working on Sun with WebLogic.
Log file show me:
####<Nov 27, 2002 12:44:34 PM EET> <Error> <Posix Performance Pack> <egw> <agserver> <ExecuteThread: '59' for queue: 'default'> <> <> <000000> <Uncaught Throwable in processSockets>
java.lang.NullPointerException
at weblogic.socket.TunnelContext.getServlet(TunnelContext.java:24)
at weblogic.servlet.internal.MuxableSocketHTTP.dispatch(MuxableSocketHTTP.java:465)
at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:456)
at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:385)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
it's my very first time of working with java,
sorry if the question looks stupid.

Hi,
use the try catch block and post the stack trace. Without it its difficult to judge where the problem is.
Seetesh

Similar Messages

  • How to execute a servlet on  jakarta-tomcat-4.0.3

    Please let me know how to execute a servlet on  jakarta-tomcat-4.0.3 .I am able to compile it .
    Regards,
    Saurabh Singhal

    Hi
    You must provide a mapping in your web.xml configuration file. This mapping will allow you to access servlet via url in form: "http://[domain]:[port]/[context]/servlet/[servlet full qualified name]"
    This file should be located at $TOMCAT_HOME/conf.
    Sample web.xml contains:
    <web-app>
        <display-name>Sample Database App</display-name>
        <description>
         This is a simple application.
        </description>
        <servlet>
            <servlet-name>MyServlet</servlet-name>
            <servlet-class>MyServletImpl</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>MyServlet</servlet-name>
         <url-pattern>/myservletaddr</url-pattern>
        </servlet-mapping>
    </web-app>
    You can find more info at:
    http://scitec.uwichill.edu.bb/cmp/online/CS36L/tutorials/TomcatIntroduction/TomcatIntroSampleApp.html
    or
    http://www.moreservlets.com/Using-Tomcat-4.html

  • How to execute a servlet from a java code

    Hi,
              I am trying to make a URL connection to a particular site and trying
              to execute the servlet at the site specified and then storing the image
              pointed to by the servlet in a tmp location.I am passing the servlet id
              in the param Parameter.and the
              HTTP link in the URLString.
              This code worked fine with a CGI script but is not working
              properly with a servlet.
              A sample servlet code
              <img SRC=http://xyz/ABCServlet?imageKey=51752
              2881"/>
              private String executeServlet(String URLString, String param) {
              try {
              URL url = new URL(URLString);
              URLConnection connection = url.openConnection();
              connection.setDoOutput(true);
              PrintWriter out = new
              PrintWriter(connection.getOutputStream());
              out.println(param) ;
              out.close();
              BufferedReader in = new BufferedReader(new
              InputStreamReader(
              connection.getInputStream()));
              String inputLine;
              String inputData = "" ;
              while ((inputLine = in.readLine()) != null)
              inputData = inputData + inputLine ;
              in.close();
              System.out.println(inputData) ;
              return inputData ;
              Could anyone one help me out in this.
              Thanks,
              Trita
              

    Hi,
              I would assume your image is a binary file, and therefore you should use
              class for byteStream instead of charStream classes, i.e. Reader.
              Michael
              Trita Tripathi <[email protected]> wrote in message
              news:[email protected]...
              > Hi,
              > I am trying to make a URL connection to a particular site and trying
              > to execute the servlet at the site specified and then storing the image
              > pointed to by the servlet in a tmp location.I am passing the servlet id
              > in the param Parameter.and the
              > HTTP link in the URLString.
              > This code worked fine with a CGI script but is not working
              > properly with a servlet.
              > /*
              > A sample servlet code
              > <img SRC=http://xyz/ABCServlet?imageKey=51752
              > 2881"/>
              > */
              >
              > private String executeServlet(String URLString, String param) {
              >
              > try {
              > URL url = new URL(URLString);
              > URLConnection connection = url.openConnection();
              > connection.setDoOutput(true);
              >
              > PrintWriter out = new
              > PrintWriter(connection.getOutputStream());
              > out.println(param) ;
              > out.close();
              >
              > BufferedReader in = new BufferedReader(new
              > InputStreamReader(
              > connection.getInputStream()));
              > String inputLine;
              > String inputData = "" ;
              >
              > while ((inputLine = in.readLine()) != null)
              > inputData = inputData + inputLine ;
              >
              > in.close();
              >
              > System.out.println(inputData) ;
              > return inputData ;
              > }
              > Could anyone one help me out in this.
              >
              > Thanks,
              > Trita
              >
              >
              >
              >
              

  • Cant execute jar command?

    hi, i am a newb in j2ee. my reference is the beginning java ee 5 from apress. the application server that the book is using is JBoss, and while i try to write my first example, i need to make a war and an ear file, so i tried to do it in the console. i went to the directory of my first example and the tried to execute this: >jar cf web-app.war index.jsp but an error occur and said 'jar' is not recognized as an internal or external command,
    operable program or batch file.
    question is, how can i make those files if i cant execute the "jar" command.
    **by the way, i have a successful installation of JBoss.
    thanks in advance.
    sorry, i guess this is the wrong forum.
    Message was edited by:
    pleigher

    The jar command should be installed in your JDK HOME\bin directory, but you could also use winzip.
    Once you've got the hang of things you should forget about building war and jar files from the command line, you're much better using a build tool such as maven2.
    http://maven.apache.org/
    There's quite a bit to it but it has pre-configured templates for war and ejb projects.

  • Execute a servlet

    Hello,
    I wnt to execute a servlet I use a Tomcat to do it
    webapps/mySevletTest/Web-INF/classes/HelloServlet.java
    in web.xml
    <servlet>
              <servlet-name>HelloServlet</servlet-name>
              <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>HelloServlet</servlet-name>
         <url-pattern>/HelloServlet</url-pattern>
    </servlet-mapping>
    to execute
    http://localhost:8080/mySevletTest/HelloServlet
    Error : The requested resource (/ServletTest/HelloServlet) is not available.
    why ????
    thanks

    I have put the class in a package org
    package org;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloServlet extends HttpServlet
      public void service(HttpServletRequest request, HttpServletResponse response)throws IOException
           response.setContentType("text/html");
           PrintWriter writer = response.getWriter();
           writer.println("<html>\n");
           writer.println("<head>\n");
           writer.println("<title>Test</title>\n");
           writer.println("</head>\n");
           writer.println("<body>\n");
           writer.println("<h1>Hallo Issam</h1>\n");
           writer.println("<br>\n");
           writer.println("<h3>Test for Servlet ist successfull ...</h3>\n");
           writer.println("</body>\n");
           writer.println("</html>\n");
    }/WEB-INF/classes/org/HelloServlet.class
    the phad of aaplication
    webapps/myServletTest/WEB-INF/classes/org/HelloServlet.java
    in web.xml
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/HelloServlet</url-pattern>
    </servlet-mapping>
    I become the same error !!!!!!!!!!
    The requested resource (/myServletTest/HelloServlet) is not available.
    who ist the error

  • Weblogic 6.1 and Servlet API 2.3

    Dears All,
    could you confirm weblogic v6.1 can support J2EE v1.3 and especially Servlet API v2.3 ?
    Our war deployment is fine (v2.3 seems supported) but queries about major/minor versions in Web application Context return v2.2.
    Are some upgrade or deployments specifications required ?
    Thanks,
    Bruno

    AFAIK 2.2.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Tajdar Siddiqui" <[email protected]> wrote in message
              news:3b043919$[email protected]..
              >
              > I read somewhere that Weblogic 6.0 supports Servlet Api 2.3 ( which in
              turn support
              > http Filters etc.).
              >
              > I searched the Weblogic docs site for 6.0 and there is no mention of
              Servlet Api
              > 2.3 over there. Can someone pls. validate this.
              >
              > Thanx,
              > Tajdar
              

  • Weblogic 6.0 and Servlet Api

              I read somewhere that Weblogic 6.0 supports Servlet Api 2.3 ( which in turn support
              http Filters etc.).
              I searched the Weblogic docs site for 6.0 and there is no mention of Servlet Api
              2.3 over there. Can someone pls. validate this.
              Thanx,
              Tajdar
              

    AFAIK 2.2.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "Tajdar Siddiqui" <[email protected]> wrote in message
              news:3b043919$[email protected]..
              >
              > I read somewhere that Weblogic 6.0 supports Servlet Api 2.3 ( which in
              turn support
              > http Filters etc.).
              >
              > I searched the Weblogic docs site for 6.0 and there is no mention of
              Servlet Api
              > 2.3 over there. Can someone pls. validate this.
              >
              > Thanx,
              > Tajdar
              

  • Weblogic 7.0 startup servlet problem

    I have added a new startup servlet to my existing web application.
              While deploying the same, weblogic is throwing the following
              exception.
              I'm very sure that class (com/lbx/util/LbxProperties) is part of
              webapp war file I created. Can somebody please throw some light about
              this.
              I'm trying to do the .ear file deployment.
              Thank you very much
              Santhosh.
              <Dec 30, 2002 12:04:27 PM PST> <Error> <HTTP> <101216> <Servlet:
              "StartupServlet" failed to preload on startup in webapp: "wliWEB"
              javax.servlet.ServletException: com/lbx/util/LbxProperties
              at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:912)
              at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:833)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:773)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2763)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2708)
              at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2681)
              at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:4746)
              at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:539)
              at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:983)
              at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1017)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >
              

              Hi Santhosh,
              Yeah , if its part of the system class path, it should find it. How are u referencing
              the file? Try wrapping the code that gets the Resource and see what exception
              you get.
              -Raj
              "Santhosh Kumar" <[email protected]> wrote:
              >
              >Raj, you are right. I'm trying to load the properties from within the
              >that class.
              >However, path (external to ear file) where I placed all those properties
              >is part
              >of system class path. So wl should find those property files, right?
              >
              >-Santhosh.
              >
              >"Raj" <[email protected]> wrote:
              >>
              >>Hi
              >>Are you trying to load any property file in your startup servlet? I
              >think
              >>WL does
              >>not extract the file "automatically" from within the war file. You should
              >>probably
              >>try referencing the file using some other mechanism or try loading it
              >>from ur
              >>EJB(as EJB JARs are loaded before WARs).
              >>
              >>-Raj
              >>
              >>
              >>[email protected] (Santhosh Kumar) wrote:
              >>>I have added a new startup servlet to my existing web application.
              >>>While deploying the same, weblogic is throwing the following
              >>>exception.
              >>>
              >>>I'm very sure that class (com/lbx/util/LbxProperties) is part of
              >>>webapp war file I created. Can somebody please throw some light about
              >>>this.
              >>>
              >>>I'm trying to do the .ear file deployment.
              >>>
              >>>Thank you very much
              >>>Santhosh.
              >>>
              >>><Dec 30, 2002 12:04:27 PM PST> <Error> <HTTP> <101216> <Servlet:
              >>>"StartupServlet" failed to preload on startup in webapp: "wliWEB"
              >>>javax.servlet.ServletException: com/lbx/util/LbxProperties
              >>> at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:912)
              >>> at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:833)
              >>> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:773)
              >>> at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2763)
              >>> at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2708)
              >>> at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:2681)
              >>> at weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:4746)
              >>> at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:539)
              >>> at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:983)
              >>> at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1017)
              >>> at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1112)
              >>> at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:732)
              >>> at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
              >>> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              >>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >>>>
              >>
              >
              

  • 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

  • WebLogic 7.0sp4 - Console Servlet causes java.lang.OutOfMemoryError

    I downloaded various copies of WebLogic. I'm trying to work with WebLogic 7.0sp4
    on a Windows 2000 Server machine, but it's not working well at all. I have a
    very simple set-up - one JDBC connection pool to an Oracle database, and one EAR
    file. This should work easily.
    I have a WebLogic 6.0 produced EAR file. The EAR files contains about 110 Entity
    BMP EJBs, about 35 Stateless Session EJBs, and 1 Stateful Session EJB, as well
    as a collection of supporting Java classes.
    WebLogic 6.0 imports the EAR and deploys the beans with no problem. AND after
    deploying the beans, WebLogic 6.0 still lets you start a WebLogic Administrative
    Console to interact with and manage the WebLogic server. WebLogic 6.0 doesn't
    seem to have any problems.
    WebLogic 7.0 imports the EAR file, recompiles the beans, and deploys them. If
    you DON'T start an admin console, then you can ping the server, ask the server
    for its state, etc. - and everything seems fine. Once you start an admin console
    and try to get to the login page of the admin console, THEN WebLogic 7.0 runs
    out of memory. I've already bumped the minimum heapsize up to 350MB and maxsize
    to over 600MB. The application never even uses more than 100MB of real memory
    before it crashes with an out-of-memory error. Something about starting the admin
    console is crashing the server. The console servlet runs out of memory. Why?
    Is there a separate setting to increase the Heap Size used by the Console Servlet?
    I'm already using the "-Xms350m -Xmx600m" options when starting WebLogic to set
    aside at least 350MB of heap space.
    I'm including:
    - log files
    - config.xml
    - startweblogic.cmd
    [files.zip]

    I do not think this is the right group for your issue. Please post it in the appropriate
    one.
    "Bill Horan" <[email protected]> wrote:
    >
    >
    >
    I downloaded various copies of WebLogic. I'm trying to work with WebLogic
    7.0sp4
    on a Windows 2000 Server machine, but it's not working well at all.
    I have a
    very simple set-up - one JDBC connection pool to an Oracle database,
    and one EAR
    file. This should work easily.
    I have a WebLogic 6.0 produced EAR file. The EAR files contains about
    110 Entity
    BMP EJBs, about 35 Stateless Session EJBs, and 1 Stateful Session EJB,
    as well
    as a collection of supporting Java classes.
    WebLogic 6.0 imports the EAR and deploys the beans with no problem.
    AND after
    deploying the beans, WebLogic 6.0 still lets you start a WebLogic Administrative
    Console to interact with and manage the WebLogic server. WebLogic 6.0
    doesn't
    seem to have any problems.
    WebLogic 7.0 imports the EAR file, recompiles the beans, and deploys
    them. If
    you DON'T start an admin console, then you can ping the server, ask the
    server
    for its state, etc. - and everything seems fine. Once you start an admin
    console
    and try to get to the login page of the admin console, THEN WebLogic
    7.0 runs
    out of memory. I've already bumped the minimum heapsize up to 350MB
    and maxsize
    to over 600MB. The application never even uses more than 100MB of real
    memory
    before it crashes with an out-of-memory error. Something about starting
    the admin
    console is crashing the server. The console servlet runs out of memory.
    Why?
    Is there a separate setting to increase the Heap Size used by the Console
    Servlet?
    I'm already using the "-Xms350m -Xmx600m" options when starting WebLogic
    to set
    aside at least 350MB of heap space.
    I'm including:
    - log files
    - config.xml
    - startweblogic.cmd

  • Execute a servlet in tomcat

    hai friends,
    I am trying to execute a simple servlet in tomcat but I couldn't..
    please help me

    Can you execute the default Servlets in Tomcat which are found in the "Examples" folder ? http://localhost:<PORT NO>/examples/
    If yes then try deploying your servlet in the examples folder and find out a file called "servlet.jar " in your server and set its classpath.
    I hope that will work.
    Shashi

  • Apache Tomcat 4 error - cant fine a servlet

    Hi,
    I have a web.xml file that defines classes and url patterns fine. For some reason though, which I cant work out, even when I add the following to web.xml, Tomcat says it cant find the requested resourse.
    http://localhost:8080/servlet/SimpleShoppingBasket
    <servlet>
    <servlet-name>SimpleShoppingBasket</servlet-name>
    <servlet-class>SimpleShoppingBasket</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>SimpleShoppingBasket</servlet-name>
    <url-pattern>/servlet/SimpleShoppingBasket</url-pattern>
    </servlet-mapping>
    The error displayed is:
    HTTP Status 404 - /servlet/SimpleShoppingBasket
    type Status report
    message /servlet/SimpleShoppingBasket
    description The requested resource (/servlet/SimpleShoppingBasket) is not available.
    Apache Tomcat/5.5.17
    Every other servlet I have runs fine except this one. I have checked the spelling of the class and it is correct. I am nearing my wits end!
    Please help! What could be wrong? Is there a cache that I can delete somewhere maybe?

    Try putting the servlet class into a package. There could be access problems with it being in the "unnamed" package
    Check the tomcat logs for any errors that servlet may be creating ([TOMCAT]/logs directory)
    Also is your web app installed in the ROOT directory or in its own context?
    If in its own context then the url would be http://localhost:8080/mycontext/servlet/SimpleShoppingBasket
    What do the other (working) servlet definitions look like?
    How are they different from this one?

  • Do Weblogic 5.1 support servlet 2,2 web.xml?

    Found that a lot of tags in web.xml according to Java servlet 2.2 API didn't work in Weblogic server 5.1, tags such as <session-mapping>, <session-timeout> didn't work at all. Is these tags didn't support in 5.1?
              

              Thank for your correction on the <servlet-mapping>, it is a typing error, it works
              after I correct it.
              But the <session-timout> tag still didn't work.
              I set it up as follow in my web.xml:
              <session-config>
              <session-timeout>30</session-timeout>
              </session-config>
              My testing servlet code as follows, it always shows a timeout value of 1800 seconds
              instead of my preset 30 seconds in the web.xml:
              public void doGet(HttpServletRequest request, HttpServletResponse response) throws
              ServletException, IOException {
                   HttpSession session = request.getSession();
                   response.setContentType("text/html");
                   OutputStreamWriter osw = new OutputStreamWriter(response.getOutputStream());
                   PrintWriter out = new PrintWriter (response.getOutputStream());
                   out.println("<html>");
                   out.println("<head><title>HelloWorld</title></head>");
                   out.println("<body>Hello From HelloWorld doGet()");
                   out.println("<P>Session will be timeout for " + session.getMaxInactiveInterval()
              + " secs.");
                   out.println("</body></html>");
                   out.close();
              Kumar Allamraju <[email protected]> wrote:
              ><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
              ><html>
              >Do you mean servlet mapping? I can't seem to find out session-mapping
              >in
              >the dtd
              ><br>Yes we do support session-timeout in 5.1
              ><br>see http://www.weblogic.com/docs51/classdocs/webappguide.html
              ><p>--
              ><br>Kumar
              ><p>Alfred Leung wrote:
              ><blockquote TYPE=CITE>Found that a lot of tags in web.xml according to
              >Java servlet 2.2 API didn't work in Weblogic server 5.1, tags such as
              ><session-mapping>,
              ><session-timeout> didn't work at all. Is these tags didn't support
              >in
              >5.1?</blockquote>
              ></html>
              >
              

  • How to execute a servlet onload

    Hi everyone,
    I am very new to servlets. I have a jsp page that calls a servlet which is executed on a submit button within a form.
    It works, returning the data to the page. However I would like my servlet to be executed on load of the jsp. A tutorial that covers this area would be great.
    If you have a suggestion please post a response.. Thanks.
    <form name="data_form" method="post" action="Controller">
    <input type="hidden" name="action" value="getData"/ >
    </form>
    public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
              //String action = request.getServletPath().substring(1, request.getServletPath().indexOf("."));
              String action = (String)request.getParameter("action");
              // select application logic
              String target = null;
              try {
                                   if(action.equals("getData")){                     
                        DataManager data = new DataManager();
                        request.setAttribute("Data", data.getData());
                        target = "/data.jsp";
                                     }catch(RuntimeException e){
                   e.printStackTrace();
              }Edited by: _AlyssaK on May 29, 2009 8:49 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Onload? I've had a laugh, seriously :)
    Create a Servlet class and implement doGet() wherein you do the desired loading tasks and finally forward the request to a JSP file and in the JSP file just access the loaded data through taglibs/EL. Finally map that servlet on an url-pattern and call it in your browser.
    E.g. (semi pseudo)
    doGet(request, response) {
        Data data = dataDAO.load();
        request.setAttribute("data", data);
        request.getRequestDispatcher("data.jsp").forward(request, response);
    }data.jsp
    <p>The data is: ${data}</p>web.xml
    <servlet-mapping>
        <servlet-name>yourServlet</servlet-name>
        <url-pattern>/data</url-pattern>
    </servlet-mapping>Then invoke it on [http://hostname:port/contextroot/data].

  • Weblogic 9.2 and servlet 2.3

    I'm trying to run a web application with servlet 2.3 standard in weblogic 9.2.
              I have some Servlet Filters configured in it but none of them seems to be invoked when requesting a page.
              The application works fine in Tomcat 5.0.28.
              I have also tried to update web.xml to servlet 2.4 by adding the <dispatch> tag to <servlet-mapping> but the problem still remain.
              Am i missing something ?
              How can i run web application with servlet 2.3 standard on weblogic 9.2 ?
              I'd like to run the application with servlet 2.3 standard as i have some custom tag translating expression language so i do not want the application server to parse expression language too.
              Thanx
              Ivan

    WLS 9.2 does support servlet2.3 standard applications. It is hard to tell if there is something missing in your web.xml. Would you please attach your simplified web.xml here? Maybe someone can help you out.
              Thanks,
              -Fred

Maybe you are looking for

  • USB mouse not recognized in windows 8.1 - tried all no help

    Hi, I am having this issue for 2 weeks now. Plugging the muse to USB port didn't make any difference to system, it hasn't been seen at all (noting in dev manager, no beep etc). I was connecting same mouse using PS/2 adapter and worked well. After doi

  • Dv2000 Vista sp1 external sound

    Recently upgraded Vista to SP1 and since then the external headphone/speaker jacks do not operate properly. I can hear Test sounds through Headphones but the Internal speakers do not cut out when external devices plugged in. If playing dvd via Quickp

  • Wireless client association hostname

    Hi all,  I'm having issue with the above unit. Currently I have 3 units of AIR-SAP2602E-S-K9 with 15.2(2)JB under 1 SSID. Currently all my clients connected to the AP does not have their computer hostname appearing under the client association. What

  • JUnit - Ignore

    In my JUnit tests I have a series of public static methods embedded. When I run my tests, I receive: java.lang.Exception: No runnable methodsInstead of requesting that the classes be ignored in the filter set for the batch run, is there any way to sp

  • How do I put rectangles in a group (JavaScript)?

    Hello, I have a JavaScript script that draws several graphics rectangles on a page. I would like to put them in a group, the same as I would manually with a selection and ctrl-G. I have tried many, many approaches but am unable to do it. I would be g